Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
4f43fe4
feat(windows): unify plugin parity delivery and fixture coverage
Mucheen Oct 25, 2026
bb0e29a
fix(windows): bind plugin approval and recover install transactions
Mucheen Oct 25, 2026
672a699
feat(windows): integrate plugin sources details and build foundations
Mucheen Oct 25, 2026
5ec3ff4
feat(windows): integrate plugin marketplace and build model workflows
Mucheen Oct 25, 2026
fdb0540
chore: sync preview localization updates
Mucheen Oct 25, 2026
f60f62a
Merge commit '80101d861ffcc0c311ba890ff947875aa4d04f01' into codex/wi…
Mucheen Oct 25, 2026
38171fb
feat(windows): extend plugin build execution and model approvals
Mucheen Oct 26, 2026
3a76a0f
feat(windows): wire plugin build actions and refresh LSP attachments
Mucheen Oct 26, 2026
bfe2fcc
feat(windows): add plugin dependencies, Java imports and web build ac…
Mucheen Oct 26, 2026
3639578
feat(windows): add provider sessions and reviewed plugin execution
Mucheen Oct 26, 2026
2e66c8c
feat(windows): connect plugin providers and workspace workflows
Mucheen Oct 26, 2026
268fea2
feat(windows): add archive generators, settings reload and VCS status
Mucheen Oct 27, 2026
bafae6f
feat(windows): extend plugin actions, generator forms and VCS roots
Mucheen Oct 27, 2026
64c5865
feat(windows): connect plugin functions, native panels and VCS history
Mucheen Oct 27, 2026
0db6a86
Merge remote-tracking branch 'origin/preview' into codex/windows-plug…
Mucheen Oct 27, 2026
2d6c727
feat(windows): integrate scoped plugin reload and native VCS actions
Mucheen Oct 27, 2026
e700c56
Merge latest preview into Windows plugin parity integration
Mucheen Oct 27, 2026
7ee2f1e
feat(windows): 补齐插件停靠与 VCS 解决清理工作流
Mucheen Oct 27, 2026
90214f2
feat(windows): guard VCS file actions and strengthen plugin acceptance
Mucheen Oct 27, 2026
01bef2c
feat(windows): honor native plugin icons and pinnable info tips
Mucheen Oct 27, 2026
33a9ccf
Merge preview into Windows plugin parity integration
Mucheen Oct 28, 2026
ae89d43
feat(windows): add search clearing and verify plugin settings workflows
Mucheen Oct 28, 2026
272f2e3
fix(windows): harden plugin acceptance diagnostics and native controls
Mucheen Oct 28, 2026
f84ddef
fix(windows): preserve native tree keyboard menus and verify web fall…
Mucheen Oct 28, 2026
6e96c64
fix(plugins): stack native actions and add bounded text acceptance
Mucheen Oct 28, 2026
a22945c
test(windows): maintain bounded native plugin browser regression
Mucheen Oct 28, 2026
839949c
test(windows): verify native tree menus and harden acceptance prepara…
Mucheen Oct 28, 2026
8742ef1
fix(windows): select native JDTLS tar and verify plugin form grids
Mucheen Oct 28, 2026
8a05359
test(windows): verify native plugin control input workflows
Mucheen Oct 28, 2026
ae8a365
test(windows): cover native plugin workbench workflows
Mucheen Oct 28, 2026
2193e60
Fix Windows frozen dependency installation sources and proxy lifecycle
Mucheen Oct 28, 2026
732a4ad
fix(windows): preserve installer identity and reject invalid proxy ro…
Mucheen Oct 28, 2026
71229ce
Merge preview into Windows plugin parity R26 baseline
Mucheen Oct 28, 2026
04f4118
test(windows): verify installed plugin bytes across native lifecycle
Mucheen Oct 28, 2026
b5dd6ed
Fix plugin build-input identity and empty-root detection
Mucheen Oct 29, 2026
acb36e0
feat(windows): dock declarative plugin tools in the workbench
Mucheen Oct 29, 2026
0b03109
fix(windows): align docked web clients and retain shutdown cleanup
Mucheen Oct 29, 2026
c933fbe
fix(windows): show docked webviews above the workbench
Mucheen Oct 30, 2026
a9b864d
merge: integrate preview host responsiveness and settings transactions
Mucheen Oct 30, 2026
09ca988
test(windows): document bounded native installer watchdogs
Mucheen Oct 30, 2026
a7f36d0
merge: integrate preview with Windows plugin parity baseline
Mucheen Oct 30, 2026
cffc4be
fix(windows): preserve plugin drafts and validate generator workflows
Mucheen Oct 30, 2026
23dbcf4
merge: preserve plugin workflows with preview LSP and host APIs
Mucheen Oct 30, 2026
c7e3f72
feat(windows): admit consent-bound project generators
Mucheen Oct 30, 2026
4b9f091
merge: preserve plugin workflows with preview performance and Java up…
Mucheen Oct 31, 2026
7e327ea
fix(test): open the compact menu before generator workflows
Mucheen Oct 31, 2026
9ceb197
test(windows): bind generator acceptance to the opened workspace
Mucheen Oct 31, 2026
5f2371b
test(core): bound push fixtures and budget measured Windows cases
Mucheen Oct 31, 2026
31b8635
test(core): bound multi-call Git inspection fixtures
Mucheen Oct 31, 2026
326b3d3
fix(windows): support fieldless generators and isolate acceptance output
Mucheen Oct 31, 2026
ddd5fb7
merge: preserve Windows plugin workflows with preview editor APIs
Mucheen Oct 31, 2026
7bf927e
fix(ci): classify independent editor plugin fixtures
Mucheen Oct 31, 2026
29c46ab
test(windows): add generated Java workflow acceptance driver
Mucheen Oct 31, 2026
aaa934e
Fix Windows generator workspace handoff and real JDK acceptance
Mucheen Oct 31, 2026
7130d94
Fix acceptance capability parsing for test-only host override
Mucheen Oct 31, 2026
81ed9ef
Add gated Windows Java workflow acceptance entry points
Mucheen Oct 31, 2026
d11614a
Add gated Windows Java package candidate and publisher trust
Mucheen Oct 31, 2026
4518758
Fix native folder picker input in Windows acceptance
Mucheen Oct 31, 2026
d010689
Fix native picker confirmation through its actual button
Mucheen Oct 31, 2026
1f7ba56
Compare the selected JDK home in its native field
Mucheen Oct 31, 2026
6476208
Merge verified Windows plugin baseline for R33 tasks
Mucheen Oct 31, 2026
0d18ab3
fix(plugins): validate frozen Windows Java signing inputs
Mucheen Oct 31, 2026
65c7d89
Preserve Windows acceptance process identity failure diagnostics
Mucheen Nov 1, 2026
2f10056
Add variant-bound Maven and Gradle workflow preflight
Mucheen Nov 1, 2026
8313f08
Wire Java signing and variant evidence into Windows validation
Mucheen Nov 1, 2026
8ce4e2c
fix(windows): retain providers across native plugin workflows
Mucheen Nov 1, 2026
9c22adc
Fix Windows plugin scope checks during concurrent reads
Mucheen Nov 1, 2026
f55f388
fix(plugins): integrate Windows workflow handoffs and close review re…
Mucheen Nov 1, 2026
a8a31fd
merge: integrate plugin migration with current preview for R37
Mucheen Nov 1, 2026
171d363
Fix Java build runtime paths and terminal acceptance
Mucheen Nov 1, 2026
74d6da9
test(windows): isolate joint suites and preserve validation failures
Mucheen Nov 1, 2026
a52e4ed
fix(plugins): validate Windows Java distribution runtime identity
Mucheen Nov 1, 2026
3a77f16
Reuse authorized Provider sessions for native plugin workflows
Mucheen Nov 2, 2026
384c5cd
merge: preserve indexing and plugin ownership in current preview
Mucheen Nov 2, 2026
8f5d59c
Merge commit '171d363d4e331d48121239f8ecc3f766255ac517' into codex/pl…
Mucheen Nov 2, 2026
15c2698
merge: integrate native Provider sessions and settings retry
Mucheen Nov 2, 2026
8366222
Merge commit 'a52e4ed0272ba85a6953d0cb5becb87f771438e7' into codex/pl…
Mucheen Nov 2, 2026
83e1d4e
fix(lsp): retain startup cleanup owners across indexing cancellation
Mucheen Nov 2, 2026
56faf1b
fix(plugins): explain restart-bound Provider model reload recovery
Mucheen Nov 2, 2026
707e167
Complete controlled Windows Java workflow packages and acceptance
Mucheen Nov 2, 2026
725b2e0
Fix integration fixture ownership and Windows acceptance target staging
Mucheen Nov 2, 2026
23b2c2c
Merge commit '725b2e07113d5008ecd6b1562c18dee7c6648b1b' into codex/pl…
Mucheen Nov 2, 2026
f332ecb
fix(plugins): validate Java build packages and isolate resource staging
Mucheen Nov 2, 2026
2b81e72
fix(windows): bound runtime-sized plugin package installation
Mucheen Nov 2, 2026
094d4bc
Merge existing plugin migration into latest preview for R42 fixes
Mucheen Nov 2, 2026
5870282
fix(windows): stabilize plugin discovery and lifecycle acceptance
Mucheen Nov 4, 2026
aa36f84
test(windows): verify the restored project JDK through Settings
Mucheen Nov 5, 2026
c09ac11
fix(windows): preserve plugin web window actions across settings
Mucheen Nov 5, 2026
76c7aee
fix(windows): retain live plugin page ownership when focusing
Mucheen Nov 6, 2026
8778a91
Merge preview into Windows plugin work
1lck Nov 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ macOS 使用独立进程组;Windows 在恢复挂起进程前把它加入作业
完整行解码后才脱敏;过长行整行省略并标记,解析所用原始输出超限则显式失败,
不能把截断内容继续当作完整 Git 结果解析。

