@1agents/acp-service 0.10.12 → 0.11.1

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 (115) hide show
  1. package/dist/src/acp-connection.js +33 -0
  2. package/dist/src/bridge.js +44 -1
  3. package/dist/src/capacity-queue.d.ts +3 -1
  4. package/dist/src/capacity-queue.js +4 -0
  5. package/dist/src/catalog.js +13 -3
  6. package/package.json +4 -4
  7. package/skills/acp-service/SKILL.md +1 -1
  8. package/vendor/dsh/adapter.d.ts +6 -0
  9. package/vendor/dsh/adapter.js +23 -0
  10. package/vendor/dsh/index.js +19 -0
  11. package/vendor/runtime/README.md +36 -11
  12. package/vendor/runtime/dist/{agent-registry-DxcyXXqb.js → agent-registry-CsdsVpJb.js} +209 -177
  13. package/vendor/runtime/dist/agent-registry-CsdsVpJb.js.map +1 -0
  14. package/vendor/runtime/dist/agent-registry.d.ts +0 -2
  15. package/vendor/runtime/dist/agent-registry.d.ts.map +1 -1
  16. package/vendor/runtime/dist/agent-registry.js +1 -1
  17. package/vendor/runtime/dist/{cli-BKmMxgix.js → cli-B5gQOSDl.js} +33 -14
  18. package/vendor/runtime/dist/cli-B5gQOSDl.js.map +1 -0
  19. package/vendor/runtime/dist/cli.d.ts +2 -6
  20. package/vendor/runtime/dist/cli.d.ts.map +1 -1
  21. package/vendor/runtime/dist/cli.js +189 -164
  22. package/vendor/runtime/dist/cli.js.map +1 -1
  23. package/vendor/runtime/dist/{client-C5zneoBs.d.ts → client-D5y4RXME.d.ts} +4 -12
  24. package/vendor/runtime/dist/client-D5y4RXME.d.ts.map +1 -0
  25. package/vendor/runtime/dist/docs-site/CLI.html +19 -21
  26. package/vendor/runtime/dist/docs-site/VISION.html +3 -2
  27. package/vendor/runtime/dist/docs-site/agents.html +10 -15
  28. package/vendor/runtime/dist/docs-site/assets/agents/Apache-2.0.txt +202 -0
  29. package/vendor/runtime/dist/docs-site/assets/agents/LobeHub-MIT.txt +21 -0
  30. package/vendor/runtime/dist/docs-site/assets/agents/Mux-AGPL-3.0.txt +661 -0
  31. package/vendor/runtime/dist/docs-site/assets/agents/README.md +41 -0
  32. package/vendor/runtime/dist/docs-site/assets/agents/ante.png +0 -0
  33. package/vendor/runtime/dist/docs-site/assets/agents/antigravity.png +0 -0
  34. package/vendor/runtime/dist/docs-site/assets/agents/claude.png +0 -0
  35. package/vendor/runtime/dist/docs-site/assets/agents/codex.png +0 -0
  36. package/vendor/runtime/dist/docs-site/assets/agents/copilot.png +0 -0
  37. package/vendor/runtime/dist/docs-site/assets/agents/cursor.png +0 -0
  38. package/vendor/runtime/dist/docs-site/assets/agents/deepseek-harness.png +0 -0
  39. package/vendor/runtime/dist/docs-site/assets/agents/devin.png +0 -0
  40. package/vendor/runtime/dist/docs-site/assets/agents/droid.png +0 -0
  41. package/vendor/runtime/dist/docs-site/assets/agents/fast-agent.png +0 -0
  42. package/vendor/runtime/dist/docs-site/assets/agents/fx.png +0 -0
  43. package/vendor/runtime/dist/docs-site/assets/agents/gemini.png +0 -0
  44. package/vendor/runtime/dist/docs-site/assets/agents/goose.png +0 -0
  45. package/vendor/runtime/dist/docs-site/assets/agents/grok-build.png +0 -0
  46. package/vendor/runtime/dist/docs-site/assets/agents/iflow.png +0 -0
  47. package/vendor/runtime/dist/docs-site/assets/agents/junie.png +0 -0
  48. package/vendor/runtime/dist/docs-site/assets/agents/kilocode.png +0 -0
  49. package/vendor/runtime/dist/docs-site/assets/agents/kimi.png +0 -0
  50. package/vendor/runtime/dist/docs-site/assets/agents/kiro.png +0 -0
  51. package/vendor/runtime/dist/docs-site/assets/agents/mcode.png +0 -0
  52. package/vendor/runtime/dist/docs-site/assets/agents/mux.png +0 -0
  53. package/vendor/runtime/dist/docs-site/assets/agents/octomind.png +0 -0
  54. package/vendor/runtime/dist/docs-site/assets/agents/openclaw.png +0 -0
  55. package/vendor/runtime/dist/docs-site/assets/agents/opencode.png +0 -0
  56. package/vendor/runtime/dist/docs-site/assets/agents/pi.png +0 -0
  57. package/vendor/runtime/dist/docs-site/assets/agents/pool.png +0 -0
  58. package/vendor/runtime/dist/docs-site/assets/agents/qoder.png +0 -0
  59. package/vendor/runtime/dist/docs-site/assets/agents/qwen.png +0 -0
  60. package/vendor/runtime/dist/docs-site/assets/agents/trae.png +0 -0
  61. package/vendor/runtime/dist/docs-site/assets/agents/zeroclaw.png +0 -0
  62. package/vendor/runtime/dist/docs-site/compare.html +8 -7
  63. package/vendor/runtime/dist/docs-site/config.html +5 -4
  64. package/vendor/runtime/dist/docs-site/custom-agents.html +13 -13
  65. package/vendor/runtime/dist/docs-site/exit-codes.html +4 -3
  66. package/vendor/runtime/dist/docs-site/flows.html +21 -8
  67. package/vendor/runtime/dist/docs-site/index.html +7 -6
  68. package/vendor/runtime/dist/docs-site/install.html +7 -6
  69. package/vendor/runtime/dist/docs-site/llms.txt +6 -6
  70. package/vendor/runtime/dist/docs-site/output-formats.html +9 -8
  71. package/vendor/runtime/dist/docs-site/permissions.html +5 -4
  72. package/vendor/runtime/dist/docs-site/prompting.html +9 -7
  73. package/vendor/runtime/dist/docs-site/quickstart.html +5 -4
  74. package/vendor/runtime/dist/docs-site/releasing.html +9 -8
  75. package/vendor/runtime/dist/docs-site/runtime-environment.html +28 -5
  76. package/vendor/runtime/dist/docs-site/runtime-process-lifecycle.html +13 -7
  77. package/vendor/runtime/dist/docs-site/safe-errors.html +3 -2
  78. package/vendor/runtime/dist/docs-site/session-control.html +7 -6
  79. package/vendor/runtime/dist/docs-site/session-watch.html +6 -5
  80. package/vendor/runtime/dist/docs-site/sessions.html +13 -10
  81. package/vendor/runtime/dist/docs-site/shared-sessions.html +7 -4
  82. package/vendor/runtime/dist/{flows-VrII9VKZ.js → flows-CDj5YcTh.js} +136 -68
  83. package/vendor/runtime/dist/flows-CDj5YcTh.js.map +1 -0
  84. package/vendor/runtime/dist/flows.d.ts +28 -19
  85. package/vendor/runtime/dist/flows.d.ts.map +1 -1
  86. package/vendor/runtime/dist/flows.js +1 -1
  87. package/vendor/runtime/dist/{invocation-options-DHMZ5Rrb.js → input-file-BsfVGZgn.js} +30 -15
  88. package/vendor/runtime/dist/input-file-BsfVGZgn.js.map +1 -0
  89. package/vendor/runtime/dist/{ipc-CNNM5DP_.js → ipc-DfqJsbk6.js} +114 -146
  90. package/vendor/runtime/dist/ipc-DfqJsbk6.js.map +1 -0
  91. package/vendor/runtime/dist/{output-DtzXtiBc.js → output-DOIF4iFc.js} +20 -47
  92. package/vendor/runtime/dist/output-DOIF4iFc.js.map +1 -0
  93. package/vendor/runtime/dist/{queue-owner-runtime-ehuh3SQU.js → queue-owner-runtime-DHBQbjXo.js} +394 -258
  94. package/vendor/runtime/dist/queue-owner-runtime-DHBQbjXo.js.map +1 -0
  95. package/vendor/runtime/dist/runtime.d.ts +37 -36
  96. package/vendor/runtime/dist/runtime.d.ts.map +1 -1
  97. package/vendor/runtime/dist/runtime.js +117 -172
  98. package/vendor/runtime/dist/runtime.js.map +1 -1
  99. package/vendor/runtime/dist/{session-options-NjpFwf-c.d.ts → session-options-Ci4aw1oD.d.ts} +13 -16
  100. package/vendor/runtime/dist/session-options-Ci4aw1oD.d.ts.map +1 -0
  101. package/vendor/runtime/dist/{session-watch-CbKfGRkZ.js → session-watch-DRwFHcWw.js} +5 -6
  102. package/vendor/runtime/dist/{session-watch-CbKfGRkZ.js.map → session-watch-DRwFHcWw.js.map} +1 -1
  103. package/vendor/runtime/dist/{watch-BGt4kcE6.js → watch-CUDGkljG.js} +3 -4
  104. package/vendor/runtime/dist/{watch-BGt4kcE6.js.map → watch-CUDGkljG.js.map} +1 -1
  105. package/vendor/runtime/package.json +3 -3
  106. package/vendor/runtime/skills/acpx/SKILL.md +42 -11
  107. package/vendor/runtime/dist/agent-registry-DxcyXXqb.js.map +0 -1
  108. package/vendor/runtime/dist/cli-BKmMxgix.js.map +0 -1
  109. package/vendor/runtime/dist/client-C5zneoBs.d.ts.map +0 -1
  110. package/vendor/runtime/dist/flows-VrII9VKZ.js.map +0 -1
  111. package/vendor/runtime/dist/invocation-options-DHMZ5Rrb.js.map +0 -1
  112. package/vendor/runtime/dist/ipc-CNNM5DP_.js.map +0 -1
  113. package/vendor/runtime/dist/output-DtzXtiBc.js.map +0 -1
  114. package/vendor/runtime/dist/queue-owner-runtime-ehuh3SQU.js.map +0 -1
  115. package/vendor/runtime/dist/session-options-NjpFwf-c.d.ts.map +0 -1
