@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
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: Needs a shell with Node.js 24 or newer, git, curl, jq and the AWS CLI v2, the gh command signed in or an empty repository the person made, network access to AWS, Cloudflare, GitHub and npm, an AWS account and a domain on Cloudflare the person can create a key and a token for, and a browser on any device for the few steps only a signed-in person can take. Works in any agent that can run a shell and write files; on Windows, in Git Bash with path conversion off.
|
|
6
6
|
metadata:
|
|
7
7
|
author: skillcdn
|
|
8
|
-
version: "1.
|
|
8
|
+
version: "1.8"
|
|
9
9
|
skillcdn:
|
|
10
10
|
translations:
|
|
11
11
|
ko:
|
|
@@ -48,7 +48,7 @@ Check these before the first message. Without the AWS CLI, offer to install it (
|
|
|
48
48
|
| How people sign in, and who | Asked: "How should people sign in: with GitHub, with Google (Workspace), or both? Who configures the console (you, at least): their GitHub login or Google address. With GitHub, everyone of your organization can be in, as the organization has them: say which organization. With a Google Workspace, everyone of the domain is in. Anyone else, an administrator lets in on the People page once the console runs." |
|
|
49
49
|
| The organization's skills | Asked: "Where are your organization's skills on SkillCDN, if anywhere yet? An address like `/gh/<owner>/<repo>`. Is that repository private?" Default: none; a project names one later on its Settings page. A private one is connected in phase 6, with a code the person approves at SkillCDN ([ADR-0036](/docs/adr/0036-a-private-pack-is-connected-with-a-code-a-person-approves-from-the-projects-settings.md)); nothing of it is needed before. |
|
|
50
50
|
| The organization's website, and the look | Asked: "Does your organization have a website? Its address." With one, the console takes the organization's look by default: the marks, the colours and the type read from the site as building-a-console's [the-look-from-a-website.md](/skills/building-a-console/references/the-look-from-a-website.md) says, mapped onto the pages and shown at the plan, and built into the image as the organization's own console, `console-ui/` of the deployment repository, so that the first deploy already carries it. Without a site, or when the person says the default pages are fine, the image's default pages serve: the board's name alone, and no marks. A look that is wanted later is the same skill, building-a-console, in `console-ui/`, and a push. |
|
|
51
|
-
| The plugins | Asked only when the request names one, or the organization's console is to carry a feature of its work (leave, customers, money): "Should the console carry a plugin? Which package, at which version or tag?" Default: none. A plugin is installed by building it into the image from `plugins/package.json` and its lockfile in the deployment repository, with no install scripts ([deploy/README.md "Plugins in the image"](/deploy/README.md#plugins-in-the-image)), and enabled by the administrator on the console's settings page once it runs, consenting to what it asks; one with `storage:sql` needs the database user to hold `CREATEROLE
|
|
51
|
+
| The plugins | Asked only when the request names one, or the organization's console is to carry a feature of its work (leave, customers, money): "Should the console carry a plugin? Which package, at which version or tag?" Default: none. A plugin is installed by building it into the image from `plugins/package.json` and its lockfile in the deployment repository, with no install scripts ([deploy/README.md "Plugins in the image"](/deploy/README.md#plugins-in-the-image)), and enabled by the administrator on the console's settings page once it runs, consenting to what it asks; one with `storage:sql` needs the database user to hold `CREATEROLE` and to own the database, as the master user of phase 3's database does. One wanted later is a row of [running-it-again.md](references/running-it-again.md); one to be written is [building-a-plugin](/skills/building-a-plugin/SKILL.md). |
|
|
52
52
|
| The AWS account | Asked: "Do you have an AWS account for this, or should the console get an account of its own (the simplest to run and to read the bill of)?" A new account is made by the person, on the paid plan, with the order of cost already in front of them (the second message). |
|
|
53
53
|
| The region | Asked when the organization's country does not say: "Where are most of your people: a country, or a city?" The region is the one nearest them: `ap-northeast-2` (Seoul), `ap-northeast-1` (Tokyo), `ap-southeast-1` (Singapore), `eu-central-1` (Frankfurt), `eu-west-1` (Ireland), `eu-west-2` (London), `us-east-1` (N. Virginia), `us-east-2` (Ohio), `us-west-2` (Oregon); `aws ec2 describe-regions` lists them all, and sizing.md says how a region's prices are read. |
|
|
54
54
|
| The run's folder | Asked with a suggestion: "Which folder should the deployment live in on this machine? I suggest `console-deploy` under your home folder." It is made at once and becomes the deployment repository. |
|
|
@@ -83,7 +83,7 @@ Produces the **live address**. The zone is active (else the wait of "How the per
|
|
|
83
83
|
|
|
84
84
|
### Phase 6: The first people
|
|
85
85
|
|
|
86
|
-
Produces the **first administrator and the first project**. Tell the person: "Open <address> and sign in with <provider>; you are an administrator. Make the first project: Projects, New project, a key such as `general`, its name, and the skills address <address or none>. Tell me the key." Then connect this agent: `console login --url <address> --agent deploying-a-console`, which shows an address and a code; relay them, and the person approves on the console's own pages. `console use <key>` in the run's folder. A private pack: `console project pack-token <key> --connect`, which prints a page at SkillCDN and a code; relay them, and the person, signed in at SkillCDN as someone who may open the repository, checks the code and approves there; the command says when the pack is connected, and `console skills` then lists it. Nothing is pasted.
|
|
86
|
+
Produces the **first administrator and the first project**. Tell the person: "Open <address> and sign in with <provider>; you are an administrator. Make the first project: Projects, New project, a key such as `general`, its name, and the skills address <address or none>. Tell me the key." Then connect this agent: `console login --url <address> --agent deploying-a-console`, which shows an address and a code and ends; relay them, run it once more as it says, and the person approves on the console's own pages. `console use <key>` in the run's folder. A private pack: `console project pack-token <key> --connect`, which prints a page at SkillCDN and a code; relay them, and the person, signed in at SkillCDN as someone who may open the repository, checks the code and approves there; the command says when the pack is connected, and `console skills` then lists it. Nothing is pasted.
|
|
87
87
|
|
|
88
88
|
### Phase 7: Proof
|
|
89
89
|
|
|
@@ -95,7 +95,7 @@ Produces **`DEPLOY.md`** in the repository, from the template in resources.md: w
|
|
|
95
95
|
|
|
96
96
|
### Running it again
|
|
97
97
|
|
|
98
|
-
The same skill, from phase 2, with the plan naming only what changes and its price: a new version of the console or of the connector, a plugin installed, updated or removed, the next size, a person let in or taken out, a secret rotated, a console shared with outside teams or customers, the console paused or removed. What each takes is in [running-it-again.md](references/running-it-again.md); each is confirmed at the plan, and the record is updated with it.
|
|
98
|
+
The same skill, from phase 2, with the plan naming only what changes and its price: a new version of the console or of the connector, a plugin installed, updated or removed, the next size, a person let in or taken out, a secret rotated, the console's own secret replaced, a console shared with outside teams or customers, the console paused or removed. What each takes is in [running-it-again.md](references/running-it-again.md); each is confirmed at the plan, and the record is updated with it.
|
|
99
99
|
|
|
100
100
|
### Verdicts
|
|
101
101
|
|
|
@@ -310,7 +310,7 @@ The same with `"family": "console-worker"`, `"cpu": "256"`, `"memory": "512"`, o
|
|
|
310
310
|
|
|
311
311
|
### `deploy/migrate.task.json`
|
|
312
312
|
|
|
313
|
-
The same with `"family": "console-migrate"`, `"cpu": "256"`, `"memory": "512"`, one container `migrate` with `"command": ["migrate"]` and the read-only root filesystem, `secrets` `DATABASE_URL` and `DATABASE_CA`, no environment, no port, no health check, the log stream prefix `migrate`, and no tunnel: a connector must never start for a one-off task. Where the image carries plugins, the task takes the `environment` and the task role of `api.task.json` as well: the role runs the plugins' upgrades, and an upgrade that reads a file of the plugin's records finds it only in the bucket the `api` wrote it to ([deploy/README.md](/deploy/README.md#plugins-in-the-image)).
|
|
313
|
+
The same with `"family": "console-migrate"`, `"cpu": "256"`, `"memory": "512"`, one container `migrate` with `"command": ["migrate"]` and the read-only root filesystem, `secrets` `DATABASE_URL` and `DATABASE_CA`, no environment, no port, no health check, the log stream prefix `migrate`, and no tunnel: a connector must never start for a one-off task. Where the image carries plugins, the task takes the `environment`, the `secrets` and the task role of `api.task.json` as well: the role runs the plugins' upgrades, and an upgrade that reads a file of the plugin's records finds it only in the bucket the `api` wrote it to ([deploy/README.md](/deploy/README.md#plugins-in-the-image)); the console starts on the whole of signing in or on none of it, so the `secrets` come with the `environment`. The same `environment` and `secrets` are what the step that ends a rotation of the console's own secret runs with ("The console's own secret replaced").
|
|
314
314
|
|
|
315
315
|
**Without a pipeline.** A deployment that is rolled by hand, or on a platform that runs one task definition and nothing before it, can run `migrate` inside the tasks instead of as a one-off: a container `migrate` in `api.task.json`, and at `large` in `worker.task.json` too, from the same image with `"command": ["migrate"]`, `"essential": false` and the `secrets` of the migrate task, and the role's own container with `"dependsOn": [{ "containerName": "migrate", "condition": "SUCCESS" }]` (the tunnel keeps its `dependsOn` on `api`). Every task of every role then migrates before it serves; tasks that start together wait on the advisory lock the migration takes, so none races another; a migration that fails leaves the role's container unstarted and the circuit breaker rolls the deployment back. The contract then holds per task rather than per rollout, which hard rule 8 allows in these words. The one-off task stays the default here because it stops the rollout before a single task is replaced.
|
|
316
316
|
|
|
@@ -445,7 +445,7 @@ aws iam put-role-policy --role-name console-github-deploy --policy-name console-
|
|
|
445
445
|
|
|
446
446
|
### The plugins
|
|
447
447
|
|
|
448
|
-
`plugins/package.json` and `plugins/package-lock.json`, when the plan names a plugin: `dependencies` only, each at an exact version from the registry or a tag of a git host (`github:<owner>/<repo>#<tag>`), written with `npm install --save-exact --package-lock-only --ignore-scripts <package>@<version>` in `plugins/`, which installs nothing on the machine; no scripts, no other field that does anything. The workflow installs them into the image from the lockfile with no install scripts and sets `PLUGINS_DIR`, as [deploy/README.md "Plugins in the image"](/deploy/README.md#plugins-in-the-image) lays it out; the console reads them at boot, and the administrator enables each on the settings page once the console runs. Absent, the console has no plugins. A plugin that asks `storage:sql` needs the database user to hold `CREATEROLE
|
|
448
|
+
`plugins/package.json` and `plugins/package-lock.json`, when the plan names a plugin: `dependencies` only, each at an exact version from the registry or a tag of a git host (`github:<owner>/<repo>#<tag>`), written with `npm install --save-exact --package-lock-only --ignore-scripts <package>@<version>` in `plugins/`, which installs nothing on the machine; no scripts, no other field that does anything. The workflow installs them into the image from the lockfile with no install scripts and sets `PLUGINS_DIR`, as [deploy/README.md "Plugins in the image"](/deploy/README.md#plugins-in-the-image) lays it out; the console reads them at boot, and the administrator enables each on the settings page once the console runs. Absent, the console has no plugins. A plugin that asks `storage:sql` needs the database user to hold `CREATEROLE` and to own the database, as the master user of phase 3's database does; one that keeps files is bounded with `PLUGIN_FILE_BYTES_AT_MOST` in `deploy/console.env` as `PROJECT_FILE_BYTES_AT_MOST` is, and each plugin's thread may hold `PLUGIN_MEMORY_MB_AT_MOST` (256 unless set), which the task's memory leaves room for.
|
|
449
449
|
|
|
450
450
|
### The rest of the repository
|
|
451
451
|
|
|
@@ -484,7 +484,7 @@ aws budgets create-budget --account-id $ACCOUNT --budget file://scratch/budget.j
|
|
|
484
484
|
The person signs in and makes the first project on the pages (the skill's phase 6). Then, in the run's folder:
|
|
485
485
|
|
|
486
486
|
```sh
|
|
487
|
-
console login --url https://<hostname> --agent deploying-a-console # relay the address and the code; the person approves
|
|
487
|
+
console login --url https://<hostname> --agent deploying-a-console # relay the address and the code and run it once more as it says; the person approves
|
|
488
488
|
console use <key>
|
|
489
489
|
printf '# Deployment check\n\nHanded in by the deploying agent on <date> to prove the bucket.\n' > scratch/deployment-check.md
|
|
490
490
|
NUMBER=$(console task new "Deployment check" --body "What this run deployed, in a few lines: the size, the address, what is owed." --json | jq -r .number)
|
|
@@ -528,7 +528,7 @@ Made on <date> with the skill `deploying-a-console` of the SkillCDN Console (ski
|
|
|
528
528
|
- **A new version of the console:** set `CONSOLE_REF` in `deploy/console.env` to the commit of the newest release tag: the last line of `git ls-remote --tags https://github.com/skillcdn/console 'refs/tags/@skillcdn/console@*' | sort -t@ -k3 -V` is the highest version, with the commit in its first column; move `console-ui/` to the same version of the package when there is one; push. **A new connector:** `CLOUDFLARED_VERSION` there, push.
|
|
529
529
|
- **A person added or removed:** with an organization at GitHub (`GITHUB_ORG`), in the organization, which the console reads every ten minutes; otherwise on the People page, or with `console person add <login>` and `console person deactivate <login>`, by an administrator; nothing to push. With a Google Workspace, everyone of `GOOGLE_WORKSPACE_DOMAIN` is in. `ADMINS` in `deploy/api.task.json` names only the first administrators, who make others on the People page.
|
|
530
530
|
- **The next size:** the numbers in `deploy/api.task.json` (and `deploy/worker.task.json` at `large`), `API_COUNT` and `WORKER_COUNT` in `deploy/console.env`, push; to `large`, also `deploy/worker.task.json` written as the skill's resources.md gives it and `WORKER_IN_PROCESS` dropped from the api task; the database: `aws rds modify-db-instance --db-instance-identifier console --db-instance-class <class> --apply-immediately` (a few minutes of unavailability).
|
|
531
|
-
- **A secret rotated:** the new value into a secrets file of the same shape with the skill's script (`set`), then `node <the script> store <file> /console`, which overwrites the parameter in its tier (`$(npm root -g)/@skillcdn/console/skills/deploying-a-console/scripts/store-secrets.mjs`; `DATABASE_CA` is in the advanced tier, which an `aws ssm put-parameter --overwrite` by hand must name with `--tier Advanced`); then `aws ecs update-service --cluster console --service api --force-new-deployment`.
|
|
531
|
+
- **A secret rotated:** the new value into a secrets file of the same shape with the skill's script (`set`), then `node <the script> store <file> /console`, which overwrites the parameter in its tier (`$(npm root -g)/@skillcdn/console/skills/deploying-a-console/scripts/store-secrets.mjs`; `DATABASE_CA` is in the advanced tier, which an `aws ssm put-parameter --overwrite` by hand must name with `--tier Advanced`); then `aws ecs update-service --cluster console --service api --force-new-deployment`. **The console's own secret (`AUTH_SECRET`)** is never overwritten alone: it is replaced with the skill, in three steps that lose nothing it sealed and sign nobody out.
|
|
532
532
|
- **The organization's own console:** its source in `console-ui/` (building-a-console makes it); a push builds it into the image.
|
|
533
533
|
- **Paused:** `aws ecs update-service --cluster console --service api --desired-count 0` (and `worker`), `aws rds stop-db-instance --db-instance-identifier console` (seven days at most); the reverse resumes.
|
|
534
534
|
- **Removed:** the skill's "Removing", resource by resource, confirmed.
|
|
@@ -544,6 +544,43 @@ Made on <date> with the skill `deploying-a-console` of the SkillCDN Console (ski
|
|
|
544
544
|
|
|
545
545
|
A change to `DEPLOY.md` or `README.md` alone does not run the workflow (its `paths`), so the record is pushed without a deployment: `git add DEPLOY.md README.md && git commit -m "The record" && git push`, never `git add -A` here, after `git status --short` shows nothing else of the folder as untracked (`scratch/`, the files and `.skillcdn-console.json` are ignored).
|
|
546
546
|
|
|
547
|
+
## The console's own secret replaced
|
|
548
|
+
|
|
549
|
+
`AUTH_SECRET` keys everything the console seals, so it is never overwritten alone: it is replaced in three steps, and then nothing sealed is lost and nobody is signed out ([deploy/README.md](/deploy/README.md#rotating-the-secret)). The console must be at 0.5.1 or later (`console whoami` says its version); an older one is moved to a new version first. The plan names the three steps and the two pushes.
|
|
550
|
+
|
|
551
|
+
**1. The new secret beside the old one.** In the repository first, without pushing: one line more in the `secrets` of `deploy/api.task.json`, and of every other task definition that carries `AUTH_SECRET`,
|
|
552
|
+
|
|
553
|
+
```json
|
|
554
|
+
{ "name": "AUTH_SECRET_PREVIOUS", "valueFrom": "arn:aws:ssm:<region>:<account>:parameter/console/AUTH_SECRET_PREVIOUS" }
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
and `deploy/migrate.task.json` given the `environment` and the `secrets` of `deploy/api.task.json`, this line among them, where it does not carry them yet; commit. Then the two values, neither ever shown: the old one from its parameter into the secrets file under its new name, a new one generated, both stored:
|
|
558
|
+
|
|
559
|
+
```sh
|
|
560
|
+
aws ssm get-parameter --name /console/AUTH_SECRET --with-decryption --query Parameter.Value --output text | set_secret AUTH_SECRET_PREVIOUS
|
|
561
|
+
node -e "process.stdout.write(require('node:crypto').randomBytes(36).toString('base64url'))" | set_secret AUTH_SECRET
|
|
562
|
+
node scratch/store-secrets.mjs store "$SECRETS" /console
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
Push at once, and watch the run to green: the services roll with both secrets. Check: the `api` says so as it starts, `aws logs tail /console --since 15m --format short --log-stream-name-prefix api | grep 'previous secret'`.
|
|
566
|
+
|
|
567
|
+
**2. What the old one sealed, sealed again.** When the run is green and the services have rolled, the console's own step, as a one-off task from the migrate task definition with its word:
|
|
568
|
+
|
|
569
|
+
```sh
|
|
570
|
+
set -a; . deploy/console.env; set +a
|
|
571
|
+
NETWORK="awsvpcConfiguration={subnets=[$SUBNETS],securityGroups=[$TASKS_SECURITY_GROUP],assignPublicIp=ENABLED}"
|
|
572
|
+
TASK=$(aws ecs run-task --cluster "$ECS_CLUSTER" --task-definition console-migrate --launch-type FARGATE --network-configuration "$NETWORK" --overrides '{"containerOverrides":[{"name":"migrate","command":["migrate","reseal"]}]}' --query 'tasks[0].taskArn' --output text)
|
|
573
|
+
aws ecs wait tasks-stopped --cluster "$ECS_CLUSTER" --tasks "$TASK"
|
|
574
|
+
aws ecs describe-tasks --cluster "$ECS_CLUSTER" --tasks "$TASK" --query 'tasks[0].containers[0].exitCode' --output text
|
|
575
|
+
aws logs tail /console --since 15m --format short --log-stream-name-prefix migrate | grep -E 'sealed again|previous secret opened'
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
The exit code is `0` and the line says `"left":0`: nothing is under the old secret any more. `resealed` is how many values were sealed again; `unopened`, where it is not `0`, is how many were already lost before this, under a secret from an earlier time, which the person is told with their kinds (`kinds` in the line) so that their holders set them again. An exit code of `1` with `left` above `0` means a task of the old definition was still running: wait for the rollout to end and run the step again. An exit code of `78` means the task was not given the two secrets: step 1's lines are missing from `deploy/migrate.task.json`. Where a second line follows on the step's first run, `the previous secret opened no value`, the old secret was not given as it was, whatever `left` says: nothing was changed, step 3 waits, and the person is told that `AUTH_SECRET_PREVIOUS` must hold exactly the old value, given in the same form the old one was (here a parameter, copied from the old one as step 1 copies it), before it is put right and the step run again.
|
|
579
|
+
|
|
580
|
+
**3. The old one taken out.** Only after `"left":0`: the `AUTH_SECRET_PREVIOUS` line out of every task definition, commit, push, the run watched to green. Then, on the person's word, the parameter deleted (`aws ssm delete-parameter --name /console/AUTH_SECRET_PREVIOUS`) and the secrets file deleted again. The record's line, with the date.
|
|
581
|
+
|
|
582
|
+
Where the secret leaked to someone who may hold a copy of the database too, the tokens it sealed are made anew at their sources as well, each by whoever holds it: a pack token at the SkillCDN deployment, a plugin's credential at its service. The person is told this at the plan.
|
|
583
|
+
|
|
547
584
|
## Removing
|
|
548
585
|
|
|
549
586
|
Only on request, each step confirmed, in this order, after a last snapshot of the database: the services (`aws ecs update-service --desired-count 0`, then `delete-service`), the cluster; the hostname (`DELETE /zones/<zone>/dns_records/<id>`), the rules (`DELETE /zones/<zone>/rulesets/<ruleset>/rules/<rule>`, the two ids of the record; a zone-wide always-HTTPS the run turned on is left as it is, since the zone may have come to rely on it) and the tunnel (`DELETE /accounts/<account>/cfd_tunnel/<id>`, after `.../connections` is empty); the database (`modify-db-instance --no-deletion-protection`, then `delete-db-instance --final-db-snapshot-identifier console-final-<date>`); the bucket, emptied first (`aws s3 rm s3://<bucket> --recursive`, then `delete-bucket`); the parameters; the roles' policies and the roles; the log group; the image repository (`--force`); the security groups; the budget. The deployment repository stays, with the record of what was removed and the snapshot's name.
|
|
@@ -5,11 +5,12 @@ A deployment is changed with the same skill, from phase 2: the plan names only w
|
|
|
5
5
|
| What changes | What it takes |
|
|
6
6
|
|---|---|
|
|
7
7
|
| A new version of the console | The next release tag's commit as `CONSOLE_REF` in `deploy/console.env`, found as the Inputs say under "The console's version"; `console-ui/`, where there is one, moved to the same version of the package, so that the pages and the server stay one release; a push, which builds the image and rolls it, `migrate` first. |
|
|
8
|
-
| A plugin installed, updated or removed | The package named in `plugins/package.json` at an exact version or a tag of a git host, and the lockfile written beside it: `cd plugins && npm install --save-exact --package-lock-only --ignore-scripts <package>@<version>` (`npm uninstall --package-lock-only <package>` to remove), as [deploy/README.md "Plugins in the image"](/deploy/README.md#plugins-in-the-image) says; a push, which builds the image with the plugin installed and rolls it, `migrate` first. Then the administrator enables it on the console's settings page, consenting to what it asks, makes or chooses its board project and grants its roles ([planning-the-board](/skills/planning-the-board/references/setting-up.md)); a plugin with `storage:sql` needs the database user to hold `CREATEROLE
|
|
8
|
+
| A plugin installed, updated or removed | The package named in `plugins/package.json` at an exact version or a tag of a git host, and the lockfile written beside it: `cd plugins && npm install --save-exact --package-lock-only --ignore-scripts <package>@<version>` (`npm uninstall --package-lock-only <package>` to remove), as [deploy/README.md "Plugins in the image"](/deploy/README.md#plugins-in-the-image) says; a push, which builds the image with the plugin installed and rolls it, `migrate` first. Then the administrator enables it on the console's settings page, consenting to what it asks, makes or chooses its board project and grants its roles ([planning-the-board](/skills/planning-the-board/references/setting-up.md)); a plugin with `storage:sql` needs the database user to hold `CREATEROLE` and to own the database, as the master user does. The record names the plugin and its version. What a removed plugin stored stays until an administrator purges it. |
|
|
9
9
|
| A new connector | `CLOUDFLARED_VERSION` in `deploy/console.env`, the connector's newest release, which `gh api repos/cloudflare/cloudflared/releases/latest --jq .tag_name` prints; a push. |
|
|
10
10
|
| The next size | The numbers of the task definitions set to the next size's (sizing.md "The sizes"), `API_COUNT` and `WORKER_COUNT` in `deploy/console.env`; to `large`, `deploy/worker.task.json` written as resources.md gives it and `WORKER_IN_PROCESS` dropped from the api task; the database's class changed with one command, when nobody works (sizing.md "Growing"); the estimate of the new size at the plan; a push. |
|
|
11
11
|
| A person let in or taken out | With an organization at GitHub, in the organization, which the console reads on its own; otherwise by an administrator, on the People page or with `console person add <login>` and `console person deactivate <login>`; no push, since nothing of the deployment changes. |
|
|
12
|
-
| A secret rotated | The new value read from a secrets file of the same shape, as in phase 3, never from the chat; the parameter overwritten with the skill's script and the service rolled, so that the tasks start with it (resources.md "Phase 8: the record", "A secret rotated"); the file deleted again on the person's word; the record's line "a secret rotated", with the date. `AUTH_SECRET` is not rotated this way
|
|
12
|
+
| A secret rotated | The new value read from a secrets file of the same shape, as in phase 3, never from the chat; the parameter overwritten with the skill's script and the service rolled, so that the tasks start with it (resources.md "Phase 8: the record", "A secret rotated"); the file deleted again on the person's word; the record's line "a secret rotated", with the date. `AUTH_SECRET` is not rotated this way, since a new value alone opens nothing the console sealed: it has the row below. |
|
|
13
|
+
| The console's own secret replaced (`AUTH_SECRET`) | Three steps, each named in the plan, and nothing the console sealed is lost: the pack tokens, the plugins' secret settings and every value of an agent account's store stay, and nobody is signed out ([deploy/README.md](/deploy/README.md#rotating-the-secret)). The new secret rolled out beside the old one; the console's `migrate reseal` run once, whose answer says that nothing is left under the old one; the old one taken out, and its parameter deleted on the person's word (resources.md "The console's own secret replaced"). Two pushes, each a deployment. The record's line "the console's secret replaced", with the date. |
|
|
13
14
|
| A console shared with outside teams or customers, each in projects of their own | The settings of [deploy/README.md "A shared console"](/deploy/README.md#a-shared-console): who sees whom, the bytes a project's files may hold together, tokens that end; as lines of the task definitions, with a push, or on the Settings page, with none. |
|
|
14
15
|
| The console paused | Both services at zero tasks and the database stopped, which pauses the deployment at the cost of storage alone, for seven days at most, after which the database starts itself (sizing.md "Growing", "Fewer people"); the reverse resumes; the record says since when. |
|
|
15
16
|
| The console removed | A run of its own, asked for and confirmed resource by resource (hard rule 7), as resources.md "Removing" says: a last snapshot of the database first, and the deployment repository kept, with the record of what was removed. |
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: keeping-a-desk
|
|
3
|
+
description: "Shapes a member's desk, their own repository, to what they ask to keep there and to see: what is kept goes under records/ in a shape chosen for it, what is shown is a page of their own under web/, built from the console's package and served from their machine, and the desk's AGENTS.md says both in a line each. Use when a person says 'keep what I make here', 'record this on my desk', 'I want to see that on my desk', 'add a page for it', 'what can I do with my desk?', and after console desk, whose last line names this skill. The repository itself, its remote and its first push are set up by a skill of the organization's pack; a page of the organization's console is building-a-console; a task of the board is working-the-board. Nothing is spent, and nothing leaves the desk but its own push."
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: A shell with git and the console command (npm install -g @skillcdn/console, Node.js 24 or newer), and an agent that reads and writes files. For pages, npm; a browser the agent can drive is optional. The agent never sees a token.
|
|
6
|
+
metadata:
|
|
7
|
+
author: skillcdn
|
|
8
|
+
version: "1.4"
|
|
9
|
+
skillcdn:
|
|
10
|
+
translations:
|
|
11
|
+
ko:
|
|
12
|
+
title: 데스크 가꾸기
|
|
13
|
+
description: "구성원 자신의 레포인 데스크를, 거기에 남기고 싶은 것과 보고 싶은 것에 맞춰 만듭니다. 남길 것은 그에 맞는 모양으로 records/ 아래에 두고, 볼 것은 콘솔 패키지로 만들어 내 PC에서 띄우는 나만의 페이지로 web/ 아래에 두며, 데스크의 AGENTS.md가 그 둘을 한 줄씩 말합니다. '내가 만든 걸 여기에 남겨 줘', '이거 데스크에 기록해 줘', '그걸 데스크에서 보고 싶어', '페이지 하나 추가해 줘', '데스크로 뭘 할 수 있어?'라고 하거나, console desk의 마지막 줄이 이 스킬을 가리킬 때 쓰세요. 레포와 원격, 첫 푸시는 조직 팩의 스킬이 하고, 조직 콘솔의 페이지는 building-a-console, 보드의 작업은 working-the-board입니다. 비용은 들지 않고, 데스크 밖으로 나가는 것은 데스크 자신의 푸시뿐입니다."
|
|
14
|
+
---
|
|
15
|
+
# Keeping a desk
|
|
16
|
+
|
|
17
|
+
A desk is a member's own repository, a person's or an agent account's, at their own git account, private and wholly theirs. It is given its least, its instructions and a structure ([ADR-0122](/docs/adr/0122-a-desk-is-given-its-least-and-grown-by-what-its-member-asks.md)): what it keeps and what it shows is whatever its member asks for. What the member says goes in; the desk shaped to it comes out, with a line in its `AGENTS.md` for each thing it now keeps or shows, checked, committed and pushed. Nothing is made that was not asked for: no kind of record, no page, no folder.
|
|
18
|
+
|
|
19
|
+
## The structure
|
|
20
|
+
|
|
21
|
+
Every desk is these four, and nothing of the last three is there until it is used:
|
|
22
|
+
|
|
23
|
+
| Place | What it is | Who writes it |
|
|
24
|
+
|---|---|---|
|
|
25
|
+
| `AGENTS.md` | The instructions of whichever agent works in the desk; under "This desk", what the desk keeps and shows, a line each, in the member's words | `console desk` first, then the member and their agent |
|
|
26
|
+
| `records/` | What the member keeps: plain files in the shape that fits the thing, JSON an agent writes and the files themselves | The agent, as the member asks |
|
|
27
|
+
| `web/` | The member's pages: a console of their own, built from `@skillcdn/console` and served from their machine | `console desk . --web` writes its shell, one empty page, for a person and an agent account alike |
|
|
28
|
+
| `work/` | Checkouts of projects' repositories, each under its own agreement; the desk ignores it | `git clone` |
|
|
29
|
+
|
|
30
|
+
A session begun in a desk works from `AGENTS.md` and what it points to. This skill is read when something is to be kept or shown that the desk does not keep or show yet, and not for one more entry in a shape the desk already has.
|
|
31
|
+
|
|
32
|
+
## How the person is involved
|
|
33
|
+
|
|
34
|
+
- **Questions:** one message, for what the request leaves open: "What do you want to keep here, and what do you want to see of it?" Of a thing to keep: what they want to find again of each one, and what becomes of one afterwards, if anything. Of a thing to see: what a glance at the page should tell them. A member who does not know yet is told the structure in three lines, and nothing is made.
|
|
35
|
+
- **Checkpoints:** the plan, before a file is written: what is kept, where, with one entry as it will be written; what the page shows, from its top down; the line `AGENTS.md` gains. One short message; "OK", in their language, continues. Then the page, at its address with the server left up, for them to look at: "is this what you wanted to see?". The agent's own look does not stand in for theirs.
|
|
36
|
+
- **Go-ahead:** told to go ahead alone, the plan is reported instead of approved; the checks of phase 6 are never skipped.
|
|
37
|
+
- **Changes mid-run:** a shape that changes after things are kept carries them over in the same change, and its line in `AGENTS.md` is written again; a page is changed where it stands, never begun again beside.
|
|
38
|
+
- **An agent account** shapes its own desk: nobody is at its terminal, so it chooses the shape from what its work makes, says it in its `AGENTS.md`, and asks its manager, as a decision, only what is the manager's to choose.
|
|
39
|
+
- **Language:** what the member reads, the questions, the plan, a page's words, a title or a label in a record, is in the language `AGENTS.md` names, and so may be the line `AGENTS.md` gains and a folder's `README.md`; a key and a file's name stay in English.
|
|
40
|
+
|
|
41
|
+
## Requirements
|
|
42
|
+
|
|
43
|
+
| Need | How | When missing |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| The desk is a repository, with a private remote | `git status` and `git remote -v` in the desk | It is set up first, by the skill for that in the organization's pack: `console skills --search "desk setup" --limit 5`. Where the pack has none: `git init`, a private repository at the member's own git account, the first push, each on their word |
|
|
46
|
+
| For pages: Node.js 24 or newer with npm, and the `console` command signed in | `node --version`; `console whoami` says as whom | Say so, and keep what is to be kept: records need neither. Never look for a token |
|
|
47
|
+
|
|
48
|
+
## Workflow
|
|
49
|
+
|
|
50
|
+
Each phase ends with one line to the member; only phase 2 and the member's look at the page in phase 4 stop for them.
|
|
51
|
+
|
|
52
|
+
### Phase 1: Read the desk
|
|
53
|
+
|
|
54
|
+
`AGENTS.md`, "This desk": what the desk keeps and shows now. Then `records/` and `web/` as they are. What is there is kept: a shape is added to, a page is added to, and neither is begun again beside the one that exists.
|
|
55
|
+
|
|
56
|
+
### Phase 2: Ask, and plan
|
|
57
|
+
|
|
58
|
+
Ask what the request leaves open, then show the plan of "How the person is involved". Plan the least that gives the member what they said: one kind kept in one folder, one page for what they asked to see. A wish to keep something is no wish to see it, and a page is planned only where they asked for one.
|
|
59
|
+
|
|
60
|
+
### Phase 3: Keep
|
|
61
|
+
|
|
62
|
+
Choose the shape from what the member wants to find again, not from a form:
|
|
63
|
+
|
|
64
|
+
- **One folder under `records/` for one kind of thing**, named by a key: lowercase letters, digits and hyphens.
|
|
65
|
+
- **JSON an agent writes with its file tools.** A list of entries, an object each: an `id` that never changes, what the member wants to find again as fields, a day written `2026-11-15`, an address that begins with `https://`, a path to each file of its own. Nothing is generated, and git shows what changed.
|
|
66
|
+
- **The shape, said once,** in a `README.md` of that folder: each field, what is needed, one entry as an example. The next session writes the same from it, so it is written before the first entry.
|
|
67
|
+
- **The files themselves** go in a `files/` folder there, of any kind and size, by names with no part that begins with a full stop; a kind that is large is tracked with git LFS before the first is added (`git lfs track`).
|
|
68
|
+
- **Text is text.** What a person wrote is kept and shown as text, never as HTML.
|
|
69
|
+
- **A set of things made, with where each was used and how it did by day,** is a shape the package already has, with a check and a ready page: [collections.md](collections.md). Take it where the member asks for exactly that, and only then.
|
|
70
|
+
|
|
71
|
+
### Phase 4: Show
|
|
72
|
+
|
|
73
|
+
Only where the member asked to see something. Paths below are under the desk's `web/`, and `<package>/` is `node_modules/@skillcdn/console/` there, whose `README.md` is [the package's](/packages/console/README.md).
|
|
74
|
+
|
|
75
|
+
1. **The shell.** `console desk . --web`, run in the desk, writes `web/` where it holds nothing: one empty page of the member's own, on the version of the package the command is. `src/main.tsx` mounts `page` from `src/page.tsx` beside it; the page's key is `mine`, its address `/pages/mine`, and `/` opens on it. Then `npm install` and `npm run build`, which says nothing of its own where it went well and leaves `dist/index.html`; `README.md` says how the pages are built, served and stopped.
|
|
76
|
+
2. **A page** is one entry of the `pages` handed to `createConsole` in `src/main.tsx`: a key, which is its address (`/pages/<key>`), a label, which is its tab, and a function that renders it. What the member asks to see first goes on the empty page; another page is another entry. What the function is given: `<package>/README.md`, "Pages of your own"; what the readers of a collection answer and what the small parts take: the same file, "A desk's pages". Those two sections are read before the page is written, and the package's types are not dug through. The file is long, some 70,000 characters, and the rest of it is not about a desk: find the headings first, `grep -n "^### " <package>/README.md`, and read from each of the two to the heading after it, not the file whole.
|
|
77
|
+
3. **What a page reads.** The desk's own files, with `fetch` at `/records/<path>`, each read when it is asked for; and the board, as the member, through the client the page is given. Nothing of another origin, and no token. `console serve dist --records ../records` serves both: JSON, pictures, video, sound and PDF are shown in place, anything else is a download ([records.md](/docs/specs/records.md#serving)).
|
|
78
|
+
4. **What a page is built from:** the console's parts, each named with the component that renders it in `<package>/src/styles/README.md`, "The catalogue" ([in the repository](/packages/console/src/styles/README.md)). A page places parts and writes no colour, border or type of its own, so that it looks as the console does. For figures there are the charts, each exported from `@skillcdn/console`, with their props in `<package>/README.md`, "Charts":
|
|
79
|
+
- `Stat`, and `Stats` for a row of them: a figure with its label and, where given, its change and a sparkline.
|
|
80
|
+
- `BarList`: a ranking or a comparison, each a label, a bar and a value.
|
|
81
|
+
- `Chart`: columns or lines over time (`kind: "columns" | "line"`), one to a few series.
|
|
82
|
+
- `Sparkline`: one figure over time, as a small line.
|
|
83
|
+
- `ShareBar`: the parts of a whole in one bar, with its legend.
|
|
84
|
+
- `Legend`: the series by their colours.
|
|
85
|
+
- `FigureTable`: rows by columns, the numbers aligned.
|
|
86
|
+
|
|
87
|
+
A view of figures is laid out in this order: the few numbers that matter first (`Stats`), then one chart, then what breaks them down (`BarList`). No figure stands twice at one level: a chart carries its own figures as a table for a reader who cannot see it, so a `FigureTable` beside it is for figures the chart does not show. Where there is nothing yet, the view says in a sentence what would fill it (`EmptyState`) and draws no empty axis. The ready views below are laid out so.
|
|
88
|
+
5. **What is ready,** for a member who wants exactly that, in `<package>/README.md`, "A desk's pages". Each shows the collections of [collections.md](collections.md) or the member's own work on the board:
|
|
89
|
+
- `deskPage()`: all of the below as one page, one more entry of `pages`, at `/pages/desk` (`DESK_PAGE_KEY`).
|
|
90
|
+
- `DeskRecords`: the collections, read from `/records/` and shown whole, composed of the next four; it opens on the list of collections, and where an item was used is on the item's own view, so a member who asked to see that at a glance wants a page of their own.
|
|
91
|
+
- `DeskCollections`: the collections, each with its items counted by status.
|
|
92
|
+
- `DeskCollectionView`: a collection's items, narrowed by status.
|
|
93
|
+
- `DeskItemView`: an item with its preview, how it did as figures, where it was used, its files, and its figures by day.
|
|
94
|
+
- `DeskCollectionResults`: each metric and each ratio in all, then one metric the member picks: by week as a chart, and the items that did best by it.
|
|
95
|
+
- `DeskStanding`: the decisions that wait, the open runs and the open tasks.
|
|
96
|
+
- `DeskFiguresView`: how many tasks were done and how the runs ended, then what was done by week, by project and by category.
|
|
97
|
+
- `DeskArchive`: the closed tasks and the ended runs, found by words.
|
|
98
|
+
- `readDeskRecords`: reads the collections for a page of one's own, every file bounded and parsed.
|
|
99
|
+
6. **Build, serve, show.** `npm run build`, which went well where it ended in 0 and `dist/index.html` is there, not by what it printed; then `npm run serve` and `http://127.0.0.1:11197/`: the page answers, and `/api/v1/me` there names the member. The page is checked with what the desk keeps, an empty state where it keeps nothing yet: no sample is made to fill it. Then the member is given the address, with the server left up, and asked whether it is what they wanted to see; the run stops there for them, and phases 5 and 6 wait for their answer, so that what is written down and pushed is what they saw. The server is the agent's own to stop, by ending the process it started, once they have looked or said to: say that it was stopped, and how the pages are started again. Whether a server is up is asked of its address before it is said, since a session that comes back may no longer hold the process it started. A look at an empty state is a look at a sentence: once the first entry is kept, the member is offered the look again, at the page with it.
|
|
100
|
+
|
|
101
|
+
Where a page shows what someone else wrote, the hard rules of [building-a-console](/skills/building-a-console/SKILL.md) hold for it.
|
|
102
|
+
|
|
103
|
+
### Phase 5: Write it down
|
|
104
|
+
|
|
105
|
+
`AGENTS.md`, "This desk": one line for each thing the desk now keeps or shows, in the member's words. For what is kept: what, in which folder, and when a new entry is written. For a page: what it shows, and how it is opened; and `web/README.md`, where it still says the page is empty, says what the page shows. A later session records and shows from that line and the folder's `README.md` alone.
|
|
106
|
+
|
|
107
|
+
### Phase 6: Check, commit and push
|
|
108
|
+
|
|
109
|
+
- Every JSON file written is read back, and parses.
|
|
110
|
+
- Collections: `console desk check`, which says each problem with its file and signs in nowhere.
|
|
111
|
+
- Pages: `npm run build` ends in 0 and `web/dist/index.html` is there, written by it.
|
|
112
|
+
- Nothing secret is staged: `git status`, read in a step of its own before the commit. `web/node_modules` and `web/dist` are ignored, by a line added to the desk's `.gitignore` where it has none for them; the lockfile of `web/` is committed.
|
|
113
|
+
- Commit and push, without asking: the desk is the member's own, and its `AGENTS.md` says so. Where the host refuses a git command (it may keep an agent from writing under `.git`), the checks above are run all the same, and the member is told in the chat what is not committed, with the commands left to run written out in order.
|
|
114
|
+
|
|
115
|
+
Then tell the member, in one message: what is kept and where, with one entry; the page's address, and how it is started and stopped; what was left out.
|
|
116
|
+
|
|
117
|
+
## Verdicts
|
|
118
|
+
|
|
119
|
+
| Result | Verdict |
|
|
120
|
+
|---|---|
|
|
121
|
+
| What the member asked to keep is under `records/` in a shape its `README.md` says; what they asked to see is on a page that builds and shows it; `AGENTS.md` has its line for each; the checks of phase 6 passed; pushed | Done |
|
|
122
|
+
| A page could not be looked at with no browser, or `npm` is not there | Done, with what was not seen named |
|
|
123
|
+
| Something was made that the member did not ask for: a kind of record, a page, a folder | Taken out again, and said so |
|
|
124
|
+
| A secret in a file, a record or a commit | Stopped: the member is told, and it is rotated, not only deleted |
|
|
125
|
+
|
|
126
|
+
## What stays true of every desk
|
|
127
|
+
|
|
128
|
+
- **Private.** A desk's repository is private, at the member's own git account.
|
|
129
|
+
- **No secret,** in a file, a record or a commit: no token, key or password.
|
|
130
|
+
- **The pages never see the token.** `console serve` carries it, on the loopback alone, and no page is served anywhere else.
|
|
131
|
+
- **The board is the organization's.** What is done in a desk is its member's own, and is a task only where they put it on the board. Tying a record to a task, or reading the board from a page, is free: nothing asks for it and nothing forbids it. What an organization wants kept out of its members' desks, its rules say (`console rules`).
|
|
132
|
+
- **`/records/` is the files' address,** and no page lives under it.
|
|
133
|
+
- **Nothing is made unasked.** A desk says what it is for by what its member put there.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Collections: things made, where each was used and how it did
|
|
2
|
+
|
|
3
|
+
One shape a desk may take, read when its member wants a set of things they made kept with, for each, whether and where it was used and how it did by day. It is not the shape of a desk: for anything else, choose a shape for that thing ([SKILL.md](SKILL.md), phase 3). The package has this one whole, so nothing of it is built: its schemas ([records.md](/docs/specs/records.md)), `console desk check`, which says each problem of the files with its file and signs in nowhere, and a ready page, `deskPage()`. Which collections a desk keeps is said in the desk's `AGENTS.md`. After writing, run `console desk check` in the desk.
|
|
4
|
+
|
|
5
|
+
## The files
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
records/
|
|
9
|
+
index.json the collections
|
|
10
|
+
<key>/collection.json what the collection is, and how its items are read
|
|
11
|
+
<key>/items.json what was made
|
|
12
|
+
<key>/uses.json where an item was used (optional)
|
|
13
|
+
<key>/metrics.json how an item did, by day (optional)
|
|
14
|
+
<key>/files/ the files themselves
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
A key is lowercase letters, digits and hyphens. A day is written `2026-11-15`. An address begins with `https://`. Everything else is text, and is shown as text.
|
|
18
|
+
|
|
19
|
+
`index.json`, the collections in the order they are shown:
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{ "collections": [{ "key": "ad-creatives", "title": "Ad creatives" }] }
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`ad-creatives/collection.json`. Only `title` is needed; the rest says how an item is read:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"title": "Ad creatives",
|
|
30
|
+
"description": "What was made for the ads, and how each did.",
|
|
31
|
+
"statuses": [
|
|
32
|
+
{ "key": "used", "label": "Used" },
|
|
33
|
+
{ "key": "unused", "label": "Not used" }
|
|
34
|
+
],
|
|
35
|
+
"fields": [{ "key": "format", "label": "Format", "kind": "text" }],
|
|
36
|
+
"metrics": [
|
|
37
|
+
{ "key": "impressions", "label": "Impressions", "unit": "count" },
|
|
38
|
+
{ "key": "clicks", "label": "Clicks", "unit": "count" },
|
|
39
|
+
{ "key": "spend", "label": "Spend", "unit": "currency", "currency": "KRW" }
|
|
40
|
+
],
|
|
41
|
+
"ratios": [
|
|
42
|
+
{ "key": "ctr", "label": "Clicks per impression", "of": "clicks", "per": "impressions", "as": "percent" }
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
A field's `kind` is `text`, `number`, `day` or `link`. A metric's `unit` is `count`, `currency`, `percent` or `seconds`. Each state an item can be in is a status, the one it begins in too. A rate of two metrics, such as clicks per impression, is a ratio: the total of `of` for each of `per`, shown `as` `percent` or `number`; a rate that is no ratio is shown nowhere.
|
|
48
|
+
|
|
49
|
+
`ad-creatives/items.json`, a list. `id`, `title` and `madeOn` are needed; an `id` is letters, digits and hyphens, and never changes:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
[
|
|
53
|
+
{
|
|
54
|
+
"id": "c-001",
|
|
55
|
+
"title": "Morning commute, 15 seconds",
|
|
56
|
+
"madeOn": "2026-11-03",
|
|
57
|
+
"status": "used",
|
|
58
|
+
"preview": "files/c-001.png",
|
|
59
|
+
"files": [{ "label": "The video", "path": "files/c-001.mp4" }],
|
|
60
|
+
"links": [{ "label": "Where it runs", "url": "https://ads.example/c-001" }],
|
|
61
|
+
"task": { "project": "ads", "number": 12 },
|
|
62
|
+
"fields": { "format": "9:16" },
|
|
63
|
+
"note": "The first cut."
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
`status` is one of the collection's, and where the collection has statuses every item carries one. `preview` is a picture (png, jpg, jpeg, webp, gif, avif, svg). `task` is a task of the board, where the item is tied to one.
|
|
69
|
+
|
|
70
|
+
`ad-creatives/uses.json`, a list: where an item was used, and when.
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
[{ "item": "c-001", "on": "2026-11-06", "where": "The November campaign, feed" }]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
`ad-creatives/metrics.json`, a list: a row for an item and a day, with a number for each metric that day has.
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
[{ "item": "c-001", "on": "2026-11-06", "values": { "impressions": 1200, "clicks": 36, "spend": 54000 } }]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## The files themselves
|
|
83
|
+
|
|
84
|
+
`files/` of a collection holds what was made, of any kind and size, and an item names each by its path from the collection: `files/c-001.mp4`. No part of a path begins with a full stop. A large file goes in with git LFS: track its kind (`git lfs track`) before adding it.
|
|
85
|
+
|
|
86
|
+
## Bounds
|
|
87
|
+
|
|
88
|
+
At most 100 collections; in a collection 5,000 items, 20,000 uses and 50,000 rows of figures; 64 characters in a key or an id, 200 in a title, a label or `where`, 2,000 in a description, a note or a field that is text; 8 MiB in a JSON file. A file under `files/` has no bound.
|
|
89
|
+
|
|
90
|
+
## What the check says
|
|
91
|
+
|
|
92
|
+
A problem, with its file, for what does not read: a file that is no JSON or not in this shape, an item a use or a row of figures names that is not there, a preview or a file that is not there, a JSON file over its bound. A note, and no problem, for a file git LFS has not fetched on this machine, a use or a figure dated before its item was made, and an item with no status where its collection names some. With any problem it ends in 1; where a desk keeps no collection it says so and ends in 0, and what else lies under `records/` is not its to read.
|
|
93
|
+
|
|
94
|
+
## What never goes in
|
|
95
|
+
|
|
96
|
+
A secret: a token, a key, a password.
|
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: Needs a shell with the console command on the PATH (npm install -g @skillcdn/console, Node.js 24 or newer), signed in by a person who works in the project, owns it, or administers the workspace, as the step needs. Nothing else; the agent never sees a token.
|
|
6
6
|
metadata:
|
|
7
7
|
author: skillcdn
|
|
8
|
-
version: "1.
|
|
8
|
+
version: "1.9"
|
|
9
9
|
skillcdn:
|
|
10
10
|
translations:
|
|
11
11
|
ko:
|
|
@@ -14,30 +14,29 @@ skillcdn:
|
|
|
14
14
|
---
|
|
15
15
|
# Planning and setting up the board
|
|
16
16
|
|
|
17
|
-
What a person says goes in: work to put on the board, a plan for a week or a milestone, a project to set up, a member to add, a category, the rules. What comes out is the board changed as they said, and the numbers and the ids the commands printed, told back to them.
|
|
17
|
+
What a person says goes in: work to put on the board, a plan for a week or a milestone, a project to set up, a member to add, a category, the rules. What comes out is the board changed as they said, and the numbers and the ids the commands printed, told back to them. Everything is done as the person may, and no further. Writing and setting up need no run.
|
|
18
18
|
|
|
19
19
|
## How the person is involved
|
|
20
20
|
|
|
21
21
|
- **Questions:** only what the request and the board leave open, in one message before anything is read or written: the project, when the directory names none and the person has several ("Which project? `console projects` lists them by key."); a time the plan cannot turn into a day ("Which day is the launch?"; a week or a day named needs no question); a person named whom the project's members do not resolve to one login ("Which login is Kim? `console members` lists them."). Nothing else: the category, the goal, the parent, the state and the days are derived as the Inputs say, shown, and changed on request.
|
|
22
22
|
- **Checkpoints:** the plan before it is written, whenever more than one task is written, or a day, a category, a state or a worker was derived rather than said, or a goal is set or moved, or tasks that exist are changed: one message with the table of phase 2, the derived cells marked, and "OK" writes it. One task with everything said, a member, a category: written at once and told.
|
|
23
23
|
- **Go-ahead:** when the person says to go ahead alone, the plan is written at once and reported as the same table, with the numbers. The rules of a board are written only when the person asked for exactly that, go-ahead or not.
|
|
24
|
-
- **Changes mid-run:** a task written wrong is changed (`console task edit`), never written twice; one that should not exist is put away (`console task archive`)
|
|
24
|
+
- **Changes mid-run:** a task written wrong is changed (`console task edit`), never written twice; one that should not exist is put away (`console task archive`); a plan changed in the message is rewritten from that point and shown again.
|
|
25
25
|
|
|
26
26
|
## Requirements
|
|
27
27
|
|
|
28
28
|
| Need | How | When missing |
|
|
29
29
|
|---|---|---|
|
|
30
|
-
| The `console` command, signed in as the person | `console whoami` says as whom, at which console and in which project this directory works. `console projects` says what the person is in each project; `console people` and `console members` say who is who, by login. | Stop and tell the person: `npm install -g @skillcdn/console`, then `console login --url <the console's address>`, which shows an address and a code they approve on the console's own pages. Never look for a token. Refused because the person is out (`auth.deactivated`, `auth.not_admitted
|
|
31
|
-
| The standing the step needs: what the person is in the project or the workspace | A task written, changed or put away: anyone who works in the project. A goal, the project's settings, its mark, its members, its rules, its pack token: an owner of the project (an administrator owns every project). A project made, the workspace's categories, people and settings, its rules and its pack token: an administrator
|
|
32
|
-
| The command's own words | `console help <command>` says every form and flag, the limits (a title's length, how many tasks a project holds) and the refusals by code, read when the command is about to be used. | They are the reference at run time; this skill says what to write, and in what order. |
|
|
30
|
+
| The `console` command, signed in as the person | `console whoami` says as whom, at which console and in which project this directory works. `console projects` says what the person is in each project; `console people` and `console members` say who is who, by login. | Stop and tell the person: `npm install -g @skillcdn/console`, then `console login --url <the console's address>`, which shows an address and a code they approve on the console's own pages. Never look for a token. Refused because the person is out (`auth.deactivated`, `auth.not_admitted`), nothing is written, and the person is told. A project named here that the console does not show this person (`project.not_found`) is said with what named it, as `console whoami` prints, and nothing is written. |
|
|
31
|
+
| The standing the step needs: what the person is in the project or the workspace | A task written, changed or put away: anyone who works in the project. A goal, the project's settings, its mark, its members, its rules, its pack token: an owner of the project (an administrator owns every project). A project made, the workspace's categories, people and settings, its rules and its pack token: an administrator. | What the person may not, the console refuses (`auth.forbidden`): the step is told back to them with who may do it, and never worked around. |
|
|
33
32
|
|
|
34
|
-
The board's words, task, goal, category, run, decision, page and
|
|
33
|
+
The board's words, task, state, goal, category, run, decision, page, project, binding and desk, are said once in [terms.md](/skills/working-the-board/references/terms.md). A link from the root (`/docs/...`, `/skills/...`) is a file of the console's repository: in the package on this machine it is under the folder that holds `skills`, which `console whoami` prints.
|
|
35
34
|
|
|
36
35
|
## Inputs
|
|
37
36
|
|
|
38
37
|
| Input | Source |
|
|
39
38
|
|---|---|
|
|
40
|
-
| The project | The one the directory works in (`console whoami`),
|
|
39
|
+
| The project | The one the directory works in (`console whoami`); in a directory that names none, a desk or a new folder, `--project <key>` on every command, from what the person said or the question above. |
|
|
41
40
|
| The work, or the plan | What the person said, in chat or in a document they point to: the pieces of work, their time, who does what. One piece of work is one task; a milestone that several tasks reach is a goal; a task waits for another only when the person said so, and a list is not an order. |
|
|
42
41
|
| The board as it is | `console categories`, the keys a task is sorted by; `console goals`, the roadmap; `console tasks --open` and `console tasks --search <words>`, so that a task is not written twice and a parent is found by its title; `console workspace`, the day the week begins and the time zone; `console rules`, which may say how tasks are written here: the language, the folders of the pages, who decides what. |
|
|
43
42
|
| The people | `console members` for the project, `console people` for the workspace, by login, which `--worker`, `member` and `person` take. A name is matched against the members' logins and names: exactly one match is the login, shown at the checkpoint; none, or several, is the question above. A login is matched as typed, so a person the list hides (where who sees whom is narrowed) is still named by their login. |
|
|
@@ -54,15 +53,15 @@ Produces the **shape of the board**: the project, its categories, its goals, its
|
|
|
54
53
|
|
|
55
54
|
### Phase 2: Shape the plan
|
|
56
55
|
|
|
57
|
-
Produces the **plan**: one line per task, as a table the person reads at a glance (title, category, start and due day, priority, goal, parent, workers, state, with the derived cells marked), and the goals to set or move. A task is one piece of work that one agent or person finishes and hands in. Its title says what is to be done, in plain words that stand on their own, up to 200 characters: a noun the person gave ("the pricing table") takes the plainest verb that makes it work to do ("Make the pricing table"), shown at the checkpoint, and the scope stays theirs; what the title refers to (a milestone, a commit, a page) goes in the body, linked where it can be. The body is the work order for the agent that takes the task, in the shape of [a-task.md](references/a-task.md), holding only what the person said: what to make in their words, where and the milestones when they said them, and under "Ask" what they did not say, so that the agent asks on the board rather than guesses; what the rules say is read first goes under "Read first". A task that exists already, one open task whose title names the same piece of work, is changed in what the person said of it (its days, its workers), not written again. Stop for the checkpoint as "How the person is involved" says.
|
|
56
|
+
Produces the **plan**: one line per task, as a table the person reads at a glance (title, category, start and due day, priority, goal, parent, workers, state, with the derived cells marked), and the goals to set or move. A task is one piece of work that one agent or person finishes and hands in. Its title says what is to be done, in plain words that stand on their own, up to 200 characters: a noun the person gave ("the pricing table") takes the plainest verb that makes it work to do ("Make the pricing table"), shown at the checkpoint, and the scope stays theirs; what the title refers to (a milestone, a commit, a page) goes in the body, linked where it can be. The body is the work order for the agent that takes the task, in the shape of [a-task.md](references/a-task.md), holding only what the person said: what to make in their words, where, which names the repository in a project several repositories share, and the milestones when they said them, and under "Ask" what they did not say, so that the agent asks on the board rather than guesses; what the rules say is read first goes under "Read first". A task that exists already, one open task whose title names the same piece of work, is changed in what the person said of it (its days, its workers), not written again. Stop for the checkpoint as "How the person is involved" says.
|
|
58
57
|
|
|
59
58
|
### Phase 3: Write
|
|
60
59
|
|
|
61
|
-
Produces the **tasks and goals on the board**. A goal first, for an owner: `console goal new "<title>" [--body <markdown>] [--category <key>] [--starts <day>] [--due <day>]`, and `goal id:` is read from the line printed; a goal is changed with `console goal edit <id> [the same flags]`, `none` clearing a category or a day. Then each task: `console task new "<title>" --body <markdown>|--file <path> --state <state> [--priority <priority>] [--category <key>] [--goal <id>] [--starts <day>] [--due <day>] [--worker <login|me>]... [--parent <number|id>]`, `--state` given every time, since a task written without it is an `idea`, and a body longer than a line given with `--file` from a scratch file of the run. The number and the id are read from the lines printed (`Task #<n> written`, `task id:`)
|
|
60
|
+
Produces the **tasks and goals on the board**. A goal first, for an owner: `console goal new "<title>" [--body <markdown>] [--category <key>] [--starts <day>] [--due <day>]`, and `goal id:` is read from the line printed; a goal is changed with `console goal edit <id> [the same flags]`, `none` clearing a category or a day. Then each task: `console task new "<title>" --body <markdown>|--file <path> --state <state> [--priority <priority>] [--category <key>] [--goal <id>] [--starts <day>] [--due <day>] [--worker <login|me>]... [--parent <number|id>]`, `--state` given every time, since a task written without it is an `idea`, and a body longer than a line given with `--file` from a scratch file of the run. The number and the id are read from the lines printed (`Task #<n> written`, `task id:`); `--json` prints the whole answer for a script. A change is `console task edit <number> [the same flags]`, `none` clearing a field; a task that should not exist is put away, `console task archive <number>`, and `console task restore <number>` brings it back. What the console refuses, it names by a code and words: fixed, or told back. `task.invalid_worker` says the person may not work in the project: listing them is a step of phase 4, which the person asks for.
|
|
62
61
|
|
|
63
62
|
### Phase 4: Set up, when asked
|
|
64
63
|
|
|
65
|
-
Produces the **project and the workspace as asked**: a project made or changed, its mark, its members, the workspace's categories and people, an agent account made, its settings, the rules, a private pack connected, a plugin enabled with its board project, each with the command and the standing [setting-up.md](references/setting-up.md) gives it. A project's rules start from [project-rules.md](references/project-rules.md)
|
|
64
|
+
Produces the **project and the workspace as asked**: a project made or changed, its mark, its members, a repository's checkout bound to it, the workspace's categories and people, an agent account made, its settings, the rules, a private pack connected, a plugin enabled with its board project, each with the command and the standing [setting-up.md](references/setting-up.md) gives it. A project's rules start from [project-rules.md](references/project-rules.md). A plugin that puts decisions, tasks and pages on a board gets its project when an administrator enables it, made from the plugin's own defaults or chosen among those that exist (setting-up.md "A plugin's board project"); it is a project as any, its tasks planned here as any, and what the plugin writes there carries the plugin's name.
|
|
66
65
|
|
|
67
66
|
### Phase 5: Tell
|
|
68
67
|
|
|
@@ -80,17 +79,14 @@ Produces the **account**: the table of phase 2 as it stands on the board, with t
|
|
|
80
79
|
## Hard rules
|
|
81
80
|
|
|
82
81
|
- The plan is the person's: nothing on the board is changed that they did not ask for, and a task's days, category, goal and workers are set from their words by the rules of the Inputs, never from the agent's own view of what should come first.
|
|
83
|
-
- The board writes its moments itself: when a task was started and done is never typed. The state is set by hand only as the plan says (`idea`, `ready
|
|
82
|
+
- The board writes its moments itself: when a task was started and done is never typed. The state is set by hand only as the plan or a person's verdict says (`idea`, `ready`; `done` for work that passed its review or was done elsewhere; `dropped` for work given up), and never around a run: taking a task, finishing, failing and abandoning move it themselves.
|
|
84
83
|
- A number or an id is read from what the command printed, never assumed; a task whose number is not known is found with `console tasks --search <words>`, a goal's id with `console goals --search <words>`.
|
|
85
84
|
- Nothing is deleted: a task, a page and the rules are put away, and come back.
|
|
86
|
-
- A project is made by an administrator
|
|
87
|
-
-
|
|
85
|
+
- A project is made by an administrator, and a private one tells a member nothing of itself; a key does not change once made, so it is chosen with the person, and a key the console says is taken (`project.key_taken`) is not guessed around.
|
|
86
|
+
- What a board adds to the console's rules is the people's: written only when a person asked for exactly that, in the example's shape, and never to loosen what they ask of agents. The console's rules themselves are nobody's to edit.
|
|
88
87
|
- Never look for, read, print or send a token. A pack token is connected with a code the person approves at SkillCDN, or read from standard input, never an argument.
|
|
89
88
|
- What the console refuses goes back to the person, in their words, with who may do it: the console decides on every request, and the agent tries no other way.
|
|
90
89
|
|
|
91
90
|
## Beside this skill
|
|
92
91
|
|
|
93
|
-
|
|
94
|
-
- An example of a task written as a work order: [references/a-task.md](references/a-task.md).
|
|
95
|
-
- An example of a project's rules: [references/project-rules.md](references/project-rules.md).
|
|
96
|
-
- Working a task that is on the board: [working-the-board](/skills/working-the-board/SKILL.md).
|
|
92
|
+
Working a task that is on the board is [working-the-board](/skills/working-the-board/SKILL.md).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# An example of a task
|
|
2
2
|
|
|
3
|
-
What a person, or their agent for them, writes on the board for an agent to take: the title says what is to be done and stands on its own; the flags carry the plan; the body is the work order, written from a scratch file of the run. An invented organization, Acme, and its web app, whose member `kim` is named by login. This is the full shape, for a person who gave the whole work order; a task given as a title alone keeps the same headings and says under "Ask" what was not said.
|
|
3
|
+
What a person, or their agent for them, writes on the board for an agent to take: the title says what is to be done and stands on its own; the flags carry the plan, `--state ready` among them, since a task written without it is an idea; the body is the work order, written from a scratch file of the run. An invented organization, Acme, and its web app, whose member `kim` is named by login. This is the full shape, for a person who gave the whole work order; a task given as a title alone keeps the same headings and says under "Ask" what was not said.
|
|
4
4
|
|
|
5
5
|
~~~sh
|
|
6
6
|
console task new "Refuse an empty file in the import parser" \
|
|
7
|
-
--file task.md --category engineering --goal <the goal's id> --due +3 --worker kim
|
|
7
|
+
--file task.md --state ready --category engineering --goal <the goal's id> --due +3 --worker kim
|
|
8
8
|
~~~
|
|
9
9
|
|
|
10
10
|
`task.md`:
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
# An example of a project's rules
|
|
2
2
|
|
|
3
|
-
What an owner writes on a project's Settings page, or an agent writes with `console rules write --file <path>` when a person asked for exactly that: what
|
|
3
|
+
What an owner writes on a project's Settings page, or an agent writes with `console rules write --file <path>` when a person asked for exactly that: what differs in this project from the workspace's rules, and nothing else. Five things at most, a section only where the project has something to say: where its work lives, the skills to load first, its pages' folders, who decides what, and its language where it is another, which is the language of what people read on its board and never of a repository's own documents. An invented organization, Acme, whose project holds two repositories. What is long goes on a page the rules link to, and nothing secret goes in, since every agent reads them.
|
|
4
4
|
|
|
5
5
|
~~~markdown
|
|
6
6
|
# Rules of this project
|
|
7
7
|
|
|
8
|
-
Adds to the workspace's rules, for the agents at work here.
|
|
8
|
+
Adds to the workspace's rules, for the agents at work here: what differs in this project, and nothing else.
|
|
9
9
|
|
|
10
10
|
## Where the work lives
|
|
11
11
|
|
|
12
|
-
- The repository acme/web
|
|
13
|
-
- The
|
|
12
|
+
- The repository acme/web: the web app.
|
|
13
|
+
- The repository acme/site: the public site, built from `content/`.
|
|
14
|
+
- The design file, linked from the page `guides/design`: read only.
|
|
14
15
|
|
|
15
16
|
## Skills to load first
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
- `engineering/skills/working-in-web/SKILL.md`, for any task in the repository.
|
|
18
|
+
- `engineering/skills/working-in-web/SKILL.md`, for any task in acme/web.
|
|
20
19
|
- `marketing/skills/release-notes/SKILL.md`, for a task in the category marketing.
|
|
21
20
|
|
|
22
21
|
## The pages
|
|
23
22
|
|
|
24
|
-
- `guides/`: how a thing is set up or done. `guides/local-setup` first, every time.
|
|
25
|
-
- `notes/`: what was found; one page per topic, the date in the body, never in the path.
|
|
26
23
|
- `specs/`: what is being built, written by people. Agents read them and ask; never edit.
|
|
24
|
+
- `guides/local-setup` is read first, every time.
|
|
27
25
|
|
|
28
|
-
##
|
|
26
|
+
## Who decides what
|
|
29
27
|
|
|
30
|
-
-
|
|
31
|
-
- Ask: a new dependency; a change to the schema; anything a user would see differently than the spec says.
|
|
28
|
+
- A new dependency, a change to the schema, a change to a design: `kim`, as a decision.
|
|
32
29
|
|
|
33
|
-
##
|
|
30
|
+
## Language on the board
|
|
34
31
|
|
|
35
|
-
-
|
|
32
|
+
- Korean, for what people read on this project's board: reports, tasks, pages. A repository's own documents follow the repository.
|
|
36
33
|
~~~
|
|
34
|
+
|
|
35
|
+
What the example leaves out, since the workspace's rules or the repository say it: how a change is committed and pushed, which is each repository's own agreement; what is decided alone and what is asked; how to report. A project whose work lives in one repository, read in the workspace's language, with no skill to load first, may need the first section alone.
|