toc-ocra 0.3.12 → 0.3.13

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.
package/README.md CHANGED
@@ -175,3 +175,10 @@ CLI 聊天的流式文字保留空格、缩进和换行;内容清理使用独
175
175
  npm run typecheck
176
176
  npm test # 包含用假 codex 测试停止杀进程树、完成后进程不退出等场景
177
177
  ```
178
+
179
+ ### CLI 命令目录与执行
180
+
181
+ - 新设备指令 `cli.commands` 接收 `agent_type` 和可选 `workdir`、`model`、`reasoning_effort`。使用同一 ACP 注册表打开独立的目录查询会话,不提交模型提示词、不抢占用户线程;支持删除临时会话的 CLI 会在结束时清理。响应 `{agent_type, items}` 完整保留 CLI 返回的名称、说明、input 和 _meta 及其顺序。心跳声明 `cli_commands.version=1`。
182
+ - `run.start` 可携带显式 `cli_command: {name, arguments}`,以及 `cli_command_interactive`。此类任务只通过 ACP 执行,执行前检查当前目录确实公布了该名称;命令参数不附加 Echo 元数据或计划提示,不支持时失败,不回落为普通模型提示词。
183
+ - 回调会话的原生命令不等待不可见的用户交互,沿用当前权限策略回答或拒绝;实时会话保留授权面板。没有 `cli_command` 的任务保持原发送和执行行为。
184
+ - 回调模式的命令执行结束后关闭该 ACP 连接,释放原生线程的写锁,保证下一条普通消息仍可使用原来的 CLI 执行方式续接。