@@ -170,7 +170,8 @@ body:not(.home) .doc>h1:first-child{display:none}
170
170
  .doc pre .copy.copied{background:var(--accent);border-color:var(--accent);color:#04121d;opacity:1}
171
171
  .doc blockquote{margin:1.4em 0;padding:10px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 8px 8px 0;color:var(--text)}
172
172
  .doc blockquote p:last-child{margin-bottom:0}
173
- .doc table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:.92em}
173
+ .doc .table-scroll{overflow-x:auto;margin:1.2em 0}
174
+ .doc table{width:100%;border-collapse:collapse;margin:0;font-size:.92em}
174
175
  .doc th,.doc td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
175
176
  .doc th{font-weight:600;color:var(--ink);background:var(--line-soft);border-bottom:1px solid var(--line)}
176
177
  .doc hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
@@ -236,7 +237,7 @@ body:not(.home) .doc>h1:first-child{display:none}
236
237
  </button>
237
238
  </div>
238
239
  <label class="search"><span>Search</span><input id="doc-search" type="search" placeholder="sessions, flows, json…"></label>
239
- <nav><section><h2>Start</h2><a class="nav-link active" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
+ <nav><section><h2>Start</h2><a class="nav-link active" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a><a class="nav-link" href="compare.html">Compare Command</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a><a class="nav-link" href="session-watch.html">Watching sessions</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Embedding</h2><a class="nav-link" href="shared-sessions.html">Shared sessions</a><a class="nav-link" href="runtime-environment.html">Transient runtime environment</a><a class="nav-link" href="runtime-process-lifecycle.html">Runtime process lifecycle</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
241
  </aside>
241
242
  <main>
242
243
  <header class="home-hero">
@@ -251,14 +252,14 @@ body:not(.home) .doc>h1:first-child{display:none}
251
252
  <code>npm install -g acpx</code>
252
253
  </div>
253
254
  </div>
254
- <div class="home-services" aria-label="Built-in agents">
255
- <span>codex</span><span>claude</span><span>pi</span><span>openclaw</span><span>gemini</span><span>cursor</span><span>copilot</span><span>droid</span><span>qwen</span><span>qoder</span><span>opencode</span><span>kimi</span>
255
+ <div class="home-services" aria-label="Built-in agent examples">
256
+ <span>pi</span><span>openclaw</span><span>codex</span><span>claude</span>
256
257
  </div>
257
258
  <p class="muted"><a href="install.html">Install options →</a></p>
258
259
  </header>
259
260
  <div class="doc-grid doc-grid-home">
260
261
  <article class="doc doc-home"><h2 id="try-it"><a class="anchor" href="#try-it" aria-label="Anchor link">#</a>Try it</h2>
261
- <p>After a one-line install (<a href="quickstart.html">Quickstart</a> walks through it), every coding agent is one command away.</p>
262
+ <p>Install <code>acpx</code>, then set up and authenticate a <a href="agents.html">supported agent</a>. The <a href="quickstart.html">Quickstart</a> walks through your first session.</p>
262
263
  <pre><code class="language-bash"><span class="hl-com"># Persistent multi-turn session, scoped per repo.</span>
263
264
  acpx codex sessions new
264
265
  acpx codex <span class="hl-str">&#39;find the flaky test and fix it&#39;</span>
@@ -282,7 +283,7 @@ acpx flow run examples/flows/branch.flow.ts \
282
283
  <p><code>text</code> output is human readable, <code>--format json</code> emits NDJSON ACP messages, <code>--format quiet</code> keeps only the assistant text. Tool calls, thinking, and diffs come through as structured events instead of ANSI scraping.</p>
283
284
  <h2 id="what-acpx-does"><a class="anchor" href="#what-acpx-does" aria-label="Anchor link">#</a>What acpx does</h2>
284
285
  <ul>
285
- <li><strong>One CLI, every coding agent.</strong> Built-in adapters for Pi, OpenClaw, Codex, Claude, and more — plus <code>--agent</code> for any custom ACP server.</li>
286
+ <li><strong>One CLI, many coding agents.</strong> Built-in adapters for Pi, OpenClaw, Codex, Claude, and more — plus <code>--agent</code> for any custom ACP server.</li>
286
287
  <li><strong>Persistent sessions.</strong> Multi-turn conversations survive across invocations, scoped per repo. <code>-s &lt;name&gt;</code> runs parallel workstreams (<code>backend</code>, <code>docs</code>, <code>pr-842</code>).</li>
287
288
  <li><strong>Queue-aware prompts.</strong> Submit while a turn is running; new prompts queue and drain in order. <code>--no-wait</code> enqueues and returns. <code>cancel</code> aborts cooperatively without tearing the session down.</li>
288
289
  <li><strong>Crash-resistant.</strong> Dead agent processes are detected and reloaded automatically. <code>Ctrl+C</code> sends ACP <code>session/cancel</code> before any force-kill.</li>
@@ -170,7 +170,8 @@ body:not(.home) .doc>h1:first-child{display:none}
170
170
  .doc pre .copy.copied{background:var(--accent);border-color:var(--accent);color:#04121d;opacity:1}
171
171
  .doc blockquote{margin:1.4em 0;padding:10px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 8px 8px 0;color:var(--text)}
172
172
  .doc blockquote p:last-child{margin-bottom:0}
173
- .doc table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:.92em}
173
+ .doc .table-scroll{overflow-x:auto;margin:1.2em 0}
174
+ .doc table{width:100%;border-collapse:collapse;margin:0;font-size:.92em}
174
175
  .doc th,.doc td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
175
176
  .doc th{font-weight:600;color:var(--ink);background:var(--line-soft);border-bottom:1px solid var(--line)}
176
177
  .doc hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
@@ -236,7 +237,7 @@ body:not(.home) .doc>h1:first-child{display:none}
236
237
  </button>
237
238
  </div>
238
239
  <label class="search"><span>Search</span><input id="doc-search" type="search" placeholder="sessions, flows, json…"></label>
239
- <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link active" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
+ <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link active" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a><a class="nav-link" href="compare.html">Compare Command</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a><a class="nav-link" href="session-watch.html">Watching sessions</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Embedding</h2><a class="nav-link" href="shared-sessions.html">Shared sessions</a><a class="nav-link" href="runtime-environment.html">Transient runtime environment</a><a class="nav-link" href="runtime-process-lifecycle.html">Runtime process lifecycle</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
241
  </aside>
