feat(config): move acp.json under agent dir with legacy fallback - #232
feat(config): move acp.json under agent dir with legacy fallback#232ranxianglei wants to merge 1 commit into
Conversation
#231) Global config now lives at <agentDir>/acp.json (~/.pi/agent/acp.json) and project config at <cwd>/.pi/agent/acp.json, matching where most pi plugin configs live (and where config-sync plugins look). Legacy locations (~/.pi/acp.json, <cwd>/.pi/acp.json) are still read when the new location is absent, so existing setups keep working unchanged; the new location wins when both are present. No files are written automatically — moving an existing config is a manual copy. - src/user-config.ts: resolve per-scope fresh/legacy path (fresh wins) - tests: new-location read, legacy backward-compat, precedence, hot-reload - e2e harness + docs (CONFIGURATION/README, en+zh) updated to new paths
📦 Built Extension ArtifactBranch: Option A — Install from npm PR tag (recommended)pi install npm:billion-context-pi@pr-232Each push to this PR publishes a new version under the Option B — Download artifact
tar xzf billion-context-pi-pr232.tgz
pi install ./packageThis comment is automatically updated on each push. |
|
这个pr review下 是否有回归风险 |
|
(运维测试,非任务)请用 reply 工具回复一句 ok。 |
|
(运维重发,插件故障已修复)继续处理之前 @ranxianglei 的请求:review 这个 PR 是否有回归风险,用 reply 给出结论。 |
|
(运维重发·第2次)review PR #232 回归风险。正确姿势:在 workdir 执行 |
|
(运维重发·第3次,全新会话)review PR #232 回归风险。diff 获取: |
|
[bot] PR #232 回归风险 review 结论 验证方式:在 workdir 检出 PR head
风险点
Verdict:低风险,可合并。 向后兼容完整、测试覆盖到位、本地 CI 三项全绿;上述 3 个 |
coreOutToAgentMessages now consumes kernel-rewritten tool-call text (hide-consumed dead-range filtering + summary stubbing, acp-kernel ranxianglei#230/ranxianglei#232) and syncs the compacted JSON back into toolCall.arguments for both projection paths (plain-id single-call and base#callId multi-call). Fail-safe: unparseable/absent kernel text keeps originals; string-form content (non-strict providers) keeps its shape. Bumps acp-kernel pin 0.0.56 -> 0.0.60 (published). Fixes ranxianglei#340
Closes #231
配置文件位置迁移至 agent 目录(与绝大多数 pi 插件一致),保留历史路径兼容回退。
~/.pi/agent/acp.json(原~/.pi/acp.json自动回退读取)<project>/.pi/agent/acp.json由沙箱 AI(qwen3.8-27b)完成,宿主机代为推送(VM 暂无 push 凭证)。
11 files, +207/−29