Windows 恢复线程时使用系统提供的进程快照接口(Process Snapshotting)查询当前子进程,
不再为每条 Git 或工具链探测命令创建全机线程清单。R42 本机探针中,全机线程快照约
262~265 毫秒;只捕获当前挂起子进程的线程并读取首项约 0.17~0.41 毫秒。这是接口成本
测量,不代表完整 Git 操作耗时。仍先以 `CREATE_SUSPENDED` 启动,再纳入关闭即终止的
Job Object,最后恢复执行;不采用“先执行再归属”或扩大请求期限来掩盖固定开销。
快照在当前宿主进程中创建,释放时传 `GetCurrentProcess()`;快照、游标和线程句柄各自
只有一个所有者,PSS 的错误直接采用 API 返回值。取消、管道排空和子孙清理仍由原适配器负责。
验证使用 `lithe-git-host/tests/process.rs` 的真实受控进程、取消及进程树回归;Core 与产品
工作流另行复验,不能用接口探针代替。接口本身不增加下载、缓存或发行目录写入。

### macOS 文件操作先发布本仓库状态,再恢复监听

GitService 的磁盘和命令工作由后台任务执行,界面状态由主线程模型发布。操作期间,工作区暂缓处理
Expand Down Expand Up @@ -303,6 +313,19 @@ JDT 通道曾触发其 15 秒测试期限,同一提交在 SharedRust 通道用
所有测试的时限来隐藏这类问题。计时工具用可控时钟验证普通、集成和总截止
时间,并验证 HTML 与 JUnit 不会把合法的集成耗时误判为失败。