241
242
  <main>
242
243
  <header class="hero">
@@ -255,11 +256,11 @@ body:not(.home) .doc>h1:first-child{display:none}
255
256
  <ul>
256
257
  <li>To run the published CLI: Node.js <strong>22.13 or newer</strong> (see <code>engines.node</code> in <code>package.json</code>).</li>
257
258
  <li>To build from source: Node.js <strong>22.x starting at 22.22.1</strong>, <strong>24.x starting at 24.11</strong>, or <strong>26 or newer</strong>. lint-staged sets the Node 22 minimum; the tsdown build tool does not support Node 25. Published CLI installs still support Node 22.13 and newer.</li>
258
- <li>pnpm <strong>11.26.0</strong> for source builds</li>
259
+ <li>pnpm <strong>11.27.1</strong> for source builds</li>
259
260
  <li>The underlying coding agent CLI you plan to talk to (Codex, Claude, etc.)</li>
260
261
  </ul>
261
262
  <p>If pnpm is not installed yet, use npm:</p>
262
- <pre><code class="language-bash">npm install <span class="hl-flag">-g</span> pnpm@<span class="hl-num">11</span>.<span class="hl-num">26</span>.<span class="hl-num">0</span></code></pre>
263
+ <pre><code class="language-bash">npm install <span class="hl-flag">-g</span> pnpm@<span class="hl-num">11</span>.<span class="hl-num">27</span>.<span class="hl-num">1</span></code></pre>
263
264
  <p>Some older Corepack builds bundled with supported Node.js versions have stale package-signing keys and fail while preparing current pnpm releases. Installing pnpm with npm avoids that bootstrap failure.</p>
264
265
  <p><code>acpx</code> itself does not need a global install of every adapter. Built-in adapters that ship as npm packages (<code>pi-acp</code>, <code>@agentclientprotocol/codex-acp</code>, <code>@agentclientprotocol/claude-agent-acp</code>, <code>@kilocode/cli</code>, <code>opencode-ai</code>, <code>mux</code>) are auto-fetched with <code>npx</code> on first use. The <code>fast-agent</code> built-in uses <code>uvx fast-agent-mcp acp</code>, so it requires <code>uvx</code> on <code>PATH</code>. Native CLI built-ins require their upstream CLI to be installed and authenticated separately.</p>
265
266
  <h2 id="global-install-recommended"><a class="anchor" href="#global-install-recommended" aria-label="Anchor link">#</a>Global install (recommended)</h2>
@@ -275,14 +276,14 @@ acpx <span class="hl-flag">--help</span></code></pre>
275
276
  <pre><code class="language-bash">npm install <span class="hl-flag">-g</span> @scottzx/1acp@latest</code></pre>
276
277
  <p>Check what changed in the <a href="https://github.com/openclaw/acpx/blob/main/CHANGELOG.md">changelog</a>. Pre-1.0 releases can break CLI/runtime surface area between minor versions.</p>
277
278
  <h2 id="where-data-lives"><a class="anchor" href="#where-data-lives" aria-label="Anchor link">#</a>Where data lives</h2>
