Repository navigation
feat(core): #1662 车道 F Agent/AI 下沉(AGT-03/04/07~09/11~13/18) - #1757
Merged
Merged
Conversation
This was referenced Nov 5, 2026
注册 ai.configuration.*、ai.pullRequest.*、ai.inlineEdit.*、agent.edits.reversePlan、agent.hooks.validateDraft、mcp.librarySnapshot/validateDraft/batchPlan,更新 rust-core-api.md、i18n 词条与生成结果。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core 决定读取哪些文件并解析为不含密钥的元数据和凭据定位器,宿主只读文件并在本地解析定位器。macOS 删除 Swift 的 Codex/Claude 配置解析器,改走 Core;Windows 宿主与前端接入同一接口;移除 agent.parseProviderConfiguration,夹具合并为 shared/fixtures/ai/cli-configuration-v1.json。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Host 统一生成并规范化 diff 证据与计数单位,Core 暴露 agent.edits.reversePlan;macOS 与 Windows 删除各自的回滚与证据计算,只负责路径、编码与写入。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
统计归约与会话配置应用统一在 lithe-agent-host(model_call_statistics、next_turn_config),两端删除各自实现并按共享夹具验证。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
复用 lithe-agent-host hooks 规则,macOS 与 Windows 编辑器按 Core 的逐字段结论显示问题并控制保存,删除各自的校验。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
新增 ai.pullRequest.plan/decode 与 ai.inlineEdit.plan/decode,与提交信息共用 provider 请求构建;macOS PR 描述与 Windows PR 描述、行内编辑接入,凭据与 HTTP 留在平台。macOS 无行内编辑功能。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
新增 mcp.librarySnapshot/validateDraft/batchPlan,macOS 只读写文件并本地化错误码,删除 Swift 合并与计划逻辑;Windows 暂无该资源库。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 类型:agent-provider-import 与 editor-inline-edit-service 测试按夹具的可空/联合类型取值。 - agent-connection-service:locale mock 补上模型新引入的 DEFAULT_DISPLAY_LANGUAGE。 - agent-linked-launch、agent-file-context-menu、agent-provider-editor:invoke mock 改为 ai.configuration.parse 的新响应形状(provider 嵌套、files 入参)。 - agent-edit-review-buffer:测试数据携带 Host 证据 _meta.lithe.diffs,并按回滚改走 agent.edits.reversePlan 的实际命令顺序断言。 生产代码无需改动:这些失败均为测试夹具未跟上 AGT-03/04/07/09 的新契约。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
本地验证(代替 GitHub macOS / Windows CI)本 PR 与 #1760、#1755、#1753、#1759、#1756、#1758、#1757 一起,在本地集成分支 macOS(本机,macOS 26.6 arm64)
Windows(lithe-dev,Windows Server)
合并前每个 PR 已 rebase 到最新 preview,并重新执行编译、i18n、 |
1lck
force-pushed
the
feat/issue-1662-f-agent-ai
branch
from
November 5, 2026 09:59
63ef1af to
0f2f847
Compare
1lck
marked this pull request as ready for review
November 5, 2026 09:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1662(车道 F:Agent、AI、MCP)。按 shared fixture -> Core/Agent Host 实现与测试 -> macOS/Windows 接入并删除旧平台实现的顺序下沉。
条目
ai.configuration.sources/parse:Core 决定读取哪些文件并解析为不含密钥的元数据与凭据定位器;宿主只读文件并在本地解析定位器(环境变量或 JSON 路径)。macOS 删除 Swift 的 Codex/Claude 配置解析器(新增MacCLIConfigurationReader),编辑器导入也走 Core;Windows 宿主与前端同一接口。移除agent.parseProviderConfiguration,夹具合并为shared/fixtures/ai/cli-configuration-v1.json。已知限制:Codexconfig.toml内联experimental_bearer_token的定位器 macOS 不解析(原 Swift 解析器本就不支持,行为不变)。agent.edits.reversePlan与 diff 证据规范化:Agent Host 统一规范化证据并统一计数单位,Core 生成回滚计划;两端只负责路径、编码、受保护写入与废纸篓。lithe-agent-host新增model_call_statistics、next_turn_config(applyNextTurnConfiguration命令与nextTurnConfigured/modelCall.statistics事件),两端删除各自的归约与排队实现。agent.hooks.validateDraft:复用lithe-agent-hosthooks 规则,两端编辑器按逐字段结论显示问题并控制保存。ai.pullRequest.plan/decode、ai.inlineEdit.plan/decode:与提交信息共用 provider 请求构建(ai-generation-requests.md)。PR 描述两端统一严格语义,敏感路径使用 Core 完整清单,输出上限 4096;Windows 行内编辑改为非流式,截断时报错而不替换选区,HTTP 失败只显示状态码,未配置时不再回退 OpenRouter。macOS 无行内编辑功能。mcp.librarySnapshot/validateDraft/batchPlan:资源库合并、所有权、草稿校验与多文件批量计划由 Core 生成,macOS 只读写文件并本地化错误码;Windows 暂无该资源库(平台专属)。agent.attachments.retentionPlan两端都未接入,且缺少“已接受图片标记”存储,不提交半成品。新增 API
ai.configuration.sources、ai.configuration.parse、ai.pullRequest.plan/decode、ai.inlineEdit.plan/decode、agent.edits.reversePlan、agent.hooks.validateDraft、mcp.librarySnapshot、mcp.validateDraft、mcp.batchPlan、Agent 命令applyNextTurnConfiguration。移除:agent.parseProviderConfiguration。验证
verify-rust-core.sh(含注释、Rust 测试、Swift bridge)、cargo test -p lithe-core --lib(1874 通过)、cargo test -p lithe-agent-host(--test-threads=2270 通过)、verify-core、verify-service-boundaries、verify-windows-boundaries、verify-shared-contracts、verify-platform-feature-matrix、两项 i18n 检查。stoppingTheConnectionCancelsAndAwaitsItsOwnedRollbackJob门控等待超时、diffAndRollbackConfirmationCanReplaceTheSharedDropdown弹窗等待),单独重跑都通过(后者连续 2 次)。agent-hooks-settings.test.tsx的 “Hook search reports no matches” 在未改动的主仓库检出上同样失败,非本 PR 引起。cargo check --bin lithe-windows在 macOS 主机上只报project_window_registry.rs的std::os::windows两处既有错误(与本 PR 无关),Windows 编译交给 CI。protocol/command.rs、runtime/dispatcher.rs、rust-core-api.md、i18n 注册表(本 PR 为追加式改动),feat(plugin): 插件自有语言服务器会话与后端决定启动方式(API-25,含 API-12/20/22) #1745 另改MacServiceContainer.swift、Localizable.strings;feat(windows): 完善插件工作流、Provider 生命周期与 Java 分发 #1478 无重叠。Windows 集成验证发现并已修复的问题
bun run typecheck的 3 个 TS 错误,以及 agent-connection-service、agent-linked-launch、agent-file-context-menu、agent-provider-editor、agent-edit-review-buffer 测试,均为测试夹具未跟上 AGT-03/04/07/09 新契约(locale mock 缺DEFAULT_DISPLAY_LANGUAGE、ai.configuration.parse响应形状、Host 证据_meta.lithe.diffs、agent.edits.reversePlan调用);生产代码无回归,已修测试夹具。🤖 Generated with Claude Code