From 644ae522b7344e98f4f0660d9093228b30b25663 Mon Sep 17 00:00:00 2001 From: Yao Jingxi <23722032@bjtu.edu.cn> Date: Sat, 14 Nov 2026 01:51:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore(desktop):=20=E8=B7=9F=E8=BF=9B=20Core?= =?UTF-8?q?=20#26=EF=BC=8C=E5=9B=BA=E5=AE=9A=E5=88=B0=20439f42f=20?= =?UTF-8?q?=E5=B9=B6=E6=94=B9=E7=94=A8=20rust/crates/=20=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - build-desktop-core.sh 固定 Lithe-core-rust 439f42f,头文件改从 rust/crates/core/include/lithe_core.h 复制;desktop_go_test.go 与 errors.go 注释同步新路径 - 笔记、AGENTS.md、develop-lithe 与 lithe-code-review Skill、文档、 资源清单和平台功能矩阵里的 rust/lithe-* 路径改成 rust/crates/*, 只改 439f42f 中存在的路径;固定修订链接和已删除文件的历史记录不动 - develop-lithe 的 Core 范围改成 rust/crates/ 下的所有 crate - 删除 core-rules wasm 的资源清单条目、复用脚本注释、测试和 ci-builds.md 段落;core-rules 笔记改名为同步规则 crate 并说明保留原因 - 删除 community-auth、community-feed 两条矩阵记录,viva-migration.md 记录“不做:社区论坛” - NOTICE 只列本仓库仍在的 OpenIDEA 派生文件 loginenv.go,JDK 选择策略 指向 Java Support 插件 --- ...09-12-git-execution-and-project-console.md | 2 +- ...guage-tooling-and-lsp-runtime-ownership.md | 2 +- ...-java-project-build-and-launch-boundary.md | 6 +- ...-php-support-plugin-ownership-and-plans.md | 2 +- ...aven-settings-reach-the-language-server.md | 12 +-- ...09-26-maven-dependency-tree-output-file.md | 2 +- ...2026-10-12-declarative-language-plugins.md | 4 +- .../2026-10-12-workbench-ui-contributions.md | 4 +- ...a-language-server-as-declarative-plugin.md | 4 +- ...-16-windows-project-commit-panel-parity.md | 4 +- ...2026-10-17-build-system-plugin-contract.md | 2 +- ...0-18-plugin-web-content-in-host-windows.md | 4 +- ...6-10-22-windows-declarative-plugin-host.md | 2 +- .../2026-10-24-remote-workspace-routing.md | 2 +- ...026-10-26-build-provider-task-execution.md | 2 +- ...026-10-27-debug-tcp-transport-lifecycle.md | 2 +- ...026-10-28-workspace-indexing-exclusions.md | 2 +- ...9-run-configuration-detection-in-memory.md | 2 +- .../2026-11-03-structured-logging-channels.md | 4 +- .../2026-11-05-core-rules-sync-crate.md | 88 ++++++++++++++++++ .../2026-11-05-core-rules-wasm-sync-bridge.md | 93 ------------------- ...1-plugin-contract-single-source-in-core.md | 2 +- ...ernal-document-changes-and-guarded-save.md | 2 +- ...-git-repository-discovery-and-selection.md | 2 +- .../2026-10-08-remote-checkout-fetched-tip.md | 2 +- ...ceiling-and-duplicate-maven-coordinates.md | 2 +- ...-10-14-child-processes-end-with-the-ide.md | 4 +- ...7-git-push-target-and-upstream-tracking.md | 6 +- ...-19-spring-index-concurrency-boundaries.md | 2 +- ...6-10-21-git-large-untracked-directories.md | 2 +- ...6-10-22-project-tree-natural-name-order.md | 2 +- ...2026-11-03-git-history-author-timezones.md | 2 +- ...26-11-03-saved-stash-core-file-sections.md | 2 +- ...indows-code-action-diagnostic-roundtrip.md | 2 +- ...11-03-windows-keymap-context-validation.md | 2 +- ...04-github-device-authorization-deadline.md | 2 +- ...-04-github-pull-request-checkout-safety.md | 2 +- ...6-09-13-macos-git-graph-intellij-layout.md | 2 +- ...-09-17-standalone-java-compile-then-run.md | 4 +- ...-20-run-configuration-discovery-quality.md | 10 +- .../2026-09-22-windows-ai-commit-design.md | 2 +- ...4-macos-git-log-multi-repository-groups.md | 6 +- ...6-09-25-windows-git-graph-branch-colors.md | 2 +- .../2026-09-27-workspace-git-commit-plans.md | 4 +- .../2026-10-03-local-git-changelists.md | 4 +- ...-10-04-windows-commit-file-diff-preview.md | 6 +- ...26-10-11-gradle-project-import-settings.md | 4 +- .../feature/2026-10-12-plugin-marketplace.md | 6 +- .../2026-10-14-declarative-plugin-settings.md | 4 +- ...2026-10-21-declarative-native-plugin-ui.md | 2 +- .../2026-10-23-plugin-project-generators.md | 2 +- ...-10-26-debug-adapter-executable-setting.md | 8 +- ...-26-debug-console-prompt-and-completion.md | 2 +- .../2026-10-29-git-rollback-confirmation.md | 4 +- ...-python-environments-in-workspace-scans.md | 2 +- ...026-11-03-structured-logging-log-window.md | 2 +- ...6-10-16-unified-child-process-lifecycle.md | 6 +- .../2026-10-17-build-system-provider-api.md | 2 +- ...026-10-22-child-process-media-isolation.md | 2 +- .../2026-10-22-unified-vcs-provider-model.md | 4 +- ...10-24-remote-development-workspace-host.md | 8 +- ...ified-debug-engine-and-adapter-registry.md | 4 +- ...0-26-maven-java-domain-plugin-migration.md | 2 +- .../2026-10-31-plugin-injected-toolchains.md | 4 +- ...4-java-extraction-generic-apis-and-gate.md | 4 +- ...ingle-repository-git-status-observation.md | 2 +- .agents/skills/develop-lithe/SKILL.md | 12 +-- .../develop-lithe/references/logging.md | 6 +- .../references/output-template.md | 2 +- .../references/review-policy.md | 2 +- AGENTS.md | 4 +- NOTICE | 11 +-- desktop/internal/core/desktop_go_test.go | 2 +- desktop/internal/core/errors.go | 2 +- docs/ci-builds.md | 13 +-- docs/development/macos-plugin-api-plan.md | 8 +- docs/development/windows-ai-commit.md | 6 +- docs/viva-migration.md | 8 +- scripts/desktop/build-desktop-core.sh | 13 ++- .../resources/reuse-worktree-resources.mjs | 2 - .../test-reuse-worktree-resources.mjs | 14 +-- scripts/resources/worktree-resources.json | 12 +-- .../features/ai-commit-generation.json | 4 +- .../features/ai-inline-edit.json | 2 +- .../features/ai-pull-request-description.json | 2 +- .../features/application-settings.json | 2 +- .../features/build-native-configuration.json | 4 +- .../features/build-provider-jvm-debug.json | 4 +- .../build-provider-readonly-model-inputs.json | 6 +- .../build-provider-refresh-and-tool.json | 4 +- .../features/build-system-plugins.json | 22 ++--- .../features/cargo-build-plugin.json | 2 +- .../features/community-auth.json | 42 --------- .../features/community-feed.json | 41 -------- .../features/database-connections.json | 2 +- .../features/database-crud-export.json | 2 +- .../features/database-multi-schema-tree.json | 2 +- .../features/database-query-history.json | 2 +- .../features/database-schema.json | 2 +- .../features/debug-disassembly.json | 18 ++-- .../features/debug-java-runtime.json | 2 +- .../features/debug-state.json | 4 +- .../features/debug-tcp-transport.json | 4 +- .../features/declarative-plugin-contract.json | 2 +- .../features/declarative-plugin-settings.json | 2 +- .../features/diagnostics-export.json | 20 ++-- .../features/diagnostics-workspace.json | 4 +- .../features/editor-git-blame-menu.json | 16 ++-- .../features/editor-git-gutter-stage.json | 2 +- .../features/editor-go-to-line.json | 2 +- .../features/editor-ide-settings-import.json | 2 +- .../features/file-explorer.json | 14 +-- .../features/git-branches-remotes.json | 44 ++++----- .../features/git-diff-review.json | 6 +- .../features/git-history.json | 8 +- .../git-large-untracked-directories.json | 12 +-- .../features/git-line-history.json | 4 +- .../features/git-local-changelists.json | 4 +- .../features/git-metadata-observation.json | 2 +- .../git-multi-repository-change-groups.json | 2 +- .../features/git-rebase-stash.json | 20 ++-- .../features/git-repository-discovery.json | 8 +- .../features/git-status-commit.json | 6 +- .../features/git-submodule-commit-plan.json | 8 +- .../features/git-workspace-commit-retry.json | 8 +- .../features/git-workspace-staged-commit.json | 8 +- .../features/history-snapshots.json | 6 +- .../features/ide-api-environment.json | 4 +- .../features/ide-api-maven.json | 6 +- .../features/ide-api-run-output.json | 4 +- .../features/ide-mcp-connection.json | 4 +- .../features/java-build-diagnostics.json | 4 +- .../features/java-gradle-project-import.json | 6 +- .../features/java-import-on-open-policy.json | 2 +- .../features/java-runtime-discovery.json | 2 +- .../features/keymap-customization.json | 10 +- .../features/lsp-completion-hover.json | 8 +- .../features/lsp-diagnostics.json | 4 +- .../features/lsp-document-identity.json | 6 +- .../features/lsp-lifecycle.json | 14 +-- .../features/lsp-status-logs.json | 6 +- .../features/markdown-rendering.json | 4 +- .../features/network-proxy-settings.json | 2 +- .../features/onboarding-welcome.json | 2 +- .../features/php-run-test.json | 2 +- .../features/plugin-backend-run-start.json | 6 +- .../plugin-backend-workspace-context.json | 8 +- .../plugin-cross-plugin-function-calls.json | 6 +- .../features/plugin-debug-adapters.json | 8 +- ...ugin-debug-start-and-adapter-features.json | 10 +- .../features/plugin-editor-actions.json | 2 +- .../features/plugin-editor-grammars.json | 2 +- .../features/plugin-editor-providers.json | 2 +- .../features/plugin-functions.json | 8 +- ...ugin-host-editor-file-window-services.json | 2 +- .../features/plugin-injected-toolchains.json | 38 ++++---- .../plugin-language-server-sessions.json | 10 +- .../features/plugin-marketplace.json | 4 +- .../features/plugin-output-link-matchers.json | 4 +- .../features/plugin-project-generators.json | 4 +- .../plugin-registered-settings-pages.json | 4 +- .../features/process-termination-policy.json | 6 +- .../remote-development-workspace.json | 18 ++-- .../features/remote-workspace.json | 14 +-- .../features/run-discovery.json | 26 +++--- .../features/run-java-test.json | 10 +- .../features/run-node-launch-path.json | 2 +- .../features/run-processes-end-with-ide.json | 12 +-- .../features/run-save-toolchain.json | 8 +- .../features/search-global.json | 16 ++-- .../features/search-replace.json | 2 +- .../features/terminal-interaction.json | 2 +- .../vcs-subversion-and-plugin-providers.json | 12 +-- .../features/workbench-panes.json | 2 +- .../features/workspace-files.json | 16 ++-- .../workspace-indexing-exclusions.json | 12 +-- .../features/workspace-open-switch.json | 2 +- 177 files changed, 574 insertions(+), 691 deletions(-) create mode 100644 .agents/notes/implemented/architecture/2026-11-05-core-rules-sync-crate.md delete mode 100644 .agents/notes/implemented/architecture/2026-11-05-core-rules-wasm-sync-bridge.md delete mode 100644 shared/platform-feature-matrix/features/community-auth.json delete mode 100644 shared/platform-feature-matrix/features/community-feed.json diff --git a/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md b/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md index 97853f2583..0d07295f60 100644 --- a/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md +++ b/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md @@ -32,7 +32,7 @@ IntelliJ Community 固定版本 ### 实际执行由共享入口记录 Rust Core 负责 Git 参数策略、事件解码、脱敏和结果模型。 -`rust/lithe-git-host/` 负责原生子进程、管道、临时输入文件和限时清理。 +`rust/crates/git-host/` 负责原生子进程、管道、临时输入文件和限时清理。 已有 Core 捕获入口调用该适配器,保留旧 JSON 和 C ABI(C 语言调用边界) 兼容性;其他旧的 Git 检查辅助函数尚未全部迁移。 diff --git a/.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md b/.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md index 20463a3ce0..d3b6ca0181 100644 --- a/.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md +++ b/.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md @@ -81,7 +81,7 @@ languageID 对应描述元数据已有的 `languageServerLaunch.executableNames` 本次没有新缓存目录、下载或安装资源写入,运行时只读发行基线不变。 LSP 子进程、stdio、JSON-RPC 状态机、文档版本、请求 deadline、诊断和 -结果归一化统一收归 Rust Core(`rust/lithe-core/src/lsp/`(已随 #1794 移除)), +结果归一化统一收归 Rust Core(`rust/crates/core/src/lsp/`(已随 #1794 移除)), 平台 adapter 只负责可执行文件与运行环境发现。Swift 只保留 UI 投影和 由不透明 operation ID 标识的应用层完成回调,不再持有 LSP 请求 ID、 原始 JSON、framing 缓冲区、子进程句柄或文档 open 状态的真值。 diff --git a/.agents/notes/implemented/architecture/2026-09-18-java-project-build-and-launch-boundary.md b/.agents/notes/implemented/architecture/2026-09-18-java-project-build-and-launch-boundary.md index 271bf6cb5d..29ee1cd2d7 100644 --- a/.agents/notes/implemented/architecture/2026-09-18-java-project-build-and-launch-boundary.md +++ b/.agents/notes/implemented/architecture/2026-09-18-java-project-build-and-launch-boundary.md @@ -357,7 +357,7 @@ Maven JDK、显式覆盖及资源步骤;#1133 的 Maven 原生资源步骤保 `LITHE_JDTLS_SMOKE_MAVEN`。不设置包路径时普通单元车道不启动外部工具; 明确设置后缺少工具或包必须失败,不能降级跳过。 通过 Rust 计时入口运行,真实工具场景沿用专属的 600 秒总预算: - `node .agents/skills/write-stable-tests/scripts/run-rust-tests-with-timing.mjs --manifest rust/lithe-core/Cargo.toml --test-budget lsp::interface::engine::real_jdt_tests::=600000 --report .artifacts/test-stability/stage-d-real-jdt-core.json`。 + `node .agents/skills/write-stable-tests/scripts/run-rust-tests-with-timing.mjs --manifest rust/crates/core/Cargo.toml --test-budget lsp::interface::engine::real_jdt_tests::=600000 --report .artifacts/test-stability/stage-d-real-jdt-core.json`。 本机 1395 项通过,其中新增集成 35.983 秒,另两项真实 JDT 为 14.897/11.520 秒。 最后把临时目录所有权提前到首个 fixture 写入前;该场景再次逐项计时通过,含进程清理为 27.751 秒。 - 原生工程归属、链接路径及取消回归: @@ -392,9 +392,9 @@ Maven JDK、显式覆盖及资源步骤;#1133 的 Maven 原生资源步骤保 ## 适用范围 -- Rust Core:`rust/lithe-core/src/execution/configuration.rs` +- Rust Core:`rust/crates/core/src/execution/configuration.rs` - Rust Core 构建协调:`rust/lithe-core/src/lsp/languages/jdt_build.rs`、 - `rust/lithe-core/src/lsp/interface/engine.rs` + `rust/crates/core/src/lsp/interface/engine.rs` - macOS:`LanguageToolingSessionManager`、`AppModel+RunConfiguration`、`RunService` - Windows:`java-run-launch.ts`、`lsp-core-adapter.ts`、`run.store.ts` - 相关笔记: diff --git a/.agents/notes/implemented/architecture/2026-09-18-php-support-plugin-ownership-and-plans.md b/.agents/notes/implemented/architecture/2026-09-18-php-support-plugin-ownership-and-plans.md index b6b9a4e8a5..937884e896 100644 --- a/.agents/notes/implemented/architecture/2026-09-18-php-support-plugin-ownership-and-plans.md +++ b/.agents/notes/implemented/architecture/2026-09-18-php-support-plugin-ownership-and-plans.md @@ -78,7 +78,7 @@ Windows 休眠的 Run Actions 宿主不再扫描其他语言的 manifest 或自 - `MacPluginPackageDownloaderTests`:验证 stable/preview 发行资产 URL 按 App 发布版本和架构确定性生成。 - `LanguageExtensionProcessLifecycleTests.packagedServersArePinnedToTheirOwnPackage`、`LanguageServerToolServiceTests.pinnedExecutableIsTheOnlyCandidate`:验证插件打包的 Intelephense 只从本插件已安装的版本目录启动,不按文件名在 PATH 或其他插件中查找。 - `PluginPackageStoreTests/reinstallCanReplaceTheActiveVersionOnlyAfterValidation`:验证重装不会绕过签名校验,并在校验完成后替换当前版本。 -- `cargo test --manifest-path rust/lithe-core/Cargo.toml --lib declarative_plugins`:PHP 运行、PHPUnit 整套/单文件/单方法命令展开与路径保护。 +- `cargo test --manifest-path rust/crates/core/Cargo.toml --lib declarative_plugins`:PHP 运行、PHPUnit 整套/单文件/单方法命令展开与路径保护。 - `LITHE_RUN_PHP_INTEGRATION=1 ./scripts/macos/test/test-macos.sh --filter RealPhpIntegrationTests`:真实工具测试;先在 `shared/fixtures/phpunit-project` 执行 `composer install`,并提供 Node.js 与插件组装出的 Intelephense launcher。 - Windows 前端测试包含禁用时不扫描、Composer 数组、下载取消、在途启动后禁用及跨工作区进程隔离。Windows native 测试与实际应用启动必须在 Windows 环境执行;Linux 交叉编译不等于运行验收。 diff --git a/.agents/notes/implemented/architecture/2026-09-21-maven-settings-reach-the-language-server.md b/.agents/notes/implemented/architecture/2026-09-21-maven-settings-reach-the-language-server.md index c1fc000d13..de42004915 100644 --- a/.agents/notes/implemented/architecture/2026-09-21-maven-settings-reach-the-language-server.md +++ b/.agents/notes/implemented/architecture/2026-09-21-maven-settings-reach-the-language-server.md @@ -424,7 +424,7 @@ Lithe 不自己判断“要不要重解析”,而是按 JDT LS 上游(vscode 更新会重新解析所有 Maven 项目,大工程上比“什么都不做”慢,但这正是用户点重新加载 时要的结果。 -**验证。** Rust Core `cargo test --manifest-path rust/lithe-core/Cargo.toml --lib` +**验证。** Rust Core `cargo test --manifest-path rust/crates/core/Cargo.toml --lib` 覆盖内容寻址(内容变路径变、相同内容复用、旧副本保留、临时文件所有权、默认用户设置、读不到时降级), 以及 `update_maven_configuration` 的四条路径(设置变化、强制更新、握手前更新、 profile 变化、失败或超时期间变更补跑、握手前无设置变化的强制重载)。Windows `bun test src/platform src/features/maven` @@ -455,7 +455,7 @@ CARGO_TARGET_DIR="$PWD/rust/target/macos" CARGO_BUILD_JOBS=2 node --input-type=m import { run, parseArguments } from './.agents/skills/write-stable-tests/scripts/run-rust-tests-with-timing.mjs'; import { runProcess } from './.agents/skills/write-stable-tests/scripts/test-timing-lib.mjs'; await run(parseArguments([ - '--manifest', 'rust/lithe-core/Cargo.toml', '--package', 'lithe-core', '--keep-going', + '--manifest', 'rust/crates/core/Cargo.toml', '--package', 'lithe-core', '--keep-going', '--report', '.artifacts/test-stability/core-mvnd/core-mvnd-languages.json', ]), { runProcessImpl: request => runProcess({ ...request, @@ -474,7 +474,7 @@ macOS 使用 `MacRuntimeDiscoveryTests`、`MacRuntimeProbeCacheTests` 和 本次拥有的 daemon 状态目录,验证构建与 JDT 全局设置,并在有界结束后清理进程。 单元测试或跨平台编译不能替代这一步,功能矩阵在原生验收完成前保持待验证。 -- Rust Core:`cargo test --manifest-path rust/lithe-core/Cargo.toml` +- Rust Core:`cargo test --manifest-path rust/crates/core/Cargo.toml` 覆盖主目录、bin 目录与启动器写法都能推出正确的全局设置、Wrapper 与无 `conf` 的安装正确返回空、`initializationOptions` 注入且不吃掉扩展目录的键、 Profile 指纹随安装变化,以及生成文档保留镜像/注释、插入缺失节点、展开空元素、 @@ -501,7 +501,7 @@ macOS 使用 `MacRuntimeDiscoveryTests`、`MacRuntimeProbeCacheTests` 和 过期结果不覆盖新结果与输入防抖。macOS `MavenRuntimeTests` 覆盖来源判断、检测未完成 不同步探测、Maven JDK 回退与 Maven 选择链,`WorkbenchFeatureModelTests` 覆盖重复 分类请求。 -- 项目环境设置入口:`cargo test --manifest-path rust/lithe-core/Cargo.toml +- 项目环境设置入口:`cargo test --manifest-path rust/crates/core/Cargo.toml project_environment_saves_before_generation` 用共享 fixture `shared/fixtures/run-configuration/project-environment.json` 覆盖未生成配置时保存 默认值、保留服务覆盖以及 `checkFingerprint` 的两种行为。Windows 运行 @@ -543,7 +543,7 @@ JDK 和未知偏好;非空值成为本机 Build 默认值,空值继续表示 - Rust Core Maven 域:`rust/lithe-core/src/project/maven.rs` - Rust Core JDT 适配:`rust/lithe-core/src/lsp/languages/jdt.rs` -- Rust Core 语言服务引擎:`rust/lithe-core/src/lsp/interface/engine.rs` +- Rust Core 语言服务引擎:`rust/crates/core/src/lsp/interface/engine.rs` - Rust Core 设置副本:`rust/lithe-core/src/lsp/languages/jdt_maven_settings.rs` - Windows 实时同步与问题展示:`windows/tauri/src/features/maven/services/java-maven-configuration.ts`、 `windows/tauri/src/features/maven/services/reload-maven-workspace.ts`、 @@ -556,7 +556,7 @@ JDK 和未知偏好;非空值成为本机 Build 默认值,空值继续表示 - Windows 宿主:`windows/tauri/src-tauri/src/run.rs`(`maven_resolve_installation`) - macOS:`macos/Sources/LitheExecutionModule/Services/BuildSystemService.swift` - 项目环境与运行配置设置入口: - - Rust Core:`rust/lithe-core/src/execution/configuration.rs`(`runConfig.inspect`、 + - Rust Core:`rust/crates/core/src/execution/configuration.rs`(`runConfig.inspect`、 `runConfig.updateOptions` 工具链分支) - 共享契约:`Lithe-core-rust/rust/contracts/rust-core-api.md`、 `shared/fixtures/run-configuration/project-environment.json` diff --git a/.agents/notes/implemented/architecture/2026-09-26-maven-dependency-tree-output-file.md b/.agents/notes/implemented/architecture/2026-09-26-maven-dependency-tree-output-file.md index 9ab582d3d4..035b58bf03 100644 --- a/.agents/notes/implemented/architecture/2026-09-26-maven-dependency-tree-output-file.md +++ b/.agents/notes/implemented/architecture/2026-09-26-maven-dependency-tree-output-file.md @@ -124,7 +124,7 @@ m2e 内嵌的 Maven,而不是用户配置的 Maven 或 mvnd,违反“依赖 ## 验证 -- Rust Core:`cargo test --manifest-path rust/lithe-core/Cargo.toml maven_depend` +- Rust Core:`cargo test --manifest-path rust/crates/core/Cargo.toml maven_depend` 覆盖计划参数(含 `-N` 与 `outputFile` 校验)、共享 fixture `shared/fixtures/maven/dependency-tree-v2.json`(LF 与 CRLF)、6,000 与 10,000 节点的大树、字节/节点/行长/深度上限、格式漂移与缺失文件。完整校验运行 diff --git a/.agents/notes/implemented/architecture/2026-10-12-declarative-language-plugins.md b/.agents/notes/implemented/architecture/2026-10-12-declarative-language-plugins.md index 396f336219..5b002ac9ed 100644 --- a/.agents/notes/implemented/architecture/2026-10-12-declarative-language-plugins.md +++ b/.agents/notes/implemented/architecture/2026-10-12-declarative-language-plugins.md @@ -8,7 +8,7 @@ 官方语言插件(Go、PHP)不再是"在 Lithe 进程里加载的 Swift Bundle",而是声明式插件包:包里只有 `plugin.json` 和它声明的资源(例如打包好的 Intelephense)。Lithe 读取声明,由 Rust Core 校验并展开运行/测试命令,再由宿主自己启动语言服务器和运行进程。插件不在宿主进程内执行任何代码,所以插件包不再依赖宿主二进制,Lithe 每次发版也不用重新编译插件,之后可以把插件拆到独立仓库维护。Go 和 PHP 后来确实拆成了 Lithe Store 社区插件,见 [Go 与 PHP 改为 Lithe Store 社区插件](2026-10-20-go-php-community-plugins.md)。 -对日常开发的直接影响:新增语言插件时写 `plugin.json`,不要写 Swift 入口类;声明格式和语义以 `Lithe-core-rust/shared/plugins/contract/v1/` 为准,校验与命令模板展开只在 `rust/lithe-core/src/plugins/declarative.rs` 实现一次。 +对日常开发的直接影响:新增语言插件时写 `plugin.json`,不要写 Swift 入口类;声明格式和语义以 `Lithe-core-rust/shared/plugins/contract/v1/` 为准,校验与命令模板展开只在 `rust/crates/core/src/plugins/declarative.rs` 实现一次。 通用工作台 UI 已通过 API level 2 扩展,见 [宿主管理的工作台 UI 贡献](2026-10-12-workbench-ui-contributions.md)。语言插件的 API level 1 和进程归属保持兼容。 @@ -98,7 +98,7 @@ gopls 把 `fmt.Println` 的定义指向 `GOROOT/src/fmt/print.go`,Intelephense ## 验证 -- `cargo test --manifest-path rust/lithe-core/Cargo.toml --lib declarative_plugins`:合法样例、非法样例错误码、命令展开标准答案,以及仓库里的官方 `plugin.json`。 +- `cargo test --manifest-path rust/crates/core/Cargo.toml --lib declarative_plugins`:合法样例、非法样例错误码、命令展开标准答案,以及仓库里的官方 `plugin.json`。 - ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除):契约目录自洽(schema、fixture 引用、错误码均已在 README 中登记)。 - 官方插件包的组装与校验(原 verify-official-plugins 脚本:组装官方包并用 `LitheOfficialPluginVerifier` 检查信任策略、打包入口和"包内无 Mach-O"。)已随插件移出本仓库,由各插件仓库的 CI 负责(#1495)。 - `./.agents/skills/write-stable-tests/scripts/test-stability-macos.sh -- --filter 'Plugin|LanguageExtensionProcessLifecycleTests|LanguageServerToolServiceTests|LanguageNavigationCoordinatorTests|ExternalNavigationTests'`:包校验、旧包过渡、签名、启停与进程清理、打包入口固定、跨工作区跳转边界。 diff --git a/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md b/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md index a02c417604..29bebc5309 100644 --- a/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md +++ b/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md @@ -62,12 +62,12 @@ Agent 的配置入口由同一个目录补齐,移动到任何已有停靠区 ## 验证 -- `WorkbenchContributionHostTests.chineseActionSearchFindsAndRestoresHiddenTerminal` 使用实际中英资源验证中文标题、中文说明和英文别名,执行后恢复终端入口,切换回英文后不再沿用旧语言;修复前中文查询确认为空。Core 的 `Lithe-core-rust/rust/fixtures/search/actions-v1.json` 验证排序、Unicode、插件原文和输入预算。 动作匹配实现位于 `rust/lithe-core/src/action_search/mod.rs`,遵循 Core 根目录仅保留 `lib.rs` 的既有布局规则;模块路径和 `search.actions` 协议不变。 +- `WorkbenchContributionHostTests.chineseActionSearchFindsAndRestoresHiddenTerminal` 使用实际中英资源验证中文标题、中文说明和英文别名,执行后恢复终端入口,切换回英文后不再沿用旧语言;修复前中文查询确认为空。Core 的 `Lithe-core-rust/rust/fixtures/search/actions-v1.json` 验证排序、Unicode、插件原文和输入预算。 动作匹配实现位于 `rust/crates/core/src/action_search/mod.rs`,遵循 Core 根目录仅保留 `lib.rs` 的既有布局规则;模块路径和 `search.actions` 协议不变。 - `WorkbenchContributionHostTests.toolWindowsMenuRestoresHiddenTerminalAtItsSavedDockWithoutToggling` 覆盖隐藏入口恢复、原停靠组、重复 Show 不关闭、模块禁用及旧菜单动作;已安装声明式插件流程补充从同一菜单恢复。`ContextMenuCoverageTests.rightClickOnSubmenuKeepsThePopupAndShowRemainsKeyboardAccessible` 用原生右键事件验证父弹层保持可见,再用方向键和 Return 执行显示;模型回归确认菜单构造不激活模块或创建终端会话。实际产品还需在深浅主题检查左侧“…”、菜单打开/关闭、快捷键与终端已有会话。 - ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除) -- `cargo test --manifest-path rust/lithe-core/Cargo.toml --lib declarative_plugins` +- `cargo test --manifest-path rust/crates/core/Cargo.toml --lib declarative_plugins` - `./.agents/skills/write-stable-tests/scripts/test-stability-macos.sh -- --filter 'PluginUIIconTests|WorkbenchContributionHostTests|WorkbenchFeatureModelTests|WorkbenchModuleUIRegistryTests|ModuleSessionCoordinatorTests'` - ~~./scripts/architecture/verify-service-boundaries.sh~~(随旧客户端移除) - `./scripts/desktop/verify/verify-runtime-bundle-immutability.sh` diff --git a/.agents/notes/implemented/architecture/2026-10-13-java-language-server-as-declarative-plugin.md b/.agents/notes/implemented/architecture/2026-10-13-java-language-server-as-declarative-plugin.md index fd7e82a827..7aeacc3b7b 100644 --- a/.agents/notes/implemented/architecture/2026-10-13-java-language-server-as-declarative-plugin.md +++ b/.agents/notes/implemented/architecture/2026-10-13-java-language-server-as-declarative-plugin.md @@ -39,7 +39,7 @@ Java 的语言服务器 JDT LS(Eclipse 的 Java 语言服务器,提供补全 | 插件资源 | 集成要读的文件 | `hostIntegration.resources`,由插件声明包内路径 | | 宿主能力 | 仍由宿主内置实现提供的运行、测试、调试 | `hostIntegration.capabilities`,由插件逐项声明 | -字段语义以 `Lithe-core-rust/shared/plugins/contract/v1/README.md` 为准,校验和模板展开只在 `rust/lithe-core/src/plugins/declarative.rs` 实现一次。 +字段语义以 `Lithe-core-rust/shared/plugins/contract/v1/README.md` 为准,校验和模板展开只在 `rust/crates/core/src/plugins/declarative.rs` 实现一次。 ### 2. 契约 API 2 增加的内容 @@ -208,7 +208,7 @@ dev.lithe.plugin.java-support/ 以下命令和结论是旧客户端的历史验证,不适用于当前 Viva 工作树;迁移完成后必须重新验证插件资源、会话生命周期、Java 功能以及安装包只读约束。 -- `cargo test --manifest-path rust/lithe-core/Cargo.toml --lib plugins`:API 2 的合法与非法清单、启动计划标准答案、运行时版本判定,以及仓库里的官方 `plugin.json`。 +- `cargo test --manifest-path rust/crates/core/Cargo.toml --lib plugins`:API 2 的合法与非法清单、启动计划标准答案、运行时版本判定,以及仓库里的官方 `plugin.json`。 - 官方插件包的组装与校验(原 verify-official-plugins 脚本:组装三个官方包并校验入口、自带运行时、符号链接和原生代码的位置。)已随插件移出本仓库,由各插件仓库的 CI 负责(#1495)。 - `./.agents/skills/write-stable-tests/scripts/test-stability-macos.sh -- --filter 'Plugin|LanguageExtensionProcessLifecycleTests|LanguageServerToolServiceTests|JavaLanguageServerRuntimeTests|MacJdtWorkspaceStateTests|MacJdtHostIntegrationStateTests|LanguageToolEnvironmentTests'`:按声明定位资源、路径固定在包内、版本过滤、默认启用、移除与恢复;卸载后 JDT 的索引和 Equinox 配置区被删除(扫描失败或插件被拒绝时保留);运行时启动的服务器 `PATH` 上先找到宿主选中的运行时。 - 旧版 `RealJavaDebugIntegrationTests` 从组装好的插件包启动真实 JDT LS 并完成 Spring Boot 断点调试。迁移初版时它因 `java.project.getClasspaths` 在服务端抛空指针而失败(迁移前的代码同样失败),该问题已随入口发现的修复一并解决,见 [Java 入口由 JDT 判定](2026-09-21-java-entrypoints-owned-by-jdt.md)。这组测试直接组装调试会话,不验证应用里的能力目录。 diff --git a/.agents/notes/implemented/architecture/2026-10-16-windows-project-commit-panel-parity.md b/.agents/notes/implemented/architecture/2026-10-16-windows-project-commit-panel-parity.md index 2e7bb1654d..48a73b98d0 100644 --- a/.agents/notes/implemented/architecture/2026-10-16-windows-project-commit-panel-parity.md +++ b/.agents/notes/implemented/architecture/2026-10-16-windows-project-commit-panel-parity.md @@ -61,8 +61,8 @@ Shelf 存储在平台 `app_data_dir()/git-shelves/<规范化根路径哈希>`, - `./.agents/skills/write-stable-tests/scripts/test-stability-windows.ps1 -Scope Frontend` - `git-saved-changes.test.tsx` 控制列表加载与删除确认的完成顺序,验证跨仓库加载失败、迟到结果、刷新失败及 A→B→A 后旧操作不能恢复或删除记录;`shelf_storage.rs` 验证 WSL 大小写隔离、旧桶保留及普通 Windows 键兼容。 - 保存改动组件测试覆盖整个 Git 父面板卸载后重挂载:A 操作完成或失败均不解锁仍在运行的 B,回到 A 后必须等待 A 的原操作结束;旧面板的原生删除结束后,新面板重新加载列表并移除旧记录。同一组件保持挂载并切换 A→B→A 时,操作归属也要按最初会话区分,原生删除结束后刷新当前列表。`git-stash-diff-api.test.ts` 控制不同 OID 占用同一位置、旧读取重试和旧 positional 调用的完成顺序,确认 Diff 结果与缓存不会串用。工作区锁测试覆盖路径别名、WSL 大小写和过期释放回调。恢复工作流测试覆盖仅暂存层已恢复、两层已恢复但删除失败、检查失败及检查期间切换工作区。项目树选择测试核对编辑器单选跟随后的高亮、复制、剪切与范围锚点,以及明确多选和未切换编辑文件时的目录选择保留。 -- `cargo test --manifest-path rust/lithe-core/Cargo.toml git_diff_and_apply_round_trip_a_patch -- --test-threads=1` 核对复用的 Core 索引及工作区逆向检查,不将只读检查误作实际恢复。 -- `cargo test --manifest-path rust/lithe-core/Cargo.toml git_patch_exchange -- --test-threads=1` +- `cargo test --manifest-path rust/crates/core/Cargo.toml git_diff_and_apply_round_trip_a_patch -- --test-threads=1` 核对复用的 Core 索引及工作区逆向检查,不将只读检查误作实际恢复。 +- `cargo test --manifest-path rust/crates/core/Cargo.toml git_patch_exchange -- --test-threads=1` - Shelf 真实 Git 回归覆盖暂存删除后保留同内容或改过内容的原文件,以及暂存重命名后重建源文件;核对清理后的干净状态和恢复后的暂存内容、磁盘字节。Dependencies 组件测试双击嵌套 reactor 的根和子模块依赖,确认编辑器接收正确的 POM 路径。 - `cargo test --manifest-path windows/tauri/src-tauri/Cargo.toml` - ~~./scripts/windows/build/build-windows.ps1 -Configuration Release~~(随旧客户端移除) diff --git a/.agents/notes/implemented/architecture/2026-10-17-build-system-plugin-contract.md b/.agents/notes/implemented/architecture/2026-10-17-build-system-plugin-contract.md index 4b65a00409..6fbfe62d12 100644 --- a/.agents/notes/implemented/architecture/2026-10-17-build-system-plugin-contract.md +++ b/.agents/notes/implemented/architecture/2026-10-17-build-system-plugin-contract.md @@ -91,7 +91,7 @@ Rust Core 负责校验声明、识别工程、展开每一条命令行,并把 - 每次调用都重新校验清单。清单有问题时返回 `{ status: "rejected" }`;只有请求本身格式错误才是 `invalid_request`。 - Core 不启动进程、不写文件。只有 `build.detect`、各 `decode*` 和 `build.syncFingerprint` 会在工作区内有界地读取文件,以及读取宿主分配的 `outputFile`。 -- 代码在 `rust/lithe-core/src/build/`,在 `lib.rs` 里用私有的 `mod build;` 引入,没有新增 crate 根的 `pub` 项。模板解析与 `plugins::declarative` 共用 `parse_template_with`,不另写一份。 +- 代码在 `rust/crates/core/src/build/`,在 `lib.rs` 里用私有的 `mod build;` 引入,没有新增 crate 根的 `pub` 项。模板解析与 `plugins::declarative` 共用 `parse_template_with`,不另写一份。 ### 3. 对社区插件开放什么,封闭什么 diff --git a/.agents/notes/implemented/architecture/2026-10-18-plugin-web-content-in-host-windows.md b/.agents/notes/implemented/architecture/2026-10-18-plugin-web-content-in-host-windows.md index 8b3621c87e..7fb356d58c 100644 --- a/.agents/notes/implemented/architecture/2026-10-18-plugin-web-content-in-host-windows.md +++ b/.agents/notes/implemented/architecture/2026-10-18-plugin-web-content-in-host-windows.md @@ -68,7 +68,7 @@ 规则放在 Core,I/O 放在桌面端。这是 develop-lithe“可共享逻辑进 Core”的要求:三个平台共用同一份判断,桌面端不再各写一套。 -- **Core(`rust/lithe-core/src/plugins/web_content.rs`)**:`plugins.web.open` 为一个已声明的 web 窗口登记页面,返回私有源 URL 和限额;`resource` 判断一个请求路径能不能读、读包里的哪几段路径(拒绝 `..`、空段、编码分隔符和保留的 `.lithe-host/`);`document` 在 HTML 文档最前面注入 CSP meta 和桥接脚本;`request` 校验页面发来的每条消息,要么直接给出拒绝回复,要么交回一个已规范化的动作;`reply` 和 `event` 把结果、进度和主题变化封装成发给页面的消息。调用 ID 不可复用、同时最多 16 个调用、一次只开一个对话框,这些计数也都在 Core 里。 +- **Core(`rust/crates/core/src/plugins/web_content.rs`)**:`plugins.web.open` 为一个已声明的 web 窗口登记页面,返回私有源 URL 和限额;`resource` 判断一个请求路径能不能读、读包里的哪几段路径(拒绝 `..`、空段、编码分隔符和保留的 `.lithe-host/`);`document` 在 HTML 文档最前面注入 CSP meta 和桥接脚本;`request` 校验页面发来的每条消息,要么直接给出拒绝回复,要么交回一个已规范化的动作;`reply` 和 `event` 把结果、进度和主题变化封装成发给页面的消息。调用 ID 不可复用、同时最多 16 个调用、一次只开一个对话框,这些计数也都在 Core 里。 - **`desktop/internal/pluginweb`**:一个 `Page` 对应一个页面。它按 Core 给出的路径段逐级 `Lstat` 读取包文件,不跟随任何符号链接,并且限制大小;把 Core 交回的动作交给 `Host` 执行(状态读写、后端调用和进度、文件对话框、在编辑器里打开文件),再把 Core 封装好的回复投递给页面。等待、读写文件和弹对话框都在窗口线程之外进行。页面关闭时取消它的全部调用,之后的结果不再投递。 - **`desktop/internal/workbench`**:插件工具窗口加进每个窗口自己的 chrome 目录,由 Core 统一排列。停用插件期间,保存的布局仍保留它的位置,重新启用后回到原处。网页窗口用 `app.WebHost` 打开 Web 视图,并用 `NativeView` 填满窗口正文。一帧没有声明某个页面,这个页面就在 `endPaint` 里关闭。所以隐藏或移动窗口、关闭项目、停用或更新插件,都走同一条关闭路径。 - **状态(`pluginservice.SetPageState`)**:写到每用户插件根目录下的 `.state//pages/workspaces/<工作区键>/<窗口摘要>.json`,与插件后端的工作区状态放在一起,按窗口和工作区隔离,写入时先写临时文件再改名。它不在插件包或应用 bundle 里,所以不改变签名或增量更新的基线;`plugin-web-state` 仍然禁止跨工作树复用。 @@ -133,7 +133,7 @@ Viva 的 Web 视图目前有四处达不到契约,已记录为上游缺口, ## 适用范围 - `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/` -- Lithe-core-rust:`rust/lithe-core/src/plugins/web_content.rs`(Lithe-IDEA/Lithe-core-rust#9) +- Lithe-core-rust:`rust/crates/core/src/plugins/web_content.rs`(Lithe-IDEA/Lithe-core-rust#9) - `desktop/internal/pluginweb/` - `desktop/internal/workbench/pluginpages.go`、`desktop/internal/workbench/plugintools.go` - `desktop/internal/pluginservice/pages.go`、`desktop/internal/pluginservice/toolwindows.go` diff --git a/.agents/notes/implemented/architecture/2026-10-22-windows-declarative-plugin-host.md b/.agents/notes/implemented/architecture/2026-10-22-windows-declarative-plugin-host.md index 93611fb739..29774a9f0c 100644 --- a/.agents/notes/implemented/architecture/2026-10-22-windows-declarative-plugin-host.md +++ b/.agents/notes/implemented/architecture/2026-10-22-windows-declarative-plugin-host.md @@ -15,7 +15,7 @@ Windows 新增一套契约 v1 声明式插件宿主,与现有 Worker 扩展模 - 功能矩阵 `declarative-plugin-contract`、`plugin-functions` 对 Windows 记为 missing(2026-10-22 矩阵对齐时确认);[声明式语言插件](2026-10-12-declarative-language-plugins.md) 也写明"Windows 现有扩展清单暂未改造,接入时必须通过同一组 fixture"。 - Windows 当前插件生态是渲染进程内的 Worker 扩展:`Plugins/win/Official/PhpSupport` 是 Worker 包格式(`main: "plugin.js"`),与契约包不同,无法复用 Lithe Store 面向 macOS/契约发布的语言插件包。 - Windows 没有插件信任链与仓库源管理;`install_extension_from_url` 前端已调用但 Rust 宿主从未注册,非语言扩展的落盘安装链路实际不可用。 -- 契约的确定性逻辑(清单校验、启动计划展开、安装审查)按仓库规则只在 `rust/lithe-core/src/plugins/` 实现一次,而 `windows/tauri/src-tauri` 已依赖 `lithe-core`——差的只是宿主侧接线,不是契约本身。 +- 契约的确定性逻辑(清单校验、启动计划展开、安装审查)按仓库规则只在 `rust/crates/core/src/plugins/` 实现一次,而 `windows/tauri/src-tauri` 已依赖 `lithe-core`——差的只是宿主侧接线,不是契约本身。 ## 决策 diff --git a/.agents/notes/implemented/architecture/2026-10-24-remote-workspace-routing.md b/.agents/notes/implemented/architecture/2026-10-24-remote-workspace-routing.md index 6b4ace05b9..441bdea705 100644 --- a/.agents/notes/implemented/architecture/2026-10-24-remote-workspace-routing.md +++ b/.agents/notes/implemented/architecture/2026-10-24-remote-workspace-routing.md @@ -12,7 +12,7 @@ ## 决策 -- **远程实现只保留一个 crate**:`rust/lithe-remote/` 内部分为 `client`、`protocol`、`server` 三个模块,共用一个版本和依赖入口。协议类型始终可用,Cargo feature(构建时选择哪些代码和依赖)默认只启用 `client`;Core 的正常依赖明确只选客户端,Linux/macOS 的真实服务测试额外启用 `server`。打包必须用 `--no-default-features --features server --bin lithe-remote-server`,不能让工作区其他包的 feature 合并把客户端带入远端发布物。可执行文件仍叫 `lithe-remote-server`,安装路径、握手和协议版本不变;协议单独构建不需要 SHA-256 或主机适配依赖,客户端不引入 `trash` 或服务端平台代码。 +- **远程实现只保留一个 crate**:`rust/crates/remote/` 内部分为 `client`、`protocol`、`server` 三个模块,共用一个版本和依赖入口。协议类型始终可用,Cargo feature(构建时选择哪些代码和依赖)默认只启用 `client`;Core 的正常依赖明确只选客户端,Linux/macOS 的真实服务测试额外启用 `server`。打包必须用 `--no-default-features --features server --bin lithe-remote-server`,不能让工作区其他包的 feature 合并把客户端带入远端发布物。可执行文件仍叫 `lithe-remote-server`,安装路径、握手和协议版本不变;协议单独构建不需要 SHA-256 或主机适配依赖,客户端不引入 `trash` 或服务端平台代码。 - **守护进程启动必须有确定结果**:并发连接可能各自启动候选进程。代理必须等自己启动的候选已经写入会话锁的 PID,或已退出,才连接 socket;不能因为别的候选已发布 socket 就提前握手,否则显式关闭后,迟到的候选还会接管锁并留下新进程。复用已有锁文件和子进程退出状态,不增加协议、目录或长期监听;等待沿用启动期限,失败时终止并回收本次启动的候选,成功的守护进程继续跨断线保留。 - **占位根目录**:`MacRemoteWorkspaceRoots` 在 `Application Support/Lithe/RemoteWorkspaces/<连接 id>/<远程路径哈希>/<文件夹名>` 创建一个空目录,用它作为工作区根。目录名是远程文件夹名,所以项目名显示正确。它不在 app bundle 里,不影响签名和 Sparkle 增量包;里面没有用户数据,跨启动保留,让按根目录保存的项目状态得以延续。 - **注册表**:`RemoteWorkspaceRegistry` 记录每个占位根对应的连接、远程路径和 Core 会话 id。打开远程项目时登记,同一个根再次打开时,旧会话会被替换并断开。 diff --git a/.agents/notes/implemented/architecture/2026-10-26-build-provider-task-execution.md b/.agents/notes/implemented/architecture/2026-10-26-build-provider-task-execution.md index eab0dababe..8a0bdb8ba4 100644 --- a/.agents/notes/implemented/architecture/2026-10-26-build-provider-task-execution.md +++ b/.agents/notes/implemented/architecture/2026-10-26-build-provider-task-execution.md @@ -577,7 +577,7 @@ SDK 端到端直接测试 Core 当前工作树,不生成源码快照。构建 ## 适用范围 -- Lithe-core-rust 锁定修订:[rust/lithe-core/src/build/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/build)、`rust/lithe-core/src/lsp/interface/`、`rust/lithe-core/src/plugins/` +- Lithe-core-rust 锁定修订:[rust/lithe-core/src/build/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/build)、`rust/crates/core/src/lsp/interface/`、`rust/crates/core/src/plugins/` - Lithe-core-rust 锁定修订:[rust/lithe-core/src/execution/configuration.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/execution/configuration.rs) - `desktop/internal/core/plugin_session.go` - `desktop/internal/workbench/` diff --git a/.agents/notes/implemented/architecture/2026-10-27-debug-tcp-transport-lifecycle.md b/.agents/notes/implemented/architecture/2026-10-27-debug-tcp-transport-lifecycle.md index 2f79b453b6..c6b0b77ebf 100644 --- a/.agents/notes/implemented/architecture/2026-10-27-debug-tcp-transport-lifecycle.md +++ b/.agents/notes/implemented/architecture/2026-10-27-debug-tcp-transport-lifecycle.md @@ -19,7 +19,7 @@ macOS 的普通 TCP 调试连接现在共用一个传输实现:语言服务器 ## 决策 - 复用 Apple Network 的 `NWConnection` 建立 TCP、解析主机并收发字节,不实现另一套 socket、DNS 或代理协议栈。Rust Core 仍负责已有的 DAP 帧、请求顺序与操作超时;平台只管理网络字节流。 -- 生命周期状态机在 `rust/lithe-core/src/debug/transport_lifecycle.rs`,与 DAP 协议状态机相互独立,按 `transportId` 登记。平台通过 `debug.transport.handle` 发送事件(`start`、`send`、`stop`、`finishSendingAndStop`,以及带代次的 `endpointResolved`、`connectionReady`、`dataReceived`、`peerClosed`、`failed`、`writeCompleted`、`timerFired`),Core 更新状态并返回新代次、阶段、结果和有序的效果(发现端点、设置或取消计时器、连接、写入、投递数据、关闭、报告失败、通知终止)。`debug.transport.policy` 返回默认期限与预算以及会话初始化窗口,`debug.transport.release` 释放登记。 +- 生命周期状态机在 `rust/crates/core/src/debug/transport_lifecycle.rs`,与 DAP 协议状态机相互独立,按 `transportId` 登记。平台通过 `debug.transport.handle` 发送事件(`start`、`send`、`stop`、`finishSendingAndStop`,以及带代次的 `endpointResolved`、`connectionReady`、`dataReceived`、`peerClosed`、`failed`、`writeCompleted`、`timerFired`),Core 更新状态并返回新代次、阶段、结果和有序的效果(发现端点、设置或取消计时器、连接、写入、投递数据、关闭、报告失败、通知终止)。`debug.transport.policy` 返回默认期限与预算以及会话初始化窗口,`debug.transport.release` 释放登记。 - Core 没有时钟:它只决定期限的长度和到期后的转换,宿主负责等待并回报“计时器已触发”。待发数据只以字节数越过 JSON 边界,真实字节、socket、计时器句柄留在平台;平台在 `send` 里先按顺序登记帧,`write` 效果按先进先出取出对应的一帧。代次令牌、计时器编号和写入编号在 Core 中唯一且不复用,晚到的回调因代次或编号不符而被忽略。 - `MacTCPDebugAdapterTransport` 只拥有 `NWConnection`(经 `DebugAdapterSocketConnection`)、端点发现任务、待发帧的字节、系统计时器句柄,并执行 Core 的效果。端点发现、建连(两段各自独立计时,发现用时不挤占建连预算)、单个在途写入的期限、待发字节和消息数量预算都由 Core 判定。不设置会话总时长或空闲读取期限:用户停在断点上不是网络失败。写入完成只表示本机网络栈接受数据,不能据此声称适配器已处理请求。 - 直连的默认端点发现、建连和写入各为 10 秒;语言服务器冷启动与项目导入的端点发现单独允许 120 秒,端点确定后建连仍只有 10 秒,所以冷启动不会拉长对死端口的等待。Network 框架会把被拒绝或不可达的连接停在 `.waiting` 并不断重试,不会进入 `.failed`;传输把“连接被拒绝、主机或网络不可达”视为确定失败并立即结束,附上系统给出的原因,其余 `.waiting`(如暂时没有路由)仍等建连期限。显式外部 DAP 的会话初始化期限为 10 秒建连加 10 秒握手,会话计时从传输启动开始,必须比建连预算更长,避免误连到非 DAP 服务后永久停在初始化,同时不能抢在建连期限前结束;这些期限都不限制已建立会话的空闲时间。待发队列含在途数据最多 8 MiB、1024 次写入。超限或超时结束该连接,不静默丢帧、不重连或重放。失联不承诺立即可知,DAP 请求仍受原有操作期限约束。 diff --git a/.agents/notes/implemented/architecture/2026-10-28-workspace-indexing-exclusions.md b/.agents/notes/implemented/architecture/2026-10-28-workspace-indexing-exclusions.md index 0ba0fceb2a..eb75c64526 100644 --- a/.agents/notes/implemented/architecture/2026-10-28-workspace-indexing-exclusions.md +++ b/.agents/notes/implemented/architecture/2026-10-28-workspace-indexing-exclusions.md @@ -305,7 +305,7 @@ Git 状态观察的 CI 入口使用同一逐项计时工具生成 HTML/JUnit, 不能给已为 `nil` 的可观察决策属性重复写入 `nil`,否则普通库存更新会刷新设置根。 已有请求仍须清除,已有等待续体仍须恢复,不能通过关闭项目服务来让通知断言通过。 -`cargo test --manifest-path rust/lithe-core/Cargo.toml --lib project::indexing::tests` +`cargo test --manifest-path rust/crates/core/Cargo.toml --lib project::indexing::tests` 验证真实目录访问剪枝、树浏览、旧版本拒绝、保存回填防护、已跟踪文件保护及例外优先级。 其中嵌套根回归通过真实库存、内容搜索、文件名搜索、预热及替换入口,验证手动与 Git 排除、父根遍历剪枝、缓存切换和保存/watcher 回填防护。Java 导入排除测试的 diff --git a/.agents/notes/implemented/architecture/2026-10-29-run-configuration-detection-in-memory.md b/.agents/notes/implemented/architecture/2026-10-29-run-configuration-detection-in-memory.md index 1ff7ff6538..1b540a1686 100644 --- a/.agents/notes/implemented/architecture/2026-10-29-run-configuration-detection-in-memory.md +++ b/.agents/notes/implemented/architecture/2026-10-29-run-configuration-detection-in-memory.md @@ -26,7 +26,7 @@ ### 检测层归 Core 内存所有 -`rust/lithe-core/src/execution/generated_layer.rs` 按规范化后的工作区路径保存最近一次 +`rust/crates/core/src/execution/generated_layer.rs` 按规范化后的工作区路径保存最近一次 `runConfig.generate` 的结果(运行配置文档和工具链需求)。`inspect`、`resolve`、 创建用户配置时的 id 冲突检查、`toolchain_diagnostics` 都从这里读。宿主不再写任何检测文件: Windows 删除了 `run_write_generated` 命令,macOS 删除了 `MacRunConfigurationStore.writeGenerated`。 diff --git a/.agents/notes/implemented/architecture/2026-11-03-structured-logging-channels.md b/.agents/notes/implemented/architecture/2026-11-03-structured-logging-channels.md index 3c512e2508..793e7cef48 100644 --- a/.agents/notes/implemented/architecture/2026-11-03-structured-logging-channels.md +++ b/.agents/notes/implemented/architecture/2026-11-03-structured-logging-channels.md @@ -194,7 +194,7 @@ agent-host、git-host、ide-host 和 lithe-remote 的客户端链接进 Core。C Core 的目录遍历和 scratch 清理使用 `app.search.directory_skipped`、`app.workspace.directory_skipped` 和 `app.workspace.scratch_cleanup_failed`;error 只含固定消息、稳定类别和固定 domain,不含绝对路径、scratch 名或远程地址。远程进程和上传按 `ClientError` 的变体映射为 timeout、closed、transport、spawn、protocol 或 `remote_<协议码>`,不保留正文。 -日志门禁覆盖这四个 crate。运行在远端主机上的 `lithe-remote-server`(`rust/lithe-remote/src/server/`、`src/bin/`)和 ide-host 的独立可执行文件不链接进本机 Core,没有可注入的 sink,暂时排除在门禁外;远端服务端日志回传和 Monaco 控制台转发在 Issue #1680 中跟踪。 +日志门禁覆盖这四个 crate。运行在远端主机上的 `lithe-remote-server`(`rust/crates/remote/src/server/`、`src/bin/`)和 ide-host 的独立可执行文件不链接进本机 Core,没有可注入的 sink,暂时排除在门禁外;远端服务端日志回传和 Monaco 控制台转发在 Issue #1680 中跟踪。 ### DAP:记录状态与失败,保留程序内容边界 @@ -295,7 +295,7 @@ Swift 侧对应 `PluginOperationAttempt`。差异只在 `plugin_operations.rs` - `lifecycle_catalog_identity_preserves_v1_event_without_extra_log`:五种角色的身份正确,v1 wire 字段不变,没有额外的 log 行。 - `diagnostics_resolve_engine_subject_matches_startup_and_rejects_invalid_arguments`:非法段和通用参数错误。 -- `rust/lithe-core/src/tests/core_request_traces.rs`:真实 Git 仓库上的用户命令在操作 op 下记录脱敏后的 argv;失败命令记 WARN,带退出码和 stderr 末尾;后台读取只在详细诊断开启时记录。 +- `rust/crates/core/src/tests/core_request_traces.rs`:真实 Git 仓库上的用户命令在操作 op 下记录脱敏后的 argv;失败命令记 WARN,带退出码和 stderr 末尾;后台读取只在详细诊断开启时记录。 - `command_trace.rs` 和 `request_trace.rs` 的单元测试:argv 脱敏与截断、文档化的回答退出码、结果分类、stderr 末尾、热点方法、来源优先级和取消。 - ~~`macos/Tests/LitheTests/UserActionTraceTests.swift`~~(已随 #1794 移除):嵌套调用只记录外层、分离任务和主线程延后执行仍携带操作、60 秒后不再声称用户来源。 - ~~`macos/Tests/LitheTests/CoreRequestTraceTests.swift`~~(已随 #1794 移除):通过真实 Core 确认用户 Git 命令在操作 op 下落盘,后台读取等待详细诊断。 diff --git a/.agents/notes/implemented/architecture/2026-11-05-core-rules-sync-crate.md b/.agents/notes/implemented/architecture/2026-11-05-core-rules-sync-crate.md new file mode 100644 index 0000000000..eb434d4206 --- /dev/null +++ b/.agents/notes/implemented/architecture/2026-11-05-core-rules-sync-crate.md @@ -0,0 +1,88 @@ +# Agent 笔记:同步规则 crate(lithe-core-rules) + +状态:已实现 + +## 先说结论 + +Core 仓库里有一个单独的纯 Rust crate(Rust 的编译单元)`rust/crates/core-rules`。它只放少数小而确定、处在同步热路径上的规则,例如双击 Shift 手势:每次按键都要立刻出结果。 +`lithe-core` 依赖它,并把这些规则当作普通 Core 命令分发。桌面端和调用其他 Core 命令一样,通过 C ABI(C 语言调用接口)同步调用这些规则。 +这个 crate 原来还会编译成 wasm(WebAssembly,浏览器里能运行的二进制格式),供 Windows 前端同步调用。Windows 前端已经删除,所以从 2026-11-13 起,这个 crate 不再产出 wasm,也不再提供自己的 JSON 请求入口。 + +## 问题 + +2026-11-05,Issue #1662 要求把两个客户端里重复的确定性逻辑移进 Core。当时 Windows 前端(Tauri + React)调用 Core 只能用异步的 Tauri `invoke`。但有几条规则必须同步执行: +- LSP-16 在 zustand 的 `set()` 里同步规范化编辑器分组; +- WS-04 在渲染文件树时同步判断哪些路径要隐藏; +- WS-17 在每个按键事件上同步运行。 + +macOS 通过 FFI 同步调用 Core,没有这个限制。结果是这几条规则只能在两端各写一份,再靠共享 fixture 对照,这正是 #1662 想去掉的重复。 + +2026-11-08,#1799 删除了两个旧客户端,唯一的宿主变成 Viva 桌面端(Go 编写)。桌面端通过 cgo 链接 `liblithe_core.a`,任何 Core 命令都能同步调用,wasm 构建从此没有使用方。但 Core 里仍然留着只为 wasm 存在的代码: +- `wasm.rs` 里的四个 `extern "C"` 导出; +- `crate-type` 里的 `cdylib`; +- crate 自己的 JSON 信封(请求/响应外层格式)入口 `execute_json` 和 `is_rule_command`; +- `RuleError` 的 JSON 序列化。 + +这些代码只有测试在调用。 + +## 决策 + +- **保留单独的 crate**:它只依赖 serde 和 serde_json,不访问文件系统、进程、线程和时钟,时间由调用方传入。规则都写成“状态 + 事件 + 时间戳 → 新状态 + 结果”的纯函数,状态由宿主保存。 + - 保留它的理由不再是 wasm,而是依赖边界由编译器保证:规则代码引用不到 `lithe-core` 的 I/O 和全局状态。 + - 拆分 Core crate 时,它也正好属于最底层的基础层。 +- **命令仍是 Core 命令**: + - `lithe-core` 的 JSON 分发把 `lithe_core_rules::COMMANDS` 里列出的命令交给 `lithe_core_rules::execute(command, payload)`。 + - 命令名、信封和错误码与其他 Core 命令一致。`RuleError` 由 `lithe-core` 一对一转换成 `CoreError`。 + - 这个 crate 自己不解析信封。 +- **当前包含的规则**: + - `keymap.modifierGestureStep`:双击 Shift 手势(WS-17)。桌面端只负责转换原生事件、保存 Core 返回的状态,并把 `triggered` 变成动作。 + - `editor.workbenchState.reduce`:编辑器分组成员状态(LSP-16)。状态包括有序去重的成员、选中项、MRU、固定和预览。 + - 两个旧客户端在“选中项离开分组”时的行为不同。请求里的 `selectionFallback`(`first` 或 `adjacent`)保留了这两种行为。 + - 布局树、拆分方向和比例不进 Core,宿主只按返回的 `removedGroupIds` 修剪自己的布局。 + - `workspace.classifyVisibility` 和 `workspace.visibilityDefaults`:隐藏路径规则(WS-04)。内置默认列表和 glob 匹配只写在 `visibility.rs` 里,`lithe-core` 的 `project/files.rs` 直接复用这份代码。 + - `workbench.chromeLayout.reduce`:工作台外框上可拖动按钮的位置,覆盖两侧工具条、标题栏末端和状态栏末端。 +- **2026-11-13 删除 wasm 构建**: + - Core 里删除 `wasm.rs`、`cdylib`、`execute_json`、`is_rule_command` 和 `RuleError` 的序列化,fixture 测试改为直接调用 `execute`。 + - `lithe-core` 自己的 `cdylib` 同时删除,它也没有使用方。 + - 本仓库删除 `core-rules-wasm` 资源登记、对应测试和 `docs/ci-builds.md` 里的说明段落。 + +## 边界 + +这个 crate 只放纯计算、体量小、处在同步热路径上的规则。涉及 I/O、进程、文件、网络、耗时长或数据量大的逻辑,放在 `lithe-core`。 + +判断方法:如果规则要读文件、调用外部程序,或者要用 `lithe-core` 的其他模块,就不要放进这个 crate。 + +- 正确:双击 Shift 状态机,时间戳由宿主传入。 +- 不要这样做:在 crate 里读取 `.lithe/` 配置来决定隐藏规则。应该由 `lithe-core` 读取配置,再把读到的列表作为参数传给规则。 + +## 考虑过的备选方案 + +- **(2026-11-05)把 Windows 的 pane store 全部改成异步**:`set()` 里不能 `await`,要重写所有读写这个 store 的组件,还要处理中间状态的竞态。风险和改动范围都远大于这几条规则,被否决。 +- **(2026-11-05)TypeScript 和 Swift 各留一份算法,靠共享 fixture 对照**:这是迁移前的做法。fixture 只能发现已经写进去的用例,新分支仍然会漂移,被否决。 +- **(2026-11-05)引入 wasm-bindgen**:需要额外的工具链和生成的胶水 JS,版本还要和依赖严格匹配。我们只需要 JSON 进、JSON 出,手写四个 C 函数更小,也更容易审查,被否决。这个 ABI 已随 wasm 构建一起删除。 +- **(2026-11-13)删除 wasm 后,把规则并回 `lithe-core`**:crate 只剩一个使用方,并回去可以少一个 workspace 成员。没有采用,因为依赖边界会退回到只靠约定,而 Core 拆 crate 的方向是增加由编译器保证的边界。 +- **(2026-11-13)保留 wasm 构建,留给将来的网页前端**:没有使用方的产物仍要维护编译目标、注释和资源登记,被否决。将来真的需要时,可以从 git 历史恢复 `wasm.rs`。 + +## 后果 + +- 新增规则时,要同时在 `lithe-core-rules` 的 `COMMANDS` 和 `lithe-core` 的 `CoreCommand` 里注册。`every_rules_crate_command_is_routed_by_core` 测试会拦住遗漏。 +- 测试分两层: + - 规则 crate 的测试只检查 `execute` 的结果和错误码。 + - 信封解析由 `lithe-core` 的协议测试覆盖,例如无法解析的 JSON 要返回 `invalid_request`,且 `id` 为空。 +- 本地开发和 CI 不再需要 `wasm32-unknown-unknown` 编译目标。 +- 代价:删除 wasm 后,这个 crate 与 `lithe-core` 其他模块的区别只剩依赖边界。以后如果某条规则需要 I/O,必须拆成两段:`lithe-core` 读取数据,规则 crate 只做纯计算。 + +## 验证 + +- Core 仓库:`cargo test -p lithe-core-rules` 直接调用 `execute`,`cargo test -p lithe-core --lib protocol` 经过 JSON 信封,两者跑同一份 fixture。 +- Core 仓库:`git grep -n -i wasm -- rust/crates/core-rules` 没有结果。 +- 桌面端:`scripts/desktop/desktop-go.sh test ./internal/core/...` 通过真实的 Core 调用 `workbench.chromeLayout.reduce` 等规则命令。 +- 本仓库:`node scripts/resources/test-reuse-worktree-resources.mjs` 通过,资源登记里没有 `core-rules-wasm`。 + +## 适用范围 + +规则 crate 本身在 Core 仓库的 `rust/crates/core-rules/`。本仓库里调用这些规则的入口: + +- `desktop/internal/core/keymap_gesture.go` +- `desktop/internal/core/workbench.go` +- `desktop/internal/core/chrome.go` diff --git a/.agents/notes/implemented/architecture/2026-11-05-core-rules-wasm-sync-bridge.md b/.agents/notes/implemented/architecture/2026-11-05-core-rules-wasm-sync-bridge.md deleted file mode 100644 index 103e68572e..0000000000 --- a/.agents/notes/implemented/architecture/2026-11-05-core-rules-wasm-sync-bridge.md +++ /dev/null @@ -1,93 +0,0 @@ -# Agent 笔记:同步规则桥(lithe-core-rules 与 wasm) - -状态:已实现 - -## 先说结论 - -少数必须“同步”执行的小规则(例如双击 Shift 手势,每个按键事件都要立刻出结果)放进新的纯 Rust crate -`rust/lithe-core-rules`。`lithe-core` 依赖它,macOS 通过原来的 FFI(Swift 调用 Rust 的 C 接口)调用; -同一份源码再编译成 wasm(WebAssembly,浏览器可运行的二进制),Windows 前端在启动时异步加载一次,之后同步调用。 -规则只有一份源码,不再在 Swift 和 TypeScript 各写一遍再靠 fixture 对照。 - -## 问题 - -Issue #1662 要求把两端重复的确定性逻辑下沉到 Core。Windows 前端调用 Core 只有异步的 Tauri `invoke`, -而几条规则卡在同步热路径上,下沉不了:LSP-16 在 zustand 的 `set()` 里同步规范化 pane 树;WS-04 在文件树渲染时 -同步判断隐藏;WS-17 在每个按键事件上同步运行。macOS 通过 FFI 同步调用 Core,没有这个问题。 -结果是这类规则只能两端各留一份实现,只靠共享 fixture 防止走样,而这本身就是 #1662 想消除的重复。 - -## 决策 - -- **新 crate `lithe-core-rules`**:只依赖 serde 和 serde_json,不碰文件系统、进程、线程、时钟(时间由调用方传入), - 能编译到 `wasm32-unknown-unknown`。规则以“状态 + 事件 + 时间戳 → 新状态 + 结果”的纯函数表达,状态由宿主持有。 -- **命令仍是 Core 命令**:`lithe-core` 的 JSON 分发把这些命令转给 crate,命令名、请求/响应 envelope(信封)和 - 错误码与其他 Core 命令一致,例如 `keymap.modifierGestureStep`。macOS 和 Windows 的 Rust 后端走原通道。 -- **wasm ABI 不用 wasm-bindgen**:只导出 `lithe_rules_alloc`、`lithe_rules_dealloc`、`lithe_rules_execute`、 - `lithe_rules_result_len` 四个 `extern "C"` 函数,输入输出都是 JSON 字节,复用 Core 的 envelope。 -- **启动时异步加载**:Chromium(WebView2)不允许主线程同步编译大于 4 KB 的 wasm,所以 - `windows/tauri/src/core/core-rules.ts` 的 `initializeCoreRules()` 在 `main.tsx` 里先异步 instantiate, - 成功后才渲染 React;之后 `executeCoreRuleSync(command, payload)` 全部同步。加载失败显示本地化错误 - (`coreRules.initFailed`),**不回退到 TypeScript 算法**。 -- **WS-17 作为首个端到端迁移**:Swift `DoubleShiftGestureRecognizer` 和 TS `double-shift-recognizer.ts` 只剩薄适配层 - (转换原生事件、保存 Core 返回的状态、把 `triggered` 变成动作)。macOS 每次事件一次同步 FFI,body 约 100 字节, - `keymap.*` 不进请求追踪;按键速度下可以接受。 -- **LSP-16 编辑器分组成员状态**:`editor.workbenchState.reduce` 在 `lithe-core-rules` 里定义取两端并集的规范“组成员状态” - (每组:有序去重的成员、选中项、MRU、固定、预览),动作为 normalize、open、close、activate、move、reorder、固定、预览和 mergeGroup, - 返回新状态和 `removedGroupIds`。macOS 把 `items`、`placements`、`groupSelections` 转成规范状态(MRU、固定、预览传空值), - Windows 把每个 `PaneGroup` 转成规范组,两端旧规则已删除;布局树、拆分方向和比例仍在各自平台,只按 `removedGroupIds` 修剪。 - 两端在“选中项离开分组”时的既有行为不同(macOS 回落到第一个标签,Windows 选中相邻标签),用请求里的 `selectionFallback` - (`first` / `adjacent`)保留,不改用户可见行为。fixture 为 `Lithe-core-rust/rust/fixtures/editor/workbench-state-v1.json`。 -- **WS-04 隐藏路径规则**(已迁移规则):内置默认列表、glob 匹配和“目录名/文件”的区别只在 - `rust/lithe-core-rules/src/visibility.rs`。Core 的 `files.rs` 直接复用这份代码,不再有第二份;macOS 经 - `workspace.classifyVisibility`(按一批路径一次调用)和 `workspace.visibilityDefaults` 同步 FFI 调用,Windows 同样经 wasm。 - `LitheCoreContracts` 不链接 Rust bridge,所以只定义 `FileVisibilityEngine` 协议,由 App 里的 - `RustFileVisibilityEngine` 实现,按 ObjC 类名在首次使用时发现,使 App 和链接了 App 的测试宿主无需关心安装顺序。 - 用户只保存自己的条目,内置规则由 Core 补上;`!` 条目关闭内置规则。结果里的 `watchedDespiteHiding` 表示 - `.lithe` 配置目录“树里隐藏、事件仍要监听”。Windows 文件树按目录批量分类,结果按“目录 + 规则版本”缓存。 - `workspace.classifyVisibility` 和 `workspace.visibilityDefaults` 不进请求追踪。 - 共享 fixture:`Lithe-core-rust/rust/fixtures/workspace/visibility-v1.json`。 - -## 边界 - -只放**纯计算、体量小、处在同步热路径上**的规则。凡是涉及 I/O、进程、文件、网络、长耗时或大数据的逻辑, -仍放 `lithe-core` 并走异步 IPC。判断方法:如果 Windows 调用方可以 `await`,就不要放进这个 crate。 -不要把它当成第二个 Core 来堆功能;wasm 体积会拖慢每次启动。 - -## 考虑过的备选方案 - -- **Windows pane store 全部改为异步**:`set()` 里不能 `await`,要重写所有读写 store 的组件并处理中间状态竞态, - 风险和范围远大于这几条规则,被否决。 -- **TS 与 Swift 各留一份算法,靠共享 fixture 对照**:这是迁移前的做法。fixture 只能发现已写入的用例, - 新分支仍会漂移,且违反“可共享逻辑进 Core”的规则,被否决。 -- **引入 wasm-bindgen**:需要额外工具链(wasm-bindgen-cli)、生成胶水 JS,版本需与依赖严格匹配; - 我们只需要 JSON 进 JSON 出,手写四个 C 函数更小、更可审计,被否决。 - -## 构建与 CI - -- ~~`scripts/windows/prepare/prepare-core-rules-wasm.mjs`~~(脚本已随旧客户端移除) 把 `lithe_core_rules.wasm` 编译(release,`opt-level="s"`、LTO、strip) - 并放到 `windows/tauri/public/core-rules/`。该目录被 `.gitignore` 忽略,**不提交**。 -- 接入 Windows `dev`、`build`(`desktop:build` 的 beforeBuildCommand 经 `bun run build` 间接包含)、`ci-windows.yml` - 前端 job(安装 `wasm32-unknown-unknown` target 并构建)、`release-windows.yml`、`release-preview-windows.yml`。 - bun 测试辅助 `src/test-utils/core-rules.ts` 在产物缺失或旧于源码时调用同一个脚本重建。 -- 工作树资源复用:产物没有可靠的 identity stamp,登记为不可复用的 `core-rules-wasm`,各工作树自行重建(几秒)。 -- 运行时只读:wasm 是打包进前端资源的只读输入,运行时不写入,不影响代码签名和 Sparkle delta。 -- 注释检查 `verify-rust-core-comments.sh`、rustfmt、日志检查和 Rust 单测已把新 crate 纳入覆盖范围。 - -## 后果 - -- 新增规则要在 `lithe-core-rules` 的 `COMMANDS` 和 `lithe-core` 的 `CoreCommand` 同时注册; - `every_rules_crate_command_is_routed_by_core` 测试会拦截遗漏。 -- Windows 本地开发需要 `rustup target add wasm32-unknown-unknown`;缺失时脚本给出明确提示。 -- 当前 wasm 体积约 141 KB(release,未压缩)。 - -## 验证 - -- `cargo test -p lithe-core-rules` 与 `cargo test -p lithe-core --lib protocol`:同一份 fixture 经 JSON envelope 逐步驱动。 -- `cargo build -p lithe-core-rules --target wasm32-unknown-unknown --release` 成功,且产物经 bun 测试真实加载。 -- `bun` 测试 `double-shift-recognizer.test.ts` 与 `core-rules.test.ts` 通过 wasm 跑同一份 - `Lithe-core-rust/rust/fixtures/keymap/modifier-gesture-v1.json`;macOS `KeymapTerminalCoreFixtureTests` 通过真实 FFI 跑它。 -- `bun run build` 产物中包含 `core-rules/lithe_core_rules.wasm`。真实 Windows WebView2 加载需在 Windows 机器上确认。 - -## 适用范围 - -适用于所有需要在 Windows 前端同步执行的纯规则。第二阶段计划迁入 LSP-16(pane 树规范化)和 WS-04(隐藏判断)。 diff --git a/.agents/notes/implemented/architecture/2026-11-11-plugin-contract-single-source-in-core.md b/.agents/notes/implemented/architecture/2026-11-11-plugin-contract-single-source-in-core.md index 1955843725..d81550d992 100644 --- a/.agents/notes/implemented/architecture/2026-11-11-plugin-contract-single-source-in-core.md +++ b/.agents/notes/implemented/architecture/2026-11-11-plugin-contract-single-source-in-core.md @@ -45,7 +45,7 @@ Core 的 `shared/` 下只保留 `plugins/`。本仓库和 Lithe Store 都不再 ### 2. 同一个 Core PR 完成全部登记 -改 `shared/plugins/contract/v1/`、`rust/lithe-core/src/plugins/capabilities.rs` 或 `rust/lithe-core/src/lsp/interface/plugin_function.rs` 的 Core PR,同时完成这些事: +改 `shared/plugins/contract/v1/`、`rust/crates/core/src/plugins/capabilities.rs` 或 `rust/crates/core/src/lsp/interface/plugin_function.rs` 的 Core PR,同时完成这些事: - 更新 [插件协议更新记录](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/reference/protocol-changelog.md),写明合入日期、PR、修改人和改了哪个协议或 API。 - 新增宿主方法时,在 [API 总表](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/reference/api-catalog.md) 的中英方法表和更新记录的“宿主方法(按 API 编号)”索引里各加一行。 diff --git a/.agents/notes/implemented/bug-fix/2026-09-15-external-document-changes-and-guarded-save.md b/.agents/notes/implemented/bug-fix/2026-09-15-external-document-changes-and-guarded-save.md index f8a81c7fad..b386502cd6 100644 --- a/.agents/notes/implemented/bug-fix/2026-09-15-external-document-changes-and-guarded-save.md +++ b/.agents/notes/implemented/bug-fix/2026-09-15-external-document-changes-and-guarded-save.md @@ -321,7 +321,7 @@ WindowsRust 范围单独运行 `lithe-project`;只运行宿主不会执行依 - ~~`macos/Sources/Lithe/Application/Features/DocumentFeatureModel.swift`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Platform/MacOS/FileWatching/MacDocumentObservation.swift`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Platform/MacOS/FileSystem/MacWorkspaceFileOperations.swift`~~(已随 #1794 移除) -- `rust/lithe-core/src/project/document_lifecycle.rs` +- `rust/crates/core/src/project/document_lifecycle.rs` ## 适用范围 diff --git a/.agents/notes/implemented/bug-fix/2026-10-04-git-repository-discovery-and-selection.md b/.agents/notes/implemented/bug-fix/2026-10-04-git-repository-discovery-and-selection.md index a3bfb81e0e..ca3f5df7ea 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-04-git-repository-discovery-and-selection.md +++ b/.agents/notes/implemented/bug-fix/2026-10-04-git-repository-discovery-and-selection.md @@ -51,7 +51,7 @@ macOS 点击另一仓库的分支时,先刷新目标仓库,再设置目标 ## 验证 -- `rust/lithe-core/src/tests/git_repository_discovery.rs` 使用真实 Git 和有界 Core 调用, +- `rust/crates/core/src/tests/git_repository_discovery.rs` 使用真实 Git 和有界 Core 调用, 覆盖共享可见性 fixture、隐藏根目录、所属父仓库、真实链接工作树、扫描深度和符号链接。 - ~~`macos/Tests/LitheGitModuleTests/GitModuleTests.swift`~~(已随 #1794 移除) 覆盖普通切仓库、直接选目标分支、 旧游标归属及新历史读取失败后的旧状态清理。 diff --git a/.agents/notes/implemented/bug-fix/2026-10-08-remote-checkout-fetched-tip.md b/.agents/notes/implemented/bug-fix/2026-10-08-remote-checkout-fetched-tip.md index 7e0e915c35..aa9053c2cb 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-08-remote-checkout-fetched-tip.md +++ b/.agents/notes/implemented/bug-fix/2026-10-08-remote-checkout-fetched-tip.md @@ -37,7 +37,7 @@ IntelliJ Community `fb72b4df43aba102479eb0502d20b03586b9c5b8` 的 `GitRemoteBran ## 验证 - 共享场景 `Lithe-core-rust/rust/fixtures/git/remote-checkout-v1.json` 由真实 Git 集成测试驱动,覆盖当前/其他分支、缺失本地分支、工作区/暂存区/未跟踪文件、Force、Smart Checkout、本地独有提交和其他工作树占用。 -- `rust/lithe-core/src/tests/git_remote_checkout.rs` 验证真实 Fetch 后 HEAD、本地引用、跟踪关系与文件内容一致,并验证失败保留引用、文件、暂存区和 stash;另覆盖旧请求格式、普通本地 Checkout 与 Checkout and Rebase。 +- `rust/crates/core/src/tests/git_remote_checkout.rs` 验证真实 Fetch 后 HEAD、本地引用、跟踪关系与文件内容一致,并验证失败保留引用、文件、暂存区和 stash;另覆盖旧请求格式、普通本地 Checkout 与 Checkout and Rebase。 - ~~`windows/tauri/src/features/git/components/log/git-log-branch-actions.test.tsx`~~(已随 #1794 移除) 使用实际 API 的空成功 `message`,验证本地/远程 Checkout 在中英文下仍显示完整成功文案与所选引用名称,并刷新 Git Log。 - 运行 `.agents/skills/write-stable-tests/scripts/verify-test-stability.ps1` 和共享 Rust 的单测试计时工具;运行 ~~scripts/rust-core/verify-rust-core-comments.sh~~(随旧客户端移除)、`scripts/agent-notes/verify-agent-notes.sh`、`scripts/platform-feature-matrix/verify-platform-feature-matrix.sh`、`scripts/desktop/verify/verify-runtime-bundle-immutability.sh`。 - 用户于 2026-10-08 确认本次 Windows 改动的本地测试没有问题,作为远程 Checkout 更新与成功提示恢复的用户验收依据。macOS 编译/原生界面及其他矩阵验收场景仍需单独验证;不要把本次反馈扩大为整项能力的全平台验收。 diff --git a/.agents/notes/implemented/bug-fix/2026-10-09-jdtls-heap-ceiling-and-duplicate-maven-coordinates.md b/.agents/notes/implemented/bug-fix/2026-10-09-jdtls-heap-ceiling-and-duplicate-maven-coordinates.md index 3ca7aec7e2..5126882be4 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-09-jdtls-heap-ceiling-and-duplicate-maven-coordinates.md +++ b/.agents/notes/implemented/bug-fix/2026-10-09-jdtls-heap-ceiling-and-duplicate-maven-coordinates.md @@ -50,7 +50,7 @@ Lithe 在两条启动路径上都用 `-Xmx1024m` 启动内置 Java 语言服务 `java_start_keeps_the_heap_above_the_jdtls_constrained_memory_threshold`,从两条 启动路径的实际参数里取出 `-Xmx`,断言它严格大于 1536 MiB,防止以后为了省内存把 上限调回会触发分批导入的区间。 -4. 两端共用同一个引擎(`rust/lithe-core/src/lsp/interface/engine.rs` 的 +4. 两端共用同一个引擎(`rust/crates/core/src/lsp/interface/engine.rs` 的 `start_server`),macOS 和 Windows 同时生效,平台代码不需要改。 5. (2026-10-29 补充)堆上限抬到 2 GB 之后,JVM 默认的 G1 会长期持有接近上限的堆, diff --git a/.agents/notes/implemented/bug-fix/2026-10-14-child-processes-end-with-the-ide.md b/.agents/notes/implemented/bug-fix/2026-10-14-child-processes-end-with-the-ide.md index b68aa1ac90..1fa09a7f6a 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-14-child-processes-end-with-the-ide.md +++ b/.agents/notes/implemented/bug-fix/2026-10-14-child-processes-end-with-the-ide.md @@ -112,11 +112,11 @@ Viva 客户端(`desktop/internal/workbench/process_exit.go`)把关闭时要 - ~~`macos/Tests/LitheTests/MacProcessRunnerTests.swift`~~(已随 #1794 移除):`applicationExitKillsEveryGroupItsOwnersLeftRunning` 启动一个忽略 SIGTERM 的进程和一个带忽略 SIGTERM 后代的进程,所有者丢弃引用后调用兜底,确认两个进程组在 2 秒内消失。 - 实际应用(2026-10-14,macOS):运行 Spring Boot 配置,Java 进程监听 8080 后从菜单退出 Lithe,1 秒内 Lithe、语言服务器和 Spring Boot 进程全部消失,端口释放。修改前同样的操作会留下 Java 进程。未实测更新安装的强制退出路径。 - 旧版 macOS 测试入口已移除,见[历史脚本](https://github.com/1lck/Lithe-IDEA/blob/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/scripts/macos/test/test-macos.sh),不能把历史结果视为 Viva 验收。 -- `rust/lithe-git-host/tests/process.rs`:`process_tree_terminate_ends_the_root_and_its_descendants` 启动一个会再启动后代的进程,确认 `terminate` 返回时两者都已结束;Windows 上 `dropping_a_process_tree_ends_it_like_a_crashed_host` 只丢弃句柄,确认内核结束整组。 +- `rust/crates/git-host/tests/process.rs`:`process_tree_terminate_ends_the_root_and_its_descendants` 启动一个会再启动后代的进程,确认 `terminate` 返回时两者都已结束;Windows 上 `dropping_a_process_tree_ends_it_like_a_crashed_host` 只丢弃句柄,确认内核结束整组。 - ~~`windows/tauri/src-tauri/src/run.rs`~~(已随 #1794 移除) 测试(仅 Windows):关闭一个窗口只结束它自己的进程树、丢弃会话等同 Lithe 崩溃、原生列表按启动顺序包含全部会话。 - Windows CI 39919376382 在关闭窗口和丢弃会话两例中,根进程已退出,但立即读取的 `sysinfo` 快照仍包含后代 PID。测试改为停止前打开后代的只等待句柄,停止后分别在两秒内等待根进程和后代的退出信号;另一窗口的后代用零等待确认仍在运行。依据 [Windows 进程终止语义](https://learn.microsoft.com/en-us/windows/win32/procthread/terminating-a-process),退出进程的对象可以因尚未关闭的句柄而继续存在,进程退出信号才是结束依据。保留原来的窗口隔离、重复关闭和崩溃清理断言,不改产品停止流程。夹具的首字节就绪信号有两秒期限,失败路径和断言展开时也按所属会话清理进程树、等待退出并释放管道和句柄;不依赖任意睡眠或 PID 重查。 - Windows CI 41268131032 暴露了另一处夹具身份缺口:Job 已确认清空,但测试从同父 PID 的无序快照中任取第一个进程,无法证明所等句柄属于夹具启动的 `ping.exe`。现在要求父 PID 与进程名同时匹配且候选唯一;没有或有多个匹配时携带候选 PID、名称报错,不跳过断言。`cmd /D` 禁用用户 AutoRun,首字节仍由 ping 提供;确定性回归覆盖快照顺序、名称大小写、缺失及歧义。停止前持有句柄、窗口隔离、崩溃回收与全部等待期限不变;原日志未记录候选身份,不能据此断言误选了哪一个进程。本机不执行 Windows 测试,三个原生生命周期用例及身份选择回归由 Windows CI 验证。 -- `rust/lithe-core/src/lsp/interface/process.rs` 测试(仅 Windows):结束批处理启动的语言服务器时,脚本启动的子进程一起结束。 +- `rust/crates/core/src/lsp/interface/process.rs` 测试(仅 Windows):结束批处理启动的语言服务器时,脚本启动的子进程一起结束。 - `Lithe-core-rust/rust/fixtures/process-lifecycle/exit-plan-v1.json`、`settle-v1.json`:运行服务在退出、关闭项目、直接停止设置和崩溃恢复下的动作;macOS `ProcessLifecycleFixtureTests` 用 Swift 类型解码同一批 fixture,并覆盖提问顺序、取消和规则失败时仍询问。 - ~~`windows/tauri/src/features/window/services/run-services-exit.test.ts`~~(已随 #1794 移除):询问、取消、停止失败后重试、直接停止、后台任务不询问、Core 不可用时询问。 diff --git a/.agents/notes/implemented/bug-fix/2026-10-17-git-push-target-and-upstream-tracking.md b/.agents/notes/implemented/bug-fix/2026-10-17-git-push-target-and-upstream-tracking.md index f2f68a2f78..fbe0c05f50 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-17-git-push-target-and-upstream-tracking.md +++ b/.agents/notes/implemented/bug-fix/2026-10-17-git-push-target-and-upstream-tracking.md @@ -50,15 +50,15 @@ macOS 的界面(推送弹窗与提交并推送审阅单)已接入,但**尚 ## 验证 -- `rust/lithe-core/tests/git_push.rs` 覆盖:新建分支无 upstream、检出远端分支仍建立跟踪、本地起点不产生 upstream、异名未确认被拒、确认 `publish` 与 `upstream` 各自的落点、旧调用方省略 `targetKind` 仍可推送、`targetKind` 给错仍被拒、无 upstream 分支的预览仍列出自身提交;以及按选择预览的目标分支、跟踪 OID 与 `createsRemoteBranch`、确认后 upstream 被改指另一分支时已审阅的推送被判过期、选择与预览不一致被判过期、`--force-with-lease` 作用在所选 upstream 分支及其 OID 上、对非异名分支忽略 `pushTarget`。 -- `rust/lithe-core/src/tests/git_workspace_commit.rs` 覆盖:异名分支在提交前被询问且不产生提交、确认值随计划传递并在 `/` 分隔的 upstream 上保持原配置、多仓库逐个提问与确认、重试时恢复并重新校验确认值、upstream 在确认后移动会再次提问。 +- `rust/crates/core/tests/git_push.rs` 覆盖:新建分支无 upstream、检出远端分支仍建立跟踪、本地起点不产生 upstream、异名未确认被拒、确认 `publish` 与 `upstream` 各自的落点、旧调用方省略 `targetKind` 仍可推送、`targetKind` 给错仍被拒、无 upstream 分支的预览仍列出自身提交;以及按选择预览的目标分支、跟踪 OID 与 `createsRemoteBranch`、确认后 upstream 被改指另一分支时已审阅的推送被判过期、选择与预览不一致被判过期、`--force-with-lease` 作用在所选 upstream 分支及其 OID 上、对非异名分支忽略 `pushTarget`。 +- `rust/crates/core/src/tests/git_workspace_commit.rs` 覆盖:异名分支在提交前被询问且不产生提交、确认值随计划传递并在 `/` 分隔的 upstream 上保持原配置、多仓库逐个提问与确认、重试时恢复并重新校验确认值、upstream 在确认后移动会再次提问。 - ~~`windows/tauri`~~(已随 #1794 移除) 的 `git-push-api.test.ts`、`git-push-target-prompt.test.tsx`、`git-workspace-commit-workflow.test.ts`、`git-commit-panel.test.tsx`、`git-commit-panel-push-target.test.tsx` 覆盖:预览携带 `pushTarget`、普通“提交并推送”直接到达工作流、提问先于审阅与提交、答案累加与取消、逐仓库回答并绑定远端分支。 - `Lithe-core-rust/rust/contracts/rust-core-api.md` 记录 `targetKind`、`createsRemoteBranch`、预览与推送的 `pushTarget`、`pushTargetQuestions` 与 `pushTargets`。 - ~~`macos/Tests/LitheTests/GitPushReviewBridgeTests.swift`~~(已随 #1794 移除) 用真实 Core 和本地裸远端覆盖:异名上游的预览为 `divergent`;选 `publish` 后目的地是同名远端分支并创建它、远端 `main` 不变;选 `upstream` 只更新异名分支;预览之后仓库又有新提交时推送被拒绝并带 Core 的“预览已过期”信息(Core 把拒绝放在 `operationError` 而不是退出码里,原生层必须检查它);“提交并推送”先返回问题、带 `pushTargets` 重新 prepare 后问题消失,逐步执行后只更新所选分支。 - ~~`macos/Tests/LitheTests/GitPushDialogPresentationTests.swift`~~(已随 #1794 移除) 覆盖弹窗状态:异名上游在选择前不可推送、选择绑定到看到的目的地并在目的地变化时作废、推送发出的恰是审阅的预览与选择、被拒绝后重新加载并显示原因、没有新提交的发布分支仍可推送、无内容时不可推送、选中提交会加载其改动文件。 - ~~`macos/Tests/LitheGitModuleTests/GitModuleTests.swift`~~(已随 #1794 移除) 覆盖:预览与审阅后的推送经服务层透传,推送失败显示原因并清除忙碌状态;“提交并推送”在 Core 不要求确认时也先停在审阅单、不执行任何步骤;异名问题阻止继续、答案随请求与后续确认一起发给 Core、问题被再次提出时旧答案作废;`pushTargets` 与 `pushTargetQuestions` 的线格式往返。 - `AppLocalizationTests.pushDestinationUsesTheRequestedLanguage` 覆盖弹窗新增文案的中英文。 -- 运行 `scripts/platform-feature-matrix/verify-platform-feature-matrix.sh`、`scripts/agent-notes/verify-agent-notes.sh`、`cargo test --manifest-path rust/lithe-core/Cargo.toml --test git_push` 与 `--lib git`。macOS 通过 ~~scripts/macos/test/test-macos.sh --no-parallel --filter~~(随旧客户端移除) 运行了上述相关套件(Rust Core 已链接);完整套件在本机并行运行时有与本变更无关的超时类用例失败,未作为通过依据。Windows 真机界面未在本次变更中运行。 +- 运行 `scripts/platform-feature-matrix/verify-platform-feature-matrix.sh`、`scripts/agent-notes/verify-agent-notes.sh`、`cargo test --manifest-path rust/crates/core/Cargo.toml --test git_push` 与 `--lib git`。macOS 通过 ~~scripts/macos/test/test-macos.sh --no-parallel --filter~~(随旧客户端移除) 运行了上述相关套件(Rust Core 已链接);完整套件在本机并行运行时有与本变更无关的超时类用例失败,未作为通过依据。Windows 真机界面未在本次变更中运行。 ## 适用范围 diff --git a/.agents/notes/implemented/bug-fix/2026-10-19-spring-index-concurrency-boundaries.md b/.agents/notes/implemented/bug-fix/2026-10-19-spring-index-concurrency-boundaries.md index a281c05eed..07b5acbc27 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-19-spring-index-concurrency-boundaries.md +++ b/.agents/notes/implemented/bug-fix/2026-10-19-spring-index-concurrency-boundaries.md @@ -123,7 +123,7 @@ ## 验证 -- `cargo test --manifest-path rust/lithe-core/Cargo.toml --lib spring` +- `cargo test --manifest-path rust/crates/core/Cargo.toml --lib spring` 覆盖并发读者共享一次扫描、刷新只接受到达之后开始的扫描、扫描途中到达的刷新 会重扫、取消等待和取消扫描。并发用例在等待者确实持有槽位之后才放行扫描者。 - `node .agents/skills/write-stable-tests/scripts/run-bun-tests-with-timing.mjs --working-directory windows/tauri -- src/features/spring/hooks/use-spring-index.test.tsx` diff --git a/.agents/notes/implemented/bug-fix/2026-10-21-git-large-untracked-directories.md b/.agents/notes/implemented/bug-fix/2026-10-21-git-large-untracked-directories.md index e67fc6b7b4..73481581f0 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-21-git-large-untracked-directories.md +++ b/.agents/notes/implemented/bug-fix/2026-10-21-git-large-untracked-directories.md @@ -15,7 +15,7 @@ ## 决策 -**Core 的汇总规则**(`rust/lithe-core/src/git/untracked_directories.rs`): +**Core 的汇总规则**(`rust/crates/core/src/git/untracked_directories.rs`): - `git.status` 新增可选参数 `summarizeUntrackedDirectories`。打开后改用 Git 的 `--untracked-files=normal` 视图,Git 在每个整体未跟踪的目录处停下,只报告 `dir/`。 - 对这些目录,Core 用一次 `git ls-files --others --exclude-standard` 拿到其中的文件,再逐个决定:超过 100 个文件就报告成一条汇总(`path` 以 `/` 结尾并带 `untrackedFileCount`);不超过 100 个文件仍按文件逐条报告,所以新建的小源码目录照常显示。 diff --git a/.agents/notes/implemented/bug-fix/2026-10-22-project-tree-natural-name-order.md b/.agents/notes/implemented/bug-fix/2026-10-22-project-tree-natural-name-order.md index bbab58dff1..1597fc6cfa 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-22-project-tree-natural-name-order.md +++ b/.agents/notes/implemented/bug-fix/2026-10-22-project-tree-natural-name-order.md @@ -23,7 +23,7 @@ IDEA 的项目视图用 `AlphaComparator` 比较同级节点,而它调用的 ### 正确做法 -- Rust Core 在 `rust/lithe-core/src/project/file_name_order.rs` 提供 `FileNameKey`,`visible_children` 在 `ChildOrder::Tree` 下用 `sort_by_cached_key` 排序;每个名字只转换一次,大目录排序不会按比较次数分配内存。 +- Rust Core 在 `rust/crates/core/src/project/file_name_order.rs` 提供 `FileNameKey`,`visible_children` 在 `ChildOrder::Tree` 下用 `sort_by_cached_key` 排序;每个名字只转换一次,大目录排序不会按比较次数分配内存。 - `visible_children` 必须由调用方说明要哪种顺序(`ChildOrder`):只有 `workspace.listDirectories` 使用 `Tree`;快照(`scan_node`、`collect_snapshot_files`)和搜索索引使用 `Traversal`,仍按小写名字排序。 - Swift 在 `NaturalNameOrder`(`LitheCoreContracts`)里持有算法。兜底扫描用 `sortedAsProjectTreeSiblings`,插入文件用 `compareFileNames`;Git 的分支名排序(`GitGraphHeadOrdering.naturalCompare`,不带 `likeFileNames`)也委托给它,不再保留第二份拷贝。 - 新增或调整规则时先改 `Lithe-core-rust/rust/fixtures/workspace/file-name-order-v1.json`,再让 Rust 和 Swift 测试一起通过。 diff --git a/.agents/notes/implemented/bug-fix/2026-11-03-git-history-author-timezones.md b/.agents/notes/implemented/bug-fix/2026-11-03-git-history-author-timezones.md index 7bd4d63f6c..a1c96c3241 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-03-git-history-author-timezones.md +++ b/.agents/notes/implemented/bug-fix/2026-11-03-git-history-author-timezones.md @@ -29,7 +29,7 @@ Core 一次处理最多 4,096 条,macOS 在后台分批并丢弃过期结果 ## 验证 -- `rust/lithe-core/src/tests/git.rs` 与 `Lithe-core-rust/rust/fixtures/git/history-date-query-v1.json`:东西时区同一瞬间、边界包含/排除、未知偏移回退、夏令时重复小时。 +- `rust/crates/core/src/tests/git.rs` 与 `Lithe-core-rust/rust/fixtures/git/history-date-query-v1.json`:东西时区同一瞬间、边界包含/排除、未知偏移回退、夏令时重复小时。 - ~~`macos/Tests/LitheTests/GitStatusObservationTests.swift`~~(已随 #1794 移除)、`GitLogDatePresetTests.swift` 与 `GitGraphInteractionTests.swift`:真实 Git 时间、功能模型筛选、23/25 小时日和缓存身份。 - ~~`windows/tauri/src/platform/core-result-adapter.history.test.ts`~~(已随 #1794 移除) 与 `windows/tauri/src/features/git/utils/git-log-date.test.ts`:历史首页、分页及日期显示使用 Core 的绝对时间。 - ~~./scripts/rust-core/verify-rust-core.sh~~(随旧客户端移除)、~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除)、`./scripts/agent-notes/verify-agent-notes.sh` 和 `./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh`;原生工作台与 Windows 系统格式实机验收仍 pending。 diff --git a/.agents/notes/implemented/bug-fix/2026-11-03-saved-stash-core-file-sections.md b/.agents/notes/implemented/bug-fix/2026-11-03-saved-stash-core-file-sections.md index 97ea940da7..4d7f716002 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-03-saved-stash-core-file-sections.md +++ b/.agents/notes/implemented/bug-fix/2026-11-03-saved-stash-core-file-sections.md @@ -29,7 +29,7 @@ macOS 和 Windows 的 Stash、Shelf 及 Windows 普通 Git 差异使用 Rust Cor ## 验证 -- `rust/lithe-core/src/tests/git_patch_exchange.rs`:真实临时仓库覆盖重命名、中文名称、未跟踪文件、二进制、Git 前缀配置以及错误的请求模式。 +- `rust/crates/core/src/tests/git_patch_exchange.rs`:真实临时仓库覆盖重命名、中文名称、未跟踪文件、二进制、Git 前缀配置以及错误的请求模式。 - ~~`macos/Tests/LitheTests/GitStatusObservationTests.swift`~~(已随 #1794 移除):真实 Swift 桥接、Core 和 Git 验证已跟踪、未跟踪与二进制 Stash 文件及展示行。 - ~~./scripts/rust-core/verify-rust-core.sh~~(随旧客户端移除)、~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除)、`./scripts/agent-notes/verify-agent-notes.sh` 和 `./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh`。 - 大补丁解析与 UI 跨进程加载需分别测量;真实 Windows 原生界面和平台矩阵验收保持待验证。 diff --git a/.agents/notes/implemented/bug-fix/2026-11-03-windows-code-action-diagnostic-roundtrip.md b/.agents/notes/implemented/bug-fix/2026-11-03-windows-code-action-diagnostic-roundtrip.md index 7b3e6f698e..5cd253995b 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-03-windows-code-action-diagnostic-roundtrip.md +++ b/.agents/notes/implemented/bug-fix/2026-11-03-windows-code-action-diagnostic-roundtrip.md @@ -42,7 +42,7 @@ Issue #1662 的 LSP-01 / BUG-3 指出 `severity`(诊断等级)从整数变 - `Lithe-core-rust/rust/fixtures/lsp/diagnostic-code-actions-v1.json` 同时供 Rust 与 Windows 回归测试使用,覆盖 1~4 级和空等级、未知标签、关联位置。 - ~~`windows/tauri/src/features/editor/lsp/lsp-client-code-actions.test.ts`~~(已随 #1794 移除) 覆盖批次接收、store 与请求数据。 - ~~`windows/tauri/src/platform/lsp-core-adapter.test.ts`~~(已随 #1794 移除) 覆盖 Core 事件与请求边界。 -- `rust/lithe-core/src/lsp/tests.rs` 的 `client_diagnostic_code_action_fixture_preserves_core_fields` 验证 Core 反序列化以及协议往返。 +- `rust/crates/core/src/lsp/tests.rs` 的 `client_diagnostic_code_action_fixture_preserves_core_fields` 验证 Core 反序列化以及协议往返。 - 在真实项目中分别通过问题面板右键、灯泡和快捷键执行快速修复;自动化通过不代表真机工作流已验收。 - 运行 `./scripts/agent-notes/verify-agent-notes.sh`。 diff --git a/.agents/notes/implemented/bug-fix/2026-11-03-windows-keymap-context-validation.md b/.agents/notes/implemented/bug-fix/2026-11-03-windows-keymap-context-validation.md index d00be8e313..0899f0940c 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-03-windows-keymap-context-validation.md +++ b/.agents/notes/implemented/bug-fix/2026-11-03-windows-keymap-context-validation.md @@ -57,7 +57,7 @@ Windows 每个窗口最多缓存 256 条条件,最多同时保留 16 个原生 ## 验证 - `./.agents/skills/write-stable-tests/scripts/test-stability-windows.ps1 -Scope Frontend` -- `cargo test --manifest-path rust/lithe-core/Cargo.toml --lib context_` +- `cargo test --manifest-path rust/crates/core/Cargo.toml --lib context_` - `node scripts/i18n/generate-i18n.mjs --check` - `node scripts/agent-notes/verify-agent-notes.mjs` diff --git a/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md b/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md index 2d925c899b..e3b2a4f313 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md +++ b/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md @@ -30,4 +30,4 @@ GitHub 设备授权的下一步、退避间隔和过期判定由 Core 计算, ## 适用范围 -`rust/lithe-core/src/github/mod.rs`、`macos/Sources/Lithe/Services/GitHub/GitHubService.swift` 和未来接入设备授权的 Windows 适配器。 +`rust/crates/core/src/github/mod.rs`、`macos/Sources/Lithe/Services/GitHub/GitHubService.swift` 和未来接入设备授权的 Windows 适配器。 diff --git a/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md b/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md index 5aaa7c4daa..a4c380bc18 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md +++ b/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md @@ -30,4 +30,4 @@ Core 生成安全的本地名称并检查同名、父级及子级引用;预览 ## 适用范围 -`rust/lithe-core/src/git/github_checkout.rs`、`rust/lithe-core/src/github/mod.rs`、`macos/Sources/Lithe/Platform/MacOS/GitHub/MacGitHubGitOperations.swift` 和 GitHub 拉取请求界面。Windows GitHub 产品入口尚未启用;启用时也应使用同一计划和安全执行入口。 +`rust/crates/core/src/git/github_checkout.rs`、`rust/crates/core/src/github/mod.rs`、`macos/Sources/Lithe/Platform/MacOS/GitHub/MacGitHubGitOperations.swift` 和 GitHub 拉取请求界面。Windows GitHub 产品入口尚未启用;启用时也应使用同一计划和安全执行入口。 diff --git a/.agents/notes/implemented/feature/2026-09-13-macos-git-graph-intellij-layout.md b/.agents/notes/implemented/feature/2026-09-13-macos-git-graph-intellij-layout.md index 7d6f472f9e..9f33fdbae9 100644 --- a/.agents/notes/implemented/feature/2026-09-13-macos-git-graph-intellij-layout.md +++ b/.agents/notes/implemented/feature/2026-09-13-macos-git-graph-intellij-layout.md @@ -640,4 +640,4 @@ Lithe 在工作台视图中持有 `WorkbenchToolContentStore`,本次用于 Git ## 后续:布局下沉到 Rust Core(#1662 GIT-18/19) -本文描述的 DFS、head 排序、定色、过滤后的虚线拓扑和 missing parents 算法已搬进 `rust/lithe-core/src/git/graph.rs`,由 `git.graphProjection` 统一提供,规则以 `Lithe-core-rust/rust/fixtures/git/graph-projection-v1.json` 为准。文中提到的 Swift/TS 实现文件已删除;两端只保留绘制、像素和颜色 ID 到主题色的映射。 +本文描述的 DFS、head 排序、定色、过滤后的虚线拓扑和 missing parents 算法已搬进 `rust/crates/core/src/git/graph.rs`,由 `git.graphProjection` 统一提供,规则以 `Lithe-core-rust/rust/fixtures/git/graph-projection-v1.json` 为准。文中提到的 Swift/TS 实现文件已删除;两端只保留绘制、像素和颜色 ID 到主题色的映射。 diff --git a/.agents/notes/implemented/feature/2026-09-17-standalone-java-compile-then-run.md b/.agents/notes/implemented/feature/2026-09-17-standalone-java-compile-then-run.md index 8b753d5db3..4520e0bc66 100644 --- a/.agents/notes/implemented/feature/2026-09-17-standalone-java-compile-then-run.md +++ b/.agents/notes/implemented/feature/2026-09-17-standalone-java-compile-then-run.md @@ -89,7 +89,7 @@ - ~~./scripts/macos/test/test-macos.sh~~(随旧客户端移除);Windows 在 Parallels VM 上 ~~./scripts/windows/build/build-windows.ps1 -Configuration Release~~(随旧客户端移除) 与 `cargo test --manifest-path windows/tauri/src-tauri/Cargo.toml` -- Rust 用例:`rust/lithe-core/src/tests/run_configuration.rs` 的 +- Rust 用例:`rust/crates/core/src/tests/run_configuration.rs` 的 `plain_java_main_uses_the_jdk_without_maven`、 `nested_maven_generation_keeps_standalone_java_on_the_jdk`、 `current_file_compiles_then_launches_by_derived_class_name`、 @@ -101,7 +101,7 @@ ## 适用范围 -- Rust 核心:`rust/lithe-core/src/execution/configuration.rs`(`create_launch_plan`)、 +- Rust 核心:`rust/crates/core/src/execution/configuration.rs`(`create_launch_plan`)、 `rust/lithe-core/src/languages/java.rs`(`standalone_launch_class`) - 契约:`Lithe-core-rust/rust/contracts/rust-core-api.md`(createLaunchPlan 段) - macOS 宿主:`RunService`、`RustCoreBridge`、`ProjectRuntimeService`、 diff --git a/.agents/notes/implemented/feature/2026-09-20-run-configuration-discovery-quality.md b/.agents/notes/implemented/feature/2026-09-20-run-configuration-discovery-quality.md index 7d1dd60422..2c47789744 100644 --- a/.agents/notes/implemented/feature/2026-09-20-run-configuration-discovery-quality.md +++ b/.agents/notes/implemented/feature/2026-09-20-run-configuration-discovery-quality.md @@ -31,7 +31,7 @@ category 分组展示。 ### 1. 配置分「项目」和「基础设施」两类 -`RunCategory`(`rust/lithe-core/src/execution/types.rs`)取值 `project` 或 +`RunCategory`(`rust/crates/core/src/execution/types.rs`)取值 `project` 或 `infrastructure`,默认 `project`,序列化时省略默认值,所以已有的 `generated.json` 内容不变。docker-compose 探测出来的服务和整栈条目标记为 `infrastructure`。 @@ -180,10 +180,10 @@ Swift、PHP 等已有明确 provider 的配置可归类,但这不代表增加 ## 适用范围 -- Rust Core:`rust/lithe-core/src/execution/types.rs`、 - `rust/lithe-core/src/execution/detectors/mod.rs`、 - `rust/lithe-core/src/execution/detectors/compose.rs`、 - `rust/lithe-core/src/execution/configuration.rs`、 +- Rust Core:`rust/crates/core/src/execution/types.rs`、 + `rust/crates/core/src/execution/detectors/mod.rs`、 + `rust/crates/core/src/execution/detectors/compose.rs`、 + `rust/crates/core/src/execution/configuration.rs`、 `rust/lithe-core/src/languages/java.rs`、 `rust/lithe-core/src/languages/java_syntax.rs` - Windows:`windows/tauri/src/features/run/utils/run-configuration.ts`、 diff --git a/.agents/notes/implemented/feature/2026-09-22-windows-ai-commit-design.md b/.agents/notes/implemented/feature/2026-09-22-windows-ai-commit-design.md index 607c52c98e..09eaa0bd71 100644 --- a/.agents/notes/implemented/feature/2026-09-22-windows-ai-commit-design.md +++ b/.agents/notes/implemented/feature/2026-09-22-windows-ai-commit-design.md @@ -78,7 +78,7 @@ Codex/Claude 的 OAuth 登录不等同于可用 API 密钥,本次不实现 CLI ## 验证 -- `cargo test --manifest-path rust/lithe-core/Cargo.toml ai::tests --lib`:配置解析、凭据不序列化、协议映射、截断和错误边界。 +- `cargo test --manifest-path rust/crates/core/Cargo.toml ai::tests --lib`:配置解析、凭据不序列化、协议映射、截断和错误边界。 - `./.agents/skills/write-stable-tests/scripts/verify-test-stability.ps1`:测试稳定性静态检查。 - `./.agents/skills/write-stable-tests/scripts/test-stability-windows.ps1 -Scope Frontend`:前端行为和单测试计时。 - `./.agents/skills/write-stable-tests/scripts/test-stability-windows.ps1 -Scope SharedRust`:共享 Rust 的计时验证。 diff --git a/.agents/notes/implemented/feature/2026-09-24-macos-git-log-multi-repository-groups.md b/.agents/notes/implemented/feature/2026-09-24-macos-git-log-multi-repository-groups.md index 29a5517c2c..5a3a579388 100644 --- a/.agents/notes/implemented/feature/2026-09-24-macos-git-log-multi-repository-groups.md +++ b/.agents/notes/implemented/feature/2026-09-24-macos-git-log-multi-repository-groups.md @@ -157,7 +157,7 @@ rename / delete)都只针对一个活动仓库,闭包直接从活动 `gitRep 先显示当前上游和一个“Stop Tracking Branch”清除项,没有远程分支时显示禁用的占位项。 写操作复用 Rust Core 已经支持的 `setUpstream` / `unsetUpstream`(见 -`rust/lithe-core/src/git/mod.rs`,Windows 端 `git-branches-api.ts` 已在用),macOS 侧只补 +`rust/crates/core/src/git/mod.rs`,Windows 端 `git-branches-api.ts` 已在用),macOS 侧只补 接线:`GitOperations` 协议 + `RustGitOperations` 实现(`setUpstream(branch:to:)` 把上游 引用和分支名传给 Core),`GitService`、`GitFeatureModel.setUpstream` / `unsetUpstream` 依次透传。**没有改动 Rust Core**,也没有新增 Core 命令。 @@ -255,7 +255,7 @@ body 都会重建,比较它会让所有行每帧都重建)。现在把它从 - ~~`macos/Tests/LitheTests/AppLocalizationTests.swift`~~(已随 #1794 移除) 的英 / 中对照校验扩展到新增的 Copy Branch Name、Tracking Branch、Stop Tracking Branch、No Remote Branches 与 soft / mixed / hard 三档重置的标题和确认文案。 -- 上游写操作复用 Core 已有的 `setUpstream` / `unsetUpstream`(`rust/lithe-core` 内已有测试 +- 上游写操作复用 Core 已有的 `setUpstream` / `unsetUpstream`(`rust/crates/core` 内已有测试 `git_write` 覆盖),macOS 侧只做接线,不新增 Rust 改动。 - git 控件本地化词条(含新增的两个开关文案)纳入 `macos/Tests/LitheTests/AppLocalizationTests.swift` 的英 / 中对照校验。 @@ -276,7 +276,7 @@ body 都会重建,比较它会让所有行每帧都重建)。现在把它从 - `shared/platform-feature-matrix/features/git-multi-repository-references.json` - [旧客户端实现和原适用范围(历史版本)](https://github.com/1lck/Lithe-IDEA/blob/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/.agents/notes/implemented/feature/2026-09-24-macos-git-log-multi-repository-groups.md) -上游写操作复用 `rust/lithe-core/src/git/mod.rs` 已有的 `setUpstream` / `unsetUpstream`, +上游写操作复用 `rust/crates/core/src/git/mod.rs` 已有的 `setUpstream` / `unsetUpstream`, 本笔记不改变这些命令的入参或契约。 不改变 `git.references`、`git.historyPage`、`workspace.repositories` 的 JSON 契约;不改提交图, diff --git a/.agents/notes/implemented/feature/2026-09-25-windows-git-graph-branch-colors.md b/.agents/notes/implemented/feature/2026-09-25-windows-git-graph-branch-colors.md index 0b7161ff09..41d02961a6 100644 --- a/.agents/notes/implemented/feature/2026-09-25-windows-git-graph-branch-colors.md +++ b/.agents/notes/implemented/feature/2026-09-25-windows-git-graph-branch-colors.md @@ -297,4 +297,4 @@ ResizeObserver(浏览器按帧合并的尺寸观察器)服务已挂载行, ## 后续:布局下沉到 Rust Core(#1662 GIT-18/19) -本文描述的 DFS、head 排序、定色、过滤后的虚线拓扑和 missing parents 算法已搬进 `rust/lithe-core/src/git/graph.rs`,由 `git.graphProjection` 统一提供,规则以 `Lithe-core-rust/rust/fixtures/git/graph-projection-v1.json` 为准。文中提到的 Swift/TS 实现文件已删除;两端只保留绘制、像素和颜色 ID 到主题色的映射。 +本文描述的 DFS、head 排序、定色、过滤后的虚线拓扑和 missing parents 算法已搬进 `rust/crates/core/src/git/graph.rs`,由 `git.graphProjection` 统一提供,规则以 `Lithe-core-rust/rust/fixtures/git/graph-projection-v1.json` 为准。文中提到的 Swift/TS 实现文件已删除;两端只保留绘制、像素和颜色 ID 到主题色的映射。 diff --git a/.agents/notes/implemented/feature/2026-09-27-workspace-git-commit-plans.md b/.agents/notes/implemented/feature/2026-09-27-workspace-git-commit-plans.md index 0522951f66..43a84d1797 100644 --- a/.agents/notes/implemented/feature/2026-09-27-workspace-git-commit-plans.md +++ b/.agents/notes/implemented/feature/2026-09-27-workspace-git-commit-plans.md @@ -72,8 +72,8 @@ Git 的多个仓库没有跨仓库原子事务,已成功的提交不会因后 `macos/Tests/LitheTests/GitStatusObservationTests.swift` 的 `realGitCommitFiles` 用例通过真实 Git 验证最终索引路径、 已暂存块保留、未跟踪目录展开和复制来源隔离;`CommitDraftFeatureModelTests` 验证焦点请求保留说明与修订选项。 - 同文件暂存删除和未跟踪记录的回归用例覆盖两种返回顺序、首次与重复状态刷新,以及暂存和取消暂存都要等待全部记录确认;`macos/Tests/LitheTests/GitStatusObservationTests.swift` 通过真实 Git → Rust Core → Swift 状态刷新验证打开仓库时不闪退,实际执行暂存或取消暂存后,干净状态正确结束待确认操作。旧快照用例继续保护单记录场景。多仓库回归覆盖 A 读取成功且已干净、B 返回 nil、B 随后返回旧状态、最后成功读取干净状态的顺序,验证暂存和取消暂存期间 B 的乐观状态与提交等待保护都不提前解除。 -- `rust/lithe-core/src/git/workspace_commit/tests.rs` 覆盖干净祖先联动、关闭联动、独立嵌套仓库、过期计划、失败依赖阻塞、仅重推和外部推进后再次推送。 -- `rust/lithe-core/src/tests/git_workspace_commit.rs` 使用真实 Git 验证过期索引拒绝、子模块状态、只更新引用且不带入父文件、首次提交前取消暂存保留后续编辑,暂存后在工作树删除的文件仍可见、子仓库元数据被删除后拒绝回退父仓库,以及共享夹具序列化。真实 Git 还验证共享计划执行、推送失败后的重试、过期步骤重放拒绝、取消与成功提交返回竞争。 +- `rust/crates/core/src/git/workspace_commit/tests.rs` 覆盖干净祖先联动、关闭联动、独立嵌套仓库、过期计划、失败依赖阻塞、仅重推和外部推进后再次推送。 +- `rust/crates/core/src/tests/git_workspace_commit.rs` 使用真实 Git 验证过期索引拒绝、子模块状态、只更新引用且不带入父文件、首次提交前取消暂存保留后续编辑,暂存后在工作树删除的文件仍可见、子仓库元数据被删除后拒绝回退父仓库,以及共享夹具序列化。真实 Git 还验证共享计划执行、推送失败后的重试、过期步骤重放拒绝、取消与成功提交返回竞争。 - 使用 `write-stable-tests` 的 Rust 逐例计时入口生成 HTML/JUnit;macOS 使用该 Skill 的 macOS 计时入口。 - Windows CI 39914734587 中,逐仓库推送确认用例在未出现断言失败时达到 15.233 秒进程截止;该用例创建两份分叉仓库及远端,执行三轮准备校验和独立提交/推送。SharedRust 与真实 JDT 两个入口只给这一用例 30 秒预算,默认用例和整套截止不变,真实 Git 进程仍按原有界规则清理,不跳过确认或推送断言。 - 运行共享契约、服务边界、功能矩阵、发行包只读边界和 Agent Notes 检查。 diff --git a/.agents/notes/implemented/feature/2026-10-03-local-git-changelists.md b/.agents/notes/implemented/feature/2026-10-03-local-git-changelists.md index 3fc3a982cb..a1f08c8838 100644 --- a/.agents/notes/implemented/feature/2026-10-03-local-git-changelists.md +++ b/.agents/notes/implemented/feature/2026-10-03-local-git-changelists.md @@ -65,8 +65,8 @@ Windows 提供两个独立的 Git 设置:`showGitChangelists` 和 `showGitPare - ~~`windows/tauri/src/features/git/stores/git-changelists.store.test.ts`~~(已随 #1794 移除):两个已初始化实例交错保存后第三个实例重载、旧格式迁移、加载前禁用保护、干净路径保留、工作区/仓库/工作树隔离、重命名、损坏与保存失败、共享范围夹具。 - ~~`windows/tauri/src/features/git/components/status/git-workspace-status-panel.test.tsx`~~(已随 #1794 移除):批量暂存保护与单分组勾选。 - ~~`windows/tauri/src/features/git/components/git-commit-panel.test.tsx`~~(已随 #1794 移除):按钮、快捷键与范围传递。 -- `rust/lithe-core/src/git/workspace_commit/tests.rs`:列表限制、父引用、确认变化、重试和续接校验。 -- `rust/lithe-core/src/tests/git_workspace_commit.rs`:真实 Git 拦截范围外暂存、不改变索引和工作树、保留部分暂存、刷新前重命名。 +- `rust/crates/core/src/git/workspace_commit/tests.rs`:列表限制、父引用、确认变化、重试和续接校验。 +- `rust/crates/core/src/tests/git_workspace_commit.rs`:真实 Git 拦截范围外暂存、不改变索引和工作树、保留部分暂存、刷新前重命名。 - `Lithe-core-rust/rust/fixtures/git/changelists-reducer-v1.json`:Core 和两端适配器验证同一归属及范围结果;旧 `local-changelist-scope-v1.json` 保留旧客户端契约。 - `scripts/desktop/desktop-go.sh test -race ./internal/core -run 'Test(ChangeListsUseSharedMembershipAndScope|WorkspaceCommitScopeProtectsStagedChanges)' -count=3 -timeout=90s`:macOS 使用共享 fixture 和临时 Git 仓库验证 Core 范围、未出现在快照中的已分配文件、准备后暂存变化与 HEAD/索引不变;不是 Viva 界面或 Windows 验收。 - `scripts/desktop/desktop-go.sh test ./internal/workbench -run TestChangeLists -count=1`:Viva 界面用真实 Git 验证只提交当前列表、其他列表已暂存时拦截并提示、重名被拒后弹窗保持、删除归还默认列表、列表文件损坏时停用且不覆盖;不是 Windows 实机验收。 diff --git a/.agents/notes/implemented/feature/2026-10-04-windows-commit-file-diff-preview.md b/.agents/notes/implemented/feature/2026-10-04-windows-commit-file-diff-preview.md index df548a945c..ea5f197a8f 100644 --- a/.agents/notes/implemented/feature/2026-10-04-windows-commit-file-diff-preview.md +++ b/.agents/notes/implemented/feature/2026-10-04-windows-commit-file-diff-preview.md @@ -312,7 +312,7 @@ macOS 本次不修改,双端功能矩阵保持目标产品运行验收待验 - #1123 回归:`commit-diff-blocks.integration.test.ts` 用真实 Git 在已有文件的三个不相邻位置修改, 检查普通工作区、快照和暂存区补丁均只有一个完整 hunk;左右源行恰好出现一次,保持单调行号和三个可操作块。 -- 旧版 Git 配置回归:`rust/lithe-core/src/tests/git.rs` 在临时仓库设置非零 `diff.interHunkContext`, +- 旧版 Git 配置回归:`rust/crates/core/src/tests/git.rs` 在临时仓库设置非零 `diff.interHunkContext`, 通过 Core 的三种完整文件读取路径检查仍只返回一个 hunk、48 行单调且用户配置保持不变。 - 2026-10-05 审核修复回归:Git 与 Core 结果适配前端计时组 626 项通过。四个真实 Git EOF/CRLF 场景精确比较 @@ -328,7 +328,7 @@ macOS 本次不修改,双端功能矩阵保持目标产品运行验收待验 卸载后恢复原型属性,不修改产品行为。Windows Rust 214 项通过;Core/Git 快照、提交及监视上下文 专项与完整上下文/回退专项通过,保留各测试计时报告。 -- `rust/lithe-core/src/tests/git.rs` 的真实仓库快照回归检查 HEAD 到磁盘的完整补丁、 +- `rust/crates/core/src/tests/git.rs` 的真实仓库快照回归检查 HEAD 到磁盘的完整补丁、 读取前后 `.git` 目录修改时间不变,以及真实索引逐字节不变。原生 Commit 文件点击时核对读取完成后 块控件出现且空闲期间不持续重复刷新;浏览器可控 IPC 测试不能替代这个原生监听路径。 2026-10-05 使用独立配置的完整 Windows WebView2 开发版和真实临时仓库验证:Commit 文件列表点击后 @@ -386,4 +386,4 @@ macOS 本次不修改,双端功能矩阵保持目标产品运行验收待验 `windows/tauri/src/features/git/components/diff/commit-file-diff-preview.tsx`、 `commit-file-diff-toolbar.tsx`、`independent-commit-diff.tsx`、`independent-commit-diff-surface.ts`,以及 Git 模块的预览构造、文件导航、标签格式和异步预览 hook。 -共享只读工作区快照的临时 Git 管理目录位于 `rust/lithe-core/src/git/mod.rs`。 +共享只读工作区快照的临时 Git 管理目录位于 `rust/crates/core/src/git/mod.rs`。 diff --git a/.agents/notes/implemented/feature/2026-10-11-gradle-project-import-settings.md b/.agents/notes/implemented/feature/2026-10-11-gradle-project-import-settings.md index 10957a39f4..e9d199a817 100644 --- a/.agents/notes/implemented/feature/2026-10-11-gradle-project-import-settings.md +++ b/.agents/notes/implemented/feature/2026-10-11-gradle-project-import-settings.md @@ -50,9 +50,9 @@ Gradle 与 Maven 在导入设置上结构对称,行为可预期、可扩展。 ## 验证 -- `rust/lithe-core` 单测覆盖:初始化选项在导入前即携带 Gradle 设置、无 wrapper 描述文件时省略 wrapper 字段、无 Gradle 上下文时不下发 `java.import`、按 section 查询返回对应 Gradle 取值、叶子合并保留调用方已声明的 `offline` 与 `version`。 +- `rust/crates/core` 单测覆盖:初始化选项在导入前即携带 Gradle 设置、无 wrapper 描述文件时省略 wrapper 字段、无 Gradle 上下文时不下发 `java.import`、按 section 查询返回对应 Gradle 取值、叶子合并保留调用方已声明的 `offline` 与 `version`。 - ~~`windows/tauri/src-tauri/src/lsp.rs`~~(已随 #1794 移除) 单测覆盖:工作区指纹识别 Gradle 设置文件与 wrapper 描述文件且忽略 `gradle.properties`、编辑构建文件不改变观测结果、wrapper 版本(含转义写法)被读出且版本变化会改变指纹、根目录缺少构建文件时不判为 Gradle、仅有 `gradlew` 脚本时不认为存在 wrapper、Maven 工作区不产生 Gradle 上下文。 -- 共享 fixture `shared/fixtures/lsp/jdt-workspace-fingerprint-v1.json` 由 `rust/lithe-core` 的 `jdt_workspace_fingerprint_matches_the_shared_compatibility_fixture` 校验,含带 wrapper 版本的用例;macOS 的 `MacJdtWorkspaceStateTests` 校验编辑 `pom.xml` 后观测结果不变。 +- 共享 fixture `shared/fixtures/lsp/jdt-workspace-fingerprint-v1.json` 由 `rust/crates/core` 的 `jdt_workspace_fingerprint_matches_the_shared_compatibility_fixture` 校验,含带 wrapper 版本的用例;macOS 的 `MacJdtWorkspaceStateTests` 校验编辑 `pom.xml` 后观测结果不变。 - ~~`windows/tauri/src/features/editor/lsp/resolve-editor-lsp-launch.test.ts`~~(已随 #1794 移除) 与 `windows/tauri/src/platform/lsp-core-adapter.test.ts` 覆盖 TS 透传:有 Gradle 上下文时原样转发,无上下文时为 `null`。 - ~~scripts/rust-core/verify-rust-core.sh~~(随旧客户端移除)、~~scripts/rust-core/verify-rust-core-comments.sh~~(随旧客户端移除)、~~scripts/rust-core/verify-rust-core-layout.sh~~(随旧客户端移除) 校验 Rust 核心的格式、注释与包布局。 - `scripts/platform-feature-matrix/verify-platform-feature-matrix.sh`、`scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh` 与 `scripts/agent-notes/verify-agent-notes.sh` 校验功能矩阵与 Note 记录。 diff --git a/.agents/notes/implemented/feature/2026-10-12-plugin-marketplace.md b/.agents/notes/implemented/feature/2026-10-12-plugin-marketplace.md index b05a569d50..31f7018f82 100644 --- a/.agents/notes/implemented/feature/2026-10-12-plugin-marketplace.md +++ b/.agents/notes/implemented/feature/2026-10-12-plugin-marketplace.md @@ -10,7 +10,7 @@ Lithe 的插件管理改成和 IntelliJ IDEA 一样的“插件市场 / 已安 “官方”市场条目必须同时满足两点:来自默认源,并且带 Lithe 发布者签名。社区包也可以从磁盘 ZIP 或解包目录安装:先复制到本次操作的私有快照,再让用户确认权限和完整程序声明。市场索引校验值、本地快照摘要和发布者签名各自证明不同的事实,不能互相冒充;本地安装不会因市场出现同 ID 条目而自动变成市场管理的插件。 -对日常开发的直接影响:索引格式和校验规则只在 `Lithe-core-rust/shared/plugins/contract/v1/` 与 `rust/lithe-core/src/plugins/marketplace.rs` 定义一次;官方插件不再跟随 Lithe 发版,而是每个插件按自己的标签单独发布。 +对日常开发的直接影响:索引格式和校验规则只在 `Lithe-core-rust/shared/plugins/contract/v1/` 与 `rust/crates/core/src/plugins/marketplace.rs` 定义一次;官方插件不再跟随 Lithe 发版,而是每个插件按自己的标签单独发布。 ## 问题 @@ -136,7 +136,7 @@ Lithe 的插件管理改成和 IntelliJ IDEA 一样的“插件市场 / 已安 以下命令和验收描述针对迁移前的客户端与仓内 Core,保留为历史要求,不能当作 Viva 插件安装或宿主能力已经接通的证据。 -- `cargo test --manifest-path rust/lithe-core/Cargo.toml --lib marketplace_plugins`:索引校验、平台与 API 判断、命名空间、源地址解析、安装审查的标准答案。 +- `cargo test --manifest-path rust/crates/core/Cargo.toml --lib marketplace_plugins`:索引校验、平台与 API 判断、命名空间、源地址解析、安装审查的标准答案。 - ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除):市场 fixture 与错误码登记。 - `./.agents/skills/write-stable-tests/scripts/test-stability-macos.sh -- --filter 'PluginMarketplaceLayoutTests|PluginDetailLayoutTests|PluginSettingsLayoutTests'`:市场用内存索引驱动真实页面,覆盖中英文描述、深浅主题、窗口宽高变化、原生分隔条拖动、释放后刷新不移位,以及窄视口横向滚动到正文末端;单独保留“已安装”详情和路径控件回归。可用 `LITHE_MARKETPLACE_LAYOUT_CAPTURES` 导出市场原生视图截图;测试拥有并清理自己的偏好域和窗口。 - `node --test scripts/plugins/official-plugin-releases.test.mjs`:只为版本变化的插件生成标签,内容变化未升版本时失败;已发布未登记的版本会被重新登记。 @@ -152,7 +152,7 @@ Viva 插件安装或宿主能力已经接通的证据。 以下是迁移前的源码位置,不代表当前工作树中仍存在。 -- `rust/lithe-core/src/plugins/marketplace.rs` +- `rust/crates/core/src/plugins/marketplace.rs` - `Plugins/marketplace/` - 已迁出:原 `scripts/plugins/official-plugin-releases.mjs`。官方插件的源码、组装与发布已移出本仓库(#1495),改由各插件仓库自行构建发布([lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java)、[lithe-plugin-maven](https://github.com/Lithe-IDEA/lithe-plugin-maven)、[lithe-plugin-gradle](https://github.com/Lithe-IDEA/lithe-plugin-gradle)),Store 索引由 Lithe Store 维护。 - 已迁出:原 `.github/workflows/release-official-plugins.yml`。官方插件的源码、组装与发布已移出本仓库(#1495),改由各插件仓库自行构建发布([lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java)、[lithe-plugin-maven](https://github.com/Lithe-IDEA/lithe-plugin-maven)、[lithe-plugin-gradle](https://github.com/Lithe-IDEA/lithe-plugin-gradle)),Store 索引由 Lithe Store 维护。 diff --git a/.agents/notes/implemented/feature/2026-10-14-declarative-plugin-settings.md b/.agents/notes/implemented/feature/2026-10-14-declarative-plugin-settings.md index 447b94b373..53603286f5 100644 --- a/.agents/notes/implemented/feature/2026-10-14-declarative-plugin-settings.md +++ b/.agents/notes/implemented/feature/2026-10-14-declarative-plugin-settings.md @@ -72,8 +72,8 @@ settings v2 仍复用 v1 的启动模板展开,但新增设置注册页、项 ## 验证 ```bash -cargo test --manifest-path rust/lithe-core/Cargo.toml declarative -cargo test --manifest-path rust/lithe-core/Cargo.toml jdt +cargo test --manifest-path rust/crates/core/Cargo.toml declarative +cargo test --manifest-path rust/crates/core/Cargo.toml jdt ./scripts/architecture/verify-shared-contracts.sh ./scripts/macos/test/test-macos.sh --filter PluginSettingsTests ./scripts/macos/test/test-macos.sh --filter PluginLanguageServerLaunchResolverTests diff --git a/.agents/notes/implemented/feature/2026-10-21-declarative-native-plugin-ui.md b/.agents/notes/implemented/feature/2026-10-21-declarative-native-plugin-ui.md index 23e8bf4926..c4c1b92be4 100644 --- a/.agents/notes/implemented/feature/2026-10-21-declarative-native-plugin-ui.md +++ b/.agents/notes/implemented/feature/2026-10-21-declarative-native-plugin-ui.md @@ -153,7 +153,7 @@ Git未跟踪目录摘要和可见行缓存;这些界面仍使用完整公共 ## 验证 - ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除) -- `cargo test --manifest-path rust/lithe-core/Cargo.toml --lib native_ui_validates_version_ownership_actions_and_budgets` +- `cargo test --manifest-path rust/crates/core/Cargo.toml --lib native_ui_validates_version_ownership_actions_and_budgets` - `./.agents/skills/write-stable-tests/scripts/test-stability-macos.sh -- --filter 'PluginNativeUI|PluginWeb|WorkbenchContributionHostTests'` - `LITHE_PLUGIN_SDK_ROOT=/shared/plugins/sdk/node node --test macos/Tests/Fixtures/native-ui-lab/native-ui-lab.test.mjs` - ~~./scripts/architecture/verify-service-boundaries.sh~~(随旧客户端移除) diff --git a/.agents/notes/implemented/feature/2026-10-23-plugin-project-generators.md b/.agents/notes/implemented/feature/2026-10-23-plugin-project-generators.md index f9e4508e00..68526f6397 100644 --- a/.agents/notes/implemented/feature/2026-10-23-plugin-project-generators.md +++ b/.agents/notes/implemented/feature/2026-10-23-plugin-project-generators.md @@ -25,7 +25,7 @@ | 部分 | 负责方 | 落点 | | --- | --- | --- | -| 声明的校验、表单求值(派生默认值、显示条件、错误码)、生成计划、压缩包解压 | Rust Core | `rust/lithe-core/src/project_generators/`,命令 `project.*` | +| 声明的校验、表单求值(派生默认值、显示条件、错误码)、生成计划、压缩包解压 | Rust Core | `rust/crates/core/src/project_generators/`,命令 `project.*` | | 契约与标准答案 | 共享契约 | `Lithe-core-rust/shared/plugins/contract/v1/README.md` 的 Project generators 一节,`fixtures/project-generators/project-generator.plugin.json`、`fixtures/project-generators/project-plans.json` | | 窗口、名称、位置、Git、空项目、启用插件提示 | macOS 宿主 | `NewProjectView`、`NewProjectFeatureModel` | | 执行计划:临时目录、写文件、跑命令、下载、移动到位 | macOS 宿主 | `ProjectGenerationService`(编排)+ `MacProjectGenerationPlatform`(平台操作) | diff --git a/.agents/notes/implemented/feature/2026-10-26-debug-adapter-executable-setting.md b/.agents/notes/implemented/feature/2026-10-26-debug-adapter-executable-setting.md index 02e629601f..3be2cdc5bb 100644 --- a/.agents/notes/implemented/feature/2026-10-26-debug-adapter-executable-setting.md +++ b/.agents/notes/implemented/feature/2026-10-26-debug-adapter-executable-setting.md @@ -66,9 +66,9 @@ lldb 社区插件把 `program` 写成 `/Users/.../lldb-demo/main`: ## 验证 -- `cargo test --manifest-path rust/lithe-core/Cargo.toml debug_executable_plan` -- `cargo test --manifest-path rust/lithe-core/Cargo.toml debug_start_arguments` -- `cargo test --manifest-path rust/lithe-core/Cargo.toml debug_adapter` +- `cargo test --manifest-path rust/crates/core/Cargo.toml debug_executable_plan` +- `cargo test --manifest-path rust/crates/core/Cargo.toml debug_start_arguments` +- `cargo test --manifest-path rust/crates/core/Cargo.toml debug_adapter` - ~~./scripts/macos/test/test-macos.sh --filter DebugExecutableResolverTests~~(随旧客户端移除) - ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除) - `node scripts/i18n/generate-i18n.mjs --check` @@ -78,7 +78,7 @@ lldb 社区插件把 `program` 写成 `/Users/.../lldb-demo/main`: ## 适用范围 - `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/`(README、schema、`debug-adapter*.json` 夹具) -- Lithe-core-rust 锁定修订:[rust/lithe-core/src/debug/adapters.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/debug/adapters.rs)、`rust/lithe-core/src/plugins/declarative.rs`、`rust/lithe-core/src/plugins/settings.rs` +- Lithe-core-rust 锁定修订:[rust/lithe-core/src/debug/adapters.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/debug/adapters.rs)、`rust/crates/core/src/plugins/declarative.rs`、`rust/crates/core/src/plugins/settings.rs` - ~~`macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginDebugExecutableResolver.swift`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginManager.swift`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Views/App/PluginSettingsSection.swift`~~(已随 #1794 移除) diff --git a/.agents/notes/implemented/feature/2026-10-26-debug-console-prompt-and-completion.md b/.agents/notes/implemented/feature/2026-10-26-debug-console-prompt-and-completion.md index c523a8e12b..67b1db313c 100644 --- a/.agents/notes/implemented/feature/2026-10-26-debug-console-prompt-and-completion.md +++ b/.agents/notes/implemented/feature/2026-10-26-debug-console-prompt-and-completion.md @@ -70,7 +70,7 @@ - ~~./scripts/macos/test/test-macos.sh --filter LitheDebugModuleTests~~(随旧客户端移除) - ~~./scripts/macos/test/test-macos.sh --filter 'DeclarativeDebugAdapterConsoleTests'~~(随旧客户端移除) -- `cargo test --manifest-path rust/lithe-core/Cargo.toml console_completions` +- `cargo test --manifest-path rust/crates/core/Cargo.toml console_completions` - ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除) - `node scripts/i18n/generate-i18n.mjs --check` - `node scripts/i18n/verify-app-language-localization.mjs` diff --git a/.agents/notes/implemented/feature/2026-10-29-git-rollback-confirmation.md b/.agents/notes/implemented/feature/2026-10-29-git-rollback-confirmation.md index 2d37ba1a7d..93810c4a45 100644 --- a/.agents/notes/implemented/feature/2026-10-29-git-rollback-confirmation.md +++ b/.agents/notes/implemented/feature/2026-10-29-git-rollback-confirmation.md @@ -80,8 +80,8 @@ macOS 提交面板复用原来的弯箭头按钮,先打开可重新勾选文 有界阻塞同级仓库读取时仍能确认回滚,释放旧读取后已消失的行不会恢复。 - ~~`macos/Tests/LitheTests/LitheCoreLogicTests.swift`~~(已随 #1794 移除):嵌套操作最外层解冻后调度已有刷新,操作不等待项目服务,重置取消后续任务; 阻塞项目重载时普通文件事件与写入后恢复仍独立刷新 Git,取消的读取不吞掉新请求,旧工作区读取不能释放新读取。 -- `rust/lithe-core/src/tests/git.rs` 与 Windows 状态 API、面板测试:真实仓库核对新增文件保留、重命名前后路径和特殊文件名字面匹配,复核过期选择、部分失败通知、暂存队列及实际界面仓库映射。 -- `rust/lithe-core/src/tests/git_untracked_directories.rs`:回滚状态查询限制所选路径、长参数分批、特殊文件名字面匹配、 +- `rust/crates/core/src/tests/git.rs` 与 Windows 状态 API、面板测试:真实仓库核对新增文件保留、重命名前后路径和特殊文件名字面匹配,复核过期选择、部分失败通知、暂存队列及实际界面仓库映射。 +- `rust/crates/core/src/tests/git_untracked_directories.rs`:回滚状态查询限制所选路径、长参数分批、特殊文件名字面匹配、 重命名源记录正确解析,以及暂存删除与未跟踪副本同路径时优先恢复历史版本;准备阶段拒绝过期状态,未跟踪目录只删除准备时列出的文件。 - ~~`macos/Tests/LitheTests/GitStatusObservationTests.swift`~~(已随 #1794 移除):真实 Git 经 Core 验证批量恢复暂存区和磁盘、未选文件不变、 新增及意向新增文件保留/删除、复制来源不变、重命名/删除/保留副本以及 linked Worktree 隔离; diff --git a/.agents/notes/implemented/feature/2026-10-29-skip-python-environments-in-workspace-scans.md b/.agents/notes/implemented/feature/2026-10-29-skip-python-environments-in-workspace-scans.md index 92be2169f0..b96335d95b 100644 --- a/.agents/notes/implemented/feature/2026-10-29-skip-python-environments-in-workspace-scans.md +++ b/.agents/notes/implemented/feature/2026-10-29-skip-python-environments-in-workspace-scans.md @@ -19,7 +19,7 @@ Rust Core 的默认工作区规则排除 `.venv`、`venv`、`__pycache__` 和 `* ### 正确做法 -- `rust/lithe-core/src/project/files.rs` 的 `BUILT_IN_HIDDEN_DIRECTORIES` 增加 `.venv`、`venv`、`__pycache__`,`BUILT_IN_HIDDEN_FILE_PATTERNS` 增加 `*.pyc`。 +- `rust/crates/core/src/project/files.rs` 的 `BUILT_IN_HIDDEN_DIRECTORIES` 增加 `.venv`、`venv`、`__pycache__`,`BUILT_IN_HIDDEN_FILE_PATTERNS` 增加 `*.pyc`。 这份名单同时决定快照、目录列举、搜索索引、文件监听事件是否相关,以及 Git 仓库发现要不要进入某个目录,所以改一处就覆盖这些入口。 - macOS 的 `FileVisibilityRules.swift` 保留自己的一份内置名单(设置页会把它显示出来),同步增加同样的四项,避免页面显示和实际规则不一致。 - 只需要文件清单的调用方请求 `workspace.snapshot` 时带 `includeTree: false`。Windows 的 `fffListFiles`(Quick Open、全局搜索、Spring/MyBatis/Maven 索引经由它取文件)和 Lombok 导航都已这样做。 diff --git a/.agents/notes/implemented/feature/2026-11-03-structured-logging-log-window.md b/.agents/notes/implemented/feature/2026-11-03-structured-logging-log-window.md index 4f4e1e2831..fb0a52c3c8 100644 --- a/.agents/notes/implemented/feature/2026-11-03-structured-logging-log-window.md +++ b/.agents/notes/implemented/feature/2026-11-03-structured-logging-log-window.md @@ -72,7 +72,7 @@ macOS 的应用日志只在一个地方看:用 ⌘⇧L 打开的独立日志 ### Core 计算,宿主只做 I/O -日志窗口和导出需要的通用逻辑全部在 `rust/lithe-core/src/diagnostics/`: +日志窗口和导出需要的通用逻辑全部在 `rust/crates/core/src/diagnostics/`: | 能力 | Core 入口 | | --- | --- | diff --git a/.agents/notes/proposed/architecture/2026-10-16-unified-child-process-lifecycle.md b/.agents/notes/proposed/architecture/2026-10-16-unified-child-process-lifecycle.md index 6b15400a7d..3ed0bd0224 100644 --- a/.agents/notes/proposed/architecture/2026-10-16-unified-child-process-lifecycle.md +++ b/.agents/notes/proposed/architecture/2026-10-16-unified-child-process-lifecycle.md @@ -110,7 +110,7 @@ Agent 侧: 账本是现有 `ModuleResourceScope` 的下层实现,不另起一套模块生命周期:模块 仍然通过资源 scope 登记资源,资源 scope 再向平台进程端口申请进程。账本的 记录结构、分类规则、停止阶段和结果报告是两个平台共享的确定性语义,放进 -`rust/lithe-core/`,并在 `Lithe-core-rust/rust/contracts/` 增加契约与 fixture;发信号、 +`rust/crates/core/`,并在 `Lithe-core-rust/rust/contracts/` 增加契约与 fixture;发信号、 Job Object、监护进程等平台能力留在各自的 adapter。 #### 四种退出策略 @@ -246,7 +246,7 @@ Agent(经由 ACP 连接的 Claude Code、Codex 等)会用自己的工具在 设置保存在用户设置存储中(Application Support / `%LOCALAPPDATA%`),不写入 安装目录。根据设置和账本记录算出最终策略属于确定性逻辑,放进 -`rust/lithe-core/`:设置作为输入,两端用同一组 fixture 验证。页面关键词要 +`rust/crates/core/`:设置作为输入,两端用同一组 fixture 验证。页面关键词要 加入 `SettingsSearchVocabulary`,搜索“进程”“终止”“终端”“Agent”“守护进程” 都能找到这个页面。 @@ -522,7 +522,7 @@ Windows 尚未实现,所以本笔记仍放在 `proposed/`。macOS 首批已落 ### 规则在 Rust Core,平台只采集事实、执行结果 为了让 Windows 迁移时只需写平台 adapter,所有确定性规则都放在 -`rust/lithe-core`,两端共用同一套 fixture: +`rust/crates/core`,两端共用同一套 fixture: | 命令 | 负责什么 | fixture | | --- | --- | --- | diff --git a/.agents/notes/proposed/architecture/2026-10-17-build-system-provider-api.md b/.agents/notes/proposed/architecture/2026-10-17-build-system-provider-api.md index 353a711c71..3e1a093f98 100644 --- a/.agents/notes/proposed/architecture/2026-10-17-build-system-provider-api.md +++ b/.agents/notes/proposed/architecture/2026-10-17-build-system-provider-api.md @@ -20,7 +20,7 @@ Lithe 对构建工具的支持原本分散在三处:Rust Core 里写死的运 | 位置 | 做了什么 | 问题 | | --- | --- | --- | -| `rust/lithe-core/src/execution/detectors/` | npm、Cargo、Go、Gradle、Python、Make、just、Compose、Procfile 等探测器,在一次共享目录遍历中产出运行配置 | 生态知识写死在 Core 里。Gradle 只能匹配一张固定的插件 ID 表(Spring Boot、Quarkus、Micronaut、`application`),表外插件注入的任务完全看不到,这就是 Issue #10 | +| `rust/crates/core/src/execution/detectors/` | npm、Cargo、Go、Gradle、Python、Make、just、Compose、Procfile 等探测器,在一次共享目录遍历中产出运行配置 | 生态知识写死在 Core 里。Gradle 只能匹配一张固定的插件 ID 表(Spring Boot、Quarkus、Micronaut、`application`),表外插件注入的任务完全看不到,这就是 Issue #10 | | `rust/lithe-core/src/project/maven*.rs` + `MavenService` / `MavenView`(macOS)+ `windows/tauri/src/features/maven/`(Windows) | Reactor(Maven 的多模块聚合工程)扫描、Profile、生命周期、依赖树、诊断解析、Surefire 测试报告、工具窗口 | 质量很高,但类型全是 `Maven*`,其他构建工具无法复用;工具窗口的“生命周期 / 依赖 / Profile / 执行目标”结构也没有通用版本 | | `Lithe-core-rust/shared/plugins/contract/v1/` | API 1/2 只有 `languages`、`languageServers`、`executionProviders`(按语言运行/测试单个文件);API 3 已加入 `buildSystems` | 契约和 Core 已就绪。macOS 宿主已经通过通用 Build 工具窗口使用 `build.*` 命令,声明 `buildSystems: [1]` 和 `buildProviders: [1]`;Windows 宿主还没有接入,也不声明能力 | diff --git a/.agents/notes/proposed/architecture/2026-10-22-child-process-media-isolation.md b/.agents/notes/proposed/architecture/2026-10-22-child-process-media-isolation.md index 953b4a8607..93088e8662 100644 --- a/.agents/notes/proposed/architecture/2026-10-22-child-process-media-isolation.md +++ b/.agents/notes/proposed/architecture/2026-10-22-child-process-media-isolation.md @@ -32,7 +32,7 @@ HTML 预览和插件页已经有统一的默认拒绝门,但它只管网页。 | --- | --- | --- | | 运行、构建、测试、调试采样、插件包解压、调试适配器 | Swift `MacManagedProcess.spawn`(唯一的 `posix_spawn` 入口) | 在这一处包装,一处覆盖全部 | | 内置终端 | `MacTerminalTransport.startProcess`,经 SwiftTerm 启动 | SwiftTerm 自己创建伪终端并 `posix_spawn`,Lithe 拿不到 spawn 属性,只能改被启动的可执行文件 | -| 插件后端、所有语言服务器 | Rust Core 的 `SystemProcessLauncher`(`rust/lithe-core/src/lsp/interface/process.rs`) | Rust 侧一个公共函数;Swift 的语言服务器会话只是调用 Core 并登记 pid,不是它启动的 | +| 插件后端、所有语言服务器 | Rust Core 的 `SystemProcessLauncher`(`rust/crates/core/src/lsp/interface/process.rs`) | Rust 侧一个公共函数;Swift 的语言服务器会话只是调用 Core 并登记 pid,不是它启动的 | | Agent CLI 及其 shell 工具 | `rust/lithe-agent-host` | 同一个公共函数;模型自己决定跑什么命令,被提示注入时和“插件偷听”是同一类风险 | | 其它固定二进制 | `lithe-git-host`、`lithe-db-sidecar`、`lithe-db-mcp`、`lithe-ide-host` 等 | 实现时重新盘点(`lithe-ide-host` 这次评估没有查),覆盖或登记豁免 | | 必须豁免 | `MacProcessSupervisor`、`MacApplicationRelauncher`、`MacStableRollback` | 它们就是 Lithe 自己,要保持原来的责任进程 | diff --git a/.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md b/.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md index a9ffe3b506..fc57038812 100644 --- a/.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md +++ b/.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md @@ -20,7 +20,7 @@ Lithe 现在只认识 Git:Rust Core、macOS 和 Windows 的变更列表、提 | 位置 | 现在做什么 | 问题 | | --- | --- | --- | -| `rust/lithe-core/src/git/`、`rust/lithe-git-host/` | 约 1.85 万行 Git 参数策略、解析、执行事件和原生进程适配,暴露 47 个 `git.*` 命令 | 质量高,但所有结果类型都是 Git 专属,第二种 VCS 无法复用 | +| `rust/crates/core/src/git/`、`rust/crates/git-host/` | 约 1.85 万行 Git 参数策略、解析、执行事件和原生进程适配,暴露 47 个 `git.*` 命令 | 质量高,但所有结果类型都是 Git 专属,第二种 VCS 无法复用 | | `macos/Sources/LitheGitModule/` | `GitOperations` 端口、`GitFeatureModel`、Changelist、Shelve | Changelist 和 Shelve 在 IDEA 里属于平台层,与具体 VCS 无关;在 Lithe 里绑在 Git 模块上 | | `macos/Sources/Lithe/Views/`(项目树、编辑器、Diff) | 直接引用 `GitChange`、`GitChangeKind`、`GitSnapshot` | 文件颜色和 gutter 这类通用展示被 Git 类型锁死 | | `windows/tauri/src/features/git/` | 约 6 万行 React/TS,状态表、提交面板、Log | 同样只认 Git | @@ -38,7 +38,7 @@ Lithe 现在只认识 Git:Rust Core、macOS 和 Windows 的变更列表、提 | 层 | 位置(计划) | 负责 | 不负责 | | --- | --- | --- | --- | -| Rust Core 的 `vcs` 模块 | `rust/lithe-core/src/vcs/`(新) | 统一模型、`vcs.*` 命令、根目录识别、请求计划、插件回复的解码和校验 | 启动进程、弹窗、存储 | +| Rust Core 的 `vcs` 模块 | `rust/crates/core/src/vcs/`(新) | 统一模型、`vcs.*` 命令、根目录识别、请求计划、插件回复的解码和校验 | 启动进程、弹窗、存储 | | 宿主 | macOS 新的 VCS 工作区模块;Windows 的 VCS 状态 store | 根映射与用户覆盖、文件监听触发刷新、凭据交互、Provider 进程生命周期、项目控制台 | 解析任何 VCS 的输出 | | Provider | 插件进程(第一期只有 SVN);Git 暂不接入 | 回答状态、基线内容、历史、Annotate、提交、回滚、更新等事实 | 界面和跨根聚合 | diff --git a/.agents/notes/proposed/architecture/2026-10-24-remote-development-workspace-host.md b/.agents/notes/proposed/architecture/2026-10-24-remote-development-workspace-host.md index 3aaa92ba6c..6f86e882b3 100644 --- a/.agents/notes/proposed/architecture/2026-10-24-remote-development-workspace-host.md +++ b/.agents/notes/proposed/architecture/2026-10-24-remote-development-workspace-host.md @@ -39,9 +39,9 @@ Lithe 要支持“完整的远程开发”:项目放在 SSH 主机、Docker | 模块 | 负责什么 | 不负责什么 | | --- | --- | --- | -| `rust/lithe-remote/src/protocol` | 帧格式、消息信封、方法名、参数类型、错误码 | 不做任何 I/O 决策 | -| `rust/lithe-remote/src/server` | 远端的全部能力和 Linux/macOS 适配器 | 不知道自己是被 SSH 还是 Docker 启动的 | -| `rust/lithe-remote/src/client` | 传输链拼命令、远端安装校验、会话收发 | 不实现文件或进程语义 | +| `rust/crates/remote/src/protocol` | 帧格式、消息信封、方法名、参数类型、错误码 | 不做任何 I/O 决策 | +| `rust/crates/remote/src/server` | 远端的全部能力和 Linux/macOS 适配器 | 不知道自己是被 SSH 还是 Docker 启动的 | +| `rust/crates/remote/src/client` | 传输链拼命令、远端安装校验、会话收发 | 不实现文件或进程语义 | ### 传输链只做“执行一条命令” @@ -116,7 +116,7 @@ Linux 静态版用 Rust 自带的 `rust-lld` 链接,在 macOS 和 Linux 上都 ### 平台适配器(Linux / macOS) -所有平台差异都放在 `rust/lithe-remote/src/server/platform/` 里,并通过能力描述告诉客户端: +所有平台差异都放在 `rust/crates/remote/src/server/platform/` 里,并通过能力描述告诉客户端: | 差异 | Linux | macOS | 客户端看到的能力 | | --- | --- | --- | --- | diff --git a/.agents/notes/proposed/architecture/2026-10-25-unified-debug-engine-and-adapter-registry.md b/.agents/notes/proposed/architecture/2026-10-25-unified-debug-engine-and-adapter-registry.md index 18a35e7793..46caa66d85 100644 --- a/.agents/notes/proposed/architecture/2026-10-25-unified-debug-engine-and-adapter-registry.md +++ b/.agents/notes/proposed/architecture/2026-10-25-unified-debug-engine-and-adapter-registry.md @@ -18,10 +18,10 @@ | 现状 | 位置 | 带来的问题 | | --- | --- | --- | -| Rust Core `debug.*` 内核:DAP 分帧、请求序列、断点、变量分页、取消、`runInTerminal`、Java 热替换 | `rust/lithe-core/src/debug/` | Windows 的全部调试和 macOS 的 Java 走这里 | +| Rust Core `debug.*` 内核:DAP 分帧、请求序列、断点、变量分页、取消、`runInTerminal`、Java 热替换 | `rust/crates/core/src/debug/` | Windows 的全部调试和 macOS 的 Java 走这里 | | Swift `DebugAdapterProtocolSession`:通用 stdio、Go、Node(含子会话) | `macos/Sources/LitheDebugModule/Runtime/` | 同一个功能要在 Swift 和 Rust 各写一遍,两边行为容易分叉 | | 按语言装配的工厂 | `MacServiceContainer.swift`(内置 Python、Rust stdio 调试器和 `DebugAdapterRuntimeFactory` 已移除,只保留 Java,其余由语言插件提供) | 每接一种调试器都要改组合根(Composition Root,负责组装依赖的地方) | -| 以源码为中心的投影 | `rust/lithe-core/src/debug/types.rs`:`DebugStackFrame.line/column` 是必填 `i64`,`DebugScope` 没有 `presentationHint`;initialize 固定声明 `supportsMemoryReferences: false` | 无源码栈帧、寄存器、内存都没有地方表达;以后再放宽必填字段,就是 Rust、Swift、TypeScript 三端同时的破坏性变更 | +| 以源码为中心的投影 | `rust/crates/core/src/debug/types.rs`:`DebugStackFrame.line/column` 是必填 `i64`,`DebugScope` 没有 `presentationHint`;initialize 固定声明 `supportsMemoryReferences: false` | 无源码栈帧、寄存器、内存都没有地方表达;以后再放宽必填字段,就是 Rust、Swift、TypeScript 三端同时的破坏性变更 | ### 为什么重写,而不是继续扩展 diff --git a/.agents/notes/proposed/architecture/2026-10-26-maven-java-domain-plugin-migration.md b/.agents/notes/proposed/architecture/2026-10-26-maven-java-domain-plugin-migration.md index 557cc9c37d..4d481c1e4d 100644 --- a/.agents/notes/proposed/architecture/2026-10-26-maven-java-domain-plugin-migration.md +++ b/.agents/notes/proposed/architecture/2026-10-26-maven-java-domain-plugin-migration.md @@ -220,7 +220,7 @@ git diff --check - ~~`macos/Sources/Lithe/Application/`~~(已随 #1794 移除)、`macos/Sources/Lithe/Models/AppModel/`、`macos/Sources/Lithe/Services/` - ~~`macos/Sources/Lithe/Platform/MacOS/`~~(已随 #1794 移除)、`macos/Sources/LitheExecutionModule/`、`macos/Sources/LitheLanguageIntelligenceModule/` -- Lithe-core-rust 锁定修订:[rust/lithe-core/src/build/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/build)、`rust/lithe-core/src/project/`、`rust/lithe-core/src/execution/`、`rust/lithe-core/src/lsp/`、`rust/lithe-core/src/debug/` +- Lithe-core-rust 锁定修订:[rust/lithe-core/src/build/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/build)、`rust/crates/core/src/project/`、`rust/crates/core/src/execution/`、`rust/crates/core/src/lsp/`、`rust/crates/core/src/debug/` - 已迁出:原 `Plugins/mac/Official/JavaSupport/`。官方插件的源码、组装与发布已移出本仓库(#1495),改由各插件仓库自行构建发布([lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java)、[lithe-plugin-maven](https://github.com/Lithe-IDEA/lithe-plugin-maven)、[lithe-plugin-gradle](https://github.com/Lithe-IDEA/lithe-plugin-gradle)),Store 索引由 Lithe Store 维护。 - `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/contracts/`、`Lithe-core-rust/rust/fixtures/`、`shared/platform-feature-matrix/features/` - ~~`windows/tauri/src/features/`~~(已随 #1794 移除)、`windows/tauri/src/platform/`、`windows/tauri/src-tauri/src/` diff --git a/.agents/notes/proposed/architecture/2026-10-31-plugin-injected-toolchains.md b/.agents/notes/proposed/architecture/2026-10-31-plugin-injected-toolchains.md index 968ee5eaa7..008cfc66b5 100644 --- a/.agents/notes/proposed/architecture/2026-10-31-plugin-injected-toolchains.md +++ b/.agents/notes/proposed/architecture/2026-10-31-plugin-injected-toolchains.md @@ -43,7 +43,7 @@ 宿主扫描没有自己的工具表;没有定义时不扫描、不导出变量、不生成工具行。 -工具链是独立领域,Core 代码放在 `rust/lithe-core/src/toolchain/`,不能因为事实由插件贡献就把解析、固定和选择模型放进 `plugins/`。插件清单模块只负责贡献准入,调用工具链领域校验;公开契约仍在插件契约目录中描述贡献接口,不改变工具链本身的含义。 +工具链是独立领域,Core 代码放在 `rust/crates/core/src/toolchain/`,不能因为事实由插件贡献就把解析、固定和选择模型放进 `plugins/`。插件清单模块只负责贡献准入,调用工具链领域校验;公开契约仍在插件契约目录中描述贡献接口,不改变工具链本身的含义。 正确做法:Java 支持插件贡献工具定义,mise 插件调用 mise 自己的机器可读接口回答选中了哪份安装,宿主展示来源并执行通用校验。不要这样做:把 `miseToml` 改名成 `tomlTools` 后继续在 Core 解释它,或用 `if tool == "java"` 把返回目录当作特殊的 JDK home。 @@ -159,7 +159,7 @@ macOS 的声明式路线由 `MacToolchainDiscovery` 执行,宿主不认识任 阶段 3 清理 `ProjectRuntimeService` 的专属选择链和 `project-jdk`、`project-maven` 等被替代引用前,须按 [Java/Maven 迁移清单](2026-10-26-maven-java-domain-plugin-migration.md)核对真实消费者和数据迁移。Node、Go、Python 等在其插件声明定义之前保持当前实现,不新增特判;不能在本次提案删除仍在生产使用的代码,或用永久兼容别名伪装迁移完成。 -阶段 1 的契约草案 `Lithe-core-rust/shared/plugins/contract/v1/toolchains/proposal/` 及其 fixture 已于 2026-11-05 删除。草案把已实现和未实现的行为写在一起,插件开发者读到的是整个契约目录,分不清哪些能用。其中已经实现的后端协商 `litheToolchains`、稳定失败码和错误回复规则已写进正式契约 `Lithe-core-rust/shared/plugins/contract/v1/toolchains/README.md`;Core 测试改用 `rust/lithe-core/src/tests/toolchain_vectors.rs` 里的内联数据。消费者迁移、查询生命周期与缓存、固定值保存和版本管理器插件等未实现部分只在本笔记跟踪,实现时再写进正式契约;旧 `local-v1` schema 与 Run 配置读写路径保持不变,新 Core 固定解析入口只处理调用方传入的 JSON,不打开文件或保存忽略规则。契约、API 总表和协议更新记录在同一个 Core PR 里完成;实际插件后端协议接入时在同一个 Core PR 里更新 Node、Java、Rust SDK,并在合并前于 Core 仓库根运行 `node shared/plugins/scripts/sdk-e2e.mjs`。每阶段的功能矩阵只记录实际实现和目标平台运行证据,不把本提案或 Core 单元测试当作 Windows 已完成。 +阶段 1 的契约草案 `Lithe-core-rust/shared/plugins/contract/v1/toolchains/proposal/` 及其 fixture 已于 2026-11-05 删除。草案把已实现和未实现的行为写在一起,插件开发者读到的是整个契约目录,分不清哪些能用。其中已经实现的后端协商 `litheToolchains`、稳定失败码和错误回复规则已写进正式契约 `Lithe-core-rust/shared/plugins/contract/v1/toolchains/README.md`;Core 测试改用 `rust/crates/core/src/tests/toolchain_vectors.rs` 里的内联数据。消费者迁移、查询生命周期与缓存、固定值保存和版本管理器插件等未实现部分只在本笔记跟踪,实现时再写进正式契约;旧 `local-v1` schema 与 Run 配置读写路径保持不变,新 Core 固定解析入口只处理调用方传入的 JSON,不打开文件或保存忽略规则。契约、API 总表和协议更新记录在同一个 Core PR 里完成;实际插件后端协议接入时在同一个 Core PR 里更新 Node、Java、Rust SDK,并在合并前于 Core 仓库根运行 `node shared/plugins/scripts/sdk-e2e.mjs`。每阶段的功能矩阵只记录实际实现和目标平台运行证据,不把本提案或 Core 单元测试当作 Windows 已完成。 ## 风险 diff --git a/.agents/notes/proposed/architecture/2026-11-04-java-extraction-generic-apis-and-gate.md b/.agents/notes/proposed/architecture/2026-11-04-java-extraction-generic-apis-and-gate.md index 746de85f10..2bd81dca45 100644 --- a/.agents/notes/proposed/architecture/2026-11-04-java-extraction-generic-apis-and-gate.md +++ b/.agents/notes/proposed/architecture/2026-11-04-java-extraction-generic-apis-and-gate.md @@ -175,7 +175,7 @@ Windows 现在还通过 Core 的命令调用 Maven 和 Java 功能,而 Windows ### 七、验收闸门脚本 -~~scripts/architecture/verify-no-host-language-specifics.mjs~~(随旧客户端移除) 扫描六个目录:`rust/lithe-core/src`、`macos/Sources`、`frontend/editor/src`、`shared/contracts/plugins/v1`、`windows/tauri/src`、`windows/tauri/src-tauri/src`。其中 `shared/contracts/plugins/v1` 当时在本仓库,现在是 Core 仓库的 `shared/plugins/contract/v1/`。跳过 `vendor`、`node_modules` 和以点开头的目录。 +~~scripts/architecture/verify-no-host-language-specifics.mjs~~(随旧客户端移除) 扫描六个目录:`rust/crates/core/src`、`macos/Sources`、`frontend/editor/src`、`shared/contracts/plugins/v1`、`windows/tauri/src`、`windows/tauri/src-tauri/src`。其中 `shared/contracts/plugins/v1` 当时在本仓库,现在是 Core 仓库的 `shared/plugins/contract/v1/`。跳过 `vendor`、`node_modules` 和以点开头的目录。 检查什么: @@ -201,7 +201,7 @@ A0 提交时的基线快照(以 baseline 文件为准): | 目录 | 词表命中 | 文件数 | | --- | --- | --- | -| `rust/lithe-core/src` | 8755 | 114 | +| `rust/crates/core/src` | 8755 | 114 | | `macos/Sources` | 4972 | 185 | | `frontend/editor/src` | 99 | 2 | | `shared/contracts/plugins/v1` | 1045 | 44 | diff --git a/.agents/notes/proposed/bug-fix/2026-09-13-single-repository-git-status-observation.md b/.agents/notes/proposed/bug-fix/2026-09-13-single-repository-git-status-observation.md index f40d73b280..eae2bb8ef2 100644 --- a/.agents/notes/proposed/bug-fix/2026-09-13-single-repository-git-status-observation.md +++ b/.agents/notes/proposed/bug-fix/2026-09-13-single-repository-git-status-observation.md @@ -89,7 +89,7 @@ submodule 内部文件、远端变化但本地未 fetch、自动 fetch 或网络 ### Rust Core 契约 -Rust Core(`rust/lithe-core/src/git/`(已随 #1794 移除)) +Rust Core(`rust/crates/core/src/git/`(已随 #1794 移除)) 新增只负责路径解析的 `GitWatchContext`(`repositoryRoot` / `gitDirectory` / `gitCommonDirectory`),使用绝对路径、对存在的路径 规范化、无仓库时返回空 context、不把 `.git` 是文件还是目录的判断 diff --git a/.agents/skills/develop-lithe/SKILL.md b/.agents/skills/develop-lithe/SKILL.md index 9062c80ecc..939dd5fb80 100644 --- a/.agents/skills/develop-lithe/SKILL.md +++ b/.agents/skills/develop-lithe/SKILL.md @@ -14,9 +14,9 @@ description: 在 Lithe 仓库进行实现、重构、缺陷修复、审查、调 | 必须、不得 | 没有例外。无法满足时停下来告知用户,不得自行放宽。 | | 默认 | 除非满足该条写明的例外条件,否则照做。采用例外时在 PR 说明中写明理由。 | | 可以 | 允许,但不要求。 | -| Core | Lithe-core-rust 仓库的 `rust/lithe-core/`,由桌面构建脚本固定修订。 | +| Core | Lithe-core-rust 仓库 `rust/crates/` 下的 crate,C ABI 入口是 `rust/crates/core/`;修订由桌面构建脚本固定。 | | 平台层 | `desktop/` 中的 Viva 呈现、系统适配和桥接。 | -| 原生适配器 | 直接调用操作系统 API 的桌面适配器,以及 Lithe-core-rust 的 `rust/lithe-git-host/` 等进程执行 crate。 | +| 原生适配器 | 直接调用操作系统 API 的桌面适配器,以及 Lithe-core-rust 的 `rust/crates/git-host/` 等进程执行 crate。 | | 共享契约 | Lithe-core-rust 仓库 `rust/contracts/` 下的接口文档与 schema,以及 `rust/fixtures/` 下的 fixture。这是唯一的一份,本仓库不保存副本;桌面测试通过 `contractfixture.CoreFixture` 读取所链接的 Core 检出。 | | 主线程 | Viva 窗口的 UI 线程,以及平台原生窗口要求使用的线程。 | @@ -66,8 +66,8 @@ description: 在 Lithe 仓库进行实现、重构、缺陷修复、审查、调 | 路径 | 职责 | | --- | --- | -| Lithe-core-rust 的 `rust/lithe-core/` | 共享确定性逻辑:命令、模型、解析、校验、状态规则和 C ABI;修订由 `scripts/desktop/build-desktop-core.sh` 固定 | -| Lithe-core-rust 的 `rust/lithe-git-host/` | 原生子进程执行、管道、临时输入、进程树归属与有界清理 | +| Lithe-core-rust 的 `rust/crates/core/` 及 `core-rules/`、`ai/` 等同级 crate | 共享确定性逻辑:命令、模型、解析、校验、状态规则和 C ABI;修订由 `scripts/desktop/build-desktop-core.sh` 固定 | +| Lithe-core-rust 的 `rust/crates/git-host/` | 原生子进程执行、管道、临时输入、进程树归属与有界清理 | | `desktop/` | Viva(Go)统一客户端:窗口、工作台呈现、平台适配和 Core C ABI 调用。功能仍在迁移,不能因代码存在就视为已验收 | | Lithe-IDEA 组织的插件仓库 | 插件源码、工具专属知识和插件包;不要在本仓库维护第二份 SDK 或插件业务 | | `shared/` | i18n 词条(`shared/i18n/`)和跨平台功能矩阵(`shared/platform-feature-matrix/`);不放编译实现。应用契约与 fixture 只在 Lithe-core-rust 的 `rust/contracts/`、`rust/fixtures/`,本仓库不保存副本 | @@ -314,7 +314,7 @@ Viva 在 macOS、Windows 和 Linux 使用 `desktop/internal/i18n/` 的接口及 #### Rust Core 注释规范 -只适用于 `rust/lithe-core/` 中的第一方代码,不适用于其他 helper crate、Windows/Tauri 的 Rust crate、生成代码和第三方源码。 +适用于 Lithe-core-rust `rust/crates/` 下每个 crate 的第一方代码,不适用于生成代码和第三方源码。Core 仓库的 `scripts/rust-core/verify-rust-core-comments.sh` 逐个检查这些 crate。 - 注释使用英文,并随行为更新。 - 每个生产模块以简短的 `//!` 说明职责或架构边界开头。 @@ -345,7 +345,7 @@ Viva 在 macOS、Windows 和 Linux 使用 `desktop/internal/i18n/` 的接口及 macOS app bundle 和 Windows 安装目录是发行基线。Sparkle 增量更新按发布包的精确字节生成;运行时写入会改变基线,导致下次增量校验失败、回退到完整下载。 - 缓存、索引、Eclipse/OSGi 状态、下载物、解压物、日志和锁文件,通过平台存储适配器放到缓存目录、Application Support、临时目录或用户工作区。不得从 `Bundle.main.resourceURL`、`resource_dir()` 或安装目录推导写入位置。 -- Equinox 等会向自身所在目录写入的工具,必须在可写的缓存目录中使用输入副本;`-configuration` 的做法见 `rust/lithe-core/src/lsp/languages/jdt_configuration.rs`。 +- Equinox 等会向自身所在目录写入的工具,必须在可写的缓存目录中使用输入副本,例如把 JDT LS 的 `-configuration` 指向缓存目录里的副本,不指向安装包内的原目录。 - 新的打包运行时必须增加“典型流程前后比较安装目录文件清单”的测试,并保持 `./scripts/macos/verify/verify-runtime-bundle-immutability.sh` 通过。 - 不得用“启动前清理 bundle”来修复运行时写入问题。 diff --git a/.agents/skills/develop-lithe/references/logging.md b/.agents/skills/develop-lithe/references/logging.md index 7ff44f6838..644c1e13b4 100644 --- a/.agents/skills/develop-lithe/references/logging.md +++ b/.agents/skills/develop-lithe/references/logging.md @@ -148,8 +148,8 @@ macOS 的日志窗口和诊断包只读取 v2 会话文件;v1 文件只进入 | 层 | 事件 | 由谁记录 | 级别 | | --- | --- | --- | --- | | 用户操作 | `app.action.performed`(通道 `app`) | 最外层 UI 入口的 `UserActionTrace` | INFO | -| Core 请求 | `app.core.request.finished` / `.traced` / `.failed`(通道 `app/core`) | Core 请求分发处 `rust/lithe-core/src/runtime/dispatcher.rs`,实现在 `diagnostics/request_trace.rs` | 用户来源的成功或取消为 `finished`(INFO);后台或未知来源的成功或取消为 `traced`(DEBUG);失败为 `failed`(WARN) | -| 外部进程 | `vcs.git.command.finished` / `.traced` / `.failed`(通道 `vcs/git`) | Core 的 Git 进程执行点 `rust/lithe-core/src/git/command_trace.rs`,本地和远程工作区都经过这里 | 来源为用户的可见命令(定义见 7.4),成功或取消为 `finished`(INFO);其余成功或取消为 `traced`(DEBUG);失败为 `failed`(WARN) | +| Core 请求 | `app.core.request.finished` / `.traced` / `.failed`(通道 `app/core`) | Core 请求分发处 `rust/crates/core/src/runtime/dispatcher.rs`,实现在 `diagnostics/request_trace.rs` | 用户来源的成功或取消为 `finished`(INFO);后台或未知来源的成功或取消为 `traced`(DEBUG);失败为 `failed`(WARN) | +| 外部进程 | `vcs.git.command.finished` / `.traced` / `.failed`(通道 `vcs/git`) | Core 的 Git 进程执行点 `rust/crates/core/src/git/command_trace.rs`,本地和远程工作区都经过这里 | 来源为用户的可见命令(定义见 7.4),成功或取消为 `finished`(INFO);其余成功或取消为 `traced`(DEBUG);失败为 `failed`(WARN) | ### 7.1 用户操作入口 @@ -246,7 +246,7 @@ sink.emit(GitFetchNoticeFailed(remote: remote, error: error, operationID: op)) 修改目录、生成器或门禁本身时,还须运行直接受影响的 Core、辅助 crate 和 Viva 宿主测试; 当前 Go 桥接和存储测试不能代替缺失的目录生成及使用扫描。只读核验不能改写生成物。 -修改执行轨迹时运行对应测试:Core 请求轨迹在 `rust/lithe-core/src/tests/core_request_traces.rs`,Git 进程轨迹、argv 脱敏和 `exit_is_answer` 在 `rust/lithe-core/src/git/command_trace.rs` 的测试模块,宿主侧的入口与来源解析在 `macos/Tests/LitheTests/UserActionTraceTests.swift` 和 `macos/Tests/LitheTests/CoreRequestTraceTests.swift`。 +修改执行轨迹时运行对应测试:Core 请求轨迹在 `rust/crates/core/src/tests/core_request_traces.rs`,Git 进程轨迹、argv 脱敏和 `exit_is_answer` 在 `rust/crates/core/src/git/command_trace.rs` 的测试模块,宿主侧的入口与来源解析在 `macos/Tests/LitheTests/UserActionTraceTests.swift` 和 `macos/Tests/LitheTests/CoreRequestTraceTests.swift`。 按错误类别过滤的辅助函数必须有测试:对象已经不在的类别(例如 `NotConnected`、`BrokenPipe`)不发事件,意外类别(例如 `PermissionDenied`)发事件。 diff --git a/.agents/skills/lithe-code-review/references/output-template.md b/.agents/skills/lithe-code-review/references/output-template.md index c871b6cc92..ee4f19b07a 100644 --- a/.agents/skills/lithe-code-review/references/output-template.md +++ b/.agents/skills/lithe-code-review/references/output-template.md @@ -34,7 +34,7 @@ | 逻辑块(`仓库相对路径:符号`) | 归属 | 依据 | | --- | --- | --- | -| | 上游工具事实 / 工具专属知识 / 平台 API / `rust/lithe-core` | 判为 Core:兼容命令名 + fixture 路径;判为平台:实际调用的原生 API 或平台类型 | +| | 上游工具事实 / 工具专属知识 / 平台 API / `rust/crates/core` | 判为 Core:兼容命令名 + fixture 路径;判为平台:实际调用的原生 API 或平台类型 | - 未沉入清单:本次改动触及、但仍需迁入 Core 的存量项、当前实现位置和 **已提交的 Issue 编号与链接**;本次未触及的历史平台层逻辑不列入,没有时写“无”。 diff --git a/.agents/skills/lithe-code-review/references/review-policy.md b/.agents/skills/lithe-code-review/references/review-policy.md index 708c00abba..1fafbdf51f 100644 --- a/.agents/skills/lithe-code-review/references/review-policy.md +++ b/.agents/skills/lithe-code-review/references/review-policy.md @@ -22,7 +22,7 @@ 职责边界、依赖关系和维护收益,不得为了降低行数机械拆分。 10. 按 `develop-lithe` 第三节“逻辑归属”检查本次新增或修改的逻辑:不属于 上游工具事实、不属于工具专属知识、也不需要调用操作系统或界面框架 API 的 - 逻辑,必须在 `rust/lithe-core` 实现。以下情况作为本次引入的问题报告: + 逻辑,必须在 `rust/crates/core` 实现。以下情况作为本次引入的问题报告: 新功能把这类逻辑写在 Swift 或 TypeScript 中;修改了平台层已有的这类逻辑, 既没有迁入 Core,也没有在 PR 说明中写明理由并关联 `refactor` Issue。 本次未触及的历史平台层逻辑不要求当前变更迁移,按第 16 条列为观察项并必须已建单。 diff --git a/AGENTS.md b/AGENTS.md index 1dcd02d14d..6e62430b2c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -138,8 +138,8 @@ Core 代码在同一个仓库、同一个 PR 里修改。本仓库不保存契 不需要克隆本仓库。 - 改契约(`shared/plugins/contract/v1/` 的 README、schema、fixture)、能力版本 - (`rust/lithe-core/src/plugins/capabilities.rs`)或插件函数协议 - (`rust/lithe-core/src/lsp/interface/plugin_function.rs`)的 Core PR,在同一个 PR 里更新 + (`rust/crates/core/src/plugins/capabilities.rs`)或插件函数协议 + (`rust/crates/core/src/lsp/interface/plugin_function.rs`)的 Core PR,在同一个 PR 里更新 [插件协议更新记录](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/reference/protocol-changelog.md): 合入日期、PR、修改人(PR 作者)、改了哪个协议或 API;新版本号同时写进该页“按协议查首次出现”的表。 - 新增或修改宿主方法、宿主通知的 PR,即使只是给已有 API 加一个子方法,也要在 PR 描述里附一张 diff --git a/NOTICE b/NOTICE index 8905402240..4b25297a69 100644 --- a/NOTICE +++ b/NOTICE @@ -6,11 +6,10 @@ This product includes software derived from OpenIDEA licensed under the Apache License 2.0. Copyright 2026 OpenIDEA contributors -The derived parts are the login shell environment reader -(macos/Sources/Lithe/Platform/MacOS/Runtime/MacLoginShellEnvironment.swift, from -crates/ide-host/src/shell_env.rs), the automatic JDK selection policy -(rust/lithe-core/src/execution/java_selection.rs, from crates/ide-sdk/src/java.rs) and the -version manager install locations used by JDK and Maven discovery. They were translated -and modified for Lithe; each derived file names its origin. +The derived part is the login shell environment reader +(desktop/internal/loginenv/loginenv.go, from crates/ide-host/src/shell_env.rs). It was +translated and modified for Lithe; the file names its origin. The automatic JDK selection +policy that was also derived from OpenIDEA moved to the Java Support plugin +(https://github.com/Lithe-IDEA/lithe-plugin-java), whose NOTICE names it. Lithe is not affiliated with OpenIDEA, JetBrains s.r.o. or their products. diff --git a/desktop/internal/core/desktop_go_test.go b/desktop/internal/core/desktop_go_test.go index 6a258a90d2..15741d6386 100644 --- a/desktop/internal/core/desktop_go_test.go +++ b/desktop/internal/core/desktop_go_test.go @@ -125,7 +125,7 @@ func TestBuildDesktopCoreChecksOutFreshPinnedRevision(t *testing.T) { } runGit(t, source, "init", "-q") write(filepath.Join(source, "rust/Cargo.toml"), "fixture manifest\n", 0o600) - write(filepath.Join(source, "rust/lithe-core/include/lithe_core.h"), "fixture header\n", 0o600) + write(filepath.Join(source, "rust/crates/core/include/lithe_core.h"), "fixture header\n", 0o600) runGit(t, source, "add", ".") runGit(t, source, "commit", "-qm", "fixture") revision := runGit(t, source, "rev-parse", "HEAD") diff --git a/desktop/internal/core/errors.go b/desktop/internal/core/errors.go index a527c9e6c8..bc2f776980 100644 --- a/desktop/internal/core/errors.go +++ b/desktop/internal/core/errors.go @@ -6,7 +6,7 @@ import ( ) // ErrorCode is the kernel's stable failure category. The values are the snake_case names of -// the Rust ErrorCode enum in rust/lithe-core/src/protocol/error.rs of Lithe-IDEA/Lithe-core-rust; +// the Rust ErrorCode enum in rust/crates/core/src/protocol/error.rs of Lithe-IDEA/Lithe-core-rust; // a code this package does not know (from a newer kernel) is still delivered as is. type ErrorCode string diff --git a/docs/ci-builds.md b/docs/ci-builds.md index 4d36631a26..5553bb9a6e 100644 --- a/docs/ci-builds.md +++ b/docs/ci-builds.md @@ -470,17 +470,6 @@ SwiftPM 的 `.build/`、资源 bundle 和 `.lithe-swift-toolchain` 标记登记 由本工作树 SwiftPM 清理管理;这些操作仅作用于构建目录,不修改已安装应用、签名 发行基线或 Sparkle delta。 -Windows 前端用到的纯规则(`rust/lithe-core-rules`,例如双击 Shift 手势)会被编译成 -`windows/tauri/public/core-rules/lithe_core_rules.wasm`,由 -`scripts/windows/prepare/prepare-core-rules-wasm.mjs` 生成(需要 `rustup target add wasm32-unknown-unknown`, -约几秒、不下载任何东西)。`dev`、`build`(因此 `desktop:build` 的 beforeBuildCommand 也包含它)、 -`ci-windows.yml` 的前端 job,以及 `release-windows.yml`、`release-preview-windows.yml` 的 Rust 目标都已接入; -bun 测试辅助 `src/test-utils/core-rules.ts` 在产物缺失或旧于 Rust 源码时会调用同一个脚本重建。 -该产物登记为 `core-rules-wasm`,**不可跨工作树复用**:文件里没有版本、源码修订或工具链 -identity stamp,无法证明与目标工作树的 Rust 源码一致,所有校验和复制阶段都拒绝, -每个工作树自行重建(`.gitignore` 忽略,不提交)。它是只读的打包输入,应用运行时不写入, -不影响代码签名和 Sparkle delta。macOS 不使用 wasm,通过 lithe-core 的 FFI 调用同一份规则源码。 - `scripts/windows/perf/run-windows-perf.mjs` 的生产构建、本地基线和 CPU profile 写入 `.artifacts/windows-perf/`,登记为 `windows-perf-state`,所有复用阶段均拒绝复制。这些内容 跟随所在工作树的源码和机器,没有 identity stamp;工具在本工作树重新构建,不写 app bundle、 @@ -534,7 +523,7 @@ HTTP/SSE 响应体和 stdio 元数据限制为 2 MiB,原生文件由现有平 用户明确运行包命令可能产生的 npm/uv 缓存归上游运行时管理,不属于可跨工作树复用的 Lithe 构建资源。 随 App 附带的远端工作区服务登记为 `remote-server-artifacts`。`scripts/remote/build-remote-servers.sh` -每次打包都从 `rust/lithe-remote/` 用 `--no-default-features --features server` +每次打包都从 `rust/crates/remote/` 用 `--no-default-features --features server` 只构建 `lithe-remote-server` 可执行文件,不编译客户端;两个 Linux musl 静态版输出到 `rust/target/remote-servers/`,再复制到 `Contents/Resources/RemoteServers/`;构建机需要 `x86_64-unknown-linux-musl` 和 `aarch64-unknown-linux-musl` 两个 Rust 目标。清单只记录服务版本, diff --git a/docs/development/macos-plugin-api-plan.md b/docs/development/macos-plugin-api-plan.md index 57552c46ff..2ecf066864 100644 --- a/docs/development/macos-plugin-api-plan.md +++ b/docs/development/macos-plugin-api-plan.md @@ -391,9 +391,9 @@ Mac 当前声明的能力版本为:`backend:1`、`buildModelInputs:1`、`build | 索引 | 所有者与证据 | | --- | --- | -| S1 | [插件契约](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/README.md)、[Core 能力](../../rust/lithe-core/src/plugins/capabilities.rs)、[清单校验与激活事件](../../rust/lithe-core/src/plugins/declarative.rs)、[清单 schema](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/plugin-manifest.schema.json)、[Mac 能力表](../../macos/Sources/LitheModuleAPI/Plugins/PluginTypes.swift) | -| S2 | [backend 1](../../rust/lithe-core/src/plugins/backend.rs)、[函数协议](../../rust/lithe-core/src/lsp/interface/plugin_function.rs)、[Mac 后端会话](../../macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginBackendSessions.swift)、[宿主凭据服务](../../macos/Sources/Lithe/Application/Features/PluginHostServices.swift) | -| S3 | [原生 UI 功能](../../macos/Sources/Lithe/Application/Features/PluginNativeUIFeature.swift)、[Core UI 校验](../../rust/lithe-core/src/plugins/native_ui.rs)、[已实现原生 UI Note](../../.agents/notes/implemented/feature/2026-10-21-declarative-native-plugin-ui.md) | +| S1 | [插件契约](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/README.md)、[Core 能力](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/crates/core/src/plugins/capabilities.rs)、[清单校验与激活事件](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/crates/core/src/plugins/declarative.rs)、[清单 schema](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/plugin-manifest.schema.json)、[Mac 能力表](../../macos/Sources/LitheModuleAPI/Plugins/PluginTypes.swift) | +| S2 | [backend 1](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/crates/core/src/plugins/backend.rs)、[函数协议](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/crates/core/src/lsp/interface/plugin_function.rs)、[Mac 后端会话](../../macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginBackendSessions.swift)、[宿主凭据服务](../../macos/Sources/Lithe/Application/Features/PluginHostServices.swift) | +| S3 | [原生 UI 功能](../../macos/Sources/Lithe/Application/Features/PluginNativeUIFeature.swift)、[Core UI 校验](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/crates/core/src/plugins/native_ui.rs)、[已实现原生 UI Note](../../.agents/notes/implemented/feature/2026-10-21-declarative-native-plugin-ui.md) | | S4 | [Web bridge](../../macos/Sources/Lithe/Application/Features/PluginWebBridge.swift)、[包内内容](../../macos/Sources/Lithe/Platform/MacOS/Plugins/Web/MacPluginWebContent.swift)、[页面生命周期](../../macos/Sources/Lithe/Application/Features/PluginWebPageLifecycle.swift)、[状态存储](../../macos/Sources/Lithe/Platform/MacOS/Plugins/Web/MacPluginWebStateStore.swift) | | S5 | [文档功能](../../macos/Sources/Lithe/Application/Features/DocumentFeatureModel.swift)、[LSP 编辑入口](../../macos/Sources/Lithe/Application/Features/LanguageWorkspaceEditService.swift)、[Monaco model](../../frontend/editor/src/model-source.ts)、[diff review](../../frontend/editor/src/diff-review.ts) | | S6 | [文件端口](../../macos/Sources/LitheCoreContracts/Workspace/WorkspaceFileOperations.swift)、[Mac 文件适配](../../macos/Sources/Lithe/Platform/MacOS/FileSystem/MacWorkspaceFileOperations.swift)、[目录变更](../../macos/Sources/Lithe/Core/Ports/DirectoryChangeSource.swift)、[工程功能](../../macos/Sources/LitheWorkspaceModule/Application/WorkspaceFeatureModel.swift) | @@ -405,7 +405,7 @@ Mac 当前声明的能力版本为:`backend:1`、`buildModelInputs:1`、`build | S12 | [终端端口](../../macos/Sources/LitheTerminalModule/Ports/TerminalTransport.swift)、[终端功能](../../macos/Sources/LitheTerminalModule/Application/TerminalFeatureModel.swift) | | S13 | [语言 Provider 目录](../../macos/Sources/Lithe/Core/Language/PluginLanguageProviderCatalogSource.swift)、[LSP 资源归属](../../.agents/notes/implemented/architecture/2026-09-30-lsp-plugin-build-and-distribution.md)、[诊断功能](../../macos/Sources/Lithe/Application/Features/DiagnosticsFeatureModel.swift) | | S14 | [Debug 会话](../../macos/Sources/LitheDebugModule/Runtime/DebugAdapterSessionManager.swift)、[VCS 功能](../../macos/Sources/Lithe/Application/Features/VcsProvidersFeatureModel.swift)、[项目生成服务](../../macos/Sources/Lithe/Services/ProjectGeneration/ProjectGenerationService.swift) | -| S15 | [独立 IDE API](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/ide-api/v1.md)、[原生模块接口](../../macos/Sources/LitheModuleAPI/Plugins/IDECapabilities.swift)、[授权功能](../../macos/Sources/Lithe/Application/Features/IdeCapabilitiesFeatureModel.swift)、[工具目录](../../rust/lithe-ide-host/src/catalog.rs) | +| S15 | [独立 IDE API](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/ide-api/v1.md)、[原生模块接口](../../macos/Sources/LitheModuleAPI/Plugins/IDECapabilities.swift)、[授权功能](../../macos/Sources/Lithe/Application/Features/IdeCapabilitiesFeatureModel.swift)、[工具目录](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/crates/ide-host/src/catalog.rs) | | S16 | [Mac 主题](../../macos/Sources/Lithe/Theme/LitheTheme.swift)、[图标入口](../../macos/Sources/Lithe/Theme/LitheIcons.swift) | | S17 | [Services/公共扩展提案](../../.agents/notes/proposed/architecture/2026-10-13-public-extension-contract-and-provider-api.md)、[数据库后端](../../.agents/notes/implemented/architecture/2026-10-24-database-provider-plugin.md)、[依赖与导出提案](../../.agents/notes/proposed/architecture/2026-10-25-plugin-dependencies-and-exports.md) | | S18 | [有限热激活范围](../../.agents/notes/implemented/architecture/2026-10-26-plugin-live-activation.md)、[既有函数调用方向](../../.agents/notes/implemented/architecture/2026-10-20-plugin-function-contract.md) | diff --git a/docs/development/windows-ai-commit.md b/docs/development/windows-ai-commit.md index 1939a78634..34ddddfd13 100644 --- a/docs/development/windows-ai-commit.md +++ b/docs/development/windows-ai-commit.md @@ -51,8 +51,8 @@ Windows 按勾选文件的工作区内容生成,包括该文件尚未暂存的 | 代码 | 职责 | | --- | --- | -| `rust/lithe-core/src/ai/configuration.rs` | Codex TOML / Claude JSON 解析,凭据不序列化 | -| `rust/lithe-core/src/ai/generation.rs` | 配置校验、提示词、字符预算、三种协议请求与响应 | +| `rust/crates/ai/src/configuration.rs` | Codex TOML / Claude JSON 解析,凭据不序列化 | +| `rust/crates/ai/src/generation.rs` | 配置校验、提示词、字符预算、三种协议请求与响应 | | `windows/tauri/src-tauri/src/ai_commit.rs` | 有界文件读取、凭据管理器、HTTP、超时与取消 | | `windows/tauri/src-tauri/src/platform.rs` | 统一前后端命令入口 | | `windows/tauri/src/features/git/types/ai-commit.ts` | 设置类型、默认值、持久化字段白名单 | @@ -77,7 +77,7 @@ Windows 验证需要仓库锁定的 Bun 版本(由 `windows/tauri/package.json ```powershell ./.agents/skills/write-stable-tests/scripts/verify-test-stability.ps1 ./.agents/skills/write-stable-tests/scripts/test-stability-windows.ps1 -Scope Frontend -FrontendTestPath src/features/settings/components/ai-settings-routing.test.tsx,src/features/git/services/ai-commit-workflow.test.ts,src/features/git/services/ai-commit-context.test.ts,src/features/git/types/ai-commit.test.ts,src/features/settings/lib/settings-normalization.test.ts -cargo test --manifest-path rust/lithe-core/Cargo.toml ai::tests --lib +cargo test --manifest-path rust/Cargo.toml -p lithe-ai --lib ./scripts/windows/build/build-windows.ps1 -Configuration Release cargo test --manifest-path windows/tauri/src-tauri/Cargo.toml node scripts/agent-notes/verify-agent-notes.mjs diff --git a/docs/viva-migration.md b/docs/viva-migration.md index cdbd2a7532..e963c49214 100644 --- a/docs/viva-migration.md +++ b/docs/viva-migration.md @@ -325,8 +325,8 @@ | id | 能力 | 分类 | 基线 mac/win | Viva 现状 | 缺口 / 说明 | | --- | --- | --- | --- | --- | --- | -| `community-auth` | 社区认证与请求失败处理 | 不纳入 | 缺/缺 | — | 两端基线均缺失 | -| `community-feed` | 主题列表与详情 | 不纳入 | 缺/缺 | — | 两端基线均缺失 | +| `community-auth` | 社区认证与请求失败处理 | 不纳入 | 缺/缺 | — | 两端基线均缺失;2026-11-13 决定不做,见“不做:社区论坛” | +| `community-feed` | 主题列表与详情 | 不纳入 | 缺/缺 | — | 两端基线均缺失;2026-11-13 决定不做,见“不做:社区论坛” | ### 编辑器(32) @@ -454,6 +454,10 @@ MCP 管理随 Agent 对话失去消费者后,本轮整块删除,后续重新 保留 `ide-mcp-connection`:Lithe 对外提供的 IDE API MCP 服务端(`lithe-mcp`、`Lithe-core-rust/rust/fixtures/ide-api/mcp-protocol.json`)不依赖被删的配置管理能力。 +## 不做:社区论坛(2026-11-13 用户决定) + +用户决定 Viva 不做社区论坛,两项“不纳入”能力不再保留重新引入的入口。旧 macOS 的 LINUX DO 插件早已退役,两端客户端都没有社区入口,只剩 Rust Core 里没有消费者的 Discourse 实现。Lithe-core-rust#26 删除了 `community` 模块、`community.discourse.*` 七个命令(`auth.begin`、`auth.complete`、`auth.revoke`、`topics`、`topic`、`categories`、`search`)、`rust/fixtures/community`,以及只为它引入的依赖 `reqwest`(blocking、rustls-tls)、`rsa`、`sha1`;`lithe-ide-host` 自带的 `reqwest` 依赖不受影响。本仓库删除两个能力记录(`community-auth`、`community-feed`),主表两行保留作为冻结基线。README 中对 LINUX DO 的致谢与此无关,保留。 + ## 放弃:Agent 对话(38 项,2026-11-12 用户决定) 用户决定 Viva 桌面端不做 Agent 对话。#1799 删除了助手面板、会话与历史、卡片、Agent 安装与管理、自定义 Agent,以及 AI 设置下的 Agents、Instructions、Skills、Hooks、MCP 配置页。保留 AI 生成提交信息(`ai-commit-generation`)、编辑器内联 AI 编辑(`ai-inline-edit`)和 IDE 连接(`ide-mcp-connection`),它们读取用户 Codex/Claude 配置的服务商发现移到 `desktop/internal/workbench/ai_provider.go`。Rust Core 中的 Agent 代码与 `shared/fixtures/agent`、`shared/fixtures/mcp` 契约当时暂留,随后 Agent 代码由 Lithe-core-rust#18 删除,MCP 契约由 #19 删除;本仓库的 `shared/fixtures/agent` 与 `shared/contracts/agent-turn-policy.json` 在 #1853 删除整个 `shared/contracts`、`shared/fixtures` 副本时一并删除。 diff --git a/scripts/desktop/build-desktop-core.sh b/scripts/desktop/build-desktop-core.sh index abbf7d6bbb..f658e47b05 100755 --- a/scripts/desktop/build-desktop-core.sh +++ b/scripts/desktop/build-desktop-core.sh @@ -28,9 +28,12 @@ native_path() { } PINNED_CORE_REPOSITORY="https://github.com/Lithe-IDEA/Lithe-core-rust.git" -# Lithe-core-rust #25 (the ai.* commands moved into the lithe-ai crate; command names, JSON and -# error codes unchanged) on top of #24 (rust/contracts and rust/fixtures are the only copy of the -# application contracts and fixtures, which desktop tests read through LITHE_CORE_FIXTURE_DIR) and +# Lithe-core-rust #26 (community.discourse.* commands and the wasm build removed, every crate moved +# to rust/crates//, the C header now at +# rust/crates/core/include/lithe_core.h), squash-merged into main, on top of #25 (the ai.* +# commands moved into the lithe-ai crate; command names, JSON and error codes unchanged), #24 +# (rust/contracts and rust/fixtures are the only copy of the application contracts and fixtures, +# which desktop tests read through LITHE_CORE_FIXTURE_DIR) and # #23 (Java, Maven and JDT special cases removed, execution.planLaunchCommand among them; # run/start temporaryFiles may carry base64 bytes), squash-merged into main, on top of #22 (IDE find/replace, # recovery, preferences, navigation, keymaps and Scratch lifecycle), squash-merged into main, on top of #21 (debug.setBreakpointsMuted, debug.planMemoryWindow and @@ -41,7 +44,7 @@ PINNED_CORE_REPOSITORY="https://github.com/Lithe-IDEA/Lithe-core-rust.git" # the contract, plugin guides, reference and SDKs live only in shared/plugins; on top of #16 (reported Git queries folded in the console), # #15 (git.write cherryPick, revert and reset fields), #14 (word-level changed ranges of diff # rows), #13, #8, #7, #6 and #4. -PINNED_CORE_REVISION="f113e9e9f81a30fa9feb61307e4118af111df936" +PINNED_CORE_REVISION="439f42fd152dc531396d7be9cdf393b4d86f0940" PROFILE="debug" while [[ $# -gt 0 ]]; do case "$1" in @@ -142,7 +145,7 @@ if [[ ! -s "$NATIVE_LIBS_FILE" ]]; then fi install -m 0644 "$LIBRARY_DIR/liblithe_core.a" "$STAGE_DIR/lib/liblithe_core.a" -install -m 0644 "$CORE_DIR/rust/lithe-core/include/lithe_core.h" "$STAGE_DIR/include/lithe_core.h" +install -m 0644 "$CORE_DIR/rust/crates/core/include/lithe_core.h" "$STAGE_DIR/include/lithe_core.h" # The IDE API helper is the lithe-ide-host crate's lithe-mcp binary from the same pinned # checkout. It is staged here so packaging can embed it; nothing at runtime reads this diff --git a/scripts/resources/reuse-worktree-resources.mjs b/scripts/resources/reuse-worktree-resources.mjs index 0e9c832f30..667e487d92 100644 --- a/scripts/resources/reuse-worktree-resources.mjs +++ b/scripts/resources/reuse-worktree-resources.mjs @@ -105,8 +105,6 @@ async function readRegistry() { // document tokens and editor action leases are memory-only, never reusable. // Shared logging catalogs and generated API sources also use the refusal route: // validate with generate-log-events.mjs in the target checkout; never copy. - // The core rules wasm module (rust/lithe-core-rules) has no identity stamp either: - // each worktree rebuilds it with prepare-core-rules-wasm.mjs; it never gains a validator. // Shared i18n source and generated tables take this same refusal route: // rebuild from the target checkout, never copy another worktree's translations. // AutoBuild publication checkpoints and baseline downloads are invocation-owned, diff --git a/scripts/resources/test-reuse-worktree-resources.mjs b/scripts/resources/test-reuse-worktree-resources.mjs index df7da7a402..a43f704c99 100644 --- a/scripts/resources/test-reuse-worktree-resources.mjs +++ b/scripts/resources/test-reuse-worktree-resources.mjs @@ -194,7 +194,7 @@ try { const registry = JSON.parse(await fs.readFile(path.join(scriptDirectory, "worktree-resources.json"), "utf8")); const resource = registry.excludedResources.find(item => item.id === "shared-logging"); assert.equal(resource.reusable, false); - assert.ok(resource.locations.includes("rust/lithe-core/src/diagnostics/catalog_generated.rs")); + assert.ok(resource.locations.includes("rust/crates/core/src/diagnostics/catalog_generated.rs")); const listed = run(process.execPath, [reuseScript, "--list"]); assertSucceeded(listed); assert.ok(!listed.stdout.includes(resource.id)); @@ -202,18 +202,6 @@ try { assert.notEqual(refused.status, 0); assert.match(diagnostics(refused), /shared-logging.*cannot be reused/); }); - await test("the core rules wasm module is rebuilt per worktree, never reused", { timeout: 15000 }, async () => { - const registry = JSON.parse(await fs.readFile(path.join(scriptDirectory, "worktree-resources.json"), "utf8")); - const resource = registry.excludedResources.find(item => item.id === "core-rules-wasm"); - assert.equal(resource.reusable, false); - assert.ok(resource.locations.includes("windows/tauri/public/core-rules/lithe_core_rules.wasm")); - const listed = run(process.execPath, [reuseScript, "--list"]); - assertSucceeded(listed); - assert.ok(!listed.stdout.includes(resource.id)); - const refused = reuse(["--resource", resource.id]); - assert.notEqual(refused.status, 0); - assert.match(diagnostics(refused), /core-rules-wasm.*cannot be reused/); - }); await test("shared translations are regenerated locally rather than reused", { timeout: 15000 }, async () => { const registry = JSON.parse(await fs.readFile(path.join(scriptDirectory, "worktree-resources.json"), "utf8")); const resource = registry.excludedResources.find(item => item.id === "shared-i18n"); diff --git a/scripts/resources/worktree-resources.json b/scripts/resources/worktree-resources.json index 9d58c02bc7..62cede0916 100644 --- a/scripts/resources/worktree-resources.json +++ b/scripts/resources/worktree-resources.json @@ -588,21 +588,11 @@ "locations": [ "shared/logging/", "macos/Sources/LitheModuleAPI/Logging/LogEvents.generated.swift", - "rust/lithe-core/src/diagnostics/catalog_generated.rs" + "rust/crates/core/src/diagnostics/catalog_generated.rs" ], "identity": "Git-owned event catalog and checked-in generated source bytes from the current revision. No sealed version/platform/architecture/toolchain reuse identity stamp.", "reason": "Generate and check with scripts/logging/generate-log-events.mjs in each target worktree before compilation. Every validation and copy stage rejects cross-worktree reuse. No download or cache; compiled metadata and Swift event values perform no runtime I/O and never change code signatures or Sparkle delta baselines." }, - { - "id": "core-rules-wasm", - "reusable": false, - "locations": [ - "windows/tauri/public/core-rules/lithe_core_rules.wasm", - "rust/target/wasm32-unknown-unknown/" - ], - "identity": "Generated by scripts/windows/prepare/prepare-core-rules-wasm.mjs from rust/lithe-core-rules at this checkout's revision, with the local rustc, Cargo.lock and wasm32-unknown-unknown target. The file carries no version, source-revision or toolchain identity stamp, so a copy cannot be proven to match the target worktree's Rust sources.", - "reason": "Never copy or share this artifact at any worktree reuse stage. Each worktree rebuilds it (a few seconds, no downloads) through the Windows dev, build and desktop:build scripts, CI and the bun test helper, which also rebuilds when the Rust sources are newer. It is a read-only packaged frontend input: nothing writes it at runtime, so installed bundles, code signatures and Sparkle delta baselines are unaffected." - }, { "id": "viva-plugin-preference-sources", "reusable": false, diff --git a/shared/platform-feature-matrix/features/ai-commit-generation.json b/shared/platform-feature-matrix/features/ai-commit-generation.json index 5221c66ece..ed6a208741 100644 --- a/shared/platform-feature-matrix/features/ai-commit-generation.json +++ b/shared/platform-feature-matrix/features/ai-commit-generation.json @@ -44,7 +44,7 @@ "evidence": [ "macos/Sources/Lithe/Application/Features/CommitWorkflowCoordinator.swift", "macos/Sources/Lithe/Platform/MacOS/AI", - "rust/lithe-core/src/git/commit_message_context.rs", + "rust/crates/core/src/git/commit_message_context.rs", "shared/fixtures/git/commit-message-context-v1.json" ], "implementationStatus": "implemented", @@ -54,7 +54,7 @@ "evidence": [ "windows/tauri/src/features/git/services/ai-commit-service.ts", "shared/contracts/ai-commit.md", - "rust/lithe-core/src/git/commit_message_context.rs", + "rust/crates/core/src/git/commit_message_context.rs", "shared/fixtures/git/commit-message-context-v1.json" ], "implementationStatus": "implemented", diff --git a/shared/platform-feature-matrix/features/ai-inline-edit.json b/shared/platform-feature-matrix/features/ai-inline-edit.json index 2a8c960290..5c08a1487d 100644 --- a/shared/platform-feature-matrix/features/ai-inline-edit.json +++ b/shared/platform-feature-matrix/features/ai-inline-edit.json @@ -43,7 +43,7 @@ "implementationStatus": "implemented", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/ai/inline_edit.rs", + "rust/crates/ai/src/inline_edit.rs", "shared/fixtures/ai/inline-edit-v1.json", "windows/tauri/src/features/editor/services/editor-inline-edit-service.ts", "windows/tauri/src/features/editor/inline-edit/use-inline-edit.ts", diff --git a/shared/platform-feature-matrix/features/ai-pull-request-description.json b/shared/platform-feature-matrix/features/ai-pull-request-description.json index 93eafd345e..89cd4dff4d 100644 --- a/shared/platform-feature-matrix/features/ai-pull-request-description.json +++ b/shared/platform-feature-matrix/features/ai-pull-request-description.json @@ -30,7 +30,7 @@ "implementationStatus": "implemented", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/ai/pull_request.rs", + "rust/crates/ai/src/pull_request.rs", "shared/contracts/ai-generation-requests.md", "shared/fixtures/ai/pull-request-description-v1.json", "macos/Sources/Lithe/Core/Rust/RustAICommitPlanning.swift", diff --git a/shared/platform-feature-matrix/features/application-settings.json b/shared/platform-feature-matrix/features/application-settings.json index bd0bf8cb2c..8811e1a6dc 100644 --- a/shared/platform-feature-matrix/features/application-settings.json +++ b/shared/platform-feature-matrix/features/application-settings.json @@ -59,7 +59,7 @@ "macos/Sources/Lithe/Views/App/GitExecutionSettingsView.swift", "macos/Sources/LitheGitModule/Models/GitConfigurationFallback.swift", "macos/Tests/LitheGitModuleTests/GitSettingsPresentationTests.swift", - "rust/lithe-core/src/git/configuration.rs", + "rust/crates/core/src/git/configuration.rs", "macos/Sources/LitheGitModule/Application/GitExecutionSettingsFeatureModel.swift", "macos/Sources/Lithe/Views/App/McpSettingsView.swift", "macos/Sources/Lithe/Application/Features/AgentSetupDiagnostics.swift", diff --git a/shared/platform-feature-matrix/features/build-native-configuration.json b/shared/platform-feature-matrix/features/build-native-configuration.json index 0108e5b6c3..4c96e1ca84 100644 --- a/shared/platform-feature-matrix/features/build-native-configuration.json +++ b/shared/platform-feature-matrix/features/build-native-configuration.json @@ -36,7 +36,7 @@ "implementationStatus": "implemented", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/build/configuration.rs", + "rust/crates/core/src/build/configuration.rs", "shared/contracts/plugins/v1/fixtures/build-providers/build-configuration.json", "macos/Sources/LitheExecutionModule/Services/BuildNativeConfigurationCoordinator.swift", "macos/Sources/Lithe/Platform/MacOS/Build/MacBuildNativeConfigurationStore.swift", @@ -48,7 +48,7 @@ }, "windows": { "evidence": [ - "rust/lithe-core/src/build/configuration.rs" + "rust/crates/core/src/build/configuration.rs" ], "implementationStatus": "missing", "verificationStatus": "not-applicable" diff --git a/shared/platform-feature-matrix/features/build-provider-jvm-debug.json b/shared/platform-feature-matrix/features/build-provider-jvm-debug.json index 03cf1ef897..a345848a83 100644 --- a/shared/platform-feature-matrix/features/build-provider-jvm-debug.json +++ b/shared/platform-feature-matrix/features/build-provider-jvm-debug.json @@ -36,7 +36,7 @@ "macos/Sources/Lithe/Platform/MacOS/Debug/MacDebugPortAvailabilityChecker.swift", "macos/Tests/LitheExecutionModuleTests/ExecutionModuleTests.swift", "shared/contracts/plugins/v1/fixtures/build-providers/build-connection-debug-options.json", - "rust/lithe-core/src/tests/build_systems.rs", + "rust/crates/core/src/tests/build_systems.rs", "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", "macos/Sources/LitheExecutionModule/Services/BuildSystemService.swift", "macos/Sources/LitheLanguageIntelligenceModule/Services/LanguageToolingSessionManager.swift", @@ -51,7 +51,7 @@ "windows": { "evidence": [ "shared/contracts/plugins/v1/fixtures/build-providers/build-connection-debug-options.json", - "rust/lithe-core/src/tests/build_systems.rs" + "rust/crates/core/src/tests/build_systems.rs" ], "implementationStatus": "missing", "verificationStatus": "not-applicable" diff --git a/shared/platform-feature-matrix/features/build-provider-readonly-model-inputs.json b/shared/platform-feature-matrix/features/build-provider-readonly-model-inputs.json index 9a5a23ee67..fd2ce429d6 100644 --- a/shared/platform-feature-matrix/features/build-provider-readonly-model-inputs.json +++ b/shared/platform-feature-matrix/features/build-provider-readonly-model-inputs.json @@ -34,8 +34,8 @@ "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/build/model_inputs.rs", - "rust/lithe-core/src/tests/build_systems.rs", + "rust/crates/core/src/build/model_inputs.rs", + "rust/crates/core/src/tests/build_systems.rs", "shared/contracts/plugins/v1/fixtures/build-systems/build-model-producer.plugin.json", "shared/contracts/plugins/v1/fixtures/build-systems/build-model-consumer.plugin.json", "macos/Sources/LitheExecutionModule/Services/BuildSystemService.swift", @@ -48,7 +48,7 @@ }, "windows": { "evidence": [ - "rust/lithe-core/src/build/model_inputs.rs", + "rust/crates/core/src/build/model_inputs.rs", "shared/contracts/plugins/v1/plugin-manifest.schema.json" ], "implementationStatus": "missing", diff --git a/shared/platform-feature-matrix/features/build-provider-refresh-and-tool.json b/shared/platform-feature-matrix/features/build-provider-refresh-and-tool.json index 1f9ec3bdad..56f0cb59cf 100644 --- a/shared/platform-feature-matrix/features/build-provider-refresh-and-tool.json +++ b/shared/platform-feature-matrix/features/build-provider-refresh-and-tool.json @@ -36,7 +36,7 @@ "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/build/plans.rs", + "rust/crates/core/src/build/plans.rs", "shared/contracts/plugins/v1/fixtures/build-systems/build-plans.json", "shared/contracts/plugins/v1/README.md", "macos/Sources/Lithe/Core/Rust/RustBuildSystemOperations.swift", @@ -53,7 +53,7 @@ }, "windows": { "evidence": [ - "rust/lithe-core/src/build/plans.rs", + "rust/crates/core/src/build/plans.rs", "shared/contracts/plugins/v1/fixtures/build-systems/build-plans.json" ], "implementationStatus": "missing", diff --git a/shared/platform-feature-matrix/features/build-system-plugins.json b/shared/platform-feature-matrix/features/build-system-plugins.json index 9465f66e5b..27da193758 100644 --- a/shared/platform-feature-matrix/features/build-system-plugins.json +++ b/shared/platform-feature-matrix/features/build-system-plugins.json @@ -72,7 +72,7 @@ "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/build", + "rust/crates/core/src/build", "shared/contracts/plugins/v1/fixtures/build-systems/build-plans.json", "macos/Sources/Lithe/Core/Rust/RustBuildSystemOperations.swift", "macos/Sources/Lithe/Platform/MacOS/Build", @@ -86,12 +86,12 @@ "macos/Tests/LitheTests/BuildSystemToolWindowTests.swift", "macos/Tests/LitheTests/PluginBuildOptionPersistenceTests.swift", "macos/Tests/LitheLanguageIntelligenceModuleTests/LanguageIntelligenceModuleTests.swift", - "rust/lithe-core/src/lsp/interface/build_provider.rs", + "rust/crates/core/src/lsp/interface/build_provider.rs", "macos/Sources/Lithe/Platform/MacOS/Build/MacBuildProviderSessions.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginLanguageServerLaunchResolver.swift", "macos/Tests/LitheTests/PluginMarketplaceServiceTests.swift", "shared/contracts/plugins/v1/fixtures/build-systems/build-tool-path.plugin.json", - "rust/lithe-core/src/plugins/executables.rs", + "rust/crates/core/src/plugins/executables.rs", "macos/Sources/LitheCoreContracts/Execution/ExecutableResolution.swift", "macos/Tests/LitheTests/BuildToolProviderResolutionTests.swift", "macos/Tests/LitheTests/MacBuildToolResolverTests.swift", @@ -101,9 +101,9 @@ ".agents/notes/implemented/architecture/2026-10-26-build-provider-task-execution.md", "shared/contracts/plugins/v1/fixtures/build-providers/build-provider-tests.plugin.json", "shared/contracts/plugins/v1/fixtures/build-providers/build-test-protocol.json", - "rust/lithe-core/src/build/test_discovery.rs", + "rust/crates/core/src/build/test_discovery.rs", "shared/contracts/plugins/v1/fixtures/build-providers/build-test-discovery.json", - "rust/lithe-core/src/build/run_preparation.rs", + "rust/crates/core/src/build/run_preparation.rs", "shared/contracts/plugins/v1/fixtures/build-providers/build-provider-run-preparation.plugin.json", "shared/contracts/plugins/v1/fixtures/build-providers/build-run-preparation.json", "macos/Sources/LitheExecutionModule/Services/RunService.swift", @@ -113,7 +113,7 @@ "macos/Sources/Lithe/Platform/MacOS/RunConfiguration/MacRunConfigurationStore.swift", "macos/Tests/LitheTests/RunConfigurationIntegrationTests.swift", "macos/Tests/LitheTests/IdeCapabilitiesTests.swift", - "rust/lithe-core/src/build/debug_preparation.rs", + "rust/crates/core/src/build/debug_preparation.rs", "shared/contracts/plugins/v1/fixtures/build-providers/build-provider-debug-preparation.plugin.json", "macos/Sources/Lithe/Platform/MacOS/Debug/MacBuildDebugLaunchResolver.swift", "macos/Sources/Lithe/Models/AppModel/AppModel+Debugging.swift", @@ -121,30 +121,30 @@ "macos/Tests/LitheTests/ProviderWorkflowPresentationTests.swift", "docs/assets/provider-workflow-review/README.md", "macos/Sources/Lithe/Views/App/ContributedBuildConfigurationSection.swift", - "rust/lithe-core/src/build/configuration.rs", + "rust/crates/core/src/build/configuration.rs", "shared/contracts/plugins/v1/fixtures/build-systems/build-instance-options.plugin.json", "shared/contracts/plugins/v1/fixtures/build-systems/build-toolchains.plugin.json", "macos/Sources/Lithe/Core/Ports/RunToolchainProviders.swift", "shared/contracts/build-project-options-v1.schema.json", "macos/Sources/Lithe/Platform/MacOS/Build/MacBuildOptionsStore.swift", "shared/contracts/plugins/v1/fixtures/build-providers/build-provider-reports.plugin.json", - "rust/lithe-core/src/build/outputs.rs", + "rust/crates/core/src/build/outputs.rs", "shared/contracts/plugins/v1/fixtures/build-providers/build-provider-selectors.plugin.json", "shared/contracts/plugins/v1/fixtures/build-providers/build-test-durations.json", "macos/Sources/LitheExecutionModule/Services/BuildLanguageTests.swift", "shared/contracts/plugins/v1/fixtures/build-providers/build-provider-run-options.plugin.json", "shared/contracts/plugins/v1/fixtures/build-providers/build-run-options.json", - "rust/lithe-core/src/build/project_options.rs", + "rust/crates/core/src/build/project_options.rs", "shared/fixtures/build-project-options/validation.json", "macos/Sources/LitheCoreContracts/Execution/RunConfigurationContracts.swift", - "rust/lithe-core/src/tests/build_systems.rs" + "rust/crates/core/src/tests/build_systems.rs" ], "implementationStatus": "partial", "verificationStatus": "pending" }, "windows": { "evidence": [ - "rust/lithe-core/src/build", + "rust/crates/core/src/build", "shared/contracts/plugins/v1/fixtures/build-systems/build-plans.json", "shared/contracts/plugins/v1/fixtures/build-providers/build-provider.plugin.json" ], diff --git a/shared/platform-feature-matrix/features/cargo-build-plugin.json b/shared/platform-feature-matrix/features/cargo-build-plugin.json index f2cd19f0eb..b4c7a6d9df 100644 --- a/shared/platform-feature-matrix/features/cargo-build-plugin.json +++ b/shared/platform-feature-matrix/features/cargo-build-plugin.json @@ -33,7 +33,7 @@ "docs/ci-builds.md", ".agents/notes/implemented/feature/2026-10-22-cargo-build-plugin.md", "shared/contracts/plugins/v1/fixtures/build-systems/build-tool-path.plugin.json", - "rust/lithe-core/src/plugins/executables.rs", + "rust/crates/core/src/plugins/executables.rs", "macos/Sources/LitheCoreContracts/Execution/ExecutableResolution.swift" ] }, diff --git a/shared/platform-feature-matrix/features/community-auth.json b/shared/platform-feature-matrix/features/community-auth.json deleted file mode 100644 index 92e3975f66..0000000000 --- a/shared/platform-feature-matrix/features/community-auth.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "id": "community-auth", - "area": "社区", - "group": "LINUX DO 社区", - "capability": "社区认证与请求失败处理", - "macos": { - "implementationStatus": "missing", - "verificationStatus": "not-applicable", - "evidence": [ - "docs/viva-migration.md" - ] - }, - "windows": { - "implementationStatus": "missing", - "verificationStatus": "not-applicable", - "evidence": [ - "docs/viva-migration.md" - ] - }, - "owner": "Community", - "verification": "如果重新引入社区入口,在 macOS 和 Windows 验证认证、过期、限流和网络错误。", - "notes": "Viva:不纳入新客户端(见 docs/viva-migration.md 对应行),不再按旧客户端行为对齐。现状:desktop/ 中没有社区认证、过期、限流或网络错误处理;此能力按迁移表“不纳入”,两端基线均缺失。", - "legacy": { - "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", - "macos": { - "evidence": [ - "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginPackageStore.swift", - "shared/fixtures/community" - ], - "implementationStatus": "missing", - "verificationStatus": "not-applicable" - }, - "windows": { - "evidence": [ - "windows/tauri/src/features" - ], - "implementationStatus": "missing", - "verificationStatus": "not-applicable" - }, - "notes": "macOS 的 LINUX DO 插件已退役,现存 fixture 不代表产品接入。" - } -} diff --git a/shared/platform-feature-matrix/features/community-feed.json b/shared/platform-feature-matrix/features/community-feed.json deleted file mode 100644 index d177c8ba3b..0000000000 --- a/shared/platform-feature-matrix/features/community-feed.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "id": "community-feed", - "area": "社区", - "group": "LINUX DO 社区", - "capability": "主题列表与详情", - "macos": { - "implementationStatus": "missing", - "verificationStatus": "not-applicable", - "evidence": [ - "docs/viva-migration.md" - ] - }, - "windows": { - "implementationStatus": "missing", - "verificationStatus": "not-applicable", - "evidence": [ - "docs/viva-migration.md" - ] - }, - "owner": "Community", - "verification": "如果重新引入社区入口,在 macOS 和 Windows 验证 Latest/Top、主题详情、分页和浏览器跳转。", - "notes": "Viva:不纳入新客户端(见 docs/viva-migration.md 对应行),不再按旧客户端行为对齐。现状:desktop/ 中没有社区主题列表、详情、分页或浏览器跳转实现;此能力按迁移表“不纳入”,两端基线均缺失。", - "legacy": { - "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", - "macos": { - "evidence": [ - "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginPackageStore.swift" - ], - "implementationStatus": "missing", - "verificationStatus": "not-applicable" - }, - "windows": { - "evidence": [ - "windows/tauri/src/features" - ], - "implementationStatus": "missing", - "verificationStatus": "not-applicable" - }, - "notes": "macOS 的 LINUX DO 插件已退役,当前两端均无社区入口。" - } -} diff --git a/shared/platform-feature-matrix/features/database-connections.json b/shared/platform-feature-matrix/features/database-connections.json index 7b02c04066..ca6171c2cd 100644 --- a/shared/platform-feature-matrix/features/database-connections.json +++ b/shared/platform-feature-matrix/features/database-connections.json @@ -31,7 +31,7 @@ "macos/Sources/Lithe/Application/Features/PluginMarketplace.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginBackendSessions.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginCredentialStore.swift", - "rust/lithe-core/src/plugins/backend.rs", + "rust/crates/core/src/plugins/backend.rs", "macos/Tests/LitheTests/PluginWebBridgeTests.swift", ".agents/notes/implemented/architecture/2026-10-24-database-provider-plugin.md" ], diff --git a/shared/platform-feature-matrix/features/database-crud-export.json b/shared/platform-feature-matrix/features/database-crud-export.json index 59e5c6e8d4..7f3a043fad 100644 --- a/shared/platform-feature-matrix/features/database-crud-export.json +++ b/shared/platform-feature-matrix/features/database-crud-export.json @@ -29,7 +29,7 @@ "macos/Sources/Lithe/Application/Features/PluginMarketplace.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginBackendSessions.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginCredentialStore.swift", - "rust/lithe-core/src/plugins/backend.rs", + "rust/crates/core/src/plugins/backend.rs", "macos/Tests/LitheTests/PluginWebBridgeTests.swift", ".agents/notes/implemented/architecture/2026-10-24-database-provider-plugin.md" ], diff --git a/shared/platform-feature-matrix/features/database-multi-schema-tree.json b/shared/platform-feature-matrix/features/database-multi-schema-tree.json index 30d3ee30d6..e55e8612da 100644 --- a/shared/platform-feature-matrix/features/database-multi-schema-tree.json +++ b/shared/platform-feature-matrix/features/database-multi-schema-tree.json @@ -29,7 +29,7 @@ "macos/Sources/Lithe/Application/Features/PluginMarketplace.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginBackendSessions.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginCredentialStore.swift", - "rust/lithe-core/src/plugins/backend.rs", + "rust/crates/core/src/plugins/backend.rs", "macos/Tests/LitheTests/PluginWebBridgeTests.swift", ".agents/notes/implemented/architecture/2026-10-24-database-provider-plugin.md" ], diff --git a/shared/platform-feature-matrix/features/database-query-history.json b/shared/platform-feature-matrix/features/database-query-history.json index a2e415793d..ba4336cfc3 100644 --- a/shared/platform-feature-matrix/features/database-query-history.json +++ b/shared/platform-feature-matrix/features/database-query-history.json @@ -31,7 +31,7 @@ "macos/Sources/Lithe/Application/Features/PluginMarketplace.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginBackendSessions.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginCredentialStore.swift", - "rust/lithe-core/src/plugins/backend.rs", + "rust/crates/core/src/plugins/backend.rs", "macos/Tests/LitheTests/PluginWebBridgeTests.swift", ".agents/notes/implemented/architecture/2026-10-24-database-provider-plugin.md" ], diff --git a/shared/platform-feature-matrix/features/database-schema.json b/shared/platform-feature-matrix/features/database-schema.json index 933f9f6a34..93336ed35f 100644 --- a/shared/platform-feature-matrix/features/database-schema.json +++ b/shared/platform-feature-matrix/features/database-schema.json @@ -31,7 +31,7 @@ "macos/Sources/Lithe/Application/Features/PluginMarketplace.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginBackendSessions.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginCredentialStore.swift", - "rust/lithe-core/src/plugins/backend.rs", + "rust/crates/core/src/plugins/backend.rs", "macos/Tests/LitheTests/PluginWebBridgeTests.swift", ".agents/notes/implemented/architecture/2026-10-24-database-provider-plugin.md" ], diff --git a/shared/platform-feature-matrix/features/debug-disassembly.json b/shared/platform-feature-matrix/features/debug-disassembly.json index 35acbf0ea2..5ad8d85e54 100644 --- a/shared/platform-feature-matrix/features/debug-disassembly.json +++ b/shared/platform-feature-matrix/features/debug-disassembly.json @@ -35,11 +35,11 @@ "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/debug/types.rs", - "rust/lithe-core/src/debug/capabilities.rs", - "rust/lithe-core/src/debug/engine.rs", - "rust/lithe-core/src/protocol/command.rs", - "rust/lithe-core/src/runtime/dispatcher.rs", + "rust/crates/core/src/debug/types.rs", + "rust/crates/core/src/debug/capabilities.rs", + "rust/crates/core/src/debug/engine.rs", + "rust/crates/core/src/protocol/command.rs", + "rust/crates/core/src/runtime/dispatcher.rs", "macos/Sources/LitheCoreContracts/Debug/DebugAdapterContracts.swift", "macos/Sources/LitheCoreContracts/Debug/DebugProtocolCore.swift", "macos/Sources/Lithe/Core/Rust/RustDebugProtocolCore.swift", @@ -56,7 +56,7 @@ "macos/Tests/LitheTests/DebugJSONSyntaxTests.swift", "shared/fixtures/debug/projection-v2-examples.json", "macos/Tests/LitheTests/DebugDisassemblyLayoutTests.swift", - "rust/lithe-core/src/debug/disassembly_paging.rs", + "rust/crates/core/src/debug/disassembly_paging.rs", "macos/Sources/LitheCoreContracts/Debug/DebugPagingContracts.swift", "macos/Sources/Lithe/Core/Rust/RustRunDebugReducers.swift", "macos/Tests/LitheDebugModuleTests/LinkedCoreDebugPaging.swift", @@ -67,9 +67,9 @@ }, "windows": { "evidence": [ - "rust/lithe-core/src/debug/engine.rs", - "rust/lithe-core/src/debug/capabilities.rs", - "rust/lithe-core/src/debug/disassembly_paging.rs", + "rust/crates/core/src/debug/engine.rs", + "rust/crates/core/src/debug/capabilities.rs", + "rust/crates/core/src/debug/disassembly_paging.rs", "shared/fixtures/debug/disassembly-paging-v1.json" ], "implementationStatus": "missing", diff --git a/shared/platform-feature-matrix/features/debug-java-runtime.json b/shared/platform-feature-matrix/features/debug-java-runtime.json index deb0c2c7ed..617d251db9 100644 --- a/shared/platform-feature-matrix/features/debug-java-runtime.json +++ b/shared/platform-feature-matrix/features/debug-java-runtime.json @@ -29,7 +29,7 @@ }, "owner": "Debug", "verification": "为项目或运行配置指定与语言服务器运行时不同的 JDK,分别运行和调试 Java 主类、Maven 类配置与测试,确认三者的被调试 JVM 都是运行所用的 JDK;把 JDK 改为无效路径,确认调试与运行给出相同的报错。 macOS:该能力由独立的 Java/Maven/Gradle 插件(Lithe-IDEA/lithe-plugin-java、lithe-plugin-maven、lithe-plugin-gradle)实现,宿主只验证通用契约与接线,运行时验证记录归插件仓库。", - "notes": "Viva:调试运行时由插件声明的调试适配器与 Core 的进程启动计划决定(见 viva-debug-session);Java 插件尚未在 Viva 上接入,调试随运行配置、项目 JDK 与 JAVA_HOME 选择 JDK 的流程没有验证。归属:调试适配器是插件契约的一等能力(插件声明 requires.debugAdapters 与 debug.launch,自己提供 DAP 适配器),宿主只做会话编排、传输与界面(desktop/internal/workbench/debug_*.go),协议引擎在 Core 的 rust/lithe-core/src/debug/。因此补这条需要一个提供 Java 调试适配器的插件,不需要把 Java 调试耦合进主项目;在插件出来前本条保持 missing。", + "notes": "Viva:调试运行时由插件声明的调试适配器与 Core 的进程启动计划决定(见 viva-debug-session);Java 插件尚未在 Viva 上接入,调试随运行配置、项目 JDK 与 JAVA_HOME 选择 JDK 的流程没有验证。归属:调试适配器是插件契约的一等能力(插件声明 requires.debugAdapters 与 debug.launch,自己提供 DAP 适配器),宿主只做会话编排、传输与界面(desktop/internal/workbench/debug_*.go),协议引擎在 Core 的 rust/crates/core/src/debug/。因此补这条需要一个提供 Java 调试适配器的插件,不需要把 Java 调试耦合进主项目;在插件出来前本条保持 missing。", "legacy": { "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { diff --git a/shared/platform-feature-matrix/features/debug-state.json b/shared/platform-feature-matrix/features/debug-state.json index 0c14aaccfb..f859397d2a 100644 --- a/shared/platform-feature-matrix/features/debug-state.json +++ b/shared/platform-feature-matrix/features/debug-state.json @@ -64,7 +64,7 @@ "macos/Tests/LitheTests/TerminalPlacementFeatureModelTests.swift", "macos/Sources/Lithe/Views/Workbench/OutputTextView.swift", "macos/Sources/LitheDebugModule/Runtime/DebugAdapterSessionManager.swift", - "rust/lithe-core/src/debug/variable_paging.rs", + "rust/crates/core/src/debug/variable_paging.rs", "macos/Sources/LitheCoreContracts/Debug/DebugPagingContracts.swift", "macos/Sources/Lithe/Core/Rust/RustRunDebugReducers.swift", "shared/fixtures/debug/variable-page-plan-v1.json" @@ -79,7 +79,7 @@ "windows/tauri/src/features/debugger/services/debug-session-actions.test.ts", "windows/tauri/src/features/debugger/services/monaco-debug-decorations.test.ts", "windows/tauri/src/features/maven/services/maven-module-debug.test.ts", - "rust/lithe-core/src/debug/variable_paging.rs", + "rust/crates/core/src/debug/variable_paging.rs", "shared/fixtures/debug/variable-page-plan-v1.json", "windows/tauri/src/features/debugger/api/variable-paging-api.ts", "windows/tauri/src/features/debugger/services/debug-variable-paging.ts", diff --git a/shared/platform-feature-matrix/features/debug-tcp-transport.json b/shared/platform-feature-matrix/features/debug-tcp-transport.json index dc0ae17ba2..8ccddf8245 100644 --- a/shared/platform-feature-matrix/features/debug-tcp-transport.json +++ b/shared/platform-feature-matrix/features/debug-tcp-transport.json @@ -52,8 +52,8 @@ }, "windows": { "evidence": [ - "rust/lithe-core/src/debug/endpoint.rs", - "rust/lithe-core/src/debug/transport_lifecycle.rs", + "rust/crates/core/src/debug/endpoint.rs", + "rust/crates/core/src/debug/transport_lifecycle.rs", "shared/fixtures/debug/adapter-endpoints-v1.json", "shared/fixtures/debug/transport-lifecycle-v1.json" ], diff --git a/shared/platform-feature-matrix/features/declarative-plugin-contract.json b/shared/platform-feature-matrix/features/declarative-plugin-contract.json index 820e52c38c..d0d3abbf85 100644 --- a/shared/platform-feature-matrix/features/declarative-plugin-contract.json +++ b/shared/platform-feature-matrix/features/declarative-plugin-contract.json @@ -45,7 +45,7 @@ "macos": { "evidence": [ "shared/contracts/plugins/v1", - "rust/lithe-core/src/plugins/declarative.rs", + "rust/crates/core/src/plugins/declarative.rs", "macos/Sources/Lithe/Core/Rust/RustDeclarativePluginOperations.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginPackageStore.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginStartupLoader.swift", diff --git a/shared/platform-feature-matrix/features/declarative-plugin-settings.json b/shared/platform-feature-matrix/features/declarative-plugin-settings.json index 70ab5134d3..3d93c8d0e2 100644 --- a/shared/platform-feature-matrix/features/declarative-plugin-settings.json +++ b/shared/platform-feature-matrix/features/declarative-plugin-settings.json @@ -83,7 +83,7 @@ "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/plugins/declarative.rs", + "rust/crates/core/src/plugins/declarative.rs", "macos/Sources/LitheCoreContracts/Plugins/DeclarativePluginContracts.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginSettingsStore.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginLanguageServerLaunchResolver.swift", diff --git a/shared/platform-feature-matrix/features/diagnostics-export.json b/shared/platform-feature-matrix/features/diagnostics-export.json index 6fbafe22e6..1177f09685 100644 --- a/shared/platform-feature-matrix/features/diagnostics-export.json +++ b/shared/platform-feature-matrix/features/diagnostics-export.json @@ -35,20 +35,20 @@ "macos/Sources/LitheModuleAPI/Logging/LogSink.swift", "macos/Tests/LitheTests/MacLogStoreTests.swift", "shared/logging/events/", - "rust/lithe-core/src/git/command_trace.rs", - "rust/lithe-core/src/diagnostics/request_trace.rs", - "rust/lithe-core/src/tests/core_request_traces.rs", + "rust/crates/core/src/git/command_trace.rs", + "rust/crates/core/src/diagnostics/request_trace.rs", + "rust/crates/core/src/tests/core_request_traces.rs", "macos/Sources/LitheModuleAPI/Logging/UserActionTrace.swift", "macos/Tests/LitheTests/CoreRequestTraceTests.swift", "macos/Tests/LitheTests/UserActionTraceTests.swift", "macos/Tests/LitheTests/MonacoFreezeLogTests.swift", "macos/Sources/LitheModuleAPI/Logging", - "rust/lithe-core/src/diagnostics/channel.rs", - "rust/lithe-core/src/diagnostics/record.rs", - "rust/lithe-core/src/diagnostics/query_v2.rs", - "rust/lithe-core/src/diagnostics/retention.rs", + "rust/crates/core/src/diagnostics/channel.rs", + "rust/crates/core/src/diagnostics/record.rs", + "rust/crates/core/src/diagnostics/query_v2.rs", + "rust/crates/core/src/diagnostics/retention.rs", "shared/fixtures/diagnostics/logging-v2.json", - "rust/lithe-core/src/diagnostics/collection.rs", + "rust/crates/core/src/diagnostics/collection.rs", "macos/Tests/LitheTests/DiagnosticsExportV2Tests.swift", "macos/Sources/Lithe/Platform/MacOS/Diagnostics/MacCrashReportCollector.swift", "macos/Sources/Lithe/Application/Features/WorkbenchNotificationFeatureModel.swift", @@ -60,9 +60,9 @@ "macos/Sources/Lithe/Platform/MacOS/UI/MacWindowFindTarget.swift", "macos/Tests/LitheTests/LogWindowTests.swift", "macos/Sources/Lithe/Views/Diagnostics/LogChannelList.swift", - "rust/lithe-core/src/lsp/interface/plugin_logging.rs", + "rust/crates/core/src/lsp/interface/plugin_logging.rs", "shared/contracts/plugins/v1/fixtures/backend/plugin-logging.json", - "rust/lithe-core/src/diagnostics/plugin_operations.rs", + "rust/crates/core/src/diagnostics/plugin_operations.rs", "macos/Tests/LitheTests/Support/RecordedPluginOperations.swift" ], "implementationStatus": "implemented", diff --git a/shared/platform-feature-matrix/features/diagnostics-workspace.json b/shared/platform-feature-matrix/features/diagnostics-workspace.json index 979aee0805..b78ad9aa31 100644 --- a/shared/platform-feature-matrix/features/diagnostics-workspace.json +++ b/shared/platform-feature-matrix/features/diagnostics-workspace.json @@ -31,7 +31,7 @@ "macos/Experiments/Monaco/workbench.integration.ts", "macos/Sources/Lithe/Platform/MacOS/ProblemsDemo.swift", "macos/Sources/Lithe/Models/Editor/ProblemsQuery.swift", - "rust/lithe-core/src/lsp/host_policy/problems.rs", + "rust/crates/core/src/lsp/host_policy/problems.rs", "shared/fixtures/lsp/problems-query-v1.json", "macos/Sources/Lithe/Views/Language/ProblemsView.swift" ], @@ -45,7 +45,7 @@ "windows/tauri/src/ui/dialog.tsx", "windows/tauri/src/features/diagnostics/utils/problems-query.ts", "windows/tauri/src/features/diagnostics/utils/problems-query.test.ts", - "rust/lithe-core/src/lsp/host_policy/problems.rs", + "rust/crates/core/src/lsp/host_policy/problems.rs", "shared/fixtures/lsp/problems-query-v1.json" ], "implementationStatus": "implemented", diff --git a/shared/platform-feature-matrix/features/editor-git-blame-menu.json b/shared/platform-feature-matrix/features/editor-git-blame-menu.json index 2b764f7c9a..a7a2de1cef 100644 --- a/shared/platform-feature-matrix/features/editor-git-blame-menu.json +++ b/shared/platform-feature-matrix/features/editor-git-blame-menu.json @@ -35,9 +35,9 @@ "verificationStatus": "pending", "evidence": [ "shared/fixtures/git/history-locate-v1.json", - "rust/lithe-core/src/git/history.rs", - "rust/lithe-core/src/runtime/dispatcher.rs", - "rust/lithe-core/src/protocol/command.rs", + "rust/crates/core/src/git/history.rs", + "rust/crates/core/src/runtime/dispatcher.rs", + "rust/crates/core/src/protocol/command.rs", "macos/Tests/LitheGitModuleTests/GitModuleTests.swift", "macos/Sources/LitheGitModule/Models/GitHistoryLocateModels.swift", "macos/Sources/LitheGitModule/Application/GitFeatureModel.swift", @@ -51,7 +51,7 @@ "macos/Tests/LitheTests/MonacoEditorContextMenuTests.swift", "macos/Sources/LitheGitModule/Services/GitService.swift", "macos/Tests/LitheTests/GitStatusObservationTests.swift", - "rust/lithe-core/src/git/file_context.rs" + "rust/crates/core/src/git/file_context.rs" ] }, "windows": { @@ -59,9 +59,9 @@ "verificationStatus": "pending", "evidence": [ "shared/fixtures/git/history-locate-v1.json", - "rust/lithe-core/src/git/history.rs", - "rust/lithe-core/src/runtime/dispatcher.rs", - "rust/lithe-core/src/protocol/command.rs", + "rust/crates/core/src/git/history.rs", + "rust/crates/core/src/runtime/dispatcher.rs", + "rust/crates/core/src/protocol/command.rs", "windows/tauri/src/features/git/hooks/use-git-log-controller.ts", "windows/tauri/src/features/git/api/git-commits-api.ts", "windows/tauri/src/features/git/utils/git-blame-gutter.ts", @@ -79,7 +79,7 @@ "windows/tauri/src/features/keymaps/utils/readonly-diff-clipboard.ts", "windows/tauri/src/features/git/api/git-repo-api.ts", "windows/tauri/src/features/git/api/git-repo-api.test.ts", - "rust/lithe-core/src/git/file_context.rs" + "rust/crates/core/src/git/file_context.rs" ] }, "notes": "沿用已有 GitFeatureModel.loadBlame 和作者/提交展示;共享编辑器只在宿主显式启用 gitBlameMenu 时添加入口,Windows 现有 Blame 能力不受此入口开关影响。 Windows 侧与 IDEA 对齐:注释由 Monaco 行号格式化器输出 HTML 渲染在行号左侧,每行都标注而不按提交块合并,标签先日期(yyyy/M/d,与 macOS 一致、不补零)后作者、中间仅一个空格,标签贴注释列左侧、行号保持右对齐,可见性按文件存放在 git-blame store(原来的全局 enableInlineGitBlame 设置已删除),只有开启注释的文件才读取 git.blame;点注释把提交交给 Git Log 并选中(git-log-reveal store 传递请求,日志按页向前加载直到找到该提交,上限 20 页),Show Diff 仍复用 openCommitDiffBuffer 打开带路径限制和定位范围的单文件 diff。行号区右键为独立精简菜单(只含注释与提交动作,行历史移入内容区菜单的 Git 子菜单);内容区菜单新增 Git 子菜单承载 Annotate/Show Diff/Copy Revision/行历史,图标使用作者语义的用户图标。行号被 diff 编辑器重映射或为虚拟/预览缓冲时不渲染注释,避免行号与实际内容错位。 Show Diff 打开的是只读 diff,其左右两侧的 Ctrl+C/Ctrl+X 由 Monaco 原生处理(diff 根节点带 data-readonly-diff,编辑器 keymap 不再拦截),否则会复制源编辑器模型的空选择。 GIT-10:共享 Core 解析真实 Git 仓库与相对文件路径;macOS blame 和 Windows 本地 blame、diff、gutter、行历史复用结果,远程 URI 保持原有宿主路由。" diff --git a/shared/platform-feature-matrix/features/editor-git-gutter-stage.json b/shared/platform-feature-matrix/features/editor-git-gutter-stage.json index 18e0015c10..7c525e3f3f 100644 --- a/shared/platform-feature-matrix/features/editor-git-gutter-stage.json +++ b/shared/platform-feature-matrix/features/editor-git-gutter-stage.json @@ -43,7 +43,7 @@ "evidence": [ "windows/tauri/src/features/git/services/git-gutter-actions.ts", "windows/tauri/src/features/git/api/git-diff-block-api.ts", - "rust/lithe-core/src/git/diff_blocks.rs", + "rust/crates/core/src/git/diff_blocks.rs", "windows/tauri/src/features/git/utils/git-gutter-changes.test.ts" ] } diff --git a/shared/platform-feature-matrix/features/editor-go-to-line.json b/shared/platform-feature-matrix/features/editor-go-to-line.json index 59446d2dd3..4a77fab500 100644 --- a/shared/platform-feature-matrix/features/editor-go-to-line.json +++ b/shared/platform-feature-matrix/features/editor-go-to-line.json @@ -38,7 +38,7 @@ "macos/Sources/Lithe/Views/Editor/GoToLineDialog.swift", "macos/Tests/LitheTests/GoToLineInputTests.swift", "macos/Tests/LitheTests/GoToLineDialogValidationTests.swift", - "rust/lithe-core/src/editor/navigation_input.rs" + "rust/crates/core/src/editor/navigation_input.rs" ] }, "windows": { diff --git a/shared/platform-feature-matrix/features/editor-ide-settings-import.json b/shared/platform-feature-matrix/features/editor-ide-settings-import.json index 34496dce34..5734692347 100644 --- a/shared/platform-feature-matrix/features/editor-ide-settings-import.json +++ b/shared/platform-feature-matrix/features/editor-ide-settings-import.json @@ -35,7 +35,7 @@ "macos/Tests/LitheTests/EditorSettingsImportTests.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacEditorKeymapImportService.swift", "shared/contracts/plugins/v1/fixtures/keymap-import/keymap-import-provider.plugin.json", - "rust/lithe-core/src/plugins/keymap_import.rs", + "rust/crates/core/src/plugins/keymap_import.rs", "frontend/editor/src/workbench.ts", "macos/Sources/Lithe/Models/Settings/ImportedEditorTheme.swift", "macos/Sources/Lithe/Platform/MacOS/MacImportedIDEATheme.swift", diff --git a/shared/platform-feature-matrix/features/file-explorer.json b/shared/platform-feature-matrix/features/file-explorer.json index 1a6fd7dc5d..8474ba8b2b 100644 --- a/shared/platform-feature-matrix/features/file-explorer.json +++ b/shared/platform-feature-matrix/features/file-explorer.json @@ -56,10 +56,10 @@ "macos/Sources/LitheCoreContracts/Workspace/FileNodePathLookup.swift", "macos/Sources/LitheWorkspaceModule/Application/WorkspaceFeatureModel.swift", "macos/Sources/LitheCoreContracts/Workspace/DirectoryChangeContracts.swift", - "rust/lithe-core/src/project/files.rs", + "rust/crates/core/src/project/files.rs", "macos/Sources/Lithe/Models/Workspace/ProjectTreeLoader.swift", ".agents/notes/implemented/architecture/2026-10-19-lazy-project-tree.md", - "rust/lithe-core/src/project/file_name_order.rs", + "rust/crates/core/src/project/file_name_order.rs", "macos/Sources/LitheCoreContracts/Workspace/NaturalNameOrder.swift", "macos/Sources/Lithe/Platform/MacOS/FileSystem/MacWorkspaceSnapshotBuilder.swift", "macos/Tests/LitheTests/ProjectTreeNameOrderTests.swift", @@ -69,7 +69,7 @@ "macos/Tests/LitheTests/FileTypeIconKindTests.swift", "macos/Resources/IDEAIcons/fileTypes/custom.svg", "macos/Resources/IDEAIcons/fileTypes/i18n.svg", - "rust/lithe-core-rules/src/visibility.rs", + "rust/crates/core-rules/src/visibility.rs", "macos/Sources/LitheCoreContracts/Workspace/FileVisibilityRules.swift", "macos/Sources/LitheCoreContracts/Workspace/FileVisibilityEngine.swift", "macos/Sources/Lithe/Core/Rust/RustFileVisibilityEngine.swift", @@ -97,11 +97,11 @@ "windows/tauri/src/features/file-explorer/components/file-explorer-pane.tsx", "windows/tauri/src/features/file-explorer/hooks/use-file-explorer-drag-drop.test.tsx", "windows/tauri/src/features/sidebar/utils/tree-selection.test.ts", - "rust/lithe-core/src/project/files.rs", + "rust/crates/core/src/project/files.rs", "shared/fixtures/workspace/change-filter-v1.json", "windows/tauri/src/extensions/bundled/icon-themes/idea/extension.json", "windows/tauri/src/extensions/bundled-extension-manifests.test.ts", - "rust/lithe-core-rules/src/visibility.rs", + "rust/crates/core-rules/src/visibility.rs", "windows/tauri/src/features/file-explorer/lib/file-tree-visibility.ts", "windows/tauri/src/features/file-explorer/lib/file-tree-visibility.test.ts", "windows/tauri/src/features/settings/lib/hidden-path-rules.ts", @@ -110,7 +110,7 @@ "implementationStatus": "implemented", "verificationStatus": "pending" }, - "notes": "Windows 补齐 Ctrl/Shift 多选、批量复制/剪切/删除、已选集合拖动、Project/Dependencies 切换、定位当前文件、刷新和隐藏。目录名称单击选择,双击或箭头展开;长名称水平滚动。目录标记按工作区持久化,并随移动、重命名和删除迁移;本地 Windows/UNC 按不区分大小写处理,POSIX、WSL 和远程标识保留大小写并隔离工作区。批量移动预检父子重复及重名目标,原生发布拒绝覆盖;真实 WebView2 的拖动与焦点验收 pending。 Windows 树正文统一使用 ui-text-sm(默认 13px),随界面字号设置变化,舒适密度不单独放大 Dependencies 等树行;Project 刷新按钮使用 IDEA refresh.svg。手动定位使用有代次的展开后滚动请求;编辑器切换页签不再自动跟随滚动(autoRevealActiveFileInFileTree 设置已退役);定位清除树内搜索并切回 Project,保持虚拟列表。 搜索导航同步选择与锚点,右键成员判断保留原始选择集合,批量目标再去除父子重复;已完成移动不因面板卸载或工作区切换而漏掉原工作区同步。路径去重与拖动预检按文件系统大小写语义比较,包含 WSL UNC 别名。编辑器活动文件变化时单选同步高亮、复制/剪切目标及范围锚点,明确多选保留;使用同步 Hook 的真实编辑器目标判断切换,选择目录引发的共享侧栏路径往返不改变选择;真实面板与 store 回归覆盖此链路。 批量移动按每次工作区访问识别生命周期,相同根路径的再次访问不能复活旧批次;预检、移动、同步和失败回调共用该守卫。 macOS 快照跳过嵌套在自身仓库中的 linked worktree(.git 文件指向 <主仓库>/.git/worktrees/*)并内置隐藏 .artifacts;项目树由 workspace.listDirectories 按需逐层列出,children 为 nil 表示目录未加载;平铺文件清单 projectFiles 仍完整保留供搜索等功能使用。 macOS 项目树同级排序由 Rust Core 的 visible_children 与 Swift 的 NaturalNameOrder 共同实现 IDEA FileNameComparator(共享 fixture file-name-order-v1.json);快照 files 与搜索索引按 ChildOrder::Traversal 保持原有的小写排序(Windows 快速打开取前 100 项依赖它),只有 workspace.listDirectories 使用自然顺序。Windows 项目文件树仍使用 localeCompare,Git 文件树已使用同源的 compareGitFileNames,Windows 项目树对齐待后续处理。 Windows 文件树支持 Delete 键删除(始终二次确认),macOS 文件树暂无键盘删除,仅右键“移到废纸篓”。 Windows 定位当前文件先用 toRootedPath 把活动路径改写成树根目录的前缀与分隔符写法,再展开祖先并滚动;此前编辑器路径与树节点写法不同会因精确字符串匹配而静默无反应。 内置隐藏列表(.git、node_modules、target、build、dist、.lithe/** 等)和 glob 匹配只在 rust/lithe-core-rules 定义;Windows 设置里只保存用户自己的条目,新装默认值为空(此前内置了 .hg、.idea、*~ 等 Windows 独有条目,已保存的值不变,仍作为用户条目生效)。Windows 文件树按目录批量调用 wasm,结果按目录和规则版本缓存。", - "verification": "浏览目录、展开/折叠、打开资源并在文件变更后刷新树。 macOS 文件树、标签页与面包屑共用 TOML 文件图标:亮色使用 IDEA New UI 官方浅底蓝色 T,深色使用深底蓝色 T;检查明暗主题切换后选择对应 SVG,保留原始 16pt 几何与颜色。 点击目录名称后上下键按可见行移动选择,右键展开目录并再次右键进入首个子项,左键折叠或返回显示父项;双击目录名称展开/折叠,单击与修饰键多选保持独立。验证压缩 Java 包、列表首尾、Shift 上下范围选择与自动滚动;方向键不送到编辑器,点击编辑器或转移到搜索输入框后恢复其按键处理。 Windows Project 文件树滚轮与 Git Log 共用 Community Windows 默认 200ms 惯性过渡;核对连续同向、反向、Shift 横向滚动、顶底边界、键盘定位与滑块拖动取消惯性、卸载帧清理和减少动态效果偏好;虚拟树保持可见区呈现,真实 WebView2 实机验收 pending。 macOS 项目文件和目录选中行共用 LitheTheme.Tree 的主题聚焦色与灰色失焦色;点击编辑器、其他工具窗口后失焦,键盘转移到搜索输入框尚未输入时失焦,重新点击树恢复,整个窗口失焦时保持灰色。深浅主题、非默认主题、多选、上下键和右键菜单均需核对;组件像素和焦点回归不能替代完整应用验收。 Windows 在默认及舒适密度下比较 Project 与 Dependencies 树正文,再修改界面字号确认同步;深浅主题检查刷新图标为循环箭头,点击仍刷新目录。 Windows 打开深层文件并折叠祖先,点击定位当前文件,检查展开后滚动到目标行;滚动离开后重复点击同一文件仍定位;编辑器切换页签不得让树自动滚动。延迟目录加载完成后再滚动,旧请求完成不改变新位置;树内搜索和 Dependencies 视图下定位应回到完整 Project 树。 Windows 搜索首次命中和 Enter 切换后复制/剪切应使用当前命中;同时选择父目录、后代与其他文件后右键后代,复制/删除仍处理整个选择且父子只操作一次。原生移动等待期间关闭 Project 或切换工作区,成功项同步原工作区并停止后续项。受控 WSL/远程/POSIX 路径用例保留大小写不同的文件与目录,Windows 本地/普通 UNC 同名目标继续拒绝覆盖;这些用例不代表已开放 WSL/远程功能,真实 WebView2 工作流仍 pending。 Windows 编辑器保持 README 打开时点击目录名称,通过真实 FileExplorerPane、侧栏与缓冲区 store 验证路径同步往返后目录仍被选中,复制/剪切、键盘焦点和 Shift 范围锚点仍属于目录;实际切换编辑文件时单选跟随,明确多选保留。 Windows 批量拖动分别在目录预检、原生移动和原工作区同步等待期间切换 A→B→A,确认旧批次不再派发剩余项,已完成项仍同步原工作区;普通重渲染继续当前批次,旧移动失败不清除新拖动或显示过期错误。 macOS 打开含 .claude/worktrees 等嵌套 Git linked worktree 与 .artifacts 的仓库:项目树、文件列表与搜索索引不包含这些目录,子模块和位于主检出之外的工作树仍显示;嵌套工作树内的文件变化不触发刷新。外部新增/删除普通文件时树原地增删、不重新扫描整个工作区,新目录、压缩包结构变化时回退完整快照;定位当前文件按路径逐级查找,侧栏渲染不再遍历全部文件。 macOS 项目树按需列目录:快照只返回文件清单,目录展开时才列出下一层;检查首次打开大仓库只显示根层,展开、折叠后再展开、源码根下压缩 Java 包与全量构建一致;外部改动未展开目录下的文件不改变树,展开后可见;重新扫描后已展开目录保持展开并显示最新内容;定位当前文件会逐级加载祖先后滚动到目标行;新增或删除文件后先展开目录再处理监听事件,确认搜索等文件库存仍同步;压缩包重列期间发生其它文件增删,完成后库存和树都保留最新结果。 macOS 项目树同级排序对齐 IDEA 项目视图:目录先于文件,名称按自然顺序(数字按数值、忽略大小写、'-' 与 '_' 相邻);打开含 docs/releases/v0.1.4.md、v0.1.12.md、v0.1.14.md 的仓库,确认 v0.1.4 在 v0.1.12 之前,外部新建 v0.1.5.md 后原地插入到二者之间,与重新扫描的顺序一致。 外部构建产生超过 512 条 target/build 事件且混有源码变化时,只转发有效事件,不触发输出洪峰导致的整项目重扫;显式文件/生成源码监听、项目根名为 build、跨排除边界重命名均保留,系统丢失事件始终触发恢复重扫。 Windows 同时粘贴同名文件不覆盖彼此;剪切期间再次复制相同或不同内容,旧粘贴完成不得清除新剪贴板。 Windows 文件树单击文件只选中并高亮,不打开也不新建预览页签;双击或按 Enter 才打开,单击目录同样只选中。 Windows 文件树选中文件、目录或多选后按 Delete(无修饰键)总是弹出删除确认,即使“删除前确认”设置关闭;取消不删除,确认后按选择集合逐项删除,工作区根目录以及 Shift/Ctrl/Alt+Delete 不触发。 项目树、标签页和面包屑的 IDEA 文件图标:两端 .jsonl/.ndjson 用 JSON 图标,.wbmp 用图片图标,.doc/.docx/.ppt/.pptx 用 IDEA Native 类型的 custom 图标,.strings 用 i18n 图标;Windows IDEA Icons 主题另补齐 macOS 已识别的 Kotlin、Rust、Go、Python、Ruby、Scala、PHP 等扩展名和 .classpath、.gitattributes、docker-compose 等文件名,.kts 用 Kotlin 图标而 .gradle.kts 仍用 Gradle 图标;检查明暗主题均显示对应 SVG,实机 pending。 Windows 编辑器打开文件的路径与项目树根目录的分隔符或盘符大小写不同(例如经快速打开得到的正斜杠路径对反斜杠根目录)时,点击定位当前文件同样展开祖先、选中并滚动到目标行;真实 WebView2 实机验收 pending。 隐藏路径规则只有一份实现:Core 的 workspace.classifyVisibility 与 workspace.visibilityDefaults(rust/lithe-core-rules),macOS 经 FFI、Windows 经 wasm 调用,共享 fixture visibility-v1.json 同时驱动 Rust、macOS 和 Windows 测试。打开含 node_modules、target、.git 的工程,两端文件树都不显示这些目录;在设置里添加自定义目录或 glob、用 ! 关闭内置规则后,树、搜索和本地历史一致;文件树只批量按目录分类,不逐文件调用。" + "notes": "Windows 补齐 Ctrl/Shift 多选、批量复制/剪切/删除、已选集合拖动、Project/Dependencies 切换、定位当前文件、刷新和隐藏。目录名称单击选择,双击或箭头展开;长名称水平滚动。目录标记按工作区持久化,并随移动、重命名和删除迁移;本地 Windows/UNC 按不区分大小写处理,POSIX、WSL 和远程标识保留大小写并隔离工作区。批量移动预检父子重复及重名目标,原生发布拒绝覆盖;真实 WebView2 的拖动与焦点验收 pending。 Windows 树正文统一使用 ui-text-sm(默认 13px),随界面字号设置变化,舒适密度不单独放大 Dependencies 等树行;Project 刷新按钮使用 IDEA refresh.svg。手动定位使用有代次的展开后滚动请求;编辑器切换页签不再自动跟随滚动(autoRevealActiveFileInFileTree 设置已退役);定位清除树内搜索并切回 Project,保持虚拟列表。 搜索导航同步选择与锚点,右键成员判断保留原始选择集合,批量目标再去除父子重复;已完成移动不因面板卸载或工作区切换而漏掉原工作区同步。路径去重与拖动预检按文件系统大小写语义比较,包含 WSL UNC 别名。编辑器活动文件变化时单选同步高亮、复制/剪切目标及范围锚点,明确多选保留;使用同步 Hook 的真实编辑器目标判断切换,选择目录引发的共享侧栏路径往返不改变选择;真实面板与 store 回归覆盖此链路。 批量移动按每次工作区访问识别生命周期,相同根路径的再次访问不能复活旧批次;预检、移动、同步和失败回调共用该守卫。 macOS 快照跳过嵌套在自身仓库中的 linked worktree(.git 文件指向 <主仓库>/.git/worktrees/*)并内置隐藏 .artifacts;项目树由 workspace.listDirectories 按需逐层列出,children 为 nil 表示目录未加载;平铺文件清单 projectFiles 仍完整保留供搜索等功能使用。 macOS 项目树同级排序由 Rust Core 的 visible_children 与 Swift 的 NaturalNameOrder 共同实现 IDEA FileNameComparator(共享 fixture file-name-order-v1.json);快照 files 与搜索索引按 ChildOrder::Traversal 保持原有的小写排序(Windows 快速打开取前 100 项依赖它),只有 workspace.listDirectories 使用自然顺序。Windows 项目文件树仍使用 localeCompare,Git 文件树已使用同源的 compareGitFileNames,Windows 项目树对齐待后续处理。 Windows 文件树支持 Delete 键删除(始终二次确认),macOS 文件树暂无键盘删除,仅右键“移到废纸篓”。 Windows 定位当前文件先用 toRootedPath 把活动路径改写成树根目录的前缀与分隔符写法,再展开祖先并滚动;此前编辑器路径与树节点写法不同会因精确字符串匹配而静默无反应。 内置隐藏列表(.git、node_modules、target、build、dist、.lithe/** 等)和 glob 匹配只在 rust/crates/core-rules 定义;Windows 设置里只保存用户自己的条目,新装默认值为空(此前内置了 .hg、.idea、*~ 等 Windows 独有条目,已保存的值不变,仍作为用户条目生效)。Windows 文件树按目录批量调用 wasm,结果按目录和规则版本缓存。", + "verification": "浏览目录、展开/折叠、打开资源并在文件变更后刷新树。 macOS 文件树、标签页与面包屑共用 TOML 文件图标:亮色使用 IDEA New UI 官方浅底蓝色 T,深色使用深底蓝色 T;检查明暗主题切换后选择对应 SVG,保留原始 16pt 几何与颜色。 点击目录名称后上下键按可见行移动选择,右键展开目录并再次右键进入首个子项,左键折叠或返回显示父项;双击目录名称展开/折叠,单击与修饰键多选保持独立。验证压缩 Java 包、列表首尾、Shift 上下范围选择与自动滚动;方向键不送到编辑器,点击编辑器或转移到搜索输入框后恢复其按键处理。 Windows Project 文件树滚轮与 Git Log 共用 Community Windows 默认 200ms 惯性过渡;核对连续同向、反向、Shift 横向滚动、顶底边界、键盘定位与滑块拖动取消惯性、卸载帧清理和减少动态效果偏好;虚拟树保持可见区呈现,真实 WebView2 实机验收 pending。 macOS 项目文件和目录选中行共用 LitheTheme.Tree 的主题聚焦色与灰色失焦色;点击编辑器、其他工具窗口后失焦,键盘转移到搜索输入框尚未输入时失焦,重新点击树恢复,整个窗口失焦时保持灰色。深浅主题、非默认主题、多选、上下键和右键菜单均需核对;组件像素和焦点回归不能替代完整应用验收。 Windows 在默认及舒适密度下比较 Project 与 Dependencies 树正文,再修改界面字号确认同步;深浅主题检查刷新图标为循环箭头,点击仍刷新目录。 Windows 打开深层文件并折叠祖先,点击定位当前文件,检查展开后滚动到目标行;滚动离开后重复点击同一文件仍定位;编辑器切换页签不得让树自动滚动。延迟目录加载完成后再滚动,旧请求完成不改变新位置;树内搜索和 Dependencies 视图下定位应回到完整 Project 树。 Windows 搜索首次命中和 Enter 切换后复制/剪切应使用当前命中;同时选择父目录、后代与其他文件后右键后代,复制/删除仍处理整个选择且父子只操作一次。原生移动等待期间关闭 Project 或切换工作区,成功项同步原工作区并停止后续项。受控 WSL/远程/POSIX 路径用例保留大小写不同的文件与目录,Windows 本地/普通 UNC 同名目标继续拒绝覆盖;这些用例不代表已开放 WSL/远程功能,真实 WebView2 工作流仍 pending。 Windows 编辑器保持 README 打开时点击目录名称,通过真实 FileExplorerPane、侧栏与缓冲区 store 验证路径同步往返后目录仍被选中,复制/剪切、键盘焦点和 Shift 范围锚点仍属于目录;实际切换编辑文件时单选跟随,明确多选保留。 Windows 批量拖动分别在目录预检、原生移动和原工作区同步等待期间切换 A→B→A,确认旧批次不再派发剩余项,已完成项仍同步原工作区;普通重渲染继续当前批次,旧移动失败不清除新拖动或显示过期错误。 macOS 打开含 .claude/worktrees 等嵌套 Git linked worktree 与 .artifacts 的仓库:项目树、文件列表与搜索索引不包含这些目录,子模块和位于主检出之外的工作树仍显示;嵌套工作树内的文件变化不触发刷新。外部新增/删除普通文件时树原地增删、不重新扫描整个工作区,新目录、压缩包结构变化时回退完整快照;定位当前文件按路径逐级查找,侧栏渲染不再遍历全部文件。 macOS 项目树按需列目录:快照只返回文件清单,目录展开时才列出下一层;检查首次打开大仓库只显示根层,展开、折叠后再展开、源码根下压缩 Java 包与全量构建一致;外部改动未展开目录下的文件不改变树,展开后可见;重新扫描后已展开目录保持展开并显示最新内容;定位当前文件会逐级加载祖先后滚动到目标行;新增或删除文件后先展开目录再处理监听事件,确认搜索等文件库存仍同步;压缩包重列期间发生其它文件增删,完成后库存和树都保留最新结果。 macOS 项目树同级排序对齐 IDEA 项目视图:目录先于文件,名称按自然顺序(数字按数值、忽略大小写、'-' 与 '_' 相邻);打开含 docs/releases/v0.1.4.md、v0.1.12.md、v0.1.14.md 的仓库,确认 v0.1.4 在 v0.1.12 之前,外部新建 v0.1.5.md 后原地插入到二者之间,与重新扫描的顺序一致。 外部构建产生超过 512 条 target/build 事件且混有源码变化时,只转发有效事件,不触发输出洪峰导致的整项目重扫;显式文件/生成源码监听、项目根名为 build、跨排除边界重命名均保留,系统丢失事件始终触发恢复重扫。 Windows 同时粘贴同名文件不覆盖彼此;剪切期间再次复制相同或不同内容,旧粘贴完成不得清除新剪贴板。 Windows 文件树单击文件只选中并高亮,不打开也不新建预览页签;双击或按 Enter 才打开,单击目录同样只选中。 Windows 文件树选中文件、目录或多选后按 Delete(无修饰键)总是弹出删除确认,即使“删除前确认”设置关闭;取消不删除,确认后按选择集合逐项删除,工作区根目录以及 Shift/Ctrl/Alt+Delete 不触发。 项目树、标签页和面包屑的 IDEA 文件图标:两端 .jsonl/.ndjson 用 JSON 图标,.wbmp 用图片图标,.doc/.docx/.ppt/.pptx 用 IDEA Native 类型的 custom 图标,.strings 用 i18n 图标;Windows IDEA Icons 主题另补齐 macOS 已识别的 Kotlin、Rust、Go、Python、Ruby、Scala、PHP 等扩展名和 .classpath、.gitattributes、docker-compose 等文件名,.kts 用 Kotlin 图标而 .gradle.kts 仍用 Gradle 图标;检查明暗主题均显示对应 SVG,实机 pending。 Windows 编辑器打开文件的路径与项目树根目录的分隔符或盘符大小写不同(例如经快速打开得到的正斜杠路径对反斜杠根目录)时,点击定位当前文件同样展开祖先、选中并滚动到目标行;真实 WebView2 实机验收 pending。 隐藏路径规则只有一份实现:Core 的 workspace.classifyVisibility 与 workspace.visibilityDefaults(rust/crates/core-rules),macOS 经 FFI、Windows 经 wasm 调用,共享 fixture visibility-v1.json 同时驱动 Rust、macOS 和 Windows 测试。打开含 node_modules、target、.git 的工程,两端文件树都不显示这些目录;在设置里添加自定义目录或 glob、用 ! 关闭内置规则后,树、搜索和本地历史一致;文件树只批量按目录分类,不逐文件调用。" } } diff --git a/shared/platform-feature-matrix/features/git-branches-remotes.json b/shared/platform-feature-matrix/features/git-branches-remotes.json index ff3a7672b2..5c5d0a4f61 100644 --- a/shared/platform-feature-matrix/features/git-branches-remotes.json +++ b/shared/platform-feature-matrix/features/git-branches-remotes.json @@ -37,9 +37,9 @@ "shared/contracts/rust-core-api.md", "shared/fixtures/git/branch-name-preview-v1.json", "shared/fixtures/git/tag-write-v1.json", - "rust/lithe-core/src/git/branch_names.rs", - "rust/lithe-core/src/protocol/command.rs", - "rust/lithe-core/src/runtime/dispatcher.rs", + "rust/crates/core/src/git/branch_names.rs", + "rust/crates/core/src/protocol/command.rs", + "rust/crates/core/src/runtime/dispatcher.rs", "macos/Sources/Lithe/Views/Git/GitLogView.swift", "macos/Sources/LitheGitModule/Models/GitBranchNamePreview.swift", "macos/Sources/Lithe/Views/Git", @@ -50,10 +50,10 @@ "macos/Sources/Lithe/Views/Git/BranchPopupRowView.swift", "macos/Sources/Lithe/Core/Rust/RustCoreBridge.swift", "macos/Sources/LitheGitModule/Models/GitModels.swift", - "rust/lithe-core/src/git/history.rs", - "rust/lithe-core/src/tests/git.rs", - "rust/lithe-core/src/git/mod.rs", - "rust/lithe-core/src/tests/git_remote_checkout.rs", + "rust/crates/core/src/git/history.rs", + "rust/crates/core/src/tests/git.rs", + "rust/crates/core/src/git/mod.rs", + "rust/crates/core/src/tests/git_remote_checkout.rs", "shared/fixtures/git/remote-checkout-v1.json", ".agents/notes/implemented/bug-fix/2026-10-08-remote-checkout-fetched-tip.md", "macos/Sources/LitheGitModule/Application/GitFeatureModel.swift", @@ -70,14 +70,14 @@ "macos/Sources/LitheGitModule/Application/GitFeatureModel+WorkspaceCommit.swift", "macos/Tests/LitheTests/GitPushDialogPresentationTests.swift", "macos/Tests/LitheTests/GitPushReviewBridgeTests.swift", - "rust/lithe-core/tests/git_push.rs", - "rust/lithe-core/src/tests/git_workspace_commit.rs", + "rust/crates/core/tests/git_push.rs", + "rust/crates/core/src/tests/git_workspace_commit.rs", ".agents/notes/implemented/bug-fix/2026-10-17-git-push-target-and-upstream-tracking.md", "shared/fixtures/git/comparison-untracked-v1.json", "macos/Tests/LitheTests/GitCoreContractBridgeTests.swift", "macos/Tests/LitheTests/WorkbenchRightPaneLayoutTests.swift", "shared/fixtures/git/update-plan-v1.json", - "rust/lithe-core/src/git/update_plan.rs", + "rust/crates/core/src/git/update_plan.rs", "macos/Sources/LitheGitModule/Models/GitCorePlans.swift" ], "implementationStatus": "implemented", @@ -88,16 +88,16 @@ "shared/contracts/rust-core-api.md", "shared/fixtures/git/branch-name-preview-v1.json", "shared/fixtures/git/tag-write-v1.json", - "rust/lithe-core/src/git/branch_names.rs", - "rust/lithe-core/src/protocol/command.rs", - "rust/lithe-core/src/runtime/dispatcher.rs", + "rust/crates/core/src/git/branch_names.rs", + "rust/crates/core/src/protocol/command.rs", + "rust/crates/core/src/runtime/dispatcher.rs", "windows/tauri/src/features/git/api/git-tags-api.test.ts", "windows/tauri/src-tauri/src/platform.rs", "windows/tauri/src/features/git/components/git-tag-manager.tsx", "windows/tauri/src/features/git/api/git-tags-api.ts", "windows/tauri/src/features/git", - "rust/lithe-core/src/git/history.rs", - "rust/lithe-core/src/tests/git.rs", + "rust/crates/core/src/git/history.rs", + "rust/crates/core/src/tests/git.rs", "windows/tauri/src/features/git/components/git-fetch-status.tsx", "windows/tauri/src/features/git/services/git-fetch-progress.test.ts", "windows/tauri/src/features/git/components/git-fetch-status.test.tsx", @@ -106,14 +106,14 @@ "windows/tauri/src/features/git/services/git-log-branch-update.ts", "windows/tauri/src/features/git/services/git-log-branch-update.test.ts", "windows/tauri/src/features/git/components/log/git-log-branch-actions.test.tsx", - "rust/lithe-core/src/git/mod.rs", - "rust/lithe-core/src/tests/git_repository_setup.rs", + "rust/crates/core/src/git/mod.rs", + "rust/crates/core/src/tests/git_repository_setup.rs", "shared/fixtures/git/write.json", "windows/tauri/src/features/git/stores/git.store.ts", "windows/tauri/src/features/git/runtime/git-status-refresh-host.tsx", "windows/tauri/src/features/git/runtime/git-status-refresh-host.test.tsx", ".agents/notes/implemented/architecture/2026-10-08-windows-git-status-ownership.md", - "rust/lithe-core/src/tests/git_remote_checkout.rs", + "rust/crates/core/src/tests/git_remote_checkout.rs", "shared/fixtures/git/remote-checkout-v1.json", ".agents/notes/implemented/bug-fix/2026-10-08-remote-checkout-fetched-tip.md", "windows/tauri/src/features/git/components/log/git-log-tool-window.tsx", @@ -142,12 +142,12 @@ "windows/tauri/src/features/git/services/git-push-target.ts", "windows/tauri/src/features/git/services/git-workspace-commit-workflow.ts", "windows/tauri/src/features/git/services/git-workspace-commit-workflow.test.ts", - "rust/lithe-core/tests/git_push.rs", - "rust/lithe-core/src/tests/git_workspace_commit.rs", + "rust/crates/core/tests/git_push.rs", + "rust/crates/core/src/tests/git_workspace_commit.rs", "shared/fixtures/git/remote-tag-catalog-v1.json", - "rust/lithe-core/src/git/catalog.rs", + "rust/crates/core/src/git/catalog.rs", "shared/fixtures/git/update-plan-v1.json", - "rust/lithe-core/src/git/update_plan.rs", + "rust/crates/core/src/git/update_plan.rs", "windows/tauri/src/features/git/api/git-update-plan-api.ts", "windows/tauri/src/features/git/hooks/git-pull-workflow.ts" ], diff --git a/shared/platform-feature-matrix/features/git-diff-review.json b/shared/platform-feature-matrix/features/git-diff-review.json index 9bd90d0251..5a3b8e1f65 100644 --- a/shared/platform-feature-matrix/features/git-diff-review.json +++ b/shared/platform-feature-matrix/features/git-diff-review.json @@ -95,13 +95,13 @@ ".agents/notes/implemented/feature/2026-10-04-windows-commit-file-diff-preview.md", "windows/tauri/src/features/git/hooks/use-commit-diff-review.ts", "windows/tauri/src/features/git/services/commit-diff-review.ts", - "rust/lithe-core/src/tests/git_diff_blocks.rs", + "rust/crates/core/src/tests/git_diff_blocks.rs", "windows/tauri/src/features/git/components/diff/monaco-commit-block-controls.ts", "windows/tauri/src/features/tabs/utils/tab-chrome-buffer.ts", "windows/tauri/src/features/git/hooks/use-git-diff-actions.test.tsx", "windows/tauri/src/features/git/hooks/use-commit-diff-review.test.tsx", - "rust/lithe-core/src/git/mod.rs", - "rust/lithe-core/src/tests/git.rs", + "rust/crates/core/src/git/mod.rs", + "rust/crates/core/src/tests/git.rs", "windows/tauri/src/features/git/components/diff/commit-file-diff-toolbar.tsx", "windows/tauri/src/features/git/components/status/git-status-panel.tsx", "windows/tauri/src/features/git/components/status/git-workspace-status-panel.test.tsx", diff --git a/shared/platform-feature-matrix/features/git-history.json b/shared/platform-feature-matrix/features/git-history.json index c05256c220..3e97662363 100644 --- a/shared/platform-feature-matrix/features/git-history.json +++ b/shared/platform-feature-matrix/features/git-history.json @@ -81,9 +81,9 @@ "macos/Sources/LitheGitModule/Models/GitRepositoryColors.swift", "macos/Tests/LitheTests/GitCoreContractBridgeTests.swift", "shared/fixtures/git/history-window-v1.json", - "rust/lithe-core/src/git/history_window.rs", + "rust/crates/core/src/git/history_window.rs", "shared/fixtures/git/graph-projection-v1.json", - "rust/lithe-core/src/git/graph.rs", + "rust/crates/core/src/git/graph.rs", "macos/Sources/LitheGitModule/Models/GitGraphProjectionModels.swift", "macos/Tests/LitheGitTestSupport/GitGraphCoreTestSupport.swift", "macos/Sources/LitheGitModule/Models/GitCorePlans.swift" @@ -176,10 +176,10 @@ "windows/tauri/src/features/git/utils/git-repository-colors.test.ts", "shared/fixtures/git/repository-colors-v1.json", "shared/fixtures/git/history-window-v1.json", - "rust/lithe-core/src/git/history_window.rs", + "rust/crates/core/src/git/history_window.rs", "windows/tauri/src/features/git/api/git-history-window-api.ts", "shared/fixtures/git/graph-projection-v1.json", - "rust/lithe-core/src/git/graph.rs", + "rust/crates/core/src/git/graph.rs", "windows/tauri/src/features/git/api/git-graph-projection-api.ts", "windows/tauri/src/test-utils/git-graph-projection-stub.ts", "windows/tauri/src/features/git/hooks/use-git-log-controller.ts" diff --git a/shared/platform-feature-matrix/features/git-large-untracked-directories.json b/shared/platform-feature-matrix/features/git-large-untracked-directories.json index dbf92d5039..0af096800b 100644 --- a/shared/platform-feature-matrix/features/git-large-untracked-directories.json +++ b/shared/platform-feature-matrix/features/git-large-untracked-directories.json @@ -32,8 +32,8 @@ "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/git/untracked_directories.rs", - "rust/lithe-core/src/tests/git_untracked_directories.rs", + "rust/crates/core/src/git/untracked_directories.rs", + "rust/crates/core/src/tests/git_untracked_directories.rs", "macos/Sources/Lithe/Views/Git/ChangesSidebarView.swift", "macos/Sources/Lithe/Views/Git/GitChangeSectionsCache.swift", "macos/Sources/LitheGitModule/Application/GitFeatureModel.swift", @@ -41,14 +41,14 @@ "macos/Tests/LitheTests/GitChangeSectionsCacheTests.swift", "macos/Tests/LitheGitModuleTests/GitModuleTests.swift", ".agents/notes/implemented/bug-fix/2026-10-21-git-large-untracked-directories.md", - "rust/lithe-core/src/git/mod.rs" + "rust/crates/core/src/git/mod.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" }, "windows": { "evidence": [ - "rust/lithe-core/src/git/untracked_directories.rs", + "rust/crates/core/src/git/untracked_directories.rs", "windows/tauri/src/features/git/api/git-status-api.ts", "windows/tauri/src/features/git/services/git-untracked-directory-expansions.ts", "windows/tauri/src/features/git/utils/git-untracked-directories.ts", @@ -58,8 +58,8 @@ "windows/tauri/src/features/file-explorer/lib/file-tree-git-status.ts", "windows/tauri/src/features/git/utils/git-untracked-directories.test.ts", "windows/tauri/src/features/git/components/status/git-workspace-status-panel.test.tsx", - "rust/lithe-core/src/git/mod.rs", - "rust/lithe-core/src/tests/git_untracked_directories.rs" + "rust/crates/core/src/git/mod.rs", + "rust/crates/core/src/tests/git_untracked_directories.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" diff --git a/shared/platform-feature-matrix/features/git-line-history.json b/shared/platform-feature-matrix/features/git-line-history.json index 7362f89616..4fcb1c07fc 100644 --- a/shared/platform-feature-matrix/features/git-line-history.json +++ b/shared/platform-feature-matrix/features/git-line-history.json @@ -31,7 +31,7 @@ "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/git/mod.rs", + "rust/crates/core/src/git/mod.rs", "shared/contracts/rust-core-api.md" ], "implementationStatus": "missing", @@ -46,7 +46,7 @@ "windows/tauri/src/features/git/utils/line-history-selection.test.ts", "windows/tauri/src/features/editor/context-menu/editor-context-menu-items.tsx", "windows/tauri/src/features/editor/components/monaco-editor.tsx", - "rust/lithe-core/src/tests/git.rs" + "rust/crates/core/src/tests/git.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" diff --git a/shared/platform-feature-matrix/features/git-local-changelists.json b/shared/platform-feature-matrix/features/git-local-changelists.json index b84fceaf8b..d6d2e46371 100644 --- a/shared/platform-feature-matrix/features/git-local-changelists.json +++ b/shared/platform-feature-matrix/features/git-local-changelists.json @@ -66,10 +66,10 @@ "windows/tauri/src/features/git/components/status/git-status-panel.tsx", "windows/tauri/src/features/git/stores/git-changelists.store.ts", "windows/tauri/src/features/git/utils/git-changelists.ts", - "rust/lithe-core/src/git/workspace_commit/path_scope.rs", + "rust/crates/core/src/git/workspace_commit/path_scope.rs", "shared/fixtures/git/local-changelist-scope-v1.json", "windows/tauri/src/features/git/stores/git-changelists.store.test.ts", - "rust/lithe-core/src/tests/git_workspace_commit.rs", + "rust/crates/core/src/tests/git_workspace_commit.rs", "windows/tauri/src/features/git/api/git-changelist-storage.ts", "windows/tauri/src/features/git/components/git-changelist-bar.test.tsx", "windows/tauri/src/features/git/components/status/git-workspace-status-panel.test.tsx", diff --git a/shared/platform-feature-matrix/features/git-metadata-observation.json b/shared/platform-feature-matrix/features/git-metadata-observation.json index e1be73042d..6af5184055 100644 --- a/shared/platform-feature-matrix/features/git-metadata-observation.json +++ b/shared/platform-feature-matrix/features/git-metadata-observation.json @@ -43,7 +43,7 @@ "evidence": [ "windows/tauri/crates/project/src/git_watcher.rs", "windows/tauri/src/features/git/runtime/git-metadata-watch-host.tsx", - "rust/lithe-core/src/git/metadata_watch.rs", + "rust/crates/core/src/git/metadata_watch.rs", "shared/fixtures/git/metadata-classification-v1.json" ] }, diff --git a/shared/platform-feature-matrix/features/git-multi-repository-change-groups.json b/shared/platform-feature-matrix/features/git-multi-repository-change-groups.json index 511ae55b76..a37a6f44b6 100644 --- a/shared/platform-feature-matrix/features/git-multi-repository-change-groups.json +++ b/shared/platform-feature-matrix/features/git-multi-repository-change-groups.json @@ -31,7 +31,7 @@ "macos/Sources/Lithe/Views/Git/ChangesSidebarView.swift", "macos/Sources/Lithe/Views/Git/GitChangeSectionsCache.swift", "macos/Sources/LitheGitModule/Models/GitModels.swift", - "rust/lithe-core/src/git/mod.rs" + "rust/crates/core/src/git/mod.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" diff --git a/shared/platform-feature-matrix/features/git-rebase-stash.json b/shared/platform-feature-matrix/features/git-rebase-stash.json index 34247d6b7e..19f40f8755 100644 --- a/shared/platform-feature-matrix/features/git-rebase-stash.json +++ b/shared/platform-feature-matrix/features/git-rebase-stash.json @@ -52,10 +52,10 @@ "evidence": [ "macos/Sources/Lithe/Views/Git", "macos/Sources/LitheGitModule/Models/GitSavedChangesSnapshot.swift", - "rust/lithe-core/src/git/rebase_session.rs", - "rust/lithe-core/src/protocol/cancellation.rs", - "rust/lithe-core/src/tests/git_history_rewrite.rs", - "rust/lithe-core/src/git/shelf.rs", + "rust/crates/core/src/git/rebase_session.rs", + "rust/crates/core/src/protocol/cancellation.rs", + "rust/crates/core/src/tests/git_history_rewrite.rs", + "rust/crates/core/src/git/shelf.rs", "shared/fixtures/git/shelf-v1.json" ], "implementationStatus": "implemented", @@ -64,9 +64,9 @@ "windows": { "evidence": [ "windows/tauri/src/features/git", - "rust/lithe-core/src/git/rebase_session.rs", - "rust/lithe-core/src/protocol/cancellation.rs", - "rust/lithe-core/src/tests/git_history_rewrite.rs", + "rust/crates/core/src/git/rebase_session.rs", + "rust/crates/core/src/protocol/cancellation.rs", + "rust/crates/core/src/tests/git_history_rewrite.rs", "windows/tauri/src/features/git/components/stash/git-saved-changes.tsx", "windows/tauri/src/features/git/components/stash/git-saved-changes.test.tsx", "windows/tauri/src/features/git/api/git-stash-diff-api.test.ts", @@ -76,11 +76,11 @@ "windows/tauri/src/features/git/services/git-shelf-workflow.test.ts", "windows/tauri/src/features/git/api/git-patch-api.test.ts", "windows/tauri/src-tauri/src/shelf_storage.rs", - "rust/lithe-core/src/git/patch_exchange.rs", - "rust/lithe-core/src/tests/git_patch_exchange.rs", + "rust/crates/core/src/git/patch_exchange.rs", + "rust/crates/core/src/tests/git_patch_exchange.rs", "windows/tauri/src/features/git/api/git-shelf-api.test.ts", "windows/tauri/src/platform/core-result-adapter.diff.test.ts", - "rust/lithe-core/src/git/shelf.rs", + "rust/crates/core/src/git/shelf.rs", "shared/fixtures/git/shelf-v1.json" ], "implementationStatus": "implemented", diff --git a/shared/platform-feature-matrix/features/git-repository-discovery.json b/shared/platform-feature-matrix/features/git-repository-discovery.json index 3d47daf7ef..8ad8997049 100644 --- a/shared/platform-feature-matrix/features/git-repository-discovery.json +++ b/shared/platform-feature-matrix/features/git-repository-discovery.json @@ -32,8 +32,8 @@ "implementationStatus": "implemented", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/git/mod.rs", - "rust/lithe-core/src/tests/git_repository_discovery.rs", + "rust/crates/core/src/git/mod.rs", + "rust/crates/core/src/tests/git_repository_discovery.rs", "macos/Sources/Lithe/Core/Rust/RustGitOperations.swift" ] }, @@ -41,8 +41,8 @@ "implementationStatus": "implemented", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/git/mod.rs", - "rust/lithe-core/src/tests/git_repository_discovery.rs", + "rust/crates/core/src/git/mod.rs", + "rust/crates/core/src/tests/git_repository_discovery.rs", "windows/tauri/src-tauri/src/platform.rs", "windows/tauri/src/features/git/api/git-repo-api.ts" ] diff --git a/shared/platform-feature-matrix/features/git-status-commit.json b/shared/platform-feature-matrix/features/git-status-commit.json index 9c3b682a5a..10f45d5447 100644 --- a/shared/platform-feature-matrix/features/git-status-commit.json +++ b/shared/platform-feature-matrix/features/git-status-commit.json @@ -50,7 +50,7 @@ ".agents/notes/implemented/feature/2026-10-29-commit-file-context-actions.md", "macos/Sources/LitheWorkspaceModule/Application/WorkspaceFeatureModel.swift", "macos/Tests/LitheTests/LitheCoreLogicTests.swift", - "rust/lithe-core/src/git/workspace_status.rs", + "rust/crates/core/src/git/workspace_status.rs", "macos/Sources/Lithe/Views/Git/ChangesSidebarView.swift" ], "implementationStatus": "implemented", @@ -74,7 +74,7 @@ "windows/tauri/src/features/git/hooks/use-commit-diff-review.ts", "windows/tauri/src/features/git/services/commit-diff-review.ts", "windows/tauri/src/features/git/utils/commit-diff-blocks.ts", - "rust/lithe-core/src/tests/git_diff_blocks.rs", + "rust/crates/core/src/tests/git_diff_blocks.rs", "windows/tauri/src/features/git/hooks/use-git-commit-area-resize.test.tsx", "windows/tauri/src/features/git/components/status/git-workspace-status-panel.test.tsx", "windows/tauri/src/features/git/components/stash/git-saved-changes.tsx", @@ -82,7 +82,7 @@ "windows/tauri/src/features/git/components/git-commit-panel.css", "windows/tauri/src/features/git/components/git-changelist-bar.tsx", "windows/tauri/src/features/git/components/git-changelist-bar.test.tsx", - "rust/lithe-core/src/git/workspace_status.rs", + "rust/crates/core/src/git/workspace_status.rs", "windows/tauri/src/features/git/api/git-status-api.test.ts" ], "implementationStatus": "implemented", diff --git a/shared/platform-feature-matrix/features/git-submodule-commit-plan.json b/shared/platform-feature-matrix/features/git-submodule-commit-plan.json index 17c0a7805b..426499bf4d 100644 --- a/shared/platform-feature-matrix/features/git-submodule-commit-plan.json +++ b/shared/platform-feature-matrix/features/git-submodule-commit-plan.json @@ -33,10 +33,10 @@ "macos/Sources/LitheGitModule/Application/GitFeatureModel+WorkspaceCommit.swift", "macos/Sources/Lithe/Views/Git/CommitAreaView.swift", "macos/Tests/LitheGitModuleTests/GitModuleTests.swift", - "rust/lithe-core/src/git/commit_state.rs", - "rust/lithe-core/src/tests/git_workspace_commit.rs", - "rust/lithe-core/src/git/workspace_commit.rs", - "rust/lithe-core/src/git/workspace_commit/tests.rs", + "rust/crates/core/src/git/commit_state.rs", + "rust/crates/core/src/tests/git_workspace_commit.rs", + "rust/crates/core/src/git/workspace_commit.rs", + "rust/crates/core/src/git/workspace_commit/tests.rs", "shared/fixtures/git/workspace-commit-workflow-v1.json" ] }, diff --git a/shared/platform-feature-matrix/features/git-workspace-commit-retry.json b/shared/platform-feature-matrix/features/git-workspace-commit-retry.json index 9aca8d49b1..3c2e495279 100644 --- a/shared/platform-feature-matrix/features/git-workspace-commit-retry.json +++ b/shared/platform-feature-matrix/features/git-workspace-commit-retry.json @@ -31,10 +31,10 @@ "macos/Sources/LitheGitModule/Application/GitFeatureModel+WorkspaceCommit.swift", "macos/Sources/Lithe/Views/Git/CommitAreaView.swift", "macos/Tests/LitheGitModuleTests/GitModuleTests.swift", - "rust/lithe-core/src/git/commit_state.rs", - "rust/lithe-core/src/tests/git_workspace_commit.rs", - "rust/lithe-core/src/git/workspace_commit.rs", - "rust/lithe-core/src/git/workspace_commit/tests.rs", + "rust/crates/core/src/git/commit_state.rs", + "rust/crates/core/src/tests/git_workspace_commit.rs", + "rust/crates/core/src/git/workspace_commit.rs", + "rust/crates/core/src/git/workspace_commit/tests.rs", "shared/fixtures/git/workspace-commit-workflow-v1.json" ] }, diff --git a/shared/platform-feature-matrix/features/git-workspace-staged-commit.json b/shared/platform-feature-matrix/features/git-workspace-staged-commit.json index 51f2eeeedd..14dcf2591c 100644 --- a/shared/platform-feature-matrix/features/git-workspace-staged-commit.json +++ b/shared/platform-feature-matrix/features/git-workspace-staged-commit.json @@ -31,10 +31,10 @@ "macos/Sources/LitheGitModule/Application/GitFeatureModel+WorkspaceCommit.swift", "macos/Sources/Lithe/Views/Git/CommitAreaView.swift", "macos/Tests/LitheGitModuleTests/GitModuleTests.swift", - "rust/lithe-core/src/git/commit_state.rs", - "rust/lithe-core/src/tests/git_workspace_commit.rs", - "rust/lithe-core/src/git/workspace_commit.rs", - "rust/lithe-core/src/git/workspace_commit/tests.rs", + "rust/crates/core/src/git/commit_state.rs", + "rust/crates/core/src/tests/git_workspace_commit.rs", + "rust/crates/core/src/git/workspace_commit.rs", + "rust/crates/core/src/git/workspace_commit/tests.rs", "shared/fixtures/git/workspace-commit-workflow-v1.json" ] }, diff --git a/shared/platform-feature-matrix/features/history-snapshots.json b/shared/platform-feature-matrix/features/history-snapshots.json index 5bb74b32a1..9cb45f5aa9 100644 --- a/shared/platform-feature-matrix/features/history-snapshots.json +++ b/shared/platform-feature-matrix/features/history-snapshots.json @@ -42,12 +42,12 @@ "macos/Sources/Lithe/Services", "macos/Sources/LitheLocalHistoryModule", "macos/Tests/LitheLocalHistoryModuleTests/LocalHistoryModuleTests.swift", - "rust/lithe-core/src/project/history.rs", + "rust/crates/core/src/project/history.rs", "macos/Sources/Lithe/Views/App/LocalHistorySettingsControl.swift", "macos/Tests/LitheTests/LocalHistoryIgnoreRulesTests.swift", "macos/Sources/Lithe/Application/Features/LocalHistoryStorageSettingsModel.swift", "macos/Tests/LitheTests/LocalHistorySettingsTests.swift", - "rust/lithe-core/src/tests/project.rs", + "rust/crates/core/src/tests/project.rs", "shared/fixtures/history/relocation-v1.json", "macos/Tests/LitheTests/LitheCoreLogicTests.swift", "shared/fixtures/history/event-plan-v1.json", @@ -62,7 +62,7 @@ "windows/tauri/src/features/local-history/components/project-local-history.tsx", "windows/tauri/src/features/local-history/utils/history-metadata.ts", "shared/fixtures/history/event-plan-v1.json", - "rust/lithe-core/src/project/history.rs", + "rust/crates/core/src/project/history.rs", "windows/tauri/src/features/local-history/api/local-history-api.test.ts" ], "implementationStatus": "implemented", diff --git a/shared/platform-feature-matrix/features/ide-api-environment.json b/shared/platform-feature-matrix/features/ide-api-environment.json index d33ab8619a..82b60293d9 100644 --- a/shared/platform-feature-matrix/features/ide-api-environment.json +++ b/shared/platform-feature-matrix/features/ide-api-environment.json @@ -34,7 +34,7 @@ "macos/Sources/Lithe/Application/Features/IdeCapabilitiesFeatureModel.swift", "macos/Sources/Lithe/Views/App/McpSettingsView.swift", "macos/Tests/LitheTests/IdeCapabilitiesTests.swift", - "rust/lithe-ide-host/src/lib.rs" + "rust/crates/ide-host/src/lib.rs" ] }, "windows": { @@ -44,7 +44,7 @@ "windows/tauri/src/features/host-api/ide-capabilities.ts", "windows/tauri/src/features/host-api/mcp-settings.tsx", "windows/tauri/src/features/host-api/ide-capabilities.test.ts", - "rust/lithe-ide-host/src/lib.rs" + "rust/crates/ide-host/src/lib.rs" ] } }, diff --git a/shared/platform-feature-matrix/features/ide-api-maven.json b/shared/platform-feature-matrix/features/ide-api-maven.json index 3af59d83ce..3700a74fcd 100644 --- a/shared/platform-feature-matrix/features/ide-api-maven.json +++ b/shared/platform-feature-matrix/features/ide-api-maven.json @@ -38,12 +38,12 @@ "macos/Sources/Lithe/Application/Features/IdeCapabilitiesFeatureModel.swift", "macos/Sources/Lithe/Views/App/McpSettingsView.swift", "macos/Tests/LitheTests/IdeCapabilitiesTests.swift", - "rust/lithe-ide-host/src/lib.rs", + "rust/crates/ide-host/src/lib.rs", "macos/Sources/LitheExecutionModule/Services/BuildSystemService.swift", "macos/Tests/LitheExecutionModuleTests/BuildSystemServiceTests.swift", "shared/contracts/ide-api/v1.md", "shared/fixtures/ide-api/host-tool-exposure.json", - "rust/lithe-ide-host/src/catalog.rs", + "rust/crates/ide-host/src/catalog.rs", "macos/Sources/Lithe/Application/Features/RuntimeSettingsFeatureModel.swift" ] }, @@ -54,7 +54,7 @@ "windows/tauri/src/features/host-api/ide-capabilities.ts", "windows/tauri/src/features/host-api/mcp-settings.tsx", "windows/tauri/src/features/host-api/ide-capabilities.test.ts", - "rust/lithe-ide-host/src/lib.rs" + "rust/crates/ide-host/src/lib.rs" ] } }, diff --git a/shared/platform-feature-matrix/features/ide-api-run-output.json b/shared/platform-feature-matrix/features/ide-api-run-output.json index b17ecb0df9..2c9470d79c 100644 --- a/shared/platform-feature-matrix/features/ide-api-run-output.json +++ b/shared/platform-feature-matrix/features/ide-api-run-output.json @@ -44,7 +44,7 @@ "macos/Sources/Lithe/Application/Features/IdeCapabilitiesFeatureModel.swift", "macos/Sources/Lithe/Views/App/McpSettingsView.swift", "macos/Tests/LitheTests/IdeCapabilitiesTests.swift", - "rust/lithe-ide-host/src/lib.rs" + "rust/crates/ide-host/src/lib.rs" ] }, "windows": { @@ -54,7 +54,7 @@ "windows/tauri/src/features/host-api/ide-capabilities.ts", "windows/tauri/src/features/host-api/mcp-settings.tsx", "windows/tauri/src/features/host-api/ide-capabilities.test.ts", - "rust/lithe-ide-host/src/lib.rs" + "rust/crates/ide-host/src/lib.rs" ] } }, diff --git a/shared/platform-feature-matrix/features/ide-mcp-connection.json b/shared/platform-feature-matrix/features/ide-mcp-connection.json index a59647c227..99b87216fe 100644 --- a/shared/platform-feature-matrix/features/ide-mcp-connection.json +++ b/shared/platform-feature-matrix/features/ide-mcp-connection.json @@ -52,7 +52,7 @@ "macos/Sources/Lithe/Application/Features/McpServerLibraryFeatureModel.swift", "macos/Sources/Lithe/Views/App/McpSettingsView.swift", "macos/Tests/LitheTests/IdeCapabilitiesTests.swift", - "rust/lithe-ide-host/src/lib.rs", + "rust/crates/ide-host/src/lib.rs", "macos/Sources/Lithe/Views/App/SettingsView.swift", "scripts/ide-mcp/test-ide-mcp.mjs" ] @@ -64,7 +64,7 @@ "windows/tauri/src/features/host-api/ide-capabilities.ts", "windows/tauri/src/features/host-api/mcp-settings.tsx", "windows/tauri/src/features/host-api/ide-capabilities.test.ts", - "rust/lithe-ide-host/src/lib.rs", + "rust/crates/ide-host/src/lib.rs", "windows/tauri/src/features/settings/components/mcp-configuration-settings.tsx", "windows/tauri/src-tauri/src/platform.rs", "windows/tauri/src/features/host-api/mcp-lifecycle.test.ts", diff --git a/shared/platform-feature-matrix/features/java-build-diagnostics.json b/shared/platform-feature-matrix/features/java-build-diagnostics.json index f0ff31b3b9..e4ce8839ac 100644 --- a/shared/platform-feature-matrix/features/java-build-diagnostics.json +++ b/shared/platform-feature-matrix/features/java-build-diagnostics.json @@ -33,7 +33,7 @@ "macos/Sources/Lithe/Services/Diagnostics", "shared/fixtures/lsp/java-launch-preparation-v1.json", "shared/fixtures/lsp/document-save-v1.json", - "rust/lithe-core/src/build/outputs.rs" + "rust/crates/core/src/build/outputs.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" @@ -48,7 +48,7 @@ "windows/tauri/src/features/editor/stores/editor-app.store.test.ts", "shared/fixtures/lsp/java-launch-preparation-v1.json", "shared/fixtures/lsp/document-save-v1.json", - "rust/lithe-core/src/build/outputs.rs" + "rust/crates/core/src/build/outputs.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" diff --git a/shared/platform-feature-matrix/features/java-gradle-project-import.json b/shared/platform-feature-matrix/features/java-gradle-project-import.json index ed793c7a39..a6e3710cac 100644 --- a/shared/platform-feature-matrix/features/java-gradle-project-import.json +++ b/shared/platform-feature-matrix/features/java-gradle-project-import.json @@ -22,12 +22,12 @@ ] }, "owner": "Java / Gradle", - "verification": "单元测试覆盖配置形状与透传:rust/lithe-core 断言存在 Gradle 上下文时初始化选项携带 java.import.gradle、无 wrapper 描述文件时省略 wrapper 字段、无 Gradle 上下文时不下发 java.import、按 section 查询返回对应取值、叶子合并保留调用方已声明的 offline 与 version;windows/tauri 的 lsp 测试断言工作区指纹识别 settings.gradle 与 gradle/wrapper/gradle-wrapper.properties 且忽略 gradle.properties,仅有 gradlew 脚本时不认为存在 wrapper,纯 Maven 工作区不产生 Gradle 上下文;TS 测试断言有上下文时原样转发、无上下文时为 null。待实机验证:在 Windows 打开一个带 wrapper 描述文件的 Gradle 工程,确认 JDT LS 经 Buildship 导入工程、依赖解析完成,源码可跳转、补全与语义高亮到 Gradle 依赖中的类型;改动 settings.gradle 的模块结构后重开工程,确认指纹变化触发重新导入;改写 gradle.properties 后重开,确认不触发冷导入。macOS 已通过构建插件的 languageImport 声明消费 Core 归一化的 wrapperPresent/offline/userHome,启动前等待配置并类型化转交 javaGradle,不按插件 ID 或 buildSystemID 特判;选项变化在下次会话启动生效,没有插件输入时仍按 Buildship 默认值导入。macOS 工作区指纹尚未纳入额外 Gradle 结构文件,故保持 partial;需在带该声明的插件启用/停用、改选项和关闭再重开项目时验证导入行为,真实 JDT 验收尚未运行。 macOS:该能力由独立的 Java/Maven/Gradle 插件(Lithe-IDEA/lithe-plugin-java、lithe-plugin-maven、lithe-plugin-gradle)实现,宿主只验证通用契约与接线,运行时验证记录归插件仓库。", + "verification": "单元测试覆盖配置形状与透传:rust/crates/core 断言存在 Gradle 上下文时初始化选项携带 java.import.gradle、无 wrapper 描述文件时省略 wrapper 字段、无 Gradle 上下文时不下发 java.import、按 section 查询返回对应取值、叶子合并保留调用方已声明的 offline 与 version;windows/tauri 的 lsp 测试断言工作区指纹识别 settings.gradle 与 gradle/wrapper/gradle-wrapper.properties 且忽略 gradle.properties,仅有 gradlew 脚本时不认为存在 wrapper,纯 Maven 工作区不产生 Gradle 上下文;TS 测试断言有上下文时原样转发、无上下文时为 null。待实机验证:在 Windows 打开一个带 wrapper 描述文件的 Gradle 工程,确认 JDT LS 经 Buildship 导入工程、依赖解析完成,源码可跳转、补全与语义高亮到 Gradle 依赖中的类型;改动 settings.gradle 的模块结构后重开工程,确认指纹变化触发重新导入;改写 gradle.properties 后重开,确认不触发冷导入。macOS 已通过构建插件的 languageImport 声明消费 Core 归一化的 wrapperPresent/offline/userHome,启动前等待配置并类型化转交 javaGradle,不按插件 ID 或 buildSystemID 特判;选项变化在下次会话启动生效,没有插件输入时仍按 Buildship 默认值导入。macOS 工作区指纹尚未纳入额外 Gradle 结构文件,故保持 partial;需在带该声明的插件启用/停用、改选项和关闭再重开项目时验证导入行为,真实 JDT 验收尚未运行。 macOS:该能力由独立的 Java/Maven/Gradle 插件(Lithe-IDEA/lithe-plugin-java、lithe-plugin-maven、lithe-plugin-gradle)实现,宿主只验证通用契约与接线,运行时验证记录归插件仓库。", "legacy": { "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/lsp/interface/engine.rs", + "rust/crates/core/src/lsp/interface/engine.rs", "macos/Sources/Lithe/Models/AppModel/AppModel+BuildSystems.swift", "macos/Sources/LitheExecutionModule/Services/BuildSystemService.swift", "macos/Sources/Lithe/Core/Rust/RustLanguageServerRuntimeAdapter.swift", @@ -40,7 +40,7 @@ }, "windows": { "evidence": [ - "rust/lithe-core/src/lsp/interface/engine.rs", + "rust/crates/core/src/lsp/interface/engine.rs", "windows/tauri/src-tauri/src/lsp.rs", "windows/tauri/src-tauri/src/lsp/jdt_workspace.rs", "windows/tauri/src/features/editor/lsp/java-lsp-host-api.ts", diff --git a/shared/platform-feature-matrix/features/java-import-on-open-policy.json b/shared/platform-feature-matrix/features/java-import-on-open-policy.json index dbd42a8df9..4a7a75b5f7 100644 --- a/shared/platform-feature-matrix/features/java-import-on-open-policy.json +++ b/shared/platform-feature-matrix/features/java-import-on-open-policy.json @@ -27,7 +27,7 @@ "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/lsp/host_policy/activation.rs" + "rust/crates/core/src/lsp/host_policy/activation.rs" ], "implementationStatus": "missing", "verificationStatus": "not-applicable" diff --git a/shared/platform-feature-matrix/features/java-runtime-discovery.json b/shared/platform-feature-matrix/features/java-runtime-discovery.json index 345f50a9c1..f52bdbb3ae 100644 --- a/shared/platform-feature-matrix/features/java-runtime-discovery.json +++ b/shared/platform-feature-matrix/features/java-runtime-discovery.json @@ -38,7 +38,7 @@ "shared/fixtures/execution/maven-runtime-versions.json", ".agents/notes/implemented/architecture/2026-09-21-maven-settings-reach-the-language-server.md", ".agents/notes/implemented/bug-fix/2026-10-30-login-shell-environment-and-jdk-selection.md", - "rust/lithe-core/src/toolchain", + "rust/crates/core/src/toolchain", "macos/Tests/LitheTests/MacToolchainDiscoveryTests.swift", "shared/contracts/plugins/v1/README.md" ], diff --git a/shared/platform-feature-matrix/features/keymap-customization.json b/shared/platform-feature-matrix/features/keymap-customization.json index 42628173f1..1f7177fbc9 100644 --- a/shared/platform-feature-matrix/features/keymap-customization.json +++ b/shared/platform-feature-matrix/features/keymap-customization.json @@ -44,7 +44,7 @@ "macos/Tests/LitheTests/SearchEverywhereQueryModeTests.swift", "macos/Sources/Lithe/Core/Rust/RustKeymapConflicts.swift", "macos/Sources/Lithe/Core/Rust/RustDoubleShiftGesture.swift", - "rust/lithe-core-rules/src/keymap/modifier_gesture.rs", + "rust/crates/core-rules/src/keymap/modifier_gesture.rs", "macos/Tests/LitheTests/KeymapTerminalCoreFixtureTests.swift", "shared/fixtures/keymap/binding-conflicts-v1.json", "shared/fixtures/keymap/modifier-gesture-v1.json" @@ -58,10 +58,10 @@ "windows/tauri/src/features/settings/components/settings-panels.tsx", "windows/tauri/src/features/settings/components/tabs/keyboard-settings.tsx", "windows/tauri/src/features/settings/components/keyboard-settings-routing.test.tsx", - "rust/lithe-core/src/keymap/mod.rs", + "rust/crates/core/src/keymap/mod.rs", "shared/fixtures/keymap/context-v1.json", "windows/tauri/src/features/keymaps/utils/context.native.integration.test.ts", - "rust/lithe-core/src/keymap/bindings.rs", + "rust/crates/core/src/keymap/bindings.rs", "shared/fixtures/keymap/binding-conflicts-v1.json", "windows/tauri/src/features/keymaps/utils/binding-conflicts.ts", "windows/tauri/src/features/keymaps/utils/save-keybinding.ts", @@ -69,11 +69,11 @@ "shared/fixtures/keymap/modifier-gesture-v1.json", "windows/tauri/src/features/keymaps/utils/double-shift-recognizer.test.ts", "windows/tauri/src/core/core-rules.ts", - "rust/lithe-core-rules/src/keymap/modifier_gesture.rs" + "rust/crates/core-rules/src/keymap/modifier_gesture.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" }, - "notes": "Windows 已接入现有快捷键编辑器,修复 #718 的占位入口;WS-09 / BUG-2 的 when 解析、校验和布尔结果由 Core 生成,导入/保存先校验,按键时只查预编译结果。验证导入 @、单个 &/|/=、未闭合引号/括号、缺少操作数和超预算条件时拒绝且保留原配置;检查坏历史条件不阻塞后续按键,并检查有效条件随焦点切换。原生 ABI 与 DOM 测试不替代真实 Windows WebView2、文件对话框及整机快捷键验收。 WS-08:快捷键冲突由 Core 的 keymap.analyzeConflicts 按最终生效绑定(默认、预设、用户逐层覆盖)判定,修饰键顺序、大小写与别名不同的等价绑定视为同一个;两端保存冲突绑定都会被拒绝,Windows 导入同样先整体校验。验证:Windows 把一个命令改绑成另一个命令的默认键(含不同修饰键顺序)应被拒绝并提示冲突命令,行内冲突提示覆盖默认和预设绑定;导入含冲突的文件时不改预设也不写入。WS-17:双击 Shift 手势状态机由 Core 的 keymap.modifierGestureStep(rust/lithe-core-rules)提供,macOS 通过 FFI 同步调用,Windows 启动时异步加载同一份源码编译的 wasm 后同步调用;两端只把原生事件转成输入、把输出变成动作,由 shared/fixtures/keymap/modifier-gesture-v1.json 经 Rust 与 wasm 逐步验证。" + "notes": "Windows 已接入现有快捷键编辑器,修复 #718 的占位入口;WS-09 / BUG-2 的 when 解析、校验和布尔结果由 Core 生成,导入/保存先校验,按键时只查预编译结果。验证导入 @、单个 &/|/=、未闭合引号/括号、缺少操作数和超预算条件时拒绝且保留原配置;检查坏历史条件不阻塞后续按键,并检查有效条件随焦点切换。原生 ABI 与 DOM 测试不替代真实 Windows WebView2、文件对话框及整机快捷键验收。 WS-08:快捷键冲突由 Core 的 keymap.analyzeConflicts 按最终生效绑定(默认、预设、用户逐层覆盖)判定,修饰键顺序、大小写与别名不同的等价绑定视为同一个;两端保存冲突绑定都会被拒绝,Windows 导入同样先整体校验。验证:Windows 把一个命令改绑成另一个命令的默认键(含不同修饰键顺序)应被拒绝并提示冲突命令,行内冲突提示覆盖默认和预设绑定;导入含冲突的文件时不改预设也不写入。WS-17:双击 Shift 手势状态机由 Core 的 keymap.modifierGestureStep(rust/crates/core-rules)提供,macOS 通过 FFI 同步调用,Windows 启动时异步加载同一份源码编译的 wasm 后同步调用;两端只把原生事件转成输入、把输出变成动作,由 shared/fixtures/keymap/modifier-gesture-v1.json 经 Rust 与 wasm 逐步验证。" } } diff --git a/shared/platform-feature-matrix/features/lsp-completion-hover.json b/shared/platform-feature-matrix/features/lsp-completion-hover.json index dd54b7200d..a740d5cc91 100644 --- a/shared/platform-feature-matrix/features/lsp-completion-hover.json +++ b/shared/platform-feature-matrix/features/lsp-completion-hover.json @@ -33,11 +33,11 @@ "macos": { "evidence": [ "macos/Sources/Lithe/Core/Language", - "rust/lithe-core/src/lsp/interface/engine.rs", + "rust/crates/core/src/lsp/interface/engine.rs", "shared/fixtures/lsp/java-completion-v1.json", "shared/fixtures/lsp", "shared/fixtures/lsp/completion-refresh-v1.json", - "rust/lithe-core/src/lsp/host_policy/completion_merge.rs", + "rust/crates/core/src/lsp/host_policy/completion_merge.rs", "shared/fixtures/lsp/completion-merge-v1.json", "macos/Tests/LitheTests/LanguageFeatureProviderTests.swift" ], @@ -47,11 +47,11 @@ "windows": { "evidence": [ "windows/tauri/src/features", - "rust/lithe-core/src/lsp/interface/engine.rs", + "rust/crates/core/src/lsp/interface/engine.rs", "shared/fixtures/lsp/java-completion-v1.json", "shared/fixtures/lsp", "shared/fixtures/lsp/completion-refresh-v1.json", - "rust/lithe-core/src/lsp/host_policy/completion_merge.rs", + "rust/crates/core/src/lsp/host_policy/completion_merge.rs", "shared/fixtures/lsp/completion-merge-v1.json" ], "implementationStatus": "implemented", diff --git a/shared/platform-feature-matrix/features/lsp-diagnostics.json b/shared/platform-feature-matrix/features/lsp-diagnostics.json index c4637d4fdf..529485cebc 100644 --- a/shared/platform-feature-matrix/features/lsp-diagnostics.json +++ b/shared/platform-feature-matrix/features/lsp-diagnostics.json @@ -55,7 +55,7 @@ "evidence": [ "macos/Sources/Lithe/Core/Language", "macos/Sources/Lithe/Services/Diagnostics", - "rust/lithe-core/src/lsp/interface/engine.rs" + "rust/crates/core/src/lsp/interface/engine.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" @@ -64,7 +64,7 @@ "evidence": [ "windows/tauri/src/features/diagnostics", "shared/fixtures/lsp", - "rust/lithe-core/src/lsp/interface/engine.rs", + "rust/crates/core/src/lsp/interface/engine.rs", "windows/tauri/src/features/editor/lsp/lsp-client-diagnostics-batch.test.ts", "windows/tauri/src/features/editor/lsp/lsp-client-code-actions.test.ts", "windows/tauri/src/core/lsp-diagnostic.ts", diff --git a/shared/platform-feature-matrix/features/lsp-document-identity.json b/shared/platform-feature-matrix/features/lsp-document-identity.json index f1ce9b4411..79e08a7641 100644 --- a/shared/platform-feature-matrix/features/lsp-document-identity.json +++ b/shared/platform-feature-matrix/features/lsp-document-identity.json @@ -43,7 +43,7 @@ "macos/Sources/Lithe/Core/Rust/RustCoreBridge.swift", "macos/Tests/LitheTests/LanguageServerSyncBridgeTests.swift", "macos/Tests/LitheTests/RustLanguageServerLaunchTests.swift", - "rust/lithe-core/src/lsp/interface/document_uri.rs" + "rust/crates/core/src/lsp/interface/document_uri.rs" ] }, "windows": { @@ -52,9 +52,9 @@ "evidence": [ "windows/tauri/src/platform/lsp-core-adapter.ts", "windows/tauri/src/platform/lsp-core-adapter.test.ts", - "rust/lithe-core/src/lsp/tests.rs", + "rust/crates/core/src/lsp/tests.rs", "shared/fixtures/lsp/document-uri-v1.json", - "rust/lithe-core/src/lsp/interface/document_uri.rs" + "rust/crates/core/src/lsp/interface/document_uri.rs" ] }, "notes": "两端在原有语言服务器请求中传递本机路径,Core 转换为 URI 并区分编码后的保留字符与分隔符;虚拟 URI 保持原样。 导航命令在各自协议边界解析路径,通用 URI 转换器不依赖具体语言。" diff --git a/shared/platform-feature-matrix/features/lsp-lifecycle.json b/shared/platform-feature-matrix/features/lsp-lifecycle.json index e21eedb07a..0494bce9bc 100644 --- a/shared/platform-feature-matrix/features/lsp-lifecycle.json +++ b/shared/platform-feature-matrix/features/lsp-lifecycle.json @@ -49,12 +49,12 @@ "docs/assets/java-startup-navigation/get-order-definition.png", "shared/fixtures/lsp/jdt-workspace-fingerprint-v1.json", ".agents/notes/implemented/feature/2026-10-11-gradle-project-import-settings.md", - "rust/lithe-core/src/lsp/interface/engine.rs", + "rust/crates/core/src/lsp/interface/engine.rs", "macos/Tests/LitheTests/MacBuildProviderSessionsTests.swift", - "rust/lithe-core/src/lsp/interface/process.rs", - "rust/lithe-core/src/lsp/interface/remote_process.rs", - "rust/lithe-core/src/lsp/interface/scripted.rs", - "rust/lithe-core/src/lsp/host_policy/activation.rs", + "rust/crates/core/src/lsp/interface/process.rs", + "rust/crates/core/src/lsp/interface/remote_process.rs", + "rust/crates/core/src/lsp/interface/scripted.rs", + "rust/crates/core/src/lsp/host_policy/activation.rs", "shared/fixtures/lsp/activation-policy-v1.json", "macos/Sources/Lithe/Core/Rust/RustLanguageToolingPolicy.swift", "macos/Sources/LitheCoreContracts/Language/LanguageToolingPolicyCore.swift", @@ -72,9 +72,9 @@ ".agents/notes/implemented/bug-fix/2026-10-09-jdtls-heap-ceiling-and-duplicate-maven-coordinates.md", "shared/fixtures/lsp/jdt-workspace-fingerprint-v1.json", ".agents/notes/implemented/feature/2026-10-11-gradle-project-import-settings.md", - "rust/lithe-core/src/lsp/interface/engine.rs", + "rust/crates/core/src/lsp/interface/engine.rs", "windows/tauri/src-tauri/src/lsp/jdt_workspace.rs", - "rust/lithe-core/src/lsp/host_policy/activation.rs", + "rust/crates/core/src/lsp/host_policy/activation.rs", "shared/fixtures/lsp/activation-policy-v1.json", "windows/tauri/src/features/editor/lsp/language-server-activation-policy.ts", "windows/tauri/src/features/editor/lsp/language-server-activation-policy.test.ts", diff --git a/shared/platform-feature-matrix/features/lsp-status-logs.json b/shared/platform-feature-matrix/features/lsp-status-logs.json index 32a0a26daa..850340446c 100644 --- a/shared/platform-feature-matrix/features/lsp-status-logs.json +++ b/shared/platform-feature-matrix/features/lsp-status-logs.json @@ -40,8 +40,8 @@ "macos/Sources/LitheLanguageIntelligenceModule/Runtime/LanguageServerSession.swift", "macos/Sources/LitheLanguageIntelligenceModule/Services/LanguageToolingSessionManager.swift", "macos/Tests/LitheTests/MacBuildProviderSessionsTests.swift", - "rust/lithe-core/src/lsp/interface/engine_logging.rs", - "rust/lithe-core/src/diagnostics/core_events.rs", + "rust/crates/core/src/lsp/interface/engine_logging.rs", + "rust/crates/core/src/diagnostics/core_events.rs", "shared/fixtures/diagnostics/engine-logging-v2.json", "macos/Sources/LitheModuleAPI/Logging/CoreLogRecord.swift", "macos/Sources/Lithe/Platform/MacOS/Logging/MacLogStore.swift", @@ -62,7 +62,7 @@ "macos/Sources/Lithe/Views/Language/LanguageServerLogsView.swift", "macos/Sources/Lithe/Views/Editor/EditorAreaView.swift", "macos/Tests/LitheTests/LogWindowReviewTests.swift", - "rust/lithe-core/src/lsp/interface/plugin_logging.rs", + "rust/crates/core/src/lsp/interface/plugin_logging.rs", "shared/contracts/plugins/v1/fixtures/backend/plugin-logging.json", "macos/Sources/Lithe/Views/Language/LanguageServerLogText.swift", "macos/Tests/LitheTests/LanguageServerLogTextTests.swift" diff --git a/shared/platform-feature-matrix/features/markdown-rendering.json b/shared/platform-feature-matrix/features/markdown-rendering.json index 7ec68d0b50..b16465f044 100644 --- a/shared/platform-feature-matrix/features/markdown-rendering.json +++ b/shared/platform-feature-matrix/features/markdown-rendering.json @@ -34,7 +34,7 @@ "macos/Sources/Lithe/Core/Ports/MarkdownRendering.swift", "macos/Sources/Lithe/Resources/MarkdownPreview/index.html", "macos/Tests/LitheTests/MarkdownPreviewRichContentTests.swift", - "rust/lithe-core/src/project/markdown.rs", + "rust/crates/core/src/project/markdown.rs", "shared/fixtures/editor/markdown-rich-content-v1.json", "macos/Sources/Lithe/Resources/MarkdownPreview/preview.css", "macos/Tests/LitheTests/MarkdownPreviewHTMLTests.swift", @@ -52,7 +52,7 @@ "windows/tauri/src/features/editor/markdown/render.ts", "windows/tauri/src/features/editor/markdown/render.native.integration.test.ts", "shared/fixtures/editor/markdown-render-v1.json", - "rust/lithe-core/src/project/markdown.rs" + "rust/crates/core/src/project/markdown.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" diff --git a/shared/platform-feature-matrix/features/network-proxy-settings.json b/shared/platform-feature-matrix/features/network-proxy-settings.json index b83e4a1907..851ccb890c 100644 --- a/shared/platform-feature-matrix/features/network-proxy-settings.json +++ b/shared/platform-feature-matrix/features/network-proxy-settings.json @@ -54,7 +54,7 @@ "macos/Tests/LitheTests/NetworkProxySettingsTests.swift", "macos/Tests/LitheTests/MacNetworkSessionProviderTests.swift", "macos/Tests/LitheTests/MacNetworkProxyTesterTests.swift", - "rust/lithe-core/src/network/tests.rs" + "rust/crates/core/src/network/tests.rs" ] }, "windows": { diff --git a/shared/platform-feature-matrix/features/onboarding-welcome.json b/shared/platform-feature-matrix/features/onboarding-welcome.json index 0ccb170688..1c5a58a840 100644 --- a/shared/platform-feature-matrix/features/onboarding-welcome.json +++ b/shared/platform-feature-matrix/features/onboarding-welcome.json @@ -54,7 +54,7 @@ "macos/Sources/Lithe/Platform/MacOS/RecentProjectBranchReader.swift", "macos/Tests/LitheTests/RecentProjectBranchMetadataTests.swift", "shared/fixtures/git/checkout-metadata-v1.json", - "rust/lithe-core/src/git/catalog.rs" + "rust/crates/core/src/git/catalog.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" diff --git a/shared/platform-feature-matrix/features/php-run-test.json b/shared/platform-feature-matrix/features/php-run-test.json index 52a8982fe1..251d082dfe 100644 --- a/shared/platform-feature-matrix/features/php-run-test.json +++ b/shared/platform-feature-matrix/features/php-run-test.json @@ -28,7 +28,7 @@ "macos": { "evidence": [ "macos/Tests/LitheTests/Fixtures/RetiredOfficialPlugins/PhpSupport/plugin.json", - "rust/lithe-core/src/plugins/declarative.rs", + "rust/crates/core/src/plugins/declarative.rs", "shared/contracts/plugins/v1/fixtures/languages/command-plans.json", "macos/Sources/LitheExecutionModule/Modules/BundledLanguageExecutionModule.swift", "macos/Tests/LitheTests/RealPhpIntegrationTests.swift" diff --git a/shared/platform-feature-matrix/features/plugin-backend-run-start.json b/shared/platform-feature-matrix/features/plugin-backend-run-start.json index 6724ff7aef..5911619706 100644 --- a/shared/platform-feature-matrix/features/plugin-backend-run-start.json +++ b/shared/platform-feature-matrix/features/plugin-backend-run-start.json @@ -41,9 +41,9 @@ "shared/contracts/plugins/v1/README.md", "shared/contracts/plugins/v1/fixtures/run/run-start.json", "shared/contracts/plugins/v1/fixtures/run/tool-reference-launch.plugin.json", - "rust/lithe-core/src/build/run_start.rs", - "rust/lithe-core/src/tests/plugin_run_debug.rs", - "rust/lithe-core/src/toolchain/mod.rs", + "rust/crates/core/src/build/run_start.rs", + "rust/crates/core/src/tests/plugin_run_debug.rs", + "rust/crates/core/src/toolchain/mod.rs", "macos/Sources/Lithe/Core/Ports/PluginRunDecoding.swift", "macos/Sources/Lithe/Core/Rust/RustPluginRunOperations.swift", "macos/Sources/Lithe/Application/Features/PluginRunHostService.swift", diff --git a/shared/platform-feature-matrix/features/plugin-backend-workspace-context.json b/shared/platform-feature-matrix/features/plugin-backend-workspace-context.json index bc81fb426e..711e21e597 100644 --- a/shared/platform-feature-matrix/features/plugin-backend-workspace-context.json +++ b/shared/platform-feature-matrix/features/plugin-backend-workspace-context.json @@ -34,11 +34,11 @@ "implementationStatus": "partial", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/lsp/interface/plugin_function.rs", - "rust/lithe-core/src/plugins/host_api.rs", + "rust/crates/core/src/lsp/interface/plugin_function.rs", + "rust/crates/core/src/plugins/host_api.rs", "shared/fixtures/plugins/host-api-v1.json", - "rust/lithe-core/src/lsp/interface/engine.rs", - "rust/lithe-core/src/plugins/backend.rs", + "rust/crates/core/src/lsp/interface/engine.rs", + "rust/crates/core/src/plugins/backend.rs", "shared/contracts/plugins/v1/README.md", "shared/contracts/plugins/v1/fixtures/backend/function-protocol.json", "shared/contracts/plugins/v1/fixtures/backend/backend-workspace.plugin.json", diff --git a/shared/platform-feature-matrix/features/plugin-cross-plugin-function-calls.json b/shared/platform-feature-matrix/features/plugin-cross-plugin-function-calls.json index 9d94d6da48..5ee7594250 100644 --- a/shared/platform-feature-matrix/features/plugin-cross-plugin-function-calls.json +++ b/shared/platform-feature-matrix/features/plugin-cross-plugin-function-calls.json @@ -30,9 +30,9 @@ "implementationStatus": "partial", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/lsp/interface/function_relay.rs", - "rust/lithe-core/src/lsp/interface/engine_function_relay.rs", - "rust/lithe-core/src/plugins/plugin_functions.rs", + "rust/crates/core/src/lsp/interface/function_relay.rs", + "rust/crates/core/src/lsp/interface/engine_function_relay.rs", + "rust/crates/core/src/plugins/plugin_functions.rs", "shared/contracts/plugins/v1/README.md", "shared/contracts/plugins/v1/fixtures/backend/function-protocol.json", "shared/contracts/plugins/v1/fixtures/backend/plugin-functions-exporter.plugin.json", diff --git a/shared/platform-feature-matrix/features/plugin-debug-adapters.json b/shared/platform-feature-matrix/features/plugin-debug-adapters.json index a9d69dfb27..c72ff37215 100644 --- a/shared/platform-feature-matrix/features/plugin-debug-adapters.json +++ b/shared/platform-feature-matrix/features/plugin-debug-adapters.json @@ -38,7 +38,7 @@ "shared/contracts/plugins/v1/fixtures/debug-adapters/debug-adapter-language-server.plugin.json", "shared/contracts/plugins/v1/fixtures/debug-adapters/debug-adapter-remote-attach.plugin.json", "shared/contracts/plugins/v1/fixtures/debug-adapters/debug-adapter-rejections.json", - "rust/lithe-core/src/debug/adapters.rs", + "rust/crates/core/src/debug/adapters.rs", "macos/Sources/LitheCoreContracts/Plugins/DeclarativePluginContracts.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacLivePluginRegistry.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginLanguageServerLaunchResolver.swift", @@ -58,11 +58,11 @@ "shared/fixtures/debug/adapter-selection-v1.json", "macos/Sources/LitheCoreContracts/Debug/DebugAdapterContracts.swift", "macos/Sources/LitheCoreContracts/Debug/DebugProviderDescriptor.swift", - "rust/lithe-core/src/build/debug_preparation.rs", + "rust/crates/core/src/build/debug_preparation.rs", "macos/Sources/Lithe/Platform/MacOS/Debug/MacBuildDebugLaunchResolver.swift", "macos/Tests/LitheLanguageIntelligenceModuleTests/LanguageIntelligenceModuleTests.swift", "macos/Tests/LitheTests/MacNativeProviderDebugIntegrationTests.swift", - "rust/lithe-core/src/debug/engine.rs", + "rust/crates/core/src/debug/engine.rs", "shared/logging/events/debug.json" ], "implementationStatus": "implemented", @@ -70,7 +70,7 @@ }, "windows": { "evidence": [ - "rust/lithe-core/src/debug/adapters.rs", + "rust/crates/core/src/debug/adapters.rs", "shared/contracts/plugins/v1/fixtures/debug-adapters/debug-adapter.plugin.json", "shared/contracts/plugins/v1/fixtures/debug-adapters/debug-adapter-language-server.plugin.json", "shared/contracts/plugins/v1/fixtures/debug-adapters/debug-adapter-remote-attach.plugin.json" diff --git a/shared/platform-feature-matrix/features/plugin-debug-start-and-adapter-features.json b/shared/platform-feature-matrix/features/plugin-debug-start-and-adapter-features.json index 413ab167c4..be2c230c5e 100644 --- a/shared/platform-feature-matrix/features/plugin-debug-start-and-adapter-features.json +++ b/shared/platform-feature-matrix/features/plugin-debug-start-and-adapter-features.json @@ -37,10 +37,10 @@ "shared/contracts/plugins/v1/README.md", "shared/contracts/plugins/v1/fixtures/debug-adapters/debug-start.json", "shared/contracts/plugins/v1/fixtures/debug-adapters/debug-adapter-features.plugin.json", - "rust/lithe-core/src/debug/backend_start.rs", - "rust/lithe-core/src/debug/adapters.rs", - "rust/lithe-core/src/debug/engine.rs", - "rust/lithe-core/src/tests/plugin_run_debug.rs", + "rust/crates/core/src/debug/backend_start.rs", + "rust/crates/core/src/debug/adapters.rs", + "rust/crates/core/src/debug/engine.rs", + "rust/crates/core/src/tests/plugin_run_debug.rs", "macos/Sources/LitheCoreContracts/Debug/DebugAdapterDeclaredBehavior.swift", "macos/Sources/LitheDebugModule/Application/GenericDebugFeatureModel.swift", "macos/Sources/LitheDebugModule/Runtime/CoreDebugAdapterProtocolSession.swift", @@ -57,7 +57,7 @@ }, "windows": { "evidence": [ - "rust/lithe-core/src/debug/backend_start.rs", + "rust/crates/core/src/debug/backend_start.rs", "shared/contracts/plugins/v1/fixtures/debug-adapters/debug-start.json", "shared/contracts/plugins/v1/fixtures/debug-adapters/debug-adapter-features.plugin.json" ], diff --git a/shared/platform-feature-matrix/features/plugin-editor-actions.json b/shared/platform-feature-matrix/features/plugin-editor-actions.json index bd86e86748..31f791b262 100644 --- a/shared/platform-feature-matrix/features/plugin-editor-actions.json +++ b/shared/platform-feature-matrix/features/plugin-editor-actions.json @@ -36,7 +36,7 @@ "implementationStatus": "partial", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/plugins/editor_actions.rs", + "rust/crates/core/src/plugins/editor_actions.rs", "macos/Sources/Lithe/Application/Features/PluginEditorActionHostService.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/PluginEditorHostOptions+macOS.swift", "frontend/editor/src/plugin-editor-actions.ts", diff --git a/shared/platform-feature-matrix/features/plugin-editor-grammars.json b/shared/platform-feature-matrix/features/plugin-editor-grammars.json index 3ece7d1260..cc9672b7e1 100644 --- a/shared/platform-feature-matrix/features/plugin-editor-grammars.json +++ b/shared/platform-feature-matrix/features/plugin-editor-grammars.json @@ -32,7 +32,7 @@ "implementationStatus": "partial", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/plugins/grammar.rs", + "rust/crates/core/src/plugins/grammar.rs", "frontend/editor/src/plugin-languages.ts", "frontend/editor/src/plugin-grammar-tokenizer.ts", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginEditorLanguages.swift", diff --git a/shared/platform-feature-matrix/features/plugin-editor-providers.json b/shared/platform-feature-matrix/features/plugin-editor-providers.json index 785fadf0a5..3a5f36982b 100644 --- a/shared/platform-feature-matrix/features/plugin-editor-providers.json +++ b/shared/platform-feature-matrix/features/plugin-editor-providers.json @@ -42,7 +42,7 @@ "implementationStatus": "partial", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/plugins/editor_providers.rs", + "rust/crates/core/src/plugins/editor_providers.rs", "macos/Sources/Lithe/Application/Features/PluginEditorProviderHostService.swift", "macos/Sources/Lithe/Models/AppModel/AppModel+PluginDefinitions.swift", "macos/Sources/Lithe/Platform/MacOS/MonacoPluginEditorProviders.swift", diff --git a/shared/platform-feature-matrix/features/plugin-functions.json b/shared/platform-feature-matrix/features/plugin-functions.json index 4cf0399b73..4e7b5dc047 100644 --- a/shared/platform-feature-matrix/features/plugin-functions.json +++ b/shared/platform-feature-matrix/features/plugin-functions.json @@ -38,8 +38,8 @@ "implementationStatus": "partial", "verificationStatus": "verified", "evidence": [ - "rust/lithe-core/src/lsp/interface/plugin_function.rs", - "rust/lithe-core/src/lsp/interface/engine.rs", + "rust/crates/core/src/lsp/interface/plugin_function.rs", + "rust/crates/core/src/lsp/interface/engine.rs", "shared/contracts/plugins/v1/fixtures/backend/function-protocol.json", "macos/Sources/Lithe/Application/Features/PluginWebBridge.swift", "macos/Sources/Lithe/Platform/MacOS/Build/MacBuildProviderSessions.swift", @@ -52,8 +52,8 @@ "implementationStatus": "partial", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/lsp/interface/plugin_function.rs", - "rust/lithe-core/src/lsp/interface/engine.rs", + "rust/crates/core/src/lsp/interface/plugin_function.rs", + "rust/crates/core/src/lsp/interface/engine.rs", "shared/contracts/plugins/v1/README.md" ] }, diff --git a/shared/platform-feature-matrix/features/plugin-host-editor-file-window-services.json b/shared/platform-feature-matrix/features/plugin-host-editor-file-window-services.json index 995622ae1f..2722be5081 100644 --- a/shared/platform-feature-matrix/features/plugin-host-editor-file-window-services.json +++ b/shared/platform-feature-matrix/features/plugin-host-editor-file-window-services.json @@ -62,7 +62,7 @@ "macos/Tests/LitheTests/PluginPublicHostAPITests.swift", "macos/Experiments/Monaco/workbench.integration.ts", "macos/Tests/LitheTests/PluginHostProcessIntegrationTests.swift", - "rust/lithe-core/src/editor/text_edit_plan.rs", + "rust/crates/core/src/editor/text_edit_plan.rs", "shared/fixtures/editor/text-edit-plan-v1.json" ] }, diff --git a/shared/platform-feature-matrix/features/plugin-injected-toolchains.json b/shared/platform-feature-matrix/features/plugin-injected-toolchains.json index f51934f048..4c6d72f434 100644 --- a/shared/platform-feature-matrix/features/plugin-injected-toolchains.json +++ b/shared/platform-feature-matrix/features/plugin-injected-toolchains.json @@ -50,15 +50,15 @@ "implementationStatus": "partial", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/toolchain/mod.rs", - "rust/lithe-core/src/toolchain/definitions.rs", - "rust/lithe-core/src/toolchain/query.rs", - "rust/lithe-core/src/toolchain/pins.rs", - "rust/lithe-core/src/toolchain/resolution.rs", - "rust/lithe-core/src/tests/toolchain_definitions.rs", - "rust/lithe-core/src/tests/toolchain_queries.rs", - "rust/lithe-core/src/tests/toolchain_pins.rs", - "rust/lithe-core/src/tests/toolchain_resolution.rs", + "rust/crates/core/src/toolchain/mod.rs", + "rust/crates/core/src/toolchain/definitions.rs", + "rust/crates/core/src/toolchain/query.rs", + "rust/crates/core/src/toolchain/pins.rs", + "rust/crates/core/src/toolchain/resolution.rs", + "rust/crates/core/src/tests/toolchain_definitions.rs", + "rust/crates/core/src/tests/toolchain_queries.rs", + "rust/crates/core/src/tests/toolchain_pins.rs", + "rust/crates/core/src/tests/toolchain_resolution.rs", "shared/contracts/plugins/v1/toolchains/README.md", "macos/Sources/Lithe/Core/Ports/ToolchainSettings.swift", "macos/Sources/Lithe/Application/Features/ToolchainSettingsFeatureModel.swift", @@ -70,7 +70,7 @@ "macos/Tests/LitheTests/ToolchainSettingsLoaderTests.swift", "macos/Tests/LitheTests/ToolchainSettingsLayoutTests.swift", "macos/Tests/LitheTests/MacToolchainDiscoveryTests.swift", - "rust/lithe-core/src/lsp/interface/toolchain_provider.rs", + "rust/crates/core/src/lsp/interface/toolchain_provider.rs", "macos/Sources/Lithe/Platform/MacOS/Runtime/MacToolchainDiscovery+Providers.swift", "macos/Sources/Lithe/Platform/MacOS/Runtime/MacToolchainInputWatcher.swift", "macos/Sources/Lithe/Platform/MacOS/Plugins/MacPluginBackendSessions.swift", @@ -81,12 +81,12 @@ "macos/Tests/LitheTests/MacBuildToolResolverTests.swift", "macos/Tests/LitheTests/RunLaunchEnvironmentTests.swift", "macos/Sources/LitheModuleAPI/Plugins/PluginTypes.swift", - "rust/lithe-core/src/toolchain/fixed.rs", - "rust/lithe-core/src/execution/provider_run_options.rs", - "rust/lithe-core/src/toolchain/preferences.rs", + "rust/crates/core/src/toolchain/fixed.rs", + "rust/crates/core/src/execution/provider_run_options.rs", + "rust/crates/core/src/toolchain/preferences.rs", "shared/contracts/toolchain-consumer-preferences-v1.schema.json", "shared/fixtures/toolchains/consumer-preferences.json", - "rust/lithe-core/src/execution/configuration/project_toolchain.rs", + "rust/crates/core/src/execution/configuration/project_toolchain.rs", "macos/Sources/Lithe/Core/Ports/ToolchainPreferences.swift", "macos/Sources/Lithe/Application/Features/ToolchainPreferencesFeatureModel.swift", "macos/Sources/Lithe/Platform/MacOS/Runtime/MacToolchainPreferencesStore.swift", @@ -101,14 +101,14 @@ "implementationStatus": "partial", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/toolchain/paths.rs", - "rust/lithe-core/src/toolchain/query.rs", - "rust/lithe-core/src/toolchain/resolution.rs", - "rust/lithe-core/src/tests/toolchain_queries.rs", + "rust/crates/core/src/toolchain/paths.rs", + "rust/crates/core/src/toolchain/query.rs", + "rust/crates/core/src/toolchain/resolution.rs", + "rust/crates/core/src/tests/toolchain_queries.rs", "shared/contracts/plugins/v1/plugin-manifest.schema.json", "shared/contracts/plugins/v1/toolchains/README.md" ] }, - "notes": "本条记录 #1581 的固定基础与 #1495 的预集成。macOS 发现结果只读,Build 偏好可明确保存;Build/Provider Run 新路径通过单次原生解析消费定义;Windows、旧 Java/Node 消费者和已有工具数据迁移仍未完成。安装来源支持两条途径:工具定义里的声明式扫描(由宿主展开)和提供方查询(toolchains/query,可只报告安装);Core 在自动层把两条途径按规范化目录合并;macOS 设置页已接入声明式扫描(宿主按 discoveryPlan 展开、收集文件事实、只探测 toolchains.candidates 返回的可执行文件,扫描与探测有数量和时长上限),macOS 设置页已接入提供方查询(启动或复用插件后端、协商 litheToolchains、每次查询独立 operationID 与代次、超时 15 秒、取消发送 $/cancelRequest,回复交 toolchains.decodeReply 用宿主读取的文件事实校验,失败原样显示提供方原因);Windows 已接单次准备持有的 Provider 查询,完整产品准入和工作区关闭主动取消仍待补齐;目录 pin、声明扫描和 Shell 候选已有原生 Build 解析基础,产品准入仍关闭。Core 不运行 mise/SDKMAN、不解析其文件格式、不下载、不监听或写配置。通用 runtime 消费者、环境/来源界面、项目环境 symlink 完整原生验证及带后端免重启仍未完成;没有新增运行时资源或可复用下载目录。 macOS 设置页只读:运行环境页按目录列出工具,展开后按固定、项目文件、全局、自动四个来源排列并框出首个命中,提供方报告的要求与版本显示在项目与全局步骤中、固定值显示已保存未验证;环境来源页显示登录 Shell 的读取状态、变量数(不显示值)、耗时和 PATH 各目录的来源,以及插件声明的版本管理器在本项目找到的版本文件。未实现的添加、切换、保存和查询入口不显示。Debug 隔离预览只有插件清单是样例,工作区文件、固定值和登录 Shell 均真实读取,不启动工具、不写真实配置。Core 独立位于 rust/lithe-core/src/toolchain/,插件只是声明贡献入口。 #1495 固定 b87c7f6 的预集成增加 macOS Build/Provider Run 单次解析:已有目录 pin、官方来源、定义内布局、声明最低版本和原生文件证据共同校验;固定 home 失效不回落、Wrapper 只允许显式启动、不被动探测,异步期间文件变化拒绝。Maven 社区包使用命名空间 ID;Java 短 ID 由官方包提供。Windows 456 项前端回归、类型检查与生产构建在 macOS 完成,原生 Windows CI 待执行。页面保存、旧工具迁移和完整产品验收仍 pending。 macOS 已实现消费者对应的 toolDefinitions:1/toolchainProviders:1 同步加入真实宿主能力表;此项不开放 Windows 能力。Windows 首轮 CI 41307483413 前端通过,Rust/JDT 因 Unix 专用路径 fixture 失败,修复后待重跑。 Windows 已增加无工具名分支的目录 pin/扫描/环境/命令原生解析基础,固定值跳过低层扫描和 Provider;需要 Provider 而无固定值时明确拒绝,不忽略未实现来源。官方短 ID 不从本机安装记录猜测。原生整体仍 pending,查询后端进展见本轮验证。显式 Wrapper 的最低版本在 Core 校验身份后有界探测并重新执行同一最低版本要求。 Windows Build 新增的 project-maven-jdk 别名已删除,共享 fixture 用命名空间工具和显式版本证明通用消费;旧 project-maven 的真实 Java/Windows 消费者继续按阶段计划处理。 按 Run 的通用 tools 选择已接入两端 Build 准备:明确安装目录/可执行文件优先于目录 pin,按工具 ID 继承并支持 null 清空,保存不改写目录 pin。旧 Maven 单次转换器只转移可无损表达的显式 Maven/JDK 选择;带项目默认值、目录覆盖或应用 JDK 继承的来源保留并明确拒绝转换,完整默认值迁移仍待完成。Windows CI 41315520152 的 Core、前端和真实 JDT 通过,项目原生测试停在路径前缀期望值,修复测试夹具后仍需整轮通过。 Windows 增加与 macOS 格式一致的发布者验签;签名存在时必须验证,扫描持有完整内容摘要,定义消费和启动再核对。无签名安装记录仍不证明官方身份,缺签名不恢复旧的已验证证明。packageTrust、Build/Debug 等能力准入仍关闭。原生 invoke 的 Error 对象按稳定代码翻译工具不可用和签名失败。 Build 当前工具上下文只支持直接 executable/arguments 模板;两端对额外 flag/home 启动模板在探测前明确拒绝,不能静默删除声明参数。完整模板消费仍未实现。 本批 Windows 工具查询复用 Core LSP 引擎,单次准备内协商并复用后端,持有独占的操作状态目录,返回前停止并清理;当前只接 packaged 后端,非空未实现 hostServices 明确拒绝。查询和原生文件事实交 Core 验证,提供方来源改变撤销结果;已校验不可用回复可检查低层,安全或身份错误不回落。Core 与两端接受保留类型和值的有界字符串/正整数 JSON-RPC ID,修复真实 Core 字符串 ID 被误拒绝。上一提交 2a8bcddf8 的 Windows CI 41377299138 全部通过,本批新增查询须在自己的 CI 组合验证;不开放能力准入或宣称完整迁移。 已整合 #1581 最终合入实现;设置页按相同目录轮次、上下文与文件事实交 Core 判断生效层、冲突和提供方不可用,界面不再重建选择语义。 #1581 实际合并后整合 preview@50b4ebe0f,保留最终设置页按轮次交 Core 判断来源的实现;本机 Project 94 项、Swift 228 项、Windows 前端 469 项通过,旧四项 macOS watcher 超时已由上游修复。新组合仍须自己的 Windows CI;Core 全量断言通过但进程计时超限记录保留,三项定向复验通过,不修改门槛。 Windows 工具准备现由窗口绑定令牌与同一 AbortSignal 撤销:先登记再派发,取消早于派发仍拒绝;窗口销毁撤销自己的所有者,扫描/查询/最终返回检查当前性,已启动版本探测保持原五秒进程期限。新登记仅在内存,容量/过期有界,不驱逐活跃租约。Build/Run/私有 scope/启动前验证都转交信号,完整产品准入仍关闭。 Windows Provider Run 的工具 ID 现在只使用当前原生 resolvedExecutables 绑定;删除从 Maven languageImport、旧 Maven 路径及应用 runtime 路径补齐启动程序的逻辑。缺少绑定和跨根路径冲突明确拒绝;Rust Serialize 与真实 TypeScript Run 编排共用 native-tool-context fixture 验证边界,Windows 产品准入仍关闭。 真实 Maven/JDK 流程补出用途边界:带 entry/JAR 模板的运行时安装依赖只消费已校验版本和导出,不实例化该模板;两端显式标记安装依赖,主程序直接执行仍拒绝不支持的模板。Windows 直接绑定过滤非直接模板,防止将依赖升级成绕过模板的启动许可。原失败保留,修正后的真实工作流另行计时,不按工具名特判。 宿主 e3fea58db 的 Windows CI 41401417746 全部通过,实际覆盖窗口取消和原生绑定:Project 100 通过/1 跳过、host 394 通过/3 跳过,Core、前端和真实 JDT 同时通过;不覆盖其后的安装依赖用途修正。用途修正的本机 Project 100 项通过,macOS 真实 pin/Wrapper 和原生配置行为通过;双 reactor 原组合计时超限保留,两个独立工作流减少重复读取后为 9.968/5.379 秒,通过原门槛。完整 Windows 产品准入和旧默认值迁移继续 pending。 当前 96f10837e 的 Windows CI 41558993167 全部通过;其后目录列表/实时编辑重载和真实 Maven 测试按独立本机报告验证,不借用前一提交的 Windows 结论。" + "notes": "本条记录 #1581 的固定基础与 #1495 的预集成。macOS 发现结果只读,Build 偏好可明确保存;Build/Provider Run 新路径通过单次原生解析消费定义;Windows、旧 Java/Node 消费者和已有工具数据迁移仍未完成。安装来源支持两条途径:工具定义里的声明式扫描(由宿主展开)和提供方查询(toolchains/query,可只报告安装);Core 在自动层把两条途径按规范化目录合并;macOS 设置页已接入声明式扫描(宿主按 discoveryPlan 展开、收集文件事实、只探测 toolchains.candidates 返回的可执行文件,扫描与探测有数量和时长上限),macOS 设置页已接入提供方查询(启动或复用插件后端、协商 litheToolchains、每次查询独立 operationID 与代次、超时 15 秒、取消发送 $/cancelRequest,回复交 toolchains.decodeReply 用宿主读取的文件事实校验,失败原样显示提供方原因);Windows 已接单次准备持有的 Provider 查询,完整产品准入和工作区关闭主动取消仍待补齐;目录 pin、声明扫描和 Shell 候选已有原生 Build 解析基础,产品准入仍关闭。Core 不运行 mise/SDKMAN、不解析其文件格式、不下载、不监听或写配置。通用 runtime 消费者、环境/来源界面、项目环境 symlink 完整原生验证及带后端免重启仍未完成;没有新增运行时资源或可复用下载目录。 macOS 设置页只读:运行环境页按目录列出工具,展开后按固定、项目文件、全局、自动四个来源排列并框出首个命中,提供方报告的要求与版本显示在项目与全局步骤中、固定值显示已保存未验证;环境来源页显示登录 Shell 的读取状态、变量数(不显示值)、耗时和 PATH 各目录的来源,以及插件声明的版本管理器在本项目找到的版本文件。未实现的添加、切换、保存和查询入口不显示。Debug 隔离预览只有插件清单是样例,工作区文件、固定值和登录 Shell 均真实读取,不启动工具、不写真实配置。Core 独立位于 rust/crates/core/src/toolchain/,插件只是声明贡献入口。 #1495 固定 b87c7f6 的预集成增加 macOS Build/Provider Run 单次解析:已有目录 pin、官方来源、定义内布局、声明最低版本和原生文件证据共同校验;固定 home 失效不回落、Wrapper 只允许显式启动、不被动探测,异步期间文件变化拒绝。Maven 社区包使用命名空间 ID;Java 短 ID 由官方包提供。Windows 456 项前端回归、类型检查与生产构建在 macOS 完成,原生 Windows CI 待执行。页面保存、旧工具迁移和完整产品验收仍 pending。 macOS 已实现消费者对应的 toolDefinitions:1/toolchainProviders:1 同步加入真实宿主能力表;此项不开放 Windows 能力。Windows 首轮 CI 41307483413 前端通过,Rust/JDT 因 Unix 专用路径 fixture 失败,修复后待重跑。 Windows 已增加无工具名分支的目录 pin/扫描/环境/命令原生解析基础,固定值跳过低层扫描和 Provider;需要 Provider 而无固定值时明确拒绝,不忽略未实现来源。官方短 ID 不从本机安装记录猜测。原生整体仍 pending,查询后端进展见本轮验证。显式 Wrapper 的最低版本在 Core 校验身份后有界探测并重新执行同一最低版本要求。 Windows Build 新增的 project-maven-jdk 别名已删除,共享 fixture 用命名空间工具和显式版本证明通用消费;旧 project-maven 的真实 Java/Windows 消费者继续按阶段计划处理。 按 Run 的通用 tools 选择已接入两端 Build 准备:明确安装目录/可执行文件优先于目录 pin,按工具 ID 继承并支持 null 清空,保存不改写目录 pin。旧 Maven 单次转换器只转移可无损表达的显式 Maven/JDK 选择;带项目默认值、目录覆盖或应用 JDK 继承的来源保留并明确拒绝转换,完整默认值迁移仍待完成。Windows CI 41315520152 的 Core、前端和真实 JDT 通过,项目原生测试停在路径前缀期望值,修复测试夹具后仍需整轮通过。 Windows 增加与 macOS 格式一致的发布者验签;签名存在时必须验证,扫描持有完整内容摘要,定义消费和启动再核对。无签名安装记录仍不证明官方身份,缺签名不恢复旧的已验证证明。packageTrust、Build/Debug 等能力准入仍关闭。原生 invoke 的 Error 对象按稳定代码翻译工具不可用和签名失败。 Build 当前工具上下文只支持直接 executable/arguments 模板;两端对额外 flag/home 启动模板在探测前明确拒绝,不能静默删除声明参数。完整模板消费仍未实现。 本批 Windows 工具查询复用 Core LSP 引擎,单次准备内协商并复用后端,持有独占的操作状态目录,返回前停止并清理;当前只接 packaged 后端,非空未实现 hostServices 明确拒绝。查询和原生文件事实交 Core 验证,提供方来源改变撤销结果;已校验不可用回复可检查低层,安全或身份错误不回落。Core 与两端接受保留类型和值的有界字符串/正整数 JSON-RPC ID,修复真实 Core 字符串 ID 被误拒绝。上一提交 2a8bcddf8 的 Windows CI 41377299138 全部通过,本批新增查询须在自己的 CI 组合验证;不开放能力准入或宣称完整迁移。 已整合 #1581 最终合入实现;设置页按相同目录轮次、上下文与文件事实交 Core 判断生效层、冲突和提供方不可用,界面不再重建选择语义。 #1581 实际合并后整合 preview@50b4ebe0f,保留最终设置页按轮次交 Core 判断来源的实现;本机 Project 94 项、Swift 228 项、Windows 前端 469 项通过,旧四项 macOS watcher 超时已由上游修复。新组合仍须自己的 Windows CI;Core 全量断言通过但进程计时超限记录保留,三项定向复验通过,不修改门槛。 Windows 工具准备现由窗口绑定令牌与同一 AbortSignal 撤销:先登记再派发,取消早于派发仍拒绝;窗口销毁撤销自己的所有者,扫描/查询/最终返回检查当前性,已启动版本探测保持原五秒进程期限。新登记仅在内存,容量/过期有界,不驱逐活跃租约。Build/Run/私有 scope/启动前验证都转交信号,完整产品准入仍关闭。 Windows Provider Run 的工具 ID 现在只使用当前原生 resolvedExecutables 绑定;删除从 Maven languageImport、旧 Maven 路径及应用 runtime 路径补齐启动程序的逻辑。缺少绑定和跨根路径冲突明确拒绝;Rust Serialize 与真实 TypeScript Run 编排共用 native-tool-context fixture 验证边界,Windows 产品准入仍关闭。 真实 Maven/JDK 流程补出用途边界:带 entry/JAR 模板的运行时安装依赖只消费已校验版本和导出,不实例化该模板;两端显式标记安装依赖,主程序直接执行仍拒绝不支持的模板。Windows 直接绑定过滤非直接模板,防止将依赖升级成绕过模板的启动许可。原失败保留,修正后的真实工作流另行计时,不按工具名特判。 宿主 e3fea58db 的 Windows CI 41401417746 全部通过,实际覆盖窗口取消和原生绑定:Project 100 通过/1 跳过、host 394 通过/3 跳过,Core、前端和真实 JDT 同时通过;不覆盖其后的安装依赖用途修正。用途修正的本机 Project 100 项通过,macOS 真实 pin/Wrapper 和原生配置行为通过;双 reactor 原组合计时超限保留,两个独立工作流减少重复读取后为 9.968/5.379 秒,通过原门槛。完整 Windows 产品准入和旧默认值迁移继续 pending。 当前 96f10837e 的 Windows CI 41558993167 全部通过;其后目录列表/实时编辑重载和真实 Maven 测试按独立本机报告验证,不借用前一提交的 Windows 结论。" } } diff --git a/shared/platform-feature-matrix/features/plugin-language-server-sessions.json b/shared/platform-feature-matrix/features/plugin-language-server-sessions.json index 9c40935748..73c8b87111 100644 --- a/shared/platform-feature-matrix/features/plugin-language-server-sessions.json +++ b/shared/platform-feature-matrix/features/plugin-language-server-sessions.json @@ -34,11 +34,11 @@ "implementationStatus": "implemented", "verificationStatus": "pending", "evidence": [ - "rust/lithe-core/src/lsp/interface/plugin_server.rs", - "rust/lithe-core/src/lsp/interface/plugin_function.rs", - "rust/lithe-core/src/plugins/language_server_sessions.rs", - "rust/lithe-core/src/plugins/content_providers.rs", - "rust/lithe-core/src/tests/language_server_sessions.rs", + "rust/crates/core/src/lsp/interface/plugin_server.rs", + "rust/crates/core/src/lsp/interface/plugin_function.rs", + "rust/crates/core/src/plugins/language_server_sessions.rs", + "rust/crates/core/src/plugins/content_providers.rs", + "rust/crates/core/src/tests/language_server_sessions.rs", "shared/contracts/plugins/v1/README.md", "shared/contracts/plugins/v1/fixtures/languages/language-server-backend-launch.plugin.json", "shared/contracts/plugins/v1/fixtures/languages/language-server-launch-resolution.json", diff --git a/shared/platform-feature-matrix/features/plugin-marketplace.json b/shared/platform-feature-matrix/features/plugin-marketplace.json index 15282e8044..410901e357 100644 --- a/shared/platform-feature-matrix/features/plugin-marketplace.json +++ b/shared/platform-feature-matrix/features/plugin-marketplace.json @@ -88,7 +88,7 @@ "scripts/resources/reuse-worktree-resources.mjs", "scripts/resources/test-reuse-worktree-resources.mjs", "scripts/desktop/verify/verify-runtime-bundle-immutability.sh", - "rust/lithe-core/src/plugins/marketplace.rs", + "rust/crates/core/src/plugins/marketplace.rs", "Plugins/marketplace/index.json", "macos/Sources/Lithe/Views/App/ApplicationRestartAction.swift", "macos/Sources/Lithe/Platform/MacOS/MacApplicationRelauncher.swift", @@ -104,7 +104,7 @@ "windows/tauri/src-tauri/src/plugin_host/install_tests.rs", "windows/tauri/src/features/plugins/declarative-plugin-launch.ts", "windows/tauri/src/features/plugins/declarative-plugins-section.tsx", - "rust/lithe-core/src/plugins/marketplace.rs", + "rust/crates/core/src/plugins/marketplace.rs", "shared/contracts/plugins/v1/fixtures/marketplace" ], "implementationStatus": "partial", diff --git a/shared/platform-feature-matrix/features/plugin-output-link-matchers.json b/shared/platform-feature-matrix/features/plugin-output-link-matchers.json index d667f7e113..d00e5a792b 100644 --- a/shared/platform-feature-matrix/features/plugin-output-link-matchers.json +++ b/shared/platform-feature-matrix/features/plugin-output-link-matchers.json @@ -36,8 +36,8 @@ "evidence": [ "shared/contracts/plugins/v1/README.md", "shared/contracts/plugins/v1/fixtures/run/output-link-matchers.json", - "rust/lithe-core/src/plugins/output_links.rs", - "rust/lithe-core/src/tests/plugin_run_debug.rs", + "rust/crates/core/src/plugins/output_links.rs", + "rust/crates/core/src/tests/plugin_run_debug.rs", "macos/Sources/Lithe/Core/Ports/PluginRunDecoding.swift", "macos/Sources/Lithe/Core/Rust/RustPluginRunOperations.swift", "macos/Sources/Lithe/Application/Features/PluginOutputLinkService.swift", diff --git a/shared/platform-feature-matrix/features/plugin-project-generators.json b/shared/platform-feature-matrix/features/plugin-project-generators.json index dcecc6eaba..c976b73ef5 100644 --- a/shared/platform-feature-matrix/features/plugin-project-generators.json +++ b/shared/platform-feature-matrix/features/plugin-project-generators.json @@ -40,7 +40,7 @@ "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/project_generators/", + "rust/crates/core/src/project_generators/", "shared/contracts/plugins/v1/fixtures/project-generators/project-generator.plugin.json", "shared/contracts/plugins/v1/fixtures/project-generators/project-plans.json", "shared/contracts/plugins/v1/fixtures/project-generators/project-generator-tool-field.plugin.json", @@ -52,7 +52,7 @@ "macos/Sources/Lithe/Platform/MacOS/ProjectGeneration/MacProjectToolPins.swift", "macos/Tests/LitheTests/ProjectGenerationTests.swift", "macos/Tests/LitheTests/ProjectToolAdaptersTests.swift", - "rust/lithe-core/src/project_generators/archive.rs", + "rust/crates/core/src/project_generators/archive.rs", "macos/Sources/Lithe/Models/ProjectGeneration/ProjectGenerationModels.swift" ], "implementationStatus": "implemented", diff --git a/shared/platform-feature-matrix/features/plugin-registered-settings-pages.json b/shared/platform-feature-matrix/features/plugin-registered-settings-pages.json index 459fc9afc8..9baf4a6d0c 100644 --- a/shared/platform-feature-matrix/features/plugin-registered-settings-pages.json +++ b/shared/platform-feature-matrix/features/plugin-registered-settings-pages.json @@ -29,8 +29,8 @@ "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { "evidence": [ - "rust/lithe-core/src/plugins/settings.rs", - "rust/lithe-core/src/plugins/declarative.rs", + "rust/crates/core/src/plugins/settings.rs", + "rust/crates/core/src/plugins/declarative.rs", "macos/Sources/Lithe/Application/Features/PluginSettingsRegistry.swift", "macos/Sources/Lithe/Models/AppModel/AppModel+PluginSettings.swift", "macos/Sources/Lithe/Views/App/ContributedSettingsPageView.swift", diff --git a/shared/platform-feature-matrix/features/process-termination-policy.json b/shared/platform-feature-matrix/features/process-termination-policy.json index a2de6e3f26..7a1c921242 100644 --- a/shared/platform-feature-matrix/features/process-termination-policy.json +++ b/shared/platform-feature-matrix/features/process-termination-policy.json @@ -52,7 +52,7 @@ "macos/Sources/Lithe/Platform/MacOS/Agent/MacAgentProcessRegistry.swift", "macos/Sources/Lithe/Views/App/ProcessTerminationSettingsView.swift", "macos/Sources/Lithe/Views/Components/LitheInfoTip.swift", - "rust/lithe-core/src/process/lifecycle.rs", + "rust/crates/core/src/process/lifecycle.rs", "shared/fixtures/process-lifecycle/exit-plan-v1.json", "shared/fixtures/process-lifecycle/settle-v1.json", "macos/Tests/LitheTests/ProcessLifecycleFixtureTests.swift", @@ -73,8 +73,8 @@ }, "windows": { "evidence": [ - "rust/lithe-core/src/process/lifecycle.rs", - "rust/lithe-core/src/process/inventory.rs" + "rust/crates/core/src/process/lifecycle.rs", + "rust/crates/core/src/process/inventory.rs" ], "implementationStatus": "missing", "verificationStatus": "not-applicable" diff --git a/shared/platform-feature-matrix/features/remote-development-workspace.json b/shared/platform-feature-matrix/features/remote-development-workspace.json index cfe66c0781..7cb34b9fe3 100644 --- a/shared/platform-feature-matrix/features/remote-development-workspace.json +++ b/shared/platform-feature-matrix/features/remote-development-workspace.json @@ -32,10 +32,10 @@ "macos/Tests/LitheTests/RemoteShellDiscoveryTests.swift", "macos/Sources/Lithe/Platform/MacOS/Remote/MacRemoteTerminalTransport.swift", "macos/Sources/Lithe/Platform/MacOS/Remote/MacRemoteRuntimeLocator.swift", - "rust/lithe-core/src/remote/sessions_integration_tests.rs", - "rust/lithe-core/src/remote", - "rust/lithe-remote/src/client/launch.rs", - "rust/lithe-remote", + "rust/crates/core/src/remote/sessions_integration_tests.rs", + "rust/crates/core/src/remote", + "rust/crates/remote/src/client/launch.rs", + "rust/crates/remote", "shared/contracts/remote-workspace-protocol-v1.md", ".agents/notes/implemented/feature/2026-10-24-remote-ssh-connections.md", ".agents/notes/implemented/architecture/2026-10-24-remote-workspace-routing.md", @@ -50,12 +50,12 @@ "macos/Sources/Lithe/Platform/MacOS/Remote/MacRemotePluginPackageDeployer.swift", "macos/Sources/Lithe/Platform/MacOS/Remote/MacRemotePluginLaunchPreparer.swift", "macos/Tests/LitheTests/RemotePluginLaunchPreparerTests.swift", - "rust/lithe-remote/src/server/connection/tests.rs", - "rust/lithe-remote/src/server/run_directory.rs", - "rust/lithe-remote/tests/run_directories.rs", - "rust/lithe-remote/src/server/upload/tests.rs", + "rust/crates/remote/src/server/connection/tests.rs", + "rust/crates/remote/src/server/run_directory.rs", + "rust/crates/remote/tests/run_directories.rs", + "rust/crates/remote/src/server/upload/tests.rs", "macos/Sources/LitheExecutionModule/Services/BuildSystemService.swift", - "rust/lithe-core/src/execution/workspace_scan.rs" + "rust/crates/core/src/execution/workspace_scan.rs" ], "implementationStatus": "partial", "verificationStatus": "pending" diff --git a/shared/platform-feature-matrix/features/remote-workspace.json b/shared/platform-feature-matrix/features/remote-workspace.json index fd788f27b9..7e3f48d96d 100644 --- a/shared/platform-feature-matrix/features/remote-workspace.json +++ b/shared/platform-feature-matrix/features/remote-workspace.json @@ -34,13 +34,13 @@ "macos/Sources/Lithe/Platform/MacOS/Remote/MacRemotePluginPackageDeployer.swift", "macos/Sources/Lithe/Platform/MacOS/Remote/MacRemotePluginLaunchPreparer.swift", "macos/Tests/LitheTests/RemotePluginLaunchPreparerTests.swift", - "rust/lithe-remote/src/server/connection/tests.rs", - "rust/lithe-remote/src/server/run_directory.rs", - "rust/lithe-remote/tests/run_directories.rs", - "rust/lithe-remote/src/server/upload/tests.rs", - "rust/lithe-remote/src/server/daemon.rs", - "rust/lithe-remote/tests/persistence.rs", - "rust/lithe-core/src/remote/sessions_integration_tests.rs", + "rust/crates/remote/src/server/connection/tests.rs", + "rust/crates/remote/src/server/run_directory.rs", + "rust/crates/remote/tests/run_directories.rs", + "rust/crates/remote/src/server/upload/tests.rs", + "rust/crates/remote/src/server/daemon.rs", + "rust/crates/remote/tests/persistence.rs", + "rust/crates/core/src/remote/sessions_integration_tests.rs", "macos/Sources/Lithe/Core/Rust/RustWorkspaceOperations.swift" ], "implementationStatus": "partial", diff --git a/shared/platform-feature-matrix/features/run-discovery.json b/shared/platform-feature-matrix/features/run-discovery.json index ae4b7e141b..256d08c822 100644 --- a/shared/platform-feature-matrix/features/run-discovery.json +++ b/shared/platform-feature-matrix/features/run-discovery.json @@ -31,22 +31,22 @@ "shared/fixtures/run-configuration", "macos/Sources/LitheExecutionModule/Services/RunService.swift", "macos/Tests/LitheExecutionModuleTests/ExecutionModuleTests.swift", - "rust/lithe-core/src/execution/workspace_scan.rs", - "rust/lithe-core/src/execution/configuration.rs", - "rust/lithe-core/src/execution/generated_layer.rs", + "rust/crates/core/src/execution/workspace_scan.rs", + "rust/crates/core/src/execution/configuration.rs", + "rust/crates/core/src/execution/generated_layer.rs", "macos/Sources/Lithe/Platform/MacOS/RunConfiguration/MacRunConfigurationStore.swift", - "rust/lithe-core/src/tests/run_configuration.rs", - "rust/lithe-core/src/execution/provider_runs.rs", + "rust/crates/core/src/tests/run_configuration.rs", + "rust/crates/core/src/execution/provider_runs.rs", "macos/Sources/LitheExecutionModule/Services/BuildSystemService.swift", "macos/Tests/LitheExecutionModuleTests/BuildSystemServiceTests.swift", - "rust/lithe-core/src/execution/provider_run_options.rs", + "rust/crates/core/src/execution/provider_run_options.rs", "shared/fixtures/run-configuration/build-provider-options.json", "shared/fixtures/run-configuration/build-provider-stable-identities.json", "shared/fixtures/run-configuration/argument-text.json", "macos/Sources/LitheCoreContracts/Execution/RunConfigurationContracts.swift", "macos/Sources/Lithe/Services/Debug/DebugLaunchSourceResolver.swift", "macos/Tests/LitheTests/RunConfigurationIntegrationTests.swift", - "rust/lithe-core/src/execution/context_selection.rs", + "rust/crates/core/src/execution/context_selection.rs", "shared/fixtures/run-configuration/context-selection.json" ], "implementationStatus": "implemented", @@ -70,17 +70,17 @@ "shared/fixtures/run-configuration", "windows/tauri/src/features/run/services/java-context-entrypoint.ts", "windows/tauri/src/features/run/services/java-main-launch.test.ts", - "rust/lithe-core/src/lsp/interface/engine.rs", - "rust/lithe-core/src/execution/workspace_scan.rs", - "rust/lithe-core/src/execution/configuration.rs", - "rust/lithe-core/src/execution/generated_layer.rs", + "rust/crates/core/src/lsp/interface/engine.rs", + "rust/crates/core/src/execution/workspace_scan.rs", + "rust/crates/core/src/execution/configuration.rs", + "rust/crates/core/src/execution/generated_layer.rs", "windows/tauri/src/features/run/stores/run-project-load.test.ts", - "rust/lithe-core/src/tests/run_configuration.rs", + "rust/crates/core/src/tests/run_configuration.rs", "windows/tauri/src/features/run/stores/run-prelaunch.test.ts", "windows/tauri/src/features/host-api/ide-capabilities.test.ts", "windows/tauri/src/features/maven/services/maven-module-debug.test.ts", "windows/tauri/src/features/run/services/java-main-launch.ts", - "rust/lithe-core/src/execution/context_selection.rs", + "rust/crates/core/src/execution/context_selection.rs", "shared/fixtures/run-configuration/context-selection.json", "windows/tauri/src/features/run-actions/hooks/use-run-action-discovery.ts", "windows/tauri/src/features/run-actions/utils/run-action-discovery.ts", diff --git a/shared/platform-feature-matrix/features/run-java-test.json b/shared/platform-feature-matrix/features/run-java-test.json index 27987b48a6..e2e86518c6 100644 --- a/shared/platform-feature-matrix/features/run-java-test.json +++ b/shared/platform-feature-matrix/features/run-java-test.json @@ -43,7 +43,7 @@ "macos/Sources/Lithe/Views/Workbench/LitheConsoleStyle.swift", "macos/Tests/LitheTests/ConsolePresentationTests.swift", "macos/Sources/Lithe/Views/Components/LitheCommitDialogStyle.swift", - "rust/lithe-core/src/tests/build_systems.rs", + "rust/crates/core/src/tests/build_systems.rs", "shared/fixtures/maven/testcase-durations-v1.json", "macos/Sources/LitheExecutionModule/Services/BuildLanguageTests.swift", "shared/contracts/plugins/v1/fixtures/build-providers/build-provider-selectors.plugin.json", @@ -51,13 +51,13 @@ "shared/fixtures/run-configuration/provider-prepared-java.json", "shared/fixtures/build-provider/test-results-v1.json", "shared/contracts/plugins/v1/fixtures/build-providers/build-provider-preparation.plugin.json", - "rust/lithe-core/src/build/test_outcome.rs", + "rust/crates/core/src/build/test_outcome.rs", "macos/Sources/LitheCoreContracts/Execution/TestRunOutcomeContracts.swift", "macos/Tests/LitheExecutionModuleTests/LinkedCoreTestRunOutcome.swift", "shared/fixtures/build/test-run-outcome-v1.json", "macos/Sources/Lithe/Models/Run/ActiveTestTarget.swift", "macos/Tests/LitheTests/MacBuildProviderSessionsTests.swift", - "rust/lithe-core/src/build/test_outcome_merge.rs", + "rust/crates/core/src/build/test_outcome_merge.rs", "shared/fixtures/build/test-outcome-merge-v1.json" ], "implementationStatus": "implemented", @@ -69,11 +69,11 @@ "shared/fixtures/debug", "windows/tauri/src/features/run/components/run-pane.tsx", "windows/tauri/src/features/run/components/run-output-text.tsx", - "rust/lithe-core/src/build/test_outcome.rs", + "rust/crates/core/src/build/test_outcome.rs", "windows/tauri/src/features/run/api/test-run-outcome-api.ts", "windows/tauri/src/features/run/api/test-outcome-merge-api.ts", "shared/fixtures/build/test-run-outcome-v1.json", - "rust/lithe-core/src/build/test_outcome_merge.rs", + "rust/crates/core/src/build/test_outcome_merge.rs", "shared/fixtures/build/test-outcome-merge-v1.json" ], "implementationStatus": "implemented", diff --git a/shared/platform-feature-matrix/features/run-node-launch-path.json b/shared/platform-feature-matrix/features/run-node-launch-path.json index fb6442a4cc..43210d4eea 100644 --- a/shared/platform-feature-matrix/features/run-node-launch-path.json +++ b/shared/platform-feature-matrix/features/run-node-launch-path.json @@ -42,7 +42,7 @@ "windows": { "evidence": [ "windows/tauri/src-tauri/src/run.rs", - "rust/lithe-core/src/execution/environment.rs" + "rust/crates/core/src/execution/environment.rs" ], "implementationStatus": "implemented", "verificationStatus": "pending" diff --git a/shared/platform-feature-matrix/features/run-processes-end-with-ide.json b/shared/platform-feature-matrix/features/run-processes-end-with-ide.json index aaa8de773a..1116da670b 100644 --- a/shared/platform-feature-matrix/features/run-processes-end-with-ide.json +++ b/shared/platform-feature-matrix/features/run-processes-end-with-ide.json @@ -41,14 +41,14 @@ "macos/Sources/Lithe/Platform/MacOS/Process/MacProcessLifecycle.swift", "macos/Sources/Lithe/Platform/MacOS/Process/MacProcessInventoryReader.swift", "macos/Sources/Lithe/LitheApp.swift", - "rust/lithe-core/src/process/inventory.rs", + "rust/crates/core/src/process/inventory.rs", "shared/fixtures/process-lifecycle/inventory-v1.json", "macos/Tests/LitheExecutionModuleTests/ExecutionModuleTests.swift", "macos/Tests/LitheTests/MacProcessRunnerTests.swift", "macos/Tests/LitheTests/ProcessLifecycleFixtureTests.swift", "macos/Sources/Lithe/Application/Features/ProcessExitCoordinator.swift", "macos/Sources/Lithe/Application/Features/WorkspaceSessionCoordinator.swift", - "rust/lithe-core/src/process/lifecycle.rs", + "rust/crates/core/src/process/lifecycle.rs", "shared/fixtures/process-lifecycle/exit-plan-v1.json" ], "implementationStatus": "implemented", @@ -60,10 +60,10 @@ "windows/tauri/src-tauri/src/run.rs", "windows/tauri/src-tauri/src/debug.rs", "windows/tauri/src-tauri/src/owned_processes.rs", - "rust/lithe-git-host/src/lib.rs", - "rust/lithe-git-host/tests/process.rs", - "rust/lithe-core/src/lsp/interface/process.rs", - "rust/lithe-core/src/process/lifecycle.rs", + "rust/crates/git-host/src/lib.rs", + "rust/crates/git-host/tests/process.rs", + "rust/crates/core/src/lsp/interface/process.rs", + "rust/crates/core/src/process/lifecycle.rs", "windows/tauri/src/features/window/components/window-close-guard.tsx", "windows/tauri/src/features/window/services/run-services-exit.ts", "windows/tauri/src/features/window/services/run-services-exit.test.ts", diff --git a/shared/platform-feature-matrix/features/run-save-toolchain.json b/shared/platform-feature-matrix/features/run-save-toolchain.json index d26629975e..0466e0c384 100644 --- a/shared/platform-feature-matrix/features/run-save-toolchain.json +++ b/shared/platform-feature-matrix/features/run-save-toolchain.json @@ -34,11 +34,11 @@ "macos/Sources/Lithe/Application/Features/DocumentSaveBatch.swift", "shared/fixtures/documents/save-batch-v1.json", "macos/Tests/LitheExecutionModuleTests/ExecutionModuleTests.swift", - "rust/lithe-core/src/execution/configuration.rs", + "rust/crates/core/src/execution/configuration.rs", "macos/Sources/LitheExecutionModule/Services/RunService.swift", "macos/Sources/LitheLanguageIntelligenceModule/Services/LanguageToolingSessionManager.swift", "macos/Tests/LitheLanguageIntelligenceModuleTests/LanguageIntelligenceModuleTests.swift", - "rust/lithe-core/src/execution/environment.rs", + "rust/crates/core/src/execution/environment.rs", "shared/fixtures/execution/launch-environment-v1.json", "macos/Sources/Lithe/Views/Run/ProviderRunOptionsEditor.swift", "macos/Sources/LitheCoreContracts/Execution/ExecutionContracts.swift", @@ -52,12 +52,12 @@ "evidence": [ "windows/tauri/src/features/run", "windows/tauri/src/features/maven", - "rust/lithe-core/src/execution/configuration.rs", + "rust/crates/core/src/execution/configuration.rs", "windows/tauri/src/features/run/stores/run-prelaunch.test.ts", "windows/tauri/src-tauri/src/run.rs", "windows/tauri/src/platform/lsp-core-adapter.ts", "windows/tauri/src/platform/lsp-core-adapter.test.ts", - "rust/lithe-core/src/execution/environment.rs", + "rust/crates/core/src/execution/environment.rs", "shared/fixtures/execution/launch-environment-v1.json", "shared/fixtures/run-configuration/argument-text.json", "windows/tauri/src/features/run/services/resolve-run-project.test.ts" diff --git a/shared/platform-feature-matrix/features/search-global.json b/shared/platform-feature-matrix/features/search-global.json index 7aae6df047..e4c2765097 100644 --- a/shared/platform-feature-matrix/features/search-global.json +++ b/shared/platform-feature-matrix/features/search-global.json @@ -34,23 +34,23 @@ ".agents/notes/implemented/simplification/2026-09-30-macos-shared-dropdown-style.md", "macos/Sources/Lithe/Views/Components/LitheCenteredPopup.swift", "macos/Tests/LitheTests/SearchEverywhereBehaviorTests.swift", - "rust/lithe-core/src/project/name_matching.rs", + "rust/crates/core/src/project/name_matching.rs", "shared/fixtures/search/name-matching.json", "shared/fixtures/search/exclusions.json", - "rust/lithe-core/src/project/search_index.rs", + "rust/crates/core/src/project/search_index.rs", "macos/Sources/Lithe/Application/Features/DocumentFeatureModel.swift", "shared/fixtures/search/path-fallback.json", "macos/Sources/LitheSearchModule/Application/SearchFeatureModel.swift", "shared/fixtures/search/unicode-contiguous.json", "macos/Sources/Lithe/Views/Components/LitheSplitPaneView.swift", "macos/Tests/LitheTests/LitheSplitPaneCollapseTests.swift", - "rust/lithe-core/src/project/files.rs", + "rust/crates/core/src/project/files.rs", "macos/Sources/Lithe/Core/Rust/RustWorkspaceOperations.swift", "macos/Tests/LitheSearchModuleTests/SearchModuleTests.swift", - "rust/lithe-core/src/project/search_paging.rs", + "rust/crates/core/src/project/search_paging.rs", "macos/Sources/Lithe/Views/Components/LitheScrollLoadTrigger.swift", "macos/Sources/Lithe/Core/Rust/RustCoreBridge+ActionSearch.swift", - "rust/lithe-core/src/action_search/mod.rs", + "rust/crates/core/src/action_search/mod.rs", "shared/fixtures/search/actions-v1.json", "macos/Tests/LitheTests/WorkbenchContributionHostTests.swift" ], @@ -61,9 +61,9 @@ "evidence": [ "windows/tauri/src/features/global-search", "windows/tauri/src/features/command-palette", - "rust/lithe-core/src/project/search_index.rs", - "rust/lithe-core/src/project/files.rs", - "rust/lithe-core/src/project/search_paging.rs", + "rust/crates/core/src/project/search_index.rs", + "rust/crates/core/src/project/files.rs", + "rust/crates/core/src/project/search_paging.rs", "windows/tauri/src/features/file-search/lib/file-search-api.test.ts", "windows/tauri/src/features/global-search/services/provider-content-search.test.ts" ], diff --git a/shared/platform-feature-matrix/features/search-replace.json b/shared/platform-feature-matrix/features/search-replace.json index 1fc76e6e7c..fc3e844fc8 100644 --- a/shared/platform-feature-matrix/features/search-replace.json +++ b/shared/platform-feature-matrix/features/search-replace.json @@ -44,7 +44,7 @@ "windows": { "evidence": [ "windows/tauri/src/features/file-search", - "rust/lithe-core/src/project/files.rs", + "rust/crates/core/src/project/files.rs", "windows/tauri/src/features/global-search/utils/source-replace.ts", "windows/tauri/src/features/editor/stores/editor-app.store.test.ts" ], diff --git a/shared/platform-feature-matrix/features/terminal-interaction.json b/shared/platform-feature-matrix/features/terminal-interaction.json index c61a40fe26..77b37c4fec 100644 --- a/shared/platform-feature-matrix/features/terminal-interaction.json +++ b/shared/platform-feature-matrix/features/terminal-interaction.json @@ -67,7 +67,7 @@ ".agents/notes/implemented/simplification/2026-10-08-windows-terminal-direct-web-links.md", "windows/tauri/src/features/terminal/utils/terminal-keyboard.ts", "windows/tauri/src/features/terminal/utils/terminal-keyboard.test.ts", - "rust/lithe-core/src/terminal/link.rs", + "rust/crates/core/src/terminal/link.rs", "shared/fixtures/terminal/link-target-v1.json", "windows/tauri/src/features/terminal/utils/terminal-file-links.ts", "windows/tauri/src/features/terminal/utils/terminal-file-links.test.ts" diff --git a/shared/platform-feature-matrix/features/vcs-subversion-and-plugin-providers.json b/shared/platform-feature-matrix/features/vcs-subversion-and-plugin-providers.json index e631f48a67..817db1d2cc 100644 --- a/shared/platform-feature-matrix/features/vcs-subversion-and-plugin-providers.json +++ b/shared/platform-feature-matrix/features/vcs-subversion-and-plugin-providers.json @@ -40,9 +40,9 @@ "evidence": [ "shared/contracts/vcs-provider-v1.md", "shared/fixtures/vcs/model-v1.json", - "rust/lithe-core/src/vcs", - "rust/lithe-core/src/lsp/interface/vcs_provider.rs", - "rust/lithe-core/src/tests/vcs.rs", + "rust/crates/core/src/vcs", + "rust/crates/core/src/lsp/interface/vcs_provider.rs", + "rust/crates/core/src/tests/vcs.rs", "shared/contracts/plugins/v1/fixtures/vcs/vcs-provider.plugin.json", "Plugins/mac/README.md", "macos/Sources/LitheModuleAPI/Catalog/BuiltInModuleCatalog.swift", @@ -74,9 +74,9 @@ "evidence": [ "shared/contracts/vcs-provider-v1.md", "shared/fixtures/vcs/model-v1.json", - "rust/lithe-core/src/vcs", - "rust/lithe-core/src/lsp/interface/vcs_provider.rs", - "rust/lithe-core/src/tests/vcs.rs", + "rust/crates/core/src/vcs", + "rust/crates/core/src/lsp/interface/vcs_provider.rs", + "rust/crates/core/src/tests/vcs.rs", "shared/contracts/plugins/v1/fixtures/vcs/vcs-provider.plugin.json" ], "implementationStatus": "missing", diff --git a/shared/platform-feature-matrix/features/workbench-panes.json b/shared/platform-feature-matrix/features/workbench-panes.json index 2aa2d54d3c..0fbabe7f4b 100644 --- a/shared/platform-feature-matrix/features/workbench-panes.json +++ b/shared/platform-feature-matrix/features/workbench-panes.json @@ -58,7 +58,7 @@ ], "implementationStatus": "implemented", "verificationStatus": "pending", - "notes": "macOS 无已保存布局的工作区侧栏默认 360pt,上半区默认高度比例 0.72,使中文修订提交保持一行、底部工具窗初始更矮;主布局及停靠预览共用常量,已有布局和手动拖动尺寸优先,不提高最小宽高。LSP-16:编辑器分组的标签归属、选中项收敛、空组移除和移动后的状态由 Core 的 editor.workbenchState.reduce(rust/lithe-core-rules)提供,EditorTabOrderFeatureModel 只把 items、placements 和 groupSelections 转成规范状态并写回,EditorGroupLayout 只保留树结构;macOS 没有 MRU、固定和预览标签,这三项始终传空值,选中项离开分组时回落到第一个标签(selectionFallback first)。" + "notes": "macOS 无已保存布局的工作区侧栏默认 360pt,上半区默认高度比例 0.72,使中文修订提交保持一行、底部工具窗初始更矮;主布局及停靠预览共用常量,已有布局和手动拖动尺寸优先,不提高最小宽高。LSP-16:编辑器分组的标签归属、选中项收敛、空组移除和移动后的状态由 Core 的 editor.workbenchState.reduce(rust/crates/core-rules)提供,EditorTabOrderFeatureModel 只把 items、placements 和 groupSelections 转成规范状态并写回,EditorGroupLayout 只保留树结构;macOS 没有 MRU、固定和预览标签,这三项始终传空值,选中项离开分组时回落到第一个标签(selectionFallback first)。" }, "windows": { "evidence": [ diff --git a/shared/platform-feature-matrix/features/workspace-files.json b/shared/platform-feature-matrix/features/workspace-files.json index aafb067930..96ce85e3f6 100644 --- a/shared/platform-feature-matrix/features/workspace-files.json +++ b/shared/platform-feature-matrix/features/workspace-files.json @@ -44,12 +44,12 @@ "macos/Tests/LitheTests/ProjectTreeLayoutMetricsTests.swift", "macos/Tests/LitheTests/IDEAIconRasterizationTests.swift", "macos/Sources/LitheCoreContracts/Workspace/FileVisibilityRules.swift", - "rust/lithe-core/src/project/files.rs", - "rust/lithe-core/src/tests/project.rs", + "rust/crates/core/src/project/files.rs", + "rust/crates/core/src/tests/project.rs", ".agents/notes/implemented/feature/2026-10-29-skip-python-environments-in-workspace-scans.md", "macos/Tests/LitheTests/LitheCoreLogicTests.swift", - "rust/lithe-core/src/project/file_operations.rs", - "rust/lithe-core/src/project/directory_actions.rs", + "rust/crates/core/src/project/file_operations.rs", + "rust/crates/core/src/project/directory_actions.rs", "shared/fixtures/workspace/file-copy-names-v1.json", "shared/fixtures/workspace/directory-rules-v1.json" ], @@ -61,11 +61,11 @@ "windows/tauri/src/features/file-system", "windows/tauri/src/features/file-search/lib/file-search-api.ts", "windows/tauri/src/features/file-search/lib/file-search-api.test.ts", - "rust/lithe-core/src/project/files.rs", - "rust/lithe-core/src/tests/project.rs", + "rust/crates/core/src/project/files.rs", + "rust/crates/core/src/tests/project.rs", ".agents/notes/implemented/feature/2026-10-29-skip-python-environments-in-workspace-scans.md", - "rust/lithe-core/src/project/file_operations.rs", - "rust/lithe-core/src/project/directory_actions.rs", + "rust/crates/core/src/project/file_operations.rs", + "rust/crates/core/src/project/directory_actions.rs", "shared/fixtures/workspace/file-copy-names-v1.json", "shared/fixtures/workspace/directory-rules-v1.json", "windows/tauri/src/features/file-system/utils/copy-names.test.ts" diff --git a/shared/platform-feature-matrix/features/workspace-indexing-exclusions.json b/shared/platform-feature-matrix/features/workspace-indexing-exclusions.json index 8d0b075a1a..7d33827256 100644 --- a/shared/platform-feature-matrix/features/workspace-indexing-exclusions.json +++ b/shared/platform-feature-matrix/features/workspace-indexing-exclusions.json @@ -30,9 +30,9 @@ "evidence": [ "macos/Sources/LitheWorkspaceModule/Application/WorkspaceFeatureModel.swift", "macos/Sources/Lithe/Views/App/WorkspaceIndexingSettingsView.swift", - "rust/lithe-core/src/project/indexing.rs", + "rust/crates/core/src/project/indexing.rs", "shared/fixtures/workspace/indexing-policy-v1.json", - "rust/lithe-core/src/lsp/languages/indexing.rs", + "rust/crates/core/src/lsp/languages/indexing.rs", "macos/Tests/LitheTests/RemoteConnectionsTests.swift", "macos/Sources/Lithe/Views/Workspace/ProjectSidebarView.swift", "macos/Sources/Lithe/Views/App/GitExecutionSettingsView.swift", @@ -43,7 +43,7 @@ "macos/Tests/LitheTests/GitStatusObservationTests.swift", "shared/fixtures/workspace/directory-actions-v1.json", "macos/Sources/Lithe/Models/AppModel/AppModel+LanguageServerRuntime.swift", - "rust/lithe-core/src/project/directory_actions.rs", + "rust/crates/core/src/project/directory_actions.rs", "shared/fixtures/workspace/directory-rules-v1.json" ] }, @@ -53,9 +53,9 @@ "evidence": [ "windows/tauri/src/features/file-explorer/stores/workspace-indexing.ts", "windows/tauri/src/features/settings/components/workspace-indexing-settings.tsx", - "rust/lithe-core/src/project/indexing.rs", + "rust/crates/core/src/project/indexing.rs", "shared/fixtures/workspace/indexing-policy-v1.json", - "rust/lithe-core/src/lsp/languages/indexing.rs", + "rust/crates/core/src/lsp/languages/indexing.rs", "windows/tauri/src/features/file-explorer/hooks/use-file-explorer-context-menu.tsx", "windows/tauri/src/features/settings/components/git-execution-settings.tsx", "windows/tauri/src/features/settings/components/git-indexing-settings.test.tsx", @@ -77,7 +77,7 @@ "windows/tauri/crates/project/src/git_watcher.rs", "windows/tauri/src/features/git/runtime/git-metadata-watch-host.tsx", "windows/tauri/src/features/editor/lsp/mounted-lsp-documents.ts", - "rust/lithe-core/src/project/directory_actions.rs", + "rust/crates/core/src/project/directory_actions.rs", "shared/fixtures/workspace/directory-rules-v1.json" ] }, diff --git a/shared/platform-feature-matrix/features/workspace-open-switch.json b/shared/platform-feature-matrix/features/workspace-open-switch.json index 00d53b907d..09f06aa52f 100644 --- a/shared/platform-feature-matrix/features/workspace-open-switch.json +++ b/shared/platform-feature-matrix/features/workspace-open-switch.json @@ -39,7 +39,7 @@ "macos/Sources/Lithe/Views/Components/LitheActionButtonStyle.swift", "macos/Sources/Lithe/Views/Workspace/OpenProjectPanel.swift", "macos/Sources/Lithe/Models/AppModel/AppModel+LocalFolders.swift", - "rust/lithe-core/src/project/recent_projects.rs", + "rust/crates/core/src/project/recent_projects.rs", "shared/fixtures/workspace/recent-projects-v1.json", "macos/Tests/LitheTests/RecentProjectsStoreTests.swift" ], From 7623223868a70c9bbcb44d79bc2f6d497ca52570 Mon Sep 17 00:00:00 2001 From: Yao Jingxi <23722032@bjtu.edu.cn> Date: Sat, 14 Nov 2026 02:04:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore(desktop):=20=E8=B7=9F=E8=BF=9B=20Core?= =?UTF-8?q?=20#27=EF=BC=8C=E5=9B=BA=E5=AE=9A=E5=88=B0=200be1d34?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - build-desktop-core.sh 固定 Lithe-core-rust 0be1d34(#27:拆出 protocol、network、terminal、process、diff、github crate,keymap 与动作搜索并入 lithe-core-rules;命令、JSON、错误码和头文件不变) - errors.go 注释、功能矩阵和两篇 GitHub 笔记里的 Core 路径改到新 crate - core-rules 笔记补上 keymap.* 与 search.actions 规则、 unicode-normalization 依赖和 editor_essentials.go 调用点 --- .../2026-10-12-workbench-ui-contributions.md | 2 +- .../architecture/2026-11-05-core-rules-sync-crate.md | 10 +++++++--- .../2026-11-04-github-device-authorization-deadline.md | 2 +- .../2026-11-04-github-pull-request-checkout-safety.md | 2 +- desktop/internal/core/errors.go | 2 +- scripts/desktop/build-desktop-core.sh | 10 ++++++---- .../features/git-rebase-stash.json | 4 ++-- .../features/keymap-customization.json | 4 ++-- .../features/network-proxy-settings.json | 2 +- .../features/process-termination-policy.json | 6 +++--- .../features/run-processes-end-with-ide.json | 6 +++--- .../features/search-global.json | 2 +- .../features/terminal-interaction.json | 2 +- 13 files changed, 30 insertions(+), 24 deletions(-) diff --git a/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md b/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md index 29bebc5309..134d5b2164 100644 --- a/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md +++ b/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md @@ -62,7 +62,7 @@ Agent 的配置入口由同一个目录补齐,移动到任何已有停靠区 ## 验证 -- `WorkbenchContributionHostTests.chineseActionSearchFindsAndRestoresHiddenTerminal` 使用实际中英资源验证中文标题、中文说明和英文别名,执行后恢复终端入口,切换回英文后不再沿用旧语言;修复前中文查询确认为空。Core 的 `Lithe-core-rust/rust/fixtures/search/actions-v1.json` 验证排序、Unicode、插件原文和输入预算。 动作匹配实现位于 `rust/crates/core/src/action_search/mod.rs`,遵循 Core 根目录仅保留 `lib.rs` 的既有布局规则;模块路径和 `search.actions` 协议不变。 +- `WorkbenchContributionHostTests.chineseActionSearchFindsAndRestoresHiddenTerminal` 使用实际中英资源验证中文标题、中文说明和英文别名,执行后恢复终端入口,切换回英文后不再沿用旧语言;修复前中文查询确认为空。Core 的 `Lithe-core-rust/rust/fixtures/search/actions-v1.json` 验证排序、Unicode、插件原文和输入预算。 动作匹配实现位于 `rust/crates/core-rules/src/action_search.rs`,遵循 Core 根目录仅保留 `lib.rs` 的既有布局规则;模块路径和 `search.actions` 协议不变。 - `WorkbenchContributionHostTests.toolWindowsMenuRestoresHiddenTerminalAtItsSavedDockWithoutToggling` 覆盖隐藏入口恢复、原停靠组、重复 Show 不关闭、模块禁用及旧菜单动作;已安装声明式插件流程补充从同一菜单恢复。`ContextMenuCoverageTests.rightClickOnSubmenuKeepsThePopupAndShowRemainsKeyboardAccessible` 用原生右键事件验证父弹层保持可见,再用方向键和 Return 执行显示;模型回归确认菜单构造不激活模块或创建终端会话。实际产品还需在深浅主题检查左侧“…”、菜单打开/关闭、快捷键与终端已有会话。 diff --git a/.agents/notes/implemented/architecture/2026-11-05-core-rules-sync-crate.md b/.agents/notes/implemented/architecture/2026-11-05-core-rules-sync-crate.md index eb434d4206..931f290258 100644 --- a/.agents/notes/implemented/architecture/2026-11-05-core-rules-sync-crate.md +++ b/.agents/notes/implemented/architecture/2026-11-05-core-rules-sync-crate.md @@ -4,7 +4,7 @@ ## 先说结论 -Core 仓库里有一个单独的纯 Rust crate(Rust 的编译单元)`rust/crates/core-rules`。它只放少数小而确定、处在同步热路径上的规则,例如双击 Shift 手势:每次按键都要立刻出结果。 +Core 仓库里有一个单独的纯 Rust crate(Rust 的编译单元)`rust/crates/core-rules`。它只放小而确定、不做 I/O 的规则,例如双击 Shift 手势:每次按键都要立刻出结果。 `lithe-core` 依赖它,并把这些规则当作普通 Core 命令分发。桌面端和调用其他 Core 命令一样,通过 C ABI(C 语言调用接口)同步调用这些规则。 这个 crate 原来还会编译成 wasm(WebAssembly,浏览器里能运行的二进制格式),供 Windows 前端同步调用。Windows 前端已经删除,所以从 2026-11-13 起,这个 crate 不再产出 wasm,也不再提供自己的 JSON 请求入口。 @@ -27,7 +27,7 @@ macOS 通过 FFI 同步调用 Core,没有这个限制。结果是这几条规 ## 决策 -- **保留单独的 crate**:它只依赖 serde 和 serde_json,不访问文件系统、进程、线程和时钟,时间由调用方传入。规则都写成“状态 + 事件 + 时间戳 → 新状态 + 结果”的纯函数,状态由宿主保存。 +- **保留单独的 crate**:它只依赖 serde、serde_json 和 unicode-normalization(动作搜索做 NFC 规范化),不访问文件系统、进程、线程和时钟,时间由调用方传入。规则都写成“状态 + 事件 + 时间戳 → 新状态 + 结果”的纯函数,状态由宿主保存。 - 保留它的理由不再是 wasm,而是依赖边界由编译器保证:规则代码引用不到 `lithe-core` 的 I/O 和全局状态。 - 拆分 Core crate 时,它也正好属于最底层的基础层。 - **命令仍是 Core 命令**: @@ -41,6 +41,8 @@ macOS 通过 FFI 同步调用 Core,没有这个限制。结果是这几条规 - 布局树、拆分方向和比例不进 Core,宿主只按返回的 `removedGroupIds` 修剪自己的布局。 - `workspace.classifyVisibility` 和 `workspace.visibilityDefaults`:隐藏路径规则(WS-04)。内置默认列表和 glob 匹配只写在 `visibility.rs` 里,`lithe-core` 的 `project/files.rs` 直接复用这份代码。 - `workbench.chromeLayout.reduce`:工作台外框上可拖动按钮的位置,覆盖两侧工具条、标题栏末端和状态栏末端。 + - `keymap.parseContext`、`keymap.evaluateContext`、`keymap.analyzeConflicts`、`keymap.schemes.reduce`:快捷键上下文表达式的解析与求值、冲突分析、快捷键方案的合并。2026-11-13 随 Core #27 从 `lithe-core` 的 `keymap/` 移入,命令名和 JSON 不变。 + - `search.actions`:动作搜索的匹配与排序。2026-11-13 随 Core #27 从 `lithe-core` 的 `action_search/` 移入,命令名和 JSON 不变。 - **2026-11-13 删除 wasm 构建**: - Core 里删除 `wasm.rs`、`cdylib`、`execute_json`、`is_rule_command` 和 `RuleError` 的序列化,fixture 测试改为直接调用 `execute`。 - `lithe-core` 自己的 `cdylib` 同时删除,它也没有使用方。 @@ -48,7 +50,7 @@ macOS 通过 FFI 同步调用 Core,没有这个限制。结果是这几条规 ## 边界 -这个 crate 只放纯计算、体量小、处在同步热路径上的规则。涉及 I/O、进程、文件、网络、耗时长或数据量大的逻辑,放在 `lithe-core`。 +这个 crate 只放纯计算、体量小的规则。涉及 I/O、进程、文件、网络、耗时长或数据量大的逻辑,放在 `lithe-core` 或对应的基础层 crate。 判断方法:如果规则要读文件、调用外部程序,或者要用 `lithe-core` 的其他模块,就不要放进这个 crate。 @@ -76,6 +78,7 @@ macOS 通过 FFI 同步调用 Core,没有这个限制。结果是这几条规 - Core 仓库:`cargo test -p lithe-core-rules` 直接调用 `execute`,`cargo test -p lithe-core --lib protocol` 经过 JSON 信封,两者跑同一份 fixture。 - Core 仓库:`git grep -n -i wasm -- rust/crates/core-rules` 没有结果。 +- Core 仓库:`cargo tree --manifest-path rust/Cargo.toml -p lithe-core-rules --edges normal --depth 1` 只列出 serde、serde_json 和 unicode-normalization。 - 桌面端:`scripts/desktop/desktop-go.sh test ./internal/core/...` 通过真实的 Core 调用 `workbench.chromeLayout.reduce` 等规则命令。 - 本仓库:`node scripts/resources/test-reuse-worktree-resources.mjs` 通过,资源登记里没有 `core-rules-wasm`。 @@ -86,3 +89,4 @@ macOS 通过 FFI 同步调用 Core,没有这个限制。结果是这几条规 - `desktop/internal/core/keymap_gesture.go` - `desktop/internal/core/workbench.go` - `desktop/internal/core/chrome.go` +- `desktop/internal/core/editor_essentials.go`(`keymap.schemes.reduce`) diff --git a/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md b/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md index e3b2a4f313..846d099b79 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md +++ b/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md @@ -30,4 +30,4 @@ GitHub 设备授权的下一步、退避间隔和过期判定由 Core 计算, ## 适用范围 -`rust/crates/core/src/github/mod.rs`、`macos/Sources/Lithe/Services/GitHub/GitHubService.swift` 和未来接入设备授权的 Windows 适配器。 +`rust/crates/github/src/lib.rs`、`macos/Sources/Lithe/Services/GitHub/GitHubService.swift` 和未来接入设备授权的 Windows 适配器。 diff --git a/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md b/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md index a4c380bc18..c665b5e250 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md +++ b/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md @@ -30,4 +30,4 @@ Core 生成安全的本地名称并检查同名、父级及子级引用;预览 ## 适用范围 -`rust/crates/core/src/git/github_checkout.rs`、`rust/crates/core/src/github/mod.rs`、`macos/Sources/Lithe/Platform/MacOS/GitHub/MacGitHubGitOperations.swift` 和 GitHub 拉取请求界面。Windows GitHub 产品入口尚未启用;启用时也应使用同一计划和安全执行入口。 +`rust/crates/core/src/git/github_checkout.rs`、`rust/crates/github/src/lib.rs`、`macos/Sources/Lithe/Platform/MacOS/GitHub/MacGitHubGitOperations.swift` 和 GitHub 拉取请求界面。Windows GitHub 产品入口尚未启用;启用时也应使用同一计划和安全执行入口。 diff --git a/desktop/internal/core/errors.go b/desktop/internal/core/errors.go index bc2f776980..84930c874b 100644 --- a/desktop/internal/core/errors.go +++ b/desktop/internal/core/errors.go @@ -6,7 +6,7 @@ import ( ) // ErrorCode is the kernel's stable failure category. The values are the snake_case names of -// the Rust ErrorCode enum in rust/crates/core/src/protocol/error.rs of Lithe-IDEA/Lithe-core-rust; +// the Rust ErrorCode enum in rust/crates/protocol/src/error.rs of Lithe-IDEA/Lithe-core-rust; // a code this package does not know (from a newer kernel) is still delivered as is. type ErrorCode string diff --git a/scripts/desktop/build-desktop-core.sh b/scripts/desktop/build-desktop-core.sh index f658e47b05..270dc246d4 100755 --- a/scripts/desktop/build-desktop-core.sh +++ b/scripts/desktop/build-desktop-core.sh @@ -28,9 +28,11 @@ native_path() { } PINNED_CORE_REPOSITORY="https://github.com/Lithe-IDEA/Lithe-core-rust.git" -# Lithe-core-rust #26 (community.discourse.* commands and the wasm build removed, every crate moved -# to rust/crates//, the C header now at -# rust/crates/core/include/lithe_core.h), squash-merged into main, on top of #25 (the ai.* +# Lithe-core-rust #27 (protocol, network, terminal, process, diff and github split into their own +# crates, keymap and action search moved into lithe-core-rules; command names, JSON, error codes +# and the C header unchanged), squash-merged into main, on top of #26 (community.discourse.* +# commands and the wasm build removed, every crate moved to rust/crates//, the C header now at rust/crates/core/include/lithe_core.h), on top of #25 (the ai.* # commands moved into the lithe-ai crate; command names, JSON and error codes unchanged), #24 # (rust/contracts and rust/fixtures are the only copy of the application contracts and fixtures, # which desktop tests read through LITHE_CORE_FIXTURE_DIR) and @@ -44,7 +46,7 @@ PINNED_CORE_REPOSITORY="https://github.com/Lithe-IDEA/Lithe-core-rust.git" # the contract, plugin guides, reference and SDKs live only in shared/plugins; on top of #16 (reported Git queries folded in the console), # #15 (git.write cherryPick, revert and reset fields), #14 (word-level changed ranges of diff # rows), #13, #8, #7, #6 and #4. -PINNED_CORE_REVISION="439f42fd152dc531396d7be9cdf393b4d86f0940" +PINNED_CORE_REVISION="0be1d34f8926fc284a23874a4f6a57a14e339de8" PROFILE="debug" while [[ $# -gt 0 ]]; do case "$1" in diff --git a/shared/platform-feature-matrix/features/git-rebase-stash.json b/shared/platform-feature-matrix/features/git-rebase-stash.json index 19f40f8755..8a6fde9eb4 100644 --- a/shared/platform-feature-matrix/features/git-rebase-stash.json +++ b/shared/platform-feature-matrix/features/git-rebase-stash.json @@ -53,7 +53,7 @@ "macos/Sources/Lithe/Views/Git", "macos/Sources/LitheGitModule/Models/GitSavedChangesSnapshot.swift", "rust/crates/core/src/git/rebase_session.rs", - "rust/crates/core/src/protocol/cancellation.rs", + "rust/crates/protocol/src/cancellation.rs", "rust/crates/core/src/tests/git_history_rewrite.rs", "rust/crates/core/src/git/shelf.rs", "shared/fixtures/git/shelf-v1.json" @@ -65,7 +65,7 @@ "evidence": [ "windows/tauri/src/features/git", "rust/crates/core/src/git/rebase_session.rs", - "rust/crates/core/src/protocol/cancellation.rs", + "rust/crates/protocol/src/cancellation.rs", "rust/crates/core/src/tests/git_history_rewrite.rs", "windows/tauri/src/features/git/components/stash/git-saved-changes.tsx", "windows/tauri/src/features/git/components/stash/git-saved-changes.test.tsx", diff --git a/shared/platform-feature-matrix/features/keymap-customization.json b/shared/platform-feature-matrix/features/keymap-customization.json index 1f7177fbc9..d57973dd41 100644 --- a/shared/platform-feature-matrix/features/keymap-customization.json +++ b/shared/platform-feature-matrix/features/keymap-customization.json @@ -58,10 +58,10 @@ "windows/tauri/src/features/settings/components/settings-panels.tsx", "windows/tauri/src/features/settings/components/tabs/keyboard-settings.tsx", "windows/tauri/src/features/settings/components/keyboard-settings-routing.test.tsx", - "rust/crates/core/src/keymap/mod.rs", + "rust/crates/core-rules/src/keymap/context.rs", "shared/fixtures/keymap/context-v1.json", "windows/tauri/src/features/keymaps/utils/context.native.integration.test.ts", - "rust/crates/core/src/keymap/bindings.rs", + "rust/crates/core-rules/src/keymap/bindings.rs", "shared/fixtures/keymap/binding-conflicts-v1.json", "windows/tauri/src/features/keymaps/utils/binding-conflicts.ts", "windows/tauri/src/features/keymaps/utils/save-keybinding.ts", diff --git a/shared/platform-feature-matrix/features/network-proxy-settings.json b/shared/platform-feature-matrix/features/network-proxy-settings.json index 851ccb890c..703864bd0b 100644 --- a/shared/platform-feature-matrix/features/network-proxy-settings.json +++ b/shared/platform-feature-matrix/features/network-proxy-settings.json @@ -54,7 +54,7 @@ "macos/Tests/LitheTests/NetworkProxySettingsTests.swift", "macos/Tests/LitheTests/MacNetworkSessionProviderTests.swift", "macos/Tests/LitheTests/MacNetworkProxyTesterTests.swift", - "rust/crates/core/src/network/tests.rs" + "rust/crates/network/src/tests.rs" ] }, "windows": { diff --git a/shared/platform-feature-matrix/features/process-termination-policy.json b/shared/platform-feature-matrix/features/process-termination-policy.json index 7a1c921242..0044a44058 100644 --- a/shared/platform-feature-matrix/features/process-termination-policy.json +++ b/shared/platform-feature-matrix/features/process-termination-policy.json @@ -52,7 +52,7 @@ "macos/Sources/Lithe/Platform/MacOS/Agent/MacAgentProcessRegistry.swift", "macos/Sources/Lithe/Views/App/ProcessTerminationSettingsView.swift", "macos/Sources/Lithe/Views/Components/LitheInfoTip.swift", - "rust/crates/core/src/process/lifecycle.rs", + "rust/crates/process/src/lifecycle.rs", "shared/fixtures/process-lifecycle/exit-plan-v1.json", "shared/fixtures/process-lifecycle/settle-v1.json", "macos/Tests/LitheTests/ProcessLifecycleFixtureTests.swift", @@ -73,8 +73,8 @@ }, "windows": { "evidence": [ - "rust/crates/core/src/process/lifecycle.rs", - "rust/crates/core/src/process/inventory.rs" + "rust/crates/process/src/lifecycle.rs", + "rust/crates/process/src/inventory.rs" ], "implementationStatus": "missing", "verificationStatus": "not-applicable" diff --git a/shared/platform-feature-matrix/features/run-processes-end-with-ide.json b/shared/platform-feature-matrix/features/run-processes-end-with-ide.json index 1116da670b..3787c22be6 100644 --- a/shared/platform-feature-matrix/features/run-processes-end-with-ide.json +++ b/shared/platform-feature-matrix/features/run-processes-end-with-ide.json @@ -41,14 +41,14 @@ "macos/Sources/Lithe/Platform/MacOS/Process/MacProcessLifecycle.swift", "macos/Sources/Lithe/Platform/MacOS/Process/MacProcessInventoryReader.swift", "macos/Sources/Lithe/LitheApp.swift", - "rust/crates/core/src/process/inventory.rs", + "rust/crates/process/src/inventory.rs", "shared/fixtures/process-lifecycle/inventory-v1.json", "macos/Tests/LitheExecutionModuleTests/ExecutionModuleTests.swift", "macos/Tests/LitheTests/MacProcessRunnerTests.swift", "macos/Tests/LitheTests/ProcessLifecycleFixtureTests.swift", "macos/Sources/Lithe/Application/Features/ProcessExitCoordinator.swift", "macos/Sources/Lithe/Application/Features/WorkspaceSessionCoordinator.swift", - "rust/crates/core/src/process/lifecycle.rs", + "rust/crates/process/src/lifecycle.rs", "shared/fixtures/process-lifecycle/exit-plan-v1.json" ], "implementationStatus": "implemented", @@ -63,7 +63,7 @@ "rust/crates/git-host/src/lib.rs", "rust/crates/git-host/tests/process.rs", "rust/crates/core/src/lsp/interface/process.rs", - "rust/crates/core/src/process/lifecycle.rs", + "rust/crates/process/src/lifecycle.rs", "windows/tauri/src/features/window/components/window-close-guard.tsx", "windows/tauri/src/features/window/services/run-services-exit.ts", "windows/tauri/src/features/window/services/run-services-exit.test.ts", diff --git a/shared/platform-feature-matrix/features/search-global.json b/shared/platform-feature-matrix/features/search-global.json index e4c2765097..c815eed695 100644 --- a/shared/platform-feature-matrix/features/search-global.json +++ b/shared/platform-feature-matrix/features/search-global.json @@ -50,7 +50,7 @@ "rust/crates/core/src/project/search_paging.rs", "macos/Sources/Lithe/Views/Components/LitheScrollLoadTrigger.swift", "macos/Sources/Lithe/Core/Rust/RustCoreBridge+ActionSearch.swift", - "rust/crates/core/src/action_search/mod.rs", + "rust/crates/core-rules/src/action_search.rs", "shared/fixtures/search/actions-v1.json", "macos/Tests/LitheTests/WorkbenchContributionHostTests.swift" ], diff --git a/shared/platform-feature-matrix/features/terminal-interaction.json b/shared/platform-feature-matrix/features/terminal-interaction.json index 77b37c4fec..8669152ff1 100644 --- a/shared/platform-feature-matrix/features/terminal-interaction.json +++ b/shared/platform-feature-matrix/features/terminal-interaction.json @@ -67,7 +67,7 @@ ".agents/notes/implemented/simplification/2026-10-08-windows-terminal-direct-web-links.md", "windows/tauri/src/features/terminal/utils/terminal-keyboard.ts", "windows/tauri/src/features/terminal/utils/terminal-keyboard.test.ts", - "rust/crates/core/src/terminal/link.rs", + "rust/crates/terminal/src/link.rs", "shared/fixtures/terminal/link-target-v1.json", "windows/tauri/src/features/terminal/utils/terminal-file-links.ts", "windows/tauri/src/features/terminal/utils/terminal-file-links.test.ts"