Repository navigation
feat(cli): add opt-in registration and standalone editor with terminal - #2225
Merged
Merged
Conversation
Open folders as projects and files without plugin activation. Add lazy integrated terminals, source-backed shell registration, and recent-project remove buttons. Pin the matching Core launch and registration rules.
xiaoyumuxi
marked this pull request as ready for review
November 20, 2026 06:58
This was referenced Nov 20, 2026
Merged
19 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
6c84d32d4b82e358b41f5a7edf78f2a0ca7a3695。本 PR 已合入,Core pin 的后续更新单独位于 #2226;它与本地已测试的 Core 提交源码树相同。PR 类型 / Type
改动说明 / What changes
背景 / Why
此前直接传入单个文件无法打开独立的编辑窗口,临时编辑又不需要项目服务。现在
lithe folder走完整项目流程,lithe file打开不激活插件的文本编辑窗口;CLI 由用户在设置中主动注册,安装或打开设置都不会修改命令行环境。改动 / Changes
ZDOTDIR;Windows 编辑 HKCU 的用户 PATH,保留原有注册表字符串类型并有界广播环境变化。Lithe/cli/bin;托管配置块和 PATH 编辑规则由 Core 返回。保留无关配置,拒绝外部修改冲突、被重新指向的符号链接以及非 Lithe 启动器;应用移动后可以显式修复。移除注册同时移除自有启动器。--、帮助和版本;根据真实文件类型分流。托管启动器创建脱离终端的 GUI 子进程,父进程退出,文件路径以绝对路径传递。不在本 PR 范围内 / Out of scope
不提供多路径批量打开、
--wait、插件语言智能或项目服务的单文件降级实现。本 PR 不升级插件协议、不发版。Windows 原生验收、macOS 注册到真实 GUI 的完整端到端验收以及公开截图证据尚未完成,见验证限制。类型专属:feat
多平台对齐
pending。范围检查 / Scope checks
功能矩阵 / Feature matrix
cli-single-file-mode.json与workspace-open-switch.json;实现、验证、证据及动作如实填写,未完成原生验收的状态保留pending。verify-platform-feature-matrix.sh和verify-platform-feature-matrix-change.sh origin/main HEAD(217 项)。.artifacts/下生成的矩阵视图。插件归属 / Plugin ownership
UI 验证 / UI evidence
cd37cca34的 Viva 无头截图:CLI 设置 1120×820、单文件编辑器/真实终端/项目菜单 1000×640,均覆盖明暗主题与中英文。命令见下表。.artifacts/cli-single-file/;含个人路径/主机信息,未原样上传。当前 gh CLI 没有 PR 图片附件上传入口,现有 CI artifact 步骤也不采集这些场景。不能把本地路径算作已附图,本 PR 最初按 Draft 提交,GitHub 当前已记录合入;公开截图证据仍未补齐。统一日志系统 / Structured logging
TestEveryLoggedEventIsAcceptedByTheKernel已通过。CLI 的帮助、版本与启动失败保留命令行输出语义。界面文案 / i18n
shared/i18n/features/cli-single-file.json,通过生成器生成 Viva 使用的字典。逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
插件契约 / Plugin contract
N/A:本 PR 新增的是应用 Core CLI 命令,不涉及插件契约、能力版本、SDK、插件宿主方法或通知。
发行包与资源 / Bundle and resources
docs/ci-builds.md已说明启动器归属、生命周期及不应跨工作树复制的用户状态。无用代码与重构 / Dead code and refactoring
published_build_plugins测试读取具体 Maven/Gradle fixture 的债务已关联现存 Issue #2174;没有在本 PR 改动该测试。验证 / Verification
以下均针对上述最终提交和配套 Core 提交;本地按用户要求只测受影响范围,其余交给 CI。
test-stability-macos.sh --package ./cmd/lithe --package ./internal/cli --package ./internal/core --package ./internal/workbench --filter 'TestCLI|TestStandalone|TestProjectMenuRemoves|TestProjectMenuWheel|TestDesktopStartupMakesInstalledPluginSettingsReachable|TestEveryLoggedEventIsAcceptedByTheKernel'desktop-go.sh test -race ./internal/cli ./internal/core ./internal/workbench -run 'TestCLI|TestStandalone|TestProjectMenuRemoves' -count=1 -timeout=60sdesktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run 'TestVisualCLISettings|TestVisualStandalone|TestVisualProjectMenuRemove' -count=1 -timeout=60s,设置LITHE_VISUAL_OUTPUT_DIR/bin/sh,不是伪造输出;尚未公开上传GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go test -ccargo test -p lithe-core-rules -p lithe-platform;对应 crate 的 Windows target clippy--check、node --test --test-timeout=60000 scripts/i18n/test-i18n.mjsgit diff --check未能执行的检查和原因:
prlctl list -a只有 Linux 来宾,没有 Windows VM;未验证 HKCU/PATH 写入、环境广播、新 cmd/PowerShell 调用和 ConPTY。交叉编译与规则测试不能替代这些流程。.zshrc。scripts/logging/、共享契约及 Core 边界 verifier 入口已移除,等价静态门禁未恢复。本次目录事件测试和 fixture 消费测试通过,但不代表缺失的门禁已通过。desktop-go.sh test ./...或 Core workspace 全量测试;按用户要求只运行改动范围,完整范围交由 CI。提交前确认 / Final checks
origin/main(f86242526)创建,目标为main;开发期间 main 已继续前进。95c0ad2ff822f26bfe9168472b66d185195fa76c,并非由本任务执行合并。