@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,334 @@
|
|
|
1
|
+
import type { AgentStateReason, TranscriptKind } from "../vocabulary.js";
|
|
2
|
+
|
|
3
|
+
// What the runner's modules are to one another (ADR-0085, docs/specs/runner.md): a driver speaks
|
|
4
|
+
// to one product, a wake source raises wakes from outside the console, a service keeps the
|
|
5
|
+
// runner running, a boundary keeps one agent apart from another on a machine. The runner knows
|
|
6
|
+
// the interfaces and nothing of what is behind them.
|
|
7
|
+
|
|
8
|
+
/** A fact about a block of a transcript: a word, a number, a yes or no. */
|
|
9
|
+
export type Fact = string | number | boolean | null;
|
|
10
|
+
|
|
11
|
+
/** A picture, as a supervisor sends one with a tell and as a tool returns one. */
|
|
12
|
+
export interface Picture {
|
|
13
|
+
readonly name: string;
|
|
14
|
+
readonly contentType: string;
|
|
15
|
+
readonly bytes: Uint8Array;
|
|
16
|
+
/**
|
|
17
|
+
* Where the runner wrote it, from the desk, for a picture that came with a signal: what a
|
|
18
|
+
* product that takes a picture as a file is handed. Nothing for a picture a tool returned.
|
|
19
|
+
*/
|
|
20
|
+
readonly path?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* What a driver says while its product runs: a block of the transcript before its number, or
|
|
25
|
+
* one of the driver's own words to the runner.
|
|
26
|
+
*/
|
|
27
|
+
export type DriverEvent =
|
|
28
|
+
| {
|
|
29
|
+
readonly type: "event";
|
|
30
|
+
readonly kind: TranscriptKind;
|
|
31
|
+
readonly text: string;
|
|
32
|
+
readonly data?: Readonly<Record<string, Fact>> | undefined;
|
|
33
|
+
readonly pictures?: readonly Picture[] | undefined;
|
|
34
|
+
}
|
|
35
|
+
/** What the session runs with, as the product said when it started. */
|
|
36
|
+
| {
|
|
37
|
+
readonly type: "running";
|
|
38
|
+
readonly model: string | null;
|
|
39
|
+
readonly effort: string | null;
|
|
40
|
+
readonly version: string | null;
|
|
41
|
+
}
|
|
42
|
+
/** The id the product resumes the conversation from next time. */
|
|
43
|
+
| { readonly type: "conversation"; readonly id: string }
|
|
44
|
+
/**
|
|
45
|
+
* The product took a message: the oldest it was sent and had not said so of. Said once for
|
|
46
|
+
* every message sent, when the product reads it, so that a message handed over in a turn is
|
|
47
|
+
* on the record where the agent came to it and not where it was written.
|
|
48
|
+
*/
|
|
49
|
+
| { readonly type: "taken" }
|
|
50
|
+
/** A turn completed: the agent is done with what it was sent, and waits for more. */
|
|
51
|
+
| { readonly type: "turn_completed" }
|
|
52
|
+
/** The agent cannot go on: the model refused, or the product failed; with why, in the heartbeat's words. */
|
|
53
|
+
| {
|
|
54
|
+
readonly type: "cannot_go_on";
|
|
55
|
+
readonly state: "refused" | "failed";
|
|
56
|
+
readonly reason: AgentStateReason;
|
|
57
|
+
}
|
|
58
|
+
/** The product's process is gone: by itself, or mid-turn. Always the last. */
|
|
59
|
+
| { readonly type: "ended"; readonly how: "exited" | "crashed" };
|
|
60
|
+
|
|
61
|
+
/** A message for the agent: `now` stops the turn first, `next` goes after the tool call under way. */
|
|
62
|
+
export interface DriverMessage {
|
|
63
|
+
readonly text: string;
|
|
64
|
+
readonly images: readonly Picture[];
|
|
65
|
+
readonly priority: "now" | "next";
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** One process of the product. */
|
|
69
|
+
export interface DriverSession {
|
|
70
|
+
send(message: DriverMessage): Promise<void>;
|
|
71
|
+
/** Stops the turn under way, and nothing else. */
|
|
72
|
+
interrupt(): Promise<void>;
|
|
73
|
+
/** The model and the effort, where the product takes them in a running session; false where it does not. */
|
|
74
|
+
set(choice: {
|
|
75
|
+
readonly model?: string | null | undefined;
|
|
76
|
+
readonly effort?: string | null | undefined;
|
|
77
|
+
}): Promise<boolean>;
|
|
78
|
+
/** Ends the process: asked first, then made to. */
|
|
79
|
+
stop(): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Whether this session's product takes a picture, where that is known only of a session: an
|
|
82
|
+
* agent says what it takes when it starts. Nothing while it is not known, and left out by a
|
|
83
|
+
* driver whose product always answers as `can.images` says.
|
|
84
|
+
*/
|
|
85
|
+
images?(): boolean | undefined;
|
|
86
|
+
/** What the product does, as whole blocks, until it ends. Read once. */
|
|
87
|
+
readonly events: AsyncIterable<DriverEvent>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface StartOptions {
|
|
91
|
+
/** The desk: the directory the product works in. */
|
|
92
|
+
readonly cwd: string;
|
|
93
|
+
/** What is added to the product's environment: the secrets `runner.json` maps to variables. */
|
|
94
|
+
readonly env: Readonly<Record<string, string>>;
|
|
95
|
+
readonly model: string | null;
|
|
96
|
+
readonly effort: string | null;
|
|
97
|
+
/** The conversation to go on with, or nothing for a new one. */
|
|
98
|
+
readonly resume: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* The permission mode the product is started in, in the product's own word, as `runner.json`
|
|
101
|
+
* names it; the driver's own for a run nobody attends where nothing names one.
|
|
102
|
+
*/
|
|
103
|
+
readonly permissions?: string | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* What cuts a text to what the transcript shows of it. A driver cuts whatever it shows a
|
|
106
|
+
* part of through this, and never by itself first; left out, a text is cut as it is.
|
|
107
|
+
*/
|
|
108
|
+
readonly cut?: Cut | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* What keeps the end of a text to what the transcript shows of it, the secrets out first: the
|
|
111
|
+
* end of what the product wrote on its standard error, which says why it ended. A driver shows
|
|
112
|
+
* that through this (`errorsShown`); left out, a text is cut as it is.
|
|
113
|
+
*/
|
|
114
|
+
readonly cutEnd?: Cut | undefined;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* A text within `most` characters as the transcript shows it, ended by the mark of a cut where
|
|
119
|
+
* it was longer: the account's secrets are taken out first and the text is cut after, so that
|
|
120
|
+
* no part of one stands at the cut. `more` says that the text is itself the beginning of a
|
|
121
|
+
* longer one, which the driver kept to a bound: its last characters may begin a secret, and
|
|
122
|
+
* are not shown.
|
|
123
|
+
*/
|
|
124
|
+
export type Cut = (text: string, most: number, more?: boolean) => string;
|
|
125
|
+
|
|
126
|
+
/** A text cut as it is, with the mark of a cut: what a driver cuts with where it was handed nothing to cut with. */
|
|
127
|
+
export const plainCut: Cut = (text, most) =>
|
|
128
|
+
text.length > most ? `${text.slice(0, most)}…` : text;
|
|
129
|
+
|
|
130
|
+
/** The end of a text kept as it is, begun by the mark of a cut: what a driver keeps the end of a text with where it was handed nothing to. */
|
|
131
|
+
export const plainCutEnd: Cut = (text, most, more = false) =>
|
|
132
|
+
text.length > most || more ? `…${text.slice(Math.max(0, text.length - most))}` : text;
|
|
133
|
+
|
|
134
|
+
/** How much of the end of what a product wrote on its standard error an event shows. */
|
|
135
|
+
export const MAX_ERRORS_SHOWN = 4000;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* What a product wrote on its standard error as an event shows it: its end, within
|
|
139
|
+
* `MAX_ERRORS_SHOWN`, kept through `cutEnd`, so that the secrets are out before it is cut. A
|
|
140
|
+
* text whose beginning the child let go begins with the mark of a cut (`Child.errors`), and its
|
|
141
|
+
* first characters may be the end of a secret: they are not shown.
|
|
142
|
+
*/
|
|
143
|
+
export function errorsShown(errors: string, cutEnd: Cut): string {
|
|
144
|
+
const text = errors.trim();
|
|
145
|
+
const more = text.startsWith("…");
|
|
146
|
+
return cutEnd(more ? text.slice(1) : text, MAX_ERRORS_SHOWN, more);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** What the installed product is and offers, asked without starting a session. */
|
|
150
|
+
export interface Probe {
|
|
151
|
+
readonly version: string | undefined;
|
|
152
|
+
readonly models: readonly string[];
|
|
153
|
+
readonly efforts: readonly string[];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** The module that speaks to one product. */
|
|
157
|
+
export interface Driver {
|
|
158
|
+
readonly name: string;
|
|
159
|
+
/** What the product is called, and the versions of it the driver was tried with. */
|
|
160
|
+
readonly product: { readonly name: string; readonly tried: readonly string[] };
|
|
161
|
+
readonly can: {
|
|
162
|
+
/** Whether a message reaches the agent after the tool call under way, and a turn is stopped for one. */
|
|
163
|
+
readonly steer: boolean;
|
|
164
|
+
/** Whether a message carries pictures the product sees. */
|
|
165
|
+
readonly images: boolean;
|
|
166
|
+
/** Whether the product takes a picture as a file in the desk, by its path, where others take its bytes. */
|
|
167
|
+
readonly imageFiles?: boolean | undefined;
|
|
168
|
+
/** Whether a conversation is gone on with from one session to the next. */
|
|
169
|
+
readonly resume: boolean;
|
|
170
|
+
/** Whether the model and the effort are taken in a running session. */
|
|
171
|
+
readonly set: boolean;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* The product's permission modes, in its own words: what runs without asking. `unattended` is
|
|
175
|
+
* the one the driver starts the product in where `runner.json` names none, and `least` the
|
|
176
|
+
* one it starts it in where what is named is none of the product's.
|
|
177
|
+
*/
|
|
178
|
+
readonly permissions: {
|
|
179
|
+
readonly modes: readonly string[];
|
|
180
|
+
readonly unattended: string;
|
|
181
|
+
readonly least: string;
|
|
182
|
+
};
|
|
183
|
+
probe(): Promise<Probe>;
|
|
184
|
+
start(options: StartOptions): DriverSession;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/** A child process as a driver needs one: lines in, lines out, and how it ended. */
|
|
188
|
+
export interface Child {
|
|
189
|
+
/** One line on its standard input. */
|
|
190
|
+
write(line: string): Promise<void>;
|
|
191
|
+
/** Closes its standard input: nothing more is coming. */
|
|
192
|
+
end(): void;
|
|
193
|
+
/** Its standard output, a line at a time, until it closes. Read once. */
|
|
194
|
+
readonly lines: AsyncIterable<string>;
|
|
195
|
+
/**
|
|
196
|
+
* The end of what it wrote on its standard error, bounded: where its beginning was let go, it
|
|
197
|
+
* begins with the mark of a cut (`…`), since what it begins with may be the end of a secret.
|
|
198
|
+
*/
|
|
199
|
+
errors(): string;
|
|
200
|
+
kill(signal: "SIGINT" | "SIGTERM" | "SIGKILL"): void;
|
|
201
|
+
/** How it ended: its exit code, or the signal that ended it; or why it never started. Never rejects. */
|
|
202
|
+
readonly exited: Promise<{
|
|
203
|
+
readonly code: number | null;
|
|
204
|
+
readonly signal: string | null;
|
|
205
|
+
readonly error?: string | undefined;
|
|
206
|
+
}>;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/** Starts a child process. One whose command is not there to start says so when it is asked how it ended. */
|
|
210
|
+
export type Spawn = (
|
|
211
|
+
command: string,
|
|
212
|
+
args: readonly string[],
|
|
213
|
+
options: { readonly cwd: string; readonly env: Readonly<Record<string, string>> },
|
|
214
|
+
) => Child;
|
|
215
|
+
|
|
216
|
+
/** A socket a wake source listens on: messages of text in, messages of text out. */
|
|
217
|
+
export interface WakeSocket {
|
|
218
|
+
/** What arrives, a message at a time, until the socket closes. Read once. */
|
|
219
|
+
readonly messages: AsyncIterable<string>;
|
|
220
|
+
send(text: string): void;
|
|
221
|
+
close(): void;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** What a wake source is given of the runner and of the machine. */
|
|
225
|
+
export interface WakeHost {
|
|
226
|
+
/** A secret of the account's store, by name; nothing where it keeps none. */
|
|
227
|
+
secret(name: string): Promise<string | undefined>;
|
|
228
|
+
/** Raises a wake: the console records it, and it reaches the agent in order, as someone else's words. */
|
|
229
|
+
raise(wake: { readonly key: string; readonly text: string }): Promise<void>;
|
|
230
|
+
/** A line for whoever reads the runner's own output: never what a message says. */
|
|
231
|
+
log(line: string): void;
|
|
232
|
+
fetch(
|
|
233
|
+
url: string,
|
|
234
|
+
init: {
|
|
235
|
+
readonly method: string;
|
|
236
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
237
|
+
readonly signal: AbortSignal;
|
|
238
|
+
},
|
|
239
|
+
): Promise<{ json(): Promise<unknown> }>;
|
|
240
|
+
socket(url: string): WakeSocket;
|
|
241
|
+
/** Waits so long, or less where the signal ends the wait. */
|
|
242
|
+
wait(ms: number, signal: AbortSignal): Promise<void>;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/** A module that raises wakes from outside the console. `console`, the console's own stream of signals, is the runner's own. */
|
|
246
|
+
export interface WakeSource {
|
|
247
|
+
readonly name: string;
|
|
248
|
+
/**
|
|
249
|
+
* Listens until it ends or the signal does, raising a wake for what is said to the agent. A
|
|
250
|
+
* source that ended is started again by the runner, after a while. `console` has none.
|
|
251
|
+
*/
|
|
252
|
+
run?(host: WakeHost, signal: AbortSignal): Promise<void>;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/** What a service is told of the runner it keeps running. */
|
|
256
|
+
export interface ServiceInput {
|
|
257
|
+
/** The desk, absolute: where the runner is started. */
|
|
258
|
+
readonly desk: string;
|
|
259
|
+
/** The home directory of the OS account the runner runs in, and the account's number where the system has one. */
|
|
260
|
+
readonly home: string;
|
|
261
|
+
readonly uid: number | undefined;
|
|
262
|
+
/** The name of that OS account, for a service that names it: a task of Windows is the machine's, called by whose it is. */
|
|
263
|
+
readonly user?: string | undefined;
|
|
264
|
+
/** What starts the runner: the runtime, the command and its words, absolute where they are files. */
|
|
265
|
+
readonly program: readonly string[];
|
|
266
|
+
/** Where the runner's process, and the product it starts, look for programs. */
|
|
267
|
+
readonly path: string | undefined;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/** A command a service has run. */
|
|
271
|
+
export interface ServiceCommand {
|
|
272
|
+
readonly command: string;
|
|
273
|
+
readonly args: readonly string[];
|
|
274
|
+
/** What is added to the environment it runs in. */
|
|
275
|
+
readonly env?: Readonly<Record<string, string>> | undefined;
|
|
276
|
+
readonly mayFail?: boolean | undefined;
|
|
277
|
+
/** For one that may fail: what is left to do where it did, in a sentence. */
|
|
278
|
+
readonly otherwise?: string | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* How many times it is tried, a second apart, until it succeeds: for the first command after
|
|
281
|
+
* one the system answers before it has done what was asked. Once where nothing is said.
|
|
282
|
+
*/
|
|
283
|
+
readonly tries?: number | undefined;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** What a service writes and runs to keep a runner running. Nothing of it needs an administrator's rights. */
|
|
287
|
+
export interface ServicePlan {
|
|
288
|
+
/** Whole files, each with the mode it is written in. */
|
|
289
|
+
readonly files: readonly {
|
|
290
|
+
readonly path: string;
|
|
291
|
+
readonly text: string;
|
|
292
|
+
readonly mode: number;
|
|
293
|
+
}[];
|
|
294
|
+
/**
|
|
295
|
+
* Commands, in order; one that fails where nothing was there before says so. One that may fail
|
|
296
|
+
* and did says what is left to do, where it names it: the setup prints that, and goes on.
|
|
297
|
+
*/
|
|
298
|
+
readonly commands: readonly ServiceCommand[];
|
|
299
|
+
/**
|
|
300
|
+
* What has the system read files written again, without ending the runner that may be
|
|
301
|
+
* running under the service: run by a refresh that changed one. None where the system reads
|
|
302
|
+
* a file only when it loads the service.
|
|
303
|
+
*/
|
|
304
|
+
readonly reread?: readonly ServiceCommand[] | undefined;
|
|
305
|
+
/** Where the runner's own lines are kept, for whoever looks when it is not heard from. */
|
|
306
|
+
readonly log: string;
|
|
307
|
+
/** What to look at when a command did not succeed, in a sentence. */
|
|
308
|
+
readonly failing: string;
|
|
309
|
+
/** When files written again are read, where the commands are not run: the end of a sentence. */
|
|
310
|
+
readonly reload: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* The variable a service's keeper names its own process in, by number, on a system that ends a
|
|
315
|
+
* keeper and leaves what it started: a runner told so looks for that process, and stops when it
|
|
316
|
+
* is gone.
|
|
317
|
+
*/
|
|
318
|
+
export const KEEPER_VARIABLE = "CONSOLE_RUNNER_KEEPER";
|
|
319
|
+
|
|
320
|
+
/** A module that keeps the runner running across restarts of the machine. */
|
|
321
|
+
export interface Service {
|
|
322
|
+
readonly name: string;
|
|
323
|
+
/** The platforms it keeps a runner running on, as the runtime names them (`darwin`). */
|
|
324
|
+
readonly platforms: readonly string[];
|
|
325
|
+
/** What to write and to run; or why it cannot, in a few words. */
|
|
326
|
+
plan(input: ServiceInput): ServicePlan | { readonly problem: string };
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/** A module that keeps one agent apart from another on a machine, and says whose the runner is. */
|
|
330
|
+
export interface Boundary {
|
|
331
|
+
readonly name: string;
|
|
332
|
+
/** The OS account the runner runs in. */
|
|
333
|
+
user(): string;
|
|
334
|
+
}
|
package/src/runner.ts
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// The runner of an agent account (ADR-0085, docs/specs/runner.md), for whoever builds on it: a
|
|
2
|
+
// console of one's own that registers a driver for another product, or a test that runs one
|
|
3
|
+
// against a console. The command's `console runner` is made of the same.
|
|
4
|
+
|
|
5
|
+
export { acpMode, createAcpDriver } from "./runner/acp.js";
|
|
6
|
+
export { createClaudeDriver } from "./runner/claude.js";
|
|
7
|
+
export { createCodexDriver } from "./runner/codex.js";
|
|
8
|
+
export {
|
|
9
|
+
DEFAULT_RUNNER_CONFIG,
|
|
10
|
+
parseRunnerConfig,
|
|
11
|
+
type RunnerConfig,
|
|
12
|
+
runnerConfigSchema,
|
|
13
|
+
} from "./runner/config.js";
|
|
14
|
+
export {
|
|
15
|
+
DESK_FOLDER,
|
|
16
|
+
DESK_SECTIONS,
|
|
17
|
+
type DeskInput,
|
|
18
|
+
deskFiles,
|
|
19
|
+
deskServicesOf,
|
|
20
|
+
deskWebTitleOf,
|
|
21
|
+
PERSON_DESK_SECTIONS,
|
|
22
|
+
type PersonDeskInput,
|
|
23
|
+
personDeskFiles,
|
|
24
|
+
} from "./runner/desk.js";
|
|
25
|
+
export { LAUNCHD_LABEL, launchd, launchdUnit } from "./runner/launchd.js";
|
|
26
|
+
export {
|
|
27
|
+
type Attached,
|
|
28
|
+
attachedLine,
|
|
29
|
+
composeSignals,
|
|
30
|
+
deskName,
|
|
31
|
+
fenced,
|
|
32
|
+
GROUP_WINDOW_MS,
|
|
33
|
+
headerOf,
|
|
34
|
+
introOf,
|
|
35
|
+
MAX_GROUP_LENGTH,
|
|
36
|
+
MAX_GROUP_SIGNALS,
|
|
37
|
+
makeMark,
|
|
38
|
+
} from "./runner/message.js";
|
|
39
|
+
export { ownRunnerModules } from "./runner/modules.js";
|
|
40
|
+
export { createSpawn } from "./runner/process.js";
|
|
41
|
+
export {
|
|
42
|
+
cutShown,
|
|
43
|
+
cutShownEnd,
|
|
44
|
+
formsOf,
|
|
45
|
+
MAX_CUT_WINDOW,
|
|
46
|
+
type Redactor,
|
|
47
|
+
redactorOf,
|
|
48
|
+
WITHHELD,
|
|
49
|
+
} from "./runner/redact.js";
|
|
50
|
+
export {
|
|
51
|
+
createRegistry,
|
|
52
|
+
createRunnerModules,
|
|
53
|
+
type DriverHost,
|
|
54
|
+
type Registry,
|
|
55
|
+
type RunnerModules,
|
|
56
|
+
} from "./runner/registry.js";
|
|
57
|
+
export {
|
|
58
|
+
AUTOSAVE_MESSAGE,
|
|
59
|
+
BATCH_MS,
|
|
60
|
+
COOL_DOWN_MS,
|
|
61
|
+
createRunner,
|
|
62
|
+
HEARTBEAT_MS,
|
|
63
|
+
HOLD_MS,
|
|
64
|
+
MAX_COOL_DOWN_MS,
|
|
65
|
+
MAX_HOLD_MS,
|
|
66
|
+
type Runner,
|
|
67
|
+
type RunnerClient,
|
|
68
|
+
type RunnerOptions,
|
|
69
|
+
type RunnerState,
|
|
70
|
+
} from "./runner/runner.js";
|
|
71
|
+
export { SLACK_APP_TOKEN, slack, slackWakeOf } from "./runner/slack.js";
|
|
72
|
+
export { SYSTEMD_UNIT, systemdUnit, systemdUser } from "./runner/systemd-user.js";
|
|
73
|
+
export {
|
|
74
|
+
KEPT_LOGS,
|
|
75
|
+
logKeeper,
|
|
76
|
+
MAX_LOG_BYTES,
|
|
77
|
+
TASK_NAME,
|
|
78
|
+
taskDefinition,
|
|
79
|
+
taskNameOf,
|
|
80
|
+
taskScheduler,
|
|
81
|
+
taskScript,
|
|
82
|
+
} from "./runner/task-scheduler.js";
|
|
83
|
+
export type {
|
|
84
|
+
Boundary,
|
|
85
|
+
Child,
|
|
86
|
+
Cut,
|
|
87
|
+
Driver,
|
|
88
|
+
DriverEvent,
|
|
89
|
+
DriverMessage,
|
|
90
|
+
DriverSession,
|
|
91
|
+
Fact,
|
|
92
|
+
Picture,
|
|
93
|
+
Probe,
|
|
94
|
+
Service,
|
|
95
|
+
ServiceCommand,
|
|
96
|
+
ServiceInput,
|
|
97
|
+
ServicePlan,
|
|
98
|
+
Spawn,
|
|
99
|
+
StartOptions,
|
|
100
|
+
WakeHost,
|
|
101
|
+
WakeSocket,
|
|
102
|
+
WakeSource,
|
|
103
|
+
} from "./runner/types.js";
|
|
104
|
+
export {
|
|
105
|
+
errorsShown,
|
|
106
|
+
KEEPER_VARIABLE,
|
|
107
|
+
MAX_ERRORS_SHOWN,
|
|
108
|
+
plainCut,
|
|
109
|
+
plainCutEnd,
|
|
110
|
+
} from "./runner/types.js";
|