@skillcdn/console 0.4.7 → 0.5.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.
- package/README.md +74 -14
- package/SKILLCDN.md +5 -3
- package/dist/agent-page.d.ts +44 -0
- package/dist/agent-page.d.ts.map +1 -0
- package/dist/agent-page.js +415 -0
- package/dist/agent-page.js.map +1 -0
- package/dist/agent-stream.d.ts +52 -0
- package/dist/agent-stream.d.ts.map +1 -0
- package/dist/agent-stream.js +155 -0
- package/dist/agent-stream.js.map +1 -0
- package/dist/api.d.ts +12 -6
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +11 -5
- package/dist/api.js.map +1 -1
- package/dist/avatar.d.ts +137 -0
- package/dist/avatar.d.ts.map +1 -0
- package/dist/avatar.js +1216 -0
- package/dist/avatar.js.map +1 -0
- package/dist/charts.d.ts +103 -0
- package/dist/charts.d.ts.map +1 -0
- package/dist/charts.js +182 -0
- package/dist/charts.js.map +1 -0
- package/dist/cli/cli.d.ts +39 -1
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +2424 -296
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/command-words.d.ts +20 -0
- package/dist/cli/command-words.d.ts.map +1 -0
- package/dist/cli/command-words.js +51 -0
- package/dist/cli/command-words.js.map +1 -0
- package/dist/cli/credentials.d.ts +59 -5
- package/dist/cli/credentials.d.ts.map +1 -1
- package/dist/cli/credentials.js +128 -16
- package/dist/cli/credentials.js.map +1 -1
- package/dist/cli/directory.d.ts +19 -4
- package/dist/cli/directory.d.ts.map +1 -1
- package/dist/cli/directory.js +16 -8
- package/dist/cli/directory.js.map +1 -1
- package/dist/cli/format.d.ts +91 -8
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +386 -57
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts +13 -4
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +202 -62
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/main.js +94 -0
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/pack.d.ts +69 -36
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +241 -188
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/plugin-check.d.ts +42 -0
- package/dist/cli/plugin-check.d.ts.map +1 -1
- package/dist/cli/plugin-check.js +221 -36
- package/dist/cli/plugin-check.js.map +1 -1
- package/dist/cli/plugin-cli.d.ts +6 -1
- package/dist/cli/plugin-cli.d.ts.map +1 -1
- package/dist/cli/plugin-cli.js +21 -4
- package/dist/cli/plugin-cli.js.map +1 -1
- package/dist/cli/plugin-main.js +1 -0
- package/dist/cli/plugin-main.js.map +1 -1
- package/dist/cli/runner-host.d.ts +36 -0
- package/dist/cli/runner-host.d.ts.map +1 -0
- package/dist/cli/runner-host.js +154 -0
- package/dist/cli/runner-host.js.map +1 -0
- package/dist/cli/serve.d.ts +33 -1
- package/dist/cli/serve.d.ts.map +1 -1
- package/dist/cli/serve.js +275 -6
- package/dist/cli/serve.js.map +1 -1
- package/dist/cli/setup-machine.d.ts +36 -0
- package/dist/cli/setup-machine.d.ts.map +1 -0
- package/dist/cli/setup-machine.js +109 -0
- package/dist/cli/setup-machine.js.map +1 -0
- package/dist/client.d.ts +189 -10
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +192 -57
- package/dist/client.js.map +1 -1
- package/dist/compat.d.ts +1 -1
- package/dist/compat.js +2 -2
- package/dist/components/agent-page.d.ts +384 -0
- package/dist/components/agent-page.d.ts.map +1 -0
- package/dist/components/agent-page.js +985 -0
- package/dist/components/agent-page.js.map +1 -0
- package/dist/components/agents.d.ts +102 -0
- package/dist/components/agents.d.ts.map +1 -0
- package/dist/components/agents.js +246 -0
- package/dist/components/agents.js.map +1 -0
- package/dist/components/calendar.d.ts +17 -17
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +7 -2
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/charts.d.ts +157 -0
- package/dist/components/charts.d.ts.map +1 -0
- package/dist/components/charts.js +182 -0
- package/dist/components/charts.js.map +1 -0
- package/dist/components/comments.d.ts +2 -0
- package/dist/components/comments.d.ts.map +1 -1
- package/dist/components/comments.js +1 -1
- package/dist/components/comments.js.map +1 -1
- package/dist/components/connect.d.ts.map +1 -1
- package/dist/components/connect.js +7 -2
- package/dist/components/connect.js.map +1 -1
- package/dist/components/decision-form.d.ts +21 -0
- package/dist/components/decision-form.d.ts.map +1 -1
- package/dist/components/decision-form.js +20 -6
- package/dist/components/decision-form.js.map +1 -1
- package/dist/components/decision-list.d.ts +24 -0
- package/dist/components/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +54 -5
- package/dist/components/decision-list.js.map +1 -1
- package/dist/components/desk-records.d.ts +102 -0
- package/dist/components/desk-records.d.ts.map +1 -0
- package/dist/components/desk-records.js +221 -0
- package/dist/components/desk-records.js.map +1 -0
- package/dist/components/desk.d.ts +85 -0
- package/dist/components/desk.d.ts.map +1 -0
- package/dist/components/desk.js +135 -0
- package/dist/components/desk.js.map +1 -0
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +26 -1
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/home.d.ts +12 -1
- package/dist/components/home.d.ts.map +1 -1
- package/dist/components/home.js +175 -16
- package/dist/components/home.js.map +1 -1
- package/dist/components/my-decisions.d.ts +5 -0
- package/dist/components/my-decisions.d.ts.map +1 -1
- package/dist/components/my-decisions.js +3 -3
- package/dist/components/my-decisions.js.map +1 -1
- package/dist/components/people.d.ts +17 -0
- package/dist/components/people.d.ts.map +1 -1
- package/dist/components/people.js +55 -19
- package/dist/components/people.js.map +1 -1
- package/dist/components/picker.d.ts +2 -0
- package/dist/components/picker.d.ts.map +1 -1
- package/dist/components/picker.js +1 -1
- package/dist/components/picker.js.map +1 -1
- package/dist/components/pictures.d.ts +38 -10
- package/dist/components/pictures.d.ts.map +1 -1
- package/dist/components/pictures.js +195 -40
- package/dist/components/pictures.js.map +1 -1
- package/dist/components/plugin-events.d.ts +29 -0
- package/dist/components/plugin-events.d.ts.map +1 -0
- package/dist/components/plugin-events.js +139 -0
- package/dist/components/plugin-events.js.map +1 -0
- package/dist/components/plugin-frame.d.ts.map +1 -1
- package/dist/components/plugin-frame.js +14 -37
- package/dist/components/plugin-frame.js.map +1 -1
- package/dist/components/plugin-settings.d.ts.map +1 -1
- package/dist/components/plugin-settings.js +58 -7
- package/dist/components/plugin-settings.js.map +1 -1
- package/dist/components/projects.d.ts.map +1 -1
- package/dist/components/projects.js +30 -10
- package/dist/components/projects.js.map +1 -1
- package/dist/components/rules.d.ts +8 -10
- package/dist/components/rules.d.ts.map +1 -1
- package/dist/components/rules.js +36 -14
- package/dist/components/rules.js.map +1 -1
- package/dist/components/sessions.d.ts.map +1 -1
- package/dist/components/sessions.js +8 -4
- package/dist/components/sessions.js.map +1 -1
- package/dist/components/setup.d.ts +59 -0
- package/dist/components/setup.d.ts.map +1 -0
- package/dist/components/setup.js +93 -0
- package/dist/components/setup.js.map +1 -0
- package/dist/components/sign-in.js +1 -1
- package/dist/components/sign-in.js.map +1 -1
- package/dist/components/task-form.d.ts.map +1 -1
- package/dist/components/task-form.js +2 -2
- package/dist/components/task-form.js.map +1 -1
- package/dist/components/task-list.d.ts +7 -6
- package/dist/components/task-list.d.ts.map +1 -1
- package/dist/components/task-list.js.map +1 -1
- package/dist/components/task-view.d.ts +3 -0
- package/dist/components/task-view.d.ts.map +1 -1
- package/dist/components/task-view.js +1 -1
- package/dist/components/task-view.js.map +1 -1
- package/dist/components/ui.d.ts +78 -8
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +88 -9
- package/dist/components/ui.js.map +1 -1
- package/dist/components/work.d.ts +5 -5
- package/dist/components/work.d.ts.map +1 -1
- package/dist/components/work.js.map +1 -1
- package/dist/components/workspace.d.ts +17 -0
- package/dist/components/workspace.d.ts.map +1 -1
- package/dist/components/workspace.js +129 -2
- package/dist/components/workspace.js.map +1 -1
- package/dist/connect-page.d.ts.map +1 -1
- package/dist/connect-page.js +5 -2
- package/dist/connect-page.js.map +1 -1
- package/dist/console.css +7551 -4580
- package/dist/console.d.ts +20 -0
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +331 -57
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts +22 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +62 -34
- package/dist/data.js.map +1 -1
- package/dist/desk-page.d.ts +38 -0
- package/dist/desk-page.d.ts.map +1 -0
- package/dist/desk-page.js +184 -0
- package/dist/desk-page.js.map +1 -0
- package/dist/desk-records-page.d.ts +18 -0
- package/dist/desk-records-page.d.ts.map +1 -0
- package/dist/desk-records-page.js +130 -0
- package/dist/desk-records-page.js.map +1 -0
- package/dist/desk-records.d.ts +247 -0
- package/dist/desk-records.d.ts.map +1 -0
- package/dist/desk-records.js +543 -0
- package/dist/desk-records.js.map +1 -0
- package/dist/desk.d.ts +122 -0
- package/dist/desk.d.ts.map +1 -0
- package/dist/desk.js +211 -0
- package/dist/desk.js.map +1 -0
- package/dist/feed-stream.d.ts +39 -0
- package/dist/feed-stream.d.ts.map +1 -0
- package/dist/feed-stream.js +117 -0
- package/dist/feed-stream.js.map +1 -0
- package/dist/glances.d.ts +39 -0
- package/dist/glances.d.ts.map +1 -0
- package/dist/glances.js +94 -0
- package/dist/glances.js.map +1 -0
- package/dist/home-tiles.d.ts +69 -5
- package/dist/home-tiles.d.ts.map +1 -1
- package/dist/home-tiles.js +347 -9
- package/dist/home-tiles.js.map +1 -1
- package/dist/i18n/en.d.ts +773 -3
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +770 -9
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +736 -9
- package/dist/i18n/ko.js.map +1 -1
- package/dist/index.d.ts +19 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -5
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +67 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +67 -0
- package/dist/limits.js.map +1 -1
- package/dist/onboarding.d.ts +21 -0
- package/dist/onboarding.d.ts.map +1 -0
- package/dist/onboarding.js +43 -0
- package/dist/onboarding.js.map +1 -0
- package/dist/persona.d.ts +34 -0
- package/dist/persona.d.ts.map +1 -0
- package/dist/persona.js +71 -0
- package/dist/persona.js.map +1 -0
- package/dist/plugin/context.d.ts +42 -11
- package/dist/plugin/context.d.ts.map +1 -1
- package/dist/plugin/limits.d.ts +2 -0
- package/dist/plugin/limits.d.ts.map +1 -1
- package/dist/plugin/limits.js +2 -0
- package/dist/plugin/limits.js.map +1 -1
- package/dist/plugin/manifest.d.ts +13 -0
- package/dist/plugin/manifest.d.ts.map +1 -1
- package/dist/plugin/manifest.js +34 -4
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +56 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +42 -0
- package/dist/plugin/rest-schemas.js.map +1 -1
- package/dist/plugin/sandbox.d.ts.map +1 -1
- package/dist/plugin/sandbox.js +4 -1
- package/dist/plugin/sandbox.js.map +1 -1
- package/dist/plugin/testing.d.ts +6 -2
- package/dist/plugin/testing.d.ts.map +1 -1
- package/dist/plugin/testing.js +52 -10
- package/dist/plugin/testing.js.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/records.d.ts +283 -0
- package/dist/records.d.ts.map +1 -0
- package/dist/records.js +543 -0
- package/dist/records.js.map +1 -0
- package/dist/router.d.ts +50 -3
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +78 -7
- package/dist/router.js.map +1 -1
- package/dist/routes.d.ts +12 -2
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +14 -1
- package/dist/routes.js.map +1 -1
- package/dist/rules.d.ts +30 -11
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +99 -42
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts +20 -0
- package/dist/runner/acp.d.ts.map +1 -0
- package/dist/runner/acp.js +1132 -0
- package/dist/runner/acp.js.map +1 -0
- package/dist/runner/claude.d.ts +13 -0
- package/dist/runner/claude.d.ts.map +1 -0
- package/dist/runner/claude.js +615 -0
- package/dist/runner/claude.js.map +1 -0
- package/dist/runner/codex.d.ts +19 -0
- package/dist/runner/codex.d.ts.map +1 -0
- package/dist/runner/codex.js +597 -0
- package/dist/runner/codex.js.map +1 -0
- package/dist/runner/config.d.ts +35 -0
- package/dist/runner/config.d.ts.map +1 -0
- package/dist/runner/config.js +74 -0
- package/dist/runner/config.js.map +1 -0
- package/dist/runner/desk.d.ts +81 -0
- package/dist/runner/desk.d.ts.map +1 -0
- package/dist/runner/desk.js +303 -0
- package/dist/runner/desk.js.map +1 -0
- package/dist/runner/launchd.d.ts +7 -0
- package/dist/runner/launchd.d.ts.map +1 -0
- package/dist/runner/launchd.js +78 -0
- package/dist/runner/launchd.js.map +1 -0
- package/dist/runner/message.d.ts +66 -0
- package/dist/runner/message.d.ts.map +1 -0
- package/dist/runner/message.js +181 -0
- package/dist/runner/message.js.map +1 -0
- package/dist/runner/modules.d.ts +13 -0
- package/dist/runner/modules.d.ts.map +1 -0
- package/dist/runner/modules.js +30 -0
- package/dist/runner/modules.js.map +1 -0
- package/dist/runner/process.d.ts +7 -0
- package/dist/runner/process.d.ts.map +1 -0
- package/dist/runner/process.js +65 -0
- package/dist/runner/process.js.map +1 -0
- package/dist/runner/redact.d.ts +48 -0
- package/dist/runner/redact.d.ts.map +1 -0
- package/dist/runner/redact.js +214 -0
- package/dist/runner/redact.js.map +1 -0
- package/dist/runner/registry.d.ts +37 -0
- package/dist/runner/registry.d.ts.map +1 -0
- package/dist/runner/registry.js +26 -0
- package/dist/runner/registry.js.map +1 -0
- package/dist/runner/runner.d.ts +130 -0
- package/dist/runner/runner.d.ts.map +1 -0
- package/dist/runner/runner.js +1551 -0
- package/dist/runner/runner.js.map +1 -0
- package/dist/runner/slack.d.ts +16 -0
- package/dist/runner/slack.d.ts.map +1 -0
- package/dist/runner/slack.js +157 -0
- package/dist/runner/slack.js.map +1 -0
- package/dist/runner/systemd-user.d.ts +7 -0
- package/dist/runner/systemd-user.d.ts.map +1 -0
- package/dist/runner/systemd-user.js +93 -0
- package/dist/runner/systemd-user.js.map +1 -0
- package/dist/runner/task-scheduler.d.ts +38 -0
- package/dist/runner/task-scheduler.d.ts.map +1 -0
- package/dist/runner/task-scheduler.js +216 -0
- package/dist/runner/task-scheduler.js.map +1 -0
- package/dist/runner/types.d.ts +315 -0
- package/dist/runner/types.d.ts.map +1 -0
- package/dist/runner/types.js +24 -0
- package/dist/runner/types.js.map +1 -0
- package/dist/runner.d.ts +18 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +20 -0
- package/dist/runner.js.map +1 -0
- package/dist/schemas.d.ts +6082 -1295
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +930 -31
- package/dist/schemas.js.map +1 -1
- package/dist/services.d.ts +110 -0
- package/dist/services.d.ts.map +1 -0
- package/dist/services.js +305 -0
- package/dist/services.js.map +1 -0
- package/dist/setup-guide.d.ts +64 -0
- package/dist/setup-guide.d.ts.map +1 -0
- package/dist/setup-guide.js +256 -0
- package/dist/setup-guide.js.map +1 -0
- package/dist/setup-page.d.ts +6 -0
- package/dist/setup-page.d.ts.map +1 -0
- package/dist/setup-page.js +29 -0
- package/dist/setup-page.js.map +1 -0
- package/dist/sse.d.ts +15 -0
- package/dist/sse.d.ts.map +1 -0
- package/dist/sse.js +73 -0
- package/dist/sse.js.map +1 -0
- package/dist/tab-title.d.ts +6 -0
- package/dist/tab-title.d.ts.map +1 -0
- package/dist/tab-title.js +22 -0
- package/dist/tab-title.js.map +1 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +3 -0
- package/dist/tokens.js.map +1 -1
- package/dist/use-action.d.ts +5 -2
- package/dist/use-action.d.ts.map +1 -1
- package/dist/use-action.js +6 -1
- package/dist/use-action.js.map +1 -1
- package/dist/vocabulary.d.ts +84 -4
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +115 -3
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +147 -41
- package/docs/specs/plugins.md +37 -27
- package/docs/specs/records.md +113 -0
- package/docs/specs/rest.md +155 -20
- package/docs/specs/runner.md +347 -0
- package/package.json +12 -3
- package/skills/building-a-console/SKILL.md +4 -4
- package/skills/building-a-console/references/configuring.md +1 -0
- package/skills/building-a-plugin/SKILL.md +7 -7
- package/skills/deploying-a-console/SKILL.md +4 -4
- package/skills/deploying-a-console/references/resources.md +48 -8
- package/skills/deploying-a-console/references/running-it-again.md +3 -2
- package/skills/keeping-a-desk/SKILL.md +133 -0
- package/skills/keeping-a-desk/collections.md +96 -0
- package/skills/planning-the-board/SKILL.md +14 -18
- package/skills/planning-the-board/references/a-task.md +2 -2
- package/skills/planning-the-board/references/project-rules.md +13 -14
- package/skills/planning-the-board/references/setting-up.md +22 -9
- package/skills/running-an-agent/SKILL.md +107 -0
- package/skills/running-an-agent/references/slack-app.md +61 -0
- package/skills/working-the-board/SKILL.md +66 -39
- package/skills/working-the-board/references/terms.md +9 -5
- package/skills/working-the-board/references/the-pack.md +14 -9
- package/skills/working-the-board/references/the-sentence.md +2 -2
- package/src/agent-page.tsx +1039 -0
- package/src/agent-stream.ts +199 -0
- package/src/api.ts +317 -2
- package/src/avatar.ts +1506 -0
- package/src/charts.ts +250 -0
- package/src/cli/cli.ts +3210 -503
- package/src/cli/command-words.ts +56 -0
- package/src/cli/credentials.ts +188 -16
- package/src/cli/directory.ts +28 -10
- package/src/cli/format.ts +470 -67
- package/src/cli/help.ts +233 -61
- package/src/cli/main.ts +89 -0
- package/src/cli/pack.ts +332 -263
- package/src/cli/plugin-check.ts +275 -34
- package/src/cli/plugin-cli.ts +28 -4
- package/src/cli/plugin-main.ts +1 -0
- package/src/cli/runner-host.ts +188 -0
- package/src/cli/serve.ts +320 -5
- package/src/cli/setup-machine.ts +153 -0
- package/src/client.ts +711 -126
- package/src/compat.ts +2 -2
- package/src/components/agent-page.tsx +1946 -0
- package/src/components/agents.tsx +638 -0
- package/src/components/calendar.tsx +74 -53
- package/src/components/charts.tsx +680 -0
- package/src/components/comments.tsx +3 -0
- package/src/components/connect.tsx +37 -2
- package/src/components/decision-form.tsx +89 -51
- package/src/components/decision-list.tsx +140 -4
- package/src/components/desk-records.tsx +724 -0
- package/src/components/desk.tsx +471 -0
- package/src/components/event-feed.tsx +30 -1
- package/src/components/home.tsx +353 -12
- package/src/components/my-decisions.tsx +8 -2
- package/src/components/people.tsx +300 -203
- package/src/components/picker.tsx +3 -1
- package/src/components/pictures.tsx +256 -44
- package/src/components/plugin-events.ts +159 -0
- package/src/components/plugin-frame.tsx +14 -38
- package/src/components/plugin-settings.tsx +178 -22
- package/src/components/projects.tsx +33 -15
- package/src/components/rules.tsx +96 -36
- package/src/components/sessions.tsx +7 -4
- package/src/components/setup.tsx +252 -0
- package/src/components/sign-in.tsx +1 -1
- package/src/components/task-form.tsx +11 -2
- package/src/components/task-list.tsx +7 -6
- package/src/components/task-view.tsx +4 -0
- package/src/components/ui.tsx +169 -25
- package/src/components/work.tsx +9 -9
- package/src/components/workspace.tsx +345 -4
- package/src/connect-page.tsx +15 -2
- package/src/console.tsx +657 -83
- package/src/data.ts +109 -43
- package/src/desk-page.tsx +332 -0
- package/src/desk-records-page.tsx +256 -0
- package/src/desk-records.ts +808 -0
- package/src/desk.ts +329 -0
- package/src/feed-stream.ts +144 -0
- package/src/glances.ts +132 -0
- package/src/home-tiles.ts +411 -9
- package/src/i18n/en.ts +828 -10
- package/src/i18n/ko.ts +792 -10
- package/src/index.ts +172 -3
- package/src/limits.ts +67 -0
- package/src/onboarding.ts +84 -0
- package/src/persona.ts +100 -0
- package/src/plugin/context.ts +55 -12
- package/src/plugin/limits.ts +2 -0
- package/src/plugin/manifest.ts +42 -3
- package/src/plugin/rest-schemas.ts +46 -0
- package/src/plugin/sandbox.ts +4 -1
- package/src/plugin/testing.ts +63 -12
- package/src/plugin.ts +2 -0
- package/src/records.ts +702 -0
- package/src/router.ts +120 -10
- package/src/routes.ts +17 -1
- package/src/rules.ts +109 -44
- package/src/runner/acp.ts +1267 -0
- package/src/runner/claude.ts +695 -0
- package/src/runner/codex.ts +691 -0
- package/src/runner/config.ts +97 -0
- package/src/runner/desk.ts +377 -0
- package/src/runner/launchd.ts +86 -0
- package/src/runner/message.ts +232 -0
- package/src/runner/modules.ts +30 -0
- package/src/runner/process.ts +72 -0
- package/src/runner/redact.ts +242 -0
- package/src/runner/registry.ts +67 -0
- package/src/runner/runner.ts +1879 -0
- package/src/runner/slack.ts +180 -0
- package/src/runner/systemd-user.ts +103 -0
- package/src/runner/task-scheduler.ts +236 -0
- package/src/runner/types.ts +334 -0
- package/src/runner.ts +110 -0
- package/src/schemas.ts +1183 -30
- package/src/services.ts +424 -0
- package/src/setup-guide.ts +336 -0
- package/src/setup-page.tsx +46 -0
- package/src/sse.ts +84 -0
- package/src/styles/README.md +111 -0
- package/src/styles/base.css +130 -0
- package/src/styles/console.css +85 -7095
- package/src/styles/drawn-by-pages.json +256 -0
- package/src/styles/pages/agents.css +1195 -0
- package/src/styles/pages/board.css +380 -0
- package/src/styles/pages/calendar.css +214 -0
- package/src/styles/pages/connect.css +182 -0
- package/src/styles/pages/decisions.css +370 -0
- package/src/styles/pages/desk.css +126 -0
- package/src/styles/pages/documents.css +273 -0
- package/src/styles/pages/feed.css +118 -0
- package/src/styles/pages/home.css +718 -0
- package/src/styles/pages/people.css +90 -0
- package/src/styles/pages/plugins.css +212 -0
- package/src/styles/pages/roadmap.css +377 -0
- package/src/styles/pages/settings.css +171 -0
- package/src/styles/pages/shell.css +208 -0
- package/src/styles/pages/sign-in.css +178 -0
- package/src/styles/pages/task.css +108 -0
- package/src/styles/pages/thread.css +331 -0
- package/src/styles/pages/work.css +68 -0
- package/src/styles/parts/avatar.css +82 -0
- package/src/styles/parts/badge.css +227 -0
- package/src/styles/parts/bars.css +80 -0
- package/src/styles/parts/button.css +99 -0
- package/src/styles/parts/calendar.css +547 -0
- package/src/styles/parts/callout.css +41 -0
- package/src/styles/parts/category.css +8 -0
- package/src/styles/parts/chart.css +173 -0
- package/src/styles/parts/chip.css +90 -0
- package/src/styles/parts/code.css +48 -0
- package/src/styles/parts/count.css +27 -0
- package/src/styles/parts/crumbs.css +61 -0
- package/src/styles/parts/detail.css +110 -0
- package/src/styles/parts/empty.css +21 -0
- package/src/styles/parts/eyebrow.css +9 -0
- package/src/styles/parts/facts.css +147 -0
- package/src/styles/parts/figures.css +65 -0
- package/src/styles/parts/files.css +38 -0
- package/src/styles/parts/filters.css +42 -0
- package/src/styles/parts/form.css +109 -0
- package/src/styles/parts/frame.css +45 -0
- package/src/styles/parts/input.css +243 -0
- package/src/styles/parts/legend.css +48 -0
- package/src/styles/parts/links.css +37 -0
- package/src/styles/parts/mark.css +79 -0
- package/src/styles/parts/menu.css +147 -0
- package/src/styles/parts/page.css +174 -0
- package/src/styles/parts/pager.css +19 -0
- package/src/styles/parts/panel.css +33 -0
- package/src/styles/parts/person.css +257 -0
- package/src/styles/parts/picker.css +185 -0
- package/src/styles/parts/progress.css +25 -0
- package/src/styles/parts/prose.css +128 -0
- package/src/styles/parts/rows.css +63 -0
- package/src/styles/parts/series.css +32 -0
- package/src/styles/parts/settings.css +101 -0
- package/src/styles/parts/share.css +25 -0
- package/src/styles/parts/spark.css +23 -0
- package/src/styles/parts/spinner.css +29 -0
- package/src/styles/parts/stat.css +69 -0
- package/src/styles/parts/steps.css +68 -0
- package/src/styles/parts/tabs.css +175 -0
- package/src/styles/parts/text.css +61 -0
- package/src/styles/parts/toggle.css +71 -0
- package/src/styles/parts/workers.css +37 -0
- package/src/styles/tokens.css +295 -0
- package/src/tab-title.ts +25 -0
- package/src/tokens.ts +3 -0
- package/src/use-action.ts +7 -2
- package/src/vocabulary.ts +151 -3
- package/template/desk-web/README.md +8 -0
- package/template/desk-web/index.html +13 -0
- package/template/desk-web/package.json +25 -0
- package/template/desk-web/src/main.tsx +24 -0
- package/template/desk-web/src/page.tsx +51 -0
- package/template/desk-web/tsconfig.json +16 -0
- package/template/desk-web/vite.config.ts +15 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# Spec: the runner
|
|
2
|
+
|
|
3
|
+
- Status: **Built** on both sides but for what a section says comes later; written before the runner was, and corrected where building it showed otherwise ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), [ADR-0086](../adr/0086-a-session-leaves-a-transcript-that-is-kept-for-good.md)). Milestone 42 of the [roadmap](../roadmap.md) built it. The `claude` driver was written from the product's documentation and then run against the binary, 2.1.321 first, which corrected it; a version is listed as tried once the driver was run against it.
|
|
4
|
+
- Where things live: the runner, its modules and their registries in `packages/console/src/runner/` (`console runner`, and `@skillcdn/console/runner` for whoever builds on them); what passes between it and the console in `@skillcdn/console/api` (the schemas) and [rest.md](rest.md#agent-accounts) (the routes); the console's side in `apps/console/src/http/` and `apps/console/src/db/queries/`.
|
|
5
|
+
|
|
6
|
+
The runner is the program on an agent account's machine that keeps its agent going with nobody at the screen. It runs in the agent's own OS account, signed in as the account ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md), point 9): the command's session is its only credential to the console. It starts the agent's product as a child process, the product's own unmodified binary under the agent's own subscription; feeds it what the console sends; reports what the product does; and says every thirty seconds that it is there. The console calls no model API and starts no agent, still.
|
|
7
|
+
|
|
8
|
+
## Words
|
|
9
|
+
|
|
10
|
+
| Word | Meaning |
|
|
11
|
+
|---|---|
|
|
12
|
+
| runner | `console runner`: one process per agent account on its machine, started by hand or kept running by a service |
|
|
13
|
+
| product | The agent product the runner starts: Claude Code first. The runner never modifies it and holds none of its credentials |
|
|
14
|
+
| driver | The module that speaks to one product: starts it, sends it messages, reads what it does. `claude` first, then `codex`, and `acp` for whichever product speaks the Agent Client Protocol |
|
|
15
|
+
| wake source | A module that raises wakes from outside the console, a messenger say. `console`, the console's own stream of signals, is built in |
|
|
16
|
+
| service | The module that keeps the runner running across restarts of the machine: `launchd` first |
|
|
17
|
+
| boundary | What keeps one agent apart from another on a machine: `os-user`, an OS account each |
|
|
18
|
+
| session | The lifetime of one process of the product. One main session per agent account at a time |
|
|
19
|
+
| conversation | What the product resumes from one session to the next: continuous unless the configuration or a supervisor says otherwise |
|
|
20
|
+
| signal | What the console sends the runner for its agent: a record numbered per account, with who sent it |
|
|
21
|
+
| event | One whole block of a session's transcript, numbered per session by the runner |
|
|
22
|
+
| state | How the agent stands, in one word: `running`, `stopped`, `refused`, `failed`, `unheard` |
|
|
23
|
+
|
|
24
|
+
## The heartbeat
|
|
25
|
+
|
|
26
|
+
`PUT /api/v1/agents/me/runner`, every thirty seconds, and at once when the state changes. For an agent account on the session of its command signed in as itself, which is the runner's one credential: its browser, or a token it made, is `agent.own_command`. Built on the console's side ([rest.md](rest.md#the-runner-put-apiv1agentsmerunner-and-the-signals)). The body:
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"state": "running",
|
|
31
|
+
"reason": "started",
|
|
32
|
+
"delivered": 8812,
|
|
33
|
+
"session": "0199c4d8-0000-7000-8000-0000000000a1",
|
|
34
|
+
"machine": { "name": "mac-mini", "os": "macOS 15.1", "user": "mira" },
|
|
35
|
+
"runner": "0.5.0",
|
|
36
|
+
"product": { "driver": "claude", "name": "Claude Code", "version": "2.1.0", "tried": true },
|
|
37
|
+
"offers": { "models": ["opus", "sonnet"], "efforts": ["low", "medium", "high"], "steer": true, "images": true, "resume": true },
|
|
38
|
+
"running": { "model": "opus", "effort": "high" }
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- `state` is what the runner says of its agent: `running`, the session open or ready to open; `stopped`, by a supervisor's `stop`; `refused`, the model refused and the agent waits; `failed`, the product could not start or sign in. `unheard` is the console's word, never the runner's.
|
|
43
|
+
- `reason` is one of a short list, never what was said: `started`, `resumed`, `reset`, `completed` (a turn completed after a wait) for `running`; `stop` for `stopped`; `model_refused` for `refused`; `sign_in`, `start`, `crashed` for `failed`.
|
|
44
|
+
- `delivered` is the number of the last signal that is delivered, every one before it too, `0` for none ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)): the product said it took it, the session's record says it was never read or was let go, or it was the runner's own to act on, a `stop` or a `set` say. One handed to a product that has not said it took it is not delivered yet.
|
|
45
|
+
- `session` is the open session's id, or `null`.
|
|
46
|
+
- `machine`, `runner`, `product`, `offers` and `running` say where it runs, with what, what the product offers to choose from, and what the open session runs with; each a line, bounded. `tried` says whether the driver was tried with that version of the product. A model or a level of effort is letters, digits and `. _ : [ ] -`, beginning with a letter or a digit, up to 120 characters, and up to 50 of each are offered. The runner holds what its product says to that before it says it on: a name in another shape is left out of `offers`, and is `null` in `running`, as a version that is no line is `null`; the runner says in a line how many it left out when it starts. One name the console would refuse does not cost the account its heartbeat.
|
|
47
|
+
|
|
48
|
+
The console answers what the account's settings are and where the record stands:
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
{ "latest": 8815, "delivered": 8812, "settings": { "model": "opus", "effort": "high" }, "state": "running" }
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`latest` is the number of the newest signal of the account; `delivered` the most the console was ever told was delivered, and never more than it sent, whatever a runner says, which is where a runner that lost its own count goes on from; `settings` is what a supervisor chose, `null` each where nothing was, and where the product does not offer it any more: a choice is kept among what the product offers, so one that this heartbeat's `offers` do not list, where they list any, is the product's own again from then on, since a product refuses at every turn a model it does not have, another product's once the desk's driver changed say; `state` is how the console has the agent, which is `stopped` whatever the runner says while a supervisor's `stop` stands. The console keeps when it last heard from the runner and claims nothing more ([ADR-0020](../adr/0020-the-console-does-not-claim-an-agent-is-at-work-a-run-says-when-it-was-last-heard-from-and-a-new-run-takes-over.md)).
|
|
55
|
+
|
|
56
|
+
A change of state is `agent.state_changed` in the workspace's feed, with `login`, `handle`, `state`, `was` and `detail`, the reason; a runner has the feed told twenty changes of its account's state within an hour at most ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)), a change beyond that being kept with the account, which its page reads, and told by a later heartbeat once the hour has room, as how the account stands then, with `was` what the feed was told last: by the supervisor whose `stop` stopped it, by the account for what its runner reported, by nobody for an account the worker found unheard, which it does for one whose runner was last heard from more than five minutes ago.
|
|
57
|
+
|
|
58
|
+
## Signals
|
|
59
|
+
|
|
60
|
+
A signal is a record of the console's, numbered per agent account from 1, whoever raised it:
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"number": 8812,
|
|
65
|
+
"kind": "tell",
|
|
66
|
+
"by": { "id": "...", "login": "jane", "name": "Jane" },
|
|
67
|
+
"agent": "Claude Code",
|
|
68
|
+
"plugin": null,
|
|
69
|
+
"source": "person",
|
|
70
|
+
"key": null,
|
|
71
|
+
"text": "Hold the release until the migration is checked.",
|
|
72
|
+
"set": null,
|
|
73
|
+
"attachments": [],
|
|
74
|
+
"at": "2026-11-10T14:02:11.000Z"
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
- `kind`: `wake` (there is something to do), `tell` (a supervisor's words), `interrupt` (stop the current turn, then take these words, or with none what it was sent and has not taken), `stop`, `restart`, `reset`, `set` (the model and the level of effort, in `set`: `{ "model", "effort" }`, the whole choice from then on, either `null` for the product's own).
|
|
79
|
+
- `by` is the member who sent it, with the `agent` and the `plugin` they acted through, or `null` for the console itself.
|
|
80
|
+
- `source`: `person` (a supervisor's own signal), `board`, `schedule`, `messenger`, or `console` (the console's own housekeeping), with a reference in `key` (`#412`, `day`, a thread, `services`).
|
|
81
|
+
- `text` is a paragraph of up to `MAX_SIGNAL_LENGTH` characters; `attachments` the files sent with a `tell` or an `interrupt`, each `{ "id", "name", "size", "contentType" }`: up to 8, of any kind, within the bound on a file together; a picture is one by its bytes whatever it was called, and a file called a picture that is none is `application/octet-stream` ([ADR-0095](../adr/0095-a-tell-carries-files-of-any-kind-handed-to-the-agent-in-its-desk.md)).
|
|
82
|
+
|
|
83
|
+
`POST /api/v1/agents/<handle>/signals`, for a supervisor, with a session or a token, takes `{ "kind", "text", "set" }` and answers `201` with the signal; with files it is a form, the part `signal` with what the JSON would say and a part `file` for each. A `tell` needs words; an `interrupt`, a `stop`, a `restart` and a `reset` take them for the agent; `set` takes `{ "model", "effort" }`, one or both, a field left out staying as it is and `null` meaning the product's own again, each among those the runner last offered, where it offered any (`signal.not_offered`). A `stop` sets the agent's state to `stopped` at once, by whoever sent it, and it stays so until a `restart` or a `reset` is sent, whatever the runner says meanwhile.
|
|
84
|
+
|
|
85
|
+
`GET /api/v1/agents/<handle>/signals?before=&limit=` reads the record, the newest first, for the account's supervisors, and `GET /api/v1/agents/me/signals` for the account itself. A signal is not an event of the board's feed. Sending, the record and the stream are built on the console's side.
|
|
86
|
+
|
|
87
|
+
`GET /api/v1/agents/me/signals/stream?after=<number>` is the runner's: a stream of server-sent events, each `signal` with a signal as its data and its number as its id, from the number after `after` on, in order; a comment every fifteen seconds keeps the connection known to be alive. For the account on its command's session, and ended when that session is. It is one of the streams the account holds: one more than a member may hold at once (`MAX_STREAMS_PER_PERSON`) is `feed.too_many` (`429`, with `retry-after`), as a stream of the board's feed is. The runner connects again from the last number it delivered, in `after` or as `Last-Event-ID`, so that nothing is lost and nothing delivered twice; a signal it raised itself, from a wake source on the machine, it reports with `POST /api/v1/agents/me/signals` (`wake` alone, from the `messenger`, with its `key`), and receives back in order like any other ([Wake sources](#wake-sources)).
|
|
88
|
+
|
|
89
|
+
`interrupt` and `stop` are for the session open when they are sent. An interrupt that finds a turn of that session under way stops it and gives its words at once; one that finds none, the turn done already or the session another, stops nothing, and its words are read as a tell's are. An interrupt with no words gives none ([ADR-0098](../adr/0098-a-message-is-on-the-record-where-the-agent-took-it-and-an-interrupt-may-carry-no-words.md)): it stops the turn so that what the agent was sent and has not taken is read now. The runner hands over at once what it still held, stops the turn by what the product has for that, and writes who interrupted on the session's record, a `person` event of the kind `interrupt` with no text; with no turn under way it stops nothing and writes nothing. A stop that stands at the console and that a runner never received, sent before it started, is said by the heartbeat's answer, and held all the same.
|
|
90
|
+
|
|
91
|
+
## How a signal reaches the product
|
|
92
|
+
|
|
93
|
+
A signal is fed into the open session as a message with a header, never by restarting the product:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
[console k3f9a2 #8812 · tell · Jane (through Claude Code) · 14:02]
|
|
97
|
+
Hold the release until the migration is checked.
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
- The header is one line: `console`, the session's mark, the signal's number, its kind, who sent it or its source and reference (`board: #412 ready, by Tom`), and the time in the workspace's zone.
|
|
101
|
+
- The mark is six characters the runner makes for each session and tells the agent in the session's first message, with what a header is. Nothing outside the session knows it, so nothing the agent reads elsewhere can pass for a header.
|
|
102
|
+
- What came from outside the console, a messenger's message say, is carried in a block fenced longer than any run of fence characters it holds, after a header that names where it came from.
|
|
103
|
+
- `tell`, `wake` and the words of a `restart` or a `reset` are sent at the product's priority for "after the current tool call" where the driver can steer, after the turn otherwise; `interrupt` stops the turn first.
|
|
104
|
+
- The files of a signal are read by the runner at `GET /api/v1/agents/me/signals/<number>/files/<id>` and written in the desk, at `work/inbox/<number>/<name>`, for the account alone, before the message is handed over ([ADR-0095](../adr/0095-a-tell-carries-files-of-any-kind-handed-to-the-agent-in-its-desk.md)). The name is made one segment: what a file system reads as a path, a drive or a pattern becomes `_`, as does a comma, which a product that takes pictures by their paths reads as the end of one; a bracket becomes a parenthesis; a name a system keeps for a device (`NUL`, `CON`) gets `_` before it; and a second file of a name, whatever the case of its letters, is numbered. The message says each on a line of its own after the signal's words, with the session's mark, since it is the runner that says where a file is: `[console k3f9a2 · attached file: work/inbox/8812/export.csv · text/csv · 2.0 KB]`, `[console k3f9a2 · attached picture, shown to you: work/inbox/8812/screen.png]`, or that it could not be handed over, with whom to ask. A picture is handed to the product as a picture too where the product takes one, as its bytes or by its path in the desk as the driver says (`can.imageFiles`); where it takes none the line says so and tells the agent to open the file. The pictures are kept with what the agent was sent in the session's transcript; the event names the other files as `files` and the pictures the product was not handed as pictures as `unseen`, which the agent's page says to whoever sent them. The files stay in the desk, the agent's to remove.
|
|
105
|
+
- What the agent was sent is written on the session's record when the product takes it ([ADR-0098](../adr/0098-a-message-is-on-the-record-where-the-agent-took-it-and-an-interrupt-may-carry-no-words.md)): at once where the product was waiting for a message; where a turn was under way, when the driver says `taken`, after the tool call under way or with the turn after, so that the record reads in the order the agent read, and a supervisor's words wait in sight on the agent's page until then; and at the latest when the turn completes. What a session ends on before the product took it is written then with `unread: true`; a product that did not start, or was not signed in, took nothing, and what it was sent is sent again. So it is with a product that had taken nothing of its session when a supervisor's `stop`, `restart` or `reset` ended it, which had not started for all the runner knows: what it was handed is handed over again in the session that follows, after a `stop` once the agent is restarted. And so it is where the runner itself ends, stopped by its service or for an update: what its product had not taken is not written as never read, and the console sends it again to the runner started after. Either way a `status` on the session's record names those signals and says that they are sent again. A first message, which the record holds since it was handed over, is named the same way in a `status` that says it was not taken, where it is let go with a product that ended by itself before taking it. What a product says while its session is being ended is heard before the session is closed: a message it took then is taken, and the conversation it named is the one gone on with. A `reset` gives it one more try, in the new conversation: where the product does not start with it again, it is let go, with a `status` on the session's record that names the signals and says so in the runner's line, and is sent no more, so that no signal stands in the way of every one after it. Whoever sent it says it again where it still matters.
|
|
106
|
+
- A signal is delivered when the record holds what became of it, and not when it is handed over: when the driver says `taken` or the turn completes, when the session ends and the record says it was never read, or when it is let go. What waits to be handed over, and what a product was handed and has not said it took, is not delivered: a product that did not start, followed by the runner's own end, loses nothing, since the runner started after is sent again, from the console's record, every signal after the last one delivered. A runner that ends by itself, with a session open whose product was handed a message and had not taken it, counts nothing of that message either, whatever the product was at: the record of that session does not say it was never read, and the runner started after is sent it again. Signals are counted in order, so one the runner acted on itself is delivered once none before it is still owed.
|
|
107
|
+
- Signals are grouped, never capped: the runner holds what arrives within 1.5 seconds and delivers one message, the signals in order under a header each, the same `source` and `key` merged with a count; beyond 20 signals or 16,000 characters a message, the rest is said as "N more" with the command that reads them (`console agent signals`).
|
|
108
|
+
|
|
109
|
+
What the agent itself does on the board raises no wake to it.
|
|
110
|
+
|
|
111
|
+
## The board's wakes
|
|
112
|
+
|
|
113
|
+
The board wakes an agent account by rules ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 10), which the worker role applies from where it read the feed to, as the plugins' hooks are dispatched, keeping its place a batch of events at a time, and at the event before one whose wakes could not be sent; an `api` role that carries the worker's work applies them itself. It reads no further than the feed's settled end, the highest number below which no change is still under way ([ADR-0125](../adr/0125-a-feed-is-read-no-further-than-its-settled-end-which-its-writers-hold-a-lock-for.md)), so that an event numbered before another and committed after it wakes whom it should once it is there. An event whose wakes fail in twelve passes in a row, a minute of them, is passed over, with an error in the console's log that names the event's number and kind, so that one wake that can never be sent does not hold every wake after it. Where changes follow each other without a gap, or one is stuck, the feed does not settle and the wakes wait for it: nothing is lost, and the job says so in the log once it has lasted thirty seconds. Each wake is a signal on the account's record, a `wake` from the `board` whose `by` is whoever did what woke it and whose `key` says what it is about, so that the runner says several wakes of one thing once:
|
|
114
|
+
|
|
115
|
+
| What happened | Who is woken | `key` |
|
|
116
|
+
|---|---|---|
|
|
117
|
+
| A task is written ready, or made ready, and its due day is unset, today or past | The agent accounts at work on it | `<project>#<number>` |
|
|
118
|
+
| An agent account is made a worker of such a task | That account, and nobody who was at work on it already | `<project>#<number>` |
|
|
119
|
+
| The due day of such a task is moved to today or before, or taken away | The agent accounts at work on it | `<project>#<number>` |
|
|
120
|
+
| A comment on a task | The agent accounts that own it or are at work on it, whatever its state and its day | `<project>#<number>` |
|
|
121
|
+
| A decision is raised | The agent accounts it is addressed to | `decision:<id>` |
|
|
122
|
+
| A decision is answered | The agent account that raised it | `decision:<id>` |
|
|
123
|
+
| The workspace's `handle`, `domain` or `services` change | Every agent account that was there, from the `console` and by nobody | `services` |
|
|
124
|
+
|
|
125
|
+
"Today" is the day in the workspace's time zone, UTC where it has none: a task planned for a later day wakes nobody, and appears in that day's briefing. A task is read as it stands when the worker reads the event, which is what the agent will find. What an account did itself wakes it for nothing, leaving its own run among it; a task the console itself gave back as ready, ending a run it had not heard from, wakes nobody, since an agent whose run dies in silence would be sent to take it again every twelve hours ([ADR-0114](../adr/0114-the-end-of-a-run-leaves-no-task-at-work-behind-it.md)); an account that is out is woken for nothing; a task that is put away wakes nobody. An account is woken only for what it may still read: for a task while it may work in the task's project, and for a decision while the decision reaches it, so that an account taken off a private project, and still named on a task or a decision there, is told neither a title nor an answer of it. A wake says what it is about in the console's own words, with the command that reads it (`console task 412 --project ops`, `console decision <id>`): a task's title and a decision's question on one line, and never what a comment says, which the agent reads on the board as a comment.
|
|
126
|
+
|
|
127
|
+
The first wake of an account is its onboarding task ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), by the first rule: the console writes the task ready, with the account at work on it, when the account is made ([rest.md](rest.md#get-apiv1agents-and-post-apiv1agents)), and the wake waits on the record until a runner first connects.
|
|
128
|
+
|
|
129
|
+
**The briefings** are wakes from the `schedule` ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 11), which the same pass sends each agent account whose runner was ever heard from, at the hours the account keeps, in the workspace's time zone, UTC where it has none: `dayStart`, 09:00 where the account says no other hour, and `dayEnd`, none unless it says one ([rest.md](rest.md#get-apiv1agentshandle-and-patch-apiv1agentshandle)). At the day's start, a wake with the key `day`, kept short, since the agent reads one every day: the open tasks the account is at work on that are planned for today, five of them by number, title and project and the rest counted; those carried over from before, three of them by name; how many are open with no day; how many decisions wait for it; and the command that reads its whole plate, `console work`. A line for what there is and none for what there is not, a title cut at sixty characters, and 2000 characters at the most, whatever the plate holds. On the week's first day, Sunday where the workspace says so and Monday otherwise, the key is `week`, in the day's place, and it adds the tasks planned for the six days after, three of them by name. At the day's end, where it has one, the key is `wrap`: to report on its open runs, write down what should be kept, and commit and push its desk. Each is sent once a day, and an account first heard from after its hour is told at once. `runner.json` begins a new conversation with `day` or `week` where its `conversation` says so.
|
|
130
|
+
|
|
131
|
+
**A secret's day.** 30 days before the day a secret of an account ends on ([ADR-0087](../adr/0087-an-agent-account-keeps-its-secrets-in-a-store-of-its-own-that-only-it-reads.md)), the same pass sends the account a wake from the `console` with the key `secret:<name>`: the name and the day, never the value, and the command that sets it again. Once for a value: a value set anew has a day of its own to be told of.
|
|
132
|
+
|
|
133
|
+
The worker reads the feed every five seconds, a hundred events at a time, one pass at a time whatever the number of processes: the place it read to is a row a pass locks. An event's wakes are sent before the place moves past it, so a pass that ends halfway sends an event's wakes again and never loses one. A workspace that had a history when the rules came begins at the feed's end, and a new one at its beginning.
|
|
134
|
+
|
|
135
|
+
## A session's life
|
|
136
|
+
|
|
137
|
+
- What a runner writes is bounded by the hour ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): the events a session takes (60,000), the sessions an account begins (60), the wakes its runner raises (600) and the changes of state the feed is told (20). The runner holds back what the console refused as more than the hour takes, and says so once in a line: a session's events are kept, within what the runner keeps, and sent again after a minute, then after twice as long each time, a quarter of an hour at most, and at the session's end whatever the hold, where what the console still refuses goes with the session, the runner saying in a line how many events were let go; a session that could not be begun is tried again after the cool-down, with what was to be handed over still undelivered.
|
|
138
|
+
- There is one main session per account. The runner begins one when there is something to deliver and none is open: `POST /api/v1/agents/me/sessions` with what it runs (`product`, `model`, `effort`, `resumed`, `machine`, as the heartbeat spells them), answered `201` with the session, its id in it. A session begun while another of the account is open takes that one over: the console ends the older as taken over, as a run takes over a run.
|
|
139
|
+
- The conversation is the product's, resumed from the session before where the driver can (`resume`) and `conversation` in `runner.json` is `continuous`.
|
|
140
|
+
- A session ends when a supervisor stops or restarts the agent, when the process dies, or when the machine restarts: `POST /api/v1/agents/me/sessions/<id>/end` with `{ "how" }` (`stopped`, `restarted`, `reset`, `crashed`, `exited`), answered with the session; one that ended already stays as it ended, `taken_over` among it, which is the console's word. The next signal begins the next.
|
|
141
|
+
- **An agent that cannot go on waits.** The driver says that the model refused or that the product failed, and why. The runner reports the state and restarts nothing. A supervisor's signal (`source: "person"`) is tried at once, in the same conversation. What arrives by itself waits out a cool-down, fifteen minutes at first and twice as long after each try that ends the same way, four hours at most, and then goes together as one message. A turn that completes ends the waiting.
|
|
142
|
+
- A supervisor's `stop` ends the session, and nothing is delivered until a `restart` or a `reset`: what arrives meanwhile is kept and delivered then, grouped. `restart` begins the next session with the same conversation; `reset` with a new one, the agent told in its first message that it was reset, by whom, and that what it was doing is on the board and in its desk.
|
|
143
|
+
- `set` is applied through the driver at once where the product takes it in a running session. Where the product takes its model and its effort when it starts, the open session ends as `restarted` as soon as no turn is under way, and the next, which the next signal begins, goes on with the conversation and runs with them; the heartbeat's `running` says what the session runs with.
|
|
144
|
+
- A `set` is a supervisor's. The account itself is given none: what an agent changes of its own model or effort is what its product lets a session change, in the product's own way, and the console adds nothing to it and takes nothing from it. Where the product says what the session runs with afterwards, the driver says so and the page shows it (`running`).
|
|
145
|
+
- The runner keeps a few things between its own restarts, in `work/runner-state.json` under the desk: the number of the last signal delivered, the conversation to go on with, and the driver that conversation was begun under. A conversation is a product's own: where `runner.json` names another driver since, the conversation kept is let go and a new one begins, which the runner says in a line, since a product asked to go on with another's conversation fails at every turn. Without the file it goes on from what the console answers its first heartbeat.
|
|
146
|
+
- **The runner takes an update of its command by itself** ([ADR-0101](../adr/0101-a-runner-ends-for-an-update-of-its-command-and-its-service-starts-it-again.md)). At every heartbeat it reads the version of the package it runs from, as the package's manifest on the machine says it now. Another version than its own, seen twice, a heartbeat's interval apart, is an update; a manifest that does not read says nothing, and two looks a moment apart, as when the agent's state changes, are one. From then on nothing more is handed to the product, the turn under way ends in its own time, the open session ends as `restarted`, with a status that says why, and the runner ends with exit code `0`. A supervisor's `interrupt` still stops the turn under way meanwhile; its words are not handed over, and reach the runner started after, as everything sent meanwhile does. The service starts it again, as after any end, on the new command; the next signal begins a session that goes on with the conversation, and what was sent meanwhile is sent again from the console's record. A runner started by hand ends the same way, says so, and is started again by hand. The runner starts no process in its own place and installs nothing itself.
|
|
147
|
+
- A runner the console refuses as too old (`client.outdated`) says so on its own output, with the command that installs the console's version the way this command was installed, and, once, to its agent in the open session, with that command: the agent installs it, and the runner takes the update as above. That message is a turn of the agent's as any other is, so the update is taken when the agent is done with it and never while the install runs. The command names the console's version where the console said one that is a version, and `latest` otherwise. Where the agent cannot, it tells whom it reports to. The runner keeps trying meanwhile.
|
|
148
|
+
- Nobody is at the terminal: what the product's policy does not allow is denied and recorded, and the tool by which the product would ask a person at its terminal is taken away.
|
|
149
|
+
|
|
150
|
+
## The transcript
|
|
151
|
+
|
|
152
|
+
Built on the console's side ([rest.md](rest.md#the-sessions-and-the-transcript)). The runner reports every event of the driver, in order, as whole blocks ([ADR-0086](../adr/0086-a-session-leaves-a-transcript-that-is-kept-for-good.md)): `POST /api/v1/agents/me/sessions/<id>/events` with a batch, about once a second while there is something to send:
|
|
153
|
+
|
|
154
|
+
```json
|
|
155
|
+
{ "events": [
|
|
156
|
+
{ "n": 41, "kind": "tool_call", "at": "2026-11-10T14:02:15.120Z", "text": "git status", "data": { "tool": "Bash", "id": "toolu_01" } }
|
|
157
|
+
] }
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
- `n` numbers the events of the session from 1, one after another. The console answers `{ "last": 41 }`, the number of the session's last event now. An event whose number the session has already is left as it is, whatever is sent, so a batch may be sent twice; a batch out of order is `transcript.out_of_order`, and one that would leave a gap is `transcript.gap`, with the number expected in its words, so that whoever reads from a number on misses nothing: the runner asks the session where it stands and sends from there. A batch is at most 100 events and 2 MiB; nothing is added to a session that is over (`transcript.session_over`). The runner sizes a batch as it is sent, a text counted as JSON spells it. One the console still refuses as too large (`request.too_large`) is sent again in halves, never the same batch twice; an event that is too large alone has its text cut, with a word that says so, then goes without its facts, then is let go, so that nothing waits behind it.
|
|
161
|
+
- `kind`: `wake` and `person` (what the agent was sent, a signal's number in `data.signal`), `assistant`, `thinking`, `tool_call`, `tool_result`, `permission` (asked and how it was answered), `status` (the product compacted, the model changed, the session began or ended, a turn completed, which is `turn: "completed"` in its `data` and what tells whoever reads the session as it happens that the agent is done) and `error`. A `person` or a `wake` the session ended on before the product took it carries `unread: true`.
|
|
162
|
+
- `text` is what a person reads, up to 256 KiB of UTF-8, and whatever the product said: markup, escapes and control characters are kept as they are and shown as text. The console keeps the beginning in the row, up to 16 KiB cut between characters, and the whole on the month's shelf of the blob store where it is longer; an event read back says `whole`, the size of the whole, and `.../events/<n>/text` reads it.
|
|
163
|
+
- `data` is a small object of facts about the block: up to 32 of them, each a word, a number, a yes or no, or nothing, under a name of up to 64 characters, a word up to 1,000. Never nested, shown as text and never run. An event a sub-agent made says so there ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)): `parent` is the id of the tool call that started the sub-agent, as that call's `tool_call` event carries it in `id`, and `subagent` what the call called the sub-agent, up to 80 characters, where the driver read the call: under the `claude` driver the kind of sub-agent the call names and what it says the sub-agent is for, the kind first (`Explore: Read src/ of acme/web`), so that two of one kind at once are told apart, or the one of the two the call names, or the tool where it names neither. An event of the session's own carries neither, and so does every event of a driver whose product does not say whose a line is. The agent's page shows a sub-agent's event as a step under the sub-agent's name, what it said among them, folded as a thought is.
|
|
164
|
+
- `files` names the pictures of the block, up to 8, by the ids their upload answered: `POST /api/v1/agents/me/sessions/<id>/files`, a form with one part `file`, a PNG, a JPEG, a GIF or a WebP up to the bound on a file, answered `{ "id", "name", "size", "contentType" }`. An event names its own session's pictures and nothing else (`transcript.unknown_file`); a session hands in at most 60 a minute (`transcript.too_fast`).
|
|
165
|
+
- Before an event leaves the machine the runner takes out of it every value of the account's secret store, as it is and in the encodings a value is commonly carried in. A text a driver shows a part of, a tool's input above all, is cut after that and not before ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)): a session is handed what cuts (`cut`), which takes the values out of the beginning of the text, as far as the cut and one form of a value beyond it, and never shows the last characters it looked through, so that no part of a value stands at the cut and a megabyte of input is not read for a line of four thousand characters. What a sub-agent is called is cut so too. The end of what a product wrote on its standard error, which says why its process ended, is kept through what keeps the end of a text (`cutEnd`), the same from the other side: the last 4,000 characters, the values taken out of them and of one form before them first, and never the first characters looked through; the process keeps the last 16,000 and begins them with the mark of a cut (`…`) where it let the beginning go, and nothing of a value that what it kept begins inside is shown. The beginning of a value that a text cut by anything else ends in, of four characters or more, is taken out as well.
|
|
166
|
+
- What waits while the console is away is kept in the runner's memory, up to 20,000 events and 64 MiB of them with their pictures. Beyond that the oldest are let go, and one `status` event in the place of the first says how many (`let_go` in its `data`), the numbers running on from it, so that the record has no hole nobody is told of. The runner says once that the transcript waits, and once that it is sent again; a session that ends with events the console did not take, being away or refusing them for the hour, is let go with them, and the runner's line says how many and why, since nothing of a session is sent after its end; a heartbeat the console does not take and a stream of signals that ends are said once the same way, for as long as they last. On Windows the runner's own lines are added to `runner.log` beside the task's definition, which the task's shell puts aside when it holds four megabytes, as `runner.log.1`, with three put aside kept and the oldest let go ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): sixteen megabytes at most, whatever the runner writes and however long it runs. The log itself is moved first, to a spare name, `runner.log.0`, and the ones put aside are moved on only once that worked: a log that something reads and lets nobody move is added to as it is, with every log put aside left where it was, and is put aside at the first line after it is let go. A machine set up before this takes it when its files are written again (`console agent setup --refresh`, and the task started anew).
|
|
167
|
+
|
|
168
|
+
The console deletes none of it. `GET /api/v1/agents/<handle>/sessions` lists the sessions, the newest first, and `.../sessions/<id>/events?after=` reads the events, a page at a time, for the account's supervisors and for the account; `.../sessions/<id>/events/stream?after=` is the same as it happens, each `event` under its number, and an `end` with the session once it is over and everything of it was sent. A run the account's command begins while a session is open names it (`sessionId`), so that what the agent did for a task is found in its transcript.
|
|
169
|
+
|
|
170
|
+
Everything of a session is kept under the month it began in, by the clock everyone shares: its events and its pictures in tables of that month, and the bytes on the month's shelf of the blob store, a table of the month where the database keeps the bytes and the prefix `transcript/<month>/` in a bucket. The session's own row stays, and says `away: true` while its month is not with the database; its events then read as none, and an open session of that month takes nothing more (`transcript.away`). [deploy/README.md](../../deploy/README.md#the-transcript-of-a-month-that-is-past) says how a month is put away and brought back.
|
|
171
|
+
|
|
172
|
+
An administrator seals an event that must not be kept, `POST /api/v1/agents/<handle>/sessions/<id>/events/<n>/seal` with `{ "reason" }`: its text, its facts and its pictures are replaced by who sealed it, when and why, its bytes are taken off the month's shelf where no other event of the month says the same, and its number, its kind and its time stay. The bytes go with the seal: where the store will not let them go, the event stays as it was, unsealed, and the answer says that the files could not be reached (`file.store_unavailable`), for the seal to be asked again. The session's row notes which of its events were sealed, which a month that was put away is held to when it is back ([ADR-0103](../adr/0103-a-session-says-which-of-its-events-were-sealed-and-the-check-holds-a-month-to-it.md)). Nothing else of a transcript changes, ever.
|
|
173
|
+
|
|
174
|
+
## The desk
|
|
175
|
+
|
|
176
|
+
The desk is the agent account's own repository ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), and the directory the runner is started in. The package carries its template (`deskFiles` in `@skillcdn/console/runner`), which setup writes when the desk does not exist yet and the account pushed none before ([cli.md](cli.md#setting-a-machine-up)); [`examples/agent-desk`](../../examples/agent-desk/AGENTS.md) is what it writes for an invented account, and a test holds the two equal. Five files, the least ([ADR-0122](../adr/0122-a-desk-is-given-its-least-and-grown-by-what-its-member-asks.md)): the instructions and a structure, and nothing that prescribes what a product already does for itself or what a desk is to keep:
|
|
177
|
+
|
|
178
|
+
| File | What it is |
|
|
179
|
+
|---|---|
|
|
180
|
+
| `README.md` | For people: who the agent is, that it is an agent, and what the files are |
|
|
181
|
+
| `AGENTS.md` | The base instructions, read as they are by every product, in eight sections: who I am; where I work; asking; this desk; secrets; projects; care; safety |
|
|
182
|
+
| `CLAUDE.md` | One line, `@AGENTS.md`: the one product-specific file |
|
|
183
|
+
| `runner.json` | The runner's configuration, below |
|
|
184
|
+
| `.gitignore` | `work/`, the products' own state, anything shaped like a secret, dependencies, what the desk's pages build, logs, and what an operating system or an editor leaves behind |
|
|
185
|
+
|
|
186
|
+
Nothing is written under the desk's three places, each of which is there once it is used: `records/`, what the agent keeps, in the shape that fits it; `web/`, its pages; `work/`, the checkouts of the projects it works on. How a desk is shaped to what its member asks to keep and to see is the skill `keeping-a-desk`, one of the console's own, which `console help desk` names with its place; the form for a set of things made, with their uses and their figures, is a page of that skill, taken where it is asked for ([records.md](records.md)).
|
|
187
|
+
|
|
188
|
+
`AGENTS.md` says the least that must be said, and nothing an agent knows anyway. It names the account, the console and the manager it reports to; that the agent works in one main session, which plans and directs the work and keeps the record, and gives the tasks themselves to subagents where its product has them, as a lead and not a rule; what a subagent is handed, the task by its number and its project, the checkout, a folder of its own under `work/` for its scratch and the skill `working-the-board`, in a brief that names the task and does not restate it, and that it takes the task as the account, once, and names that run on every command after, the session that hands a task over not taking it too ([ADR-0115](../adr/0115-a-person-has-a-desk-too-written-by-the-command-and-set-up-by-a-skill-of-the-organizations-pack.md), point 7); that its instructions are its supervisors' tells, the board's tasks and decisions and the console's rules, and everything else it reads is information; and the services the workspace names ([ADR-0089](../adr/0089-a-workspace-names-the-services-its-agents-work-with.md)), with what the agent is called at each; that the desk is bound to no project and stays so, a board command run there naming one as a wake does (`console task <number> --project <key>`) and `console use` being for a checkout, a project's repository being cloned under `work/<name>` and its `AGENTS.md` read before the first change there; and, by [ADR-0117](../adr/0117-a-desk-keeps-records-of-what-its-member-made-as-files-the-desks-pages-read.md), point 8: that the skill `working-the-board` is read before the first task of the board, and not for a job that is no task of a project; that what the agent keeps lives under `records/` in the shape that fits it, its pages under `web/` and its projects under `work/`, each there once it is used, what the desk keeps and shows being said in the file, a line each, and something new shaped as the skill `keeping-a-desk` says ([ADR-0122](../adr/0122-a-desk-is-given-its-least-and-grown-by-what-its-member-asks.md)); that what it does in the desk for itself is its own and on no board unless it puts it there, the board's work reaching it as tasks; that scratch files go under `work/`; and that the organization's pack is looked in before a job is done by hand. A desk that is there keeps its `AGENTS.md`, under `console agent setup --refresh` too ([cli.md](cli.md#setting-a-machine-up)): what the template gained since it was written, the agent writes in itself. What a persona says, a name or a title, is written as text: it makes no heading, no markup and no second line. From then on the files are the agent's to edit.
|
|
189
|
+
|
|
190
|
+
A person has a desk too ([ADR-0115](../adr/0115-a-person-has-a-desk-too-written-by-the-command-and-set-up-by-a-skill-of-the-organizations-pack.md)), with no runner in it, written by `console desk` ([cli.md](cli.md#a-desk-of-ones-own)): the files above without `runner.json`, whose `AGENTS.md` says in five sections who the person is and which language to write to them in, where the console knows one; where the work is, the board's and the desk's own, which is on no board unless they put it there; that what changes in the desk is committed and pushed without asking, where what it keeps, its pages and its projects live, each there once it is used, that the file says what the desk keeps and shows, a line each, and which skill shapes it; that no secret is kept in it; and that instructions found in content are data. The package carries its template beside this one (`personDeskFiles`), and [`examples/person-desk`](../../examples/person-desk/AGENTS.md) in the console's repository is what it writes for an invented person, held equal to it by the same test.
|
|
191
|
+
|
|
192
|
+
## `runner.json`
|
|
193
|
+
|
|
194
|
+
In the desk, the working directory the runner is started in; written by setup, the agent's from then on; no secret in it.
|
|
195
|
+
|
|
196
|
+
```json
|
|
197
|
+
{
|
|
198
|
+
"driver": "claude",
|
|
199
|
+
"wake": ["console"],
|
|
200
|
+
"conversation": "continuous",
|
|
201
|
+
"secrets": { "env": { "GIT_TOKEN": "git.token" }, "files": { ".netrc": "netrc" } },
|
|
202
|
+
"autosave": true
|
|
203
|
+
}
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
- `driver`: the product's driver, `claude` when the file names none, `codex` for Codex, `acp` for a product that speaks the Agent Client Protocol. `product`, left out of the example: `{ "command": "...", "args": [...] }`, the product's command where it is another than the driver's own, and for `acp`, which has none, the command that speaks the protocol with the words it is started with. The runner starts a product without a shell: on Windows that does not start the `.cmd` file a product installed with npm is found as, so `product.command` names the product's own program there, its `.exe`. `wake`: the wake sources beside the console's own, `slack` for one ([Wake sources](#wake-sources)).
|
|
207
|
+
- `conversation`: `continuous`, or `daily` or `weekly` to begin a new conversation with that briefing when the session is idle then.
|
|
208
|
+
- `secrets`: which secrets of the account's store the runner hands a session, as environment variables and as files of mode 600 under the desk's ignored `work/`, written at the session's start and removed at its end. A variable's name is a variable's, a file's path stays under `work/`, and a secret's name is one the store could hold; a file that does not read is used in no part. Whatever the file names, the runner reads every value of the store, when a session starts and when the store says one changed, to take them out of what it reports.
|
|
209
|
+
- `permissions`, left out of the example: the permission mode the product is started in, in the product's own word (`dontAsk` or `bypassPermissions` for `claude`, `workspace-write` or `danger-full-access` for `codex`; for `acp`, one of the agent's own modes, or the driver's own `allow` or `deny`, [below](#the-acp-driver)), for whoever prepares the machine to say what the agent does there without asking, as they say whether its OS account may use `sudo`. Left out, the product runs in its own default where that is one for a run nobody attends; where it is not, the driver names one: `auto` for `claude`, which starts such a run in its manual mode otherwise, `approve-for-me` for `codex`, which runs it in its read-only sandbox otherwise, and for `acp` the mode the agent has for such a run, where the driver was run against the agent.
|
|
210
|
+
- `autosave`: at the end of every session the runner commits and pushes the desk ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), a net under the agent's own commits: where the desk is a repository, everything it does not ignore is staged, and nothing under `work/` whatever the desk ignores, committed where anything changed, as `Autosave at the end of a session`, and pushed. The push is handed the token the account's store keeps as `git.token`, where it keeps one and the workspace names a git host: answered by a credential helper in the environment of that one command, to that host alone, on no command line and in no file, as the clone of the desk was. Git asks nobody at a terminal, what it prints is not kept, and a step that does not succeed is said in the runner's line by how git ended; the runner goes on. `false` turns it off.
|
|
211
|
+
- A runner started where there is no `runner.json` runs with these defaults and hands the session no secret.
|
|
212
|
+
|
|
213
|
+
## Wake sources
|
|
214
|
+
|
|
215
|
+
A wake source is a module that raises wakes from outside the console: what is said to the agent at a messenger. `runner.json` names the ones a runner keeps beside the console's own stream (`"wake": ["console", "slack"]`), which the runner listens to itself:
|
|
216
|
+
|
|
217
|
+
```ts
|
|
218
|
+
interface WakeSource {
|
|
219
|
+
readonly name: string;
|
|
220
|
+
/** Listens until it ends or the signal does; the runner starts one that ended again, after a while. */
|
|
221
|
+
run?(host: WakeHost, signal: AbortSignal): Promise<void>;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
interface WakeHost {
|
|
225
|
+
/** A secret of the account's store, by name. */
|
|
226
|
+
secret(name: string): Promise<string | undefined>;
|
|
227
|
+
/** Raises a wake: the console records it, and it reaches the agent in order, as someone else's words. */
|
|
228
|
+
raise(wake: { key: string; text: string }): Promise<void>;
|
|
229
|
+
log(line: string): void;
|
|
230
|
+
fetch(url: string, init: { method: string; headers: Record<string, string>; signal: AbortSignal }): Promise<{ json(): Promise<unknown> }>;
|
|
231
|
+
socket(url: string): { messages: AsyncIterable<string>; send(text: string): void; close(): void };
|
|
232
|
+
wait(ms: number, signal: AbortSignal): Promise<void>;
|
|
233
|
+
}
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
The runner starts each source when it starts and keeps it for as long as it runs: a source that ends is started again after five seconds where it held for a minute, and after twice as long each time, up to five minutes, where it keeps ending at once; its line says the source's name and a short name of why, and never what was said. A source tells the agent nothing itself: what it raises goes to the console, `POST /api/v1/agents/me/signals`, which records it as a `wake` from the `messenger`, by nobody, and it comes back on the runner's stream in order, with the same key merged as any wake is. The console takes 600 wakes a runner raises itself within an hour ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): past that it answers `signal.too_many`, and the runner lets go of what its sources raise for a minute, then for twice as long each time it is refused again, a quarter of an hour at most, saying so once. Its words reach the agent as someone else's, in a block fenced longer than any run of fence characters they hold ([How a signal reaches the product](#how-a-signal-reaches-the-product)).
|
|
237
|
+
|
|
238
|
+
### The `slack` wake source
|
|
239
|
+
|
|
240
|
+
One app for one agent account ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 2), which receives over its Socket Mode connection the events the agent's own member of the workspace can see. Written from the messenger's own documentation of Socket Mode and of the Events API, and not run against a workspace yet; the app is made from the manifest the skill `running-an-agent` carries.
|
|
241
|
+
|
|
242
|
+
- **The token** is the app's own for the socket (`xapp-...`), kept by the account in its store as `slack.app_token`. Where there is none the source says so and looks again in five minutes.
|
|
243
|
+
- **The connection** is asked for with `POST https://slack.com/api/apps.connections.open`, the token in the `authorization` header, and the address answered is opened only where it is the messenger's own socket (`wss://`, a host of `slack.com`). Every envelope that arrives is acknowledged by its `envelope_id`, before it is read; a `disconnect` ends the connection, and the runner starts the source again.
|
|
244
|
+
- **What wakes the agent**: a message in a direct conversation, and a message that mentions the member the event was delivered for (the first of the event's `authorizations`), from anyone but that member; an app's own `app_mention` too. An edit, a join, a deletion, a reaction and what the agent said itself wake nobody.
|
|
245
|
+
- **The wake** has the key `slack:<channel>:<thread>`, the thread being the message's own where it begins one, so that what is said in one thread is one thing to the agent; and says where it was said and by which member, with the message's words after it, cut at 4,000 characters. The agent reads the thread with the messenger's own tool.
|
|
246
|
+
- **An event is data**: read by schema, with ids and moments spelled as the messenger spells them and bounded lengths; what does not read wakes nobody, and nothing of an event is run.
|
|
247
|
+
|
|
248
|
+
## The service
|
|
249
|
+
|
|
250
|
+
A service is the module that keeps the runner running across restarts of the machine, a platform each: `launchd` on macOS, `systemd-user` on Linux, `task-scheduler` on Windows. It says what to write and what to run, and `console agent setup` does it ([cli.md](cli.md#setting-a-machine-up)):
|
|
251
|
+
|
|
252
|
+
```ts
|
|
253
|
+
interface Service {
|
|
254
|
+
readonly name: string;
|
|
255
|
+
/** The platforms it keeps a runner running on, as the runtime names them. */
|
|
256
|
+
readonly platforms: readonly string[];
|
|
257
|
+
/**
|
|
258
|
+
* Whole files with their modes; commands in order, each with what it adds to the environment,
|
|
259
|
+
* whether it may fail and what is left to do where it did, and how often it is tried; the
|
|
260
|
+
* commands that have the system read a file written again without ending the runner; where
|
|
261
|
+
* the runner's lines are kept. Or why it cannot.
|
|
262
|
+
*/
|
|
263
|
+
plan(input: { desk: string; home: string; uid: number | undefined; user?: string; program: string[]; path: string | undefined }): ServicePlan | { problem: string };
|
|
264
|
+
}
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
`launchd`, for macOS, plans a launch agent of the agent's own OS account: the unit `~/Library/LaunchAgents/ai.skillcdn.console.runner.plist`, which starts the runner in the desk when the account logs in (`RunAtLoad`) and again whenever it ends (`KeepAlive`), with the `PATH` setup ran with, so that the product is found where it was, and its lines in `~/Library/Logs/ai.skillcdn.console.runner.log`; then `launchctl bootout gui/<uid>/ai.skillcdn.console.runner`, which fails where none was loaded, and `launchctl bootstrap gui/<uid> <unit>`. Nothing of it needs an administrator's rights, and so the runner runs while the account is logged in at the machine: that the account is logged in when the machine starts is for whoever prepares it. The unit holds no secret: the runner signs in with what the command keeps. What a path or a login holds is written as text of the unit. It is written from the system's own documentation and was not run on a Mac yet.
|
|
268
|
+
|
|
269
|
+
`systemd-user`, for Linux, plans a unit of the agent's own OS account, kept by that account's own instance of systemd: the unit `~/.config/systemd/user/skillcdn-console-runner.service`, which starts the runner in the desk and starts it again ten seconds after it ends (`Restart=always`), with the `PATH` setup ran with; then `loginctl enable-linger <uid>`, and `systemctl --user daemon-reload`, `enable` and `restart` of the unit, so that a unit written again is the one that runs. Its lines are in the account's journal (`journalctl --user -u skillcdn-console-runner.service`). It needs no administrator's rights. The account's systemd is there while the account has a session, or always once lingering is on for it, which also starts it with the machine: the account asks for lingering itself, which Ubuntu allows, and where a system keeps that for an administrator the service is loaded all the same and setup says what is left to do and who does it. The system answers that request before the account's systemd is there, so the command after it is tried for ten seconds; and that systemd is reached through the folder the system keeps for the account (`XDG_RUNTIME_DIR=/run/user/<uid>`), which a shell entered from another account is not told of. A refresh that wrote the unit again runs `systemctl --user daemon-reload`, which ends nothing that runs: without it the system goes on with the unit it read before. What a path or a login holds is written as words of the unit: on one line, quoted, with what the system reads as a specifier or a variable said as itself. A dollar sign is a variable to the system in the command line alone, and is said twice there; the desk's directory, which is the rest of its line, and the `PATH` carry one as it is. Run on Ubuntu 24.04 with systemd 255 (2026-11-11, under WSL), from the command installed with npm and an invitation's line: the unit loaded, the runner heard from, started again ten seconds after its process was ended from outside, lingering turned on by the account itself, and a unit changed by hand written again and read. Not seen there: a restart of the machine, an OS account with no session at all, and a product, none being signed in on that system.
|
|
270
|
+
|
|
271
|
+
`task-scheduler`, for Windows, plans a scheduled task of the agent's own OS account, called by whose it is, `SkillCDN Console Runner (<account>)`, since a task is the machine's and one list holds every account's: its definition `~\AppData\Local\skillcdn-console\runner-task.xml`, then `schtasks /Create /TN <name> /XML <definition> /F`, which registers it in place of the one that was there, `schtasks /End`, which ends the one that runs, and `schtasks /Run`. The task starts when the account logs on, as the account that registered it, with none of the limits a task has by itself: it is not ended after three days, not kept from a battery, and not run below everything else. Nothing of it needs an administrator's rights, and so the runner runs while the account is logged on at the machine, as on macOS: the system refuses an account a task of its own that runs with nobody logged on, and that the account is logged on when the machine starts is for whoever prepares it. The system starts a task once and in a window, gives it the account's environment, keeps nothing it writes, and ends it by ending the one process it started. So what the task starts is one line of the system's own shell, in no window, which starts the runner in the desk with the `PATH` setup ran with, adds what it writes to `~\AppData\Local\skillcdn-console\runner.log`, a line at a time, putting the log aside first where it is full, starts it again ten seconds after it ends, and tells it which process keeps it (`CONSOLE_RUNNER_KEEPER`, that process's number): a runner told so looks for that process every two seconds and stops when it is gone, so that ending the task ends the runner. A runner that was left all the same, the same program started with the same words to their end, is ended with what it started before another begins: one runner for the account. A desk that is gone is a line of the log, and nothing is started. A refresh that wrote the definition again registers it, which ends nothing that runs: the next start is with what was written. What a path or a login holds is written as words of that shell, each whole, with a percent sign said by its number, since the system fills a variable in where it reads a name between two; and as text of the definition in the letters every encoding shares, a letter beyond them by its number, since the system reads a definition that names no encoding in the machine's own. A quote, which a task's command line does not carry, and a line longer than one carries are why no task is written. Run on Windows 11 (2026-11-12), from an invitation's line against a console on the same machine, in an account of the administrators' group from a shell without their rights: the task was registered and started and the runner heard from, and a turn of Claude Code ran under it; the runner's process ended from outside, it ran again ten seconds later; the task ended, the runner was gone within five seconds and nothing started it again until the task was run; a definition changed by hand and registered so was written and registered again by `--refresh`, with the runner left running; and a task that would run with nobody logged on was refused. Not seen there: the account logging on, which is what starts the task from then on, a restart of the machine, an account with no administrator's rights at all, and an account of a domain.
|
|
272
|
+
|
|
273
|
+
## The driver
|
|
274
|
+
|
|
275
|
+
The runner knows its modules by name, from four registries (`createRunnerModules`): drivers, wake sources, services and boundaries. The package registers `claude`, `codex` and `acp`, `console`, which is the console's own stream of signals, and `os-user`; what `runner.json` names is looked up there and is never a path to load. A driver is a module of the first, a product each:
|
|
276
|
+
|
|
277
|
+
```ts
|
|
278
|
+
interface Driver {
|
|
279
|
+
readonly name: string;
|
|
280
|
+
/** What the product is called, and the versions of it the driver was tried with. */
|
|
281
|
+
readonly product: { readonly name: string; readonly tried: readonly string[] };
|
|
282
|
+
/** What the installed product is and offers, asked without starting a session. */
|
|
283
|
+
probe(): Promise<{ version: string | undefined; models: string[]; efforts: string[] }>;
|
|
284
|
+
/** Starts the product: resuming the conversation before where `resume` is given, with a model and an effort where they are. */
|
|
285
|
+
start(options: StartOptions): DriverSession;
|
|
286
|
+
readonly can: { readonly steer: boolean; readonly images: boolean; readonly resume: boolean; readonly set: boolean };
|
|
287
|
+
/** The product's permission modes, the one for a run nobody attends, and the one that allows the least. */
|
|
288
|
+
readonly permissions: { readonly modes: readonly string[]; readonly unattended: string; readonly least: string };
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
interface DriverSession {
|
|
292
|
+
/** A message for the agent, with pictures; `now` stops the turn first, `next` goes after the current tool call. */
|
|
293
|
+
send(message: { text: string; images: Picture[]; priority: "now" | "next" }): Promise<void>;
|
|
294
|
+
interrupt(): Promise<void>;
|
|
295
|
+
/** The model and the effort, where the product takes them in a running session; false where it does not. */
|
|
296
|
+
set(choice: { model?: string; effort?: string }): Promise<boolean>;
|
|
297
|
+
stop(): Promise<void>;
|
|
298
|
+
/** What the product does, as whole blocks, until it ends. */
|
|
299
|
+
readonly events: AsyncIterable<DriverEvent>;
|
|
300
|
+
}
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
A `DriverEvent` is a transcript event before its number (`kind`, `text`, `data`, attachments), or one of the driver's own words to the runner: `taken`, once for every message it was sent, when the product reads it, said back by the product, started in a turn or prompted with; `turn_completed`; `cannot_go_on` with `refused` or `failed` and a reason of the heartbeat's list; `conversation`, the id the product resumes from next time; `ended`, with how.
|
|
304
|
+
|
|
305
|
+
### The `claude` driver
|
|
306
|
+
|
|
307
|
+
The Claude Code binary, unmodified, over its streaming JSON input and output, as its own documentation and its own help have them. What they state is relied on; what they leave unsaid was seen by running the driver against the binary, 2.1.321 first, and is held by fixtures written down from what it printed, in tests that call nobody. What was not seen there, a refusal and a sign-in that ran out, is read as the documentation gives it. A version the driver was not tried with is started all the same and said on the Live page.
|
|
308
|
+
|
|
309
|
+
- **Started** as `claude -p --input-format stream-json --output-format stream-json --verbose --replay-user-messages`, in the desk, with `--model` and `--effort` where the account's settings name them, `--resume <id>` where a conversation is resumed, `--permission-mode` and `--permission-prompts none`: nobody is at the terminal. The mode says what runs without asking. A product is started in its own default wherever that default is one for a run nobody attends, and its driver then names nothing; this product's is not: with nobody at its terminal it starts in its manual mode, in which whatever needs approval, a file written among it, is denied. So the mode is `auto` where `runner.json` names none (`permissions`), in which the product's own classifier reviews each action; a build that starts such a run in `auto` by itself needs nothing named. Where the product starts in another mode than the one asked for, as where the account or the model has no `auto`, the session's first event says so. What would still prompt is denied, the agent is told not to try it again, and the tool that asks a person at the terminal is taken away. A mode named that is none of the product's is a mistake in the desk's file and never leave to do more: the session starts in `dontAsk`, which allows the least, and its denials say so in the transcript. No file of settings is written for the product: its own settings in the agent's OS account stay its operator's and the agent's. The process stays open, reading one message a line from its standard input.
|
|
310
|
+
- **A message** is one line: `{"type":"user","uuid":"...","message":{"role":"user","content":[...]},"parent_tool_use_id":null,"priority":"next"}`, the content a text block and an image block for each picture (`base64`, of the kinds the product takes), under an id of the driver's, which the product says back when it takes the message off its input. `priority` is the product's own: `next` is read when the tool calls under way finish, in the same turn, or starts a turn where none is under way; `now` is read in a turn of its own, and the product stops the turn under way for it only once its tool calls finish, however long they run. An `interrupt` with its words is therefore two lines: the request that stops the turn and the tool call in it at once, `{"type":"control_request","request_id":"...","request":{"subtype":"interrupt"}}`, which is what the product's own client library sends and does nothing where no turn is under way; and then the message, with `now`.
|
|
311
|
+
- **What it reads**, a line each: `system` with `init`, which the product writes when it starts and again at every turn (the conversation's id as `session_id`, the model, the product's version, its permission mode), becomes a `status` event and the driver's `conversation` the first time, and again only where what it says is something else; `assistant` becomes `assistant`, `thinking` and `tool_call` events, a block each, but for a thinking block with no words, which the product sends with its signature alone and which becomes no event; `user` carrying tool results becomes `tool_result` events, a picture among them an attachment; `system` with `compact_boundary`, `api_retry` or `permission_denied` becomes `status`, `error` and `permission`; `result` ends a turn, with the denials of `permission_denials` the product did not say before as `permission` events. A line of a sub-agent names the tool call that started the sub-agent (`parent_tool_use_id`, as the product's documentation has it; not seen run by the driver's fixtures): its events carry that id as `parent`, and as `subagent` the kind of sub-agent the call's input named (`subagent_type`), else what it said the sub-agent is for, else the tool's name. Whatever else it writes, what its commands are, how much of its allowance is left, what became of a message, is left where it is.
|
|
312
|
+
- **When the agent is done** with what it was sent: `turn_completed` follows a result only when no message the driver wrote still waits to be taken. A message written while a tool call runs is read in the same turn, and the two have one result; a message written as a turn was ending starts a turn of its own, and so does the message a turn was stopped for, so the result before it is not the agent done. A turn that was stopped ends in a result that calls itself an error and says how it ended (`terminal_reason`, `aborted_tools` or `aborted_streaming`): a `status`, and no error. A build that says no message back is read without, every result the end of a turn.
|
|
313
|
+
- **An agent that cannot go on.** A result whose `stop_reason` is the model's own word for an answer it would not give, `refusal`, is `cannot_go_on` with `refused` and `model_refused`. A result or an exit that says the product is not signed in, its login expired or its key is refused is `failed` with `sign_in`: the product's words for it are its own and no contract, so they are read by pattern, which is the first thing a version's fixtures hold. A process that does not start is `start`, and one that dies mid-turn `crashed`. What was sent to a product that did not start, or is not signed in, is kept and tried again; a turn that ended with any other error is a turn that ended, and the agent takes the next message.
|
|
314
|
+
- **The model and the effort** are the product's aliases and levels, as its documentation lists them, `opus`, `sonnet`, `haiku` and `fable`, and `low`, `medium`, `high`, `xhigh` and `max`; the binary offers no list of its own to ask, and its version is read from `claude --version`. They are given when the process starts, so a `set` is applied at the next session: the open one ends as soon as no turn is under way, and the next goes on with the same conversation.
|
|
315
|
+
- **Stopping**: the standard input is closed and the process is given a moment to end; then it is ended. A turn alone is stopped with the same request an interrupt begins with, which leaves the process open for the next message.
|
|
316
|
+
- **Signing in** is the product's: a subscription signed in through its own flow in the agent's OS account, or the long-lived token its own command issues, which the runner provides in the environment the product reads it from when `runner.json` maps a secret to it. The driver never reads or keeps either.
|
|
317
|
+
|
|
318
|
+
### The `codex` driver
|
|
319
|
+
|
|
320
|
+
The Codex binary, unmodified, run with nobody at its terminal: `codex exec --json`, as its own help has it. A process a turn, since that is how the product runs without a terminal, and the conversation gone on with by the id its first turn names. Written from what the binary printed when the driver was run against it, 0.164.0-alpha.11.1 first, and held by fixtures written down from that, in tests that call nobody.
|
|
321
|
+
|
|
322
|
+
- **A turn** is started as `codex exec --json --skip-git-repo-check`, in the desk, with `-m` and `-c model_reasoning_effort` where the account's settings name them, and the message on its standard input; a turn of a conversation gone on with as `codex exec resume ... <id>`. The desk is the agent's own, a repository or not one yet. A model, an effort or an id that is no plain word is left out, so that nothing the driver is handed becomes an option of the product's.
|
|
323
|
+
- **The mode** is said at every turn, since a turn keeps nothing of the mode the turn before ran in, in the product's own words: its three sandboxes, `read-only`, `workspace-write` and `danger-full-access`, in which whatever the sandbox does not allow is asked of nobody and refused; and `approve-for-me`, in which the desk may be written and the product's own reviewer answers what would otherwise be asked of a person. With nobody at its terminal the product runs in `read-only`, where a file written is refused, so the driver names `approve-for-me` where `runner.json` names none. A mode named that is none of these starts the turn in `read-only`.
|
|
324
|
+
- **No message is taken in a turn** (`steer: false`). One that arrives while a turn runs waits for the turn to end and is the next turn's, read with whatever else waited; one that is to be read now, an `interrupt` with its words, ends the turn's process first, and the product goes on from there knowing that what it was doing was cut. `turn_completed` is said when a turn ended and nothing waits.
|
|
325
|
+
- **What it reads**, a line each: `thread.started`, written at every turn, names the conversation and becomes a `status` event the first time; an `item` that is an `agent_message` becomes `assistant`; a `command_execution` or a `file_change` becomes `tool_call` when it starts and `tool_result` when it completes, a command with its output and what it ended in; `turn.failed` and `error` become an `error`, said once though the product writes it twice. Its reasoning, a tool of a server and a search are read as its documentation gives them, and were not seen. An item names no agent it is of, so no event says a sub-agent made it.
|
|
326
|
+
- **An agent that cannot go on.** A product that is not there to start is `failed` with `start`. An error that says it is not signed in is `failed` with `sign_in`, read by pattern: its words for it were not seen, since that takes signing it out. A turn's process that ends with no word of how the turn ended fell over, and the agent cannot go on by itself: before a turn started it is `start`, as when the product does not find the conversation again (`thread/resume failed: no rollout found`, seen run), and what was sent is kept and tried again, which a `reset` cures; after one started it is `crashed`, and nothing is sent again, since what the turn was at is not known. A turn the product itself says failed, `turn.failed`, is a turn that ended, and the agent takes the next message. The product has no word of its own for an answer the model would not give.
|
|
327
|
+
- **The model and the effort** are each turn's, so a `set` is taken from the next turn on, with no session ended for it. What the product offers is asked of the product: `codex debug models`, the models it lists for a person to choose from and their levels of effort; its version is read from `codex --version`.
|
|
328
|
+
- **Pictures** are handed to it as files (`images: true`, `imageFiles: true`): each as `-i <path>`, the path the runner wrote it at from the desk, after `exec` or `exec resume` and before `--json`, since the product's option takes several values and would take what follows it for one. Only a path under `work/inbox/<number>/` goes on the command line. Seen with the binary (0.167.0), on a first turn and on one gone on with.
|
|
329
|
+
- **Stopping** ends the turn under way, if there is one: the process is asked to end, and then ended.
|
|
330
|
+
- **Signing in** is the product's own, in the agent's OS account, as with `claude`.
|
|
331
|
+
|
|
332
|
+
The product also has an app server, which takes a message in a turn and is what its own editor extension speaks; the product calls it experimental, and a driver over it is a later one.
|
|
333
|
+
|
|
334
|
+
### The `acp` driver
|
|
335
|
+
|
|
336
|
+
Any product that speaks the Agent Client Protocol, version 1: the command `runner.json` names as `product`, started once for a session and spoken to over its standard input and output, a JSON-RPC message a line, with the runner as the protocol's client. Written from the protocol's documentation and held by fixtures in its shapes, in tests that call nobody; read since against the types the protocol publishes and against the source of one agent that speaks it, an adapter that puts Codex behind the protocol, which is where the points below say what an agent does beside the protocol. Run since (2026-11-12) against that adapter, its 2.6.0 over Codex 0.167 on Windows 11 with a signed-in account and a lower model, by the driver alone with no runner around it: what it is and offers asked, eight models and six levels; turns with a shell command and with a change to a file, each with its result; a message read now, which stopped the turn and was the next; an interrupt; the model and the level set in a running session; a conversation gone on with in a new process, and one that was not there begun anew with the agent's reason; a model it does not offer left to the product's own; a picture handed over and read; and leave asked where the product's mode keeps writing back, allowed once, and refused where the desk says so, on which that agent ends its turn. Run the same day against the adapter that puts Claude Code behind the protocol, its 0.106.0 over Claude Code 2.1.322 with a lower model: turns with a command and with an edit, a message read now, an interrupt, the level set, a conversation gone on with, a picture, and its manual mode named, in which it asked leave to write, was refused and went on with its turn. The runner whole, with this driver, was run against a scripted agent only, which is where a model chosen in a running session was seen to stay the old one on the agent's page, and the calls of a second turn, numbered as the first's, to be missing from the transcript; both are corrected.
|
|
337
|
+
|
|
338
|
+
- **Started** as the command and the words `runner.json` names, in the desk. The runner says `initialize` with version 1, what it is with the command's own version (`clientInfo`), and offers no file and no terminal of its own (`fs` and `terminal` both off), so that the agent works with its own tools in the desk, and a request for one is answered as a method that is not offered. A product that answers with another version is `failed` with `start`.
|
|
339
|
+
- **The session** is opened with `session/new`, the desk as its directory and no MCP server of the runner's. A conversation is gone on with where the agent can: `session/resume` where it resumes, `session/load` where it only loads, with what it replays then left unread; an agent that does neither begins a new one, and the transcript says so. A conversation the agent cannot go on with, one it has no more or never kept, is said in the transcript with the agent's reason, and a new one begins, as one begins where the conversation kept was another driver's; an agent that says it is not signed in is said as that. The id of the session is the conversation's.
|
|
340
|
+
- **A turn** is `session/prompt`: what arrived together as one prompt, each message a block of text, with its pictures as `image` blocks where the agent takes them (`promptCapabilities.image`). The session says whether it does once the agent has said so, and the runner then hands a picture over as a file alone, saying so; for a message sent before that, the driver adds a line saying how many were not shown and where they are in the desk. How the turn ended is the answer's `stopReason`: `end_turn` is a turn completed; `cancelled` one that was stopped; `max_tokens` and `max_turn_requests` are said as a `status` and are a turn that ended; `refusal` is the model's, `refused`; an error on the request is said, and is a turn that ended. A turn the agent itself ends as cancelled where it was refused leave, which nobody stopped, is said as that.
|
|
341
|
+
- **No message is taken in a turn** (`steer: false`). One that arrives while a turn runs is the next turn's; one that is to be read now, and an `interrupt`, say `session/cancel` first, and the agent answers the turn as cancelled. A method of an agent's own for a message in a turn, beside the protocol, is not spoken.
|
|
342
|
+
- **What it reads** are the `session/update` notifications. The agent's message and its thought arrive in pieces and are kept until whole: an `assistant` and a `thinking` block each, ended by whatever comes that is something else. A `tool_call` is a `tool_call` event, its title with its input, said once the input is known: an agent may open a call before what it is called with is whole and say that in an update, so a call is said at the update that brings its input, at the next thing said of it where it has none, and before whatever else is said; a call opened under an id whose call is done is another call, so that an agent that numbers its calls anew at every turn has each of them on the record; the update that completes it or fails it a `tool_result`, with what the call held last: an update names what changed and leaves the rest as it was, so what was said when the call began is its result where its end says the status alone. The result is the text of its content, a file by its path with what became of it (written, changed, removed), and its pictures handed in; where the content holds no text, what the call's command printed, which an agent may send beside the protocol while the command runs (`_meta.terminal_output`, whole, or `_meta.terminal_output_delta`, a piece at a time, shown to 200,000 characters and kept a little beyond, so that it is cut once the secrets are out of it); and its output as data where there is neither. The protocol names no sub-agent, so no event says one made it. A `plan` is a `status`. A choice the agent changed is kept, and said to the runner where it is the model or the effort. The rest, the commands it offers, its mode, what it used and what a person typed said back, is none of the transcript's. What the agent tells beside its work, a warning or an error of its own, is taken as a `notice` (the client says that it takes them, `session.notices`, or an agent says such a thing as its own words in the middle of an answer): a `status`, or an `error` where the agent says it is one. A block is its words, without the empty lines an agent may begin or end it with.
|
|
343
|
+
- **What the agent asks leave for** (`session/request_permission`) is answered at once, since nobody is at a terminal, and recorded as a `permission` event. `permissions` in `runner.json` says how, in the driver's own two words, there being no one product to take a word from: `allow`, the one where it names none, takes the option that allows the call once, since an agent refused everything does no work; `deny` takes the one that refuses it once, for an agent that is to do only what its own mode lets it without asking. An agent that offers neither is answered that the request was cancelled. What an agent does without asking is its own mode's, and the protocol has a session say its modes and set one: a choice of the category `mode`, or `session/set_mode` ([ADR-0091](../adr/0091-an-agent-over-the-protocol-runs-in-a-mode-of-its-own-which-the-desk-or-the-driver-names.md)). The mode the other two drivers name, in which the product works without asking and a review of its own holds back what looks unsafe, is the agent's to have under whatever name it gives it; the protocol has no word for it. So `permissions` may also name one of the agent's own modes: the session is set to it, and what the agent still asks is refused, since the mode is what it may do with nobody there. Where `permissions` names none, an agent the driver was run against is set to the mode it has for a run nobody attends, and what it still asks is refused: `agent`, its automatic review, for the adapter that puts Codex behind the protocol, which in that mode asked nothing in the runs seen, a file written beside the desk included, and in `read-only` asked leave to write; `auto` for the adapter that puts Claude Code behind it, which starts in it where the model has one, and in its manual mode, `default`, asked leave to write. Any other agent runs in its own mode and is allowed each call once, as above: the driver cannot tell an agent that asks only for what its review held back from one that asks for everything, so whoever prepares its desk names its mode. A mode named that the agent does not offer is a mistake in the desk's file: the transcript says so with the modes the agent offers, the agent runs in its own, and what it asks is refused. When an agent gains such a mode, naming it in `runner.json` is all its desk needs; the driver's list of what each agent calls it (`UNATTENDED_MODES` in `acp.ts`, beside the versions tried) is where it becomes the default, once it was run.
|
|
344
|
+
- **The model and the effort** are the session's choices of the categories `model` and `thought_level` (`configOptions`): what the agent offers is what the account's settings choose from, each set with `session/set_config_option` when the session opens and when a `set` arrives, in a running session (`set: true`). What the session runs with is said when it opens and again whenever that changed, by a `set` taken or by the agent itself, so that the heartbeat's `running` is what the agent runs with now and not what its session began with. What it offers is asked without a session to run: the product is started, asked what it is (`agentInfo`, whose name is what the runner calls it and whose version is its version), a session is opened for its choices and closed again where the agent closes one (`sessionCapabilities.close`), and it is left.
|
|
345
|
+
- **An agent that cannot go on.** A product that is not there to start, or that opens no session in two minutes, is `failed` with `start`. The protocol's own code for a request it takes only when signed in (`-32000`), and an error that says so, is `failed` with `sign_in`; what an error says is its message with what it carries beside it (`data`), since an agent may say no more than that something failed and put why there. A process that ends by itself is `crashed`, or `start` where it never answered. What the driver cannot tell is a turn the agent ended as completed while saying, in its own words, that it failed, as the adapter read does with an error of its model: that is a turn completed, with the agent's words in the transcript.
|
|
346
|
+
- **Stopping** closes the product's input, then asks it to end, then ends it.
|
|
347
|
+
- **Signing in** is the product's own, in the agent's OS account, as with `claude`: the protocol's `authenticate` is not spoken, since it asks a person.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skillcdn/console",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "What a custom SkillCDN console is built from: the API client and schemas, the components, the composition of the default console, and the console command agents work the board with.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/skillcdn/console#readme",
|
|
@@ -35,10 +35,18 @@
|
|
|
35
35
|
"types": "./dist/api.d.ts",
|
|
36
36
|
"default": "./dist/api.js"
|
|
37
37
|
},
|
|
38
|
+
"./charts": {
|
|
39
|
+
"types": "./dist/charts.d.ts",
|
|
40
|
+
"default": "./dist/charts.js"
|
|
41
|
+
},
|
|
38
42
|
"./cli": {
|
|
39
43
|
"types": "./dist/cli/cli.d.ts",
|
|
40
44
|
"default": "./dist/cli/cli.js"
|
|
41
45
|
},
|
|
46
|
+
"./runner": {
|
|
47
|
+
"types": "./dist/runner.d.ts",
|
|
48
|
+
"default": "./dist/runner.js"
|
|
49
|
+
},
|
|
42
50
|
"./web": {
|
|
43
51
|
"types": "./dist/web.d.ts",
|
|
44
52
|
"default": "./dist/web.js"
|
|
@@ -86,7 +94,8 @@
|
|
|
86
94
|
"vitest": "^5.1.0"
|
|
87
95
|
},
|
|
88
96
|
"dependencies": {
|
|
89
|
-
"@skillcdn/
|
|
97
|
+
"@skillcdn/cli": "^0.5.2",
|
|
98
|
+
"@skillcdn/core": "^0.5.2",
|
|
90
99
|
"react-markdown": "^10.1.0",
|
|
91
100
|
"remark-gfm": "^4.0.1",
|
|
92
101
|
"zod": "^4.6.7"
|
|
@@ -96,7 +105,7 @@
|
|
|
96
105
|
"react-dom": "^19.0.0"
|
|
97
106
|
},
|
|
98
107
|
"scripts": {
|
|
99
|
-
"build": "tsc -b tsconfig.build.json && node
|
|
108
|
+
"build": "tsc -b tsconfig.build.json && node ../../scripts/styles.mjs build",
|
|
100
109
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
101
110
|
"test": "vitest run --passWithNoTests",
|
|
102
111
|
"clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\""
|
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: A shell with Node.js 24 or newer and npm or pnpm, and an agent that reads and writes files. For looking at the pages against a board, the console command signed in by a person. A browser the agent can drive is optional. No key of the agent's own is needed, and it never sees a token.
|
|
6
6
|
metadata:
|
|
7
7
|
author: skillcdn
|
|
8
|
-
version: "1.
|
|
8
|
+
version: "1.11"
|
|
9
9
|
skillcdn:
|
|
10
10
|
translations:
|
|
11
11
|
ko:
|
|
@@ -38,7 +38,7 @@ Nothing here restates them: they are the contract, current at the version instal
|
|
|
38
38
|
|
|
39
39
|
1. **The package's README**: `node_modules/@skillcdn/console/README.md` once installed, [`packages/console/README.md`](/packages/console/README.md) in the console's repository. Every export by layer and what each takes, the styles, the languages, and "A console of your own" with two of the four files to write.
|
|
40
40
|
2. **The types**: `node_modules/@skillcdn/console/dist/index.d.ts`, `api.d.ts`, `cli/cli.d.ts` and `web.d.ts`: the exact props of every component and the shape of every answer, with the comment that says what each is for.
|
|
41
|
-
3. **The sources**, shipped with the package under `src/`: `console.tsx` (how the default console composes the pages from the components, routes, and loads its data), `components/*.tsx` (each component and what it renders), `data.ts` (how the workspace and a project are loaded and kept current by the stream), `styles
|
|
41
|
+
3. **The sources**, shipped with the package under `src/`: `console.tsx` (how the default console composes the pages from the components, routes, and loads its data), `components/*.tsx` (each component and what it renders), `data.ts` (how the workspace and a project are loaded and kept current by the stream), `styles/` (the tokens, `--sc-*`, in `tokens.css`; every class, `sc`-prefixed, a part each under `parts/` with the catalogue of them in `README.md`, the charts for figures among them, and the pages' own under `pages/`; `styles/console.css` is their order, joined into the one `console.css` a console loads), `i18n/en.ts` (every word the pages show, keyed as a pack is). The repository's tests (`packages/console/src/components/components.test.tsx`, `src/console.test.tsx`), not shipped in the package, show what each piece renders, for tests of one's own.
|
|
42
42
|
4. **The REST API**: [docs/specs/rest.md](/docs/specs/rest.md), in the package at `docs/specs/rest.md`: every route, what it takes and answers, who may ask, and the codes of its refusals; for a script. **The command line**: [docs/specs/cli.md](/docs/specs/cli.md), for `console serve`.
|
|
43
43
|
5. **The default console itself**, `apps/console/web/` in the console's repository: the page, the script, the build and the compiler's settings, with the brand, the fonts and the icons wired in. Its four files are quoted in [the-default-console.md](references/the-default-console.md), kept identical to them by the repository's check, for an agent that has the skill and not the repository; a console of one's own copies their shape.
|
|
44
44
|
6. **The architecture**: [docs/architecture.md](/docs/architecture.md) for how the parts fit, and the [decisions](/docs/adr/README.md), both documents of the console's repository, read through the connection that served this skill and not in the package; ADR-0014 says how a person's own console reaches the organization's. Not needed for a re-skin.
|
|
@@ -61,7 +61,7 @@ Each phase produces something the person can look at and ends with one line to t
|
|
|
61
61
|
|
|
62
62
|
### Phase 1: Start from the default console
|
|
63
63
|
|
|
64
|
-
Produces the **plan** and the first build. Install first, in the new folder, or in `console-ui/` of the deployment repository, so that the README, the types and the sources are at hand for the plan: the install writes only `package.json`, the lockfile and `node_modules`, and the plan is shown before any file of the console is written. For the organization's console the package is installed at the version the deployment pins: `CONSOLE_REF` in `deploy/console.env` of the deployment repository is the commit of a release tag `@skillcdn/console@<version>`, and `npm install @skillcdn/console@<version>` takes that one, so that the README, the types and the sources are the deployment's own, and the pages and the server are one release. A console is four files and a configuration: `index.html` with a `#root`, `src/main.tsx` that calls `createConsole({ ... }).mount(root)` and imports `@skillcdn/console/console.css`, `vite.config.ts` with the React plugin and, for building against the real board, `/api` sent to `console serve` with `changeOrigin`, and `tsconfig.json` with `jsx`, `moduleResolution: "Bundler"` and the `vite/client` types that make an imported picture a module. The README's "A console of your own" shows two of them, the-default-console.md all four with the marks, the icons and a face wired in. Write the plan (the kind, where the build goes, the files, what is configured, what is replaced, the colours and the marks) and stop for the checkpoint; then write the files and build: `npx vite build` makes `dist/` with its `index.html`. A script instead imports `createClient` from `@skillcdn/console/api`, which brings no React.
|
|
64
|
+
Produces the **plan** and the first build. Install first, in the new folder, or in `console-ui/` of the deployment repository, so that the README, the types and the sources are at hand for the plan: the install writes only `package.json`, the lockfile and `node_modules`, and the plan is shown before any file of the console is written. For the organization's console the package is installed at the version the deployment pins: `CONSOLE_REF` in `deploy/console.env` of the deployment repository is the commit of a release tag `@skillcdn/console@<version>`, and `npm install @skillcdn/console@<version>` takes that one, so that the README, the types and the sources are the deployment's own, and the pages and the server are one release. A console is four files and a configuration: `index.html` with a `#root`, `src/main.tsx` that calls `createConsole({ ... }).mount(root)` and imports `@skillcdn/console/console.css`, `vite.config.ts` with the React plugin and, for building against the real board, `/api` sent to `console serve` with `changeOrigin`, and `tsconfig.json` with `jsx`, `moduleResolution: "Bundler"` and the `vite/client` types that make an imported picture a module. The README's "A console of your own" shows two of them, the-default-console.md all four with the marks, the icons and a face wired in. A person's own console that is to show what they made, with their own work on the board beside it, starts from the shell the package ships for a desk's pages, `template/desk-web` in the package, which `console desk --web` writes into a desk's `web/`: the four files with one empty page of the member's own (`src/page.tsx`, at `/pages/mine`), as the README's "A desk's pages" says. Write the plan (the kind, where the build goes, the files, what is configured, what is replaced, the colours and the marks) and stop for the checkpoint; then write the files and build: `npx vite build` makes `dist/` with its `index.html`. A script instead imports `createClient` from `@skillcdn/console/api`, which brings no React.
|
|
65
65
|
|
|
66
66
|
### Phase 2: Configure before replacing
|
|
67
67
|
|
|
@@ -69,7 +69,7 @@ Produces the **configuration**, as [configuring.md](references/configuring.md) l
|
|
|
69
69
|
|
|
70
70
|
### Phase 3: Compose pages of one's own
|
|
71
71
|
|
|
72
|
-
Produces the **pages**. For a page the default console lacks: `useConsoleData(client, projectKey)` answers the workspace and the project the page is on, kept current by the project's stream, with the actions; the components take their data as props and nothing from the network; `matchRoute`, `PATHS`, `projectHref`, `taskHref`, `decisionHref` and `docHref` name the addresses; `Shell` is the header with the tabs and the person's menu. A page as a tab is `pages` in the configuration, its `render` composing the components over what it is given; a composition of one's own is `src/console.tsx` with pages added or taken away (configuring.md "A page of one's own"). A page composes the board's own data and holds none of its own: a page that would keep records, run logic or reach outside is a feature of the organization's work, which is a plugin, not a page ([building-a-plugin](/skills/building-a-plugin/SKILL.md)); a plugin's pages come in its package and run in frames the console serves, drawn into the tabs by the console itself, so that a console's pages need no build and no change for one. A request without a page of its own skips this phase.
|
|
72
|
+
Produces the **pages**. For a page the default console lacks: `useConsoleData(client, projectKey)` answers the workspace and the project the page is on, kept current by the project's stream, with the actions; the components take their data as props and nothing from the network; `matchRoute`, `PATHS`, `projectHref`, `taskHref`, `decisionHref` and `docHref` name the addresses; `Shell` is the header with the tabs and the person's menu. A page as a tab is `pages` in the configuration, its `render` composing the components over what it is given (the README's "Pages of your own" says what that is), with figures drawn by the charts (the README's "Charts" says which is for what); a composition of one's own is `src/console.tsx` with pages added or taken away (configuring.md "A page of one's own"). A page composes the board's own data and holds none of its own: a page that would keep records, run logic or reach outside is a feature of the organization's work, which is a plugin, not a page ([building-a-plugin](/skills/building-a-plugin/SKILL.md)); a plugin's pages come in its package and run in frames the console serves, drawn into the tabs by the console itself, so that a console's pages need no build and no change for one. A request without a page of its own skips this phase.
|
|
73
73
|
|
|
74
74
|
### Phase 4: Run it against the board
|
|
75
75
|
|
|
@@ -13,6 +13,7 @@ What `createConsole` takes, how the look is set, how marks, icons and faces go i
|
|
|
13
13
|
| `languages` | The packs the pages speak; a language of one's own is `src/i18n/en.ts` copied whole and translated, every key kept. |
|
|
14
14
|
| `components` | The pieces to replace, with the props `ConsoleComponents` names. |
|
|
15
15
|
| `pages` | Tabs of the console's own: each a `CustomPage` with a key, a label by language, a level (the workspace's pages or every project's) and `render`, given the data, the client, the navigation and the words. |
|
|
16
|
+
| `persona` | What an agent account's persona is proposed and drawn from, in place of the package's ([ADR-0084](/docs/adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)): `names`, a handle and its spelling in each language, which "Add an agent account" proposes from, and `avatarSets`, the sets the avatars are drawn from on this console's pages (`AvatarSet`, which is data: grounds and ramps as colours, bodies, surfaces and accents as outlines in a square of a hundred units, each set under a version of its own, never one of the package's; [ADR-0097](/docs/adr/0097-an-avatar-is-a-planet-of-flat-shapes-in-two-tones-filled-as-pixels.md)). Left out, the console's own names and the package's set. |
|
|
16
17
|
| `baseUrl` | The API's origin; the page's own when left out. |
|
|
17
18
|
| `client` | A client of one's own, for tests. |
|
|
18
19
|
|