Windows 智能切换分支的测试请求需要依次校验引用、保存与恢复 stash(Git 的临时改动
存储);五秒夹具期限实测在这些串行调用中耗尽。只为 `autoStash` 的 checkout 请求
给十秒,其他请求仍给五秒。历史重写的已审查 apply 请求只在 Windows 给二十秒,
preview 仍给十秒;生产期限不变。不采用提高所有 Git 请求时限的方案,因为那会掩盖
普通查询和取消路径的退化。

完整集成案例的预算按实测原始测试名覆盖:真实 Git 搜索资格案例用时 28.6 秒、标签
案例用时 19.2 秒,分别给四十五秒和三十秒;连续 squash、完整消息审查/应用、四个
rebase 编辑/恢复案例和独立失败推送重试流程采用四十五秒。外部 abort 后恢复并创建
新审查计划用时 45.6 秒,给六十秒。SharedRust 与真实 JDT 入口使用相同覆盖值,
不扩大整个模块或套件期限。必须保留原失败报告,并在新预算内完成所有断言及进程树
清理后才计为通过;仅延后 watchdog(测试进程监督期限)不能证明功能正确。

checkout/clone 完整流程用例 `git_write_executes_checkout_preflight_clone_and_validation`
在 Windows CI 39935852248 中全部断言通过,Rust 内部计时 15.22 秒、测试进程计时
18.529 秒,超过默认十五秒后触发清缓存重编,继而耗尽原套件期限。该用例创建分叉
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ LSP 控制中心和语言工具发现沿用现有 Rust Core LSP 会话。组合

macOS 使用声明式插件包和 publisher Ed25519 包签名;Windows 使用自己的 Tauri 插件包和平台签名、缓存适配器,接入共享契约 `shared/contracts/plugins/v1/` 时复用同一份声明语义。Windows 不得因为跨平台而把 macOS 的目录或构建脚本复制到 Windows。两端都必须满足:插件自有资源、构建时校验、运行时只读安装目录、禁用和卸载可清理自有资源。

