@skillcdn/console 0.4.7 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -14
- package/SKILLCDN.md +5 -3
- package/dist/agent-page.d.ts +44 -0
- package/dist/agent-page.d.ts.map +1 -0
- package/dist/agent-page.js +415 -0
- package/dist/agent-page.js.map +1 -0
- package/dist/agent-stream.d.ts +52 -0
- package/dist/agent-stream.d.ts.map +1 -0
- package/dist/agent-stream.js +155 -0
- package/dist/agent-stream.js.map +1 -0
- package/dist/api.d.ts +12 -6
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +11 -5
- package/dist/api.js.map +1 -1
- package/dist/avatar.d.ts +137 -0
- package/dist/avatar.d.ts.map +1 -0
- package/dist/avatar.js +1216 -0
- package/dist/avatar.js.map +1 -0
- package/dist/charts.d.ts +103 -0
- package/dist/charts.d.ts.map +1 -0
- package/dist/charts.js +182 -0
- package/dist/charts.js.map +1 -0
- package/dist/cli/cli.d.ts +39 -1
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +2424 -296
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/command-words.d.ts +20 -0
- package/dist/cli/command-words.d.ts.map +1 -0
- package/dist/cli/command-words.js +51 -0
- package/dist/cli/command-words.js.map +1 -0
- package/dist/cli/credentials.d.ts +59 -5
- package/dist/cli/credentials.d.ts.map +1 -1
- package/dist/cli/credentials.js +128 -16
- package/dist/cli/credentials.js.map +1 -1
- package/dist/cli/directory.d.ts +19 -4
- package/dist/cli/directory.d.ts.map +1 -1
- package/dist/cli/directory.js +16 -8
- package/dist/cli/directory.js.map +1 -1
- package/dist/cli/format.d.ts +91 -8
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +386 -57
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts +13 -4
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +202 -62
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/main.js +94 -0
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/pack.d.ts +69 -36
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +241 -188
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/plugin-check.d.ts +42 -0
- package/dist/cli/plugin-check.d.ts.map +1 -1
- package/dist/cli/plugin-check.js +221 -36
- package/dist/cli/plugin-check.js.map +1 -1
- package/dist/cli/plugin-cli.d.ts +6 -1
- package/dist/cli/plugin-cli.d.ts.map +1 -1
- package/dist/cli/plugin-cli.js +21 -4
- package/dist/cli/plugin-cli.js.map +1 -1
- package/dist/cli/plugin-main.js +1 -0
- package/dist/cli/plugin-main.js.map +1 -1
- package/dist/cli/runner-host.d.ts +36 -0
- package/dist/cli/runner-host.d.ts.map +1 -0
- package/dist/cli/runner-host.js +154 -0
- package/dist/cli/runner-host.js.map +1 -0
- package/dist/cli/serve.d.ts +33 -1
- package/dist/cli/serve.d.ts.map +1 -1
- package/dist/cli/serve.js +275 -6
- package/dist/cli/serve.js.map +1 -1
- package/dist/cli/setup-machine.d.ts +36 -0
- package/dist/cli/setup-machine.d.ts.map +1 -0
- package/dist/cli/setup-machine.js +109 -0
- package/dist/cli/setup-machine.js.map +1 -0
- package/dist/client.d.ts +189 -10
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +192 -57
- package/dist/client.js.map +1 -1
- package/dist/compat.d.ts +1 -1
- package/dist/compat.js +2 -2
- package/dist/components/agent-page.d.ts +384 -0
- package/dist/components/agent-page.d.ts.map +1 -0
- package/dist/components/agent-page.js +985 -0
- package/dist/components/agent-page.js.map +1 -0
- package/dist/components/agents.d.ts +102 -0
- package/dist/components/agents.d.ts.map +1 -0
- package/dist/components/agents.js +246 -0
- package/dist/components/agents.js.map +1 -0
- package/dist/components/calendar.d.ts +17 -17
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +7 -2
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/charts.d.ts +157 -0
- package/dist/components/charts.d.ts.map +1 -0
- package/dist/components/charts.js +182 -0
- package/dist/components/charts.js.map +1 -0
- package/dist/components/comments.d.ts +2 -0
- package/dist/components/comments.d.ts.map +1 -1
- package/dist/components/comments.js +1 -1
- package/dist/components/comments.js.map +1 -1
- package/dist/components/connect.d.ts.map +1 -1
- package/dist/components/connect.js +7 -2
- package/dist/components/connect.js.map +1 -1
- package/dist/components/decision-form.d.ts +21 -0
- package/dist/components/decision-form.d.ts.map +1 -1
- package/dist/components/decision-form.js +20 -6
- package/dist/components/decision-form.js.map +1 -1
- package/dist/components/decision-list.d.ts +24 -0
- package/dist/components/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +54 -5
- package/dist/components/decision-list.js.map +1 -1
- package/dist/components/desk-records.d.ts +102 -0
- package/dist/components/desk-records.d.ts.map +1 -0
- package/dist/components/desk-records.js +221 -0
- package/dist/components/desk-records.js.map +1 -0
- package/dist/components/desk.d.ts +85 -0
- package/dist/components/desk.d.ts.map +1 -0
- package/dist/components/desk.js +135 -0
- package/dist/components/desk.js.map +1 -0
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +26 -1
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/home.d.ts +12 -1
- package/dist/components/home.d.ts.map +1 -1
- package/dist/components/home.js +175 -16
- package/dist/components/home.js.map +1 -1
- package/dist/components/my-decisions.d.ts +5 -0
- package/dist/components/my-decisions.d.ts.map +1 -1
- package/dist/components/my-decisions.js +3 -3
- package/dist/components/my-decisions.js.map +1 -1
- package/dist/components/people.d.ts +17 -0
- package/dist/components/people.d.ts.map +1 -1
- package/dist/components/people.js +55 -19
- package/dist/components/people.js.map +1 -1
- package/dist/components/picker.d.ts +2 -0
- package/dist/components/picker.d.ts.map +1 -1
- package/dist/components/picker.js +1 -1
- package/dist/components/picker.js.map +1 -1
- package/dist/components/pictures.d.ts +38 -10
- package/dist/components/pictures.d.ts.map +1 -1
- package/dist/components/pictures.js +195 -40
- package/dist/components/pictures.js.map +1 -1
- package/dist/components/plugin-events.d.ts +29 -0
- package/dist/components/plugin-events.d.ts.map +1 -0
- package/dist/components/plugin-events.js +139 -0
- package/dist/components/plugin-events.js.map +1 -0
- package/dist/components/plugin-frame.d.ts.map +1 -1
- package/dist/components/plugin-frame.js +14 -37
- package/dist/components/plugin-frame.js.map +1 -1
- package/dist/components/plugin-settings.d.ts.map +1 -1
- package/dist/components/plugin-settings.js +58 -7
- package/dist/components/plugin-settings.js.map +1 -1
- package/dist/components/projects.d.ts.map +1 -1
- package/dist/components/projects.js +30 -10
- package/dist/components/projects.js.map +1 -1
- package/dist/components/rules.d.ts +8 -10
- package/dist/components/rules.d.ts.map +1 -1
- package/dist/components/rules.js +36 -14
- package/dist/components/rules.js.map +1 -1
- package/dist/components/sessions.d.ts.map +1 -1
- package/dist/components/sessions.js +8 -4
- package/dist/components/sessions.js.map +1 -1
- package/dist/components/setup.d.ts +59 -0
- package/dist/components/setup.d.ts.map +1 -0
- package/dist/components/setup.js +93 -0
- package/dist/components/setup.js.map +1 -0
- package/dist/components/sign-in.js +1 -1
- package/dist/components/sign-in.js.map +1 -1
- package/dist/components/task-form.d.ts.map +1 -1
- package/dist/components/task-form.js +2 -2
- package/dist/components/task-form.js.map +1 -1
- package/dist/components/task-list.d.ts +7 -6
- package/dist/components/task-list.d.ts.map +1 -1
- package/dist/components/task-list.js.map +1 -1
- package/dist/components/task-view.d.ts +3 -0
- package/dist/components/task-view.d.ts.map +1 -1
- package/dist/components/task-view.js +1 -1
- package/dist/components/task-view.js.map +1 -1
- package/dist/components/ui.d.ts +78 -8
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +88 -9
- package/dist/components/ui.js.map +1 -1
- package/dist/components/work.d.ts +5 -5
- package/dist/components/work.d.ts.map +1 -1
- package/dist/components/work.js.map +1 -1
- package/dist/components/workspace.d.ts +17 -0
- package/dist/components/workspace.d.ts.map +1 -1
- package/dist/components/workspace.js +129 -2
- package/dist/components/workspace.js.map +1 -1
- package/dist/connect-page.d.ts.map +1 -1
- package/dist/connect-page.js +5 -2
- package/dist/connect-page.js.map +1 -1
- package/dist/console.css +7551 -4580
- package/dist/console.d.ts +20 -0
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +331 -57
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts +22 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +62 -34
- package/dist/data.js.map +1 -1
- package/dist/desk-page.d.ts +38 -0
- package/dist/desk-page.d.ts.map +1 -0
- package/dist/desk-page.js +184 -0
- package/dist/desk-page.js.map +1 -0
- package/dist/desk-records-page.d.ts +18 -0
- package/dist/desk-records-page.d.ts.map +1 -0
- package/dist/desk-records-page.js +130 -0
- package/dist/desk-records-page.js.map +1 -0
- package/dist/desk-records.d.ts +247 -0
- package/dist/desk-records.d.ts.map +1 -0
- package/dist/desk-records.js +543 -0
- package/dist/desk-records.js.map +1 -0
- package/dist/desk.d.ts +122 -0
- package/dist/desk.d.ts.map +1 -0
- package/dist/desk.js +211 -0
- package/dist/desk.js.map +1 -0
- package/dist/feed-stream.d.ts +39 -0
- package/dist/feed-stream.d.ts.map +1 -0
- package/dist/feed-stream.js +117 -0
- package/dist/feed-stream.js.map +1 -0
- package/dist/glances.d.ts +39 -0
- package/dist/glances.d.ts.map +1 -0
- package/dist/glances.js +94 -0
- package/dist/glances.js.map +1 -0
- package/dist/home-tiles.d.ts +69 -5
- package/dist/home-tiles.d.ts.map +1 -1
- package/dist/home-tiles.js +347 -9
- package/dist/home-tiles.js.map +1 -1
- package/dist/i18n/en.d.ts +773 -3
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +770 -9
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +736 -9
- package/dist/i18n/ko.js.map +1 -1
- package/dist/index.d.ts +19 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -5
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +67 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +67 -0
- package/dist/limits.js.map +1 -1
- package/dist/onboarding.d.ts +21 -0
- package/dist/onboarding.d.ts.map +1 -0
- package/dist/onboarding.js +43 -0
- package/dist/onboarding.js.map +1 -0
- package/dist/persona.d.ts +34 -0
- package/dist/persona.d.ts.map +1 -0
- package/dist/persona.js +71 -0
- package/dist/persona.js.map +1 -0
- package/dist/plugin/context.d.ts +42 -11
- package/dist/plugin/context.d.ts.map +1 -1
- package/dist/plugin/limits.d.ts +2 -0
- package/dist/plugin/limits.d.ts.map +1 -1
- package/dist/plugin/limits.js +2 -0
- package/dist/plugin/limits.js.map +1 -1
- package/dist/plugin/manifest.d.ts +13 -0
- package/dist/plugin/manifest.d.ts.map +1 -1
- package/dist/plugin/manifest.js +34 -4
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +56 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +42 -0
- package/dist/plugin/rest-schemas.js.map +1 -1
- package/dist/plugin/sandbox.d.ts.map +1 -1
- package/dist/plugin/sandbox.js +4 -1
- package/dist/plugin/sandbox.js.map +1 -1
- package/dist/plugin/testing.d.ts +6 -2
- package/dist/plugin/testing.d.ts.map +1 -1
- package/dist/plugin/testing.js +52 -10
- package/dist/plugin/testing.js.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/records.d.ts +283 -0
- package/dist/records.d.ts.map +1 -0
- package/dist/records.js +543 -0
- package/dist/records.js.map +1 -0
- package/dist/router.d.ts +50 -3
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +78 -7
- package/dist/router.js.map +1 -1
- package/dist/routes.d.ts +12 -2
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +14 -1
- package/dist/routes.js.map +1 -1
- package/dist/rules.d.ts +30 -11
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +99 -42
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts +20 -0
- package/dist/runner/acp.d.ts.map +1 -0
- package/dist/runner/acp.js +1132 -0
- package/dist/runner/acp.js.map +1 -0
- package/dist/runner/claude.d.ts +13 -0
- package/dist/runner/claude.d.ts.map +1 -0
- package/dist/runner/claude.js +615 -0
- package/dist/runner/claude.js.map +1 -0
- package/dist/runner/codex.d.ts +19 -0
- package/dist/runner/codex.d.ts.map +1 -0
- package/dist/runner/codex.js +597 -0
- package/dist/runner/codex.js.map +1 -0
- package/dist/runner/config.d.ts +35 -0
- package/dist/runner/config.d.ts.map +1 -0
- package/dist/runner/config.js +74 -0
- package/dist/runner/config.js.map +1 -0
- package/dist/runner/desk.d.ts +81 -0
- package/dist/runner/desk.d.ts.map +1 -0
- package/dist/runner/desk.js +303 -0
- package/dist/runner/desk.js.map +1 -0
- package/dist/runner/launchd.d.ts +7 -0
- package/dist/runner/launchd.d.ts.map +1 -0
- package/dist/runner/launchd.js +78 -0
- package/dist/runner/launchd.js.map +1 -0
- package/dist/runner/message.d.ts +66 -0
- package/dist/runner/message.d.ts.map +1 -0
- package/dist/runner/message.js +181 -0
- package/dist/runner/message.js.map +1 -0
- package/dist/runner/modules.d.ts +13 -0
- package/dist/runner/modules.d.ts.map +1 -0
- package/dist/runner/modules.js +30 -0
- package/dist/runner/modules.js.map +1 -0
- package/dist/runner/process.d.ts +7 -0
- package/dist/runner/process.d.ts.map +1 -0
- package/dist/runner/process.js +65 -0
- package/dist/runner/process.js.map +1 -0
- package/dist/runner/redact.d.ts +48 -0
- package/dist/runner/redact.d.ts.map +1 -0
- package/dist/runner/redact.js +214 -0
- package/dist/runner/redact.js.map +1 -0
- package/dist/runner/registry.d.ts +37 -0
- package/dist/runner/registry.d.ts.map +1 -0
- package/dist/runner/registry.js +26 -0
- package/dist/runner/registry.js.map +1 -0
- package/dist/runner/runner.d.ts +130 -0
- package/dist/runner/runner.d.ts.map +1 -0
- package/dist/runner/runner.js +1551 -0
- package/dist/runner/runner.js.map +1 -0
- package/dist/runner/slack.d.ts +16 -0
- package/dist/runner/slack.d.ts.map +1 -0
- package/dist/runner/slack.js +157 -0
- package/dist/runner/slack.js.map +1 -0
- package/dist/runner/systemd-user.d.ts +7 -0
- package/dist/runner/systemd-user.d.ts.map +1 -0
- package/dist/runner/systemd-user.js +93 -0
- package/dist/runner/systemd-user.js.map +1 -0
- package/dist/runner/task-scheduler.d.ts +38 -0
- package/dist/runner/task-scheduler.d.ts.map +1 -0
- package/dist/runner/task-scheduler.js +216 -0
- package/dist/runner/task-scheduler.js.map +1 -0
- package/dist/runner/types.d.ts +315 -0
- package/dist/runner/types.d.ts.map +1 -0
- package/dist/runner/types.js +24 -0
- package/dist/runner/types.js.map +1 -0
- package/dist/runner.d.ts +18 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +20 -0
- package/dist/runner.js.map +1 -0
- package/dist/schemas.d.ts +6082 -1295
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +930 -31
- package/dist/schemas.js.map +1 -1
- package/dist/services.d.ts +110 -0
- package/dist/services.d.ts.map +1 -0
- package/dist/services.js +305 -0
- package/dist/services.js.map +1 -0
- package/dist/setup-guide.d.ts +64 -0
- package/dist/setup-guide.d.ts.map +1 -0
- package/dist/setup-guide.js +256 -0
- package/dist/setup-guide.js.map +1 -0
- package/dist/setup-page.d.ts +6 -0
- package/dist/setup-page.d.ts.map +1 -0
- package/dist/setup-page.js +29 -0
- package/dist/setup-page.js.map +1 -0
- package/dist/sse.d.ts +15 -0
- package/dist/sse.d.ts.map +1 -0
- package/dist/sse.js +73 -0
- package/dist/sse.js.map +1 -0
- package/dist/tab-title.d.ts +6 -0
- package/dist/tab-title.d.ts.map +1 -0
- package/dist/tab-title.js +22 -0
- package/dist/tab-title.js.map +1 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +3 -0
- package/dist/tokens.js.map +1 -1
- package/dist/use-action.d.ts +5 -2
- package/dist/use-action.d.ts.map +1 -1
- package/dist/use-action.js +6 -1
- package/dist/use-action.js.map +1 -1
- package/dist/vocabulary.d.ts +84 -4
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +115 -3
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +147 -41
- package/docs/specs/plugins.md +37 -27
- package/docs/specs/records.md +113 -0
- package/docs/specs/rest.md +155 -20
- package/docs/specs/runner.md +347 -0
- package/package.json +12 -3
- package/skills/building-a-console/SKILL.md +4 -4
- package/skills/building-a-console/references/configuring.md +1 -0
- package/skills/building-a-plugin/SKILL.md +7 -7
- package/skills/deploying-a-console/SKILL.md +4 -4
- package/skills/deploying-a-console/references/resources.md +48 -8
- package/skills/deploying-a-console/references/running-it-again.md +3 -2
- package/skills/keeping-a-desk/SKILL.md +133 -0
- package/skills/keeping-a-desk/collections.md +96 -0
- package/skills/planning-the-board/SKILL.md +14 -18
- package/skills/planning-the-board/references/a-task.md +2 -2
- package/skills/planning-the-board/references/project-rules.md +13 -14
- package/skills/planning-the-board/references/setting-up.md +22 -9
- package/skills/running-an-agent/SKILL.md +107 -0
- package/skills/running-an-agent/references/slack-app.md +61 -0
- package/skills/working-the-board/SKILL.md +66 -39
- package/skills/working-the-board/references/terms.md +9 -5
- package/skills/working-the-board/references/the-pack.md +14 -9
- package/skills/working-the-board/references/the-sentence.md +2 -2
- package/src/agent-page.tsx +1039 -0
- package/src/agent-stream.ts +199 -0
- package/src/api.ts +317 -2
- package/src/avatar.ts +1506 -0
- package/src/charts.ts +250 -0
- package/src/cli/cli.ts +3210 -503
- package/src/cli/command-words.ts +56 -0
- package/src/cli/credentials.ts +188 -16
- package/src/cli/directory.ts +28 -10
- package/src/cli/format.ts +470 -67
- package/src/cli/help.ts +233 -61
- package/src/cli/main.ts +89 -0
- package/src/cli/pack.ts +332 -263
- package/src/cli/plugin-check.ts +275 -34
- package/src/cli/plugin-cli.ts +28 -4
- package/src/cli/plugin-main.ts +1 -0
- package/src/cli/runner-host.ts +188 -0
- package/src/cli/serve.ts +320 -5
- package/src/cli/setup-machine.ts +153 -0
- package/src/client.ts +711 -126
- package/src/compat.ts +2 -2
- package/src/components/agent-page.tsx +1946 -0
- package/src/components/agents.tsx +638 -0
- package/src/components/calendar.tsx +74 -53
- package/src/components/charts.tsx +680 -0
- package/src/components/comments.tsx +3 -0
- package/src/components/connect.tsx +37 -2
- package/src/components/decision-form.tsx +89 -51
- package/src/components/decision-list.tsx +140 -4
- package/src/components/desk-records.tsx +724 -0
- package/src/components/desk.tsx +471 -0
- package/src/components/event-feed.tsx +30 -1
- package/src/components/home.tsx +353 -12
- package/src/components/my-decisions.tsx +8 -2
- package/src/components/people.tsx +300 -203
- package/src/components/picker.tsx +3 -1
- package/src/components/pictures.tsx +256 -44
- package/src/components/plugin-events.ts +159 -0
- package/src/components/plugin-frame.tsx +14 -38
- package/src/components/plugin-settings.tsx +178 -22
- package/src/components/projects.tsx +33 -15
- package/src/components/rules.tsx +96 -36
- package/src/components/sessions.tsx +7 -4
- package/src/components/setup.tsx +252 -0
- package/src/components/sign-in.tsx +1 -1
- package/src/components/task-form.tsx +11 -2
- package/src/components/task-list.tsx +7 -6
- package/src/components/task-view.tsx +4 -0
- package/src/components/ui.tsx +169 -25
- package/src/components/work.tsx +9 -9
- package/src/components/workspace.tsx +345 -4
- package/src/connect-page.tsx +15 -2
- package/src/console.tsx +657 -83
- package/src/data.ts +109 -43
- package/src/desk-page.tsx +332 -0
- package/src/desk-records-page.tsx +256 -0
- package/src/desk-records.ts +808 -0
- package/src/desk.ts +329 -0
- package/src/feed-stream.ts +144 -0
- package/src/glances.ts +132 -0
- package/src/home-tiles.ts +411 -9
- package/src/i18n/en.ts +828 -10
- package/src/i18n/ko.ts +792 -10
- package/src/index.ts +172 -3
- package/src/limits.ts +67 -0
- package/src/onboarding.ts +84 -0
- package/src/persona.ts +100 -0
- package/src/plugin/context.ts +55 -12
- package/src/plugin/limits.ts +2 -0
- package/src/plugin/manifest.ts +42 -3
- package/src/plugin/rest-schemas.ts +46 -0
- package/src/plugin/sandbox.ts +4 -1
- package/src/plugin/testing.ts +63 -12
- package/src/plugin.ts +2 -0
- package/src/records.ts +702 -0
- package/src/router.ts +120 -10
- package/src/routes.ts +17 -1
- package/src/rules.ts +109 -44
- package/src/runner/acp.ts +1267 -0
- package/src/runner/claude.ts +695 -0
- package/src/runner/codex.ts +691 -0
- package/src/runner/config.ts +97 -0
- package/src/runner/desk.ts +377 -0
- package/src/runner/launchd.ts +86 -0
- package/src/runner/message.ts +232 -0
- package/src/runner/modules.ts +30 -0
- package/src/runner/process.ts +72 -0
- package/src/runner/redact.ts +242 -0
- package/src/runner/registry.ts +67 -0
- package/src/runner/runner.ts +1879 -0
- package/src/runner/slack.ts +180 -0
- package/src/runner/systemd-user.ts +103 -0
- package/src/runner/task-scheduler.ts +236 -0
- package/src/runner/types.ts +334 -0
- package/src/runner.ts +110 -0
- package/src/schemas.ts +1183 -30
- package/src/services.ts +424 -0
- package/src/setup-guide.ts +336 -0
- package/src/setup-page.tsx +46 -0
- package/src/sse.ts +84 -0
- package/src/styles/README.md +111 -0
- package/src/styles/base.css +130 -0
- package/src/styles/console.css +85 -7095
- package/src/styles/drawn-by-pages.json +256 -0
- package/src/styles/pages/agents.css +1195 -0
- package/src/styles/pages/board.css +380 -0
- package/src/styles/pages/calendar.css +214 -0
- package/src/styles/pages/connect.css +182 -0
- package/src/styles/pages/decisions.css +370 -0
- package/src/styles/pages/desk.css +126 -0
- package/src/styles/pages/documents.css +273 -0
- package/src/styles/pages/feed.css +118 -0
- package/src/styles/pages/home.css +718 -0
- package/src/styles/pages/people.css +90 -0
- package/src/styles/pages/plugins.css +212 -0
- package/src/styles/pages/roadmap.css +377 -0
- package/src/styles/pages/settings.css +171 -0
- package/src/styles/pages/shell.css +208 -0
- package/src/styles/pages/sign-in.css +178 -0
- package/src/styles/pages/task.css +108 -0
- package/src/styles/pages/thread.css +331 -0
- package/src/styles/pages/work.css +68 -0
- package/src/styles/parts/avatar.css +82 -0
- package/src/styles/parts/badge.css +227 -0
- package/src/styles/parts/bars.css +80 -0
- package/src/styles/parts/button.css +99 -0
- package/src/styles/parts/calendar.css +547 -0
- package/src/styles/parts/callout.css +41 -0
- package/src/styles/parts/category.css +8 -0
- package/src/styles/parts/chart.css +173 -0
- package/src/styles/parts/chip.css +90 -0
- package/src/styles/parts/code.css +48 -0
- package/src/styles/parts/count.css +27 -0
- package/src/styles/parts/crumbs.css +61 -0
- package/src/styles/parts/detail.css +110 -0
- package/src/styles/parts/empty.css +21 -0
- package/src/styles/parts/eyebrow.css +9 -0
- package/src/styles/parts/facts.css +147 -0
- package/src/styles/parts/figures.css +65 -0
- package/src/styles/parts/files.css +38 -0
- package/src/styles/parts/filters.css +42 -0
- package/src/styles/parts/form.css +109 -0
- package/src/styles/parts/frame.css +45 -0
- package/src/styles/parts/input.css +243 -0
- package/src/styles/parts/legend.css +48 -0
- package/src/styles/parts/links.css +37 -0
- package/src/styles/parts/mark.css +79 -0
- package/src/styles/parts/menu.css +147 -0
- package/src/styles/parts/page.css +174 -0
- package/src/styles/parts/pager.css +19 -0
- package/src/styles/parts/panel.css +33 -0
- package/src/styles/parts/person.css +257 -0
- package/src/styles/parts/picker.css +185 -0
- package/src/styles/parts/progress.css +25 -0
- package/src/styles/parts/prose.css +128 -0
- package/src/styles/parts/rows.css +63 -0
- package/src/styles/parts/series.css +32 -0
- package/src/styles/parts/settings.css +101 -0
- package/src/styles/parts/share.css +25 -0
- package/src/styles/parts/spark.css +23 -0
- package/src/styles/parts/spinner.css +29 -0
- package/src/styles/parts/stat.css +69 -0
- package/src/styles/parts/steps.css +68 -0
- package/src/styles/parts/tabs.css +175 -0
- package/src/styles/parts/text.css +61 -0
- package/src/styles/parts/toggle.css +71 -0
- package/src/styles/parts/workers.css +37 -0
- package/src/styles/tokens.css +295 -0
- package/src/tab-title.ts +25 -0
- package/src/tokens.ts +3 -0
- package/src/use-action.ts +7 -2
- package/src/vocabulary.ts +151 -3
- package/template/desk-web/README.md +8 -0
- package/template/desk-web/index.html +13 -0
- package/template/desk-web/package.json +25 -0
- package/template/desk-web/src/main.tsx +24 -0
- package/template/desk-web/src/page.tsx +51 -0
- package/template/desk-web/tsconfig.json +16 -0
- package/template/desk-web/vite.config.ts +15 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A word of a line printed for a person or an agent to run, spelled so that bash and PowerShell
|
|
3
|
+
* both take it whole as it is, expanding nothing in it: as it is where it is plain, else in
|
|
4
|
+
* single quotes, inside which neither reads anything. A single quote has no spelling inside
|
|
5
|
+
* those that both take (bash ends the word there; PowerShell doubles it, which bash reads as two
|
|
6
|
+
* words joined into one), so a word that holds one is in double quotes, inside which neither
|
|
7
|
+
* reads anything of a word without `$`, a backtick, a double quote, a backslash or `!`. Nothing
|
|
8
|
+
* for a word that holds a single quote and one of those, which no one spelling keeps whole in
|
|
9
|
+
* both, nor for one with a character that does not show or makes it look like another.
|
|
10
|
+
*/
|
|
11
|
+
export declare function commandWord(word: string): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Words as one line printed for a person or an agent to run, after `command`, the command's own
|
|
14
|
+
* words, each spelled as `commandWord` spells it; nothing where one of them has no spelling that
|
|
15
|
+
* bash and PowerShell both take whole.
|
|
16
|
+
*/
|
|
17
|
+
export declare function commandLine(command: string, words: readonly string[]): string | undefined;
|
|
18
|
+
/** Why a line is not printed for a person or an agent to run, said in its place. */
|
|
19
|
+
export declare const NO_LINE_TO_RUN = "No line is printed to run: a word of it holds a single quote with a $, a backtick, a double quote, a backslash or a !, or a character that does not show, and no one spelling keeps such a word whole in both bash and PowerShell.";
|
|
20
|
+
//# sourceMappingURL=command-words.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-words.d.ts","sourceRoot":"","sources":["../../src/cli/command-words.ts"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAW5D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAUzF;AAED,oFAAoF;AACpF,eAAO,MAAM,cAAc,uOAC2M,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { hasForbiddenCodePoint } from "../text.js";
|
|
2
|
+
// The lines the commands print for a person or an agent to run, a path of a pack or a folder
|
|
3
|
+
// among their words: spelled so that bash and PowerShell both run them as they are, since an
|
|
4
|
+
// agent runs what it is told in whichever of the two it has.
|
|
5
|
+
/** A word bash and PowerShell both take as it is: no character either reads as more than a letter, and no `@` first, which PowerShell reads as a variable spread. */
|
|
6
|
+
const PLAIN_WORD = /^[\w./+:=-][\w./@+:=-]*$/;
|
|
7
|
+
/** A single quote, as PowerShell reads one: its curly forms close a quoted word too. */
|
|
8
|
+
const SINGLE_QUOTE = /['\u2018-\u201b]/;
|
|
9
|
+
/** What either shell reads inside double quotes: `$`, a backtick, a double quote of any form, a backslash, `!`. */
|
|
10
|
+
const READ_IN_DOUBLE_QUOTES = /[$`"\u201c-\u201e\\!]/;
|
|
11
|
+
/**
|
|
12
|
+
* A word of a line printed for a person or an agent to run, spelled so that bash and PowerShell
|
|
13
|
+
* both take it whole as it is, expanding nothing in it: as it is where it is plain, else in
|
|
14
|
+
* single quotes, inside which neither reads anything. A single quote has no spelling inside
|
|
15
|
+
* those that both take (bash ends the word there; PowerShell doubles it, which bash reads as two
|
|
16
|
+
* words joined into one), so a word that holds one is in double quotes, inside which neither
|
|
17
|
+
* reads anything of a word without `$`, a backtick, a double quote, a backslash or `!`. Nothing
|
|
18
|
+
* for a word that holds a single quote and one of those, which no one spelling keeps whole in
|
|
19
|
+
* both, nor for one with a character that does not show or makes it look like another.
|
|
20
|
+
*/
|
|
21
|
+
export function commandWord(word) {
|
|
22
|
+
if (word.length === 0 || hasForbiddenCodePoint(word)) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (PLAIN_WORD.test(word)) {
|
|
26
|
+
return word;
|
|
27
|
+
}
|
|
28
|
+
if (!SINGLE_QUOTE.test(word)) {
|
|
29
|
+
return `'${word}'`;
|
|
30
|
+
}
|
|
31
|
+
return READ_IN_DOUBLE_QUOTES.test(word) ? undefined : `"${word}"`;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Words as one line printed for a person or an agent to run, after `command`, the command's own
|
|
35
|
+
* words, each spelled as `commandWord` spells it; nothing where one of them has no spelling that
|
|
36
|
+
* bash and PowerShell both take whole.
|
|
37
|
+
*/
|
|
38
|
+
export function commandLine(command, words) {
|
|
39
|
+
const spelled = [];
|
|
40
|
+
for (const word of words) {
|
|
41
|
+
const one = commandWord(word);
|
|
42
|
+
if (one === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
spelled.push(one);
|
|
46
|
+
}
|
|
47
|
+
return [command, ...spelled].join(" ");
|
|
48
|
+
}
|
|
49
|
+
/** Why a line is not printed for a person or an agent to run, said in its place. */
|
|
50
|
+
export const NO_LINE_TO_RUN = "No line is printed to run: a word of it holds a single quote with a $, a backtick, a double quote, a backslash or a !, or a character that does not show, and no one spelling keeps such a word whole in both bash and PowerShell.";
|
|
51
|
+
//# sourceMappingURL=command-words.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-words.js","sourceRoot":"","sources":["../../src/cli/command-words.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,6FAA6F;AAC7F,6FAA6F;AAC7F,6DAA6D;AAE7D,qKAAqK;AACrK,MAAM,UAAU,GAAG,0BAA0B,CAAC;AAC9C,wFAAwF;AACxF,MAAM,YAAY,GAAG,kBAAkB,CAAC;AACxC,mHAAmH;AACnH,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD;;;;;;;;;GASG;AACH,MAAM,UAAU,WAAW,CAAC,IAAY;IACtC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC;QACrD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAI,IAAI,GAAG,CAAC;IACrB,CAAC;IACD,OAAO,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC;AACpE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,KAAwB;IACnE,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QAC9B,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,oFAAoF;AACpF,MAAM,CAAC,MAAM,cAAc,GACzB,oOAAoO,CAAC"}
|
|
@@ -9,16 +9,47 @@ export interface Login {
|
|
|
9
9
|
readonly agent: string | undefined;
|
|
10
10
|
/** When the command was signed in, when known. */
|
|
11
11
|
readonly since: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Whether what is kept is a session of the command's own, signed in as the account itself
|
|
14
|
+
* (ADR-0084), where it is otherwise a token a person made for an agent.
|
|
15
|
+
*/
|
|
16
|
+
readonly self?: boolean | undefined;
|
|
12
17
|
/**
|
|
13
18
|
* The workspace's time zone as the console last said it, at login or whoami (ADR-0035): what
|
|
14
19
|
* the command prints moments in, without asking again; none when the workspace names none.
|
|
15
20
|
*/
|
|
16
21
|
readonly timeZone?: string | undefined;
|
|
17
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* A connection begun and not yet approved (ADR-0129): what a later `login` needs to go on
|
|
25
|
+
* waiting for it, kept for the few minutes its code lasts where the call that began it ended
|
|
26
|
+
* before a person approved. Its secret is good for nothing until a person signed in at the
|
|
27
|
+
* console approves the code, and is kept as a token is: here, and never printed.
|
|
28
|
+
*/
|
|
29
|
+
export interface PendingConnection {
|
|
30
|
+
/** The origin of the console the connection was begun at. */
|
|
31
|
+
readonly url: string;
|
|
32
|
+
/** What the command claims the token with, once a person approved. */
|
|
33
|
+
readonly secret: string;
|
|
34
|
+
/** The code the person checks on the page, to say again. */
|
|
35
|
+
readonly code: string;
|
|
36
|
+
/** The page the person opens to approve. */
|
|
37
|
+
readonly page: string;
|
|
38
|
+
/** When the code runs out, as the console said it. */
|
|
39
|
+
readonly expiresAt: string;
|
|
40
|
+
/** How many seconds the console asked for between two claims. */
|
|
41
|
+
readonly interval: number;
|
|
42
|
+
/** Whether the command asked to be the account itself (ADR-0084). */
|
|
43
|
+
readonly self?: boolean | undefined;
|
|
44
|
+
/** Whether the login is to be the default console here. */
|
|
45
|
+
readonly default?: boolean | undefined;
|
|
46
|
+
}
|
|
18
47
|
/** Everything the command keeps: the logins, and the console a directory that names none works at. */
|
|
19
48
|
export interface Credentials {
|
|
20
49
|
readonly default: string | undefined;
|
|
21
50
|
readonly logins: readonly Login[];
|
|
51
|
+
/** The connections begun and waiting for a person, one a console at most (ADR-0129); left out when none is. */
|
|
52
|
+
readonly pending?: readonly PendingConnection[] | undefined;
|
|
22
53
|
}
|
|
23
54
|
export declare const EMPTY_CREDENTIALS: Credentials;
|
|
24
55
|
/** How many consoles one machine may be signed in to: far more than anyone has. */
|
|
@@ -35,10 +66,17 @@ export interface CredentialStore {
|
|
|
35
66
|
clear(): Promise<void>;
|
|
36
67
|
}
|
|
37
68
|
export declare class CredentialsError extends Error {
|
|
38
|
-
readonly code: "credentials.malformed" | "credentials.too_large";
|
|
69
|
+
readonly code: "credentials.malformed" | "credentials.too_large" | "credentials.unfit";
|
|
39
70
|
readonly path: string;
|
|
40
71
|
constructor(code: CredentialsError["code"], path: string);
|
|
41
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Whether what is to be kept reads back as the file's own shape. What a console answers comes
|
|
75
|
+
* to rest here, a code, a token, a name, and anything at an address may answer to nobody: a
|
|
76
|
+
* file written beyond its own bounds is one the command stops on from then on, at every
|
|
77
|
+
* console. So it is asked before anything is written, and what does not fit is not kept.
|
|
78
|
+
*/
|
|
79
|
+
export declare function fitsFile(credentials: Credentials): boolean;
|
|
42
80
|
/** What a file says, in the current shape; one in the first shape reads as one login, the default. Nothing for anything else. */
|
|
43
81
|
export declare function parseCredentials(json: unknown): Credentials | undefined;
|
|
44
82
|
/** The logins at one console. */
|
|
@@ -47,16 +85,32 @@ export declare function loginsAt(credentials: Credentials, url: string): readonl
|
|
|
47
85
|
export declare function consolesOf(credentials: Credentials): readonly string[];
|
|
48
86
|
/**
|
|
49
87
|
* With a login kept: in place of the one at the same console for the same account, else added.
|
|
50
|
-
* The first login kept is the default console, and one kept as the default is.
|
|
88
|
+
* The first login kept is the default console, and one kept as the default is. The connections
|
|
89
|
+
* that wait are carried while their codes last at `now`.
|
|
51
90
|
*/
|
|
52
|
-
export declare function withLogin(credentials: Credentials, login: Login, options?: {
|
|
91
|
+
export declare function withLogin(credentials: Credentials, login: Login, now: number, options?: {
|
|
53
92
|
readonly default?: boolean | undefined;
|
|
54
93
|
}): Credentials;
|
|
94
|
+
/** Whether a connection's code still lasts at a moment; one whose end does not read as a moment does not. */
|
|
95
|
+
export declare function lasts(pending: PendingConnection, now: number): boolean;
|
|
96
|
+
/** The connection that waits at a console, whether or not its code still lasts. */
|
|
97
|
+
export declare function pendingAt(credentials: Credentials | undefined, url: string): PendingConnection | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* With a connection that waits: in place of the one at the same console, and without any whose
|
|
100
|
+
* code ran out, so that a secret rests here no longer than its code lasts once anything is kept
|
|
101
|
+
* again (ADR-0129).
|
|
102
|
+
*/
|
|
103
|
+
export declare function withPending(credentials: Credentials, pending: PendingConnection, now: number): Credentials;
|
|
104
|
+
/** Without the connection that waits at a console, and without any whose code ran out. */
|
|
105
|
+
export declare function withoutPending(credentials: Credentials, url: string, now: number): Credentials;
|
|
106
|
+
/** Whether nothing is kept: no login, and no connection that waits. */
|
|
107
|
+
export declare function keepsNothing(credentials: Credentials): boolean;
|
|
55
108
|
/**
|
|
56
109
|
* Without the login at a console, for one account or for every account there. The default
|
|
57
|
-
* stays while a login at it remains; else it moves to the one console left, or to none.
|
|
110
|
+
* stays while a login at it remains; else it moves to the one console left, or to none. The
|
|
111
|
+
* connections that wait are carried while their codes last at `now`.
|
|
58
112
|
*/
|
|
59
|
-
export declare function withoutLogin(credentials: Credentials, url: string, account?: string): Credentials;
|
|
113
|
+
export declare function withoutLogin(credentials: Credentials, url: string, now: number, account?: string): Credentials;
|
|
60
114
|
/** Where a command is told which console to talk to, in the order the first one found wins. */
|
|
61
115
|
export type AddressSource = "flag" | "environment" | "directory" | "default";
|
|
62
116
|
export interface Lookup {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/cli/credentials.ts"],"names":[],"mappings":"AAaA,uFAAuF;AACvF,MAAM,WAAW,KAAK;IACpB,iDAAiD;IACjD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,mHAAmH;IACnH,QAAQ,CAAC,OAAO,EAAE,MAA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G,eAAe,CAAC;CAChD;AACH,mGAAmG;GACjG;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;CAChC;AACH,6EAA6E;GAC3E;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC,CAAC;AAEN;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAyCvD;AAID,gFAAgF;AAChF,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,MAAM,CAM1F;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,CA6ClE"}
|
package/dist/cli/credentials.js
CHANGED
|
@@ -14,7 +14,9 @@ export class CredentialsError extends Error {
|
|
|
14
14
|
constructor(code, path) {
|
|
15
15
|
super(code === "credentials.too_large"
|
|
16
16
|
? `The credentials file ${path} is larger than the command reads.`
|
|
17
|
-
:
|
|
17
|
+
: code === "credentials.unfit"
|
|
18
|
+
? "What was to be kept is not what the command reads back, so nothing was written."
|
|
19
|
+
: `The credentials file ${path} could not be read as one.`);
|
|
18
20
|
this.name = "CredentialsError";
|
|
19
21
|
this.code = code;
|
|
20
22
|
this.path = path;
|
|
@@ -26,18 +28,75 @@ const loginSchema = z.object({
|
|
|
26
28
|
token: z.string().check(z.minLength(1), z.maxLength(1024)),
|
|
27
29
|
agent: z.optional(z.string().check(z.maxLength(200))),
|
|
28
30
|
since: z.optional(z.string().check(z.maxLength(40))),
|
|
31
|
+
self: z.optional(z.boolean()),
|
|
29
32
|
timeZone: z.optional(z.string().check(z.minLength(1), z.maxLength(64))),
|
|
30
33
|
});
|
|
34
|
+
const pendingSchema = z.object({
|
|
35
|
+
url: z.string().check(z.minLength(1), z.maxLength(2048)),
|
|
36
|
+
secret: z.string().check(z.minLength(1), z.maxLength(1024)),
|
|
37
|
+
code: z.string().check(z.minLength(1), z.maxLength(64)),
|
|
38
|
+
page: z.string().check(z.minLength(1), z.maxLength(2048)),
|
|
39
|
+
expiresAt: z.string().check(z.minLength(1), z.maxLength(40)),
|
|
40
|
+
interval: z.number().check(z.gte(1), z.lte(600)),
|
|
41
|
+
self: z.optional(z.boolean()),
|
|
42
|
+
default: z.optional(z.boolean()),
|
|
43
|
+
});
|
|
31
44
|
const fileSchema = z.object({
|
|
32
45
|
version: z.literal(2),
|
|
33
46
|
default: z.optional(z.string().check(z.minLength(1), z.maxLength(2048))),
|
|
34
47
|
logins: z.array(loginSchema).check(z.maxLength(MAX_LOGINS)),
|
|
48
|
+
// Left out by a command from before ADR-0129, which reads the file without it and writes it
|
|
49
|
+
// back without it: a connection that waited is begun again.
|
|
50
|
+
pending: z.optional(z.array(pendingSchema).check(z.maxLength(MAX_LOGINS))),
|
|
35
51
|
});
|
|
36
52
|
/** The file as the command kept it before 2026-10: one console, one token. */
|
|
37
53
|
const firstFileSchema = z.object({
|
|
38
54
|
url: z.string().check(z.minLength(1)),
|
|
39
55
|
token: z.string().check(z.minLength(1)),
|
|
40
56
|
});
|
|
57
|
+
/** The file as it is written: what `save` writes, and `load` reads back with `fileSchema`. */
|
|
58
|
+
function fileOf(credentials) {
|
|
59
|
+
return {
|
|
60
|
+
version: 2,
|
|
61
|
+
default: credentials.default,
|
|
62
|
+
logins: credentials.logins.map((login) => ({
|
|
63
|
+
url: login.url,
|
|
64
|
+
account: login.account,
|
|
65
|
+
token: login.token,
|
|
66
|
+
agent: login.agent,
|
|
67
|
+
since: login.since,
|
|
68
|
+
// What a login is read back with: whether the command is the account itself, and the
|
|
69
|
+
// zone the workspace keeps its times in.
|
|
70
|
+
...(login.self === true ? { self: true } : {}),
|
|
71
|
+
...(login.timeZone === undefined ? {} : { timeZone: login.timeZone }),
|
|
72
|
+
})),
|
|
73
|
+
// The connections that wait for a person (ADR-0129), each with its secret, in this file
|
|
74
|
+
// and under its mode as a token is.
|
|
75
|
+
...(credentials.pending === undefined || credentials.pending.length === 0
|
|
76
|
+
? {}
|
|
77
|
+
: {
|
|
78
|
+
pending: credentials.pending.map((waiting) => ({
|
|
79
|
+
url: waiting.url,
|
|
80
|
+
secret: waiting.secret,
|
|
81
|
+
code: waiting.code,
|
|
82
|
+
page: waiting.page,
|
|
83
|
+
expiresAt: waiting.expiresAt,
|
|
84
|
+
interval: waiting.interval,
|
|
85
|
+
...(waiting.self === true ? { self: true } : {}),
|
|
86
|
+
...(waiting.default === true ? { default: true } : {}),
|
|
87
|
+
})),
|
|
88
|
+
}),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Whether what is to be kept reads back as the file's own shape. What a console answers comes
|
|
93
|
+
* to rest here, a code, a token, a name, and anything at an address may answer to nobody: a
|
|
94
|
+
* file written beyond its own bounds is one the command stops on from then on, at every
|
|
95
|
+
* console. So it is asked before anything is written, and what does not fit is not kept.
|
|
96
|
+
*/
|
|
97
|
+
export function fitsFile(credentials) {
|
|
98
|
+
return fileSchema.safeParse(fileOf(credentials)).success;
|
|
99
|
+
}
|
|
41
100
|
/** What a file says, in the current shape; one in the first shape reads as one login, the default. Nothing for anything else. */
|
|
42
101
|
export function parseCredentials(json) {
|
|
43
102
|
const current = fileSchema.safeParse(json);
|
|
@@ -50,8 +109,23 @@ export function parseCredentials(json) {
|
|
|
50
109
|
token: login.token,
|
|
51
110
|
agent: login.agent,
|
|
52
111
|
since: login.since,
|
|
112
|
+
...(login.self === true ? { self: true } : {}),
|
|
53
113
|
...(login.timeZone === undefined ? {} : { timeZone: login.timeZone }),
|
|
54
114
|
})),
|
|
115
|
+
...(current.data.pending === undefined || current.data.pending.length === 0
|
|
116
|
+
? {}
|
|
117
|
+
: {
|
|
118
|
+
pending: current.data.pending.map((waiting) => ({
|
|
119
|
+
url: waiting.url,
|
|
120
|
+
secret: waiting.secret,
|
|
121
|
+
code: waiting.code,
|
|
122
|
+
page: waiting.page,
|
|
123
|
+
expiresAt: waiting.expiresAt,
|
|
124
|
+
interval: waiting.interval,
|
|
125
|
+
...(waiting.self === true ? { self: true } : {}),
|
|
126
|
+
...(waiting.default === true ? { default: true } : {}),
|
|
127
|
+
})),
|
|
128
|
+
}),
|
|
55
129
|
};
|
|
56
130
|
}
|
|
57
131
|
const first = firstFileSchema.safeParse(json);
|
|
@@ -81,21 +155,64 @@ export function consolesOf(credentials) {
|
|
|
81
155
|
}
|
|
82
156
|
/**
|
|
83
157
|
* With a login kept: in place of the one at the same console for the same account, else added.
|
|
84
|
-
* The first login kept is the default console, and one kept as the default is.
|
|
158
|
+
* The first login kept is the default console, and one kept as the default is. The connections
|
|
159
|
+
* that wait are carried while their codes last at `now`.
|
|
85
160
|
*/
|
|
86
|
-
export function withLogin(credentials, login, options = {}) {
|
|
161
|
+
export function withLogin(credentials, login, now, options = {}) {
|
|
87
162
|
const rest = credentials.logins.filter((kept) => !(kept.url === login.url && kept.account === login.account));
|
|
88
163
|
const first = credentials.logins.length === 0 ? login.url : undefined;
|
|
89
164
|
return {
|
|
90
165
|
default: options.default === true ? login.url : (credentials.default ?? first),
|
|
91
166
|
logins: [...rest, login],
|
|
167
|
+
...carried(credentials.pending, now),
|
|
92
168
|
};
|
|
93
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* The connections that wait, as a field of what is kept anew: those whose codes still last, so
|
|
172
|
+
* that a secret rests here no longer than its code once anything is kept again (ADR-0129), and
|
|
173
|
+
* the field left out when none does.
|
|
174
|
+
*/
|
|
175
|
+
function carried(pending, now) {
|
|
176
|
+
const lasting = (pending ?? []).filter((waiting) => lasts(waiting, now));
|
|
177
|
+
return lasting.length === 0 ? {} : { pending: lasting };
|
|
178
|
+
}
|
|
179
|
+
/** Whether a connection's code still lasts at a moment; one whose end does not read as a moment does not. */
|
|
180
|
+
export function lasts(pending, now) {
|
|
181
|
+
const end = Date.parse(pending.expiresAt);
|
|
182
|
+
return Number.isFinite(end) && end > now;
|
|
183
|
+
}
|
|
184
|
+
/** The connection that waits at a console, whether or not its code still lasts. */
|
|
185
|
+
export function pendingAt(credentials, url) {
|
|
186
|
+
return credentials?.pending?.find((waiting) => waiting.url === url);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* With a connection that waits: in place of the one at the same console, and without any whose
|
|
190
|
+
* code ran out, so that a secret rests here no longer than its code lasts once anything is kept
|
|
191
|
+
* again (ADR-0129).
|
|
192
|
+
*/
|
|
193
|
+
export function withPending(credentials, pending, now) {
|
|
194
|
+
const rest = (credentials.pending ?? []).filter((waiting) => waiting.url !== pending.url && lasts(waiting, now));
|
|
195
|
+
return {
|
|
196
|
+
default: credentials.default,
|
|
197
|
+
logins: credentials.logins,
|
|
198
|
+
pending: [...rest, pending],
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
/** Without the connection that waits at a console, and without any whose code ran out. */
|
|
202
|
+
export function withoutPending(credentials, url, now) {
|
|
203
|
+
const rest = (credentials.pending ?? []).filter((waiting) => waiting.url !== url);
|
|
204
|
+
return { default: credentials.default, logins: credentials.logins, ...carried(rest, now) };
|
|
205
|
+
}
|
|
206
|
+
/** Whether nothing is kept: no login, and no connection that waits. */
|
|
207
|
+
export function keepsNothing(credentials) {
|
|
208
|
+
return credentials.logins.length === 0 && (credentials.pending ?? []).length === 0;
|
|
209
|
+
}
|
|
94
210
|
/**
|
|
95
211
|
* Without the login at a console, for one account or for every account there. The default
|
|
96
|
-
* stays while a login at it remains; else it moves to the one console left, or to none.
|
|
212
|
+
* stays while a login at it remains; else it moves to the one console left, or to none. The
|
|
213
|
+
* connections that wait are carried while their codes last at `now`.
|
|
97
214
|
*/
|
|
98
|
-
export function withoutLogin(credentials, url, account) {
|
|
215
|
+
export function withoutLogin(credentials, url, now, account) {
|
|
99
216
|
const logins = credentials.logins.filter((kept) => !(kept.url === url && (account === undefined || kept.account === account)));
|
|
100
217
|
const consoles = [...new Set(logins.map((kept) => kept.url))];
|
|
101
218
|
const [only] = consoles;
|
|
@@ -105,6 +222,7 @@ export function withoutLogin(credentials, url, account) {
|
|
|
105
222
|
? credentials.default
|
|
106
223
|
: fallback,
|
|
107
224
|
logins,
|
|
225
|
+
...carried(credentials.pending, now),
|
|
108
226
|
};
|
|
109
227
|
}
|
|
110
228
|
/**
|
|
@@ -188,18 +306,12 @@ export function createFileStore(directory) {
|
|
|
188
306
|
return parsed;
|
|
189
307
|
},
|
|
190
308
|
async save(credentials) {
|
|
309
|
+
// Never written in a shape `load` refuses: the file would stop every command after this.
|
|
310
|
+
if (!fitsFile(credentials)) {
|
|
311
|
+
throw new CredentialsError("credentials.unfit", path);
|
|
312
|
+
}
|
|
191
313
|
await mkdir(directory, { recursive: true, mode: 0o700 });
|
|
192
|
-
const file =
|
|
193
|
-
version: 2,
|
|
194
|
-
default: credentials.default,
|
|
195
|
-
logins: credentials.logins.map((login) => ({
|
|
196
|
-
url: login.url,
|
|
197
|
-
account: login.account,
|
|
198
|
-
token: login.token,
|
|
199
|
-
agent: login.agent,
|
|
200
|
-
since: login.since,
|
|
201
|
-
})),
|
|
202
|
-
};
|
|
314
|
+
const file = fileOf(credentials);
|
|
203
315
|
// Written beside the file and moved over it in one step, so that a command that stops
|
|
204
316
|
// half-way leaves the file as it was, whole.
|
|
205
317
|
const draft = `${path}.${process.pid}.tmp`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/cli/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,E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AA6C;YAC7C,MAAM,KAAK,GAAG,GAAG,IAAI,IAAI,OAAO,CAAC,GAAG,MAAM,CAAC;YAC3C,MAAM,SAAS,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YAC9E,MAAM,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAC1B,mGAAmG;YACnG,MAAM,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;YAChD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,KAAK,CAAC,KAAK;YACT,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAClC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/cli/directory.d.ts
CHANGED
|
@@ -4,20 +4,35 @@ export declare const DIRECTORY_FILE = ".skillcdn-console.json";
|
|
|
4
4
|
* The sentence a checkout's agreement carries to send the agents working there to the console:
|
|
5
5
|
* the one the skill working-the-board keeps (references/the-sentence.md) and this repository's
|
|
6
6
|
* own agreement carries. `console use` prints it, since nothing tells an agent to look until the
|
|
7
|
-
* checkout says so, as `skillcdn use` prints the sentence for a pack.
|
|
7
|
+
* checkout says so, as `skillcdn use` prints the sentence for a pack. It says to run
|
|
8
|
+
* `console whoami` before the first step, where it once stated the two conditions alone: a
|
|
9
|
+
* condition nobody tested is passed over, and an agent in a checkout bound to a project its
|
|
10
|
+
* console did not have began the work with no task. The command changes nothing on the board,
|
|
11
|
+
* and is refused where the binding is wrong (ADR-0112), which is what stops the work. It ends
|
|
12
|
+
* on what `whoami` answers, which names the rules and the skill to read: it once ended on the
|
|
13
|
+
* command's help, and an agent that had the skill read the whole help as a third thing.
|
|
8
14
|
*/
|
|
9
|
-
export declare const THE_SENTENCE = "**Bound to a console?**
|
|
15
|
+
export declare const THE_SENTENCE = "**Bound to a console?** Before the first step, run `console whoami`: when it names a project, or `.skillcdn-console.json` is in this checkout, work the task through that SkillCDN console (its answer says how).";
|
|
10
16
|
export interface DirectorySettings {
|
|
11
17
|
/** The key of the project the directory's work belongs to. */
|
|
12
18
|
readonly project: string;
|
|
13
|
-
/** The origin of the console the directory is bound to; the default login when left out. */
|
|
19
|
+
/** The origin of the console the directory is bound to; the default login when left out, as a file from before ADR-0112 leaves it. */
|
|
14
20
|
readonly url?: string | undefined;
|
|
15
21
|
/** The account at that console, where several are signed in to it. */
|
|
16
22
|
readonly account?: string | undefined;
|
|
17
23
|
}
|
|
24
|
+
/** What a directory says, with where it was said: the working directory, or one above it. */
|
|
25
|
+
export interface DirectoryFound extends DirectorySettings {
|
|
26
|
+
/**
|
|
27
|
+
* The directory whose file said so, for `console whoami` to name (ADR-0112): a checkout that
|
|
28
|
+
* works in the wrong project is mended where the key came from, and a file of a folder above
|
|
29
|
+
* the checkout is the one nobody looks for. Left out by a store that keeps no files.
|
|
30
|
+
*/
|
|
31
|
+
readonly directory?: string | undefined;
|
|
32
|
+
}
|
|
18
33
|
export interface DirectoryStore {
|
|
19
34
|
/** The settings of the working directory, or of the nearest directory above it that has them. */
|
|
20
|
-
load(): Promise<
|
|
35
|
+
load(): Promise<DirectoryFound | undefined>;
|
|
21
36
|
/** Writes the settings into the working directory and answers where. */
|
|
22
37
|
save(settings: DirectorySettings): Promise<string>;
|
|
23
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../src/cli/directory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../src/cli/directory.ts"],"names":[],"mappings":"AAeA,iEAAiE;AACjE,eAAO,MAAM,cAAc,2BAA2B,CAAC;AAEvD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,sNAC4L,CAAC;AAKtN,MAAM,WAAW,iBAAiB;IAChC,8DAA8D;IAC9D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,sIAAsI;IACtI,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,sEAAsE;IACtE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAED,6FAA6F;AAC7F,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,cAAc;IAC7B,iGAAiG;IACjG,IAAI,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IAC5C,wEAAwE;IACxE,IAAI,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACpD;AAQD,6FAA6F;AAC7F,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,iBAAiB,GAAG,SAAS,CAUnF;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAyChE"}
|
package/dist/cli/directory.js
CHANGED
|
@@ -5,20 +5,27 @@ import * as z from "zod/mini";
|
|
|
5
5
|
// it or in a directory above it, as `.nvmrc` and its kind are found. Written by `console use`,
|
|
6
6
|
// and meant to be committed in a private repository, so that everyone who works in the
|
|
7
7
|
// checkout, and every agent they run in it, is in the same project without saying so; left out
|
|
8
|
-
// of a public one, since it
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
8
|
+
// of a public one, since it names the organization's console. It names the project and the
|
|
9
|
+
// console, every time `console use` writes it (ADR-0112): a file with the project alone, as it
|
|
10
|
+
// was written before, follows the default login of whichever machine reads it, which is
|
|
11
|
+
// another console's on the next. The account there only where one was asked for (ADR-0027).
|
|
12
|
+
// Never a token, a code or anything secret: the token for the console it names is looked up in
|
|
13
|
+
// the credentials the command keeps, and a key this file does not know is dropped on reading.
|
|
13
14
|
/** The file's name, in the working directory or one above it. */
|
|
14
15
|
export const DIRECTORY_FILE = ".skillcdn-console.json";
|
|
15
16
|
/**
|
|
16
17
|
* The sentence a checkout's agreement carries to send the agents working there to the console:
|
|
17
18
|
* the one the skill working-the-board keeps (references/the-sentence.md) and this repository's
|
|
18
19
|
* own agreement carries. `console use` prints it, since nothing tells an agent to look until the
|
|
19
|
-
* checkout says so, as `skillcdn use` prints the sentence for a pack.
|
|
20
|
+
* checkout says so, as `skillcdn use` prints the sentence for a pack. It says to run
|
|
21
|
+
* `console whoami` before the first step, where it once stated the two conditions alone: a
|
|
22
|
+
* condition nobody tested is passed over, and an agent in a checkout bound to a project its
|
|
23
|
+
* console did not have began the work with no task. The command changes nothing on the board,
|
|
24
|
+
* and is refused where the binding is wrong (ADR-0112), which is what stops the work. It ends
|
|
25
|
+
* on what `whoami` answers, which names the rules and the skill to read: it once ended on the
|
|
26
|
+
* command's help, and an agent that had the skill read the whole help as a third thing.
|
|
20
27
|
*/
|
|
21
|
-
export const THE_SENTENCE = "**Bound to a console?**
|
|
28
|
+
export const THE_SENTENCE = "**Bound to a console?** Before the first step, run `console whoami`: when it names a project, or `.skillcdn-console.json` is in this checkout, work the task through that SkillCDN console (its answer says how).";
|
|
22
29
|
/** How large the file may be before it is not read: a few names, never more. */
|
|
23
30
|
const MAX_FILE_CHARS = 16 * 1024;
|
|
24
31
|
const settingsSchema = z.object({
|
|
@@ -55,7 +62,8 @@ export function createDirectoryStore(cwd) {
|
|
|
55
62
|
return undefined;
|
|
56
63
|
}
|
|
57
64
|
try {
|
|
58
|
-
|
|
65
|
+
const settings = parseDirectorySettings(JSON.parse(content));
|
|
66
|
+
return settings === undefined ? undefined : { ...settings, directory };
|
|
59
67
|
}
|
|
60
68
|
catch {
|
|
61
69
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../src/cli/directory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,6FAA6F;AAC7F,+FAA+F;AAC/F,uFAAuF;AACvF,+FAA+F;AAC/F,2FAA2F;AAC3F
|
|
1
|
+
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../src/cli/directory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,6FAA6F;AAC7F,+FAA+F;AAC/F,uFAAuF;AACvF,+FAA+F;AAC/F,2FAA2F;AAC3F,+FAA+F;AAC/F,wFAAwF;AACxF,4FAA4F;AAC5F,+FAA+F;AAC/F,8FAA8F;AAE9F,iEAAiE;AACjE,MAAM,CAAC,MAAM,cAAc,GAAG,wBAAwB,CAAC;AAEvD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,YAAY,GACvB,mNAAmN,CAAC;AAEtN,gFAAgF;AAChF,MAAM,cAAc,GAAG,EAAE,GAAG,IAAI,CAAC;AA4BjC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3D,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SA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