@skillcdn/console 0.5.0 → 0.5.2
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 +87 -12
- package/SKILLCDN.md +3 -3
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +7 -6
- package/dist/agent-page.js.map +1 -1
- package/dist/api.d.ts +9 -7
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +8 -6
- package/dist/api.js.map +1 -1
- 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 +58 -2
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +1742 -472
- 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 +54 -5
- package/dist/cli/credentials.d.ts.map +1 -1
- package/dist/cli/credentials.js +126 -20
- 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 +70 -9
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +267 -40
- 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 +101 -58
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/machine-check.d.ts +36 -0
- package/dist/cli/machine-check.d.ts.map +1 -0
- package/dist/cli/machine-check.js +151 -0
- package/dist/cli/machine-check.js.map +1 -0
- package/dist/cli/main.js +76 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/pack.d.ts +69 -60
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +241 -270
- 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 +7 -0
- package/dist/cli/runner-host.d.ts.map +1 -1
- package/dist/cli/runner-host.js +2 -0
- package/dist/cli/runner-host.js.map +1 -1
- package/dist/cli/secret-notes.d.ts +8 -0
- package/dist/cli/secret-notes.d.ts.map +1 -0
- package/dist/cli/secret-notes.js +48 -0
- package/dist/cli/secret-notes.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 +252 -3
- package/dist/cli/serve.js.map +1 -1
- package/dist/client.d.ts +54 -9
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +77 -80
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +164 -8
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +588 -151
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/agents.d.ts.map +1 -1
- package/dist/components/agents.js +1 -1
- package/dist/components/agents.js.map +1 -1
- package/dist/components/board.d.ts.map +1 -1
- package/dist/components/board.js +3 -2
- package/dist/components/board.js.map +1 -1
- package/dist/components/categories.js +1 -1
- package/dist/components/categories.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/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +1 -1
- 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 +7 -3
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/goals.d.ts +2 -0
- package/dist/components/goals.d.ts.map +1 -1
- package/dist/components/goals.js +1 -1
- package/dist/components/goals.js.map +1 -1
- package/dist/components/home.d.ts.map +1 -1
- package/dist/components/home.js +14 -6
- package/dist/components/home.js.map +1 -1
- package/dist/components/icon.d.ts +31 -0
- package/dist/components/icon.d.ts.map +1 -0
- package/dist/components/icon.js +169 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/markdown.d.ts +6 -0
- package/dist/components/markdown.d.ts.map +1 -1
- package/dist/components/markdown.js +10 -2
- package/dist/components/markdown.js.map +1 -1
- package/dist/components/people.js +1 -1
- package/dist/components/people.js.map +1 -1
- package/dist/components/plugin-frame.d.ts.map +1 -1
- package/dist/components/plugin-frame.js +7 -0
- 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 +54 -3
- package/dist/components/plugin-settings.js.map +1 -1
- package/dist/components/projects.d.ts +17 -4
- package/dist/components/projects.d.ts.map +1 -1
- package/dist/components/projects.js +51 -12
- 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 +35 -13
- package/dist/components/rules.js.map +1 -1
- package/dist/components/sessions.d.ts.map +1 -1
- package/dist/components/sessions.js +3 -2
- package/dist/components/sessions.js.map +1 -1
- package/dist/components/setup.d.ts +9 -3
- package/dist/components/setup.d.ts.map +1 -1
- package/dist/components/setup.js +12 -6
- package/dist/components/setup.js.map +1 -1
- package/dist/components/shell.d.ts.map +1 -1
- package/dist/components/shell.js +3 -2
- package/dist/components/shell.js.map +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/tokens.js.map +1 -1
- package/dist/components/ui.d.ts +5 -2
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +10 -7
- package/dist/components/ui.js.map +1 -1
- package/dist/connect-page.js +1 -1
- package/dist/connect-page.js.map +1 -1
- package/dist/console.css +1172 -106
- package/dist/console.d.ts +5 -0
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +52 -39
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +32 -33
- 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/home-tiles.d.ts +19 -3
- package/dist/home-tiles.d.ts.map +1 -1
- package/dist/home-tiles.js +147 -42
- package/dist/home-tiles.js.map +1 -1
- package/dist/i18n/en.d.ts +228 -6
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +309 -9
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +366 -85
- package/dist/i18n/ko.js.map +1 -1
- package/dist/i18n/particles.d.ts +7 -0
- package/dist/i18n/particles.d.ts.map +1 -0
- package/dist/i18n/particles.js +72 -0
- package/dist/i18n/particles.js.map +1 -0
- package/dist/icons/glyphs.d.ts +605 -0
- package/dist/icons/glyphs.d.ts.map +1 -0
- package/dist/icons/glyphs.js +104 -0
- package/dist/icons/glyphs.js.map +1 -0
- package/dist/icons/index.d.ts +59 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +157 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +20 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +20 -0
- package/dist/limits.js.map +1 -1
- package/dist/marks.d.ts +9 -0
- package/dist/marks.d.ts.map +1 -1
- package/dist/marks.js +9 -0
- package/dist/marks.js.map +1 -1
- package/dist/onboarding.d.ts +6 -0
- package/dist/onboarding.d.ts.map +1 -1
- package/dist/onboarding.js +5 -5
- package/dist/onboarding.js.map +1 -1
- 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 +30 -3
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +55 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +37 -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/web.d.ts +3 -0
- package/dist/plugin/web.d.ts.map +1 -1
- package/dist/plugin/web.js +5 -1
- package/dist/plugin/web.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/routes.d.ts +3 -1
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +3 -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 +98 -45
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts +1 -1
- package/dist/runner/acp.d.ts.map +1 -1
- package/dist/runner/acp.js +32 -21
- package/dist/runner/acp.js.map +1 -1
- package/dist/runner/awake.d.ts +35 -0
- package/dist/runner/awake.d.ts.map +1 -0
- package/dist/runner/awake.js +95 -0
- package/dist/runner/awake.js.map +1 -0
- package/dist/runner/claude.d.ts +1 -1
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +100 -18
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts +1 -1
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +20 -17
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/config.d.ts +5 -0
- package/dist/runner/config.d.ts.map +1 -1
- package/dist/runner/config.js +9 -0
- package/dist/runner/config.js.map +1 -1
- package/dist/runner/desk.d.ts +43 -2
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +168 -13
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/process.d.ts.map +1 -1
- package/dist/runner/process.js +11 -4
- package/dist/runner/process.js.map +1 -1
- package/dist/runner/redact.d.ts +39 -4
- package/dist/runner/redact.d.ts.map +1 -1
- package/dist/runner/redact.js +81 -5
- package/dist/runner/redact.js.map +1 -1
- package/dist/runner/runner.d.ts +28 -3
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +371 -54
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/slack.d.ts.map +1 -1
- package/dist/runner/slack.js +10 -4
- package/dist/runner/slack.js.map +1 -1
- package/dist/runner/task-scheduler.d.ts +20 -0
- package/dist/runner/task-scheduler.d.ts.map +1 -1
- package/dist/runner/task-scheduler.js +34 -4
- package/dist/runner/task-scheduler.js.map +1 -1
- package/dist/runner/types.d.ts +51 -1
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js +26 -0
- package/dist/runner/types.js.map +1 -1
- package/dist/runner.d.ts +6 -6
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +5 -5
- package/dist/runner.js.map +1 -1
- package/dist/schemas.d.ts +603 -6
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +156 -20
- package/dist/schemas.js.map +1 -1
- package/dist/services.d.ts +22 -5
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +41 -17
- package/dist/services.js.map +1 -1
- package/dist/setup-guide.d.ts +17 -4
- package/dist/setup-guide.d.ts.map +1 -1
- package/dist/setup-guide.js +48 -41
- package/dist/setup-guide.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +5 -1
- package/dist/tokens.js.map +1 -1
- package/dist/vocabulary.d.ts +21 -3
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +19 -3
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +73 -44
- package/docs/specs/plugins.md +40 -22
- package/docs/specs/records.md +113 -0
- package/docs/specs/rest.md +30 -21
- package/docs/specs/runner.md +46 -22
- package/package.json +11 -2
- package/skills/building-a-console/SKILL.md +4 -4
- package/skills/building-a-plugin/SKILL.md +6 -6
- package/skills/deploying-a-console/SKILL.md +4 -4
- package/skills/deploying-a-console/references/resources.md +41 -4
- 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 +15 -13
- package/skills/running-an-agent/SKILL.md +47 -56
- package/skills/working-the-board/SKILL.md +63 -44
- package/skills/working-the-board/references/terms.md +9 -5
- package/skills/working-the-board/references/the-pack.md +12 -10
- package/skills/working-the-board/references/the-sentence.md +2 -2
- package/src/agent-page.tsx +16 -2
- package/src/api.ts +109 -3
- package/src/charts.ts +250 -0
- package/src/cli/cli.ts +2226 -580
- package/src/cli/command-words.ts +56 -0
- package/src/cli/credentials.ts +181 -20
- package/src/cli/directory.ts +28 -10
- package/src/cli/format.ts +332 -49
- package/src/cli/help.ts +113 -57
- package/src/cli/machine-check.ts +223 -0
- package/src/cli/main.ts +72 -2
- package/src/cli/pack.ts +333 -372
- 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 +8 -0
- package/src/cli/secret-notes.ts +63 -0
- package/src/cli/serve.ts +295 -2
- package/src/client.ts +215 -177
- package/src/components/agent-page.tsx +1044 -281
- package/src/components/agents.tsx +9 -5
- package/src/components/board.tsx +3 -15
- package/src/components/categories.tsx +2 -2
- package/src/components/charts.tsx +680 -0
- package/src/components/decision-list.tsx +11 -7
- package/src/components/desk-records.tsx +724 -0
- package/src/components/desk.tsx +471 -0
- package/src/components/event-feed.tsx +12 -3
- package/src/components/goals.tsx +33 -25
- package/src/components/home.tsx +42 -6
- package/src/components/icon.tsx +337 -0
- package/src/components/markdown.tsx +22 -2
- package/src/components/people.tsx +1 -1
- package/src/components/plugin-frame.tsx +7 -0
- package/src/components/plugin-settings.tsx +171 -12
- package/src/components/projects.tsx +68 -17
- package/src/components/rules.tsx +94 -34
- package/src/components/sessions.tsx +2 -13
- package/src/components/setup.tsx +20 -5
- package/src/components/shell.tsx +3 -20
- package/src/components/tokens.tsx +1 -1
- package/src/components/ui.tsx +16 -8
- package/src/connect-page.tsx +1 -1
- package/src/console.tsx +104 -62
- package/src/data.ts +37 -34
- 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/home-tiles.ts +170 -46
- package/src/i18n/en.ts +323 -11
- package/src/i18n/ko.ts +378 -87
- package/src/i18n/particles.ts +79 -0
- package/src/icons/glyphs.ts +112 -0
- package/src/icons/index.ts +195 -0
- package/src/index.ts +125 -0
- package/src/limits.ts +20 -0
- package/src/marks.ts +12 -0
- package/src/onboarding.ts +14 -6
- package/src/plugin/context.ts +55 -12
- package/src/plugin/limits.ts +2 -0
- package/src/plugin/manifest.ts +38 -2
- package/src/plugin/rest-schemas.ts +41 -0
- package/src/plugin/sandbox.ts +4 -1
- package/src/plugin/testing.ts +63 -12
- package/src/plugin/web.ts +9 -2
- package/src/plugin.ts +2 -0
- package/src/records.ts +702 -0
- package/src/routes.ts +3 -1
- package/src/rules.ts +108 -47
- package/src/runner/acp.ts +49 -30
- package/src/runner/awake.ts +135 -0
- package/src/runner/claude.ts +131 -26
- package/src/runner/codex.ts +37 -26
- package/src/runner/config.ts +9 -0
- package/src/runner/desk.ts +200 -15
- package/src/runner/process.ts +11 -4
- package/src/runner/redact.ts +92 -6
- package/src/runner/runner.ts +457 -56
- package/src/runner/slack.ts +10 -4
- package/src/runner/task-scheduler.ts +36 -4
- package/src/runner/types.ts +67 -1
- package/src/runner.ts +27 -2
- package/src/schemas.ts +177 -18
- package/src/services.ts +55 -16
- package/src/setup-guide.ts +49 -40
- package/src/styles/README.md +16 -5
- package/src/styles/base.css +17 -0
- package/src/styles/console.css +10 -0
- package/src/styles/drawn-by-pages.json +1 -1
- package/src/styles/pages/agents.css +103 -1
- package/src/styles/pages/board.css +0 -10
- package/src/styles/pages/calendar.css +1 -1
- package/src/styles/pages/connect.css +0 -10
- package/src/styles/pages/decisions.css +3 -1
- package/src/styles/pages/desk.css +126 -0
- package/src/styles/pages/documents.css +5 -0
- package/src/styles/pages/feed.css +5 -2
- package/src/styles/pages/home.css +5 -0
- package/src/styles/pages/roadmap.css +2 -2
- package/src/styles/pages/settings.css +11 -0
- package/src/styles/pages/task.css +0 -20
- package/src/styles/pages/thread.css +1 -1
- package/src/styles/parts/bars.css +80 -0
- package/src/styles/parts/calendar.css +1 -1
- package/src/styles/parts/callout.css +1 -0
- package/src/styles/parts/chart.css +173 -0
- package/src/styles/parts/detail.css +22 -0
- package/src/styles/parts/empty.css +2 -0
- package/src/styles/parts/eyebrow.css +1 -1
- package/src/styles/parts/facts.css +1 -1
- package/src/styles/parts/figures.css +65 -0
- package/src/styles/parts/form.css +2 -1
- package/src/styles/parts/icon.css +191 -0
- package/src/styles/parts/input.css +14 -4
- package/src/styles/parts/legend.css +48 -0
- package/src/styles/parts/mark.css +36 -0
- package/src/styles/parts/menu.css +1 -7
- package/src/styles/parts/page.css +1 -1
- package/src/styles/parts/panel.css +10 -0
- package/src/styles/parts/person.css +5 -2
- package/src/styles/parts/progress.css +5 -2
- package/src/styles/parts/rows.css +1 -0
- package/src/styles/parts/series.css +32 -0
- package/src/styles/parts/settings.css +5 -0
- package/src/styles/parts/share.css +25 -0
- package/src/styles/parts/spark.css +23 -0
- package/src/styles/parts/stat.css +69 -0
- package/src/styles/tokens.css +31 -10
- package/src/tokens.ts +5 -1
- package/src/vocabulary.ts +25 -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/services.ts
CHANGED
|
@@ -32,6 +32,12 @@ export interface ServiceContext {
|
|
|
32
32
|
readonly names: ServiceNames;
|
|
33
33
|
/** What the agent's account is called at the service, where a name is put together for it. */
|
|
34
34
|
readonly account: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The agent's own address: the one it signs in to the console with, where it signs in with an
|
|
37
|
+
* address. Nothing where it signs in with a login that is none: an address is then asked for,
|
|
38
|
+
* and never made up from the names.
|
|
39
|
+
*/
|
|
40
|
+
readonly address?: string | undefined;
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
/** What one kind of service says of itself. */
|
|
@@ -80,18 +86,26 @@ export function fillTemplate(template: string, names: ServiceNames): string | un
|
|
|
80
86
|
const called = (account: string | undefined, otherwise: string): string =>
|
|
81
87
|
account === undefined ? otherwise : `\`${account}\``;
|
|
82
88
|
|
|
89
|
+
/**
|
|
90
|
+
* What a desk's item says last: the desk's git is handed the token by the setup's own helper, so
|
|
91
|
+
* that the agent sets none up and no copy is kept by the machine; and the organization's pack
|
|
92
|
+
* may hold the skill for setting a desk up.
|
|
93
|
+
*/
|
|
94
|
+
const DESK_BY_THE_PACK =
|
|
95
|
+
"The desk's git takes git.token from your store by itself, so nothing is typed and no helper of the machine keeps a copy. Where the organization's pack has a skill for setting a desk up, go by it: console skills --search \"desk setup\" --limit 5.";
|
|
96
|
+
|
|
83
97
|
/** What a service the account signs in to the console through says last: the sign-in is needed once, at the setup. */
|
|
84
98
|
const SIGN_IN_AT_HAND =
|
|
85
99
|
"What it signs in with, its password and its second step, at hand when its machine is set up: the setup signs in with it once, in the machine's browser.";
|
|
86
100
|
|
|
87
101
|
/**
|
|
88
102
|
* What a git host the account signs in to the console through says of its login: a login there
|
|
89
|
-
* goes to whoever registers it, and
|
|
90
|
-
*
|
|
91
|
-
* thing.
|
|
103
|
+
* goes to whoever registers it, and the console asks the host which account the login is when
|
|
104
|
+
* the agent account is added (ADR-0126), so the account is the organization's by then. A
|
|
105
|
+
* Workspace makes its own addresses, and says no such thing.
|
|
92
106
|
*/
|
|
93
107
|
export const HELD_BEFORE_ADDED =
|
|
94
|
-
"It has to be the organization's own there already, from before the agent account was added here:
|
|
108
|
+
"It has to be the organization's own there already, from before the agent account was added here: that is when the console asks the host which account the login is, and a login nobody holds is whoever registers it first. Where nobody holds it yet, register it before anything else.";
|
|
95
109
|
|
|
96
110
|
const github: ServiceProvider = {
|
|
97
111
|
kind: "github",
|
|
@@ -120,7 +134,7 @@ const github: ServiceProvider = {
|
|
|
120
134
|
},
|
|
121
135
|
{
|
|
122
136
|
title: "Make your desk there and push it",
|
|
123
|
-
body: `Make the repository \`${account ?? "<your account>"}/desk\`, private, and push the desk to it
|
|
137
|
+
body: `Make the repository \`${account ?? "<your account>"}/desk\`, private, and push the desk to it. ${DESK_BY_THE_PACK}`,
|
|
124
138
|
},
|
|
125
139
|
],
|
|
126
140
|
asks: ({ service, account }) => [
|
|
@@ -176,7 +190,7 @@ const gitlab: ServiceProvider = {
|
|
|
176
190
|
},
|
|
177
191
|
{
|
|
178
192
|
title: "Make your desk there and push it",
|
|
179
|
-
body: `Your desk is ${service.group === undefined ? "a project of the group, which whoever made your account names" : `the project \`${service.group}/${names.agent}-desk\``}, private: push the desk to it. Where your role in the group does not let you make the project, ask whoever made your account to
|
|
193
|
+
body: `Your desk is ${service.group === undefined ? "a project of the group, which whoever made your account names" : `the project \`${service.group}/${names.agent}-desk\``}, private: push the desk to it. Where your role in the group does not let you make the project, ask whoever made your account to. ${DESK_BY_THE_PACK}`,
|
|
180
194
|
},
|
|
181
195
|
];
|
|
182
196
|
}
|
|
@@ -187,7 +201,7 @@ const gitlab: ServiceProvider = {
|
|
|
187
201
|
},
|
|
188
202
|
{
|
|
189
203
|
title: "Make your desk there and push it",
|
|
190
|
-
body: `Make the project \`${account ?? "<your account>"}/desk\`, private, and push the desk to it
|
|
204
|
+
body: `Make the project \`${account ?? "<your account>"}/desk\`, private, and push the desk to it. ${DESK_BY_THE_PACK}`,
|
|
191
205
|
},
|
|
192
206
|
];
|
|
193
207
|
},
|
|
@@ -239,6 +253,10 @@ const googleWorkspace: ServiceProvider = {
|
|
|
239
253
|
deskRemote: () => undefined,
|
|
240
254
|
};
|
|
241
255
|
|
|
256
|
+
/** The Slack workspace an entry names, as a line says it. */
|
|
257
|
+
const slackPlace = (service: RestWorkspaceService): string =>
|
|
258
|
+
service.workspace === undefined ? "the Slack workspace" : `\`${service.workspace}\``;
|
|
259
|
+
|
|
242
260
|
const slack: ServiceProvider = {
|
|
243
261
|
kind: "slack",
|
|
244
262
|
name: "Slack",
|
|
@@ -246,23 +264,26 @@ const slack: ServiceProvider = {
|
|
|
246
264
|
account: undefined,
|
|
247
265
|
signsInThrough: undefined,
|
|
248
266
|
wakeSource: "slack",
|
|
249
|
-
guide: ({ service }) => [
|
|
250
|
-
`An invitation
|
|
267
|
+
guide: ({ service, address }) => [
|
|
268
|
+
`An invitation to ${slackPlace(service)} as a member, sent to ${address === undefined ? "an address the agent reads" : `\`${address}\`, the address the agent signs in with`}: it is a member there as a person is, called by its name.`,
|
|
251
269
|
],
|
|
252
|
-
onboarding: ({ service }) => [
|
|
270
|
+
onboarding: ({ service, address }) => [
|
|
253
271
|
{
|
|
254
|
-
title: "Join the messenger and
|
|
255
|
-
body: `Accept the invitation to ${service
|
|
272
|
+
title: "Join the messenger and set your profile",
|
|
273
|
+
body: `Accept the invitation to ${slackPlace(service)} ${address === undefined ? "where one has reached you" : `that came to \`${address}\`, the address you sign in with`}, and set your name, your title and your picture as any member does (console agent <handle> --avatar <file> writes the file).`,
|
|
256
274
|
},
|
|
257
275
|
{
|
|
258
276
|
title: "Connect the messenger to your product, and be woken by it",
|
|
259
|
-
body:
|
|
277
|
+
body: `Add the messenger's own MCP server to your product, and make the app that wakes you from the manifest your skill carries; keep its tokens in your store and add "slack" to "wake" in runner.json. The runner takes the change by itself once your turn is over: console agent <handle> then says the source is connected.`,
|
|
260
278
|
},
|
|
261
279
|
],
|
|
262
|
-
asks: ({ service, names }) => [
|
|
280
|
+
asks: ({ service, names, address }) => [
|
|
263
281
|
{
|
|
264
282
|
title: `An invitation for ${names.agent} to the messenger`,
|
|
265
|
-
body:
|
|
283
|
+
body:
|
|
284
|
+
address === undefined
|
|
285
|
+
? `Where you hold none: ask which address an invitation to ${slackPlace(service)} is to be sent to, and name none yourself, since an address put together from your names is nobody's. Then an invitation there as a member, and the approval of the app you ask to install for yourself.`
|
|
286
|
+
: `Where none has come to \`${address}\`, the address you sign in with: an invitation to ${slackPlace(service)} as a member, sent there, and the approval of the app you ask to install for yourself.`,
|
|
266
287
|
},
|
|
267
288
|
],
|
|
268
289
|
deskRemote: () => undefined,
|
|
@@ -329,6 +350,8 @@ export function describeService(
|
|
|
329
350
|
role: ServiceRole,
|
|
330
351
|
service: RestWorkspaceService,
|
|
331
352
|
names: ServiceNames,
|
|
353
|
+
/** The agent's own address, where it signs in to the console with one. */
|
|
354
|
+
address?: string,
|
|
332
355
|
): {
|
|
333
356
|
readonly provider: ServiceProvider;
|
|
334
357
|
readonly account: string | undefined;
|
|
@@ -338,7 +361,7 @@ export function describeService(
|
|
|
338
361
|
} {
|
|
339
362
|
const provider = serviceProviderOf(service.kind ?? "");
|
|
340
363
|
const account = serviceAccountOf(service, names);
|
|
341
|
-
const context: ServiceContext = { role, service, names, account };
|
|
364
|
+
const context: ServiceContext = { role, service, names, account, address };
|
|
342
365
|
return {
|
|
343
366
|
provider,
|
|
344
367
|
account,
|
|
@@ -348,6 +371,22 @@ export function describeService(
|
|
|
348
371
|
};
|
|
349
372
|
}
|
|
350
373
|
|
|
374
|
+
/**
|
|
375
|
+
* The agent account's own address (ADR-0094): the login it signs in to the console with, where
|
|
376
|
+
* that is an address, as at a Workspace. A login at a git host is none, and nothing is made of
|
|
377
|
+
* the workspace's names in its place: an invitation sent to an address nobody reads reaches
|
|
378
|
+
* nobody.
|
|
379
|
+
*/
|
|
380
|
+
export function agentAddressOf(
|
|
381
|
+
workspace: Pick<RestWorkspace, "handle" | "domain" | "services">,
|
|
382
|
+
agent: string,
|
|
383
|
+
/** The login the account signs in with, where it is known; else what the identity service makes of the names. */
|
|
384
|
+
login?: string,
|
|
385
|
+
): string | undefined {
|
|
386
|
+
const signsInWith = login ?? agentLoginOf(workspace, agent)?.login;
|
|
387
|
+
return signsInWith?.includes("@") === true ? signsInWith : undefined;
|
|
388
|
+
}
|
|
389
|
+
|
|
351
390
|
/**
|
|
352
391
|
* Where an agent account's desk is cloned from, as the module of the workspace's git host says:
|
|
353
392
|
* nothing where the workspace names no git host, the kind does not say, or the account's name
|
package/src/setup-guide.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { en } from "./i18n/en.js";
|
|
1
2
|
import type { RestAgentSetup, RestWorkspace } from "./schemas.js";
|
|
2
3
|
import {
|
|
4
|
+
agentAddressOf,
|
|
3
5
|
describeService,
|
|
4
6
|
HELD_BEFORE_ADDED,
|
|
5
7
|
type ServiceItem,
|
|
@@ -9,12 +11,11 @@ import { type ProviderKey, SERVICE_ROLES, type ServiceRole } from "./vocabulary.
|
|
|
9
11
|
|
|
10
12
|
// The guide an invitation's code opens (ADR-0088): what setting a machine up for one agent
|
|
11
13
|
// account takes, written for that account and the services of its workspace, in the order it is
|
|
12
|
-
// done and by whom.
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
// they are, as the console's other skills have an agent ask (ADR-0094).
|
|
14
|
+
// done and by whom. `/setup/<code>` shows it whole to a person; `console agent setup --code`
|
|
15
|
+
// prints the part of whoever prepares the machine, a person or the session that was given the
|
|
16
|
+
// line, and no more (ADR-0140): the machine is given its least there, and everything after is
|
|
17
|
+
// the agent's own, in its own session. It is written in English, as a skill is, for an agent to
|
|
18
|
+
// read as it is, and says nothing secret.
|
|
18
19
|
|
|
19
20
|
/** How the console's command gets onto a machine. */
|
|
20
21
|
export const SETUP_INSTALL = "npm i -g @skillcdn/console";
|
|
@@ -26,12 +27,21 @@ export function setupCommandOf(origin: string, code: string): string {
|
|
|
26
27
|
|
|
27
28
|
/**
|
|
28
29
|
* The sentence said to the agent's product on its machine. It carries the command as written,
|
|
29
|
-
* so that the product runs it and reads the guide from the command's own words.
|
|
30
|
+
* so that the product runs it and reads the guide from the command's own words. In English, as
|
|
31
|
+
* the guide is and as the command prints it; a page says it in the language of whoever reads
|
|
32
|
+
* it, from their pack, where this one is the English pack's.
|
|
30
33
|
*/
|
|
31
34
|
export function setupSentenceOf(command: string): string {
|
|
32
|
-
return
|
|
35
|
+
return en.agents.page.settings.machine.made.line(command, SETUP_INSTALL);
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
/**
|
|
39
|
+
* What a product's browser tool needs, for the products whose tool the package knows: said to
|
|
40
|
+
* the agent where it is told to sign in at pages, and looked for by the setup on the machine.
|
|
41
|
+
*/
|
|
42
|
+
export const BROWSER_TOOL_OF_A_PRODUCT =
|
|
43
|
+
'For Claude Code that tool works in Google Chrome with the Claude in Chrome extension, and is turned on by "browser": "chrome" in runner.json.';
|
|
44
|
+
|
|
35
45
|
/** Whose part of a setup something is (ADR-0088): whoever prepares the machine, the agent, its manager. */
|
|
36
46
|
export type SetupRole = "operator" | "agent" | "manager";
|
|
37
47
|
|
|
@@ -103,15 +113,18 @@ function itemsOnce(items: readonly ServiceItem[], more: readonly ServiceItem[]):
|
|
|
103
113
|
export function guideServicesOf(
|
|
104
114
|
workspace: Pick<RestWorkspace, "handle" | "domain" | "services">,
|
|
105
115
|
handle: string,
|
|
116
|
+
/** The login the account signs in with, where it is known: an address there is its own address. */
|
|
117
|
+
login?: string,
|
|
106
118
|
): GuideService[] {
|
|
107
119
|
const names = serviceNamesOf(workspace, handle);
|
|
120
|
+
const address = agentAddressOf(workspace, handle, login);
|
|
108
121
|
const services: GuideService[] = [];
|
|
109
122
|
for (const role of SERVICE_ROLES) {
|
|
110
123
|
const service = workspace.services?.[role];
|
|
111
124
|
if (service === undefined) {
|
|
112
125
|
continue;
|
|
113
126
|
}
|
|
114
|
-
const said = describeService(role, service, names);
|
|
127
|
+
const said = describeService(role, service, names, address);
|
|
115
128
|
const same = services.find(
|
|
116
129
|
(other) => other.kind === said.provider.kind && other.account === said.account,
|
|
117
130
|
);
|
|
@@ -149,7 +162,7 @@ export function setupGuideOf(setup: RestAgentSetup, code: string): SetupGuide {
|
|
|
149
162
|
account.name === null || account.name.length === 0
|
|
150
163
|
? `@${account.handle}`
|
|
151
164
|
: `@${account.handle} (${[account.name, account.title].filter((part) => part !== null && part.length > 0).join(", ")})`;
|
|
152
|
-
const described = guideServicesOf(workspace, account.handle);
|
|
165
|
+
const described = guideServicesOf(workspace, account.handle, account.login);
|
|
153
166
|
const serviceTitle = (one: GuideService): string =>
|
|
154
167
|
`${one.name}, ${one.roles.map((role) => ROLE_WORDS[role]).join(" and ")}`;
|
|
155
168
|
|
|
@@ -171,42 +184,35 @@ export function setupGuideOf(setup: RestAgentSetup, code: string): SetupGuide {
|
|
|
171
184
|
: []),
|
|
172
185
|
{
|
|
173
186
|
title: "An OS account of its own",
|
|
174
|
-
body: "On
|
|
187
|
+
body: "On a machine that stays on and awake, an OS account for the agent, apart from anyone else's. Whether it holds an administrator's rights is for whoever keeps the machine to say.",
|
|
175
188
|
},
|
|
176
189
|
{
|
|
177
|
-
title: "Its product
|
|
178
|
-
body: "In that OS account,
|
|
179
|
-
line: SETUP_INSTALL,
|
|
190
|
+
title: "Its product, signed in",
|
|
191
|
+
body: "In that OS account, the agent's product (Claude Code, Codex or another), signed in with the agent's own subscription. Whatever else the machine needs, the session that is given the line installs itself.",
|
|
180
192
|
},
|
|
181
193
|
{
|
|
182
194
|
title: "The one line",
|
|
183
|
-
body: "Open a session of the product there and say this to it
|
|
195
|
+
body: "Open a session of the product there and say this to it. You act as yourself in the console, and never sign in to it on the agent's machine.",
|
|
184
196
|
line: setupSentenceOf(command),
|
|
185
197
|
},
|
|
186
198
|
];
|
|
187
199
|
|
|
188
200
|
const machine: SetupGuideStep[] = [
|
|
189
201
|
{
|
|
190
|
-
title: "
|
|
191
|
-
body:
|
|
202
|
+
title: "What the machine needs",
|
|
203
|
+
body: "The command looks at the machine first and names everything that is missing at once: git, the product's command, the browser its browser tool works in. Install each yourself, without asking, and run the line again.",
|
|
192
204
|
},
|
|
193
205
|
{
|
|
194
|
-
title: "The
|
|
195
|
-
body: `
|
|
206
|
+
title: "The sign-in",
|
|
207
|
+
body: `Then the command opens an address in the machine's browser, prints it with a code, and waits. Say to the person at the machine: "Sign in there through ${provider} as \`${account.login}\`, check that the page shows this code, and say that it is you." They sign in themselves, and no password is written in a chat: a secret the agent is to hold, they seed from their own machine (\`console agent secret ${account.handle} <name>\`). Nobody else's sign-in answers for the account; where the page shows another member, they sign out there first.`,
|
|
196
208
|
},
|
|
197
209
|
{
|
|
198
|
-
title: "
|
|
199
|
-
body: "
|
|
210
|
+
title: "What the command does then",
|
|
211
|
+
body: "It writes the desk in the OS account's home from the template, or clones it where the account pushed one before, writes the service that keeps the runner running, starts it, and waits until the agent's first session has begun. It needs no administrator's rights, and writes over no file of a desk that is there.",
|
|
200
212
|
},
|
|
201
213
|
{
|
|
202
|
-
title: "
|
|
203
|
-
body: `
|
|
204
|
-
line: "console whoami",
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
title: "When the services or the account change",
|
|
208
|
-
body: "Run this in the desk: it writes what is missing there, writes the service again where it changed, and says the services as they are now.",
|
|
209
|
-
line: "console agent setup --refresh",
|
|
214
|
+
title: "Then stop",
|
|
215
|
+
body: `That is the machine prepared. What comes after is the agent's own, done in its own session from its first task: its sign-ins at the services, its tokens, its desk's repository, its profile, its messenger. Do none of it for it. What you change on this machine afterwards, say to it: \`console agent wake me "<what changed>"\`.`,
|
|
210
216
|
},
|
|
211
217
|
];
|
|
212
218
|
|
|
@@ -219,7 +225,7 @@ export function setupGuideOf(setup: RestAgentSetup, code: string): SetupGuide {
|
|
|
219
225
|
const browser: SetupGuideStep[] = [
|
|
220
226
|
{
|
|
221
227
|
title: "Use the machine's own browser, and keep it",
|
|
222
|
-
body:
|
|
228
|
+
body: `Sign in at a service in the ordinary browser of your OS account, with a browser tool of your product that attaches to that browser. A sign-in stays there from one session to the next, as a person's does. A browser a tool starts anew each time keeps none, and a service takes it for a stranger each time and asks again. ${BROWSER_TOOL_OF_A_PRODUCT}`,
|
|
223
229
|
},
|
|
224
230
|
{
|
|
225
231
|
title: "Where a sign-in wants a person",
|
|
@@ -227,7 +233,7 @@ export function setupGuideOf(setup: RestAgentSetup, code: string): SetupGuide {
|
|
|
227
233
|
},
|
|
228
234
|
{
|
|
229
235
|
title: "Keep what you sign in with",
|
|
230
|
-
body: "A password you chose or were handed goes into your store, with the day it ends where it has one: `console secret <service>.password --set --expires <day>`. Turn on a second step you can answer yourself where the service has one.
|
|
236
|
+
body: "A password you chose or were handed goes into your store, with the day it ends where it has one: `console secret <service>.password --set --expires <day>`. Turn on a second step you can answer yourself where the service has one.",
|
|
231
237
|
},
|
|
232
238
|
];
|
|
233
239
|
const asked: SetupGuideStep[] = described.flatMap((one) =>
|
|
@@ -239,16 +245,15 @@ export function setupGuideOf(setup: RestAgentSetup, code: string): SetupGuide {
|
|
|
239
245
|
key: "before",
|
|
240
246
|
who: "operator",
|
|
241
247
|
title: "Before the line",
|
|
242
|
-
about:
|
|
243
|
-
"For whoever prepares the machine: a person at its screen, or an agent that administers it.",
|
|
248
|
+
about: "For the person who has the machine prepared: what only a person does.",
|
|
244
249
|
steps: before,
|
|
245
250
|
},
|
|
246
251
|
{
|
|
247
252
|
key: "machine",
|
|
248
|
-
who: "
|
|
253
|
+
who: "operator",
|
|
249
254
|
title: "On the machine",
|
|
250
255
|
about:
|
|
251
|
-
"For the
|
|
256
|
+
"For the session that was given the line, or whoever runs the command in the agent's OS account. The account is entered through its own sign-in and through nothing else.",
|
|
252
257
|
steps: machine,
|
|
253
258
|
},
|
|
254
259
|
...(start.length === 0
|
|
@@ -259,7 +264,7 @@ export function setupGuideOf(setup: RestAgentSetup, code: string): SetupGuide {
|
|
|
259
264
|
who: "agent" as const,
|
|
260
265
|
title: "When the agent starts",
|
|
261
266
|
about:
|
|
262
|
-
"What the agent does itself,
|
|
267
|
+
"What the agent does itself, in its own session, as its first task says. What it signs in with it keeps in its store (console secret), never in a file or a message.",
|
|
263
268
|
steps: start,
|
|
264
269
|
},
|
|
265
270
|
]),
|
|
@@ -290,7 +295,6 @@ export function setupGuideOf(setup: RestAgentSetup, code: string): SetupGuide {
|
|
|
290
295
|
about: [
|
|
291
296
|
`This guide sets a machine up for the agent account ${called} of ${workspace.name}, whose console is at ${setup.console.url}. The account signs in there as \`${account.login}\` through ${provider}.`,
|
|
292
297
|
`The code that opened this guide is an invitation and no credential: it says which account the setup is for, and gives nobody the account. It ends on its day, or when the account's command has signed in.`,
|
|
293
|
-
"The skill running-an-agent, shipped with the console's command, says the whole of it for the three who have a part in it: whoever prepares the machine, the agent, and its manager.",
|
|
294
298
|
],
|
|
295
299
|
expiresAt: setup.expiresAt,
|
|
296
300
|
sections,
|
|
@@ -304,8 +308,12 @@ const WHO: Readonly<Record<SetupRole, string>> = {
|
|
|
304
308
|
};
|
|
305
309
|
|
|
306
310
|
/**
|
|
307
|
-
* The guide as the command prints it: Markdown, every line to run on a line of its
|
|
308
|
-
*
|
|
311
|
+
* The guide as the command prints it (ADR-0140): Markdown, every line to run on a line of its
|
|
312
|
+
* own, and of its sections only those of whoever prepares the machine, since the command is run
|
|
313
|
+
* by them. What the agent does when it starts and what it asks for are the agent's first task,
|
|
314
|
+
* read by the agent in its own session: a session at the machine that read them took them for
|
|
315
|
+
* its own work. `moment` says the invitation's day as the command says a moment; left out, as
|
|
316
|
+
* the API gives it.
|
|
309
317
|
*/
|
|
310
318
|
export function setupGuideText(
|
|
311
319
|
guide: SetupGuide,
|
|
@@ -318,7 +326,8 @@ export function setupGuideText(
|
|
|
318
326
|
`The invitation is good until ${moment(guide.expiresAt)}.`,
|
|
319
327
|
"",
|
|
320
328
|
];
|
|
321
|
-
|
|
329
|
+
const own = guide.sections.filter((section) => section.who === "operator");
|
|
330
|
+
for (const [index, section] of own.entries()) {
|
|
322
331
|
lines.push(`## ${index + 1}. ${section.title} (${WHO[section.who]})`, "", section.about, "");
|
|
323
332
|
for (const step of section.steps) {
|
|
324
333
|
lines.push(`- ${step.title}. ${step.body}`);
|
package/src/styles/README.md
CHANGED
|
@@ -62,14 +62,15 @@ A part is a file under `parts/` and a row here, with the classes that are its ow
|
|
|
62
62
|
| `avatar` | `sc-avatar*` | `Avatar` | A person's or an agent's picture, `xs` to `xl`. |
|
|
63
63
|
| `person` | `sc-person*`, `sc-people*` | `PersonChip` | A person: by name in a line (`sc-person`), as a row of a list (`sc-person-row`), as a card with their facts (`sc-person-card`, `sc-person-facts`), cards in a grid (`sc-people`). |
|
|
64
64
|
| `workers` | `sc-workers*`, `sc-worker*` | `Workers` | The people at work on one thing, as pictures side by side with a count of the rest. |
|
|
65
|
-
| `mark` | `sc-mark*` | `ProjectMark` | A project's mark: its image, or its symbol on its colour; `sm`, `md`, `lg`. |
|
|
65
|
+
| `mark` | `sc-mark*` | `ProjectMark` | A project's mark: its image, or its symbol or an icon of the pack on its colour; `sm`, `md`, `lg`. |
|
|
66
|
+
| `icon` | `sc-icon*` | `Icon`, `IconPicker` | A glyph of the icon pack by its name ([ADR-0142](../../../../docs/adr/0142-the-console-has-one-icon-pack-drawn-on-one-grid-and-used-by-name.md)), in the colour of the text it stands in: `xs` a caret beside a word, `sm` in a line of text, `md` by itself, `lg` in an empty state or on a card. `sc-icon-picker` is the way to choose one: the field that shows the choice, and the pack under it, searched by words, in its groups (`sc-icon-grid` of `sc-icon-tile`s). An icon stands beside words or is given a label; it never replaces the words of a button a person has to understand. |
|
|
66
67
|
| `eyebrow` | `sc-eyebrow*` | | The small capitals over a group. The one label of that kind. |
|
|
67
68
|
| `progress` | `sc-progress*` | `ProgressBar` | How much of something is done and at work, as a bar with its count. |
|
|
68
69
|
| `count` | `sc-column-count`, `sc-nav-count` | | A number beside a title or a tab. |
|
|
69
70
|
| `text` | `sc-muted`, `sc-lead`, `sc-time`, `sc-loading`, `sc-project-key`, `sc-card-number`, `sc-feed-agent`, `sc-visually-hidden` | `Time`, `Day` | The tones of a line of text: quiet (`sc-muted`), the sentence under a title (`sc-lead`), a moment, a key or a number in the mono face, the agent a person acted through, and what only a screen reader is told. |
|
|
70
|
-
| `prose` | `sc-prose*` | `Markdown` | What people and agents wrote, rendered: headings, lists, tables, code, pictures. |
|
|
71
|
+
| `prose` | `sc-prose*` | `Markdown` | What people and agents wrote, rendered: headings, lists, tables, code, pictures. What an agent said in a session is read by it too, with a picture named there left a link and never fetched (`picturesAsLinks`). |
|
|
71
72
|
| `code` | `sc-code*`, `sc-copyable*` | `CopyButton` | A code or a command shown to be read or copied. |
|
|
72
|
-
| `panel` | `sc-panel*` | | A pane of the page: every section of a page is one. |
|
|
73
|
+
| `panel` | `sc-panel*` | | A pane of the page: every section of a page is one. `-form` keeps a pane to the width a form is read at; `-form-lead` is a form that stands over a list, as wide as the list under it, with what it holds kept to a form's width. |
|
|
73
74
|
| `page` | `sc-page*`, `sc-section*` | | A page's head (`sc-page-head` with its title, its lead and its actions) and a section's (`sc-section-head`, `sc-section-title`). |
|
|
74
75
|
| `facts` | `sc-facts*` | | Facts as names and values: in a pane's column (`sc-facts`), bare (`sc-facts-plain`), on one line (`sc-facts-row`). |
|
|
75
76
|
| `callout` | `sc-callout*` | `Callout` | A note that must be read: plain, a warning, a danger. |
|
|
@@ -78,17 +79,27 @@ A part is a file under `parts/` and a row here, with the classes that are its ow
|
|
|
78
79
|
| `steps` | `sc-steps*`, `sc-step*` | | Steps done in order, each with its mark, the next one pointed out. |
|
|
79
80
|
| `settings` | `sc-settings*` | | Settings as rows: a label, its control, a hint. |
|
|
80
81
|
| `rows` | `sc-task-row*`, `sc-task-rows*` | `TaskList` | A list as rows, each a link with a title and what is said of it at the end. |
|
|
81
|
-
| `detail` | `sc-task-header`, `sc-task-title`, `sc-task-badges`, `sc-task-actions`, `sc-task-main`, `sc-task-body`, `sc-task-aside`, `sc-task-section` | | A page about one thing: its head with the title, the badges and the actions, a main column and an aside. A task, a goal and a document are laid out by it. |
|
|
82
|
+
| `detail` | `sc-task-header`, `sc-task-heading`, `sc-task-parent`, `sc-task-title`, `sc-task-badges`, `sc-task-actions`, `sc-task-main`, `sc-task-body`, `sc-task-aside`, `sc-task-section` | | A page about one thing: its head with the title, the badges and the actions, a main column and an aside. A task, a goal and a document are laid out by it. |
|
|
82
83
|
| `calendar` | `sc-calendar*` | `Calendar` | A month as a grid of days, with bars across days, dots, a legend and a head. |
|
|
83
84
|
| `crumbs` | `sc-crumb*`, `sc-doc-crumbs*` | | The way down to where the page is, each step a link. |
|
|
84
85
|
| `links` | `sc-link*` | | Links as a list, or one with what it leads to. |
|
|
85
86
|
| `filters` | `sc-filters*` | `BoardFilters` | What narrows a page: a row of choices with the count of what is left. |
|
|
86
|
-
| `frame` | `sc-plugin-frame*` | `PluginFrame` | Where a plugin's page or widget is shown: the box, and the frame in it. |
|
|
87
|
+
| `frame` | `sc-plugin-frame*` | `PluginFrame` | Where a plugin's page or widget is shown, or a document a page shows in a frame: the box, and the frame in it. |
|
|
88
|
+
| `series` | `sc-series*` | every chart | The colour a series is drawn in: `sc-series-1` to `sc-series-6`, told apart pair by pair, also by a reader who does not tell red from green, and `sc-series-rest`, the neutral, for what is past the sixth or the rest folded into one. The class sets `color`, and a bar, a column, a line, a dot and a legend's key are drawn in it. Marks wear them, never words. |
|
|
89
|
+
| `legend` | `sc-legend*` | `Legend` | The key of a chart: each series' colour beside its name, a box for what is filled and a stroke (`sc-legend-key-line`) for a line, with a figure after the name where the chart is a whole in parts. For two series or more; one series is named by the chart's title. |
|
|
90
|
+
| `stat` | `sc-stat*`, `sc-stats` | `Stat`, `Stats` | A figure: a number under its name and, where there is one, how it changed (`sc-stat-change`, `-good` or `-bad` where the page knows which it is) and the run it came by, a sparkline. `sc-stats` is a row of them. For the few numbers a page leads with; names with words for values are `facts`. |
|
|
91
|
+
| `spark` | `sc-spark*` | `Sparkline` | The run of a figure in the room of a word, with no axis: a quiet line, its last amount a dot in the series' colour. |
|
|
92
|
+
| `bars` | `sc-bars*` | `BarList` | A ranking or a comparison: each row a name and its figure over its bar, the bars all from one edge. Bars of one kind are one colour. |
|
|
93
|
+
| `share` | `sc-share*` | `ShareBar` | One whole in its parts, as one bar, with each part's name, amount and share under it. Six parts are told apart; the rest is folded into one. |
|
|
94
|
+
| `chart` | `sc-chart*` | `Chart` | Amounts over time: columns, or lines, of one to a few series against one scale, with the scale's round amounts at the side and the points' names under it. `sc-chart-short` where it stands among other things. Its figures stand under it as a table, for a reader who cannot see it. |
|
|
95
|
+
| `figures` | `sc-figures*` | `FigureTable` | A table of figures: rows by columns, the names at the start, every number at the end of its column in the figures that line up, what the rows come to at the foot. What a chart shows, to be read exactly. |
|
|
87
96
|
|
|
88
97
|
Some classes are named after the first page that had them (`sc-task-row` is any row, `sc-column-count` any count). Their names stay until a change renames them everywhere at once.
|
|
89
98
|
|
|
90
99
|
A plugin's pages are built from these same parts: what this table lists is what a plugin may name, and a page's class under `pages/` is not.
|
|
91
100
|
|
|
101
|
+
The charts (`series` to `figures`, [ADR-0123](../../../../docs/adr/0123-charts-are-parts-placed-by-measures-and-drawn-by-the-stylesheet.md)) are parts like the others, with one thing of their own: a bar's length, a column's height and a line's points are measures, and a measure is an attribute of an SVG, a share of the box the part's class gives it (`width="62%"`), never a style. The components compute them with `src/charts.ts`, which is `@skillcdn/console/charts` to a plugin's bundle and depends on nothing; the colours, the widths of the strokes and the radii stay in the parts' files.
|
|
102
|
+
|
|
92
103
|
## Adding to a part, adding a part
|
|
93
104
|
|
|
94
105
|
- **A variant** (another size, another tone) is a class of the part, in its file, named `sc-<part>-<variant>`. Say what it is for in the row.
|
package/src/styles/base.css
CHANGED
|
@@ -26,6 +26,23 @@ body {
|
|
|
26
26
|
line-height: var(--sc-leading-normal);
|
|
27
27
|
-webkit-font-smoothing: antialiased;
|
|
28
28
|
text-rendering: optimizeLegibility;
|
|
29
|
+
/* Where a line breaks: no word is left alone on a last line, in whatever holds a sentence. A
|
|
30
|
+
title's lines come out about one length instead, below and in the parts that are titles. */
|
|
31
|
+
text-wrap: pretty;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* What is typed breaks where it is typed, so that a line already written does not move under
|
|
35
|
+
the caret; and what is written out as it was, a log or a block of code, is left as it was. */
|
|
36
|
+
input,
|
|
37
|
+
textarea,
|
|
38
|
+
pre,
|
|
39
|
+
[contenteditable="true"] {
|
|
40
|
+
text-wrap-style: auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* A moment is read as one thing: a date or a time is never broken in two. */
|
|
44
|
+
time {
|
|
45
|
+
white-space: nowrap;
|
|
29
46
|
}
|
|
30
47
|
|
|
31
48
|
/* Korean breaks between any two syllables by default; keeping words whole reads much better. */
|
package/src/styles/console.css
CHANGED
|
@@ -60,8 +60,17 @@
|
|
|
60
60
|
@import "./parts/rows.css";
|
|
61
61
|
@import "./parts/pager.css";
|
|
62
62
|
@import "./parts/mark.css";
|
|
63
|
+
@import "./parts/icon.css";
|
|
63
64
|
@import "./parts/progress.css";
|
|
64
65
|
@import "./parts/toggle.css";
|
|
66
|
+
@import "./parts/series.css";
|
|
67
|
+
@import "./parts/legend.css";
|
|
68
|
+
@import "./parts/stat.css";
|
|
69
|
+
@import "./parts/spark.css";
|
|
70
|
+
@import "./parts/bars.css";
|
|
71
|
+
@import "./parts/share.css";
|
|
72
|
+
@import "./parts/chart.css";
|
|
73
|
+
@import "./parts/figures.css";
|
|
65
74
|
|
|
66
75
|
/* The pages. */
|
|
67
76
|
@import "./pages/decisions.css";
|
|
@@ -80,4 +89,5 @@
|
|
|
80
89
|
@import "./pages/task.css";
|
|
81
90
|
@import "./pages/agents.css";
|
|
82
91
|
@import "./pages/work.css";
|
|
92
|
+
@import "./pages/desk.css";
|
|
83
93
|
@import "./pages/plugins.css";
|
|
@@ -613,7 +613,7 @@
|
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.sc-talk-said > .sc-time {
|
|
616
|
-
flex-basis: 100
|
|
616
|
+
flex-basis: calc(100% - 1.5rem - var(--sc-space-3));
|
|
617
617
|
margin-inline-start: calc(1.5rem + var(--sc-space-3));
|
|
618
618
|
padding-top: 0;
|
|
619
619
|
}
|
|
@@ -654,6 +654,20 @@
|
|
|
654
654
|
white-space: nowrap;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
+
/* A badge in the row, whose step it is or how it ended, gives way where the row is narrow, after
|
|
658
|
+
the call's line has given all of its own: cut short, so that when it was done stays in the row. */
|
|
659
|
+
.sc-talk-tool-head > .sc-badge {
|
|
660
|
+
display: block;
|
|
661
|
+
flex: 0 1 auto;
|
|
662
|
+
min-width: 0;
|
|
663
|
+
overflow: hidden;
|
|
664
|
+
text-overflow: ellipsis;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.sc-talk-tool-head > .sc-talk-tool-line {
|
|
668
|
+
flex-shrink: 100000;
|
|
669
|
+
}
|
|
670
|
+
|
|
657
671
|
.sc-talk-tool-head:focus-visible {
|
|
658
672
|
outline: var(--sc-focus-ring);
|
|
659
673
|
outline-offset: 2px;
|
|
@@ -703,6 +717,40 @@
|
|
|
703
717
|
padding: var(--sc-space-1) var(--sc-space-3) var(--sc-space-3);
|
|
704
718
|
}
|
|
705
719
|
|
|
720
|
+
/* A sub-agent's row: what it is called, how it stands and when on one line, and under them what
|
|
721
|
+
it is and how much it did. Opened, what it did stands inside it, the whole width of it. */
|
|
722
|
+
.sc-talk-agent-head {
|
|
723
|
+
flex-wrap: wrap;
|
|
724
|
+
align-items: baseline;
|
|
725
|
+
row-gap: 0.125rem;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/* A name is read whole where it fits in two lines, and cut after them. */
|
|
729
|
+
.sc-talk-agent-name {
|
|
730
|
+
display: -webkit-box;
|
|
731
|
+
flex: 1 1 0;
|
|
732
|
+
min-width: 0;
|
|
733
|
+
overflow: hidden;
|
|
734
|
+
overflow-wrap: anywhere;
|
|
735
|
+
-webkit-box-orient: vertical;
|
|
736
|
+
-webkit-line-clamp: 2;
|
|
737
|
+
line-clamp: 2;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.sc-talk-agent-head > .sc-talk-agent-facts {
|
|
741
|
+
display: flex;
|
|
742
|
+
flex: 1 0 100%;
|
|
743
|
+
flex-wrap: wrap;
|
|
744
|
+
align-items: baseline;
|
|
745
|
+
column-gap: var(--sc-space-2);
|
|
746
|
+
order: 1;
|
|
747
|
+
white-space: normal;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.sc-talk-steps > .sc-talk-step {
|
|
751
|
+
margin-inline-start: 0;
|
|
752
|
+
}
|
|
753
|
+
|
|
706
754
|
.sc-talk-code {
|
|
707
755
|
max-height: 24rem;
|
|
708
756
|
padding: var(--sc-space-2) var(--sc-space-3);
|
|
@@ -850,6 +898,40 @@
|
|
|
850
898
|
}
|
|
851
899
|
}
|
|
852
900
|
|
|
901
|
+
/* The sub-agents at work, under the sign that the agent is: a line each, in from its picture,
|
|
902
|
+
the name first and what it is at after it, under the name where the row is narrow. */
|
|
903
|
+
.sc-talk-working-agents {
|
|
904
|
+
flex-wrap: wrap;
|
|
905
|
+
row-gap: var(--sc-space-1);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.sc-talk-agents {
|
|
909
|
+
display: grid;
|
|
910
|
+
flex: 1 0 100%;
|
|
911
|
+
grid-template-columns: minmax(0, 1fr);
|
|
912
|
+
gap: var(--sc-space-1);
|
|
913
|
+
max-width: 40rem;
|
|
914
|
+
margin: 0;
|
|
915
|
+
padding: 0 0 0 calc(1.5rem + var(--sc-space-3));
|
|
916
|
+
list-style: none;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.sc-talk-agents-row {
|
|
920
|
+
display: flex;
|
|
921
|
+
flex-wrap: wrap;
|
|
922
|
+
align-items: baseline;
|
|
923
|
+
column-gap: var(--sc-space-3);
|
|
924
|
+
min-width: 0;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.sc-talk-agents-row > .sc-talk-agent-name {
|
|
928
|
+
flex: 1 1 10rem;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.sc-talk-agents-facts {
|
|
932
|
+
flex: none;
|
|
933
|
+
}
|
|
934
|
+
|
|
853
935
|
/* The pictures of an event: small, side by side, each opening large over the page. */
|
|
854
936
|
.sc-talk-pictures {
|
|
855
937
|
display: flex;
|
|
@@ -985,11 +1067,25 @@
|
|
|
985
1067
|
grid-column: 1 / -1;
|
|
986
1068
|
}
|
|
987
1069
|
|
|
1070
|
+
/* How it ended stands beside the first line of when, where when takes two. */
|
|
1071
|
+
.sc-agent-live-side .sc-agent-session {
|
|
1072
|
+
align-items: start;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/* On a card: why the agent stands as it does, and under it since when. */
|
|
1076
|
+
.sc-agent-card-now {
|
|
1077
|
+
display: grid;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
988
1080
|
@media (max-width: 48rem) {
|
|
989
1081
|
.sc-agent-sessions {
|
|
990
1082
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
991
1083
|
}
|
|
992
1084
|
|
|
1085
|
+
.sc-agent-session {
|
|
1086
|
+
align-items: start;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
993
1089
|
.sc-agent-session-facts,
|
|
994
1090
|
.sc-agent-session-count {
|
|
995
1091
|
grid-column: 1 / -1;
|
|
@@ -1086,6 +1182,12 @@
|
|
|
1086
1182
|
width: 100%;
|
|
1087
1183
|
}
|
|
1088
1184
|
|
|
1185
|
+
@media (max-width: 40rem) {
|
|
1186
|
+
.sc-agent-persona .sc-field {
|
|
1187
|
+
flex-basis: 100%;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1089
1191
|
.sc-agent-settings .sc-agent-runner-facts {
|
|
1090
1192
|
margin-bottom: var(--sc-space-4);
|
|
1091
1193
|
padding-top: 0;
|