Windows Java 候选由 `Plugins/win/Official/JavaSupport/` 与 `scripts/plugins/assemble-windows-java-support.py` 独立维护,离线校验固定下载并选择 Windows JDK、PE 架构和 JDT configuration。候选输出与输入回执走不可复用的 `official-plugin-packages` 路由,只有既有哈希校验路由覆盖的 JDT/JDK 下载缓存可以复用。Windows 文件签名不封装相邻资源,当前未签名 bundled Java 仍拒绝,生产 `packageTrust` 保持关闭;具体门槛见 [Java 来源与独立发布笔记](2026-10-25-java-plugin-distribution-foundation.md)。

## 考虑过的备选方案

1. 把所有语言服务器随主程序打包:启动简单,但增加主程序体积和每个用户的维护成本,也无法实现按需安装。
Expand All @@ -79,20 +81,23 @@ macOS 使用声明式插件包和 publisher Ed25519 包签名;Windows 使用

用户只为安装的语言承担下载和索引成本,插件包可以独立发布、验证、重装和卸载。构建过程需要访问固定的上游归档,发布环境必须准备对应架构和签名身份;Node.js 等外部运行时仍由平台能力检查,不由插件偷偷写入安装目录。

插件包、解压结果、语言服务器下载缓存和运行时语言工具没有可靠的跨工作树身份标记,继续在 `scripts/resources/worktree-resources.json` 中作为隔离资源处理,不能通过工作树复用脚本复制。
插件包、解压结果和运行时语言工具没有可靠的跨工作树身份标记,继续在 `scripts/resources/worktree-resources.json` 中作为隔离资源处理。只有注册表明确列出、按固定版本/平台/架构及来源哈希独立校验的下载缓存允许复用,不能用下载哈希替代完整包签名或运行时状态归属。

## 验证

- `./scripts/plugins/verify-official-plugins.sh`:检查官方插件组装、语言服务器清单、启动器、包内无原生代码和包签名。
- `./scripts/macos/verify/verify-runtime-bundle-immutability.sh`:确认典型启动和插件工作流不会改写已安装 bundle。
- `node scripts/resources/test-reuse-worktree-resources.mjs`:确认语言服务器下载和插件包不能跨工作树复用。
- `node scripts/resources/test-reuse-worktree-resources.mjs`:确认未注册的资源与完整插件包拒绝复用,固定下载缓存只走独立校验路由。
- `python scripts/plugins/test-assemble-windows-java-support.py`:确认离线 Windows 候选的完整资源、架构、输入哈希和归档安全边界;不当作正式签名或真实 JDT 验收。
- `./scripts/agent-notes/verify-agent-notes.sh`:确认本笔记格式、路径和验证命令有效。
- 相关 macOS 测试:`MacPluginPackageDownloaderTests`、`LanguageServerToolServiceTests`、`LanguageExtensionProcessLifecycleTests` 和 `PluginPackageStoreTests`。
- 新增插件还必须验证下载失败、校验失败、取消、等待重启、重装、回滚、禁用和卸载后的进程与文件清理。

## 适用范围

- `Plugins/mac/Official/`
- `Plugins/win/Official/JavaSupport/`
- `scripts/plugins/assemble-windows-java-support.py`
- `scripts/plugins/build-official-plugins.sh`
- `macos/Sources/Lithe/Platform/MacOS/Plugins/`
- `macos/Sources/Lithe/Platform/MacOS/Runtime/MacRuntimeToolDiscovery.swift`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,19 @@ macOS 接入规则(2026-10-18):
- 在宿主里自己拼 argv 或解析输出。即使只差一个参数,也要改声明或 Core,否则两端会各写一份。
- 为 Provider 另写一份启动字段和校验,或者新增 `build.providerLaunchPlan`。宿主也不要直接使用 Provider 的回复,必须先交给 Core 解码。

### Windows 的项目运行时路径

项目级 Run 配置可以把 JDK(Java 开发工具包)保存为相对工作区的路径。
Build 在冻结这份选择时也必须以同一工作区为根;例如 `.lithe/toolchains/jdk`
应指向该工作区下的 JDK,不能把相对的 `bin/java.exe` 直接交给要求绝对路径的原生层。
已有绝对路径和 UNC 网络路径保留原位置;其他运行时仍按不透明 ID 处理。

转换只确定路径归属,不证明文件存在或 JDK 有效。原生解析器继续在计划真正消费该
运行时后验证它:消费了失效的显式选择必须报错,不能换成 PATH 上的另一份 JDK;
没有消费它的任务也不能因为保存过一个坏 JDK 而被阻断。不要在前端为了“提前检查”
再启动工具、复制 Java 版本选择规则或维护第二份构建设置。这些转换只发生在内存,
不新增下载、缓存或安装目录写入,不影响签名与更新基线。

