@skillcdn/console 0.6.2 → 0.6.4
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 +16 -9
- package/SKILLCDN.md +3 -2
- package/dist/agent-page.d.ts +2 -0
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +46 -5
- package/dist/agent-page.js.map +1 -1
- package/dist/agent-state.d.ts +9 -0
- package/dist/agent-state.d.ts.map +1 -0
- package/dist/agent-state.js +28 -0
- package/dist/agent-state.js.map +1 -0
- package/dist/api.d.ts +6 -4
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +6 -4
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts +2 -0
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +948 -252
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +44 -7
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +168 -13
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts +82 -9
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +855 -331
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/pack.d.ts +13 -12
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +33 -45
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/plugin-cli.d.ts.map +1 -1
- package/dist/cli/plugin-cli.js +8 -5
- package/dist/cli/plugin-cli.js.map +1 -1
- package/dist/cli/runner-files.d.ts +16 -0
- package/dist/cli/runner-files.d.ts.map +1 -0
- package/dist/cli/runner-files.js +125 -0
- package/dist/cli/runner-files.js.map +1 -0
- package/dist/cli/runner-host.d.ts +7 -0
- package/dist/cli/runner-host.d.ts.map +1 -1
- package/dist/cli/runner-host.js +40 -2
- package/dist/cli/runner-host.js.map +1 -1
- package/dist/cli/skill-path.d.ts +11 -0
- package/dist/cli/skill-path.d.ts.map +1 -0
- package/dist/cli/skill-path.js +44 -0
- package/dist/cli/skill-path.js.map +1 -0
- package/dist/client.d.ts +32 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +15 -1
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +93 -6
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +202 -10
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/agents.d.ts +6 -6
- package/dist/components/agents.d.ts.map +1 -1
- package/dist/components/agents.js +16 -9
- package/dist/components/agents.js.map +1 -1
- package/dist/components/people.d.ts.map +1 -1
- package/dist/components/people.js +7 -2
- package/dist/components/people.js.map +1 -1
- package/dist/components/picker.d.ts +16 -0
- package/dist/components/picker.d.ts.map +1 -1
- package/dist/components/picker.js +69 -4
- package/dist/components/picker.js.map +1 -1
- package/dist/console.css +40 -0
- package/dist/console.js +2 -2
- package/dist/console.js.map +1 -1
- package/dist/feed-words.d.ts.map +1 -1
- package/dist/feed-words.js +12 -1
- package/dist/feed-words.js.map +1 -1
- package/dist/i18n/en.d.ts +64 -6
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +59 -10
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +49 -9
- package/dist/i18n/ko.js.map +1 -1
- package/dist/limits.d.ts +26 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +26 -0
- package/dist/limits.js.map +1 -1
- package/dist/onboarding.d.ts +18 -6
- package/dist/onboarding.d.ts.map +1 -1
- package/dist/onboarding.js +42 -7
- package/dist/onboarding.js.map +1 -1
- package/dist/plugin/args.d.ts +24 -2
- package/dist/plugin/args.d.ts.map +1 -1
- package/dist/plugin/args.js +20 -2
- package/dist/plugin/args.js.map +1 -1
- package/dist/plugin/context.d.ts +39 -7
- package/dist/plugin/context.d.ts.map +1 -1
- package/dist/plugin/define.d.ts.map +1 -1
- package/dist/plugin/define.js +12 -3
- package/dist/plugin/define.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +2 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +1 -0
- package/dist/plugin/rest-schemas.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.d.ts +4 -1
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +5 -2
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts.map +1 -1
- package/dist/runner/acp.js +9 -3
- package/dist/runner/acp.js.map +1 -1
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +53 -1
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +18 -3
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/config.d.ts +18 -0
- package/dist/runner/config.d.ts.map +1 -1
- package/dist/runner/config.js +77 -1
- package/dist/runner/config.js.map +1 -1
- package/dist/runner/desk.d.ts +7 -0
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +14 -4
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/message.d.ts +16 -22
- package/dist/runner/message.d.ts.map +1 -1
- package/dist/runner/message.js +72 -120
- package/dist/runner/message.js.map +1 -1
- package/dist/runner/runner.d.ts +41 -1
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +557 -23
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/slack-status.d.ts +19 -0
- package/dist/runner/slack-status.d.ts.map +1 -0
- package/dist/runner/slack-status.js +332 -0
- package/dist/runner/slack-status.js.map +1 -0
- package/dist/runner/slack.d.ts.map +1 -1
- package/dist/runner/slack.js +258 -59
- package/dist/runner/slack.js.map +1 -1
- package/dist/runner/types.d.ts +128 -15
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js.map +1 -1
- package/dist/runner/usage.d.ts +6 -1
- package/dist/runner/usage.d.ts.map +1 -1
- package/dist/runner/usage.js +9 -2
- package/dist/runner/usage.js.map +1 -1
- package/dist/runner.d.ts +2 -2
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js.map +1 -1
- package/dist/schemas.d.ts +635 -6
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +197 -15
- package/dist/schemas.js.map +1 -1
- package/dist/secret-file.d.ts +21 -0
- package/dist/secret-file.d.ts.map +1 -0
- package/dist/secret-file.js +59 -0
- package/dist/secret-file.js.map +1 -0
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +3 -2
- package/dist/services.js.map +1 -1
- package/dist/setup-guide.d.ts +2 -2
- package/dist/setup-guide.d.ts.map +1 -1
- package/dist/setup-guide.js +6 -5
- package/dist/setup-guide.js.map +1 -1
- package/dist/vocabulary.d.ts +17 -2
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +15 -2
- package/dist/vocabulary.js.map +1 -1
- package/dist/wake-text.d.ts +43 -0
- package/dist/wake-text.d.ts.map +1 -0
- package/dist/wake-text.js +115 -0
- package/dist/wake-text.js.map +1 -0
- package/docs/specs/cli.md +39 -25
- package/docs/specs/plugins.md +10 -9
- package/docs/specs/rest.md +34 -15
- package/docs/specs/runner.md +108 -25
- package/docs/start.md +28 -6
- package/package.json +3 -3
- package/skills/building-a-plugin/SKILL.md +2 -2
- package/skills/deploying-a-console/SKILL.md +3 -3
- package/skills/deploying-a-console/references/access.md +15 -1
- package/skills/deploying-a-console/references/resources.md +2 -2
- package/skills/deploying-a-console/scripts/github-app.mjs +593 -0
- package/skills/keeping-the-pack/SKILL.md +87 -0
- package/skills/planning-the-board/SKILL.md +6 -6
- package/skills/planning-the-board/references/a-task.md +1 -1
- package/skills/planning-the-board/references/setting-up.md +9 -5
- package/skills/running-an-agent/SKILL.md +21 -17
- package/skills/running-an-agent/references/preparing-the-machine.md +4 -3
- package/skills/running-an-agent/references/several-tasks.md +8 -2
- package/skills/running-an-agent/references/slack-app.md +31 -8
- package/skills/running-an-agent/references/the-account-and-the-invitation.md +1 -1
- package/skills/running-an-agent/references/what-was-not-seen-run-yet.md +3 -1
- package/skills/running-an-agent/references/when-the-agent-could-not-go-on.md +4 -4
- package/skills/running-an-agent/references/your-first-task.md +11 -5
- package/skills/trying-a-console/SKILL.md +136 -0
- package/skills/trying-a-console/references/when-it-does-not-go.md +30 -0
- package/skills/working-the-board/SKILL.md +6 -6
- package/skills/working-the-board/references/terms.md +3 -1
- package/skills/working-the-board/references/the-pack.md +14 -7
- package/skills/working-the-board/references/what-they-were-told.md +1 -1
- package/src/agent-page.tsx +111 -4
- package/src/agent-state.ts +33 -0
- package/src/api.ts +43 -0
- package/src/cli/cli.ts +1190 -313
- package/src/cli/format.ts +207 -13
- package/src/cli/help.ts +991 -372
- package/src/cli/pack.ts +55 -62
- package/src/cli/plugin-cli.ts +8 -5
- package/src/cli/runner-files.ts +137 -0
- package/src/cli/runner-host.ts +48 -2
- package/src/cli/skill-path.ts +51 -0
- package/src/client.ts +103 -0
- package/src/components/agent-page.tsx +446 -20
- package/src/components/agents.tsx +27 -28
- package/src/components/people.tsx +7 -3
- package/src/components/picker.tsx +79 -5
- package/src/console.tsx +1 -1
- package/src/feed-words.ts +14 -1
- package/src/i18n/en.ts +64 -11
- package/src/i18n/ko.ts +55 -9
- package/src/limits.ts +26 -0
- package/src/onboarding.ts +60 -21
- package/src/plugin/args.ts +29 -3
- package/src/plugin/context.ts +40 -7
- package/src/plugin/define.ts +18 -3
- package/src/plugin/rest-schemas.ts +3 -0
- package/src/routes.ts +2 -0
- package/src/rules.ts +5 -2
- package/src/runner/acp.ts +9 -3
- package/src/runner/claude.ts +58 -1
- package/src/runner/codex.ts +18 -3
- package/src/runner/config.ts +114 -1
- package/src/runner/desk.ts +15 -4
- package/src/runner/message.ts +88 -126
- package/src/runner/runner.ts +682 -27
- package/src/runner/slack-status.ts +423 -0
- package/src/runner/slack.ts +310 -67
- package/src/runner/types.ts +124 -13
- package/src/runner/usage.ts +16 -3
- package/src/runner.ts +4 -0
- package/src/schemas.ts +245 -13
- package/src/secret-file.ts +76 -0
- package/src/services.ts +3 -2
- package/src/setup-guide.ts +6 -5
- package/src/styles/README.md +1 -1
- package/src/styles/pages/agents.css +40 -0
- package/src/vocabulary.ts +21 -2
- package/src/wake-text.ts +133 -0
- package/dist/cli/command-words.d.ts +0 -20
- package/dist/cli/command-words.d.ts.map +0 -1
- package/dist/cli/command-words.js +0 -51
- package/dist/cli/command-words.js.map +0 -1
- package/src/cli/command-words.ts +0 -56
package/README.md
CHANGED
|
@@ -55,23 +55,23 @@ console comment 7 "Which screen did you mean?" --attach ./shot.png # a word in
|
|
|
55
55
|
console skills # the project's skills, with the URI to load each by
|
|
56
56
|
console rules # what the organization and the project ask of agents; take prints them with the task
|
|
57
57
|
console ask "Keep the old behaviour?" --option "Keep it" --option "Change it"
|
|
58
|
-
console write notes/parser --title "The parser" --file notes.md # a page of the project's documents, by path
|
|
58
|
+
console doc write notes/parser --title "The parser" --file notes.md # a page of the project's documents, by path
|
|
59
59
|
console doc guides/onboarding # a page in full, with what refers to it
|
|
60
60
|
console finish --summary "Done: the parser refuses empty input."
|
|
61
61
|
console serve dist # a console of your own, built from this package, served for you
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
- **`console`** is the agent's side of the console ([docs/specs/cli.md](https://github.com/skillcdn/console/blob/main/docs/specs/cli.md)): a thin client of the REST API with no logic of its own, no dependencies beyond the package's, and no cost to an agent until it is used. The package states Node.js 24 as its floor and is tested on it; 22 runs the command today, checked by hand on each release. `console help` says
|
|
64
|
+
- **`console`** is the agent's side of the console ([docs/specs/cli.md](https://github.com/skillcdn/console/blob/main/docs/specs/cli.md)): a thin client of the REST API with no logic of its own, no dependencies beyond the package's, and no cost to an agent until it is used. The package states Node.js 24 as its floor and is tested on it; 22 runs the command today, checked by hand on each release. `console help` lists the commands in one table, by who runs them, `console help <command>` says one in full, a form of it with `console help <command> <form>`, each within a bound a test holds since an agent pays for every byte it reads ([ADR-0167](https://github.com/skillcdn/console/blob/main/docs/adr/0167-the-commands-of-the-console-command-are-one-table-by-who-runs-them-its-help-is-in-layers-within-bounds-and-a-mistake-is-answered-with-a-sentence.md)), and `console --version` says which version this is; `--json` answers with the console's own JSON; the exit code says whether the console did it (`0`), refused or could not be reached (`1`), did not understand (`2`), or a decision still waits (`3`), or the command and the console do not go together (`4`: the console refuses a command outside the versions it takes, and the command prints the update to make where it is installed, for the machine, in the project or fetched for the run; `console whoami` says both versions and the install, and a command behind or ahead within the range is told once a day on stderr).
|
|
65
65
|
- **A person signs it in once per console:** `login` checks the token against the console and keeps it as a login, with the console's address and the account, in `$XDG_CONFIG_HOME/skillcdn-console/credentials.json` (`~/.config` when unset); a machine holds a login per console and account, and a token goes only to the console that issued it. `CONSOLE_URL` and `CONSOLE_TOKEN` in the environment, together, stand in for a login at that address, for a hook or a job. A token is never taken on the command line.
|
|
66
66
|
- **Configuring, as the person** ([ADR-0021](https://github.com/skillcdn/console/blob/main/docs/adr/0021-a-token-configures-as-its-person-does.md)): `workspace`, `workspace edit`, `people`, `person role`, `person add`, `person remove`, `person deactivate`, `person reactivate`, `project new`, `project edit`, `project icon`, `members`, `member add`, `member role`, `member remove`, `category new`, `category edit`, `category remove` and `rules write` do what an administrator or an owner does on the pages, with the same refusals (`auth.forbidden` where the person may not), and the event names the agent beside the person. The tokens themselves have no command but `logout`, which gives the command's own up: they are made and removed on the Agents page, signed in.
|
|
67
|
-
- **The project's pack** is read as the `skillcdn` command reads one ([ADR-0031](https://github.com/skillcdn/console/blob/main/docs/adr/0031-the-console-reads-a-pack-as-the-skillcdn-command-does-and-a-local-one-from-a-directory.md)): `console skills` prints what a client is told on connect and every skill
|
|
68
|
-
- **The project's documents** are the agent's to read and write: `docs
|
|
67
|
+
- **The project's pack** is read as the `skillcdn` command reads one ([ADR-0031](https://github.com/skillcdn/console/blob/main/docs/adr/0031-the-console-reads-a-pack-as-the-skillcdn-command-does-and-a-local-one-from-a-directory.md)): `console skills` prints what a client is told on connect and every skill, the documents outside the skills counted with what reads them, `console skills <folder>` a page of a folder, `console skills --search "<words>"` what the words find, with how each result matches, `console skill <path>` a skill with its rules first, a long one in parts that each end with the command that prints the next, and `console skill --file <path>` a page of a file, each printed by the reads the `skillcdn` command itself prints with (`readPack` of `@skillcdn/cli`, [ADR-0124](https://github.com/skillcdn/console/blob/main/docs/adr/0124-the-commands-reads-of-a-pack-are-the-skillcdn-commands-own.md)) and the reads named as the console's commands, so that an agent reads here what it would read over MCP; a pack is at a SkillCDN deployment, or in a directory on the console's machine where no deployment is reachable.
|
|
68
|
+
- **The project's documents** are the agent's to read and write: `docs` and `doc`, with `doc write`, `doc attach`, `doc archive` and `doc 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
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, 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.
|
|
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, which the API layer exports too, since the console writes a wake for a comment so; a `WakeHost` says when the agent's conversation began (`began`) and keeps what a source brought (`kept`), from one runner to the next where `RunnerOptions.wakes.kept` reads and writes it ([ADR-0166](https://github.com/skillcdn/console/blob/main/docs/adr/0166-a-wake-carries-what-the-agents-conversation-does-not-hold-and-says-it-once.md)), and a `WakeSource` may show how the agent stands to whoever waits for it at its messenger (`show`, told an `AgentStatus`: thinking, at work, or out of its usage until a moment, the first from when the source says it took a message, `WakeHost.heard`, before it reads anything for the wake; [ADR-0170](https://github.com/skillcdn/console/blob/main/docs/adr/0170-a-runner-says-how-its-agent-stands-to-whoever-waits-for-it-and-a-wake-source-shows-it.md)); `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,13 +102,13 @@ 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, 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.
|
|
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, 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, and `required` where something is always chosen, an agent account's manager, the press on it then opening the field in its place and saving nothing until another is chosen, `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
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.
|
|
111
|
-
- React 19 is a peer dependency; `react-markdown`, `remark-gfm` and `@skillcdn/core`, for the pack's shapes and the renderers of what a model is given, are the package's own, and so is `@skillcdn/cli`, whose reads of a pack the command prints with; the command alone imports it, and no page does.
|
|
111
|
+
- React 19 is a peer dependency; `react-markdown`, `remark-gfm` and `@skillcdn/core`, for the pack's shapes and the renderers of what a model is given, are the package's own, and so is `@skillcdn/cli`, whose reads of a pack the command prints with; the command alone imports it, in one module it loads where a pack is read, and no page does.
|
|
112
112
|
|
|
113
113
|
A custom console is a small repository that depends on this package, holds a configuration and a CI job, and builds to static files: the organization's, served by the image from `WEB_ROOT` in place of the default UI, or your own, served by `console serve` on your machine. Nothing of the server is in the package but the serving of a build, `@skillcdn/console/web`, which the image and the command share.
|
|
114
114
|
|
|
@@ -227,14 +227,21 @@ Every one of them is built from the parts of `console.css` and nothing else. On
|
|
|
227
227
|
|
|
228
228
|
### The skills, for an agent
|
|
229
229
|
|
|
230
|
-
What an agent reads to work the board, to plan and set it up, to build a console, to write a plugin, to
|
|
230
|
+
What an agent reads to work the board, to plan and set it up, to build a console, to write a plugin, to try a console on one computer, to deploy one, to run an agent account, to keep a desk or to keep an organization's pack is in the console's repository as skills in the SkillCDN Format ([ADR-0015](https://github.com/skillcdn/console/blob/main/docs/adr/0015-the-consoles-skills-live-in-this-repository-in-the-skillcdn-format-and-the-package-carries-them.md)), served by SkillCDN at `skillcdn.ai/gh/skillcdn/console` with the architecture, the decisions and the specifications, and shipped in this package: `skills/working-the-board/SKILL.md`, `skills/planning-the-board/SKILL.md`, `skills/building-a-console/SKILL.md`, `skills/building-a-plugin/SKILL.md`, `skills/deploying-a-console/SKILL.md`, `skills/running-an-agent/SKILL.md`, `skills/keeping-a-desk/SKILL.md`, `skills/keeping-the-pack/SKILL.md` and `skills/trying-a-console/SKILL.md`, each with its references, the deploying skill with its scripts, their manifest `SKILLCDN.md` with the rules they share, the specifications they point to under `docs/specs/` (`rest.md`, `cli.md`, `plugins.md`, `runner.md`, `records.md`), and the sources under `src/` without the tests, so that `npm install` brings what an agent needs to read, at the version installed. Point an agent at them in `node_modules/@skillcdn/console/`, or copy a skill's folder into the agent's own skills. A project of a console may name that address as its skills address, and an organization's own skill for its console adds its rules and links these. The skills are maps: what they name, this README, the types and the specifications say in full.
|
|
231
231
|
|
|
232
232
|
## Rules
|
|
233
233
|
|
|
234
234
|
Read the root [`AGENTS.md`](../../AGENTS.md) first. This package is what other people install; it is their contract.
|
|
235
235
|
|
|
236
236
|
- **Pure where it can be.** The schemas and the components do no I/O; the client takes a `fetch` and a base URL; the command takes everything it needs through `runCli`. Nothing here reads the environment but the command's entry point, `src/cli/main.ts`, the one place the process is read (lint enforces it).
|
|
237
|
-
- **The main repository's packages come from npm,** by version: `@skillcdn/core` here, for addresses, the REST shapes of a pack and the renderers of what a model is given, and `@skillcdn/cli`, for the reads of a pack as the `skillcdn` command prints them, imported by `src/cli/` alone and never by what a page imports ([ADR-0124](../../docs/adr/0124-the-commands-reads-of-a-pack-are-the-skillcdn-commands-own.md)); the client, the indexer and the reader in the app. Never a path into the main repository, never a copy of its code ([ADR-0001](../../docs/adr/0001-the-console-is-the-reference-console-built-on-the-published-packages.md), [ADR-0031](../../docs/adr/0031-the-console-reads-a-pack-as-the-skillcdn-command-does-and-a-local-one-from-a-directory.md)).
|
|
237
|
+
- **The main repository's packages come from npm,** by version: `@skillcdn/core` here, for addresses, the REST shapes of a pack and the renderers of what a model is given, and `@skillcdn/cli`, for the reads of a pack as the `skillcdn` command prints them, imported by `src/cli/` alone and never by what a page imports ([ADR-0124](../../docs/adr/0124-the-commands-reads-of-a-pack-are-the-skillcdn-commands-own.md)). Importing it, or the main entry point of `@skillcdn/core`, loads the whole library, so `src/cli/pack.ts` is the one module that does, loaded by the command where a pack is read; every other module takes their types alone, the REST contracts from `@skillcdn/core/rest` and addresses from `@skillcdn/core/address`, which load only what they need, and a test holds it ([ADR-0179](../../docs/adr/0179-a-read-of-a-pack-is-asked-for-by-the-skillcdn-commands-own-arguments-its-search-and-its-kinds-are-that-commands-and-its-library-is-loaded-where-a-pack-is-read.md)); the client, the indexer and the reader in the app. Never a path into the main repository, never a copy of its code ([ADR-0001](../../docs/adr/0001-the-console-is-the-reference-console-built-on-the-published-packages.md), [ADR-0031](../../docs/adr/0031-the-console-reads-a-pack-as-the-skillcdn-command-does-and-a-local-one-from-a-directory.md)).
|
|
238
238
|
- **Exported types are public contract.** A change to what `src/index.ts` exports carries a changeset written for whoever installs the package, and the README changes with the usage.
|
|
239
|
+
- **A command is added by the command's shape** ([ADR-0167](../../docs/adr/0167-the-commands-of-the-console-command-are-one-table-by-who-runs-them-its-help-is-in-layers-within-bounds-and-a-mistake-is-answered-with-a-sentence.md)), whose readers are mostly agents that pay for every byte printed:
|
|
240
|
+
- **Where it goes.** What does something to a thing, or makes one, is a form of that thing (`task new`, `doc write`, `agent tell`): a word after the singular, which reads one, beside the plural, which lists. A new thing brings its two words. A word at the top that names no thing is a decision of its own, and the list of them is closed.
|
|
241
|
+
- **What is added with it.** A case of the dispatch in `src/cli/cli.ts`; its page in `src/cli/help.ts`, in `forms` where it is a form; for a new command, its row in `COMMAND_GROUPS`, in the group of whoever runs it; its row in [docs/specs/cli.md](../../docs/specs/cli.md). `help.test.ts` holds the table to the pages, and `pnpm check:skills` the skills to the commands.
|
|
242
|
+
- **The help's bounds.** `console help` within 3,000 bytes, a page within 2,600 (`HELP_BOUNDS`). A page past its bound is cut or its form given a page of its own; the bound is not raised. A page says what running the command does not show: what a flag means, what is refused and what to do then. It does not describe the output.
|
|
243
|
+
- **What it prints.** One line a thing in a list, a page at a time with a last line that says when there is more; an id wherever a command takes one; what to run next as a whole line, with `--project`, `--url` and `--account` as they were given. What went wrong goes to standard error as a sentence: a refusal as the console's code and words, a misuse with the form to type. Nothing printed is ever both an answer and a refusal.
|
|
244
|
+
- **What it reads.** A secret is never an argument: typed unseen, or from standard input or a file. An option the command does not take is refused, never dropped.
|
|
245
|
+
- **What an agent account reads in every session stays within its bound** ([ADR-0174](../../docs/adr/0174-what-an-agent-account-reads-in-every-session-is-held-within-a-bound.md)). A session's first words (`introOf` in `src/runner/message.ts`, within `FIRST_WORDS_AT_MOST`) and the `AGENTS.md` a desk is set up with (`src/runner/desk.ts`, within `DESK_INSTRUCTIONS_AT_MOST`) are read by every account in every session. A sentence goes there only where every session does otherwise without it, and takes the room of one taken out: the bound is not raised. What concerns one event, an offer, an expiry, a reset, is said by the wake that brings it; what is read when asked for goes in a skill or a page of help.
|
|
239
246
|
- **Runtime dependencies need a reason.** This package ships to browsers; a dependency here needs a stronger case than anywhere else in the repository.
|
|
240
247
|
- **A page is built from the console's parts.** A look is written once, as a part, in `src/styles/parts/`; a page's file under `src/styles/pages/` lays its own elements out and says where a part is, and gives nothing a look; a colour is written in `src/styles/tokens.css` alone. [`src/styles/README.md`](src/styles/README.md) is the catalogue of the parts, with the rules in full and how a part is added: read it before writing a class. `pnpm check:styles` holds it ([ADR-0106](../../docs/adr/0106-a-look-is-a-part-with-a-file-and-a-row-and-a-page-places-its-parts.md)). A design pass changes how a page looks and not what it does: what is fetched, sent, allowed or tested changes in a change of its own. A changed page is looked at on this machine (`pnpm dev`) before its commit, at a phone's width and on a wide screen, in English and in Korean; what was not looked at is said in the commit.
|
package/SKILLCDN.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: SkillCDN Console
|
|
3
|
-
description: "
|
|
3
|
+
description: "The console for your AI team: AI employees take tasks on one board, report and ask; you decide. Connect it and your AI guides you from setup to everyday use."
|
|
4
4
|
license: MIT
|
|
5
5
|
language: en
|
|
6
6
|
translations:
|
|
7
7
|
ko:
|
|
8
8
|
name: SkillCDN 콘솔
|
|
9
|
-
description: "
|
|
9
|
+
description: "AI 팀이 일하는 콘솔입니다. 에이전트 직원이 보드에서 일을 가져가 보고하고 결정할 것만 묻고, 사람은 결정만 합니다. AI 앱에 연결하면 설치부터 쓰는 법까지 AI가 안내합니다."
|
|
10
10
|
documents:
|
|
11
11
|
- docs
|
|
12
12
|
start: docs/start.md
|
|
@@ -14,6 +14,7 @@ exclude:
|
|
|
14
14
|
- .claude
|
|
15
15
|
- docs/adr/0000-template.md
|
|
16
16
|
- examples
|
|
17
|
+
- listing
|
|
17
18
|
- packages/console/template
|
|
18
19
|
- apps/console/src/testing
|
|
19
20
|
metadata:
|
package/dist/agent-page.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export interface AgentPageProps {
|
|
|
23
23
|
readonly providers?: readonly RestProvider[] | undefined;
|
|
24
24
|
/** The agent's plate, which the console draws as it draws a person's. */
|
|
25
25
|
readonly work: (agent: RestAgent) => ReactNode;
|
|
26
|
+
/** The member who looks at the page, by their id: the account itself is offered no secret of its own. */
|
|
27
|
+
readonly me?: string | undefined;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* What a view of an agent's page shows to whoever opens it: its work to anyone who sees the
|
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,EAKlB,MAAM,UAAU,CAAC;
|
|
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;AA0ClB,OAAO,EAAE,KAAK,QAAQ,EAA+B,MAAM,aAAa,CAAC;AAoBz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AE,CAAC;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,sCA8BA"}
|
package/dist/agent-page.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
3
|
import { followSession } from "./agent-stream.js";
|
|
4
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";
|
|
5
|
+
import { AgentChoice, AgentControls, AgentElsewhereList, AgentRunnerFacts, AgentSecretList, AgentSecretOfferForm, AgentSecretOfferList, 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";
|
|
@@ -322,6 +322,40 @@ function AgentSessions(props) {
|
|
|
322
322
|
};
|
|
323
323
|
return (_jsx(_Fragment, { children: all.length === 0 ? (_jsx(EmptyState, { title: words.sessions.empty.title, body: words.sessions.empty.body })) : (_jsxs("div", { className: "sc-panel sc-agent-session-panel", children: [_jsx(AgentSessionList, { sessions: all, href: (one) => agentHref(handle, "sessions", one.id) }), hasMore && (_jsx(Button, { variant: "ghost", size: "sm", onClick: earlier, children: words.sessions.more }))] })) }));
|
|
324
324
|
}
|
|
325
|
+
/** How many offers that no longer wait a member is shown of their own, beside those that wait. */
|
|
326
|
+
const OFFERS_SHOWN_AFTER = 3;
|
|
327
|
+
/**
|
|
328
|
+
* Under an agent's plate, for whoever sees the account and supervises it not (ADR-0169): the
|
|
329
|
+
* way to offer it a secret, and how their own offers stand. For the account itself, what it was
|
|
330
|
+
* offered that waits, which it takes or leaves with its command.
|
|
331
|
+
*/
|
|
332
|
+
function AgentOffers(props) {
|
|
333
|
+
const words = useWords().agents.page.offers;
|
|
334
|
+
const { client, agent, handle, own } = props;
|
|
335
|
+
const { busy, error, act } = useAction();
|
|
336
|
+
const read = useCallback((signal) => own ? client.secretOffers(signal) : client.agentSecretOffers(handle, signal), [client, handle, own]);
|
|
337
|
+
const found = useRead(read);
|
|
338
|
+
const all = found.value?.items ?? [];
|
|
339
|
+
const waiting = all.filter((offer) => offer.state === "waiting");
|
|
340
|
+
const shown = own
|
|
341
|
+
? waiting
|
|
342
|
+
: [
|
|
343
|
+
...waiting,
|
|
344
|
+
...all.filter((offer) => offer.state !== "waiting").slice(0, OFFERS_SHOWN_AFTER),
|
|
345
|
+
];
|
|
346
|
+
if (own && shown.length === 0) {
|
|
347
|
+
return null;
|
|
348
|
+
}
|
|
349
|
+
return (_jsxs("section", { className: "sc-panel", "aria-label": own ? words.title : words.offerTitle, children: [_jsx("h2", { className: "sc-section-title", children: own ? words.title : words.offerTitle }), error !== undefined && _jsx(Callout, { tone: "danger", children: error }), shown.length > 0 && _jsx(AgentSecretOfferList, { offers: shown }), own ? (_jsx("p", { className: "sc-field-hint", children: words.own })) : (_jsx(AgentSecretOfferForm, { account: personName(agent.person), busy: busy, onOffer: (offer) => void act(async () => {
|
|
350
|
+
await client.offerAgentSecret(handle, {
|
|
351
|
+
name: offer.name,
|
|
352
|
+
value: offer.value,
|
|
353
|
+
...(offer.note === undefined ? {} : { note: offer.note }),
|
|
354
|
+
...(offer.expiresOn === undefined ? {} : { expiresOn: offer.expiresOn }),
|
|
355
|
+
});
|
|
356
|
+
found.again();
|
|
357
|
+
}) }))] }));
|
|
358
|
+
}
|
|
325
359
|
/** What is kept of the agent: its runner, where it is signed in, what it runs with, its secrets by name, its persona. */
|
|
326
360
|
function AgentSettings(props) {
|
|
327
361
|
const words = useWords();
|
|
@@ -330,6 +364,10 @@ function AgentSettings(props) {
|
|
|
330
364
|
const { busy, error, act } = useAction();
|
|
331
365
|
const readSecrets = useCallback((signal) => client.agentSecrets(handle, signal), [client, handle]);
|
|
332
366
|
const secrets = useRead(readSecrets);
|
|
367
|
+
const readOffers = useCallback((signal) => client.agentSecretOffers(handle, signal), [client, handle]);
|
|
368
|
+
const offers = useRead(readOffers);
|
|
369
|
+
/** What members offered the account that it has neither taken nor left (ADR-0169). */
|
|
370
|
+
const offered = (offers.value?.items ?? []).filter((offer) => offer.state === "waiting");
|
|
333
371
|
const readSignIns = useCallback((signal) => viaToken ? Promise.resolve(undefined) : client.agentSignIns(handle, signal), [client, handle, viaToken]);
|
|
334
372
|
const signIns = useRead(readSignIns);
|
|
335
373
|
const [name, setName] = useState(agent.person.name ?? "");
|
|
@@ -376,13 +414,16 @@ function AgentSettings(props) {
|
|
|
376
414
|
onChanged();
|
|
377
415
|
}) })] }), _jsxs("section", { className: "sc-panel", "aria-label": page.settings.machine.title, children: [_jsx("h2", { className: "sc-section-title", children: agent.state === null || agent.state === undefined
|
|
378
416
|
? page.start.title
|
|
379
|
-
: page.settings.machine.title }), _jsx(AgentStart, { client: client, agent: agent, handle: handle, viaToken: viaToken, provider: props.provider })] }), _jsxs("section", { className: "sc-panel", "aria-label": page.settings.secrets.title, children: [_jsx("h2", { className: "sc-section-title", children: page.settings.secrets.title }), _jsx(AgentSecretList, { secrets: kept, busy: busy, onSeed: (secret, value) => void act(async () => {
|
|
380
|
-
await client.seedAgentSecret(handle, secret, {
|
|
417
|
+
: page.settings.machine.title }), _jsx(AgentStart, { client: client, agent: agent, handle: handle, viaToken: viaToken, provider: props.provider })] }), _jsxs("section", { className: "sc-panel", "aria-label": page.settings.secrets.title, children: [_jsx("h2", { className: "sc-section-title", children: page.settings.secrets.title }), _jsx(AgentSecretList, { secrets: kept, busy: busy, onSeed: (secret, value, expiresOn) => void act(async () => {
|
|
418
|
+
await client.seedAgentSecret(handle, secret, {
|
|
419
|
+
value,
|
|
420
|
+
...(expiresOn === undefined ? {} : { expiresOn }),
|
|
421
|
+
});
|
|
381
422
|
secrets.again();
|
|
382
423
|
}), onRemove: (secret) => void act(async () => {
|
|
383
424
|
await client.removeAgentSecret(handle, secret);
|
|
384
425
|
secrets.again();
|
|
385
|
-
}) })] })] })] }));
|
|
426
|
+
}) })] }), offered.length > 0 && (_jsxs("section", { className: "sc-panel", "aria-label": page.offers.title, children: [_jsx("h2", { className: "sc-section-title", children: page.offers.title }), _jsx(AgentSecretOfferList, { offers: offered }), _jsx("p", { className: "sc-field-hint", children: page.offers.waits(personName(agent.person)) })] }))] })] }));
|
|
386
427
|
}
|
|
387
428
|
/**
|
|
388
429
|
* What a view of an agent's page shows to whoever opens it: its work to anyone who sees the
|
|
@@ -417,7 +458,7 @@ export function AgentPage(props) {
|
|
|
417
458
|
const view = agentViewOf(tab, agent.supervised);
|
|
418
459
|
// What its product last said of its allowance (ADR-0156), a window whose reset has passed left out.
|
|
419
460
|
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 }))] }));
|
|
461
|
+
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" ? (_jsxs(_Fragment, { children: [props.work(agent), !agent.supervised && props.me !== undefined && (_jsx(AgentOffers, { client: client, agent: agent, handle: handle, own: props.me === person.id }))] })) : view === "closed" ? (_jsxs("div", { className: "sc-agent-closed", children: [_jsx(EmptyState, { title: words.notSupervised.title, body: words.notSupervised.body }), tab === "settings" && props.me !== undefined && (_jsx(AgentOffers, { client: client, agent: agent, handle: handle, own: props.me === person.id }))] })) : 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 }))] }));
|
|
421
462
|
}
|
|
422
463
|
/**
|
|
423
464
|
* The agents that report to a person and are not running, on that person's plate: each with how
|
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,EAST,aAAa,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,gB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,MAAM,KAAK,CAAC,EAAE,CAAC;QACnD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,mBAAS,SAAS,EAAC,6BAA6B,gBAAa,KAAK,CAAC,KAAK,aACtE,aAAI,SAAS,EAAC,kBAAkB,YAAE,KAAK,CAAC,KAAK,GAAM,EACnD,YAAG,SAAS,EAAC,eAAe,YAAE,KAAK,CAAC,KAAK,GAAK,EAC9C,aAAI,SAAS,EAAC,iCAAiC,YAC5C,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACtB,cAA0B,SAAS,EAAC,0BAA0B,aAC5D,aAAG,SAAS,EAAC,oBAAoB,EAAC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,aAC1E,KAAC,MAAM,IAAC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,EAAC,IAAI,GAAG,EACzC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,IACvB,EACJ,KAAC,eAAe,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,SAAG,KALrC,KAAK,CAAC,MAAM,CAAC,EAAE,CAMnB,CACN,CAAC,GACC,IACG,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RestAgentState } from "./schemas.js";
|
|
2
|
+
/**
|
|
3
|
+
* When the reason was said, where that is a moment of its own to show beside it: one the
|
|
4
|
+
* console keeps, and another than the state's. A reason that came with its state is of the
|
|
5
|
+
* state's moment, which stands with the state; one of before the console kept such a moment
|
|
6
|
+
* has none. Either is shown without one, and never beside the state's as if it were its own.
|
|
7
|
+
*/
|
|
8
|
+
export declare function reasonMoment(state: Pick<RestAgentState, "since" | "reasonAt">): string | undefined;
|
|
9
|
+
//# sourceMappingURL=agent-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-state.d.ts","sourceRoot":"","sources":["../src/agent-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAcnD;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,GAChD,MAAM,GAAG,SAAS,CAUpB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// How an agent account stands (ADR-0085), as the pages and the command read it: the state has
|
|
2
|
+
// a moment, since when it stands, and the reason may have another, when it was said. A reason
|
|
3
|
+
// changes under a state that stays, a turn completes or a new conversation begins while the
|
|
4
|
+
// agent runs on, so the one is never shown as the other's.
|
|
5
|
+
/**
|
|
6
|
+
* How far apart the two moments are before the reason's is shown beside it: a reason said
|
|
7
|
+
* within a minute of its state is the state's own, and the pages show a moment to the minute.
|
|
8
|
+
* The runner's clock and the console's are two machines', a few seconds apart.
|
|
9
|
+
*/
|
|
10
|
+
const OWN_MOMENT_MS = 60_000;
|
|
11
|
+
/**
|
|
12
|
+
* When the reason was said, where that is a moment of its own to show beside it: one the
|
|
13
|
+
* console keeps, and another than the state's. A reason that came with its state is of the
|
|
14
|
+
* state's moment, which stands with the state; one of before the console kept such a moment
|
|
15
|
+
* has none. Either is shown without one, and never beside the state's as if it were its own.
|
|
16
|
+
*/
|
|
17
|
+
export function reasonMoment(state) {
|
|
18
|
+
const at = state.reasonAt ?? undefined;
|
|
19
|
+
if (at === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
const said = Date.parse(at);
|
|
23
|
+
const since = Date.parse(state.since);
|
|
24
|
+
return Number.isNaN(said) || Number.isNaN(since) || Math.abs(said - since) < OWN_MOMENT_MS
|
|
25
|
+
? undefined
|
|
26
|
+
: at;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=agent-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-state.js","sourceRoot":"","sources":["../src/agent-state.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,8FAA8F;AAC9F,4FAA4F;AAC5F,2DAA2D;AAE3D;;;;GAIG;AACH,MAAM,aAAa,GAAG,MAAM,CAAC;AAE7B;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAC1B,KAAiD;IAEjD,MAAM,EAAE,GAAG,KAAK,CAAC,QAAQ,IAAI,SAAS,CAAC;IACvC,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC;QACrB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa;QACxF,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,EAAE,CAAC;AACT,CAAC"}
|