@strongflc/scode 0.1.45 → 0.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +20 -0
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -207,6 +207,7 @@ scode run --mode plan "梳理登录流程" # 只读模式
207
207
  scode run --mode auto "..." # 自动批准(谨慎)
208
208
  scode init # 生成项目 SCODE.md
209
209
  scode config # 查看 Provider 配置
210
+ scode acp # ACP 模式:供编辑器(Zed 等)通过 stdio 驱动
210
211
  ```
211
212
 
212
213
  ### 工作模式
@@ -251,6 +252,25 @@ scode skill update <name>
251
252
 
252
253
  安装前展示 skill 内容预览并需确认(`--yes` 跳过,仅限 CI)。
253
254
 
255
+ ### 编辑器集成:ACP 模式
256
+
257
+ ```bash
258
+ scode acp # 以 ACP 服务身份跑在当前目录,stdin/stdout 走 JSON-RPC(NDJSON)
259
+ scode acp --cwd <项目> # 锁定项目根目录
260
+ scode acp --mode plan # 会话初始模式(客户端可随时切换)
261
+ ```
262
+
263
+ 在支持 [Agent Client Protocol](https://agentclientprotocol.com) 的编辑器里,把外部 Agent 的启动命令
264
+ 指向 `scode acp` 即可。要点:
265
+
266
+ - **stdout 只有 JSON-RPC**,人看的日志全在 stderr——别在管道里 `| grep` 当普通命令用。
267
+ - **先信任项目**:ACP 没有终端,未信任的目录会被直接拒绝(`-32000`)。先在终端跑一次 `scode` 确认信任。
268
+ - 一个进程服务一个项目根;多个工作区就各启动一个 `scode acp`。
269
+ - 能力:支持图片与嵌入文本上下文;不支持 `session/load`(会话延续用终端里的 `/resume`);
270
+ 忽略编辑器传入的 `mcpServers`(MCP 只认 scode 自己的 `settings.json`,否则等于绕过首次连接确认)。
271
+ - 审批:confirm 模式下每次写入/高危命令都会弹编辑器的权限请求(可选"本会话内都允许");
272
+ plan 模式下方案的批准同样走权限请求;`session/cancel` 即中断当前任务。
273
+
254
274
  ---
255
275
 
256
276
  ## 4. REPL 斜杠命令
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strongflc/scode",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "本地化终端 AI 编程 Agent(s-code)—— 独立、架构透明同类替代品",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -33,10 +33,10 @@
33
33
  "LICENSE"
34
34
  ],
35
35
  "optionalDependencies": {
36
- "@strongflc/scode-darwin-arm64": "0.1.45",
37
- "@strongflc/scode-darwin-x64": "0.1.45",
38
- "@strongflc/scode-win32-x64": "0.1.45",
39
- "@strongflc/scode-linux-x64": "0.1.45"
36
+ "@strongflc/scode-darwin-arm64": "0.1.46",
37
+ "@strongflc/scode-darwin-x64": "0.1.46",
38
+ "@strongflc/scode-win32-x64": "0.1.46",
39
+ "@strongflc/scode-linux-x64": "0.1.46"
40
40
  },
41
41
  "scripts": {
42
42
  "dev": "bun run src/cli/index.ts",