@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
package/src/index.ts
CHANGED
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
// a script that wants none of the pages. The styles are `@skillcdn/console/console.css`.
|
|
5
5
|
|
|
6
6
|
export * from "./api.js";
|
|
7
|
+
export * from "./charts.js";
|
|
8
|
+
export {
|
|
9
|
+
AgentAccountForm,
|
|
10
|
+
type AgentAccountFormProps,
|
|
11
|
+
AgentAccountList,
|
|
12
|
+
type AgentAccountListProps,
|
|
13
|
+
agentAccountGroups,
|
|
14
|
+
avatarPngBlob,
|
|
15
|
+
memberSignedInAs,
|
|
16
|
+
suggestLogin,
|
|
17
|
+
} from "./components/agents.js";
|
|
7
18
|
export {
|
|
8
19
|
Board,
|
|
9
20
|
BoardFilters,
|
|
@@ -28,6 +39,29 @@ export {
|
|
|
28
39
|
workloadOf,
|
|
29
40
|
} from "./components/calendar.js";
|
|
30
41
|
export { CategoryList, type CategoryListProps } from "./components/categories.js";
|
|
42
|
+
export {
|
|
43
|
+
BarList,
|
|
44
|
+
type BarListProps,
|
|
45
|
+
type BarRow,
|
|
46
|
+
Chart,
|
|
47
|
+
type ChartProps,
|
|
48
|
+
type ChartSeries,
|
|
49
|
+
type FigureRow,
|
|
50
|
+
FigureTable,
|
|
51
|
+
type FigureTableProps,
|
|
52
|
+
Legend,
|
|
53
|
+
type LegendItem,
|
|
54
|
+
type LegendProps,
|
|
55
|
+
ShareBar,
|
|
56
|
+
type ShareBarProps,
|
|
57
|
+
type SharePartItem,
|
|
58
|
+
Sparkline,
|
|
59
|
+
type SparklineProps,
|
|
60
|
+
Stat,
|
|
61
|
+
type StatChange,
|
|
62
|
+
type StatProps,
|
|
63
|
+
Stats,
|
|
64
|
+
} from "./components/charts.js";
|
|
31
65
|
export {
|
|
32
66
|
CommentCard,
|
|
33
67
|
type CommentCardProps,
|
|
@@ -49,6 +83,7 @@ export {
|
|
|
49
83
|
} from "./components/connect.js";
|
|
50
84
|
export { DecisionForm, type DecisionFormProps } from "./components/decision-form.js";
|
|
51
85
|
export {
|
|
86
|
+
type DecisionAddressing,
|
|
52
87
|
DecisionCard,
|
|
53
88
|
type DecisionCardProps,
|
|
54
89
|
DecisionList,
|
|
@@ -56,6 +91,35 @@ export {
|
|
|
56
91
|
DecisionLog,
|
|
57
92
|
type DecisionLogProps,
|
|
58
93
|
} from "./components/decision-list.js";
|
|
94
|
+
export {
|
|
95
|
+
DESK_VIEWS,
|
|
96
|
+
DeskArchive,
|
|
97
|
+
type DeskArchiveProps,
|
|
98
|
+
DeskFiguresView,
|
|
99
|
+
type DeskFiguresViewProps,
|
|
100
|
+
DeskStanding,
|
|
101
|
+
type DeskStandingProps,
|
|
102
|
+
type DeskView,
|
|
103
|
+
DeskViews,
|
|
104
|
+
DeskWords,
|
|
105
|
+
type DeskWordsProps,
|
|
106
|
+
} from "./components/desk.js";
|
|
107
|
+
export {
|
|
108
|
+
DeskCollectionResults,
|
|
109
|
+
type DeskCollectionResultsProps,
|
|
110
|
+
DeskCollections,
|
|
111
|
+
type DeskCollectionsProps,
|
|
112
|
+
DeskCollectionView,
|
|
113
|
+
type DeskCollectionViewProps,
|
|
114
|
+
type DeskFile,
|
|
115
|
+
DeskItemView,
|
|
116
|
+
type DeskItemViewProps,
|
|
117
|
+
DeskNoRecords,
|
|
118
|
+
DeskRecordCrumbs,
|
|
119
|
+
DeskRecordProblems,
|
|
120
|
+
metricWords,
|
|
121
|
+
ratioWords,
|
|
122
|
+
} from "./components/desk-records.js";
|
|
59
123
|
export {
|
|
60
124
|
DocumentCrumbs,
|
|
61
125
|
DocumentFiles,
|
|
@@ -85,6 +149,7 @@ export {
|
|
|
85
149
|
export {
|
|
86
150
|
HomeGrid,
|
|
87
151
|
type HomeGridProps,
|
|
152
|
+
type ProjectGlance,
|
|
88
153
|
ProjectTile,
|
|
89
154
|
type ProjectTileProps,
|
|
90
155
|
} from "./components/home.js";
|
|
@@ -109,6 +174,7 @@ export {
|
|
|
109
174
|
type ListingFormProps,
|
|
110
175
|
PeopleList,
|
|
111
176
|
type PeopleListProps,
|
|
177
|
+
supervisedBy,
|
|
112
178
|
TeamForm,
|
|
113
179
|
type TeamFormProps,
|
|
114
180
|
TeamList,
|
|
@@ -122,15 +188,16 @@ export {
|
|
|
122
188
|
type PickerSearch,
|
|
123
189
|
} from "./components/picker.js";
|
|
124
190
|
export {
|
|
125
|
-
|
|
126
|
-
FITTED,
|
|
191
|
+
boundView,
|
|
127
192
|
Lightbox,
|
|
128
193
|
type LightboxProps,
|
|
194
|
+
LONG_PICTURE,
|
|
129
195
|
MAX_SCALE,
|
|
130
|
-
|
|
196
|
+
openingView,
|
|
131
197
|
type Picture,
|
|
132
198
|
PictureOverlay,
|
|
133
199
|
type PictureOverlayProps,
|
|
200
|
+
type PictureSize,
|
|
134
201
|
type PictureState,
|
|
135
202
|
PictureThumb,
|
|
136
203
|
type PictureThumbProps,
|
|
@@ -138,6 +205,7 @@ export {
|
|
|
138
205
|
panBy,
|
|
139
206
|
usePicture,
|
|
140
207
|
wheelFactor,
|
|
208
|
+
wholeScale,
|
|
141
209
|
ZOOM_STEP,
|
|
142
210
|
zoomAround,
|
|
143
211
|
} from "./components/pictures.js";
|
|
@@ -189,6 +257,14 @@ export {
|
|
|
189
257
|
projectsSearch,
|
|
190
258
|
} from "./components/searches.js";
|
|
191
259
|
export { SessionList, type SessionListProps } from "./components/sessions.js";
|
|
260
|
+
export {
|
|
261
|
+
AgentInvitationPanel,
|
|
262
|
+
type AgentInvitationPanelProps,
|
|
263
|
+
AgentStartSteps,
|
|
264
|
+
type AgentStartStepsProps,
|
|
265
|
+
SetupGuideView,
|
|
266
|
+
type SetupGuideViewProps,
|
|
267
|
+
} from "./components/setup.js";
|
|
192
268
|
export {
|
|
193
269
|
type Brand,
|
|
194
270
|
isPlainClick,
|
|
@@ -219,6 +295,8 @@ export {
|
|
|
219
295
|
} from "./components/tokens.js";
|
|
220
296
|
export {
|
|
221
297
|
Avatar,
|
|
298
|
+
AvatarPicture,
|
|
299
|
+
AvatarSetsContext,
|
|
222
300
|
Badge,
|
|
223
301
|
Button,
|
|
224
302
|
Callout,
|
|
@@ -232,8 +310,10 @@ export {
|
|
|
232
310
|
formatBytes,
|
|
233
311
|
formatInstant,
|
|
234
312
|
GoalStateBadge,
|
|
313
|
+
KindMark,
|
|
235
314
|
LinkButton,
|
|
236
315
|
PersonChip,
|
|
316
|
+
PersonOption,
|
|
237
317
|
PRIORITY_LABELS,
|
|
238
318
|
PriorityBadge,
|
|
239
319
|
ProgressBar,
|
|
@@ -251,6 +331,9 @@ export {
|
|
|
251
331
|
DEFAULT_PEOPLE_VISIBILITY,
|
|
252
332
|
peopleVisibilityOf,
|
|
253
333
|
timeZoneOf,
|
|
334
|
+
WorkspaceServicesForm,
|
|
335
|
+
type WorkspaceServicesFormProps,
|
|
336
|
+
WorkspaceServicesView,
|
|
254
337
|
WorkspaceSettingsForm,
|
|
255
338
|
type WorkspaceSettingsFormProps,
|
|
256
339
|
WorkspaceSettingsView,
|
|
@@ -289,7 +372,86 @@ export {
|
|
|
289
372
|
weekdays,
|
|
290
373
|
weekOf,
|
|
291
374
|
} from "./dates.js";
|
|
375
|
+
export {
|
|
376
|
+
DESK_ENDINGS,
|
|
377
|
+
DESK_PROJECTS,
|
|
378
|
+
DESK_RUNS,
|
|
379
|
+
DESK_STATES,
|
|
380
|
+
DESK_TASKS,
|
|
381
|
+
DESK_WEEKS,
|
|
382
|
+
type DeskCategory,
|
|
383
|
+
type DeskEnding,
|
|
384
|
+
type DeskFigures,
|
|
385
|
+
type DeskHistory,
|
|
386
|
+
type DeskProject,
|
|
387
|
+
type DeskReader,
|
|
388
|
+
type DeskRun,
|
|
389
|
+
type DeskTask,
|
|
390
|
+
type DeskWeek,
|
|
391
|
+
figuresOf,
|
|
392
|
+
readHistory,
|
|
393
|
+
readOpenRuns,
|
|
394
|
+
standingOf,
|
|
395
|
+
withHistory,
|
|
396
|
+
} from "./desk.js";
|
|
397
|
+
export {
|
|
398
|
+
DESK_PAGE_KEY,
|
|
399
|
+
DeskPage,
|
|
400
|
+
type DeskPageProps,
|
|
401
|
+
deskHref,
|
|
402
|
+
deskPage,
|
|
403
|
+
deskViewOf,
|
|
404
|
+
} from "./desk-page.js";
|
|
405
|
+
export {
|
|
406
|
+
bestItems,
|
|
407
|
+
type CollectionRecords,
|
|
408
|
+
type CollectionResults,
|
|
409
|
+
type CollectionSummary,
|
|
410
|
+
type FieldValue,
|
|
411
|
+
fieldsOf,
|
|
412
|
+
figuresOfRows,
|
|
413
|
+
filePath,
|
|
414
|
+
fileSrc,
|
|
415
|
+
httpsLink,
|
|
416
|
+
itemResults,
|
|
417
|
+
lastMadeOn,
|
|
418
|
+
type MetricFigure,
|
|
419
|
+
previewPath,
|
|
420
|
+
previewSrc,
|
|
421
|
+
probeFile,
|
|
422
|
+
type RatioFigure,
|
|
423
|
+
RECORD_BEST,
|
|
424
|
+
RECORD_PREVIEW_KINDS,
|
|
425
|
+
RECORD_WEEKS,
|
|
426
|
+
RECORDS_BASE,
|
|
427
|
+
type RecordFileState,
|
|
428
|
+
type RecordProblem,
|
|
429
|
+
type RecordsAddress,
|
|
430
|
+
type RecordsOverview,
|
|
431
|
+
type RecordsReader,
|
|
432
|
+
readCollection,
|
|
433
|
+
readDeskRecords,
|
|
434
|
+
recordsAddressOf,
|
|
435
|
+
recordsQuery,
|
|
436
|
+
resultsOf,
|
|
437
|
+
statusCounts,
|
|
438
|
+
} from "./desk-records.js";
|
|
439
|
+
export { DeskRecords, type DeskRecordsProps } from "./desk-records-page.js";
|
|
292
440
|
export { DocsPage, type DocsPageProps } from "./docs-page.js";
|
|
441
|
+
export {
|
|
442
|
+
createGlanceReader,
|
|
443
|
+
GLANCE_RETRY_MAX_MS,
|
|
444
|
+
GLANCE_RETRY_MS,
|
|
445
|
+
type GlanceReader,
|
|
446
|
+
type GlanceReaderOptions,
|
|
447
|
+
} from "./glances.js";
|
|
448
|
+
export {
|
|
449
|
+
GLANCE_REM,
|
|
450
|
+
type GlanceList,
|
|
451
|
+
glanceFit,
|
|
452
|
+
glanceProjects,
|
|
453
|
+
isGlanceSize,
|
|
454
|
+
} from "./home-tiles.js";
|
|
293
455
|
export {
|
|
294
456
|
chooseLanguage,
|
|
295
457
|
DEFAULT_LANGUAGES,
|
|
@@ -303,6 +465,12 @@ export {
|
|
|
303
465
|
useWords,
|
|
304
466
|
} from "./i18n/index.js";
|
|
305
467
|
export {
|
|
468
|
+
AGENTS_VIEWS,
|
|
469
|
+
type AgentsView,
|
|
470
|
+
type AgentTab,
|
|
471
|
+
agentHref,
|
|
472
|
+
agentsHref,
|
|
473
|
+
agentWorkHref,
|
|
306
474
|
type BoardFilter,
|
|
307
475
|
boardHref,
|
|
308
476
|
calendarHref,
|
|
@@ -333,6 +501,7 @@ export {
|
|
|
333
501
|
type Route,
|
|
334
502
|
roadmapHref,
|
|
335
503
|
settingsHref,
|
|
504
|
+
setupHref,
|
|
336
505
|
signInFailureOf,
|
|
337
506
|
type TaskFormKind,
|
|
338
507
|
taskHref,
|
package/src/limits.ts
CHANGED
|
@@ -27,6 +27,8 @@ export const MAX_OPTION_LABEL_LENGTH = 120;
|
|
|
27
27
|
export const MAX_NOTE_LENGTH = 2000;
|
|
28
28
|
/** How many tasks or decisions one listing answers with. A board is read whole, for now. */
|
|
29
29
|
export const LIST_LIMIT = 500;
|
|
30
|
+
/** How many rows of each of its lists a project's glance answers with (ADR-0107): more than a tile of any size holds. */
|
|
31
|
+
export const GLANCE_ROWS = 20;
|
|
30
32
|
/** How many events one page of the feed carries. */
|
|
31
33
|
export const EVENTS_PAGE_LIMIT = 100;
|
|
32
34
|
/** What an agent calls itself when it takes a task: its kind, where it runs. One line. */
|
|
@@ -48,6 +50,71 @@ export const MAX_FILE_NAME_LENGTH = 200;
|
|
|
48
50
|
export const MAX_TOKEN_NAME_LENGTH = 80;
|
|
49
51
|
/** A login at a git host, or an address at a Workspace, as an administrator lists one. */
|
|
50
52
|
export const MAX_LOGIN_LENGTH = 254;
|
|
53
|
+
/** A member's title (ADR-0084): one line that says what they do. */
|
|
54
|
+
export const MAX_PERSON_TITLE_LENGTH = 80;
|
|
55
|
+
/** An agent account's handle (ADR-0084): what the pages and the command call it by, as long as a login at a git host may be. */
|
|
56
|
+
export const MIN_HANDLE_LENGTH = 2;
|
|
57
|
+
export const MAX_HANDLE_LENGTH = 39;
|
|
58
|
+
/** An agent account's name, in any language: one line. */
|
|
59
|
+
export const MAX_PERSON_NAME_LENGTH = 80;
|
|
60
|
+
/** A secret of an agent account's store (ADR-0087): its name, its value in bytes of UTF-8, and how many one account keeps. */
|
|
61
|
+
export const MAX_AGENT_SECRET_NAME_LENGTH = 64;
|
|
62
|
+
export const MAX_AGENT_SECRET_BYTES = 8 * 1024;
|
|
63
|
+
export const MAX_AGENT_SECRETS = 200;
|
|
64
|
+
/** What a signal says to an agent (ADR-0085): a few paragraphs. */
|
|
65
|
+
export const MAX_SIGNAL_LENGTH = 8000;
|
|
66
|
+
/** What a wake a runner raises itself is about, in a line: a thread at a messenger, say. */
|
|
67
|
+
export const MAX_SIGNAL_KEY_LENGTH = 200;
|
|
68
|
+
/** A line a runner says of its machine, its product, a model or a level of effort; and how many of those a product offers. */
|
|
69
|
+
export const MAX_RUNNER_LINE_LENGTH = 120;
|
|
70
|
+
export const MAX_RUNNER_OFFERS = 50;
|
|
71
|
+
/** How many signals one page of an account's record carries when none is asked for, and the most it may. */
|
|
72
|
+
/** How many files a supervisor sends with one tell, pictures among them, together within `MAX_FILE_BYTES`. */
|
|
73
|
+
export const MAX_SIGNAL_ATTACHMENTS = 8;
|
|
74
|
+
export const SIGNALS_PAGE_LIMIT = 50;
|
|
75
|
+
export const MAX_SIGNALS_PAGE_LIMIT = 200;
|
|
76
|
+
/** A batch of a transcript's events (ADR-0086): how many events, and how many bytes, one request carries. */
|
|
77
|
+
export const MAX_TRANSCRIPT_BATCH = 100;
|
|
78
|
+
export const MAX_TRANSCRIPT_BATCH_BYTES = 2 * 1024 * 1024;
|
|
79
|
+
/** What a person reads of one event, in bytes of UTF-8, and how much of it the row keeps: the whole of a longer text is in the blob store. */
|
|
80
|
+
export const MAX_TRANSCRIPT_TEXT_BYTES = 256 * 1024;
|
|
81
|
+
export const TRANSCRIPT_INLINE_BYTES = 16 * 1024;
|
|
82
|
+
/** The facts about a block: how many, how long the name of one, and how long one that is a text. */
|
|
83
|
+
export const MAX_TRANSCRIPT_FACTS = 32;
|
|
84
|
+
export const MAX_TRANSCRIPT_FACT_NAME_LENGTH = 64;
|
|
85
|
+
export const MAX_TRANSCRIPT_FACT_LENGTH = 1000;
|
|
86
|
+
/** How many pictures one event carries, and how many a session hands in within a minute. */
|
|
87
|
+
export const MAX_TRANSCRIPT_ATTACHMENTS = 8;
|
|
88
|
+
export const MAX_TRANSCRIPT_FILES_PER_MINUTE = 60;
|
|
89
|
+
/**
|
|
90
|
+
* What an agent account's runner writes in an hour, counted over the hour before each write
|
|
91
|
+
* (ADR-0132): the events one session's transcript takes, the sessions an account begins, the
|
|
92
|
+
* wakes its runner raises itself, and the changes of its state the workspace's feed is told
|
|
93
|
+
* by its runner. Each far above what work is, and what a product that fails again and again,
|
|
94
|
+
* or a wake source that repeats itself, meets.
|
|
95
|
+
*/
|
|
96
|
+
export const MAX_TRANSCRIPT_EVENTS_PER_HOUR = 60_000;
|
|
97
|
+
export const MAX_AGENT_SESSIONS_PER_HOUR = 60;
|
|
98
|
+
export const MAX_RUNNER_WAKES_PER_HOUR = 600;
|
|
99
|
+
export const MAX_AGENT_STATE_CHANGES_PER_HOUR = 20;
|
|
100
|
+
/** How many events one page of a session carries when none is asked for, and the most it may. */
|
|
101
|
+
export const TRANSCRIPT_PAGE_LIMIT = 100;
|
|
102
|
+
export const MAX_TRANSCRIPT_PAGE_LIMIT = 500;
|
|
103
|
+
/** How many sessions one page of an account's carries when none is asked for, and the most it may. */
|
|
104
|
+
export const SESSIONS_PAGE_LIMIT = 50;
|
|
105
|
+
export const MAX_SESSIONS_PAGE_LIMIT = 200;
|
|
106
|
+
/** Why an event was sealed, in a line. */
|
|
107
|
+
export const MAX_SEAL_REASON_LENGTH = 500;
|
|
108
|
+
/** How many days an invitation to set an agent account up is good for (ADR-0088). */
|
|
109
|
+
export const INVITATION_DAYS = 7;
|
|
110
|
+
/** The accounts an agent account holds elsewhere (ADR-0089): how many it records, and how long what it is called at one is. */
|
|
111
|
+
export const MAX_AGENT_ELSEWHERE = 20;
|
|
112
|
+
export const MAX_ELSEWHERE_NAME_LENGTH = 200;
|
|
113
|
+
/** When an agent account's day starts, in the workspace's time zone, where the account says no other hour (ADR-0085). */
|
|
114
|
+
export const DEFAULT_DAY_START = "09:00";
|
|
115
|
+
/** A service a workspace names (ADR-0089): how many parameters one has beside its kind, and how long one is. */
|
|
116
|
+
export const MAX_SERVICE_PARAMETERS = 8;
|
|
117
|
+
export const MAX_SERVICE_VALUE_LENGTH = 200;
|
|
51
118
|
/** A team's name (ADR-0073). */
|
|
52
119
|
export const MAX_TEAM_NAME_LENGTH = 60;
|
|
53
120
|
/** A team's key (ADR-0074), as long as a project's may be: the two are one set of names. */
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { RestWorkspace } from "./schemas.js";
|
|
2
|
+
import { guideServicesOf } from "./setup-guide.js";
|
|
3
|
+
|
|
4
|
+
// The onboarding of an agent account (ADR-0088, points 4 to 6): its first task, which the
|
|
5
|
+
// console makes when the account is made, with the agent as its worker. The agent works it as
|
|
6
|
+
// any task, with a run, reports and decisions; what only a person can do it asks for as a
|
|
7
|
+
// decision, of whoever can do it; the board wakes the agent with it as with any ready task it
|
|
8
|
+
// is at work on, which is its first wake. Its run stays open while a decision of it waits, which
|
|
9
|
+
// the console never ends, and the task is finished when nothing of it waits on anyone: a run
|
|
10
|
+
// finished with decisions waiting could ask no more. The task's words are made here, for one account and the
|
|
11
|
+
// services of its workspace, in the words of their modules: English, as a skill is, for the
|
|
12
|
+
// agent to read as they are.
|
|
13
|
+
|
|
14
|
+
export interface OnboardingInput {
|
|
15
|
+
/** The account's handle: what the task and its commands name it by. */
|
|
16
|
+
readonly handle: string;
|
|
17
|
+
/** The workspace's names and services (ADR-0089). */
|
|
18
|
+
readonly workspace: Pick<RestWorkspace, "handle" | "domain" | "services">;
|
|
19
|
+
/**
|
|
20
|
+
* The login the account signs in to the console with, where whoever makes the task knows it:
|
|
21
|
+
* an address there is the account's own address, which the task then names. Left out, what
|
|
22
|
+
* the workspace's identity service makes of its names.
|
|
23
|
+
*/
|
|
24
|
+
readonly login?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** What the onboarding task of an account is called. */
|
|
28
|
+
export function onboardingTitle(handle: string): string {
|
|
29
|
+
return `Set up @${handle}`;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const item = (title: string, body: string): string => `- **${title}.** ${body}`;
|
|
33
|
+
|
|
34
|
+
/** The onboarding task of one account: its title, and its body as Markdown. */
|
|
35
|
+
export function onboardingOf(input: OnboardingInput): {
|
|
36
|
+
readonly title: string;
|
|
37
|
+
readonly body: string;
|
|
38
|
+
} {
|
|
39
|
+
const { handle } = input;
|
|
40
|
+
const services = guideServicesOf(input.workspace, handle, input.login);
|
|
41
|
+
const own = [
|
|
42
|
+
...services.flatMap((one) => one.onboarding.map((step) => item(step.title, step.body))),
|
|
43
|
+
item(
|
|
44
|
+
"Sign in at a page in the machine's own browser",
|
|
45
|
+
"Use a browser tool of your product that attaches to the ordinary browser of your OS account: a sign-in stays there from one session to the next. Where a sign-in wants a person, a code sent to a phone or a picture to solve, ask for a person to sign in inside your session, over a remote desktop or at the machine, and say which service and which account; nothing you sign in with goes into a message, a task or a comment.",
|
|
46
|
+
),
|
|
47
|
+
item(
|
|
48
|
+
"Put your picture on your profiles",
|
|
49
|
+
`\`console agent ${handle} --avatar avatar.png\` writes it as a file. Put it on your profile at each service where you have one, with that service's own tool or in a browser.`,
|
|
50
|
+
),
|
|
51
|
+
item(
|
|
52
|
+
"Record the accounts you hold elsewhere",
|
|
53
|
+
`For each service you now have an account at, say what you are called there, and never a secret: \`console agent ${handle} --account <service>=<name>\`, as in \`--account github=acme-mira\`. Whoever takes an account out reads there what to close.`,
|
|
54
|
+
),
|
|
55
|
+
item(
|
|
56
|
+
"Introduce yourself to your manager",
|
|
57
|
+
"`console manager` says who it is. Say who you are, what you do and how to reach you: on the messenger where you have one, else as a comment on this task.",
|
|
58
|
+
),
|
|
59
|
+
];
|
|
60
|
+
const asked = services.flatMap((one) => one.asks.map((ask) => item(ask.title, ask.body)));
|
|
61
|
+
const body = [
|
|
62
|
+
`This is your first task, @${handle}: making your account ready to work. Work it as any task: take it, and report as you go. What waits on a person you ask for as a decision, and a run that waits for a decision stays open: the answer wakes you, and you go on with that run (\`--run <id>\`). The task is finished when nothing of it waits on anyone. \`console help\` and the skill \`working-the-board\` say how.`,
|
|
63
|
+
"",
|
|
64
|
+
"## What you do yourself",
|
|
65
|
+
"",
|
|
66
|
+
...own,
|
|
67
|
+
...(asked.length === 0
|
|
68
|
+
? []
|
|
69
|
+
: [
|
|
70
|
+
"",
|
|
71
|
+
"## What you ask for",
|
|
72
|
+
"",
|
|
73
|
+
`What you cannot do yourself. Ask for each as a decision, of whoever can do it, and of your manager where you do not know who. Say the exact values, what to hand back and how, and offer "Done" and "Not now": \`console ask "<question>" --option "Done" --option "Not now"\`. A secret that is handed back is seeded where only you read it, by whoever has it: \`console agent secret ${handle} <name>\`. Go on with the rest meanwhile: the answer wakes you.`,
|
|
74
|
+
"",
|
|
75
|
+
...asked,
|
|
76
|
+
]),
|
|
77
|
+
"",
|
|
78
|
+
"## When you are done",
|
|
79
|
+
"",
|
|
80
|
+
"You are done when nothing of this task waits on anyone: every item above is set up, or was answered as not to be done now, and every decision you raised is answered and acted on. Until then the run stays open and waits, since a decision is asked on a run and a run that is finished asks none. Then report what is set up and, item by item, what is not done and who said so, and finish the task.",
|
|
81
|
+
"",
|
|
82
|
+
].join("\n");
|
|
83
|
+
return { title: onboardingTitle(handle), body };
|
|
84
|
+
}
|
package/src/persona.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// An agent account's persona, as it is proposed (ADR-0084): a name in each language the console
|
|
2
|
+
// speaks, a handle, and an avatar, from a seed. What is here is a suggestion for whoever makes
|
|
3
|
+
// an account, rolled again at will and edited freely: it never restricts a choice. The names
|
|
4
|
+
// ship with the package, and a deployer building a console replaces them.
|
|
5
|
+
|
|
6
|
+
import { type AvatarSet, rollAvatar, seededNumbers } from "./avatar.js";
|
|
7
|
+
import { en } from "./i18n/en.js";
|
|
8
|
+
import { ko } from "./i18n/ko.js";
|
|
9
|
+
import { MAX_HANDLE_LENGTH } from "./limits.js";
|
|
10
|
+
import type { RestAgentProposal } from "./schemas.js";
|
|
11
|
+
|
|
12
|
+
/** A name to propose: the handle it gives, and how it is spelled in each language, `en` always among them. */
|
|
13
|
+
export interface PersonaName {
|
|
14
|
+
readonly handle: string;
|
|
15
|
+
readonly names: Readonly<Record<string, string>>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The names the package proposes: names of asteroids, to go with the planet an account's avatar
|
|
20
|
+
* is (ADR-0097), each of two or three syllables, said alike in many languages, and nobody's
|
|
21
|
+
* product. A handle each, and its spelling in every language the console speaks, which the
|
|
22
|
+
* language packs hold (ADR-0012): a name added to one pack is added to every other.
|
|
23
|
+
*/
|
|
24
|
+
export const PERSONA_NAMES: readonly PersonaName[] = Object.entries(en.persona.names).map(
|
|
25
|
+
([handle, english]) => ({
|
|
26
|
+
handle,
|
|
27
|
+
names: {
|
|
28
|
+
en: english,
|
|
29
|
+
ko: (ko.persona.names as Readonly<Record<string, string>>)[handle] ?? english,
|
|
30
|
+
},
|
|
31
|
+
}),
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
/** How many proposals one asking answers with when none is said, and the most it may. */
|
|
35
|
+
export const DEFAULT_PROPOSALS = 4;
|
|
36
|
+
export const MAX_PROPOSALS = 12;
|
|
37
|
+
|
|
38
|
+
/** The name in a language: as the tag says (`ko-KR`), else its base (`ko`), else English, else any. */
|
|
39
|
+
function spelled(names: Readonly<Record<string, string>>, lang: string | undefined): string {
|
|
40
|
+
const tag = (lang ?? "en").toLowerCase();
|
|
41
|
+
const base = tag.split("-")[0] ?? "en";
|
|
42
|
+
return names[tag] ?? names[base] ?? names.en ?? Object.values(names)[0] ?? "";
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** A handle nobody has: the name's own, or the first of `mira-2`, `mira-3` and on that is free. */
|
|
46
|
+
function freeHandle(handle: string, taken: ReadonlySet<string>): string {
|
|
47
|
+
if (!taken.has(handle)) {
|
|
48
|
+
return handle;
|
|
49
|
+
}
|
|
50
|
+
for (let number = 2; number < 10_000; number += 1) {
|
|
51
|
+
const suffix = `-${number}`;
|
|
52
|
+
const candidate = `${handle.slice(0, MAX_HANDLE_LENGTH - suffix.length)}${suffix}`;
|
|
53
|
+
if (!taken.has(candidate)) {
|
|
54
|
+
return candidate;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return handle;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface ProposeOptions {
|
|
61
|
+
/** The language the names are proposed in; English when left out. */
|
|
62
|
+
readonly lang?: string | undefined;
|
|
63
|
+
/** The names to propose from; the package's when left out. */
|
|
64
|
+
readonly names?: readonly PersonaName[] | undefined;
|
|
65
|
+
/** The handles the workspace's agent accounts already have, which no proposal repeats. */
|
|
66
|
+
readonly taken?: Iterable<string> | undefined;
|
|
67
|
+
/** The sets of shapes the avatars are rolled from; the package's when left out. */
|
|
68
|
+
readonly sets?: readonly AvatarSet[] | undefined;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* A proposal for each seed: a name, the handle it gives where nobody has it, and the parts of
|
|
73
|
+
* an avatar. The same seed proposes the same name and the same avatar; no two proposals of one
|
|
74
|
+
* asking share a name, while there are names enough.
|
|
75
|
+
*/
|
|
76
|
+
export function proposeAgents(
|
|
77
|
+
seeds: readonly string[],
|
|
78
|
+
options: ProposeOptions = {},
|
|
79
|
+
): RestAgentProposal[] {
|
|
80
|
+
const names =
|
|
81
|
+
options.names === undefined || options.names.length === 0 ? PERSONA_NAMES : options.names;
|
|
82
|
+
const taken = new Set(options.taken ?? []);
|
|
83
|
+
const used = new Set<number>();
|
|
84
|
+
return seeds.map((seed) => {
|
|
85
|
+
let index = Math.floor(seededNumbers(`name:${seed}`)() * names.length);
|
|
86
|
+
for (let tries = 0; used.has(index) && tries < names.length; tries += 1) {
|
|
87
|
+
index = (index + 1) % names.length;
|
|
88
|
+
}
|
|
89
|
+
used.add(index);
|
|
90
|
+
const chosen = names[index] ?? PERSONA_NAMES[0];
|
|
91
|
+
const handle = freeHandle(chosen?.handle ?? "agent", taken);
|
|
92
|
+
taken.add(handle);
|
|
93
|
+
return {
|
|
94
|
+
seed,
|
|
95
|
+
name: spelled(chosen?.names ?? {}, options.lang),
|
|
96
|
+
handle,
|
|
97
|
+
avatarParts: rollAvatar(seed, options.sets),
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
}
|
package/src/plugin/context.ts
CHANGED
|
@@ -441,9 +441,11 @@ export type SecretPlacement =
|
|
|
441
441
|
| "basic"
|
|
442
442
|
| `body:${string}`;
|
|
443
443
|
|
|
444
|
-
/** One secret setting and where it goes. */
|
|
444
|
+
/** One secret setting and where it goes; for a keyed one (ADR-0111), the key whose value goes. */
|
|
445
445
|
export interface SecretUse {
|
|
446
446
|
readonly name: string;
|
|
447
|
+
/** The key of a keyed secret, and of no other. */
|
|
448
|
+
readonly key?: string | undefined;
|
|
447
449
|
readonly as: SecretPlacement;
|
|
448
450
|
}
|
|
449
451
|
|
|
@@ -451,22 +453,40 @@ export interface SecretUse {
|
|
|
451
453
|
* A value of the answer to seal as a secret setting (ADR-0070): the path to it in the answer's
|
|
452
454
|
* JSON (`$.access_token`, `$.credentials.signing_secret`, `$.items.0.token`), and, where it
|
|
453
455
|
* expires, how long it lasts, in seconds or as a path to the seconds (`$.expires_in`). The
|
|
454
|
-
* console seals the value and hands the plugin the answer with `"[sealed]"` in its place.
|
|
456
|
+
* console seals the value and hands the plugin the answer with `"[sealed]"` in its place. A
|
|
457
|
+
* keyed secret (ADR-0111) is sealed under `key`: a path into the same answer (`$.team.id`), or
|
|
458
|
+
* the key itself.
|
|
455
459
|
*/
|
|
456
460
|
export type SecretSeal =
|
|
457
461
|
| string
|
|
458
|
-
| {
|
|
462
|
+
| {
|
|
463
|
+
readonly path: string;
|
|
464
|
+
readonly expiresIn?: number | string | undefined;
|
|
465
|
+
/** For a keyed secret, and no other: the key, or the path to it in the answer. */
|
|
466
|
+
readonly key?: string | undefined;
|
|
467
|
+
};
|
|
459
468
|
|
|
460
469
|
/**
|
|
461
470
|
* What became of a value `seal` named (ADR-0070). `sealed`: sealed as the setting, the answer
|
|
462
471
|
* saying `"[sealed]"` in its place. `absent`: nothing at the path (no such key, `null` or an
|
|
463
472
|
* empty string); nothing sealed, nothing taken out. `not_a_string`, `too_long` and `echoed`: a
|
|
464
473
|
* value that is no string, is over the bound of a secret (4,096 characters), or holds a secret
|
|
465
|
-
* the request carried from another setting;
|
|
466
|
-
*
|
|
467
|
-
*
|
|
474
|
+
* the request carried from another setting or key; `no_key`, for a keyed secret (ADR-0111), a
|
|
475
|
+
* key the answer does not hold where the seal names a path, or holds not as a key is spelled;
|
|
476
|
+
* `too_many`, a key the secret does not keep yet, where it keeps as many as its `max`: never
|
|
477
|
+
* sealed and never handed over, the answer saying `"[withheld]"` in its place. `not_json`: an
|
|
478
|
+
* answer that is no JSON object or array, whose body is withheld whole. Only `sealed` changed the
|
|
479
|
+
* setting.
|
|
468
480
|
*/
|
|
469
|
-
export type SealOutcome =
|
|
481
|
+
export type SealOutcome =
|
|
482
|
+
| "sealed"
|
|
483
|
+
| "absent"
|
|
484
|
+
| "not_a_string"
|
|
485
|
+
| "too_long"
|
|
486
|
+
| "echoed"
|
|
487
|
+
| "no_key"
|
|
488
|
+
| "too_many"
|
|
489
|
+
| "not_json";
|
|
470
490
|
|
|
471
491
|
export interface PluginFetchInit {
|
|
472
492
|
/** `GET` unless said; `HEAD`, `POST`, `PUT`, `PATCH`, `DELETE` or `OPTIONS`, and no other. */
|
|
@@ -507,12 +527,35 @@ export interface SecretStatus {
|
|
|
507
527
|
readonly source: string | null;
|
|
508
528
|
}
|
|
509
529
|
|
|
530
|
+
/** How the value of a keyed secret under one key stands (ADR-0111). */
|
|
531
|
+
export interface SecretKeyStatus extends SecretStatus {
|
|
532
|
+
readonly key: string;
|
|
533
|
+
}
|
|
534
|
+
|
|
510
535
|
export interface PluginSecrets {
|
|
511
|
-
/**
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
536
|
+
/**
|
|
537
|
+
* Whether the secret is set and not past its expiry; for a keyed one, its value under `key`,
|
|
538
|
+
* and without a key the value it kept from before it was keyed, which `move` puts under one.
|
|
539
|
+
*/
|
|
540
|
+
has(name: string, key?: string): Promise<boolean>;
|
|
541
|
+
/**
|
|
542
|
+
* How the secret stands, for a settings page to say and a job to decide whether to renew it;
|
|
543
|
+
* for a keyed one, its value under `key`, or without a key the value of before it was keyed.
|
|
544
|
+
*/
|
|
545
|
+
status(name: string, key?: string): Promise<SecretStatus>;
|
|
546
|
+
/** The keys a keyed secret keeps a value under, each with how it stands, in the order of the keys. */
|
|
547
|
+
keys(name: string): Promise<readonly SecretKeyStatus[]>;
|
|
548
|
+
/**
|
|
549
|
+
* Forgets the value of a keyed secret under `key`, where what the key stood for is gone: an
|
|
550
|
+
* installation removed at the service, say. Answers whether there was one.
|
|
551
|
+
*/
|
|
552
|
+
forget(name: string, key: string): Promise<boolean>;
|
|
553
|
+
/**
|
|
554
|
+
* Puts the value a keyed secret kept from before it was keyed under `key`, in place of what the
|
|
555
|
+
* key held: an upgrade's way to keep a token through the change. Answers whether there was one.
|
|
556
|
+
*/
|
|
557
|
+
move(name: string, key: string): Promise<boolean>;
|
|
558
|
+
/** Signs with the secret; refused for a secret declared `use: "verify"`, which signs nothing, and for a keyed one. */
|
|
516
559
|
sign(name: string, payload: string | Uint8Array, algorithm: "hmac-sha256"): Promise<string>;
|
|
517
560
|
verify(
|
|
518
561
|
name: string,
|
package/src/plugin/limits.ts
CHANGED
|
@@ -27,6 +27,8 @@ export const MAX_PLUGIN_INDEXES = 8;
|
|
|
27
27
|
export const MAX_PLUGIN_ABOUT_LENGTH = 200;
|
|
28
28
|
/** The options of an `enum` setting or argument. */
|
|
29
29
|
export const MAX_PLUGIN_OPTIONS = 50;
|
|
30
|
+
/** The most keys a keyed secret setting may keep a value under, whatever its `max` says (ADR-0111). */
|
|
31
|
+
export const MAX_PLUGIN_SECRET_KEYS = 1000;
|
|
30
32
|
/** A record, how many a plugin keeps, and how many versions one record keeps. */
|
|
31
33
|
export const MAX_PLUGIN_RECORD_BYTES = 64 * 1024;
|
|
32
34
|
export const MAX_PLUGIN_RECORDS = 100_000;
|