278
- <table><thead><tr><th>Path</th><th>What it stores</th></tr></thead><tbody><tr><td><code>~/.acpx/sessions/*.json</code></td><td>Persistent session records (scope key, last prompt, history previews, model, options)</td></tr><tr><td><code>/tmp/acpx-&lt;home-hash&gt;/&lt;session-hash&gt;.sock</code></td><td>Unix socket for an active queue owner</td></tr><tr><td><code>~/.acpx/queues/&lt;session-hash&gt;.lock</code></td><td>Queue-owner lease and process metadata</td></tr><tr><td><code>~/.acpx/flows/runs/&lt;runId&gt;/</code></td><td>Persisted flow run bundles (graph state, ACP transcripts, artifacts)</td></tr><tr><td><code>~/.acpx/config.json</code></td><td>Optional global config (see <a href="config.html">Config</a>)</td></tr><tr><td><code>&lt;cwd&gt;/.acpxrc.json</code></td><td>Optional project config (merged on top of global, CLI flags still win)</td></tr></tbody></table>
279
+ <div class="table-scroll" role="region" aria-label="Scrollable table" tabindex="0"><table><thead><tr><th>Path</th><th>What it stores</th></tr></thead><tbody><tr><td><code>~/.acpx/sessions/*.json</code></td><td>Persistent session records (scope key, last prompt, history previews, model, options)</td></tr><tr><td><code>/tmp/acpx-&lt;home-hash&gt;/&lt;session-hash&gt;.sock</code></td><td>Unix socket for an active queue owner</td></tr><tr><td><code>~/.acpx/queues/&lt;session-hash&gt;.lock</code></td><td>Queue-owner lease and process metadata</td></tr><tr><td><code>~/.acpx/flows/runs/&lt;runId&gt;/</code></td><td>Persisted flow run bundles (graph state, ACP transcripts, artifacts)</td></tr><tr><td><code>~/.acpx/config.json</code></td><td>Optional global config (see <a href="config.html">Config</a>)</td></tr><tr><td><code>&lt;cwd&gt;/.acpxrc.json</code></td><td>Optional project config (merged on top of global, CLI flags still win)</td></tr></tbody></table></div>
279
280
  <p>Windows uses a named pipe instead of a Unix socket. The socket directory hash is derived from the home directory; the socket and lease filenames use a hash of the session record id.</p>
280
281
  <p>Queue and IPC directories are created with owner-only permissions. <code>acpx</code> re-tightens permissions on previously-permissive directories at startup.</p>
281
282
  <h2 id="build-from-source"><a class="anchor" href="#build-from-source" aria-label="Anchor link">#</a>Build from source</h2>
282
283
  <p>For development or to test an unreleased branch:</p>
283
284
  <pre><code class="language-bash">git clone https://github.com/openclaw/acpx.git
284
285
  cd acpx
285
- npm install <span class="hl-flag">-g</span> pnpm@<span class="hl-num">11</span>.<span class="hl-num">26</span>.<span class="hl-num">0</span> <span class="hl-com"># if pnpm is not already installed</span>
286
+ npm install <span class="hl-flag">-g</span> pnpm@<span class="hl-num">11</span>.<span class="hl-num">27</span>.<span class="hl-num">1</span> <span class="hl-com"># if pnpm is not already installed</span>
286
287
  pnpm install
287
288
  pnpm run build
288
289
  node dist/cli.js <span class="hl-flag">--help</span></code></pre>
@@ -1,6 +1,6 @@
1
1
  # acpx
2
2
 
3
- Headless CLI client for the Agent Client Protocol — persistent multi-turn sessions, queue-aware prompts, structured output, and multi-step flows for Codex, Claude, Pi, OpenClaw, and any ACP-capable agent.
3
+ Headless CLI client for the Agent Client Protocol — persistent multi-turn sessions, queue-aware prompts, structured output, and multi-step flows for Pi, OpenClaw, Codex, Claude, and any ACP-capable agent.
4
4
 
5
5
  Canonical documentation:
6
6
  - Overview: index.html
@@ -8,23 +8,23 @@ Canonical documentation:
8
8
  - Quickstart: quickstart.html
9
9
  - Agents: agents.html
10
10
  - Custom agents: custom-agents.html
11
+ - Compare Command: compare.html
11
12
  - Sessions: sessions.html
12
13
  - Prompting: prompting.html
13
14
  - Session control: session-control.html
15
+ - Watching sessions: session-watch.html
14
16
  - Output formats: output-formats.html
15
17
  - Permissions: permissions.html
16
18
  - Config: config.html
17
19
  - Flows: flows.html
20
+ - Shared sessions: shared-sessions.html
21
+ - Transient runtime environment: runtime-environment.html
22
+ - Runtime process lifecycle: runtime-process-lifecycle.html
18
23
  - acpx CLI Reference: CLI.html
19
24
  - Exit codes: exit-codes.html
20
25
  - Vision: VISION.html
21
- - Compare Command: compare.html
22
26
  - Releasing acpx: releasing.html
23
- - Transient runtime environment: runtime-environment.html
24
- - Runtime process lifecycle: runtime-process-lifecycle.html
25
27
  - Safe execution errors: safe-errors.html
26
- - Watching sessions: session-watch.html
27
- - Shared sessions: shared-sessions.html
28
28
 
29
29
  Install:
30
30
  - npm install -g acpx
@@ -170,7 +170,8 @@ body:not(.home) .doc>h1:first-child{display:none}
170
170
  .doc pre .copy.copied{background:var(--accent);border-color:var(--accent);color:#04121d;opacity:1}
171
171
  .doc blockquote{margin:1.4em 0;padding:10px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 8px 8px 0;color:var(--text)}
172
172
  .doc blockquote p:last-child{margin-bottom:0}
173
- .doc table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:.92em}
173
+ .doc .table-scroll{overflow-x:auto;margin:1.2em 0}
174
+ .doc table{width:100%;border-collapse:collapse;margin:0;font-size:.92em}
174
175
  .doc th,.doc td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
175
176
  .doc th{font-weight:600;color:var(--ink);background:var(--line-soft);border-bottom:1px solid var(--line)}
176
177
  .doc hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
@@ -236,7 +237,7 @@ body:not(.home) .doc>h1:first-child{display:none}
236
237
  </button>
237
238
  </div>
238
239
  <label class="search"><span>Search</span><input id="doc-search" type="search" placeholder="sessions, flows, json…"></label>
239
- <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link active" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
+ <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a><a class="nav-link" href="compare.html">Compare Command</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a><a class="nav-link" href="session-watch.html">Watching sessions</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link active" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Embedding</h2><a class="nav-link" href="shared-sessions.html">Shared sessions</a><a class="nav-link" href="runtime-environment.html">Transient runtime environment</a><a class="nav-link" href="runtime-process-lifecycle.html">Runtime process lifecycle</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
241
  </aside>
241
242
  <main>
242
243
  <header class="hero">
@@ -269,7 +270,7 @@ body:not(.home) .doc>h1:first-child{display:none}
269
270
  The auth module is structured as …
270
271
  [done] end_turn</code></pre>
271
272
  <p><code>text</code> is best for interactive use. It is <strong>not</strong> stable for parsing — error messages, prompts, and progress updates can change between releases.</p>
272
- <p>Malformed tool locations or content produce a diagnostic and skip that tool update. The text stream continues to receive subsequent updates, assistant text, and prompt completion.</p>
273
+ <p>Malformed tool locations or content, including embedded resource URI and MIME metadata, produce a diagnostic and skip that tool update. The text stream continues to receive subsequent updates, assistant text, and prompt completion.</p>
273
274
  <h2 id="json"><a class="anchor" href="#json" aria-label="Anchor link">#</a><code>json</code></h2>
274
275
  <p>NDJSON stream of raw ACP JSON-RPC messages on stdout:</p>
275
276
  <pre><code class="language-bash">acpx <span class="hl-flag">--format</span> json codex exec <span class="hl-str">&#39;review changed files&#39;</span> \
@@ -307,22 +308,22 @@ echo <span class="hl-str">&quot;$SUMMARY&quot;</span></code></pre>
307
308
  <p><code>quiet</code> is unaffected by <code>--suppress-reads</code> because it does not print tool call output to begin with.</p>
308
309
  <h2 id="suppress-reads"><a class="anchor" href="#suppress-reads" aria-label="Anchor link">#</a><code>--suppress-reads</code></h2>
309
310
  <p>Replaces raw read-file payloads with a placeholder so logs stay readable when an agent reads a large file:</p>
310
- <table><thead><tr><th>Mode</th><th>Effect of <code>--suppress-reads</code></th></tr></thead><tbody><tr><td><code>text</code></td><td>Read-like tool outputs render as <code>[read output suppressed]</code>.</td></tr><tr><td><code>json</code></td><td>ACP <code>fs/read_text_file</code> responses and read-like tool-call outputs replace raw contents.</td></tr><tr><td><code>quiet</code></td><td>No effect (quiet mode prints assistant text only).</td></tr></tbody></table>
311
+ <div class="table-scroll" role="region" aria-label="Scrollable table" tabindex="0"><table><thead><tr><th>Mode</th><th>Effect of <code>--suppress-reads</code></th></tr></thead><tbody><tr><td><code>text</code></td><td>Read-like tool outputs render as <code>[read output suppressed]</code>.</td></tr><tr><td><code>json</code></td><td>ACP <code>fs/read_text_file</code> responses and read-like tool-call outputs replace raw contents.</td></tr><tr><td><code>quiet</code></td><td>No effect (quiet mode prints assistant text only).</td></tr></tbody></table></div>
311
312
  <pre><code class="language-bash">acpx <span class="hl-flag">--suppress-reads</span> codex exec <span class="hl-str">&#39;inspect repo and report tool usage&#39;</span></code></pre>
312
313
  <p>The replacement preserves the surrounding ACP message shape so json consumers can still parse the stream — only the content payload is masked.</p>
313
314
  <p>Live JSON read suppression keeps file responses separate from overlapping control responses, even when the client and agent use the same request ID. This requires an updated client and queue owner; older owners and saved raw session journals retain their existing behavior when transport direction is unavailable.</p>
314
315
  <p>Title-based read detection uses complete leading words such as <code>Read</code>, <code>cat</code>, <code>Open</code>, and <code>View</code>; a filename or substring in another action&#39;s title does not suppress that action&#39;s output.</p>
315
316
  <h2 id="session-control-command-output"><a class="anchor" href="#session-control-command-output" aria-label="Anchor link">#</a>Session-control command output</h2>
316
317
  <p>Session controls and queries emit command-specific JSON documents under <code>--format json</code>:</p>
317
- <table><thead><tr><th>Command</th><th><code>text</code></th><th><code>json</code></th><th><code>quiet</code></th></tr></thead><tbody><tr><td>Agent-side <code>sessions list</code></td><td>TSV: <code>sessionId title cwd updatedAt meta</code>, plus next cursor when supplied</td><td><code>{ source: &quot;agent&quot;, sessions, ... }</code>; optional <code>_meta</code>, <code>cursor</code>, <code>cwd</code>, <code>nextCursor</code></td><td>one adapter session id per line</td></tr><tr><td>Local <code>sessions list --local</code> or local fallback</td><td>TSV: local id, name, cwd, last-used time</td><td>array of full local session records</td><td>one local record id per line</td></tr><tr><td><code>sessions show</code></td><td>key/value metadata</td><td>full local session record</td><td>local record id</td></tr><tr><td><code>sessions history</code></td><td>session summary and TSV history entries</td><td><code>{ id, sessionId, limit, count, entries }</code></td><td>one text preview per line</td></tr><tr><td><code>sessions prune</code></td><td>summary plus pruned ids and time</td><td><code>{ action, dryRun, count, bytesFreed, pruned }</code></td><td>one pruned id per line</td></tr><tr><td><code>sessions new</code>/<code>ensure</code></td><td>local record id and creation/replacement summary</td><td><code>session_ensured</code> result with <code>created</code> and local session identity</td><td>local record id</td></tr><tr><td><code>status</code></td><td>key/value status summary</td><td><code>status_snapshot</code> result</td><td>state token</td></tr></tbody></table>
318
+ <div class="table-scroll" role="region" aria-label="Scrollable table" tabindex="0"><table><thead><tr><th>Command</th><th><code>text</code></th><th><code>json</code></th><th><code>quiet</code></th></tr></thead><tbody><tr><td>Agent-side <code>sessions list</code></td><td>TSV: <code>sessionId title cwd updatedAt meta</code>, plus next cursor when supplied</td><td><code>{ source: &quot;agent&quot;, sessions, ... }</code>; optional <code>_meta</code>, <code>cursor</code>, <code>cwd</code>, <code>nextCursor</code></td><td>one adapter session id per line</td></tr><tr><td>Local <code>sessions list --local</code> or local fallback</td><td>TSV: local id, name, cwd, last-used time</td><td>array of full local session records</td><td>one local record id per line</td></tr><tr><td><code>sessions show</code></td><td>key/value metadata</td><td>full local session record</td><td>local record id</td></tr><tr><td><code>sessions history</code></td><td>session summary and TSV history entries</td><td><code>{ id, sessionId, limit, count, entries }</code></td><td>one text preview per line</td></tr><tr><td><code>sessions prune</code></td><td>summary plus pruned ids and time</td><td><code>{ action, dryRun, count, bytesFreed, pruned }</code></td><td>one pruned id per line</td></tr><tr><td><code>sessions new</code>/<code>ensure</code></td><td>local record id and creation/replacement summary</td><td><code>session_ensured</code> result with <code>created</code> and local session identity</td><td>local record id</td></tr><tr><td><code>status</code></td><td>key/value status summary</td><td><code>status_snapshot</code> result</td><td>state token</td></tr></tbody></table></div>
318
319
  <p>Closed records are marked <code>[closed]</code> in local-list text and quiet output.</p>
319
320
  <h2 id="identity-fields-in-json"><a class="anchor" href="#identity-fields-in-json" aria-label="Anchor link">#</a>Identity fields in JSON</h2>
320
321
  <p>JSON field names depend on the command. Local lifecycle/control summaries and a status result with a matching record use these identity fields:</p>
321
- <table><thead><tr><th>Field</th><th>Meaning</th></tr></thead><tbody><tr><td><code>acpxRecordId</code></td><td>Local acpx record id</td></tr><tr><td><code>acpxSessionId</code></td><td>ACP session id stored by that record</td></tr><tr><td><code>agentSessionId</code></td><td>Optional provider-native id, when exposed by the adapter</td></tr></tbody></table>
322
+ <div class="table-scroll" role="region" aria-label="Scrollable table" tabindex="0"><table><thead><tr><th>Field</th><th>Meaning</th></tr></thead><tbody><tr><td><code>acpxRecordId</code></td><td>Local acpx record id</td></tr><tr><td><code>acpxSessionId</code></td><td>ACP session id stored by that record</td></tr><tr><td><code>agentSessionId</code></td><td>Optional provider-native id, when exposed by the adapter</td></tr></tbody></table></div>
322
323
  <p>Full local records, returned by <code>sessions show</code> and local listing, name their ACP session field <code>acpSessionId</code>. Agent-side listing uses each adapter entry&#39;s <code>sessionId</code> and does not add local record identity. History, export/import, prune, and <code>no-session</code> status results have their own documented summary shapes; do not require the three fields above on every JSON result.</p>
323
324
  <p>Do not assume a local record id can be passed to a native provider CLI. Use <code>agentSessionId</code> when the adapter supplies one.</p>
324
325
  <h2 id="picking-a-mode"><a class="anchor" href="#picking-a-mode" aria-label="Anchor link">#</a>Picking a mode</h2>
325
- <table><thead><tr><th>Use case</th><th>Pick</th></tr></thead><tbody><tr><td>Interactive use, you are the reader</td><td><code>text</code> (default)</td></tr><tr><td>Save full transcript for later replay</td><td><code>json</code> (or <code>--format json --json-strict</code>)</td></tr><tr><td>Pipe into <code>jq</code> and parse events</td><td><code>--format json</code> or <code>--json-strict</code></td></tr><tr><td>Capture only the final answer in a script</td><td><code>--format quiet</code></td></tr><tr><td>Long agent runs that read large files</td><td>add <code>--suppress-reads</code></td></tr><tr><td>Anywhere stdout must be 100% JSON</td><td><code>--format json --json-strict</code></td></tr></tbody></table>
326
+ <div class="table-scroll" role="region" aria-label="Scrollable table" tabindex="0"><table><thead><tr><th>Use case</th><th>Pick</th></tr></thead><tbody><tr><td>Interactive use, you are the reader</td><td><code>text</code> (default)</td></tr><tr><td>Save full transcript for later replay</td><td><code>json</code> (or <code>--format json --json-strict</code>)</td></tr><tr><td>Pipe into <code>jq</code> and parse events</td><td><code>--format json</code> or <code>--json-strict</code></td></tr><tr><td>Capture only the final answer in a script</td><td><code>--format quiet</code></td></tr><tr><td>Long agent runs that read large files</td><td>add <code>--suppress-reads</code></td></tr><tr><td>Anywhere stdout must be 100% JSON</td><td><code>--format json --json-strict</code></td></tr></tbody></table></div>
326
327
  <h2 id="see-also"><a class="anchor" href="#see-also" aria-label="Anchor link">#</a>See also</h2>
327
328
  <ul>
328
329
  <li><a href="sessions.html">Sessions</a> — what session-control commands return.</li>
@@ -340,7 +341,7 @@ echo <span class="hl-str">&quot;$SUMMARY&quot;</span></code></pre>
340
341
  <p>The <code>acpx/runtime</code> turn stream exposes ACP plan notifications as <code>status</code> events with <code>tag: &quot;plan&quot;</code>. The existing text summary remains available. The optional <code>entries</code> field contains normalized <code>AcpRuntimePlanEntry</code> objects with <code>content</code>, <code>status</code> (<code>pending</code>, <code>in_progress</code>, or <code>completed</code>), and a valid advertised <code>priority</code> (<code>high</code>, <code>medium</code>, or <code>low</code>) when present.</p>
341
342
  <p>Each <code>entries</code> array replaces the previous plan; <code>entries: []</code> clears it. An omitted field supplies no structured snapshot. Entries with blank content or invalid status are skipped, and invalid priorities are omitted. Legacy updates without valid statuses can still produce a text summary. CLI JSON output continues to expose the original ACP payload.</p>
342
343
  <h2 id="embedded-runtime-tool-calls"><a class="anchor" href="#embedded-runtime-tool-calls" aria-label="Anchor link">#</a>Embedded runtime tool calls</h2>
343
- <p>The <code>acpx/runtime</code> turn stream exposes both ACP <code>tool_call</code> and <code>tool_call_update</code> notifications as <code>tool_call</code> events, retaining the original tag. The optional <code>kind</code> preserves known ACP classifications, including <code>switch_mode</code>. Missing or unknown kinds are omitted without dropping the tool event.</p><nav class="page-nav" aria-label="Pager"><a class="page-nav-prev" href="session-control.html"><small>Previous</small><span>Session control</span></a><a class="page-nav-next" href="permissions.html"><small>Next</small><span>Permissions</span></a></nav></article>
344
+ <p>The <code>acpx/runtime</code> turn stream exposes both ACP <code>tool_call</code> and <code>tool_call_update</code> notifications as <code>tool_call</code> events, retaining the original tag. The optional <code>kind</code> preserves known ACP classifications, including <code>switch_mode</code>. Missing or unknown kinds are omitted without dropping the tool event.</p><nav class="page-nav" aria-label="Pager"><a class="page-nav-prev" href="session-watch.html"><small>Previous</small><span>Watching sessions</span></a><a class="page-nav-next" href="permissions.html"><small>Next</small><span>Permissions</span></a></nav></article>
344
345
  <nav class="toc" aria-label="On this page"><h2>On this page</h2><a class="toc-l2" href="#text-default">#text (default)</a><a class="toc-l2" href="#json">#json</a><a class="toc-l2" href="#format-json-json-strict">#--format json --json-strict</a><a class="toc-l2" href="#quiet">#quiet</a><a class="toc-l2" href="#suppress-reads">#--suppress-reads</a><a class="toc-l2" href="#session-control-command-output">#Session-control command output</a><a class="toc-l2" href="#identity-fields-in-json">#Identity fields in JSON</a><a class="toc-l2" href="#picking-a-mode">#Picking a mode</a><a class="toc-l2" href="#see-also">#See also</a><a class="toc-l2" href="#prompt-response-metadata">#Prompt response metadata</a><a class="toc-l2" href="#embedded-host-logging">#Embedded host logging</a><a class="toc-l2" href="#embedded-runtime-assistant-messages">#Embedded runtime assistant messages</a><a class="toc-l2" href="#embedded-runtime-plans">#Embedded runtime plans</a><a class="toc-l2" href="#embedded-runtime-tool-calls">#Embedded runtime tool calls</a></nav>
345
346
  </div>
346
347
  </main>
@@ -170,7 +170,8 @@ body:not(.home) .doc>h1:first-child{display:none}
170
170
  .doc pre .copy.copied{background:var(--accent);border-color:var(--accent);color:#04121d;opacity:1}
171
171
  .doc blockquote{margin:1.4em 0;padding:10px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 8px 8px 0;color:var(--text)}
172
172
  .doc blockquote p:last-child{margin-bottom:0}
173
- .doc table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:.92em}
173
+ .doc .table-scroll{overflow-x:auto;margin:1.2em 0}
174
+ .doc table{width:100%;border-collapse:collapse;margin:0;font-size:.92em}
174
175
  .doc th,.doc td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
175
176
  .doc th{font-weight:600;color:var(--ink);background:var(--line-soft);border-bottom:1px solid var(--line)}
176
177
  .doc hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
@@ -236,7 +237,7 @@ body:not(.home) .doc>h1:first-child{display:none}
236
237
  </button>
237
238
  </div>
238
239
  <label class="search"><span>Search</span><input id="doc-search" type="search" placeholder="sessions, flows, json…"></label>
239
- <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link active" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
+ <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a><a class="nav-link" href="compare.html">Compare Command</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a><a class="nav-link" href="session-watch.html">Watching sessions</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link active" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Embedding</h2><a class="nav-link" href="shared-sessions.html">Shared sessions</a><a class="nav-link" href="runtime-environment.html">Transient runtime environment</a><a class="nav-link" href="runtime-process-lifecycle.html">Runtime process lifecycle</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
241
  </aside>
241
242
  <main>
242
243
  <header class="hero">
@@ -253,7 +254,7 @@ body:not(.home) .doc>h1:first-child{display:none}
253
254
  <article class="doc"><p>ACP agents request permission for tool actions like writing files, running shell commands, or fetching URLs. <code>acpx</code> mediates those requests against a policy you choose at the command line (or in <a href="config.html">config</a>).</p>
254
255
  <h2 id="modes"><a class="anchor" href="#modes" aria-label="Anchor link">#</a>Modes</h2>
255
256
  <p>Choose exactly one. The flags are mutually exclusive — passing more than one is a usage error.</p>
256
- <table><thead><tr><th>Flag</th><th>Behavior</th></tr></thead><tbody><tr><td><code>--approve-all</code></td><td>Approve tool permission requests not resolved by a per-tool policy.</td></tr><tr><td><code>--approve-reads</code></td><td>Approve remaining read/search requests; prompt for other tools. <strong>(default)</strong></td></tr><tr><td><code>--deny-all</code></td><td>Deny tool permission requests not resolved by a per-tool policy.</td></tr></tbody></table>
257
+ <div class="table-scroll" role="region" aria-label="Scrollable table" tabindex="0"><table><thead><tr><th>Flag</th><th>Behavior</th></tr></thead><tbody><tr><td><code>--approve-all</code></td><td>Approve tool permission requests not resolved by a per-tool policy.</td></tr><tr><td><code>--approve-reads</code></td><td>Approve remaining read/search requests; prompt for other tools. <strong>(default)</strong></td></tr><tr><td><code>--deny-all</code></td><td>Deny tool permission requests not resolved by a per-tool policy.</td></tr></tbody></table></div>
257
258
  <p>Set a project default in <code>.acpxrc.json</code> or a global default in <code>~/.acpx/config.json</code>:</p>
258
259
  <pre><code class="language-json"><span class="hl-op">{</span> <span class="hl-prop">&quot;defaultPermissions&quot;</span><span class="hl-op">:</span> <span class="hl-str">&quot;approve-all&quot;</span> <span class="hl-op">}</span></code></pre>
259
260
  <p>CLI flags always win over config.</p>
@@ -307,7 +308,7 @@ body:not(.home) .doc>h1:first-child{display:none}
307
308
  <p>File writes and terminal creation recheck the captured request lifetime at dispatch, including filesystem preparation and shell fallback. The host&#39;s <code>assertActive</code> callback remains a prompt-admission check; use cancellation or its signal to retire an accepted turn. Operating-system work already dispatched may finish; cancellation does not undo completed writes or command effects.</p>
308
309
  <h2 id="non-interactive-policy"><a class="anchor" href="#non-interactive-policy" aria-label="Anchor link">#</a>Non-interactive policy</h2>
309
310
  <p>When the permission mode requires a prompt but stdin or stderr is not a TTY, <code>--non-interactive-permissions</code> selects denial or failure. Explicit per-tool escalation instead denies or cancels the request and returns escalation metadata.</p>
310
- <table><thead><tr><th>Policy</th><th>Behavior</th></tr></thead><tbody><tr><td><code>deny</code></td><td>Treat the un-promptable request as denied. <strong>(default)</strong></td></tr><tr><td><code>fail</code></td><td>Fail the prompt with <code>PERMISSION_PROMPT_UNAVAILABLE</code>.</td></tr></tbody></table>
311
+ <div class="table-scroll" role="region" aria-label="Scrollable table" tabindex="0"><table><thead><tr><th>Policy</th><th>Behavior</th></tr></thead><tbody><tr><td><code>deny</code></td><td>Treat the un-promptable request as denied. <strong>(default)</strong></td></tr><tr><td><code>fail</code></td><td>Fail the prompt with <code>PERMISSION_PROMPT_UNAVAILABLE</code>.</td></tr></tbody></table></div>
311
312
  <p>Set a project default if you want CI runs to fail loudly:</p>
312
313
  <pre><code class="language-json"><span class="hl-op">{</span> <span class="hl-prop">&quot;nonInteractivePermissions&quot;</span><span class="hl-op">:</span> <span class="hl-str">&quot;fail&quot;</span> <span class="hl-op">}</span></code></pre>
313
314
  <h2 id="exit-code-5"><a class="anchor" href="#exit-code-5" aria-label="Anchor link">#</a>Exit code 5</h2>
@@ -170,7 +170,8 @@ body:not(.home) .doc>h1:first-child{display:none}
170
170
  .doc pre .copy.copied{background:var(--accent);border-color:var(--accent);color:#04121d;opacity:1}
171
171
  .doc blockquote{margin:1.4em 0;padding:10px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 8px 8px 0;color:var(--text)}
172
172
  .doc blockquote p:last-child{margin-bottom:0}
173
- .doc table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:.92em}
173
+ .doc .table-scroll{overflow-x:auto;margin:1.2em 0}
174
+ .doc table{width:100%;border-collapse:collapse;margin:0;font-size:.92em}
174
175
  .doc th,.doc td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
175
176
  .doc th{font-weight:600;color:var(--ink);background:var(--line-soft);border-bottom:1px solid var(--line)}
176
177
  .doc hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
@@ -236,7 +237,7 @@ body:not(.home) .doc>h1:first-child{display:none}
236
237
  </button>
237
238
  </div>
238
239
  <label class="search"><span>Search</span><input id="doc-search" type="search" placeholder="sessions, flows, json…"></label>
239
- <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link active" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
+ <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a><a class="nav-link" href="compare.html">Compare Command</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link active" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a><a class="nav-link" href="session-watch.html">Watching sessions</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Embedding</h2><a class="nav-link" href="shared-sessions.html">Shared sessions</a><a class="nav-link" href="runtime-environment.html">Transient runtime environment</a><a class="nav-link" href="runtime-process-lifecycle.html">Runtime process lifecycle</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
241
  </aside>
241
242
  <main>
242
243
  <header class="hero">
@@ -275,7 +276,7 @@ git diff <span class="hl-op">|</span> acpx codex <span class="hl-flag">--file</s
275
276
  <p>Structured JSON prompts can include ACP <code>resource_link</code> blocks with a string <code>name</code> and non-empty <code>uri</code>. Their optional <code>title</code> may be a string or <code>null</code>; both are preserved through file input, stdin, and queued prompts. Embedded <code>resource</code> blocks require a string <code>resource.text</code> or <code>resource.blob</code>, plus the agent&#39;s <code>embeddedContext</code> capability. Empty strings are valid names and payloads.</p>
276
277
  <p>The <code>--file -</code> form is particularly handy for piping a long prompt from another tool while still tacking on a short instruction at the end.</p>
277
278
  <h2 id="persistent-vs-one-shot"><a class="anchor" href="#persistent-vs-one-shot" aria-label="Anchor link">#</a>Persistent vs. one-shot</h2>
278
- <table><thead><tr><th>Command</th><th>Reuses saved session?</th><th>Writes saved session?</th><th>Queue-aware?</th></tr></thead><tbody><tr><td><code>prompt</code></td><td>Yes — resumes by scope</td><td>Updates history</td><td>Yes</td></tr><tr><td>(bare)</td><td>Same as <code>prompt</code></td><td>Same as <code>prompt</code></td><td>Yes</td></tr><tr><td><code>exec</code></td><td>No — temporary session</td><td>No</td><td>No</td></tr></tbody></table>
279
+ <div class="table-scroll" role="region" aria-label="Scrollable table" tabindex="0"><table><thead><tr><th>Command</th><th>Reuses saved session?</th><th>Writes saved session?</th><th>Queue-aware?</th></tr></thead><tbody><tr><td><code>prompt</code></td><td>Yes — resumes by scope</td><td>Updates history</td><td>Yes</td></tr><tr><td>(bare)</td><td>Same as <code>prompt</code></td><td>Same as <code>prompt</code></td><td>Yes</td></tr><tr><td><code>exec</code></td><td>No — temporary session</td><td>No</td><td>No</td></tr></tbody></table></div>
279
280
  <p><code>exec</code> is the right choice when:</p>
280
281
  <ul>
281
282
  <li>you want a stateless answer in a script (<code>SUMMARY=$(acpx --format quiet codex exec &#39;…&#39;)</code>)</li>
@@ -293,9 +294,10 @@ git diff <span class="hl-op">|</span> acpx codex <span class="hl-flag">--file</s
293
294
  <pre><code class="language-json"><span class="hl-op">{</span> <span class="hl-prop">&quot;defaultAgent&quot;</span><span class="hl-op">:</span> <span class="hl-str">&quot;claude&quot;</span> <span class="hl-op">}</span></code></pre>
294
295
  <p>CLI flags still win, so <code>acpx codex …</code> always runs codex even if <code>defaultAgent</code> is <code>claude</code>.</p>
295
296
  <h2 id="prompt-options"><a class="anchor" href="#prompt-options" aria-label="Anchor link">#</a>Prompt options</h2>
296
- <p>Available on <code>prompt</code>, the bare implicit form, and <code>exec</code>:</p>
297
- <table><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td><code>-s, --session</code></td><td>Use a named session within the current cwd scope</td></tr><tr><td><code>--no-wait</code></td><td>Enqueue and return immediately if a prompt is already running</td></tr><tr><td><code>-f, --file</code></td><td>Read prompt text from a file (<code>-</code> reads stdin and still allows extra args)</td></tr></tbody></table>
297
+ <p>Available on <code>prompt</code> and the bare implicit form:</p>
298
+ <div class="table-scroll" role="region" aria-label="Scrollable table" tabindex="0"><table><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td><code>-s, --session</code></td><td>Use a named session within the current cwd scope</td></tr><tr><td><code>--no-wait</code></td><td>Enqueue and return immediately if a prompt is already running</td></tr><tr><td><code>-f, --file</code></td><td>Read prompt text from a file (<code>-</code> reads stdin and still allows extra args)</td></tr></tbody></table></div>
298
299
  <p><code>--no-wait</code> is per-prompt; the next call without <code>--no-wait</code> will block normally.</p>
300
+ <p><code>exec</code> always runs in a temporary session, so of these it accepts only <code>-f, --file</code> (plus <a href="#one-shot-session-configuration"><code>--config-option</code></a>); <code>-s, --session</code> and <code>--no-wait</code> on <code>exec</code> fail with <code>error: unknown option</code>.</p>
299
301
  <p>After an agent name, <code>--file</code> and <code>--no-wait</code> can appear before the explicit <code>prompt</code> subcommand or on it. <code>exec</code> accepts <code>--file</code> in either position as well. When both levels supply a file, the subcommand&#39;s explicit file wins. File input still combines with positional text, including when <code>--file -</code> reads stdin; text after <code>--</code> remains literal prompt content.</p>
300
302
  <h2 id="queue-submission"><a class="anchor" href="#queue-submission" aria-label="Anchor link">#</a>Queue submission</h2>
301
303
  <p>When a turn is already in flight for the target session, <code>acpx</code> does not spawn a second adapter. It submits to the running queue owner over local IPC. The submitter then either:</p>
@@ -310,7 +312,7 @@ acpx codex <span class="hl-str">&#39;run the full test suite and triage failures
310
312
  <span class="hl-com"># Queue follow-ups without waiting</span>
311
313
  acpx codex <span class="hl-flag">--no-wait</span> <span class="hl-str">&#39;after that, summarize root cause in 3 bullets&#39;</span>
312
314
  acpx codex <span class="hl-flag">--no-wait</span> <span class="hl-str">&#39;and propose 1 minimal fix&#39;</span></code></pre>
313
- <p><code>Ctrl+C</code> while waiting on a queued or running prompt sends ACP <code>session/cancel</code> first, waits briefly for the cancelled completion, and falls back to a force-kill only if the agent does not respond. See <a href="session-control.html">Session control</a> for the explicit <code>cancel</code> command.</p>
315
+ <p><code>Ctrl+C</code> while waiting on a session prompt cancels only that prompt: queued work is removed, an active turn gets ACP <code>session/cancel</code>. Other clients&#39; turns and <code>--no-wait</code> work are unaffected. See <a href="session-control.html">Session control</a> for cancellation outcomes and the explicit <code>cancel</code> command.</p>
314
316
  <h2 id="embedded-runtime-readiness"><a class="anchor" href="#embedded-runtime-readiness" aria-label="Anchor link">#</a>Embedded runtime readiness</h2>
315
317
  <p>For applications using <code>acpx/runtime</code>, <code>AcpRuntimeTurn.promptStarted</code> resolves only after the writable ACP transport accepts that turn&#39;s prompt request. It remains pending under transport backpressure and rejects if submission or the write fails.</p>
316
318
  <p>Readiness does not mean the agent has finished processing the prompt. Await <code>turn.result</code> for the turn outcome after persistence and cleanup have settled.</p>
@@ -368,7 +370,7 @@ acpx <span class="hl-flag">--model</span> claude-sonnet-<span class="hl-num">4</
368
370
  acpx <span class="hl-flag">--deny-all</span> codex <span class="hl-str">&#39;analyze without using any tools&#39;</span></code></pre>
369
371
  <h2 id="reading-prompt-text"><a class="anchor" href="#reading-prompt-text" aria-label="Anchor link">#</a>Reading prompt text</h2>
370
372
  <p>Whichever way you supply prompt text, <code>acpx</code> concatenates the file (or stdin) with positional args, separated by a blank line. That is what makes <code>--file -</code> plus appended args work.</p>
371
- <p>If neither stdin is piped nor <code>--file</code> is provided and there are no positional args, <code>acpx</code> prints help and exits.</p>
373
+ <p>Bare <code>acpx</code> with no arguments and a terminal on stdin prints help. A prompt command (<code>acpx &lt;agent&gt;</code>, <code>prompt</code>, <code>exec</code>) with no positional args, no <code>--file</code>, and a terminal on stdin exits with code 2 and <code>Prompt is required (pass as argument, --file, or pipe via stdin)</code>; piped stdin that is empty exits with code 2 and <code>Prompt from stdin is empty</code>.</p>
372
374
  <h2 id="examples"><a class="anchor" href="#examples" aria-label="Anchor link">#</a>Examples</h2>
373
375
  <pre><code class="language-bash"><span class="hl-com"># Implicit, codex default</span>
374
376
  acpx <span class="hl-str">&#39;review the latest commit&#39;</span>
@@ -170,7 +170,8 @@ body:not(.home) .doc>h1:first-child{display:none}
170
170
  .doc pre .copy.copied{background:var(--accent);border-color:var(--accent);color:#04121d;opacity:1}
171
171
  .doc blockquote{margin:1.4em 0;padding:10px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 8px 8px 0;color:var(--text)}
172
172
  .doc blockquote p:last-child{margin-bottom:0}
173
- .doc table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:.92em}
173
+ .doc .table-scroll{overflow-x:auto;margin:1.2em 0}
174
+ .doc table{width:100%;border-collapse:collapse;margin:0;font-size:.92em}
174
175
  .doc th,.doc td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
175
176
  .doc th{font-weight:600;color:var(--ink);background:var(--line-soft);border-bottom:1px solid var(--line)}
176
177
  .doc hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
@@ -236,7 +237,7 @@ body:not(.home) .doc>h1:first-child{display:none}
236
237
  </button>
237
238
  </div>
238
239
  <label class="search"><span>Search</span><input id="doc-search" type="search" placeholder="sessions, flows, json…"></label>
239
- <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link active" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
+ <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link active" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a><a class="nav-link" href="compare.html">Compare Command</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a><a class="nav-link" href="session-watch.html">Watching sessions</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Embedding</h2><a class="nav-link" href="shared-sessions.html">Shared sessions</a><a class="nav-link" href="runtime-environment.html">Transient runtime environment</a><a class="nav-link" href="runtime-process-lifecycle.html">Runtime process lifecycle</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
241
  </aside>
241
242
  <main>
242
243
  <header class="hero">
@@ -256,13 +257,13 @@ body:not(.home) .doc>h1:first-child{display:none}
256
257
  acpx <span class="hl-flag">--version</span></code></pre>
257
258
  <p>If you would rather not install globally, every command below works with <code>npx @scottzx/1acp@latest …</code>. (<a href="install.html">Install</a> covers options.)</p>
258
259
  <h2 id="2-pick-an-agent"><a class="anchor" href="#2-pick-an-agent" aria-label="Anchor link">#</a>2. Pick an agent</h2>
259
- <p><code>acpx</code> ships with adapters for a dozen coding agents. The two most common starting points:</p>
260
+ <p><code>acpx</code> ships with 30 built-in agent profiles. Two starting points:</p>
260
261
  <pre><code class="language-bash"><span class="hl-com"># Codex (OpenAI), via @agentclientprotocol/codex-acp</span>
261
262
  acpx codex <span class="hl-flag">--help</span>
262
263
 
263
264
  <span class="hl-com"># Claude Code, via @agentclientprotocol/claude-agent-acp</span>
264
265
  acpx claude <span class="hl-flag">--help</span></code></pre>
265
- <p>You only need the underlying agent CLI installed (or, for the npm-packaged adapters, nothing — <code>npx</code> fetches them on first use). <a href="agents.html">Agents</a> lists every built-in.</p>
266
+ <p>Install and authenticate your chosen agent as described in its <a href="agents.html">agent guide</a>. <code>npx</code> fetches npm-packaged adapters on first use, but the agent may still need its own CLI, account, or API credentials.</p>
266
267
  <h2 id="3-create-a-session"><a class="anchor" href="#3-create-a-session" aria-label="Anchor link">#</a>3. Create a session</h2>
267
268
  <p><code>acpx</code> requires an explicit session before the first prompt — this avoids surprise auto-creation in CI.</p>
268
269
  <pre><code class="language-bash">cd ~/repos/your-project
@@ -170,7 +170,8 @@ body:not(.home) .doc>h1:first-child{display:none}
170
170
  .doc pre .copy.copied{background:var(--accent);border-color:var(--accent);color:#04121d;opacity:1}
171
171
  .doc blockquote{margin:1.4em 0;padding:10px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 8px 8px 0;color:var(--text)}
172
172
  .doc blockquote p:last-child{margin-bottom:0}
173
- .doc table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:.92em}
173
+ .doc .table-scroll{overflow-x:auto;margin:1.2em 0}
174
+ .doc table{width:100%;border-collapse:collapse;margin:0;font-size:.92em}
174
175
  .doc th,.doc td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
175
176
  .doc th{font-weight:600;color:var(--ink);background:var(--line-soft);border-bottom:1px solid var(--line)}
176
177
  .doc hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
@@ -236,7 +237,7 @@ body:not(.home) .doc>h1:first-child{display:none}
236
237
  </button>
237
238
  </div>
238
239
  <label class="search"><span>Search</span><input id="doc-search" type="search" placeholder="sessions, flows, json…"></label>
239
- <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
+ <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a><a class="nav-link" href="compare.html">Compare Command</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a><a class="nav-link" href="session-watch.html">Watching sessions</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Embedding</h2><a class="nav-link" href="shared-sessions.html">Shared sessions</a><a class="nav-link" href="runtime-environment.html">Transient runtime environment</a><a class="nav-link" href="runtime-process-lifecycle.html">Runtime process lifecycle</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link" href="VISION.html">Vision</a></section></nav>
240
241
  </aside>
241
242
  <main>
242
243
  <header class="hero">
@@ -260,13 +261,13 @@ body:not(.home) .doc>h1:first-child{display:none}
260
261
  <p>exact head before merging.</p>
261
262
  <li>Dispatch <code>.github/workflows/release.yml</code> at the merge commit with</li>
262
263
  <p><code>dry_run: true</code>. Require the exact run to finish successfully. This builds and packages the release without publishing; non-dry dispatches are rejected. Dry runs also accept an already published version so dependency and packaging checks can run on current <code>main</code> without a version bump. Tag-triggered releases still require an unpublished version.</p>
263
- <li>Create an annotated <code>vX.Y.Z</code> tag on that commit, signed with the fleet release</li>
264
- <p>SSH key. Verify it against the trusted release-key allowlist before pushing. Use <code>.github/release-signers</code> as the allowed-signers file; the workflow checks the same allowlist. Run verification and push in a fail-fast shell so a failed verification cannot fall through to publishing:</p>
264
+ <li>Create and push an annotated <code>vX.Y.Z</code> tag on that commit using your normal</li>
265
+ <p>GitHub authentication. Release authorization follows the repository&#39;s tag-creation rules:</p>
265
266
  </ol>
266
- <p>``<code>bash set -euo pipefail git -c gpg.format=ssh -c user.signingkey=&quot;$RELEASE_SIGNING_KEY&quot; \ tag -s vX.Y.Z &quot;$RELEASE_COMMIT&quot; -m &quot;acpx X.Y.Z&quot; git -c gpg.ssh.allowedSignersFile=.github/release-signers verify-tag vX.Y.Z git push origin refs/tags/vX.Y.Z </code>``</p>
267
- <p><code>RELEASE_SIGNING_KEY</code> must point to the approved fleet key, never a developer&#39;s default key. Repository administrators have a bypass for tag creation only; separate rules prohibit tag updates and deletion. Never move or delete an existing release tag.</p>
267
+ <p>``<code>bash set -euo pipefail git -c tag.gpgsign=false tag -a vX.Y.Z &quot;$RELEASE_COMMIT&quot; -m &quot;acpx X.Y.Z&quot; git push origin refs/tags/vX.Y.Z </code>``</p>
268
+ <p>Repository administrators have a bypass for tag creation only; separate rules prohibit tag updates and deletion. Never move or delete an existing release tag.</p>
268
269
  <ol>
269
- <li>Push that tag. The workflow checks main ancestry and package metadata,</li>
270
+ <li>The tag push starts the workflow, which checks main ancestry and package metadata,</li>
270
271
  <p>publishes the immutable verified tarball to npm through the <code>stable-release</code> environment using OIDC provenance, then creates the GitHub Release from the changelog section and attaches the tarball and <code>SHA256SUMS</code>.</p>
271
272
  <li>Read back the GitHub Release and npm metadata. Download both assets, verify</li>
272
273
  <p>the checksum and npm integrity, install the downloaded package in an isolated directory, and smoke-test its version and a real command on synthetic input.</p>
@@ -274,7 +275,7 @@ body:not(.home) .doc>h1:first-child{display:none}
274
275
  <p>If only GitHub Release creation fails after npm succeeds, rerun that failed job; never republish or retag an existing version. A dry-run artifact is not a release.</p>
275
276
  <h2 id="trusted-publisher-configuration"><a class="anchor" href="#trusted-publisher-configuration" aria-label="Anchor link">#</a>Trusted publisher configuration</h2>
276
277
  <p>The npm package <code>acpx</code> trusts GitHub repository <code>openclaw/acpx</code>, workflow file <code>release.yml</code>, and environment <code>stable-release</code>. Keep those exact values aligned with the publish job. The environment permits <code>v*</code> tags; it does not require an external service or reviewer. The publish job uses a GitHub-hosted runner, a version of npm with OIDC support, and <code>id-token: write</code>; no npm token secret is needed. The build job has no publishing permission.</p>
277
- <p>Immediately before the first OIDC publish, inspect <code>npm trust list acpx --json</code> using an authenticated maintainer session. If the package has never successfully published through OIDC, revoke and recreate the record with the same repository, workflow, environment, and permissions. Unused new records expire after two days. Refresh the record immediately before pushing the signed tag, then verify npm provenance points back to this repository&#39;s release run after publication.</p></article>
278
+ <p>Immediately before the first OIDC publish, inspect <code>npm trust list acpx --json</code> using an authenticated maintainer session. If the package has never successfully published through OIDC, revoke and recreate the record with the same repository, workflow, environment, and permissions. Unused new records expire after two days. Refresh the record immediately before pushing the release tag, then verify npm provenance points back to this repository&#39;s release run after publication.</p></article>
278
279
 
279
280
  </div>
280
281
  </main>