aicodeman 1.50.0 → 1.51.0
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 +17 -10
- package/dist/config/attachment-guard.d.ts +5 -1
- package/dist/config/attachment-guard.d.ts.map +1 -1
- package/dist/config/attachment-guard.js +4 -2
- package/dist/config/attachment-guard.js.map +1 -1
- package/dist/config/cli-registry/schema.d.ts +2 -0
- package/dist/config/cli-registry/schema.d.ts.map +1 -1
- package/dist/config/cli-registry/schema.js +11 -0
- package/dist/config/cli-registry/schema.js.map +1 -1
- package/dist/config/cli-registry/stock.d.ts.map +1 -1
- package/dist/config/cli-registry/stock.js +155 -4
- package/dist/config/cli-registry/stock.js.map +1 -1
- package/dist/config/cli-registry/types.d.ts +33 -2
- package/dist/config/cli-registry/types.d.ts.map +1 -1
- package/dist/config/file-editing.d.ts +7 -3
- package/dist/config/file-editing.d.ts.map +1 -1
- package/dist/config/file-editing.js +12 -3
- package/dist/config/file-editing.js.map +1 -1
- package/dist/config/local-model-catalog.d.ts +95 -20
- package/dist/config/local-model-catalog.d.ts.map +1 -1
- package/dist/config/local-model-catalog.js +172 -37
- package/dist/config/local-model-catalog.js.map +1 -1
- package/dist/config-backup.js +1 -1
- package/dist/config-backup.js.map +1 -1
- package/dist/custom-model-injection.d.ts.map +1 -1
- package/dist/custom-model-injection.js +22 -14
- package/dist/custom-model-injection.js.map +1 -1
- package/dist/hooks-config.d.ts +62 -0
- package/dist/hooks-config.d.ts.map +1 -1
- package/dist/hooks-config.js +156 -0
- package/dist/hooks-config.js.map +1 -1
- package/dist/local-model/connect.d.ts +16 -2
- package/dist/local-model/connect.d.ts.map +1 -1
- package/dist/local-model/connect.js +17 -3
- package/dist/local-model/connect.js.map +1 -1
- package/dist/local-model/harness-facts.d.ts +8 -4
- package/dist/local-model/harness-facts.d.ts.map +1 -1
- package/dist/local-model/harness-facts.js +13 -5
- package/dist/local-model/harness-facts.js.map +1 -1
- package/dist/local-model/install-job.d.ts +208 -28
- package/dist/local-model/install-job.d.ts.map +1 -1
- package/dist/local-model/install-job.js +856 -94
- package/dist/local-model/install-job.js.map +1 -1
- package/dist/local-model/recommend.d.ts +11 -5
- package/dist/local-model/recommend.d.ts.map +1 -1
- package/dist/local-model/recommend.js +11 -5
- package/dist/local-model/recommend.js.map +1 -1
- package/dist/local-model/runtime.d.ts +12 -0
- package/dist/local-model/runtime.d.ts.map +1 -1
- package/dist/local-model/runtime.js +42 -0
- package/dist/local-model/runtime.js.map +1 -1
- package/dist/local-model/state-store.d.ts.map +1 -1
- package/dist/local-model/state-store.js +40 -0
- package/dist/local-model/state-store.js.map +1 -1
- package/dist/mux-interface.d.ts +3 -1
- package/dist/mux-interface.d.ts.map +1 -1
- package/dist/proc-tree.d.ts +23 -0
- package/dist/proc-tree.d.ts.map +1 -1
- package/dist/proc-tree.js +28 -0
- package/dist/proc-tree.js.map +1 -1
- package/dist/session-auto-ops.d.ts +95 -8
- package/dist/session-auto-ops.d.ts.map +1 -1
- package/dist/session-auto-ops.js +146 -32
- package/dist/session-auto-ops.js.map +1 -1
- package/dist/session-cli-registry-bridge.d.ts +2 -1
- package/dist/session-cli-registry-bridge.d.ts.map +1 -1
- package/dist/session-cli-registry-bridge.js.map +1 -1
- package/dist/session.d.ts +16 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +29 -5
- package/dist/session.js.map +1 -1
- package/dist/tmux-manager.d.ts +10 -1
- package/dist/tmux-manager.d.ts.map +1 -1
- package/dist/tmux-manager.js +45 -6
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tui/tui-app.d.ts.map +1 -1
- package/dist/tui/tui-app.js +1 -0
- package/dist/tui/tui-app.js.map +1 -1
- package/dist/tui/tui-client.d.ts +1 -1
- package/dist/tui/tui-client.d.ts.map +1 -1
- package/dist/types/common.d.ts +5 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/local-model-install.d.ts +202 -15
- package/dist/types/local-model-install.d.ts.map +1 -1
- package/dist/types/local-model-install.js +21 -4
- package/dist/types/local-model-install.js.map +1 -1
- package/dist/types/local-model.d.ts +32 -6
- package/dist/types/local-model.d.ts.map +1 -1
- package/dist/types/local-model.js.map +1 -1
- package/dist/types/session.d.ts +26 -4
- package/dist/types/session.d.ts.map +1 -1
- package/dist/types/session.js +2 -1
- package/dist/types/session.js.map +1 -1
- package/dist/usage-telemetry.d.ts +3 -0
- package/dist/usage-telemetry.d.ts.map +1 -1
- package/dist/usage-telemetry.js +4 -0
- package/dist/usage-telemetry.js.map +1 -1
- package/dist/utils/token-validation.d.ts +3 -3
- package/dist/utils/token-validation.d.ts.map +1 -1
- package/dist/utils/token-validation.js +3 -3
- package/dist/utils/token-validation.js.map +1 -1
- package/dist/web/case-state-sync.d.ts +28 -0
- package/dist/web/case-state-sync.d.ts.map +1 -0
- package/dist/web/case-state-sync.js +41 -0
- package/dist/web/case-state-sync.js.map +1 -0
- package/dist/web/public/admin-ui.js.gz +0 -0
- package/dist/web/public/api-client.c9b1cddc.js.gz +0 -0
- package/dist/web/public/{app.8719143d.js → app.bddc2382.js} +9 -7
- package/dist/web/public/app.bddc2382.js.br +0 -0
- package/dist/web/public/app.bddc2382.js.gz +0 -0
- package/dist/web/public/approvals-ui.js.gz +0 -0
- package/dist/web/public/constants.782170e1.js.gz +0 -0
- package/dist/web/public/cron-ui.js.gz +0 -0
- package/dist/web/public/edit-history-ui.js.gz +0 -0
- package/dist/web/public/entrance-animations.js.gz +0 -0
- package/dist/web/public/foreign-sessions.js.gz +0 -0
- package/dist/web/public/git-status-ui.js.gz +0 -0
- package/dist/web/public/header-divider.eb2d2463.js.gz +0 -0
- package/dist/web/public/home-sessions.js +38 -18
- package/dist/web/public/home-sessions.js.br +0 -0
- package/dist/web/public/home-sessions.js.gz +0 -0
- package/dist/web/public/host-wake-ui.js.gz +0 -0
- package/dist/web/public/i18n.2e0cdcee.js +2 -0
- package/dist/web/public/i18n.2e0cdcee.js.br +0 -0
- package/dist/web/public/i18n.2e0cdcee.js.gz +0 -0
- package/dist/web/public/{image-input.a5d0f8f3.js → image-input.b75c41ca.js} +17 -1
- package/dist/web/public/image-input.b75c41ca.js.br +0 -0
- package/dist/web/public/image-input.b75c41ca.js.gz +0 -0
- package/dist/web/public/index.html +39 -15
- package/dist/web/public/index.html.br +0 -0
- package/dist/web/public/index.html.gz +0 -0
- package/dist/web/public/input-cjk.8bc46081.js.gz +0 -0
- package/dist/web/public/{keyboard-accessory.b941676c.js → keyboard-accessory.0800fc44.js} +160 -2
- package/dist/web/public/keyboard-accessory.0800fc44.js.br +0 -0
- package/dist/web/public/keyboard-accessory.0800fc44.js.gz +0 -0
- package/dist/web/public/local-model-ui.js +618 -32
- package/dist/web/public/local-model-ui.js.br +0 -0
- package/dist/web/public/local-model-ui.js.gz +0 -0
- package/dist/web/public/mobile-handlers.f7c3f692.js.gz +0 -0
- package/dist/web/public/mobile-ime-preview.2dbaf262.js.gz +0 -0
- package/dist/web/public/mobile-overview.js +31 -14
- package/dist/web/public/mobile-overview.js.br +0 -0
- package/dist/web/public/mobile-overview.js.gz +0 -0
- package/dist/web/public/mobile.984e9058.css +1 -0
- package/dist/web/public/mobile.984e9058.css.br +0 -0
- package/dist/web/public/mobile.984e9058.css.gz +0 -0
- package/dist/web/public/notification-manager.feb82c04.js.gz +0 -0
- package/dist/web/public/orchestrator-panel.js.gz +0 -0
- package/dist/web/public/{panels-ui.d3f4f1c4.js → panels-ui.ee2330a4.js} +99 -97
- package/dist/web/public/panels-ui.ee2330a4.js.br +0 -0
- package/dist/web/public/panels-ui.ee2330a4.js.gz +0 -0
- package/dist/web/public/ralph-panel.b350e2ef.js.gz +0 -0
- package/dist/web/public/ralph-wizard.b6c0dd19.js.gz +0 -0
- package/dist/web/public/readmymind-ui.js.gz +0 -0
- package/dist/web/public/reboot-restore-ui.js.gz +0 -0
- package/dist/web/public/respawn-ui.304ba0d4.js.gz +0 -0
- package/dist/web/public/sanitize-html.e7147e76.js.gz +0 -0
- package/dist/web/public/session-lineage.js.gz +0 -0
- package/dist/web/public/session-ui.4273cbc5.js +106 -0
- package/dist/web/public/session-ui.4273cbc5.js.br +0 -0
- package/dist/web/public/session-ui.4273cbc5.js.gz +0 -0
- package/dist/web/public/{settings-ui.11da6f15.js → settings-ui.8b37cf07.js} +14 -14
- package/dist/web/public/settings-ui.8b37cf07.js.br +0 -0
- package/dist/web/public/settings-ui.8b37cf07.js.gz +0 -0
- package/dist/web/public/spreadsheet-preview-worker.js.gz +0 -0
- package/dist/web/public/spreadsheet-preview.75c751de.js.gz +0 -0
- package/dist/web/public/spreadsheet-xlsx-core.js.gz +0 -0
- package/dist/web/public/styles.81d95f50.css +1 -0
- package/dist/web/public/styles.81d95f50.css.br +0 -0
- package/dist/web/public/styles.81d95f50.css.gz +0 -0
- package/dist/web/public/subagent-windows.07277a58.js.gz +0 -0
- package/dist/web/public/sw.js +2 -2
- package/dist/web/public/sw.js.br +0 -0
- package/dist/web/public/sw.js.gz +0 -0
- package/dist/web/public/tab-layout-browser.2d6189f7.js.gz +0 -0
- package/dist/web/public/tab-rail-resize.b5cdceaf.js.gz +0 -0
- package/dist/web/public/terminal-keycode229-recovery.98843069.js.gz +0 -0
- package/dist/web/public/terminal-split.js.gz +0 -0
- package/dist/web/public/terminal-tile.js +1 -1
- package/dist/web/public/terminal-tile.js.br +0 -0
- package/dist/web/public/terminal-tile.js.gz +0 -0
- package/dist/web/public/{terminal-ui.f92eae28.js → terminal-ui.8e4c2017.js} +1 -1
- package/dist/web/public/terminal-ui.8e4c2017.js.br +0 -0
- package/dist/web/public/terminal-ui.8e4c2017.js.gz +0 -0
- package/dist/web/public/tile-grid.js.gz +0 -0
- package/dist/web/public/ultracode-panel.js.gz +0 -0
- package/dist/web/public/ultracode-windows.js.gz +0 -0
- package/dist/web/public/vendor/dompurify.min.js.gz +0 -0
- package/dist/web/public/vendor/exceljs.min.js.gz +0 -0
- package/dist/web/public/vendor/fflate.min.js.gz +0 -0
- package/dist/web/public/vendor/marked.min.js.gz +0 -0
- package/dist/web/public/vendor/xterm-addon-fit.min.js.gz +0 -0
- package/dist/web/public/vendor/xterm-addon-serialize.min.js.gz +0 -0
- package/dist/web/public/vendor/xterm-addon-unicode11.min.js.gz +0 -0
- package/dist/web/public/vendor/xterm-addon-webgl.min.js.gz +0 -0
- package/dist/web/public/vendor/xterm-predictive-echo.276b11d9.js.gz +0 -0
- package/dist/web/public/vendor/xterm-zerolag-input.1be42307.js.gz +0 -0
- package/dist/web/public/vendor/xterm.css.gz +0 -0
- package/dist/web/public/vendor/xterm.min.js.gz +0 -0
- package/dist/web/public/{voice-input.2342c37b.js → voice-input.d0580528.js} +232 -137
- package/dist/web/public/voice-input.d0580528.js.br +0 -0
- package/dist/web/public/voice-input.d0580528.js.gz +0 -0
- package/dist/web/public/voice-pcm-worklet.js.gz +0 -0
- package/dist/web/public/webview-tabs.js.gz +0 -0
- package/dist/web/public/whats-new.json +9 -9
- package/dist/web/routes/case-routes.d.ts.map +1 -1
- package/dist/web/routes/case-routes.js +31 -5
- package/dist/web/routes/case-routes.js.map +1 -1
- package/dist/web/routes/file-routes.d.ts +4 -2
- package/dist/web/routes/file-routes.d.ts.map +1 -1
- package/dist/web/routes/file-routes.js +112 -6
- package/dist/web/routes/file-routes.js.map +1 -1
- package/dist/web/routes/hook-event-routes.d.ts.map +1 -1
- package/dist/web/routes/hook-event-routes.js +45 -16
- package/dist/web/routes/hook-event-routes.js.map +1 -1
- package/dist/web/routes/local-model-routes.d.ts +18 -6
- package/dist/web/routes/local-model-routes.d.ts.map +1 -1
- package/dist/web/routes/local-model-routes.js +47 -10
- package/dist/web/routes/local-model-routes.js.map +1 -1
- package/dist/web/routes/session-routes.d.ts.map +1 -1
- package/dist/web/routes/session-routes.js +52 -4
- package/dist/web/routes/session-routes.js.map +1 -1
- package/dist/web/routes/status-telemetry-routes.d.ts.map +1 -1
- package/dist/web/routes/status-telemetry-routes.js +6 -0
- package/dist/web/routes/status-telemetry-routes.js.map +1 -1
- package/dist/web/routes/system-routes.d.ts +2 -2
- package/dist/web/routes/system-routes.d.ts.map +1 -1
- package/dist/web/routes/system-routes.js +35 -4
- package/dist/web/routes/system-routes.js.map +1 -1
- package/dist/web/schemas.d.ts +30 -0
- package/dist/web/schemas.d.ts.map +1 -1
- package/dist/web/schemas.js +56 -4
- package/dist/web/schemas.js.map +1 -1
- package/dist/web/sensitive-path.d.ts +8 -1
- package/dist/web/sensitive-path.d.ts.map +1 -1
- package/dist/web/sensitive-path.js +23 -4
- package/dist/web/sensitive-path.js.map +1 -1
- package/dist/web/server.d.ts.map +1 -1
- package/dist/web/server.js +1 -0
- package/dist/web/server.js.map +1 -1
- package/dist/web/session-wait-registry.d.ts +19 -4
- package/dist/web/session-wait-registry.d.ts.map +1 -1
- package/dist/web/session-wait-registry.js +26 -5
- package/dist/web/session-wait-registry.js.map +1 -1
- package/dist/web/voice-stream.d.ts +4 -3
- package/dist/web/voice-stream.d.ts.map +1 -1
- package/dist/web/voice-stream.js +5 -4
- package/dist/web/voice-stream.js.map +1 -1
- package/package.json +1 -1
- package/skills/codeman/SKILL.md +147 -42
- package/skills/codeman/preamble.sh +102 -26
- package/skills/codeman/reference/endpoints.md +13 -9
- package/skills/codeman/reference/messaging.md +2 -2
- package/skills/codeman/reference/recipes.md +2 -2
- package/skills/codeman/reference/verbs.md +46 -15
- package/dist/web/public/app.8719143d.js.br +0 -0
- package/dist/web/public/app.8719143d.js.gz +0 -0
- package/dist/web/public/i18n.1e96a258.js +0 -2
- package/dist/web/public/i18n.1e96a258.js.br +0 -0
- package/dist/web/public/i18n.1e96a258.js.gz +0 -0
- package/dist/web/public/image-input.a5d0f8f3.js.br +0 -0
- package/dist/web/public/image-input.a5d0f8f3.js.gz +0 -0
- package/dist/web/public/keyboard-accessory.b941676c.js.br +0 -0
- package/dist/web/public/keyboard-accessory.b941676c.js.gz +0 -0
- package/dist/web/public/mobile.4dfd5c55.css +0 -1
- package/dist/web/public/mobile.4dfd5c55.css.br +0 -0
- package/dist/web/public/mobile.4dfd5c55.css.gz +0 -0
- package/dist/web/public/panels-ui.d3f4f1c4.js.br +0 -0
- package/dist/web/public/panels-ui.d3f4f1c4.js.gz +0 -0
- package/dist/web/public/session-ui.a7c8c095.js +0 -106
- package/dist/web/public/session-ui.a7c8c095.js.br +0 -0
- package/dist/web/public/session-ui.a7c8c095.js.gz +0 -0
- package/dist/web/public/settings-ui.11da6f15.js.br +0 -0
- package/dist/web/public/settings-ui.11da6f15.js.gz +0 -0
- package/dist/web/public/styles.63382d6e.css +0 -1
- package/dist/web/public/styles.63382d6e.css.br +0 -0
- package/dist/web/public/styles.63382d6e.css.gz +0 -0
- package/dist/web/public/terminal-ui.f92eae28.js.br +0 -0
- package/dist/web/public/terminal-ui.f92eae28.js.gz +0 -0
- package/dist/web/public/voice-input.2342c37b.js.br +0 -0
- package/dist/web/public/voice-input.2342c37b.js.gz +0 -0
|
@@ -216,7 +216,10 @@ you typed matches the moment it is typed.
|
|
|
216
216
|
generic marker (`BUILD OK`) matched against stale text, either from `from=buffer`
|
|
217
217
|
scanning an earlier run or from tmux replaying old screen content as fresh output on an
|
|
218
218
|
attach/resize/redraw. A unique-per-call token (`DONE_$RANDOM`) makes both `from` modes
|
|
219
|
-
safe.
|
|
219
|
+
safe. ⚠️ In a fan-out put something of the WORKER into it too (its id, the loop index): zsh,
|
|
220
|
+
the shell Claude Code runs on a Mac, hands every subshell the same `$RANDOM` until the
|
|
221
|
+
parent shell reads it, so `( … $RANDOM … ) &` twice draws one number. `sendmark` adds six
|
|
222
|
+
characters of the worker's id for that reason.
|
|
220
223
|
|
|
221
224
|
### 6. `jq` parse error instead of an `errorCode`
|
|
222
225
|
|
|
@@ -242,7 +245,7 @@ minutes, never retry the credential.
|
|
|
242
245
|
flushed slightly *after* the `stop` hook fires, so a read taken the instant the wait
|
|
243
246
|
returns is too early (verified live: empty on the first call, full prose seconds later).
|
|
244
247
|
It is also `""` before the worker's first completed turn, and permanently `""` for
|
|
245
|
-
`shell`, `opencode`, `gemini`, `antigravity`, `pi`, `grok`, `omp` and `
|
|
248
|
+
`shell`, `opencode`, `gemini`, `antigravity`, `pi`, `grok`, `omp`, `copilot` and `jcode`, which write no transcript at
|
|
246
249
|
all. `deepseek` is NOT one of those — it is read from `$DSH_HOME/sessions/**` and lags
|
|
247
250
|
for the same reason claude does (the harness finalizes the assistant message just after
|
|
248
251
|
it reports `idle`), so poll it the same way.
|
|
@@ -346,7 +349,7 @@ ESC=$(printf '\033')
|
|
|
346
349
|
|
|
347
350
|
`POST /api/v1/quick-start` body (all optional):
|
|
348
351
|
`{"caseName":"worker-1","mode":"claude","sessionName":"auth-worker","effort":"high"}`
|
|
349
|
-
, `mode` ∈ `claude|shell|opencode|codex|gemini|antigravity|pi|grok|deepseek|omp|copilot`; response is
|
|
352
|
+
, `mode` ∈ `claude|shell|opencode|codex|gemini|antigravity|pi|grok|deepseek|omp|copilot|jcode`; response is
|
|
350
353
|
`.data.{sessionId, caseName, casePath}`. Creates the case directory (a real directory
|
|
351
354
|
on the user's disk) if missing, do not retry it in a loop, and remember the name.
|
|
352
355
|
|
|
@@ -361,9 +364,10 @@ a soft default the worker can change with `/advisor`. Remote and docker cases re
|
|
|
361
364
|
`OPERATION_FAILED`; it never falls back to claude. Probe first whenever you did not pick
|
|
362
365
|
the mode yourself: `GET /api/v1/claude/status`, `GET /api/v1/opencode/status`,
|
|
363
366
|
`GET /api/v1/codex/status`, `GET /api/v1/gemini/status`, `GET /api/v1/antigravity/status`, `GET /api/v1/grok/status`, `GET /api/v1/deepseek/status`,
|
|
364
|
-
`GET /api/v1/pi/status`, `GET /api/v1/omp/status` and `GET /api/v1/
|
|
365
|
-
Pi's, grok's, OMP's and
|
|
366
|
-
`grok` is a name with npm squatters,
|
|
367
|
+
`GET /api/v1/pi/status`, `GET /api/v1/omp/status`, `GET /api/v1/copilot/status` and `GET /api/v1/jcode/status` each return `.data.{available, path}` (no session needed).
|
|
368
|
+
Pi's, grok's, OMP's, Copilot's and jcode's also carry `.data.version`, because `pi` is a short generic name,
|
|
369
|
+
`grok` is a name with npm squatters, `omp` is a similarly short name, `copilot` is a generic one, and an
|
|
370
|
+
unrelated npm package is also called `jcode`, so an unrelated
|
|
367
371
|
binary on `$PATH` can shadow any of them: the resolver rejects one whose `--version` is
|
|
368
372
|
not version-shaped, so `available:false` there can mean "a different program of the same
|
|
369
373
|
name is in front" rather than "nothing is installed". `shell` has no CLI to probe.
|
|
@@ -492,8 +496,8 @@ Quirks that will bite you:
|
|
|
492
496
|
- ⚠️ **`active-tools` proves presence, never absence.** It is fed by the BashToolParser,
|
|
493
497
|
which reads Claude's rendered `● Bash(…)` lines, and `_processExpensiveParsers`
|
|
494
498
|
returns early for every external CLI mode (`session.ts:~2225`), so it is permanently
|
|
495
|
-
`[]` on `opencode`/`codex`/`gemini`/`antigravity`/`pi`/`grok`/`deepseek`/`omp`/`copilot`. ⚠️ **`shell` is NOT one of those**
|
|
496
|
-
(`isExternalCliMode
|
|
499
|
+
`[]` on `opencode`/`codex`/`gemini`/`antigravity`/`pi`/`grok`/`deepseek`/`omp`/`copilot`/`jcode`. ⚠️ **`shell` is NOT one of those**
|
|
500
|
+
(`isExternalCliMode` covers only those external CLIs), so the parser does
|
|
497
501
|
run on a shell worker, and `TEXT_COMMAND_PATTERN` (`bash-tool-parser.ts:89`) matches
|
|
498
502
|
bare `tail|cat|head|less|grep|watch|multitail <path>` lines with no `● Bash(` wrapper:
|
|
499
503
|
a shell worker running `cat build.log` really does populate this. In practice it stays
|
|
@@ -657,7 +661,7 @@ Three bounded long-polls. Shared semantics:
|
|
|
657
661
|
| `idle` | output stabilized + prompt detected, heuristic, can flap mid-turn | every mode |
|
|
658
662
|
| `working` | session started producing output | every mode |
|
|
659
663
|
| `stop` | Claude Code `stop` hook, the definitive end-of-turn | `claude`; also `deepseek`, whose harness reports its own end of turn while its status bridge is on |
|
|
660
|
-
| `blocked` | `permission_prompt` / `elicitation_dialog` hook, the worker needs an answer | `claude`; also `deepseek` (its harness reports its dialogs, same condition),
|
|
664
|
+
| `blocked` | `permission_prompt` / `elicitation_dialog` hook, the worker needs an answer | `claude`; also `deepseek` (its harness reports its dialogs, same condition), `codex`, whose approval, question and trust dialogs Codeman reads off its screen, and a local `omp` session, whose tool approval dialogs a hook module in its workspace reports (answer all three in the terminal, never through the inbox) |
|
|
661
665
|
| `exit` | PTY exited or session deleted | every mode |
|
|
662
666
|
|
|
663
667
|
⚠️ **`claude` mode is necessary for `stop`/`blocked`, not sufficient. The real
|
|
@@ -56,7 +56,7 @@ own head: the worker enforcing the cap is the one who has to be told about it.
|
|
|
56
56
|
| synchronize on end of turn | HTTP `wait until=stop` (fires for message-initiated turns too, verified live) |
|
|
57
57
|
| liveness / death check | HTTP `wait?until=exit` |
|
|
58
58
|
| interrupt a running turn (break-glass) | HTTP input, a bare `\x1b` with no `\r` |
|
|
59
|
-
| non-claude modes (`shell`/`opencode`/`codex`/`gemini`/`antigravity`/`pi`/`grok`/`deepseek`/`omp`/`copilot`) | HTTP only (no other CLI has messaging) |
|
|
59
|
+
| non-claude modes (`shell`/`opencode`/`codex`/`gemini`/`antigravity`/`pi`/`grok`/`deepseek`/`omp`/`copilot`/`jcode`) | HTTP only (no other CLI has messaging) |
|
|
60
60
|
| delete | HTTP, via SKILL.md's `delete_session` guard |
|
|
61
61
|
|
|
62
62
|
## Availability: probe, never assume
|
|
@@ -352,7 +352,7 @@ Without a break-glass, a pair with a bad brief is a token bonfire with no off sw
|
|
|
352
352
|
|
|
353
353
|
### Mixed fleets: the pairing matrix
|
|
354
354
|
|
|
355
|
-
Non-claude workers (`shell`, `opencode`, `codex`, `gemini`, `antigravity`, `pi`, `grok`, `deepseek`, `omp`, `copilot`) cannot be peers
|
|
355
|
+
Non-claude workers (`shell`, `opencode`, `codex`, `gemini`, `antigravity`, `pi`, `grok`, `deepseek`, `omp`, `copilot`, `jcode`) cannot be peers
|
|
356
356
|
at all; no other CLI has this feature. Their tasks route over HTTP, and you never mention
|
|
357
357
|
messaging in their briefs. The claude half of the fleet can use messaging among itself,
|
|
358
358
|
subject to the namespace rule: **messaging works between two sessions that share one
|
|
@@ -21,7 +21,7 @@ by sourcing the preamble file the §0 bootstrap wrote, and checking its version
|
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
. "${XDG_CACHE_HOME:-$HOME/.cache}/codeman-agent-$CODEMAN_SESSION_ID.sh" 2>/dev/null
|
|
24
|
-
[ "${CODEMAN_PREAMBLE:-}" = 1.
|
|
24
|
+
[ "${CODEMAN_PREAMBLE:-}" = 1.51.0 ] || { echo "preamble missing or stale; re-run the §0 bootstrap"; exit 1; }
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Do **not** re-paste the preamble body into each call. Sourcing it is what retires the
|
|
@@ -188,7 +188,7 @@ for _ in $(seq 1 10); do
|
|
|
188
188
|
done
|
|
189
189
|
printf '%s\n' "$TXT"
|
|
190
190
|
# (.data is {text,timestamp}; text is also "" before the first completed turn and
|
|
191
|
-
# always "" for shell/opencode/gemini/antigravity/pi/grok/omp/copilot, which have no transcript, use
|
|
191
|
+
# always "" for shell/opencode/gemini/antigravity/pi/grok/omp/copilot/jcode, which have no transcript, use
|
|
192
192
|
# the terminal tail there, and here only to diagnose an unsubmitted prompt.)
|
|
193
193
|
|
|
194
194
|
# 6. clean up: exact id, own list only, through the fail-closed preamble helper
|
|
@@ -383,12 +383,17 @@ recovered by submitting it with `{"input":"\r"}`.
|
|
|
383
383
|
only when the workspace actually has them, see [§5.1](#51-where-to-spawn)) **and for
|
|
384
384
|
`deepseek`** — the one external CLI that reports its own lifecycle, so its `stop` is a
|
|
385
385
|
real end-of-turn signal rather than a guess. On
|
|
386
|
-
`shell`/`opencode`/`codex`/`gemini`/`antigravity`/`pi`/`grok`/`omp`/`copilot`, requesting them explicitly is a
|
|
386
|
+
`shell`/`opencode`/`codex`/`gemini`/`antigravity`/`pi`/`grok`/`omp`/`copilot`/`jcode`, requesting them explicitly is a
|
|
387
387
|
400 (except `blocked` on `codex`, which Codeman reads off its screen when an approval,
|
|
388
|
-
question or trust dialog is up; a wait for it answers at once if one already is
|
|
388
|
+
question or trust dialog is up; a wait for it answers at once if one already is; and
|
|
389
|
+
`blocked` on a local `omp` session, next paragraph), and
|
|
389
390
|
lifecycle transitions there are coarse (a short shell command may emit **no**
|
|
390
391
|
`idle` transition at all, verified live), so synchronize those with markers.
|
|
391
392
|
|
|
393
|
+
`blocked` also works on a local `omp` session: Codeman installs a hook module into its
|
|
394
|
+
workspace that reports omp's approval dialogs (the inbox item is alert-only, so answer in
|
|
395
|
+
the pane). `stop` stays a 400 there, so wait on `idle` or a marker for end-of-turn.
|
|
396
|
+
|
|
392
397
|
⚠️ A dsh session can still refuse them for a per-SESSION reason: `statusReporting:
|
|
393
398
|
false` at create time disarms the bridge, and an explicit `until=stop` is then a 400
|
|
394
399
|
naming that setting. And a `stop` that is *accepted* is not proof it will ever fire —
|
|
@@ -437,7 +442,7 @@ from the transcript file, which is flushed slightly *after* the `stop` hook fire
|
|
|
437
442
|
single read taken the instant send-and-wait returns comes back `""` even though the
|
|
438
443
|
turn finished (verified live: empty on the first call, full text seconds later). `text`
|
|
439
444
|
is also `""` before the worker's first completed turn, and always `""` for modes with
|
|
440
|
-
no transcript (`shell`, `opencode`, `gemini`, `antigravity`, `pi`, `grok`, `omp`, `copilot`; the first four
|
|
445
|
+
no transcript (`shell`, `opencode`, `gemini`, `antigravity`, `pi`, `grok`, `omp`, `copilot`, `jcode`; the first four
|
|
441
446
|
verified live, pi from the same source path), which is
|
|
442
447
|
why the loop above is bounded rather than open-ended. A dsh worker lags too, for its own
|
|
443
448
|
reason: the harness finalizes the assistant message just after it reports `idle`. Fall back to the terminal buffer
|
|
@@ -526,7 +531,7 @@ turn), and both better than diffing terminal samples:
|
|
|
526
531
|
```
|
|
527
532
|
|
|
528
533
|
⚠️ `active-tools` is parsed out of Claude's own output format, so it is **empty for
|
|
529
|
-
`opencode`/`codex`/`gemini`/`antigravity`/`pi`/`grok`/`deepseek`/`omp`/`copilot`** (those parsers are skipped wholesale) and
|
|
534
|
+
`opencode`/`codex`/`gemini`/`antigravity`/`pi`/`grok`/`deepseek`/`omp`/`copilot`/`jcode`** (those parsers are skipped wholesale) and
|
|
530
535
|
in practice empty for `shell`. Source-verified, not measured live.
|
|
531
536
|
|
|
532
537
|
Only if neither helps: sample `terminal?tail=` twice a few seconds apart. A changing
|
|
@@ -831,9 +836,19 @@ can be spawned now (`running: true`) or once `spawn_worker` has started the runt
|
|
|
831
836
|
|
|
832
837
|
```json
|
|
833
838
|
{"spawnable":true,"state":"installed","running":true,"cli":"opencode","cliLabel":"OpenCode",
|
|
834
|
-
"endpointId":"local-ollama","modelId":"qwen3.6:35b-a3b","modelLabel":"Qwen3.6 35B-A3B"
|
|
839
|
+
"endpointId":"local-ollama","modelId":"qwen3.6:35b-a3b","modelLabel":"Qwen3.6 35B-A3B",
|
|
840
|
+
"agents":[{"cli":"opencode","cliLabel":"OpenCode","status":"ready","default":true,"readyMark":"┃"},
|
|
841
|
+
{"cli":"pi","cliLabel":"Pi","status":"installable","default":false}],
|
|
842
|
+
"models":[{"id":"qwen3.6:35b-a3b","label":"Qwen3.6 35B-A3B","active":true,"status":"ready","sizeGb":"23.1"}]}
|
|
835
843
|
```
|
|
836
844
|
|
|
845
|
+
`cli` is the default coding agent. `agents` is every agent the model can be run with
|
|
846
|
+
(`install.harnesses` of the route): `ready` can be started, `installable` and `installing`
|
|
847
|
+
are an install a person makes or made in the window, `setup-needed` is an agent with a setup
|
|
848
|
+
of its own (DeepSeek Harness without a terminal profile). `models` is what is on the Mac
|
|
849
|
+
(`install.library`); only the `active` one runs. A Codeman older than 1.51 sends neither
|
|
850
|
+
list, and both keys are then absent.
|
|
851
|
+
|
|
837
852
|
Exit 1 carries `reason` and `message` (the server's own sentence where it has one):
|
|
838
853
|
|
|
839
854
|
| `reason` | What it means | What to tell the user |
|
|
@@ -841,6 +856,7 @@ Exit 1 carries `reason` and `message` (the server's own sentence where it has on
|
|
|
841
856
|
| `not-mac` | the server is not on macOS | local models need a Mac with Apple silicon |
|
|
842
857
|
| `not-installed` | nothing installed; on a Mac where no model fits, `message` says why | install one with **Run a local model** on the welcome screen |
|
|
843
858
|
| `install-unfinished` | a job is installing, paused or failed (`state`, `step`, `errorCode`) | finish it in that window; nothing here continues it |
|
|
859
|
+
| `no-agent` | installed, and `agents` holds none that is `ready` | install a coding agent in that window (a chip that says "Not installed") |
|
|
844
860
|
| `blocked` | installed, but the server refuses a session now (`errorCode`: `model-changed`, `port-in-use`, `runtime-start-failed`, `runtime-stopped`) | the window shows the one button that helps |
|
|
845
861
|
| `admin-only` | multi-user mode, and you are not an admin (403) | ask an admin |
|
|
846
862
|
| `unsupported` | the server has no local model routes (404) | it predates the feature |
|
|
@@ -849,29 +865,44 @@ Exit 1 carries `reason` and `message` (the server's own sentence where it has on
|
|
|
849
865
|
It never downloads, installs or starts anything. Installing is many gigabytes the person
|
|
850
866
|
confirms in the window, and no route this skill calls can do it.
|
|
851
867
|
|
|
852
|
-
**`spawn_worker <name> local`** (also `name:local` in `spawn_workers`),
|
|
868
|
+
**`spawn_worker <name> local`** (also `name:local` in `spawn_workers`), and
|
|
869
|
+
**`spawn_worker <name> local:<cli>`** to choose the coding agent, in order:
|
|
853
870
|
|
|
854
|
-
1. `local_model`; anything but exit 0 fails the spawn with that reason.
|
|
871
|
+
1. `local_model`; anything but exit 0 fails the spawn with that reason. With `local:<cli>`
|
|
872
|
+
the agent must be a row of `agents` whose status is `ready`; any other status, or an
|
|
873
|
+
agent the model cannot be run with, fails the spawn with the ones that are startable.
|
|
874
|
+
On a Codeman that lists no agents only its one `cli` can be named. No agent is ever
|
|
875
|
+
installed from here.
|
|
855
876
|
2. Runtime stopped: `POST /api/v1/local-model/runtime {"action":"start"}`, what the
|
|
856
877
|
window's Start button sends, then `local_model` again until it reports `running`
|
|
857
878
|
(about 30 s at most). This undoes a Stop the person made. Concurrent spawns may both
|
|
858
879
|
send it; the server runs one runtime verb at a time and keeps a runtime that runs.
|
|
859
880
|
3. `POST /api/v1/quick-start {"caseName":…,"mode":"<cli>","parentSessionId":…,
|
|
860
881
|
"customModel":{"endpointId":…,"modelId":…}}`: the launch of the window's "Start a
|
|
861
|
-
session", with the
|
|
882
|
+
session", with the chosen agent as the mode. No advisor, which is a cloud model. A Pi
|
|
883
|
+
worker also carries `"piConfig":{"approveProjectTrust":false}` (`--no-approve`): on a
|
|
884
|
+
custom model Pi keeps no home, so it would ask to trust the folder in every session with
|
|
885
|
+
Trust preselected, and the task prompt's Enter would answer it.
|
|
862
886
|
The server checks again that its own runtime runs and that the model on disk is the one
|
|
863
887
|
it installed, and refuses otherwise (`OPERATION_FAILED`, with the reason).
|
|
864
888
|
4. An answer of `requiresContextWarning` or `requiresConfirmation` is a question for a
|
|
865
889
|
person (a context below the agent's safe floor, a model swap that would evict another
|
|
866
890
|
session's model). It fails the spawn with the answer on stderr and nothing on stdout,
|
|
867
891
|
and no `confirmed*` flag is ever sent.
|
|
868
|
-
5. Readiness:
|
|
869
|
-
`wait-output`, 45 s, and the session deleted on a miss.
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
892
|
+
5. Readiness: a token the agent's composer draws once it takes input, through
|
|
893
|
+
`wait-output`, 45 s, and the session deleted on a miss. The token is the agent's
|
|
894
|
+
`readyMark` from `local_model` when the server sends one, else the one measured for this
|
|
895
|
+
skill, and `LOCAL_READY_MARK` overrides both. All of it was measured on Linux through a
|
|
896
|
+
custom model launch, none of it on a Mac yet:
|
|
897
|
+
|
|
898
|
+
| Agent | Token | What was measured |
|
|
899
|
+
|-------|-------|-------------------|
|
|
900
|
+
| OpenCode | `┃` | 1.3.0 and 1.19.5: nothing draws it before the composer, no first-run screen, and a prompt pasted at the first `┃` was submitted (2 of 2 on 1.19.5) |
|
|
901
|
+
| DeepSeek Harness | `❯`, then a look at the pane | 0.1.1-rc.2 with dsh-TUI 0.10.0-beta.1: splash, composer and status line arrive in one frame; a prompt sent at the mark was submitted (2 of 2). The harness reports idle about 150 ms BEFORE that frame, so `stop` is no readiness signal. 0.2.2-rc.1 with dsh-TUI 0.19.0: a setup guide ("Step 1 of 4") opens in every session until a person has finished it once, and its cursor is `❯` too (the mark matched on it, 2 of 2), so after the mark the rendered pane is read and a worker that shows the guide is deleted, never handed back; with the guide finished, a prompt sent at the mark was submitted |
|
|
902
|
+
| Pi | `extended-keys` | 1.5.2: Pi paints its composer rules in its first frame and ignores Enter until startup has finished, so the rule `─` is NOT a mark (a prompt sent at it stayed in the composer, 2 of 2). The last line of its startup is a warning that tmux's `extended-keys` option is off, which it is on Codeman's socket; a prompt sent once that word showed was submitted (4 of 4). A side effect, not a contract: a Pi that stops printing it fails the spawn until `LOCAL_READY_MARK` names what it draws instead |
|
|
903
|
+
|
|
904
|
+
A claude agent takes the claude path instead (hooks vetted, `shift+tab`, the trust
|
|
905
|
+
dialog). An agent with no token at all is refused before a session exists.
|
|
875
906
|
|
|
876
907
|
**`sendmark <sid> <prompt> [timeoutSec]`** drives it, and any other agent worker without
|
|
877
908
|
an end-of-turn signal ([§5.5](#55-markers-for-hook-less-workers)):
|
|
Binary file
|
|
Binary file
|