## 考虑过的备选方案

### 每个构建工具一个宿主集成,继续在 Core 写解析器
Expand Down Expand Up @@ -365,6 +378,9 @@ macOS 接入规则(2026-10-18):

## 验证

- `windows/tauri/src/features/run/services/build-runtime-selection.test.ts` 覆盖工作区相对 JDK、空格、UNC、通用运行时优先级及保留无效显式路径的原生拒绝边界。组件通过不能代表完整 Java 产品工作流已验收。
- Java 产品驱动对构建成功同时要求退出码 0、stdout、与 IPC 一致的单个有序终态;同一操作内任何工作区、插件或代次身份改变都拒绝,不能靠过滤掉错误事件取得成功。

- `cargo test --manifest-path rust/Cargo.toml -p lithe-core --lib build_systems`:四个 fixture 通过校验;`build-plans.json` 的全部标准答案;在临时工作区里验证 Cargo 运行入口与内置探测器逐字一致、嵌套、优先级与拒绝、Maven reactor 识别、Gradle 规范格式输出文件、JUnit 报告、同步指纹、Maven 任务参数与内置实现一致,以及互斥条件下允许重复引用选项。
- `cargo test --manifest-path rust/Cargo.toml -p lithe-core --lib build_systems` 还覆盖 Provider:`build-plans.json` 里 `build-provider`、`build-provider-language-server` 的请求计划和 `result` 解码;`provider_processes_are_install_review_programs`(自有进程和共享写法在安装审查中的条目);`launch_plans_name_exactly_one_process`;`provider_models_are_not_read_during_detection`。
- `cargo test --manifest-path rust/Cargo.toml -p lithe-core --lib declarative_plugins`:`invalid-manifests.json` 里的非法清单,包括社区插件声明 `hostIntegration`、未声明权限、路径越界、未保护的模板变量和选项重复放置,以及 Provider 的十种错误写法(没有来源使用、混写、缺少标志、缺少权限、入口越界、不支持的运行时、未声明的设置等),和裁剪后不再接受的九种写法(静态 `yaml`、命令 `json`、任务规则、顶层目标、`parent`、映射标签、`parentDirectory`、依赖 `children`、`layout.generated`);`command-plans.json` 里按 `buildSystemID` 选中的启动计划。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ Swift 和 Windows 各写一遍合并规则最直接,但两边一旦有细微
- 代价:项目设置文件会出现在用户仓库里,团队需要决定是否提交它。
- 现有的 Java/Maven 项目设置页(`ProjectRuntimeSettingsView`、`LSPControlCenterView` 中的 Maven 重试)仍是宿主代码,属于历史遗留,后续应迁移到 Java 插件的声明里,不能作为新增特判的先例。

Windows 设置验收使用独立 API3 受控插件,而不是删减正式包的 requires。受控包包含既有 LSP fixture,因此必须披露语言服务器权限和完整程序声明,并把获批声明及归档摘要与安装记录逐项比较。注册语言设置页与真实双窗口覆盖保存、空值、重置、字节冲突、项目及全局重载、升级停用卸载;这些受控检查不能替代正式发布包或插件函数验收。

验收观察器适配锁定 Tauri 的 Windows fetch IPC 与真实 callback Map,不改写被冻结的 invoke,不替换原生命令或回复。收尾先恢复 fetch,随后等待已接纳回调有界排空,再正常退出宿主,最后比较运行镜像和插件资源;未退出、未排空、丢失调用或资源变化都不能报告通过。postMessage 回退传输未覆盖,仍是待验范围。

公共搜索清空的产品验收从已开放的插件设置列表进入,保留明确选中的已安装包与原始行身份。通过浏览器输入通道发送 Enter/Space down/up,观察同一输入节点重新获得焦点、零匹配过滤恢复、原选中项和详情不变;不使用合成 DOM 键盘事件或补发 click。该操作应没有声明式插件 IPC。测试失败也保留部分快照、释放元素句柄,并继续执行观察器、原生进程及资源快照的收尾。CDP 输入不能证明物理键盘或真实输入法。

## 验证

- Windows `plugin_host::settings::transaction_tests` 覆盖两个后台编辑保留各自字段、读取到前一次提交以及临时文件回收;既有 `settings_tests` 覆盖删除最后一个值、保留其他插件及损坏文件不被重置。
Expand Down
Loading
Loading