@skillcdn/console 0.6.0 → 0.6.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 +7 -7
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +58 -35
- package/dist/agent-page.js.map +1 -1
- package/dist/agent-usage.d.ts +51 -0
- package/dist/agent-usage.d.ts.map +1 -0
- package/dist/agent-usage.js +77 -0
- package/dist/agent-usage.js.map +1 -0
- package/dist/api.d.ts +4 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +4 -2
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts +9 -2
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +491 -125
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +46 -4
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +163 -45
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +62 -13
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/machine-check.d.ts +24 -5
- package/dist/cli/machine-check.d.ts.map +1 -1
- package/dist/cli/machine-check.js +128 -16
- package/dist/cli/machine-check.js.map +1 -1
- package/dist/cli/pack.d.ts +11 -8
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +63 -28
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/runner-host.d.ts +2 -0
- package/dist/cli/runner-host.d.ts.map +1 -1
- package/dist/cli/runner-host.js +1 -0
- package/dist/cli/runner-host.js.map +1 -1
- package/dist/cli/secret-notes.d.ts.map +1 -1
- package/dist/cli/secret-notes.js +9 -1
- package/dist/cli/secret-notes.js.map +1 -1
- package/dist/cli/terminal.d.ts +10 -2
- package/dist/cli/terminal.d.ts.map +1 -1
- package/dist/cli/terminal.js +16 -4
- package/dist/cli/terminal.js.map +1 -1
- package/dist/client.d.ts +30 -7
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +13 -1
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +76 -18
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +183 -53
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/agents.d.ts +2 -0
- package/dist/components/agents.d.ts.map +1 -1
- package/dist/components/agents.js +6 -5
- package/dist/components/agents.js.map +1 -1
- package/dist/components/calendar.d.ts +24 -4
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +79 -36
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/categories.js +2 -2
- package/dist/components/categories.js.map +1 -1
- package/dist/components/comments.js +2 -2
- package/dist/components/comments.js.map +1 -1
- package/dist/components/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +5 -5
- package/dist/components/decision-list.js.map +1 -1
- package/dist/components/documents.d.ts.map +1 -1
- package/dist/components/documents.js +4 -4
- package/dist/components/documents.js.map +1 -1
- package/dist/components/event-feed.d.ts +2 -3
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +4 -184
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/goals.d.ts.map +1 -1
- package/dist/components/goals.js +3 -3
- package/dist/components/goals.js.map +1 -1
- package/dist/components/home.js +9 -9
- package/dist/components/home.js.map +1 -1
- package/dist/components/icon.d.ts.map +1 -1
- package/dist/components/icon.js +11 -2
- package/dist/components/icon.js.map +1 -1
- package/dist/components/notifications.d.ts +65 -0
- package/dist/components/notifications.d.ts.map +1 -0
- package/dist/components/notifications.js +162 -0
- package/dist/components/notifications.js.map +1 -0
- package/dist/components/pack-connect.js +1 -1
- package/dist/components/pack-connect.js.map +1 -1
- package/dist/components/pack-token.js +1 -1
- package/dist/components/pack-token.js.map +1 -1
- package/dist/components/people.js +2 -2
- package/dist/components/people.js.map +1 -1
- package/dist/components/pictures.js +1 -1
- package/dist/components/pictures.js.map +1 -1
- package/dist/components/plugin-settings.d.ts +22 -1
- package/dist/components/plugin-settings.d.ts.map +1 -1
- package/dist/components/plugin-settings.js +63 -11
- package/dist/components/plugin-settings.js.map +1 -1
- package/dist/components/projects.js +1 -1
- package/dist/components/projects.js.map +1 -1
- package/dist/components/roadmap.js +2 -2
- package/dist/components/roadmap.js.map +1 -1
- package/dist/components/rules.js +2 -2
- package/dist/components/rules.js.map +1 -1
- package/dist/components/runs.d.ts.map +1 -1
- package/dist/components/runs.js +1 -1
- package/dist/components/runs.js.map +1 -1
- package/dist/components/sessions.js +1 -1
- package/dist/components/sessions.js.map +1 -1
- package/dist/components/shell.d.ts +2 -0
- package/dist/components/shell.d.ts.map +1 -1
- package/dist/components/shell.js +1 -1
- package/dist/components/shell.js.map +1 -1
- package/dist/components/sign-in.js +2 -2
- package/dist/components/sign-in.js.map +1 -1
- package/dist/components/skills.d.ts.map +1 -1
- package/dist/components/skills.js +1 -1
- package/dist/components/skills.js.map +1 -1
- package/dist/components/task-view.d.ts +6 -0
- package/dist/components/task-view.d.ts.map +1 -1
- package/dist/components/task-view.js +3 -2
- package/dist/components/task-view.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 +21 -2
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +24 -3
- package/dist/components/ui.js.map +1 -1
- package/dist/components/work.js +1 -1
- package/dist/components/work.js.map +1 -1
- package/dist/console.css +506 -289
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +193 -16
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts +17 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +31 -0
- package/dist/data.js.map +1 -1
- package/dist/desk-page.js +5 -5
- package/dist/desk-page.js.map +1 -1
- package/dist/feed-words.d.ts +5 -0
- package/dist/feed-words.d.ts.map +1 -0
- package/dist/feed-words.js +193 -0
- package/dist/feed-words.js.map +1 -0
- package/dist/i18n/en.d.ts +93 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +103 -15
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +105 -22
- package/dist/i18n/ko.js.map +1 -1
- package/dist/icons/glyphs.d.ts +370 -104
- package/dist/icons/glyphs.d.ts.map +1 -1
- package/dist/icons/glyphs.js +72 -66
- package/dist/icons/glyphs.js.map +1 -1
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +9 -1
- package/dist/icons/index.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +7 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +7 -0
- package/dist/limits.js.map +1 -1
- package/dist/notifications.d.ts +124 -0
- package/dist/notifications.d.ts.map +1 -0
- package/dist/notifications.js +147 -0
- package/dist/notifications.js.map +1 -0
- package/dist/onboarding.d.ts.map +1 -1
- package/dist/onboarding.js +7 -12
- package/dist/onboarding.js.map +1 -1
- package/dist/plugin/capabilities.d.ts +1 -1
- package/dist/plugin/capabilities.d.ts.map +1 -1
- package/dist/plugin/capabilities.js +10 -0
- package/dist/plugin/capabilities.js.map +1 -1
- package/dist/plugin/context.d.ts +85 -1
- package/dist/plugin/context.d.ts.map +1 -1
- package/dist/plugin/limits.d.ts +7 -0
- package/dist/plugin/limits.d.ts.map +1 -1
- package/dist/plugin/limits.js +7 -0
- package/dist/plugin/limits.js.map +1 -1
- package/dist/plugin/manifest.d.ts +8 -0
- package/dist/plugin/manifest.d.ts.map +1 -1
- package/dist/plugin/manifest.js +13 -0
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +22 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +19 -3
- package/dist/plugin/rest-schemas.js.map +1 -1
- package/dist/plugin/testing.d.ts +2 -0
- package/dist/plugin/testing.d.ts.map +1 -1
- package/dist/plugin/testing.js +2 -0
- 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/router.d.ts +6 -0
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +5 -0
- package/dist/router.js.map +1 -1
- package/dist/routes.d.ts +2 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +2 -0
- package/dist/routes.js.map +1 -1
- package/dist/rules.js +1 -1
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts.map +1 -1
- package/dist/runner/acp.js +12 -97
- package/dist/runner/acp.js.map +1 -1
- package/dist/runner/browser.d.ts +50 -0
- package/dist/runner/browser.d.ts.map +1 -0
- package/dist/runner/browser.js +104 -0
- package/dist/runner/browser.js.map +1 -0
- package/dist/runner/claude.d.ts +1 -2
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +352 -13
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts +9 -10
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +809 -346
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/config.d.ts +14 -3
- package/dist/runner/config.d.ts.map +1 -1
- package/dist/runner/config.js +27 -7
- package/dist/runner/config.js.map +1 -1
- package/dist/runner/desk.d.ts +3 -1
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +17 -5
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/message.d.ts +53 -3
- package/dist/runner/message.d.ts.map +1 -1
- package/dist/runner/message.js +201 -20
- package/dist/runner/message.js.map +1 -1
- package/dist/runner/registry.d.ts +6 -0
- package/dist/runner/registry.d.ts.map +1 -1
- package/dist/runner/registry.js.map +1 -1
- package/dist/runner/rpc.d.ts +31 -0
- package/dist/runner/rpc.d.ts.map +1 -0
- package/dist/runner/rpc.js +102 -0
- package/dist/runner/rpc.js.map +1 -0
- package/dist/runner/runner.d.ts +41 -1
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +695 -52
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/slack.d.ts +17 -8
- package/dist/runner/slack.d.ts.map +1 -1
- package/dist/runner/slack.js +1250 -78
- package/dist/runner/slack.js.map +1 -1
- package/dist/runner/types.d.ts +160 -8
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js.map +1 -1
- package/dist/runner/usage.d.ts +105 -0
- package/dist/runner/usage.d.ts.map +1 -0
- package/dist/runner/usage.js +218 -0
- package/dist/runner/usage.js.map +1 -0
- package/dist/runner.d.ts +4 -4
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +3 -3
- package/dist/runner.js.map +1 -1
- package/dist/schemas.d.ts +673 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +205 -1
- package/dist/schemas.js.map +1 -1
- package/dist/services.js +3 -3
- package/dist/services.js.map +1 -1
- package/dist/setup-guide.d.ts +4 -3
- package/dist/setup-guide.d.ts.map +1 -1
- package/dist/setup-guide.js +11 -13
- package/dist/setup-guide.js.map +1 -1
- package/dist/text.d.ts +7 -0
- package/dist/text.d.ts.map +1 -1
- package/dist/text.js +18 -0
- package/dist/text.js.map +1 -1
- package/dist/vocabulary.d.ts +4 -2
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +4 -1
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +26 -19
- package/docs/specs/plugins.md +16 -10
- package/docs/specs/rest.md +28 -10
- package/docs/specs/runner.md +132 -44
- package/package.json +4 -4
- package/skills/building-a-console/SKILL.md +2 -2
- package/skills/building-a-console/references/configuring.md +1 -1
- package/skills/building-a-plugin/SKILL.md +4 -4
- package/skills/planning-the-board/SKILL.md +1 -1
- package/skills/planning-the-board/references/setting-up.md +2 -2
- package/skills/running-an-agent/SKILL.md +15 -64
- package/skills/running-an-agent/references/preparing-the-machine.md +17 -0
- package/skills/running-an-agent/references/several-tasks.md +37 -0
- package/skills/running-an-agent/references/slack-app.md +70 -13
- package/skills/running-an-agent/references/the-account-and-the-invitation.md +5 -0
- package/skills/running-an-agent/references/what-was-not-seen-run-yet.md +3 -0
- package/skills/running-an-agent/references/when-the-agent-could-not-go-on.md +16 -0
- package/skills/running-an-agent/references/your-first-task.md +14 -0
- package/skills/working-the-board/SKILL.md +9 -12
- package/skills/working-the-board/references/a-pack-skills-questions.md +3 -0
- package/skills/working-the-board/references/a-plugins-commands.md +3 -0
- package/skills/working-the-board/references/a-review.md +3 -0
- package/skills/working-the-board/references/an-open-run.md +3 -0
- package/skills/working-the-board/references/requirements.md +7 -0
- package/skills/working-the-board/references/the-pack.md +2 -2
- package/skills/working-the-board/references/what-they-were-told.md +3 -0
- package/skills/working-the-board/references/work-given-in-chat.md +5 -0
- package/src/agent-page.tsx +76 -47
- package/src/agent-usage.ts +113 -0
- package/src/api.ts +62 -0
- package/src/cli/cli.ts +634 -162
- package/src/cli/format.ts +190 -47
- package/src/cli/help.ts +77 -12
- package/src/cli/machine-check.ts +182 -29
- package/src/cli/pack.ts +81 -40
- package/src/cli/runner-host.ts +3 -0
- package/src/cli/secret-notes.ts +9 -1
- package/src/cli/terminal.ts +20 -4
- package/src/client.ts +94 -6
- package/src/components/agent-page.tsx +280 -63
- package/src/components/agents.tsx +23 -3
- package/src/components/calendar.tsx +93 -37
- package/src/components/categories.tsx +2 -2
- package/src/components/comments.tsx +5 -5
- package/src/components/decision-list.tsx +13 -10
- package/src/components/documents.tsx +13 -8
- package/src/components/event-feed.tsx +4 -203
- package/src/components/goals.tsx +6 -4
- package/src/components/home.tsx +12 -12
- package/src/components/icon.tsx +16 -3
- package/src/components/notifications.tsx +419 -0
- package/src/components/pack-connect.tsx +1 -1
- package/src/components/pack-token.tsx +5 -5
- package/src/components/people.tsx +3 -3
- package/src/components/pictures.tsx +1 -1
- package/src/components/plugin-settings.tsx +128 -23
- package/src/components/projects.tsx +1 -1
- package/src/components/roadmap.tsx +2 -2
- package/src/components/rules.tsx +2 -2
- package/src/components/runs.tsx +6 -3
- package/src/components/sessions.tsx +2 -2
- package/src/components/shell.tsx +3 -0
- package/src/components/sign-in.tsx +3 -3
- package/src/components/skills.tsx +5 -3
- package/src/components/task-view.tsx +18 -7
- package/src/components/tokens.tsx +2 -2
- package/src/components/ui.tsx +70 -5
- package/src/components/work.tsx +2 -2
- package/src/console.tsx +269 -12
- package/src/data.ts +54 -0
- package/src/desk-page.tsx +5 -5
- package/src/feed-words.ts +214 -0
- package/src/i18n/en.ts +114 -15
- package/src/i18n/ko.ts +115 -22
- package/src/icons/glyphs.ts +74 -68
- package/src/icons/index.ts +9 -1
- package/src/index.ts +11 -0
- package/src/limits.ts +7 -0
- package/src/notifications.ts +205 -0
- package/src/onboarding.ts +10 -14
- package/src/plugin/capabilities.ts +13 -0
- package/src/plugin/context.ts +87 -0
- package/src/plugin/limits.ts +7 -0
- package/src/plugin/manifest.ts +14 -0
- package/src/plugin/rest-schemas.ts +27 -3
- package/src/plugin/testing.ts +4 -0
- package/src/plugin.ts +2 -0
- package/src/router.ts +7 -0
- package/src/routes.ts +2 -0
- package/src/rules.ts +1 -1
- package/src/runner/acp.ts +12 -118
- package/src/runner/browser.ts +128 -0
- package/src/runner/claude.ts +399 -12
- package/src/runner/codex.ts +904 -400
- package/src/runner/config.ts +30 -7
- package/src/runner/desk.ts +22 -6
- package/src/runner/message.ts +251 -21
- package/src/runner/registry.ts +6 -0
- package/src/runner/rpc.ts +140 -0
- package/src/runner/runner.ts +863 -53
- package/src/runner/slack.ts +1535 -85
- package/src/runner/types.ts +150 -5
- package/src/runner/usage.ts +299 -0
- package/src/runner.ts +16 -1
- package/src/schemas.ts +249 -0
- package/src/services.ts +3 -3
- package/src/setup-guide.ts +12 -14
- package/src/styles/README.md +11 -7
- package/src/styles/console.css +2 -0
- package/src/styles/drawn-by-pages.json +7 -82
- package/src/styles/pages/agents.css +46 -35
- package/src/styles/pages/calendar.css +0 -1
- package/src/styles/pages/connect.css +0 -14
- package/src/styles/pages/decisions.css +2 -43
- package/src/styles/pages/documents.css +0 -29
- package/src/styles/pages/home.css +4 -16
- package/src/styles/pages/people.css +2 -17
- package/src/styles/pages/plugins.css +9 -12
- package/src/styles/pages/roadmap.css +0 -16
- package/src/styles/pages/settings.css +0 -28
- package/src/styles/pages/sign-in.css +2 -17
- package/src/styles/pages/thread.css +4 -50
- package/src/styles/pages/work.css +0 -5
- package/src/styles/parts/button.css +31 -0
- package/src/styles/parts/count.css +10 -0
- package/src/styles/parts/divider.css +17 -0
- package/src/styles/parts/frame.css +12 -0
- package/src/styles/parts/icon.css +39 -0
- package/src/styles/parts/menu.css +184 -0
- package/src/styles/parts/panel.css +7 -0
- package/src/styles/parts/progress.css +63 -0
- package/src/styles/parts/settings.css +2 -0
- package/src/styles/parts/sheet.css +28 -0
- package/src/styles/parts/text.css +34 -0
- package/src/text.ts +19 -0
- package/src/vocabulary.ts +4 -1
- package/template/plugin/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ const { items } = await client.tasks({ state: "ready" });
|
|
|
39
39
|
- **The bounds** every input is held to (`MAX_TITLE_LENGTH`, `MAX_BODY_LENGTH`, `MAX_OPTIONS`, ...), so that a page can say so before a request is made.
|
|
40
40
|
- **The routes:** `REST_ROUTES` (the workspace's resources), `AUTH_ROUTES`, and the helpers that build a path (`projectPath(key, collection, id)` for everything under a project, `projectIconPath(key, icon)` for a project's image, `restPath`, `loginPath`, `signInPath`). The API itself is described in [docs/specs/rest.md](https://github.com/skillcdn/console/blob/main/docs/specs/rest.md).
|
|
41
41
|
- **The schemas,** in the mini build of zod, which runs in a browser: what the server answers (`restProjectSchema`, `restMemberSchema`, `restTaskSchema`, `restDecisionSchema`, `restEventSchema`, `restMeSchema`, ...) and what it is sent (`restProjectInputSchema`, `restTaskInputSchema`, `restTaskPatchSchema`, `restDecisionInputSchema`, `restAnswerInputSchema`, ...). Absent values are `null` on the wire, never missing keys. The server validates with the input schemas and is tested against the others.
|
|
42
|
-
- **The client:** `createClient({ baseUrl, fetch })` answers typed values parsed with those schemas, and throws an `ApiError` with the server's stable `code` (or `network`, `invalid_response`) for anything else. It takes a `fetch` and reads nothing else. With `userAgent`, every request names the client: the command sends `skillcdn-console/<version>`, by which the console holds it to the versions it takes ([ADR-0025](https://github.com/skillcdn/console/blob/main/docs/adr/0025-the-command-names-its-version-on-every-request-and-the-console-holds-it-to-the-range-it-takes.md)); `me()` answers the console's version and that range as `console`, and the `compat` module (`parseVersion`, `compareVersions`, `judgeClient`, `clientRange`, `commonRange`, `judgeConsole`, `consoleRange`, `userAgentOf`, `clientVersionOf`, the headers `VERSION_HEADER` and `CLIENT_RANGE_HEADER`, `CLIENT_POLICY`, the oldest command a console answers, by which the package narrows the common rule and never widens it, and `CONSOLE_AT_LEAST`, the oldest console the command works with; within a line of SkillCDN the two go together whatever the patch, and a release that changes what passes between them raises the floors, ADR-0038) is exported for a console or a script that compares itself with it. With `token`, a token a person made on their Agents page, every request carries `Authorization: Bearer` and no cookie: how a script or a console of a person's own acts as that person, configuring included (`createProject`, `updatePerson`, a project's `update`, `setIcon`, `addMember`, `updateMember` and `removeMember`, `createCategory`, `updateCategory` and `removeCategory`), within the person's own roles; only the tokens themselves and the approval of a connection are a session's, except that a token gives itself up with `giveUpToken` ([ADR-0021](https://github.com/skillcdn/console/blob/main/docs/adr/0021-a-token-configures-as-its-person-does.md)). The board is a project's: `client.projects()` lists those the person may see, and `client.project(key)` is the client of one, with its tasks, decisions, goals, runs, files, events, skills (`skills`, the pack by name and by count with its skills and, for a program, what the address serves as `@skillcdn/core` spells it; `skill`, `skillFile`, `skillBrowse` and `skillFind`, each answering what the pack answered as `read`, a `RestSkill`, `RestFile`, `RestBrowse` or `RestFind` of `@skillcdn/core`, with the pack's own refusal beside the status, ADR-0031; `skillRows` and `skillCode`, a page of the tables or of the fenced code blocks of a document, or of every document under a folder, as data, a `RestRows` or a `RestCode`, ADR-0100), documents, settings, members and image (`setIcon`, `removeIcon`). `glance()` is what the project's tile at a glance shows on the front page, in one answer read at one moment (`RestProjectGlance`, ADR-0107): its tasks counted by state, the decisions waiting, and its tasks in progress, its tasks in review and its goals ahead, ordered and cut by the console, `GLANCE_ROWS` at most, each with how many there are in all. `tasks(filter)` narrows the board (`TaskFilter`: a state, the open ones, a category's key, a goal, a worker, a day tasks are due by, and `q`, words of the title or a number, how a task is found by searching) and pages it (`Page`: `limit` and `offset`; the answer carries `more`), as `decisions(filter)`, `runs(filter)` and `goals(filter)` are paged; a task carries its `owner` and its `workers` (any number, ADR-0037), its `category`, `goalId`, its plan (`startsOn`, `dueOn`) and its moments (`startedAt`, `doneAt`). The roadmap is `goals(filter)` (`GoalFilter`: a state, the open ones, a category's key, `q` and a page), `goal(id)`, `createGoal` and `updateGoal`; the workspace's categories are `client.categories()`, `createCategory`, `updateCategory` and `removeCategory`; `client.work()` is what is on the person's plate across their projects ([ADR-0019](https://github.com/skillcdn/console/blob/main/docs/adr/0019-a-task-is-planned-in-days-the-board-keeps-its-moments-and-goals-and-categories-give-the-work-its-shape.md)). The documents go by path: `documents({ folder })` lists a folder, `documents({ q })` finds pages by their words, `document(path)` reads one with its links both ways and its files, `writeDocument(path, { title, body, baseVersion })` writes a version, `archiveDocument`, `restoreDocument`, `documentVersions`, `documentVersion(path, n)`, `attachFile(path, upload)` and `documentFileUrl(path, id)` do the rest; `updateDecision(id, { outcome })` grows a decision's record. The rules of the board ([ADR-0023](https://github.com/skillcdn/console/blob/main/docs/adr/0023-the-rules-of-a-board-are-pages-the-workspace-and-its-projects-keep-read-first-by-every-agent.md)) are `client.rules()`, `writeRules`, `archiveRules` and `rulesVersions`, for the workspace's, and a project's `rules()`, which answers the workspace's with the project's own; a project's are written as the page `rules`. `CONSOLE_RULES` is what always holds, `rulesWith` reads it whole with what an organization adds, and `addedRulesOf` takes from a text what it adds; `fillRules` fills `{language}` (`RULES_LANGUAGE_PLACEHOLDER`) with the name of a person's language, which `languageNameOf` gives from its tag. `agentLabel` is an agent's name before where it runs, what the pages show of "Claude Code on a laptop". `connect`, `connectRequest`, `approveConnection`, `denyConnection` and `claimConnection` are the two sides of an agent connecting with a code a person approves (ADR-0011), and `personTokens` and `revokePersonToken` an administrator's sight of everyone's agents. An `EventSource` cannot carry a header, so a stream read with a token is a `fetch` of `eventStreamUrl(after)`. `handInFile` sends a file as a form, and `fileUrl` says where its bytes are read back; a file put on a decision is read at the decision's own address too, `decisionFileUrl(decisionId, fileId)` (`decisionFilePath` among the routes), by whoever the decision reaches, in a project they may see or not ([ADR-0068](https://github.com/skillcdn/console/blob/main/docs/adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)). `events(after, { task })` is everything that happened to one task.
|
|
42
|
+
- **The client:** `createClient({ baseUrl, fetch })` answers typed values parsed with those schemas, and throws an `ApiError` with the server's stable `code` (or `network`, `invalid_response`) for anything else. It takes a `fetch` and reads nothing else. With `userAgent`, every request names the client: the command sends `skillcdn-console/<version>`, by which the console holds it to the versions it takes ([ADR-0025](https://github.com/skillcdn/console/blob/main/docs/adr/0025-the-command-names-its-version-on-every-request-and-the-console-holds-it-to-the-range-it-takes.md)); `me()` answers the console's version and that range as `console`, and the `compat` module (`parseVersion`, `compareVersions`, `judgeClient`, `clientRange`, `commonRange`, `judgeConsole`, `consoleRange`, `userAgentOf`, `clientVersionOf`, the headers `VERSION_HEADER` and `CLIENT_RANGE_HEADER`, `CLIENT_POLICY`, the oldest command a console answers, by which the package narrows the common rule and never widens it, and `CONSOLE_AT_LEAST`, the oldest console the command works with; within a line of SkillCDN the two go together whatever the patch, and a release that changes what passes between them raises the floors, ADR-0038) is exported for a console or a script that compares itself with it. With `token`, a token a person made on their Agents page, every request carries `Authorization: Bearer` and no cookie: how a script or a console of a person's own acts as that person, configuring included (`createProject`, `updatePerson`, a project's `update`, `setIcon`, `addMember`, `updateMember` and `removeMember`, `createCategory`, `updateCategory` and `removeCategory`), within the person's own roles; only the tokens themselves and the approval of a connection are a session's, except that a token gives itself up with `giveUpToken` ([ADR-0021](https://github.com/skillcdn/console/blob/main/docs/adr/0021-a-token-configures-as-its-person-does.md)). The board is a project's: `client.projects()` lists those the person may see, and `client.project(key)` is the client of one, with its tasks, decisions, goals, runs, files, events, skills (`skills`, the pack by name and by count with its skills and, for a program, what the address serves as `@skillcdn/core` spells it; `skill`, `skillFile`, `skillBrowse` and `skillFind`, each answering what the pack answered as `read`, a `RestSkill`, `RestFile`, `RestBrowse` or `RestFind` of `@skillcdn/core`, with the pack's own refusal beside the status, ADR-0031; `skillRows` and `skillCode`, a page of the tables or of the fenced code blocks of a document, or of every document under a folder, as data, a `RestRows` or a `RestCode`, ADR-0100), documents, settings, members and image (`setIcon`, `removeIcon`). `glance()` is what the project's tile at a glance shows on the front page, in one answer read at one moment (`RestProjectGlance`, ADR-0107): its tasks counted by state, the decisions waiting, and its tasks in progress, its tasks in review and its goals ahead, ordered and cut by the console, `GLANCE_ROWS` at most, each with how many there are in all. `tasks(filter)` narrows the board (`TaskFilter`: a state, the open ones, a category's key, a goal, a worker, a day tasks are due by, and `q`, words of the title or a number, how a task is found by searching) and pages it (`Page`: `limit` and `offset`; the answer carries `more`), as `decisions(filter)`, `runs(filter)` and `goals(filter)` are paged; a task carries its `owner` and its `workers` (any number, ADR-0037), its `category`, `goalId`, its plan (`startsOn`, `dueOn`) and its moments (`startedAt`, `doneAt`). The roadmap is `goals(filter)` (`GoalFilter`: a state, the open ones, a category's key, `q` and a page), `goal(id)`, `createGoal` and `updateGoal`; the workspace's categories are `client.categories()`, `createCategory`, `updateCategory` and `removeCategory`; `client.work()` is what is on the person's plate across their projects ([ADR-0019](https://github.com/skillcdn/console/blob/main/docs/adr/0019-a-task-is-planned-in-days-the-board-keeps-its-moments-and-goals-and-categories-give-the-work-its-shape.md)). What a member is told of ([ADR-0157](https://github.com/skillcdn/console/blob/main/docs/adr/0157-the-console-decides-who-is-told-of-what-and-keeps-the-record-and-a-plugin-carries-it-out.md)) is `client.notifications(filter)`, a page of them, the newest first; `readNotifications({ ids })`, or `({ all: true })`, marks them read and answers the moment it read them at (`at`); `notificationSettings()` and `updateNotificationSettings(input)` read and change the kinds, the projects turned off and whether one's own agents count, which are of everything a member is told: what a plugin that carries notifications elsewhere sends of it is that plugin's own setting, and none here. A task's bell is the project's `taskFollow(ref)`, which answers `{ on, usual, all }`, and `followTask(ref, on)`; `taskToldByDefault`, `taskTold` and `taskFollowToKeep` are the rule the console holds it by, with `TASK_KINDS_OF`, the kinds a task goes on telling its owner and its workers under. The documents go by path: `documents({ folder })` lists a folder, `documents({ q })` finds pages by their words, `document(path)` reads one with its links both ways and its files, `writeDocument(path, { title, body, baseVersion })` writes a version, `archiveDocument`, `restoreDocument`, `documentVersions`, `documentVersion(path, n)`, `attachFile(path, upload)` and `documentFileUrl(path, id)` do the rest; `updateDecision(id, { outcome })` grows a decision's record. The rules of the board ([ADR-0023](https://github.com/skillcdn/console/blob/main/docs/adr/0023-the-rules-of-a-board-are-pages-the-workspace-and-its-projects-keep-read-first-by-every-agent.md)) are `client.rules()`, `writeRules`, `archiveRules` and `rulesVersions`, for the workspace's, and a project's `rules()`, which answers the workspace's with the project's own; a project's are written as the page `rules`. `CONSOLE_RULES` is what always holds, `rulesWith` reads it whole with what an organization adds, and `addedRulesOf` takes from a text what it adds; `fillRules` fills `{language}` (`RULES_LANGUAGE_PLACEHOLDER`) with the name of a person's language, which `languageNameOf` gives from its tag. `agentLabel` is an agent's name before where it runs, what the pages show of "Claude Code on a laptop". `connect`, `connectRequest`, `approveConnection`, `denyConnection` and `claimConnection` are the two sides of an agent connecting with a code a person approves (ADR-0011), and `personTokens` and `revokePersonToken` an administrator's sight of everyone's agents. An `EventSource` cannot carry a header, so a stream read with a token is a `fetch` of `eventStreamUrl(after)`. `handInFile` sends a file as a form, and `fileUrl` says where its bytes are read back; a file put on a decision is read at the decision's own address too, `decisionFileUrl(decisionId, fileId)` (`decisionFilePath` among the routes), by whoever the decision reaches, in a project they may see or not ([ADR-0068](https://github.com/skillcdn/console/blob/main/docs/adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)). `events(after, { task })` is everything that happened to one task.
|
|
43
43
|
|
|
44
44
|
### The command line
|
|
45
45
|
|
|
@@ -68,10 +68,10 @@ console serve dist # a console of your own, built
|
|
|
68
68
|
- **The project's documents** are the agent's to read and write: `docs`, `doc`, `write`, `attach`, `archive` and `restore`, by path; a link in a body to a page's path refers to the page.
|
|
69
69
|
- **Every command on the board works in one project:** `--project <key>`, else `CONSOLE_PROJECT`, else what `console use <key>` wrote to `.skillcdn-console.json` in the working directory or one above it: the project and the console's address, never a token, a file meant to be committed in a private repository. `console whoami` asks the console for that project and says what named it. `console projects` lists the projects the person may work in.
|
|
70
70
|
- **`console serve [<dir>] [--port <n>] [--records <dir>]`** is for a person: it serves [a console of your own](#a-console-of-your-own) from your machine, the build in `<dir>` at `http://127.0.0.1:11197/`, and carries everything under `/api/` to the console the command is signed in to, with your token, which the pages never see ([ADR-0014](https://github.com/skillcdn/console/blob/main/docs/adr/0014-a-persons-own-console-is-served-from-their-machine-by-the-command.md)). With `--records`, what a desk keeps under that directory is served at `/records/` beside the build, read at each request, for the desk's pages ([ADR-0117](https://github.com/skillcdn/console/blob/main/docs/adr/0117-a-desk-keeps-records-of-what-its-member-made-as-files-the-desks-pages-read.md)). The loopback only; a request from another site's page is refused, but for the files of a plugin's frame, the plugin's bundle and the console's stylesheet and faces for frames: a frame is sandboxed, its origin no page's, and the console answers those files to anyone, so the command carries a `GET` of one whatever page asks and with no token, and a plugin's pages and widgets are drawn as on the console. Without a directory only the API is served, for a development server.
|
|
71
|
-
- **Agent accounts** ([ADR-0084](https://github.com/skillcdn/console/blob/main/docs/adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)) are made, set up and supervised with the same command ([its commands](https://github.com/skillcdn/console/blob/main/docs/specs/cli.md#commands-for-agent-accounts)): `agents`, `agent new` and `agent invite` for an administrator; on the agent's own machine `agent setup`, the one line an invitation carries, and then `console runner`, which a service of the machine keeps running; `agent tell`, `interrupt`, `stop`, `restart`, `reset`, `wake` and `set` for its supervisors, with `agent signals` for the record of what it was sent; and for the account itself `secrets` and `secret <name>`, its own store,
|
|
71
|
+
- **Agent accounts** ([ADR-0084](https://github.com/skillcdn/console/blob/main/docs/adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)) are made, set up and supervised with the same command ([its commands](https://github.com/skillcdn/console/blob/main/docs/specs/cli.md#commands-for-agent-accounts)): `agents`, `agent new` and `agent invite` for an administrator; on the agent's own machine `agent setup`, the one line an invitation carries, and then `console runner`, which a service of the machine keeps running; `agent tell`, `interrupt`, `stop`, `restart`, `reset`, `wake` and `set` for its supervisors, with `agent signals` for the record of what it was sent; and for the account itself `secrets` and `secret <name>`, its own store, `agent wake me`, a wake now or at a moment to come, and `agent reset me`, a new conversation where its work has a break, begun when its turn is over.
|
|
72
72
|
- **The guide of an agent account's setup** ([ADR-0088](https://github.com/skillcdn/console/blob/main/docs/adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)) is made by `setupGuideOf` from what an invitation's code opens (`client.agentSetup(code)`), and printed by `setupGuideText`; `SetupGuideView` shows it, `AgentInvitationPanel` is the invitation under an account, and `setupCommandOf` and `setupSentenceOf` spell the command and the one line said on the machine. The default console shows the guide at `/setup/<code>` (`setupHref`) to a browser that is signed in nowhere.
|
|
73
73
|
- **`console desk [<directory>] [--web]`** is for a person: it writes a desk of your own, the folder `desk` your agent begins in, and with `--web` the shell of [your desk's pages](#a-desks-pages); `console desk check` says whether the records a desk keeps read right.
|
|
74
|
-
- **`@skillcdn/console/runner`** is what `console runner` is made of ([docs/specs/runner.md](https://github.com/skillcdn/console/blob/main/docs/specs/runner.md)), for a console of one's own that drives another product or a test that runs a runner against a console: `createRunner(options)`, which takes a `ConsoleClient` on the account's command, a `Driver`, its `runner.json` and what it needs of the machine; the `Driver`, `DriverSession` and `DriverEvent` types a driver is written to, `createClaudeDriver`, `createCodexDriver` and `createSpawn`; `createRunnerModules` and `ownRunnerModules`, the four registries a module is known by; `composeSignals`, `headerOf` and `introOf`, how a signal reaches the agent; `redactorOf`, which takes the values of a secret store out of a text in the encodings they are carried in, and `cutShown`, which cuts a text to a length once they are out, what a session hands its driver as `cut` so that no part of a secret stands where a driver cut a text, with `cutShownEnd`, which keeps the end of one the same way, handed as `cutEnd`, and `errorsShown`, which shows the end of what a product wrote on its standard error through it (`plainCut` and `plainCutEnd` where a driver is handed neither); `parseRunnerConfig`; `launchd`, `systemdUser` and `taskScheduler`, the services that keep a runner running on macOS, on Linux and on Windows, each as a plan of what to write and to run; and `deskFiles`, the template of an agent account's desk, with `deskServicesOf` for what it says of the workspace's services, `personDeskFiles`, the template of a person's, and `DESK_FOLDER`, what a desk's folder is called. Both templates are the least: the instructions and a structure, and no form of a thing to keep.
|
|
74
|
+
- **`@skillcdn/console/runner`** is what `console runner` is made of ([docs/specs/runner.md](https://github.com/skillcdn/console/blob/main/docs/specs/runner.md)), for a console of one's own that drives another product or a test that runs a runner against a console: `createRunner(options)`, which takes a `ConsoleClient` on the account's command, a `Driver`, its `runner.json` and what it needs of the machine; the `Driver`, `DriverSession` and `DriverEvent` types a driver is written to, `createClaudeDriver`, `createCodexDriver` and `createSpawn`; `createRunnerModules` and `ownRunnerModules`, the four registries a module is known by; `composeSignals`, `headerOf` and `introOf`, how a signal reaches the agent, with `wakeTextOf` and `wakePartsOf`, how the parts a wake source raised, its own lines and what someone wrote (`WakePart`), are written as the text of a signal and read back; `redactorOf`, which takes the values of a secret store out of a text in the encodings they are carried in, and `cutShown`, which cuts a text to a length once they are out, what a session hands its driver as `cut` so that no part of a secret stands where a driver cut a text, with `cutShownEnd`, which keeps the end of one the same way, handed as `cutEnd`, and `errorsShown`, which shows the end of what a product wrote on its standard error through it (`plainCut` and `plainCutEnd` where a driver is handed neither); `parseRunnerConfig`; `launchd`, `systemdUser` and `taskScheduler`, the services that keep a runner running on macOS, on Linux and on Windows, each as a plan of what to write and to run; and `deskFiles`, the template of an agent account's desk, with `deskServicesOf` for what it says of the workspace's services, `personDeskFiles`, the template of a person's, and `DESK_FOLDER`, what a desk's folder is called. Both templates are the least: the instructions and a structure, and no form of a thing to keep.
|
|
75
75
|
- **`@skillcdn/console/cli`** exports `runCli(argv, io)`, the command as a function that takes its environment, its streams, its `fetch` and its credential store: what the integration tests run against the app with no socket, and what a console of a person's own could embed.
|
|
76
76
|
|
|
77
77
|
### Writing a plugin
|
|
@@ -102,9 +102,9 @@ createConsole({
|
|
|
102
102
|
}).mount(document.getElementById("root"));
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
- **The components** take their data as props and nothing from the network: `Board` (one column per state, the sooner due first; given `onMove`, a card is dragged to another column with a mouse, or with a finger that rests on it a moment first, and the board scrolls on while the card is held near its edge, still or moving, as `edgeScrollOf` meters it; given `editHref` and `onArchive`, each card has a menu with the way to the task's form and, once it is done or dropped, the way to put it away; the columns `folded` names, `FOLDED_STATES`, done and dropped, by default, are strips with their count and the way to open them, still taking a card dragged onto them, and `[]` folds none), `TaskCard`, `BoardFilters` with `filterTasks` and `byDue` (the board narrowed by category, goal, person and one's own), `TaskList` (tasks as rows, a page at a time), `TaskView` (one task with its plan, its moments, its workers, its decisions and its parts, the ways to its forms in its head beside the title; given `parent`, the task it is part of when the page has read it, and `findTasks` and `findGoals`, its form searches), `TaskForm` (with the `categories` to choose from, the `people` to put on the task as its workers, and `findTasks` and `findGoals`, searches a page at a time by which the task it is part of and the goal it works towards are found, never offered whole, ADR-0037), `Calendar` and `Workload` with `workloadOf` (a month with each task across its planned days, a bar in a lane of its own, or on its one day, a due day or a start, three of a day's own and the way to the rest where it has more, the person who has each before its title, with a legend of the colours of the `categories` given, and who has what; `weekSegments` lays the bars; `TaskTip` is the task under the pointer in full, with the facts its page lists, within its item and above or below it as `placeTip` says, where there is more room, its goal named from the `goals` given; the composition narrows the page with `BoardFilters` as it does the board, the address carrying the filter with the month), `GoalList`, `GoalView` and `GoalForm` (the roadmap, one goal with its tasks by state, and the way to set one, with the `categories` to sort it into and its start and target days, ADR-0026), `GoalTimeline` with `timelineBars` (the roadmap as months: six from the month given, each goal planned in days a bar from its start to its target in the colour of its category, filled as far as its tasks are done, today marked, and the goals without days named below; `Calendar` given `goalHref` marks each goal's target day on the month), `WorkList` (a person's own work across projects), `MyDecisions` (a person's decisions across their projects: those addressed to them, the waiting first, and those they asked of others, each row naming who asked and who answers, ADR-0042; the files put on a decision read at the decision's own address, since it may be of a project the person may not see, ADR-0068, unless `fileHref(projectKey, fileId, decisionId)` says where), `CategoryList` (the categories, with the ways an administrator keeps them), `DecisionList` and `DecisionCard` (the waiting ones as cards, each with the way to answer, one of the options or a line of one's own, and, given `addressing`, the way to say anew whom it is for, [ADR-0096](https://github.com/skillcdn/console/blob/main/docs/adr/0096-a-decision-that-waits-may-be-addressed-anew-by-whoever-may-answer-it.md): the people to name, given or read when the form opens, and `onAddress`; the answered ones as the record, `DecisionLog`, a row each with who asked and when, through which agent, the answer with the word given, marked when it is the person's own, and who answered and when, twenty to a page, each page at an address given `pageHref` and `page`, or turned in place), `DecisionForm` (about the task given as `taskId`, or one found by search through `findTasks`, a page at a time, ADR-0037; addressed to `me` unless one of `deciders`, the people who may be named, is chosen, ADR-0042), `EventFeed` (a sentence per event, newest first, a page at a time; `describeEvent` makes the sentence), `Shell` (the header with the workspace, the project, the tabs of the pages and the person's menu), `SignIn` (one button per provider the deployment offers), `TokenList`, `TokenForm` and `NewToken` (the agents a person connected, as the tokens they hold, the way to make one by hand, and the one just made with its secret shown once), `SessionList` (the browsers a person is signed in on, each with what it is, when it was last used, where from and the day it signed in, the current one marked, and the ways to sign any other out, or all the others at once; the Sessions view of the settings), `ConnectCodeForm`, `ConnectApproval` and `ConnectWords` (an agent connecting with a code: where the code is typed, what asks under it with the way to approve or refuse it, and what to tell the agent; `ConnectPage` composes the first two for a code), `PeopleList` (everyone in, with what each is and what let them in, the logins let in that nobody signed in with yet, and the deactivated, each a card whose facts, their role, their manager, their work email, whom they manage and their teams, read as values in one column and are changed in place by an administrator, with the ways to take a person out or back in, put them in a team or take them out of one, and take a listing away), `ListingForm` (where an administrator lets someone in by login), `TeamList` (the teams, ADR-0073, a card each with how many are in it and who, a chip each, the name written anew in its place, a person added from the end of the row and taken out from their chip, and the way to delete a team) and `TeamForm` (where an administrator makes one), `HomeGrid` and `ProjectTile` (the front page, ADR-0061: the projects and the plugins' widgets as tiles on one grid of square cells, each at a place the person chose, taken in hand with a mouse or a finger that rests on it a moment first and put down on any cell, those in the way moving aside, with the way off the page and the sizes each comes in; `homeTiles`, `arranged`, `moved` and the rest in the package's `home-tiles.ts` read the arrangement; a project at `medium`, `large` or `wide` is a glance at its board, ADR-0105, from the `glances` the grid is given by the project's id, each the one answer of `client.project(key).glance()`, a `ProjectGlance`, ADR-0107, which it asks for through `onGlance` with the projects it shows so, an empty list when it shows none; `createGlanceReader` reads them for a composition of your own, once for each reading, a failed read tried again and a late answer dropped; `glanceProjects` names the projects shown so, and `glanceFit` gives out the rows a room holds by the heights of `GLANCE_REM`), `ProjectMark` (a project's mark: its own image when it has one, else its symbol on its colour, or the ones chosen from its key and its name; `sm`, `md` or `lg`), `ProjectForm` and `MemberList` (the way to make or change a project, its mark included, with an image chosen for it (`onSubmit` gets the file, or `null` to take the image away), and those listed in a project with the way for an owner to add, change and remove them; `ProjectRoleBadge`, `PROJECT_ROLE_LABELS`, `VISIBILITY_LABELS` and `keyOf` with them), `PackTokenForm`, `PackConnect` and `PackTokenWays` (the SkillCDN token a private pack is read with: pasted, or connected with a code approved at SkillCDN, the console asked again at the interval the deployment named; and the two ways side by side, as a project's Settings page and the workspace's offer them), `WorkspaceSettingsView` and `WorkspaceSettingsForm` (the workspace's settings as rows: who sees whom, the day the week begins on, the time zone, picked by area with `timeZoneGroups`, `deviceTimeZone` and `offsetOf`, and the language for whoever has none of their own; the view, given `console`, what `me.console` says, names the console's version and the range of command versions it takes first), `SkillList` (a project's skills as SkillCDN serves them at its address, each with where a person reads it and what an agent loads it by, and how an agent is connected to it), `RulesView` and `RulesForm` (the rules of the board, ADR-0023: what holds and where it comes from, the console's own, a page written or none, with `{language}` filled with the language the pages speak, folded under its facts where asked, and the ways to write them, put them away and go back to the console's own for whoever may; the form starts from what holds and saves nothing that would change nothing), `FolderView`, `DocumentList`, `DocumentSearch`, `DocumentView`, `DocumentForm`, `DocumentFiles` and `DocumentCrumbs` (a project's documents: a folder's folders and pages, the way to find pages by their words, one page with its versions, what it links to, what refers to it and its files, a picture among them shown where the body names it, and the forms to write and attach, a picture pasted into the body attached once the page is written; `DocsPage` composes them for a path), `RunList` and `RunCard` (an agent's run on a task: what it reported, what it handed in, links and files alike, a picture among them small and large as a comment's is and placed in a report by its file name, what it waits for, and when an open one was last heard from; `RunStatusBadge` and `RUN_STATUS_LABELS` with them, and `fileHref` for where a file is read), `TaskThread`, `CommentCard` and `CommentForm` (the discussion on a task, ADR-0024: the comments, the runs and the decisions as one thread in the order they came, which `threadOf` orders, each comment with who said it, through which agent, its text with the pictures it names in place and its other files after it, pictures being what `isPicture` says, and the form at the end, where a picture pasted in goes with the comment; `TaskView` shows the thread given `comments` and `onComment`, and its `fileHref` names any file of the project by its id), and `Markdown`, which renders what people and agents wrote as elements, never as HTML, with links to the web only and pictures over https only, or, given `fileSrc`, from the file of that name, and, given `docHref`, a link to a page's path as a link to the page. `DecisionCard` reads as a record, with the context, the rationale and what followed, which `onUpdate` lets a person write. The small blocks (`Button`, `LinkButton` (a link that reads as a button), `CopyButton` (a text put on the clipboard), `Badge`, `Avatar` (`xs` to `lg`), `PersonChip` with `personName` (a person by the name the host gives, the login where there is none), `Callout`, `EmptyState`, `Spinner`, `Time`, `Day`, `CategoryBadge`, `DueBadge`, `GoalStateBadge`, `ProgressBar`, `ShowMore` with `usePaged` and `PAGE_SIZE`, a long list growing a page at a time, `Pager` with `pageOf` and `RECORD_PAGE_SIZE`, a list turned by pages, `Picker` with `PICKER_PAGE_LIMIT`, one thing chosen out of a listing searched a page at a time and standing as a chip once chosen, which is how a person, a project or a goal is chosen wherever one is, with `peopleSearch`, `projectsSearch`, `goalsSearch` and `listSearch` searching a listing the page already holds, and the `className` `sc-picker-quiet` for a fact changed in place or `sc-picker-add` for the way to add one more at the end of a row of chips, `Chip`, a thing named among others in a row, a person, a team, an item of a list, a holder of a role, with the way to take it out where it can be, and `Workers`, the people at work on a task as pictures side by side with a count of the rest), the words of the vocabulary (`STATE_LABELS`, `PRIORITY_LABELS`, `ROLE_LABELS`, with `RoleBadge`) and the day helpers (`today`, `addDays`, `daysBetween`, `monthGrid`, `formatDay`, `formatMonth` and the rest, days being the strings the API spells them as) are exported too.
|
|
105
|
+
- **The components** take their data as props and nothing from the network: `Board` (one column per state, the sooner due first; given `onMove`, a card is dragged to another column with a mouse, or with a finger that rests on it a moment first, and the board scrolls on while the card is held near its edge, still or moving, as `edgeScrollOf` meters it; given `editHref` and `onArchive`, each card has a menu with the way to the task's form and, once it is done or dropped, the way to put it away; the columns `folded` names, `FOLDED_STATES`, done and dropped, by default, are strips with their count and the way to open them, still taking a card dragged onto them, and `[]` folds none), `TaskCard`, `BoardFilters` with `filterTasks` and `byDue` (the board narrowed by category, goal, person and one's own), `TaskList` (tasks as rows, a page at a time), `TaskView` (one task with its plan, its moments, its workers, its decisions and its parts, the ways to its forms in its head beside the title; given `parent`, the task it is part of when the page has read it, and `findTasks` and `findGoals`, its form searches), `TaskForm` (with the `categories` to choose from, the `people` to put on the task as its workers, and `findTasks` and `findGoals`, searches a page at a time by which the task it is part of and the goal it works towards are found, never offered whole, ADR-0037), `Calendar` and `Workload` with `workloadOf` (a month with each task across its planned days, a bar in a lane of its own, or on its one day, a due day or a start, and a task with no day of its plan on the days it was worked, from when the board kept it as started through today while it is in progress, and else through when its last run ended or it was done, as `daysOf` reads them and never writes them, ADR-0159; three of a day's own and the way to the rest where it has more, the person who has each before its title, with a legend of the colours of the `categories` given, and who has what; `weekSegments` lays the bars, counted from the day given as today; `TaskTip` is the task under the pointer in full, with the facts its page lists, within its item and above or below it as `placeTip` says, where there is more room, its goal named from the `goals` given; the composition narrows the page with `BoardFilters` as it does the board, the address carrying the filter with the month), `GoalList`, `GoalView` and `GoalForm` (the roadmap, one goal with its tasks by state, and the way to set one, with the `categories` to sort it into and its start and target days, ADR-0026), `GoalTimeline` with `timelineBars` (the roadmap as months: six from the month given, each goal planned in days a bar from its start to its target in the colour of its category, filled as far as its tasks are done, today marked, and the goals without days named below; `Calendar` given `goalHref` marks each goal's target day on the month), `WorkList` (a person's own work across projects), `MyDecisions` (a person's decisions across their projects: those addressed to them, the waiting first, and those they asked of others, each row naming who asked and who answers, ADR-0042; the files put on a decision read at the decision's own address, since it may be of a project the person may not see, ADR-0068, unless `fileHref(projectKey, fileId, decisionId)` says where), `CategoryList` (the categories, with the ways an administrator keeps them), `DecisionList` and `DecisionCard` (the waiting ones as cards, each with the way to answer, one of the options or a line of one's own, and, given `addressing`, the way to say anew whom it is for, [ADR-0096](https://github.com/skillcdn/console/blob/main/docs/adr/0096-a-decision-that-waits-may-be-addressed-anew-by-whoever-may-answer-it.md): the people to name, given or read when the form opens, and `onAddress`; the answered ones as the record, `DecisionLog`, a row each with who asked and when, through which agent, the answer with the word given, marked when it is the person's own, and who answered and when, twenty to a page, each page at an address given `pageHref` and `page`, or turned in place), `DecisionForm` (about the task given as `taskId`, or one found by search through `findTasks`, a page at a time, ADR-0037; addressed to `me` unless one of `deciders`, the people who may be named, is chosen, ADR-0042), `EventFeed` (a sentence per event, newest first, a page at a time; `describeEvent` makes the sentence), `Shell` (the header with the workspace, the project, the tabs of the pages and the person's menu, with what `notifications` gives before the menu, the bell), `NotificationsMenu`, `NotificationSettings` and `TaskBell` (what a member is told of, [ADR-0157](https://github.com/skillcdn/console/blob/main/docs/adr/0157-the-console-decides-who-is-told-of-what-and-keeps-the-record-and-a-plugin-carries-it-out.md): the bell in the head of every page, marked while `unread` counts any, with the list under it, the newest first and more of it through `onMore`, read whole as it opens, which `onOpen` says, a row read at `since` or after shown as new that once; what the member chose to be told of, each kind on or off, the projects turned off and, for each plugin that carries notifications elsewhere, a row of the kinds it sends too, the Notifications view of the settings; and a task's own bell, `on` or struck through, pressed to turn it), `SignIn` (one button per provider the deployment offers), `TokenList`, `TokenForm` and `NewToken` (the agents a person connected, as the tokens they hold, the way to make one by hand, and the one just made with its secret shown once), `SessionList` (the browsers a person is signed in on, each with what it is, when it was last used, where from and the day it signed in, the current one marked, and the ways to sign any other out, or all the others at once; the Sessions view of the settings), `ConnectCodeForm`, `ConnectApproval` and `ConnectWords` (an agent connecting with a code: where the code is typed, what asks under it with the way to approve or refuse it, and what to tell the agent; `ConnectPage` composes the first two for a code), `PeopleList` (everyone in, with what each is and what let them in, the logins let in that nobody signed in with yet, and the deactivated, each a card whose facts, their role, their manager, their work email, whom they manage and their teams, read as values in one column and are changed in place by an administrator, with the ways to take a person out or back in, put them in a team or take them out of one, and take a listing away), `ListingForm` (where an administrator lets someone in by login), `TeamList` (the teams, ADR-0073, a card each with how many are in it and who, a chip each, the name written anew in its place, a person added from the end of the row and taken out from their chip, and the way to delete a team) and `TeamForm` (where an administrator makes one), `HomeGrid` and `ProjectTile` (the front page, ADR-0061: the projects and the plugins' widgets as tiles on one grid of square cells, each at a place the person chose, taken in hand with a mouse or a finger that rests on it a moment first and put down on any cell, those in the way moving aside, with the way off the page and the sizes each comes in; `homeTiles`, `arranged`, `moved` and the rest in the package's `home-tiles.ts` read the arrangement; a project at `medium`, `large` or `wide` is a glance at its board, ADR-0105, from the `glances` the grid is given by the project's id, each the one answer of `client.project(key).glance()`, a `ProjectGlance`, ADR-0107, which it asks for through `onGlance` with the projects it shows so, an empty list when it shows none; `createGlanceReader` reads them for a composition of your own, once for each reading, a failed read tried again and a late answer dropped; `glanceProjects` names the projects shown so, and `glanceFit` gives out the rows a room holds by the heights of `GLANCE_REM`), `ProjectMark` (a project's mark: its own image when it has one, else its symbol on its colour, or the ones chosen from its key and its name; `sm`, `md` or `lg`), `ProjectForm` and `MemberList` (the way to make or change a project, its mark included, with an image chosen for it (`onSubmit` gets the file, or `null` to take the image away), and those listed in a project with the way for an owner to add, change and remove them; `ProjectRoleBadge`, `PROJECT_ROLE_LABELS`, `VISIBILITY_LABELS` and `keyOf` with them), `PackTokenForm`, `PackConnect` and `PackTokenWays` (the SkillCDN token a private pack is read with: pasted, or connected with a code approved at SkillCDN, the console asked again at the interval the deployment named; and the two ways side by side, as a project's Settings page and the workspace's offer them), `WorkspaceSettingsView` and `WorkspaceSettingsForm` (the workspace's settings as rows: who sees whom, the day the week begins on, the time zone, picked by area with `timeZoneGroups`, `deviceTimeZone` and `offsetOf`, and the language for whoever has none of their own; the view, given `console`, what `me.console` says, names the console's version and the range of command versions it takes first), `SkillList` (a project's skills as SkillCDN serves them at its address, each with where a person reads it and what an agent loads it by, and how an agent is connected to it), `RulesView` and `RulesForm` (the rules of the board, ADR-0023: what holds and where it comes from, the console's own, a page written or none, with `{language}` filled with the language the pages speak, folded under its facts where asked, and the ways to write them, put them away and go back to the console's own for whoever may; the form starts from what holds and saves nothing that would change nothing), `FolderView`, `DocumentList`, `DocumentSearch`, `DocumentView`, `DocumentForm`, `DocumentFiles` and `DocumentCrumbs` (a project's documents: a folder's folders and pages, the way to find pages by their words, one page with its versions, what it links to, what refers to it and its files, a picture among them shown where the body names it, and the forms to write and attach, a picture pasted into the body attached once the page is written; `DocsPage` composes them for a path), `RunList` and `RunCard` (an agent's run on a task: what it reported, what it handed in, links and files alike, a picture among them small and large as a comment's is and placed in a report by its file name, what it waits for, and when an open one was last heard from; `RunStatusBadge` and `RUN_STATUS_LABELS` with them, and `fileHref` for where a file is read), `TaskThread`, `CommentCard` and `CommentForm` (the discussion on a task, ADR-0024: the comments, the runs and the decisions as one thread in the order they came, which `threadOf` orders, each comment with who said it, through which agent, its text with the pictures it names in place and its other files after it, pictures being what `isPicture` says, and the form at the end, where a picture pasted in goes with the comment; `TaskView` shows the thread given `comments` and `onComment`, and its `fileHref` names any file of the project by its id), and `Markdown`, which renders what people and agents wrote as elements, never as HTML, with links to the web only and pictures over https only, or, given `fileSrc`, from the file of that name, and, given `docHref`, a link to a page's path as a link to the page. `DecisionCard` reads as a record, with the context, the rationale and what followed, which `onUpdate` lets a person write. The small blocks (`Button`, `LinkButton` (a link that reads as a button), `CopyButton` (a text put on the clipboard), `Badge`, `Avatar` (`xs` to `lg`), `PersonChip` with `personName` (a person by the name the host gives, the login where there is none), `Callout`, `EmptyState`, `Spinner`, `Time`, `Day`, `CategoryBadge`, `DueBadge`, `GoalStateBadge`, `ProgressBar`, `ShowMore` with `usePaged` and `PAGE_SIZE`, a long list growing a page at a time, `Pager` with `pageOf` and `RECORD_PAGE_SIZE`, a list turned by pages, `Picker` with `PICKER_PAGE_LIMIT`, one thing chosen out of a listing searched a page at a time and standing as a chip once chosen, which is how a person, a project or a goal is chosen wherever one is, with `peopleSearch`, `projectsSearch`, `goalsSearch` and `listSearch` searching a listing the page already holds, and the `className` `sc-picker-quiet` for a fact changed in place or `sc-picker-add` for the way to add one more at the end of a row of chips, `Chip`, a thing named among others in a row, a person, a team, an item of a list, a holder of a role, with the way to take it out where it can be, and `Workers`, the people at work on a task as pictures side by side with a count of the rest), the words of the vocabulary (`STATE_LABELS`, `PRIORITY_LABELS`, `ROLE_LABELS`, with `RoleBadge`) and the day helpers (`today`, `addDays`, `daysBetween`, `monthGrid`, `formatDay`, `formatMonth` and the rest, days being the strings the API spells them as) are exported too.
|
|
106
106
|
- **A picture from elsewhere** is read through the console ([ADR-0048](../../docs/adr/0048-a-picture-from-elsewhere-is-read-through-the-console-from-a-public-address-and-kept-a-while.md)): `Markdown` and `Avatar` take its address from `RemotePicturesContext`, which `createConsole` provides from the client's `pictureUrl` and which falls back to the API's own path (`REST_ROUTES.pictures`), so that a page loads nothing from elsewhere.
|
|
107
|
-
- **The composition:** `createConsole(config)` returns `{ App, mount }`. `App` is the whole console as one component; `mount(container)` renders it and returns the way to take it down. `config.baseUrl` is the origin of the API (the page's own when left out), `config.components` the pieces to replace (`ConsoleComponents` names them with the props each takes), `config.languages` the packs the pages speak, `config.brand` the addresses of a symbol and a wordmark to show beside the name (ADR-0013; the default console passes those of `@skillcdn/brand`, the main repository's package of its marks), `config.client` a client of your own, for tests, `config.persona` what an agent account's persona is proposed and drawn from in place of the package's (ADR-0084): `names`, a handle and its spelling per language each, which "Add an agent account" proposes from, and `avatarSets`, the sets the avatars are drawn from on this console's pages (`AvatarSet`, which is data: its grounds and its ramps as colours, its bodies, its surfaces and its accents as outlines in a square of a hundred units; ADR-0097), each under a version the package does not use. The SkillCDN name and marks are trademarks of KDX Labs under the main repository's trademark policy, not under this package's MIT license; a custom console brings its own marks through the same slot. A console that holds a token rather than a session (one of your own, served by `console serve`) is told so by the API (`me.agent`, the token's name, or `me.session` for a command signed in as the account itself) and offers nothing a token cannot do: no tokens, no sessions and no sign-out, since those are a person's own doing, and on the Agents page the agent accounts alone; everything else, configuring included, it does on the token as the person (ADR-0021), and it keeps the choice of language on the person. The pages route in the browser and every form has an address (ADR-0010): the projects at `/`, the person's own work at `/work`, the workspace's settings at `/settings` (its rules, its categories at `/categories`, where its skills come from), a project's pages under `/projects/<key>` (its roadmap, calendar and settings among them), a task by its number, a goal and a decision by their ids, a document by its path, and the query for how a page is shown, the board's filters, the calendar's month, the week of the person's work and the settings' forms among it (`matchRoute(pathname, search)`, `PATHS`, `projectHref`, `boardHref`, `taskHref`, `goalHref`, `calendarHref`, `workHref`, `personWorkHref`, `decisionHref`, `docHref`, `settingsHref`, `projectSettingsHref`, `newTaskHref`, `newGoalHref`, `newDecisionHref`, and `movedFrom` for the addresses of before); every link to one of them is followed in place, with one history entry per step; the workspace is loaded once and the project the page is on whole, kept current by the project's stream (`useConsoleData(client, projectKey)`, for a composition of your own).
|
|
107
|
+
- **The composition:** `createConsole(config)` returns `{ App, mount }`. `App` is the whole console as one component; `mount(container)` renders it and returns the way to take it down. `config.baseUrl` is the origin of the API (the page's own when left out), `config.components` the pieces to replace (`ConsoleComponents` names them with the props each takes), `config.languages` the packs the pages speak, `config.brand` the addresses of a symbol and a wordmark to show beside the name (ADR-0013; the default console passes those of `@skillcdn/brand`, the main repository's package of its marks), `config.client` a client of your own, for tests, `config.persona` what an agent account's persona is proposed and drawn from in place of the package's (ADR-0084): `names`, a handle and its spelling per language each, which "Add an agent account" proposes from, and `avatarSets`, the sets the avatars are drawn from on this console's pages (`AvatarSet`, which is data: its grounds and its ramps as colours, its bodies, its surfaces and its accents as outlines in a square of a hundred units; ADR-0097), each under a version the package does not use. The SkillCDN name and marks are trademarks of KDX Labs under the main repository's trademark policy, not under this package's MIT license; a custom console brings its own marks through the same slot. A console that holds a token rather than a session (one of your own, served by `console serve`) is told so by the API (`me.agent`, the token's name, or `me.session` for a command signed in as the account itself) and offers nothing a token cannot do: no tokens, no sessions and no sign-out, since those are a person's own doing, and on the Agents page the agent accounts alone; everything else, configuring included, it does on the token as the person (ADR-0021), and it keeps the choice of language on the person. The pages route in the browser and every form has an address (ADR-0010): the projects at `/`, the person's own work at `/work`, the workspace's settings at `/settings` (its rules, its categories at `/categories`, where its skills come from), what the person is told of at `/settings/notifications` (`PATHS.notificationSettings`), a project's pages under `/projects/<key>` (its roadmap, calendar and settings among them), a task by its number, a goal and a decision by their ids, a document by its path, and the query for how a page is shown, the board's filters, the calendar's month, the week of the person's work and the settings' forms among it (`matchRoute(pathname, search)`, `PATHS`, `projectHref`, `boardHref`, `taskHref`, `goalHref`, `calendarHref`, `workHref`, `personWorkHref`, `decisionHref`, `docHref`, `settingsHref`, `projectSettingsHref`, `newTaskHref`, `newGoalHref`, `newDecisionHref`, and `movedFrom` for the addresses of before); every link to one of them is followed in place, with one history entry per step; the workspace is loaded once and the project the page is on whole, kept current by the project's stream (`useConsoleData(client, projectKey)`, for a composition of your own).
|
|
108
108
|
- **Pages of your own:** `config.pages` adds tabs beside the console's, each a `CustomPage`. "Pages of your own" below says what a page is given, may read and is built from, "Charts" what figures are drawn with, and "A desk's pages" what a desk's pages begin as and what is ready for them.
|
|
109
109
|
- **The languages:** every word the pages show is in a pack (`Messages`, keyed as `en` is), English and Korean ship (`ENGLISH`, `KOREAN`, `DEFAULT_LANGUAGES`), and a component takes its words from the language above it (`useWords`, `useLanguage`, `LanguageContext`), English where there is none. A person's language is kept on them (`client.updateMe({ language })`): the browser's languages decide it the first time the pages see them (`chooseLanguage`, `packFor`), and the person after that; where neither names a language the pages speak, the workspace's does, as its administrator set it ([ADR-0081](https://github.com/skillcdn/console/blob/main/docs/adr/0081-a-workspace-has-a-language-for-whoever-has-none-of-their-own.md)), else the first pack. `createConsole({ languages })` replaces the packs the default console speaks, so that a custom console adds a language of its own; a pack is complete by type. A failure is read the same way: the server's code in the pack's `errors`, the server's own message being English and for programs (`errorWords(error, fallback, pack)`, `wordsForFailure(error, pack)`).
|
|
110
110
|
- **The styles** are one file, `@skillcdn/console/console.css`: the tokens (`--sc-*`, 101 of them, every one read by a rule), a small reset, and one class per block, all prefixed `sc-`. Its sources, which the package carries under `src/styles/`, keep it as the tokens, the reset, the parts and the pages ([ADR-0106](https://github.com/skillcdn/console/blob/main/docs/adr/0106-a-look-is-a-part-with-a-file-and-a-row-and-a-page-places-its-parts.md)), and `src/styles/README.md` there is the catalogue of the parts: what a page of your own, or a plugin's, is built from. The look is SkillCDN's own, on a light ground ([ADR-0040](https://github.com/skillcdn/console/blob/main/docs/adr/0040-the-pages-are-light-by-default.md)): one accent, the page a pale field (the shell, `sc-shell`, paints it), the surfaces panes of frosted glass over it, and white sheets inside the panes. Re-skinning starts and mostly ends with the tokens; a stylesheet of your own, loaded after this one, sets them on `:root`. The ground: `--sc-color-bg`, `--sc-color-bg-inset` (a step into it), `--sc-color-bg-raised` (white above it), `--sc-color-border` and `--sc-color-border-strong`. The text: `--sc-color-text`, `--sc-color-text-muted` and `--sc-color-text-faint`. The shade: `--sc-color-shade`, black, what a colour is mixed towards where it darkens under the pointer and the solid of a mask, never a fill of its own. The accent and the point: `--sc-color-accent`, `--sc-color-accent-solid` (the fill a white label reads on), `--sc-color-accent-contrast`, `--sc-color-accent-subtle`, `--sc-color-point` and `--sc-color-point-subtle`; what is under the pointer is mixed from them where it is drawn. The tones: `--sc-color-success`, `--sc-color-warning` and `--sc-color-danger`, each with a `-subtle`, and `--sc-color-warning-line`, the clear amber of the line round a warning. The field: `--sc-field-gradient`, one gradient from the top. The glass: `--sc-glass-backdrop` (the blur behind a pane), `--sc-color-glass` and `--sc-color-glass-hover` (its veil), `--sc-color-glass-edge` (its rim), `--sc-glass-highlight` (the light down its face), `--sc-glass-surface` and `--sc-glass-surface-hover` (the veil and the light composed), `--sc-glass-sheen` (the line along its top edge) and `--sc-glass-lift` (its stand-off from the field); and the sheets inside a pane, `--sc-color-sheet` and `--sc-color-sheet-hover`. The shadows: `--sc-glow` (what is lit casts the accent's colour), `--sc-shadow-stage` (what is over the page), `--sc-shadow-menu` (what a menu open over the page casts), `--sc-shadow-sheet` (what a sheet inside a pane casts) and `--sc-focus-ring`. The lines: `--sc-border`, `--sc-border-strong` (for what is typed into), `--sc-hairline` (what parts things inside a pane), `--sc-scrollbar-thumb` and `--sc-select-chevron` (a picture). The type: `--sc-font-sans` and `--sc-font-mono`; `--sc-text-xs`, `-sm`, `-md`, `-lg`, `-xl` and `-2xl`; `--sc-weight-normal`, `-medium` and `-bold`; `--sc-leading-tight`, `-snug`, `-normal` and `-code`; `--sc-tracking-tight`, `-wide` and `-code`, both off on a page in Korean; `--sc-label-lift`, how far a one-line label is lifted in its box, set again for Korean; and `--sc-label-case`, how a small label is cased, `uppercase`, and `none` on a page in Korean. The space and the shape: `--sc-space-1` to `--sc-space-8` on a 4px grid, `--sc-radius-sm`, `-md`, `-lg`, `-xl` and `-full`, and `--sc-transition`. The layout: `--sc-width-page`, the most a page is wide; `--sc-gutter`, what stands at its sides, which takes what a window has over that width, and `--sc-gutter-wide`, the gutter of a page as wide as its window, the board's (a console that sets a gutter of its own sets both, since the shell reads the second under such a page); `--sc-width-prose`, `--sc-width-aside`, `--sc-column-width`, `--sc-header-height` and `--sc-control-size`. The lockup: `--sc-brand-size`, `--sc-brand-size-compact`, `--sc-brand-wordmark-ratio` and `--sc-brand-gap-ratio`. The categories: `--sc-category-fill`, `--sc-category-line` and `--sc-category-mark`, set by each category's class. A row of things a person adds to and takes from is a `.sc-chips` of `Chip`s, low pills of one shape wherever they are, with a picker of `sc-picker-add` at its end, and a fact changed in place is a quiet field, `.sc-input-quiet` or a picker of `sc-picker-quiet`, that reads as its value until the pointer or the focus is on it: build a row or a fact of these rather than of fields, so that it reads as the console's do. The small capitals over a group are one rule, `.sc-eyebrow`, for a label of your own too. A custom console that wants a flat page sets the glass to none and the field to one colour; the control sizes, the blur, the opacities, the z-indexes and the breakpoints are not tokens, by decision.
|
|
@@ -200,9 +200,9 @@ import { Icon, IconPicker } from "@skillcdn/console";
|
|
|
200
200
|
<IconPicker value={glyph} label="Icon" onChange={setGlyph} />
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
-
- **`Icon`** takes a `name` of the pack (`IconName`; `ICON_NAMES` lists them, `isIconName` checks one that came from elsewhere) and a `size`: `xs` a caret beside a word, `sm` in a line of text, `md` by itself, `lg` in an empty state or on a card. It is drawn as elements from the pack's data, and a name the pack lacks draws an empty box. An icon stands beside the words of a button, and seldom for them.
|
|
203
|
+
- **`Icon`** takes a `name` of the pack (`IconName`; `ICON_NAMES` lists them, `isIconName` checks one that came from elsewhere) and a `size`: `xs` a caret beside a word, `sm` in a line of text, `md` by itself, `lg` in an empty state or on a card. It is drawn as elements from the pack's data, and a name the pack lacks draws an empty box. An icon stands beside the words of a button, and seldom for them. A glyph may have one part tinted in the accent under its lines; the tint goes away at `xs`, on a filled button, on a project's mark and in a place of a tone of its own (a danger button, a callout or a badge of a tone), and `className="sc-icon-plain"` takes it away anywhere else, in a line of text say.
|
|
204
204
|
- **`IconPicker`** is the field that chooses one, or none: the pack under it in its groups (`ICON_GROUP_LIST`), found by a glyph's name or by the words the reader's language pack gives it (`findIcons`), worked whole with the keys. A project's settings choose the mark's icon with it.
|
|
205
|
-
- **Without React**, `@skillcdn/console/icons` has the same pack with no dependency: `iconElement("calendar", { size: "sm" })` makes the element for a plugin's plain bundle or a prototype, and `GLYPHS` is the data, each glyph its shapes as an element's name with its measures. The classes (`sc-icon`, `sc-icon-sm`) are in `console.css`, which a plugin's frame already has; without it the element still draws at twenty pixels in the text's colour.
|
|
205
|
+
- **Without React**, `@skillcdn/console/icons` has the same pack with no dependency: `iconElement("calendar", { size: "sm" })` makes the element for a plugin's plain bundle or a prototype, and `GLYPHS` is the data, each glyph its shapes as an element's name with its measures, and `"tint"` in a third place where the shape is the tinted part, filled and never stroked. The classes (`sc-icon`, `sc-icon-sm`) are in `console.css`, which a plugin's frame already has; without it the element still draws at twenty pixels in the text's colour.
|
|
206
206
|
- **A glyph is added or redrawn** as a file under `icons/` in the console's repository, which `pnpm icons` writes into the package; its README there has the grid's rules. A name stays what it shows once it is published.
|
|
207
207
|
|
|
208
208
|
### A desk's pages
|
package/dist/agent-page.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-page.d.ts","sourceRoot":"","sources":["../src/agent-page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAC;AAEjG,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,SAAS,EAId,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"agent-page.d.ts","sourceRoot":"","sources":["../src/agent-page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAC;AAEjG,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,SAAS,EAId,KAAK,YAAY,EAKlB,MAAM,UAAU,CAAC;AAwClB,OAAO,EAAE,KAAK,QAAQ,EAA+B,MAAM,aAAa,CAAC;AAoBzE,oHAAoH;AACpH,wBAAgB,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GED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
3
|
import { followSession } from "./agent-stream.js";
|
|
4
|
-
import { ApiError, isLoginAt, } from "./api.js";
|
|
5
|
-
import { AgentChoice, AgentControls, AgentElsewhereList, AgentRunnerFacts, AgentSecretList, AgentSessionList, AgentStateBadge, atWorkOf, ChatPane, SignalComposer, TalkWaiting, TalkWorking, TranscriptView, takenOf, waitingOf, withEarlier, wordOf, workingOf, } from "./components/agent-page.js";
|
|
4
|
+
import { ApiError, isLoginAt, usageStanding, } from "./api.js";
|
|
5
|
+
import { AgentChoice, AgentControls, AgentElsewhereList, AgentRunnerFacts, AgentSecretList, AgentSessionList, AgentStateBadge, AgentUsage, atWorkOf, ChatPane, isOwnReset, lacksStarter, ownResetWaiting, SignalComposer, TalkWaiting, TalkWorking, TranscriptView, takenOf, waitingOf, withEarlier, wordOf, workingOf, } from "./components/agent-page.js";
|
|
6
6
|
import { AgentPictureSave } from "./components/agents.js";
|
|
7
7
|
import { AgentInvitationPanel, AgentStartSteps } from "./components/setup.js";
|
|
8
8
|
import { Avatar, Button, Callout, cx, EmptyState, LinkButton, PersonChip, personName, Spinner, Time, } from "./components/ui.js";
|
|
@@ -16,7 +16,11 @@ import { useAction } from "./use-action.js";
|
|
|
16
16
|
const REFRESH_MS = 10_000;
|
|
17
17
|
/** How many of a session's last events the page reads first, and how many more a step back reads. */
|
|
18
18
|
const TAIL = 200;
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* How many steps back the page reads, quietly, for what the conversation's foot says: the last
|
|
21
|
+
* word the agent took, and the call that started a sub-agent, where the events shown hold
|
|
22
|
+
* neither.
|
|
23
|
+
*/
|
|
20
24
|
const LOOK_BACK_STEPS = 5;
|
|
21
25
|
const TABS = ["live", "work", "sessions", "settings"];
|
|
22
26
|
/** Something read from the console and read again on a timer: what it answered last, and the way to read it now. */
|
|
@@ -70,8 +74,8 @@ function SessionTranscript(props) {
|
|
|
70
74
|
const [standing, setStanding] = useState("waiting");
|
|
71
75
|
/** Whether the events before the first one shown are being read: asked for once at a time. */
|
|
72
76
|
const [readingEarlier, setReadingEarlier] = useState(false);
|
|
73
|
-
/** The
|
|
74
|
-
const [
|
|
77
|
+
/** The events before those shown that were read for the foot alone, and stand nowhere else. */
|
|
78
|
+
const [behind, setBehind] = useState([]);
|
|
75
79
|
const ended = useRef(onEnded);
|
|
76
80
|
ended.current = onEnded;
|
|
77
81
|
const open = session.ended === null;
|
|
@@ -93,7 +97,7 @@ function SessionTranscript(props) {
|
|
|
93
97
|
setProblem(false);
|
|
94
98
|
setStanding("waiting");
|
|
95
99
|
setReadingEarlier(false);
|
|
96
|
-
|
|
100
|
+
setBehind([]);
|
|
97
101
|
// What is there is read, and what arrives is followed; a stream that closed for good, as
|
|
98
102
|
// one does while the console restarts, is opened again from the last event read.
|
|
99
103
|
return followSession({
|
|
@@ -108,32 +112,36 @@ function SessionTranscript(props) {
|
|
|
108
112
|
onEnded: () => ended.current?.(),
|
|
109
113
|
});
|
|
110
114
|
}, [client, handle, session.id]);
|
|
111
|
-
//
|
|
112
|
-
//
|
|
113
|
-
//
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
// What stands at the conversation's foot is read off what is shown and, where that does not
|
|
116
|
+
// say it, off the events before, a step at a time and a few at most: the last signal the agent
|
|
117
|
+
// took, by which the words that still wait are told, and the call that started a sub-agent
|
|
118
|
+
// (ADR-0161), which one that has worked for long has far back. None of them is shown, so that
|
|
119
|
+
// nothing moves under whoever reads, and one that could not be read is left at that.
|
|
120
|
+
const all = behind.length === 0 ? events : withEarlier(events, behind, from);
|
|
121
|
+
const taken = takenOf(all);
|
|
122
|
+
const upTo = Math.min(from, (behind[0]?.n ?? Number.POSITIVE_INFINITY) - 1);
|
|
123
|
+
const looks = props.foot !== undefined &&
|
|
124
|
+
open &&
|
|
125
|
+
events.length > 0 &&
|
|
126
|
+
upTo > 0 &&
|
|
127
|
+
from - upTo < LOOK_BACK_STEPS * TAIL &&
|
|
128
|
+
(taken === undefined || lacksStarter(all));
|
|
116
129
|
useEffect(() => {
|
|
117
|
-
if (!looks
|
|
130
|
+
if (!looks) {
|
|
118
131
|
return;
|
|
119
132
|
}
|
|
120
133
|
const controller = new AbortController();
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (found !== undefined) {
|
|
128
|
-
setBefore(found);
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
upTo = after;
|
|
134
|
+
const after = Math.max(0, upTo - TAIL);
|
|
135
|
+
client
|
|
136
|
+
.transcript(handle, session.id, { after, limit: upTo - after }, controller.signal)
|
|
137
|
+
.then((page) => {
|
|
138
|
+
if (!controller.signal.aborted) {
|
|
139
|
+
setBehind((current) => [...page.items, ...current]);
|
|
132
140
|
}
|
|
133
|
-
|
|
134
|
-
|
|
141
|
+
})
|
|
142
|
+
.catch(() => undefined);
|
|
135
143
|
return () => controller.abort();
|
|
136
|
-
}, [looks,
|
|
144
|
+
}, [looks, upTo, client, handle, session.id]);
|
|
137
145
|
const earlier = () => {
|
|
138
146
|
if (readingEarlier) {
|
|
139
147
|
return;
|
|
@@ -162,8 +170,7 @@ function SessionTranscript(props) {
|
|
|
162
170
|
}
|
|
163
171
|
});
|
|
164
172
|
};
|
|
165
|
-
|
|
166
|
-
return (_jsxs("section", { className: "sc-agent-transcript", "aria-label": words.transcript, children: [session.away && _jsx(Callout, { tone: "warning", children: words.away }), problem && _jsx(Callout, { tone: "danger", children: words.couldNotLoad }), open && typeof EventSource === "undefined" && (_jsx("p", { className: "sc-field-hint", children: words.notLive })), from > 0 && (_jsx(Button, { variant: "ghost", size: "sm", disabled: readingEarlier, onClick: earlier, children: words.earlier })), _jsx(TranscriptView, { of: session.id, events: events, agent: props.agent, fileHref: (fileId) => client.transcriptFileUrl(handle, session.id, fileId), signalFiles: filesOf, signalFileHref: (number, fileId) => client.signalFileUrl(handle, number, fileId), onReadWhole: async (n) => (await client.transcriptText(handle, session.id, n)).text, live: props.working ?? open, empty: session.away ? null : _jsx("p", { className: "sc-field-hint", children: words.empty }), foot: props.foot?.({ events, taken }) }, session.id), open && standing === "lost" && (_jsx("p", { className: "sc-field-hint", role: "status", children: words.lost }))] }));
|
|
173
|
+
return (_jsxs("section", { className: "sc-agent-transcript", "aria-label": words.transcript, children: [session.away && _jsx(Callout, { tone: "warning", children: words.away }), problem && _jsx(Callout, { tone: "danger", children: words.couldNotLoad }), open && typeof EventSource === "undefined" && (_jsx("p", { className: "sc-field-hint", children: words.notLive })), from > 0 && (_jsx(Button, { variant: "ghost", size: "sm", disabled: readingEarlier, onClick: earlier, children: words.earlier })), _jsx(TranscriptView, { of: session.id, events: events, agent: props.agent, fileHref: (fileId) => client.transcriptFileUrl(handle, session.id, fileId), signalFiles: filesOf, signalFileHref: (number, fileId) => client.signalFileUrl(handle, number, fileId), onReadWhole: async (n) => (await client.transcriptText(handle, session.id, n)).text, live: props.working ?? open, empty: session.away ? null : _jsx("p", { className: "sc-field-hint", children: words.empty }), foot: props.foot?.({ events: all, taken }) }, session.id), open && standing === "lost" && (_jsx("p", { className: "sc-field-hint", role: "status", children: words.lost }))] }));
|
|
167
174
|
}
|
|
168
175
|
/**
|
|
169
176
|
* What the provider an account signs in through is called: the one of the deployment's whose
|
|
@@ -231,21 +238,35 @@ function AgentLive(props) {
|
|
|
231
238
|
const foot = (events, taken) => {
|
|
232
239
|
const open = session !== undefined && session.ended === null;
|
|
233
240
|
const working = open && state === "running" ? workingOf(events) : undefined;
|
|
241
|
+
// A sub-agent that goes on in the background is at work past the turn that started it
|
|
242
|
+
// (ADR-0161): read of an agent at work in an open session, a turn under way or none.
|
|
243
|
+
const agents = open && state === "running" ? atWorkOf(events, Date.now()) : undefined;
|
|
234
244
|
// Signals are taken in order: everything up to the last one the record says was taken is.
|
|
235
245
|
// Where the record says none, what the runner says is delivered counts as taken: what the
|
|
236
246
|
// product took, or the record of an earlier session says was never read (ADR-0131).
|
|
237
247
|
const floor = open ? (taken ?? delivered) : Math.max(taken ?? 0, delivered);
|
|
238
|
-
|
|
248
|
+
// The account's own reset waits for the turn under way to end, whatever its product takes
|
|
249
|
+
// in a turn and whatever was taken after it (ADR-0154): taking it ends the session, so one
|
|
250
|
+
// sent since the open session began waits still, the last of them for those before it.
|
|
251
|
+
const anew = open
|
|
252
|
+
? ownResetWaiting(signals ?? [], agent.person.id, session?.startedAt)
|
|
253
|
+
: undefined;
|
|
254
|
+
const waiting = [
|
|
255
|
+
...waitingOf((signals ?? []).filter((signal) => !isOwnReset(signal, agent.person.id)), floor),
|
|
256
|
+
...(anew === undefined ? [] : [anew]),
|
|
257
|
+
];
|
|
239
258
|
const why = state === "stopped"
|
|
240
259
|
? "stopped"
|
|
241
260
|
: state === "unheard"
|
|
242
261
|
? "unheard"
|
|
243
262
|
: working === undefined
|
|
244
263
|
? "soon"
|
|
245
|
-
:
|
|
264
|
+
: anew !== undefined
|
|
246
265
|
? "turn"
|
|
247
|
-
:
|
|
248
|
-
|
|
266
|
+
: agent.runner?.offers?.steer === false
|
|
267
|
+
? "turn"
|
|
268
|
+
: "call";
|
|
269
|
+
return (_jsxs(_Fragment, { children: [_jsx(TalkWorking, { working: working, agent: agent.person, agents: agents }), _jsx(TalkWaiting, { signals: waiting, why: why, fileHref: (number, fileId) => client.signalFileUrl(handle, number, fileId), busy: busy, onInterrupt: working === undefined
|
|
249
270
|
? undefined
|
|
250
271
|
: () => void act(async () => {
|
|
251
272
|
await client.sendSignal(handle, { kind: "interrupt" });
|
|
@@ -343,7 +364,7 @@ function AgentSettings(props) {
|
|
|
343
364
|
const unchanged = name.trim() === (agent.person.name ?? "") && role.trim() === (agent.person.title ?? "");
|
|
344
365
|
// Two columns where there is room: who the agent is, when it works and where it is signed in at
|
|
345
366
|
// the left, how it runs and what it holds at the right; one column, in that order, where not.
|
|
346
|
-
return (_jsxs("div", { className: "sc-agent-settings", children: [error !== undefined && _jsx(Callout, { tone: "danger", children: error }), _jsxs("div", { className: "sc-agent-settings-column", children: [_jsxs("section", { className: "sc-panel", "aria-label": page.settings.persona.title, children: [_jsx("h2", { className: "sc-section-title", children: page.settings.persona.title }), _jsx(AgentPictureSave, { person: agent.person, busy: busy }), _jsx("dl", { className: "sc-person-facts sc-agent-runner-facts", children: _jsxs("div", { className: "sc-person-fact", children: [_jsx("dt", { children: words.agents.accounts.login }), _jsxs("dd", { children: [agent.person.login, " \u00B7 ", props.provider] })] }) }), _jsxs("form", { className: "sc-agent-persona", onSubmit: savePersona, children: [_jsxs("label", { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: page.settings.persona.name }), _jsx("input", { className: "sc-input", value: name, onChange: (event) => setName(event.target.value) })] }), _jsxs("label", { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: page.settings.persona.role }), _jsx("input", { className: "sc-input", value: role, onChange: (event) => setRole(event.target.value) })] }), _jsx(Button, { type: "submit", disabled: busy || unchanged || name.trim().length === 0, children: page.settings.persona.save })] })] }), _jsxs("section", { className: "sc-panel", "aria-label": page.settings.hours.title, children: [_jsx("h2", { className: "sc-section-title", children: page.settings.hours.title }), _jsxs("form", { className: "sc-agent-persona", onSubmit: saveHours, children: [_jsxs("label", { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: page.settings.hours.start }), _jsx("input", { className: "sc-input", type: "time", value: dayStart, onChange: (event) => setDayStart(event.target.value) })] }), _jsxs("label", { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: page.settings.hours.end }), _jsx("input", { className: "sc-input", type: "time", value: dayEnd, onChange: (event) => setDayEnd(event.target.value) })] }), _jsx(Button, { type: "submit", disabled: busy || hoursUnchanged, children: page.settings.hours.save })] }), _jsx("p", { className: "sc-field-hint", children: page.settings.hours.intro })] }), _jsxs("section", { className: "sc-panel", "aria-label": page.settings.elsewhere.title, children: [_jsx("h2", { className: "sc-section-title", children: page.settings.elsewhere.title }), _jsx(AgentElsewhereList, { accounts: agent.accounts })] }), _jsxs("section", { className: "sc-panel", "aria-label": page.settings.signIns.title, children: [_jsx("h2", { className: "sc-section-title", children: page.settings.signIns.title }), viaToken || signIns.failed !== undefined ? (_jsx("p", { className: "sc-field-hint", children: page.settings.signIns.couldNotLoad })) : where.length === 0 ? (_jsx("p", { className: "sc-field-hint", children: page.settings.signIns.empty })) : (_jsx("ul", { className: "sc-agent-secret-list", children: where.map((one) => (_jsxs("li", { className: "sc-agent-secret", children: [_jsx("span", { children: one.kind === "command"
|
|
367
|
+
return (_jsxs("div", { className: "sc-agent-settings", children: [error !== undefined && _jsx(Callout, { tone: "danger", children: error }), _jsxs("div", { className: "sc-agent-settings-column", children: [_jsxs("section", { className: "sc-panel", "aria-label": page.settings.persona.title, children: [_jsx("h2", { className: "sc-section-title", children: page.settings.persona.title }), _jsx(AgentPictureSave, { person: agent.person, busy: busy }), _jsx("dl", { className: "sc-person-facts sc-agent-runner-facts", children: _jsxs("div", { className: "sc-person-fact", children: [_jsx("dt", { children: words.agents.accounts.login }), _jsxs("dd", { children: [agent.person.login, " \u00B7 ", props.provider] })] }) }), _jsxs("form", { className: "sc-agent-persona", onSubmit: savePersona, children: [_jsxs("label", { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: page.settings.persona.name }), _jsx("input", { className: "sc-input", value: name, onChange: (event) => setName(event.target.value) })] }), _jsxs("label", { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: page.settings.persona.role }), _jsx("input", { className: "sc-input", value: role, onChange: (event) => setRole(event.target.value) })] }), _jsx(Button, { type: "submit", disabled: busy || unchanged || name.trim().length === 0, children: page.settings.persona.save })] })] }), _jsxs("section", { className: "sc-panel", "aria-label": page.settings.hours.title, children: [_jsx("h2", { className: "sc-section-title", children: page.settings.hours.title }), _jsxs("form", { className: "sc-agent-persona", onSubmit: saveHours, children: [_jsxs("label", { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: page.settings.hours.start }), _jsx("input", { className: "sc-input", type: "time", value: dayStart, onChange: (event) => setDayStart(event.target.value) })] }), _jsxs("label", { className: "sc-field", children: [_jsx("span", { className: "sc-field-label", children: page.settings.hours.end }), _jsx("input", { className: "sc-input", type: "time", value: dayEnd, onChange: (event) => setDayEnd(event.target.value) })] }), _jsx(Button, { type: "submit", disabled: busy || hoursUnchanged, children: page.settings.hours.save })] }), _jsx("p", { className: "sc-field-hint", children: page.settings.hours.intro })] }), _jsxs("section", { className: "sc-panel", "aria-label": page.settings.elsewhere.title, children: [_jsx("h2", { className: "sc-section-title", children: page.settings.elsewhere.title }), _jsx(AgentElsewhereList, { accounts: agent.accounts })] }), _jsxs("section", { className: "sc-panel", "aria-label": page.settings.signIns.title, children: [_jsx("h2", { className: "sc-section-title", children: page.settings.signIns.title }), viaToken || signIns.failed !== undefined ? (_jsx("p", { className: "sc-field-hint", children: page.settings.signIns.couldNotLoad })) : where.length === 0 ? (_jsx("p", { className: "sc-field-hint", children: page.settings.signIns.empty })) : (_jsx("ul", { className: "sc-divided sc-agent-secret-list", children: where.map((one) => (_jsxs("li", { className: "sc-small sc-agent-secret", children: [_jsx("span", { children: one.kind === "command"
|
|
347
368
|
? words.sessions.command(one.name ?? "")
|
|
348
369
|
: one.browser !== null && one.platform !== null
|
|
349
370
|
? words.sessions.on(one.browser, one.platform)
|
|
@@ -394,7 +415,9 @@ export function AgentPage(props) {
|
|
|
394
415
|
const labels = words.tabs;
|
|
395
416
|
const provider = providerOf(person.login, props.providers ?? []);
|
|
396
417
|
const view = agentViewOf(tab, agent.supervised);
|
|
397
|
-
|
|
418
|
+
// What its product last said of its allowance (ADR-0156), a window whose reset has passed left out.
|
|
419
|
+
const usage = usageStanding(agent.usage, Date.now());
|
|
420
|
+
return (_jsxs(_Fragment, { children: [_jsx("header", { className: "sc-panel sc-agent-header", children: _jsxs("div", { className: "sc-agent-head", children: [_jsx(Avatar, { person: person, size: "xl" }), _jsxs("div", { className: "sc-agent-head-who", children: [_jsxs("div", { className: "sc-agent-head-name", children: [_jsx("h1", { className: "sc-page-title", children: personName(person) }), _jsxs("span", { className: "sc-muted", children: ["@", person.handle] })] }), (person.title ?? "") !== "" && _jsx("p", { className: "sc-lead", children: person.title }), _jsx(AgentStateBadge, { state: agent.state, full: true })] }), _jsxs("dl", { className: "sc-facts-row sc-agent-head-facts", children: [usage.length > 0 && (_jsxs("div", { className: "sc-agent-head-usage", children: [_jsx("dt", { children: all.agents.accounts.usage }), _jsx("dd", { children: _jsx(AgentUsage, { usage: usage, said: true }) })] })), _jsxs("div", { children: [_jsx("dt", { children: all.people.manager }), _jsx("dd", { children: agent.manager === null ? (_jsx("span", { className: "sc-muted", children: all.agents.accounts.managerUnseen })) : (_jsx(PersonChip, { person: agent.manager })) })] })] })] }) }), agent.supervised && (_jsx("nav", { className: "sc-subtabs sc-agent-views", "aria-label": words.tabs.aria, children: TABS.map((one) => (_jsx("a", { className: cx("sc-tab", one === tab && "sc-tab-current"), href: agentHref(handle, one), "aria-current": one === tab ? "page" : undefined, children: labels[one] }, one))) })), view === "work" ? (props.work(agent)) : view === "closed" ? (_jsx(EmptyState, { title: words.notSupervised.title, body: words.notSupervised.body })) : view === "live" ? (_jsx(AgentLive, { client: client, agent: agent, handle: handle, viaToken: props.viaToken, provider: provider, onChanged: found.again })) : view === "sessions" ? (_jsx(AgentSessions, { client: client, handle: handle, session: props.session, agent: agent.person })) : (_jsx(AgentSettings, { client: client, agent: agent, handle: handle, viaToken: props.viaToken, provider: provider, onChanged: found.again }))] }));
|
|
398
421
|
}
|
|
399
422
|
/**
|
|
400
423
|
* The agents that report to a person and are not running, on that person's plate: each with how
|
|
@@ -410,6 +433,6 @@ export function AgentsNeedingYou(props) {
|
|
|
410
433
|
if (props.me === undefined || waiting.length === 0) {
|
|
411
434
|
return null;
|
|
412
435
|
}
|
|
413
|
-
return (_jsxs("section", { className: "sc-panel sc-agents-need-you", "aria-label": words.title, children: [_jsx("h2", { className: "sc-section-title", children: words.title }), _jsx("p", { className: "sc-field-hint", children: words.intro }), _jsx("ul", { className: "sc-agent-secret-list", children: waiting.map((agent) => (_jsxs("li", { className: "sc-agent-secret", children: [_jsxs("a", { className: "sc-agent-need-link", href: agentHref(agent.person.handle ?? ""), children: [_jsx(Avatar, { person: agent.person, size: "sm" }), personName(agent.person)] }), _jsx(AgentStateBadge, { state: agent.state, full: true })] }, agent.person.id))) })] }));
|
|
436
|
+
return (_jsxs("section", { className: "sc-panel sc-agents-need-you", "aria-label": words.title, children: [_jsx("h2", { className: "sc-section-title", children: words.title }), _jsx("p", { className: "sc-field-hint", children: words.intro }), _jsx("ul", { className: "sc-divided sc-agent-secret-list", children: waiting.map((agent) => (_jsxs("li", { className: "sc-small sc-agent-secret", children: [_jsxs("a", { className: "sc-agent-need-link", href: agentHref(agent.person.handle ?? ""), children: [_jsx(Avatar, { person: agent.person, size: "sm" }), personName(agent.person)] }), _jsx(AgentStateBadge, { state: agent.state, full: true })] }, agent.person.id))) })] }));
|
|
414
437
|
}
|
|
415
438
|
//# sourceMappingURL=agent-page.js.map
|
package/dist/agent-page.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-page.js","sourceRoot":"","sources":["../src/agent-page.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkC,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjG,OAAO,EAAE,aAAa,EAAuB,MAAM,mBAAmB,CAAC;AACvE,OAAO,EACL,QAAQ,EAER,SAAS,GASV,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,cAAc,EACd,OAAO,EACP,SAAS,EACT,WAAW,EACX,MAAM,EACN,SAAS,G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