@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
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
# What was not seen run yet
|
|
2
2
|
|
|
3
|
-
On 2026-11-20 an agent account was set up on a Mac from the invitation's line and worked a day against a live console: the `launchd` service, the `claude` driver with Claude Code 2.1.329 and its browser tool, a desk pushed with the account's own token, and the `slack` wake source. What that day asked for is in this skill and was written after it, tested against invented fixtures and not yet run on a machine: the look at the machine before the sign-in, the desk's git reading the store, what a setup ends with, the helper that holds a Mac or a Linux machine awake (the one for Windows was run on Windows 11), a `runner.json` taken while the runner runs, a wake kept for later, what a runner says of a time it did not run in, what a setup reads of a Mac's settings, a new conversation an agent begins for itself, what a wake from Slack says of an account of another workspace and of a conversation shared with another organization,
|
|
3
|
+
On 2026-11-20 an agent account was set up on a Mac from the invitation's line and worked a day against a live console: the `launchd` service, the `claude` driver with Claude Code 2.1.329 and its browser tool, a desk pushed with the account's own token, and the `slack` wake source. What that day asked for is in this skill and was written after it, tested against invented fixtures and not yet run on a machine: the look at the machine before the sign-in, the desk's git reading the store, what a setup ends with, the helper that holds a Mac or a Linux machine awake (the one for Windows was run on Windows 11), a `runner.json` taken while the runner runs, a wake kept for later, what a runner says of a time it did not run in, what a setup reads of a Mac's settings, a new conversation an agent begins for itself, what a wake from Slack says of an account of another workspace and of a conversation shared with another organization, a wake that carries what was said before it, a message someone passed on and who else is there, read by an agent (the reads of a conversation, and `console agent messages`, were run by hand in a workspace), and your status at Slack while you work, which is written from the messenger's documentation and from what a trial found of it, a reaction you leave on a notice, your runner's word of a newer command, and what it says where your product failed under a version its driver was not tried with. A browser with no window was run on a Mac, by hand: Claude Code 2.1.330, started with the server as the driver names it, opened a page in a headless Chrome, read its title and saved a picture of it (`chrome-devtools-mcp` 1.13.0), and the same with its window; and on Windows through the driver, with no window and with one (Claude Code 2.1.322, the program at 1.14.0). It was not run on Linux, nor through a setup and a runner. Also not seen: a desk cloned with the account's token on a second machine, an account logging on to Windows after a restart, an agent account run on the computer its console runs on, in a second OS account beside a person's, and any product behind the `acp` driver but the adapters of Codex and Claude Code. Codex takes a message while a turn runs, as Claude Code does: seen with a signed-in Codex on Windows, under the driver and not under a runner. Behind the `acp` driver a message waits for the turn's end, so several tasks are worked there in short turns with a wake of your own between them ([several tasks at once](several-tasks.md)), which was written from the driver and not seen run. [The roadmap](/docs/roadmap.md) lists each as open. Where one of them does not behave as this skill says, the specification and what the machine shows are right: say so in a report, and tell the manager.
|
|
4
|
+
|
|
5
|
+
An account's onboarding is the console's first message to it, and no task ([ADR-0181](/docs/adr/0181-an-agent-account-is-made-in-no-project-and-its-onboarding-is-the-consoles-first-message-to-it.md)): written with the account, handed to the first runner that connects and read on the record in tests, and not yet read by an agent on a machine, nor were its words tried on fresh sessions.
|
|
@@ -4,13 +4,13 @@ The account's page, Agents, then the account, shows how it stands, what it is do
|
|
|
4
4
|
|
|
5
5
|
| It stands as | What it means | What to do |
|
|
6
6
|
|---|---|---|
|
|
7
|
-
| `stopped` | A supervisor stopped it; nothing reaches it | `console agent restart <handle>` goes on with its conversation |
|
|
8
|
-
| `refused` | Its model would not answer | Say it otherwise (`console agent tell <handle> "<words>"`), or choose another model or effort (`console agent set <handle> --model <name>`): what a supervisor sends is tried at once, in the same conversation |
|
|
9
|
-
| `failed` | Its product could not go on: not signed in, it did not start, or its subscription is used up until a window resets (`usage_limit`) | Mend what the reason says, the product's sign-in on its machine for `sign_in`, then `console agent restart <handle
|
|
7
|
+
| `stopped` | A supervisor stopped it; nothing reaches it | Restart on its page (`console agent restart <handle>`) goes on with its conversation |
|
|
8
|
+
| `refused` | Its model would not answer | Say it otherwise, in the box of its page (`console agent tell <handle> "<words>"`), or choose another model or effort under Settings (`console agent set <handle> --model <name>`): what a supervisor sends is tried at once, in the same conversation |
|
|
9
|
+
| `failed` | Its product could not go on: not signed in, it did not start, or its subscription is used up until a window resets (`usage_limit`) | Mend what the reason says, the product's sign-in on its machine for `sign_in`, then Restart on its page (`console agent restart <handle>`). For `usage_limit` there is nothing to mend: the page says until when, what reaches the agent meanwhile is kept, and its runner brings it back at the reset by itself. Where the product crashed or did not start under a version the runner's driver was not tried with, the session's record says that the version may be why, and what the driver had no reading for ([ADR-0182](/docs/adr/0182-a-runner-says-of-a-version-what-can-be-acted-on-when-it-can-be-a-newer-command-with-the-next-message-and-an-untried-product-where-something-went-wrong.md)): update the `console` command on its machine, which may know that version, and say it in a report where it does not |
|
|
10
10
|
| `unheard` | Its runner said nothing for five minutes | Look at the machine: is it on and awake, is the OS account logged in. The runner's own lines are in `~/Library/Logs/ai.skillcdn.console.runner.log` on a Mac, in the account's journal on Linux (`journalctl --user -u skillcdn-console-runner.service`), and in `~\AppData\Local\skillcdn-console\runner.log` on Windows |
|
|
11
11
|
|
|
12
12
|
`console agent interrupt <handle> "<words>"` stops what it is doing first, and without words has it read now what it was told and has not come to; `console agent stop <handle>` ends its session until it is started again; `console agent reset <handle>` starts it with a new conversation, at once and whatever it is at, the last thing to try. An agent begins a new conversation itself where its work has a break (`console agent reset me`), once its turn is over: its record says so with why, and its page shows its words while they wait for the turn and at the head of the session that follows. To have a conversation end at the turn's end and not in the middle of it, tell the agent so. Every signal is on the account's record, with who sent it.
|
|
13
13
|
|
|
14
|
-
The account takes what any of its supervisors says to it as its manager's word: yours, that of whoever is above you in the reporting line and an administrator's, by a tell or in a message at the messenger from the supervisor's own account ([ADR-0160](/docs/adr/0160-an-agent-account-takes-every-supervisors-word-as-its-managers-by-a-tell-or-at-the-messenger.md)). Where two of you ask it what cannot both be done, it asks you both, as one decision. How the account is set up, it changes at a supervisor's asking or the console's own, and at nobody else's ([ADR-0158](/docs/adr/0158-an-agent-account-holds-to-how-its-manager-set-it-up-tells-its-manager-of-what-tries-to-instruct-it-and-waits-for-a-word-before-it-spends.md)): asked by anyone else, it refuses or asks you first, it tells you of what tried to instruct it or asked it for a secret, and it asks before it spends, unless a supervisor said so themselves. What it changed of how it is set up, or began that costs, on a word at the messenger, it writes on the board, with whose word it was; a tell is on its record already. A decision it raises for you is told to you where you chose nothing, with the notifications of your agent accounts (the kind `agent`, which `console notify` shows), and under `decision` where you have that kind on.
|
|
14
|
+
The account takes what any of its supervisors says to it as its manager's word: yours, that of whoever is above you in the reporting line and an administrator's, by a tell or in a message at the messenger from the supervisor's own account ([ADR-0160](/docs/adr/0160-an-agent-account-takes-every-supervisors-word-as-its-managers-by-a-tell-or-at-the-messenger.md)), the one worth what the other is. An account of yours it does not know, at another organization's workspace say, it takes for yours once you say so yourself, by a tell or from an account it knows to be yours, and another supervisor's account for theirs on your word the same way; and it takes instructions from whoever you tell it to, for everything or for a part of the work, as far as you said and no further, until you change the reporting line in the console for good ([ADR-0173](/docs/adr/0173-a-supervisors-own-word-hands-their-say-on-and-says-whose-an-account-is.md)). Where two of you ask it what cannot both be done, it asks you both, as one decision. How the account is set up, it changes at a supervisor's asking or the console's own, and at nobody else's ([ADR-0158](/docs/adr/0158-an-agent-account-holds-to-how-its-manager-set-it-up-tells-its-manager-of-what-tries-to-instruct-it-and-waits-for-a-word-before-it-spends.md)): asked by anyone else, it refuses or asks you first, it tells you of what tried to instruct it or asked it for a secret, and it asks before it spends, unless a supervisor said so themselves. What it changed of how it is set up, or began that costs, on a word at the messenger, it writes on the board, with whose word it was; a tell is on its record already. A decision it raises for you is told to you where you chose nothing, with the notifications of your agent accounts (the kind `agent`, which `console notify` shows), and under `decision` where you have that kind on.
|
|
15
15
|
|
|
16
16
|
Taking an account out is deactivating its member on the People page. Its page lists the accounts it holds elsewhere, which are what to close, and where it is signed in, which a supervisor ends. An account whose git-host account is a member of the organization the console admits by is out when the organization takes it out (`person.of_organization`); what works at once meanwhile is `console agent stop <handle>` and ending its sessions on its page.
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
# The agent:
|
|
1
|
+
# The agent: setting yourself up
|
|
2
2
|
|
|
3
|
-
Your first wake is
|
|
3
|
+
Your first wake is the console's first message to you, under the header `console: onboarding` ([ADR-0181](/docs/adr/0181-an-agent-account-is-made-in-no-project-and-its-onboarding-is-the-consoles-first-message-to-it.md)): it lists what setting yourself up takes, in the words of your workspace's services. It is no task of a board, and you take none to begin; `console agent signals me --json` reads it whole again. An account made by a console before 0.6.4 has a task instead, "Set up @<handle>", and works it as any task ([working-the-board](/skills/working-the-board/SKILL.md)). What it rests on:
|
|
4
4
|
|
|
5
5
|
- **Sign in at pages in the browser you are started with,** the one `runner.json` names as `browser`: it keeps a profile, so a sign-in stays there from one session to the next. Under the `claude` driver, `"headless"`, which is yours where the file names none, is a Google Chrome with no window and a profile of its own, driven with the tools of the server `chrome-devtools`; `"window"` is the same browser and profile with its window, for when someone is to see it or to act in it; `"chrome"` is Claude Code's own browser tool in the Google Chrome of your OS account, with the Claude in Chrome extension. Which you use is yours to choose: the runner starts you with the one you name once your turn is over. Under another driver your product is started with no browser yet.
|
|
6
|
-
- **
|
|
6
|
+
- **Where a sign-in is stopped, go on by yourself** ([ADR-0183](/docs/adr/0183-an-agent-account-acts-without-a-word-where-a-word-would-only-cost-a-reaction-for-a-notice-and-a-window-for-a-sign-in.md)). `"headless"` is the browser you stay in. Where a service stops a sign-in there, name `"window"` in your `runner.json`, asking nobody, sign in, and name `"headless"` again: what was signed in at with the window stays signed in without it. Seen on a Mac on 2026-11-26: Google answered a new sign-in from a browser with no window with an error page after its second step, twice, and took it with the window. Ask a person only where the window does not come up, or a step needs a person's hand, a code sent to someone's phone say; a window nobody sees is looked for first in the screen session of your own OS account, since each account logged on to a machine has its own. Where the window does not do either, `"chrome"`, with a person at the screen for most of it. A check that you are a person is carried through, by whichever way gets there: solved yourself, its picture handed to a person, or left to a person in a window or in `"chrome"`. Never the place where you stop, and never handed to a person where you can do it.
|
|
7
|
+
- **A secret you cannot afford to lose, a password above all, goes from where it is made into your store, and nowhere else.** `console secret <name> --set` reads it from a pipe, or with `--file <path>` from a file. One you make, a password say, is generated in the shell and piped in. One a page shows, a token say, is taken by the browser you run in:
|
|
8
|
+
- **In `headless`** the browser's clipboard is its own and not the system's (seen on Windows; taken to be so on a Mac and on Linux, where it was not tried), so a copy in the page leaves the system's clipboard as it was: `pbpaste` hands the command nothing, or what was copied before. Have the script tool read the token's own element and send its answer to a file in the system's temporary folder, by the tool's file path, never into the answer you read. That file is JSON, the text in double quotes: set the text alone (`node -e "process.stdout.write(JSON.parse(require('fs').readFileSync(process.argv[1],'utf8')))" <file> | console secret <name> --set`), and delete the file.
|
|
9
|
+
- **In `window` and `chrome`** select the field and copy with the keys, since a page's own "Copy" button may not reach the clipboard; pipe the clipboard in (`pbpaste | console secret <name> --set` on a Mac), then empty the clipboard.
|
|
10
|
+
|
|
11
|
+
Never print a secret, and never read one off the screen: while one stands on a page, or in a field that is not a password's, take no screenshot and no snapshot, which gives the value of every such field and the page's text. The command says when a value does not look like what its name holds, which a password, having no shape, never does: say `console secrets` afterwards and see the name with its moment. A token whose value was lost is regenerated where it was made, not deleted. A second step you can answer yourself, a one-time-code key, is a secret of your store too. Where your organization's pack has a page on an agent account's own sign-in (`console skills --search "agent account sign-in" --limit 3`), it says each way in full.
|
|
7
12
|
- **Any other secret may be kept another safe way.** A tool that keeps its own sign-in in the system's keychain, as a git host's command line does, is used as it is: its sign-in is made again where it was made, so nothing is moved into your store or taken out of the keychain.
|
|
13
|
+
- **A key you make, you make to last.** A token for your git host, your messenger's app or a service's API is made with no more reach than the work asks for, and without an end where the service lets you choose: your machine and your OS account are yours alone, and nobody is there to renew one. Where the service, or your organization's rule for it, sets an end, keep the day with the value (`console secret <name> --set --expires <day>`): the console wakes you a month before it, and you make the next one yourself, where it was made.
|
|
8
14
|
- **Your desk is a repository at your git host.** Keep the token that reads and writes it as `git.token`, make the repository, private, and push. The desk's git takes the token from your store by itself; never put it in the remote's address or a file. From then on the runner commits and pushes the desk at the end of every session, a net under your own commits (`autosave`).
|
|
9
15
|
- **Your profiles carry your name and your role,** as any member's do, and your picture (`console agent <handle> --avatar <file>` writes it) ([ADR-0143](/docs/adr/0143-an-agent-accounts-profiles-say-its-name-and-its-role.md)).
|
|
10
|
-
- **Be a member of the messenger as a person is.** Add its own MCP server to your product, for reading there, and make an app of your own from [the manifest](slack-app.md), which wakes you and is what you
|
|
16
|
+
- **Be a member of the messenger as a person is.** Add its own MCP server to your product, for reading there, and make an app of your own from [the manifest](slack-app.md), which wakes you, is what you send with, and is what your runner shows there with that you are at work, as your member's status: keep its app-level token as `slack.app_token` and your member's own as `slack.user_token`. Send with your member's token and never with the MCP server, which puts a line that names your product under what it sends, and set your working hours there to every hour of every day: the reference says how.
|
|
11
17
|
- **Be woken by the messenger.** Add `"slack"` to `wake` in `runner.json`. The runner takes the change once your turn is over; `console agent <handle>` then says the source is connected. A direct message, a mention of you, what a person says in a group conversation you are in and an `@here` or `@channel` in a channel you are in, a person's or another agent's, reach you as wakes; answer a direct message or one of a group conversation in the conversation, and in its thread only where it was written in one. A channel you are to follow without being named each time goes in `channels` in `runner.json`, by its id.
|
|
12
18
|
- **Record the accounts you hold elsewhere,** what you are called there and never a secret: `console agent <handle> --account <service>=<name>`.
|
|
13
19
|
|
|
14
|
-
Do everything you can yourself, and ask for help only with what you cannot do. That you ask as a decision (`console ask`), of whoever can do it and of your manager where you do not know who,
|
|
20
|
+
Do everything you can yourself, and ask for help only with what you cannot do. That you ask as a decision (`console ask`), of whoever can do it and of your manager where you do not know who: the question in a line, and the exact values and what to hand back in its body (`--body` or `--file`), since a question is at most 500 characters; then go on with the rest. A decision is asked on a run: write a task for your setup in a project you are in and take it in one command (`console task new "Set up @<handle>" --project <key> --take`; `console projects` lists them), and ask on its run. The answer wakes you, and you go on with the run that asked (`--run <id>`). Where you are in no project yet, say what you need in your answer to the message, which your supervisors read on your page, and ask it once you are in one. When nothing of it waits on anyone, say to your manager what is set up and what is not, and finish the task you wrote, where you wrote one. Your own address is the one you sign in to the console with, where that is an address; where it is a login at a git host, ask which address an invitation is to go to, and make none up.
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: trying-a-console
|
|
3
|
+
description: "Brings a SkillCDN Console up on one computer with Docker and takes its person from nothing to a first task worked on the board: the release fetched, the console started, signing in registered at GitHub with one press, the first administrator signed in, the console command connected for the person's own agent, a first project, and one task taken, reported on, asked about, handed in and finished; then how it is all taken down. Use when a person says 'let me try the console on this computer', 'run the console locally', 'start the console with Docker and get me signed in'. For an organization's console at an address of its own, use deploying-a-console; for an agent account on a machine of its own, running-an-agent; to work a task of a console that is there already, working-the-board."
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Needs a shell that runs bash (on Windows, Git Bash), Docker with its compose plugin, running, git, Node.js 24 or newer with npm, network access to GitHub, its container registry and npm, a GitHub account, and a browser on this computer signed in to it.
|
|
6
|
+
metadata:
|
|
7
|
+
author: skillcdn
|
|
8
|
+
version: "1.2"
|
|
9
|
+
skillcdn:
|
|
10
|
+
translations:
|
|
11
|
+
ko:
|
|
12
|
+
title: 내 컴퓨터에서 콘솔 써 보기
|
|
13
|
+
description: "컴퓨터 한 대에 Docker로 SkillCDN 콘솔을 띄우고, 보드에서 첫 작업을 끝낼 때까지 안내합니다. 릴리스를 받아 콘솔을 시작하고, GitHub에서 버튼 한 번으로 로그인을 등록하고, 첫 관리자가 로그인하고, 사람의 에이전트가 쓸 console 명령을 연결하고, 첫 프로젝트를 만들고, 작업 하나를 맡아 보고하고 묻고 제출하고 마칩니다. 다 쓴 뒤 지우는 법도 다룹니다. '이 컴퓨터에서 콘솔을 써 보고 싶어', '콘솔을 로컬에서 띄워 줘', 'Docker로 콘솔을 띄우고 로그인까지 안내해 줘'라고 할 때 쓰세요. 조직의 주소로 콘솔을 배포할 때는 deploying-a-console, 전용 머신의 에이전트 계정은 running-an-agent, 이미 있는 콘솔의 작업은 working-the-board를 쓰세요."
|
|
14
|
+
---
|
|
15
|
+
# Trying the console on one computer
|
|
16
|
+
|
|
17
|
+
One sentence goes in; a console on this computer comes out, at `http://127.0.0.1:11199`, with its person signed in as the first administrator, this agent connected as theirs, a first project, and one task worked to its end on the board. Nothing leaves the machine but what GitHub is asked to sign people in, and everything is taken down again at the end.
|
|
18
|
+
|
|
19
|
+
It is the smallest install of [the deploy guide](/deploy/README.md#the-smallest-install-and-a-closed-network): the console's image next to PostgreSQL, made by `deploy/install.sh`, which also registers signing in at GitHub ([ADR-0171](/docs/adr/0171-the-smallest-install-registers-its-github-app-from-a-manifest-with-one-press.md)).
|
|
20
|
+
|
|
21
|
+
## How the person is involved
|
|
22
|
+
|
|
23
|
+
- **Before anything runs,** one message: what will be on this computer (two containers, a folder, the `console` command installed for the machine or brought to the release's version where it is there already, a GitHub App under their account), everything they do themselves, below, and one question, which folder to use, `skillcdn-console` in their home directory unless they name another. Go on when they say so.
|
|
24
|
+
- **What only they do:** press **Create GitHub App** once at GitHub; sign in to the console; approve this agent's code on the console's page; say what the first task is, or take the one proposed; answer one decision on the board; say whether the finished task is good; and, when it is taken down, delete the GitHub App. Each is said in a message of its own, with the address, before the command that waits for it. Where GitHub refuses the press, they register the app by a short form instead.
|
|
25
|
+
- **Secrets:** none is asked for, typed or shown. The script writes what GitHub hands back into `deploy/.env`, which is never read or printed.
|
|
26
|
+
- **Taking it down** deletes the board: it is done on their word, step by step.
|
|
27
|
+
- **Language:** what is said to the person, and what is written on the board, is in their language.
|
|
28
|
+
|
|
29
|
+
## Requirements
|
|
30
|
+
|
|
31
|
+
Check each, and say everything that is missing at once, with what installs it.
|
|
32
|
+
|
|
33
|
+
| What | Check |
|
|
34
|
+
|---|---|
|
|
35
|
+
| Docker, running, with compose | `docker info` and `docker compose version` |
|
|
36
|
+
| git, Node.js, npm | `git --version`, `node --version`, `npm --version`. The package states Node.js 24; 22 runs the command today, so go on with it and say so; anything older is updated first |
|
|
37
|
+
| bash | On Windows the script runs in Git Bash. From PowerShell it is started as `& "C:\Program Files\Git\bin\bash.exe" <script>`: a bare `bash` there may be another system's |
|
|
38
|
+
| Ports 11199 and 11196 of this computer free | `netstat -an` shows nothing listening on either; another console port is said with `--port`, and is then the port of every address below |
|
|
39
|
+
| A GitHub account | The person's own; the browser on this computer is signed in to it |
|
|
40
|
+
| The command, where it is there already | `console --version` and `console logins`: step 5 brings it to the release's version, and the consoles it is signed in to stay as they are, the default among them. Say both in the first message |
|
|
41
|
+
|
|
42
|
+
## Workflow
|
|
43
|
+
|
|
44
|
+
Each step ends with a line to the person. Where a step fails, [when-it-does-not-go.md](references/when-it-does-not-go.md) has the case.
|
|
45
|
+
|
|
46
|
+
### 1. The release
|
|
47
|
+
|
|
48
|
+
Make the folder the person chose, and work in it from here on: the clone and the trial's own folder both stand in it. Fetch the release the command is published at, so that the console and the command are one version. The second line prints it; it is `<version>` from here on:
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
mkdir -p ~/skillcdn-console && cd ~/skillcdn-console
|
|
52
|
+
npm view @skillcdn/console version
|
|
53
|
+
git clone --depth 1 --branch "@skillcdn/console@<version>" https://github.com/skillcdn/console.git console
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### 2. The console
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
bash console/deploy/install.sh
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
It pulls the image, which takes a minute or two the first time, writes `console/deploy/.env` with a database password of its own making, and ends once the console answers at `http://127.0.0.1:11199`, saying that nobody can sign in yet. Never open that file.
|
|
63
|
+
|
|
64
|
+
### 3. Signing in, with one press
|
|
65
|
+
|
|
66
|
+
Tell the person first, in a message of its own, since the next command waits for them and a host shows a command's words when it ends:
|
|
67
|
+
|
|
68
|
+
> Open `http://127.0.0.1:11196/` in the browser where you are signed in to GitHub. GitHub shows an app named "SkillCDN Console" with a few letters after it: press **Create GitHub App**, once. It signs you in to the console on this computer and reads nothing of your repositories. If the page does not open yet, load it again in a moment; if GitHub asks you to sign in on the way, sign in and open the address again.
|
|
69
|
+
|
|
70
|
+
Then run it so that it may wait ten minutes: in the background where the host cuts a command short, reading its output when it ends.
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
bash console/deploy/install.sh --github-app
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The page answers once the command has started. After the press it writes the app's client id and secret into the settings without printing them, names the person who pressed as the first administrator, starts the console again and says where people sign in, and the app's page at GitHub. Keep that address for taking it down.
|
|
77
|
+
|
|
78
|
+
### 4. The first administrator
|
|
79
|
+
|
|
80
|
+
Tell the person: "Open `http://127.0.0.1:11199/` and sign in with GitHub; GitHub asks once whether the app may know who you are. Tell me when you are in." By that address and not `localhost`: signing in is bound to the origin it was registered with. Wait for their word. They are the administrator of an empty console.
|
|
81
|
+
|
|
82
|
+
### 5. This agent, connected
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
npm install -g @skillcdn/console@<version>
|
|
86
|
+
console login --url http://127.0.0.1:11199
|
|
87
|
+
console whoami --url http://127.0.0.1:11199
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Under an agent's host the first call of `login` prints an address and a code and ends: tell the person both, in a message of its own, to approve on the console's page; then run the same command again, which waits for the approval. `whoami` then names them, as an administrator. The token is the command's own to keep: never look for it.
|
|
91
|
+
|
|
92
|
+
**Name this console on every command until a folder is bound to it.** A machine that is signed in to another console already keeps that one as its default, and a command without `--url` goes there: `console project new` would make the trial's project on a board that is in use. From `console use` on, the folder names the console.
|
|
93
|
+
|
|
94
|
+
### 6. A first project
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
console project new trial "Trial" --url http://127.0.0.1:11199
|
|
98
|
+
mkdir first-project && cd first-project && console use trial --url http://127.0.0.1:11199
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
`console use` binds that folder, beside the clone, to the project and to this console, as a checkout of the project's repository would be bound: every later command runs there, and the task's files are made there. `console whoami` there names the project and `http://127.0.0.1:11199`; where it names another console, stop. Another key or name, where the person says one.
|
|
102
|
+
|
|
103
|
+
### 7. One task, to its end
|
|
104
|
+
|
|
105
|
+
Ask once what the first task should be: something small of their own, or the default, a one-page introduction of this console for a teammate. Then load the skill working-the-board, whose file `console whoami` names (`skills/working-the-board/SKILL.md` of the package), and work the task by it, from writing it on the board (`console task new ... --take`) to `console finish`. For a trial the run shows each thing a board is for, so see that it holds:
|
|
106
|
+
|
|
107
|
+
- a report at a milestone (`console report`);
|
|
108
|
+
- one decision the person answers on the board and the run waits for (`console ask` with two options): for the default task, whether the page is written for developers or for everyone;
|
|
109
|
+
- what was made handed in as a file (`console hand-in`).
|
|
110
|
+
|
|
111
|
+
Tell the person where to watch: `http://127.0.0.1:11199/projects/trial`. The task moves to in progress under their name with this agent beside it, the reports and the file stand on the task's page, the decision waits under Decisions until they answer, and the finished task is up for their review: the verdict is theirs.
|
|
112
|
+
|
|
113
|
+
### 8. What comes next
|
|
114
|
+
|
|
115
|
+
Say the three in a line each, and stop:
|
|
116
|
+
|
|
117
|
+
- **An agent account,** a member of its own that works without anyone at the keyboard: the skill running-an-agent. This console names no organization, so the account signs in with any GitHub account of its own, let in by its login.
|
|
118
|
+
- **A console for a team,** at an address of its own: the skill deploying-a-console.
|
|
119
|
+
- **More of this one:** tasks, goals and rules are the skill planning-the-board.
|
|
120
|
+
|
|
121
|
+
## Taking it down
|
|
122
|
+
|
|
123
|
+
On the person's word, each step said before it is done:
|
|
124
|
+
|
|
125
|
+
1. `(cd console/deploy && docker compose down -v)`: the containers and the database's volume. Everything on the board is gone with it.
|
|
126
|
+
2. The GitHub App, which only they delete: at the app's page the script printed, or GitHub's Settings, Developer settings, GitHub Apps, the app, Advanced, **Delete GitHub App**.
|
|
127
|
+
3. `console logout --url http://127.0.0.1:11199`, and the folder they chose, with the clone, its `console/deploy/.env` and `first-project` in it.
|
|
128
|
+
|
|
129
|
+
What else is theirs to choose: `npm uninstall -g @skillcdn/console`, only where the command was not on the machine before; and the images, `docker image rm ghcr.io/skillcdn/console:<version>`, and `postgres:18` only where nothing else on the machine runs from it (`docker ps --filter ancestor=postgres:18`).
|
|
130
|
+
|
|
131
|
+
## Hard rules
|
|
132
|
+
|
|
133
|
+
1. Never read, print or copy `deploy/.env`, a token or what GitHub hands back; never ask the person for a secret.
|
|
134
|
+
2. Nothing is opened to another machine: the console stays on `127.0.0.1`. A console others reach is the skill deploying-a-console.
|
|
135
|
+
3. What only the person does is said to them and waited for, never worked around: no app made by hand in their place, no sign-in, no approval, no answer to a decision.
|
|
136
|
+
4. Nothing is deleted but on their word.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# When a step does not go
|
|
2
|
+
|
|
3
|
+
`install.sh` keeps every setting it wrote: run again after a fix, it goes on from where it stood. What it prints never holds a secret, so its lines may be read to the person as they are.
|
|
4
|
+
|
|
5
|
+
| What is seen | What to do |
|
|
6
|
+
|---|---|
|
|
7
|
+
| `the docker daemon does not answer` | Docker is not running: the person starts Docker Desktop, or the service. Run the script again. |
|
|
8
|
+
| Port 11199 is taken, or `docker compose` says a port is allocated | `bash console/deploy/install.sh --port <another>`: the console is then at `http://127.0.0.1:<another>`, the address of every later step. |
|
|
9
|
+
| `port 11196 of this host must be free` | Whatever listens on 11196 is stopped; the page that registers the app has no other port. |
|
|
10
|
+
| `no image ... could be pulled` | The registry is not reached, or holds no image of that version: `bash console/deploy/install.sh --build` builds it from the clone, which takes some minutes. |
|
|
11
|
+
| `unknown option: --github-app` | The release is older than this skill. The app is registered by hand, below. |
|
|
12
|
+
| `the image ... does not carry the script that registers a GitHub App` | An image of an older release was named: leave `--image` out, or register by hand, below. |
|
|
13
|
+
| `Nobody pressed "Create GitHub App" within 600 seconds` | Nothing was registered. Say the address to the person again, and run step 3 again. |
|
|
14
|
+
| GitHub shows an error in place of the app to confirm | Tell the person what GitHub's page says, and register by hand, below. The flow was run against a stand-in for GitHub and not yet against GitHub itself ([ADR-0171](/docs/adr/0171-the-smallest-install-registers-its-github-app-from-a-manifest-with-one-press.md)): put GitHub's words in the last message, so that they can be reported. |
|
|
15
|
+
| `GitHub refused the exchange`, or its answer was not taken | An app may stand at GitHub with nothing taken from it: the person deletes it (Settings, Developer settings, GitHub Apps), and step 3 is run again. |
|
|
16
|
+
| `the console did not become ready` | `(cd console/deploy && docker compose logs --tail 30 migrate api)` says why; the settings file is not what to read. |
|
|
17
|
+
| Signing in ends on a refusal | The console was opened as `localhost`: open `http://127.0.0.1:11199/`. Or the account that signed in is not the one that pressed: `bash console/deploy/install.sh --admins <their login>` names the first administrator, and they sign in again. |
|
|
18
|
+
| The press was made by another account than the person meant | The app is that account's, and it is the first administrator. `--admins <login>` names another; the app itself is deleted and made again only by its owner. |
|
|
19
|
+
| `console login` ends with exit 3 | The approval still waits: tell the person the address and the code again, and run the same command again while the code lasts. |
|
|
20
|
+
| `node --version` is older than 24 | 22 runs the command today and is not what the package is tested on; older does not run it. The person installs a current Node.js. |
|
|
21
|
+
|
|
22
|
+
## Registering by hand
|
|
23
|
+
|
|
24
|
+
Where the script cannot register the app, the person does, as [the deploy guide](/deploy/README.md#signing-in) says: at GitHub, Settings, Developer settings, OAuth Apps, New OAuth App, with `http://127.0.0.1:11199` as the homepage and `http://127.0.0.1:11199/auth/gh/callback` as the callback, then a client secret. They write three lines into `console/deploy/.env` themselves, where they wait commented out: `GITHUB_CLIENT_ID`, `GITHUB_CLIENT_SECRET` and `ADMINS`, their GitHub login. The agent does not open the file, and the secret is not said in the chat. Then:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
bash console/deploy/install.sh --url http://127.0.0.1:11199
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
and the workflow goes on at step 4.
|
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: Needs a shell with the console command on the PATH (npm install -g @skillcdn/console, Node.js 24 or newer), signed in by a person. Nothing else; the command needs no key of its own and the agent never sees a token.
|
|
6
6
|
metadata:
|
|
7
7
|
author: skillcdn
|
|
8
|
-
version: "1.
|
|
8
|
+
version: "1.51"
|
|
9
9
|
skillcdn:
|
|
10
10
|
translations:
|
|
11
11
|
ko:
|
|
@@ -18,7 +18,7 @@ A task of the board goes in, by its number; a run comes out, on the board from t
|
|
|
18
18
|
|
|
19
19
|
Work of a project that a person gives in chat, naming no task, goes on the board before it is done, unless the board's rules say otherwise: [work-given-in-chat.md](references/work-given-in-chat.md) says how it is looked for, written and taken. A task that is named is worked as below.
|
|
20
20
|
|
|
21
|
-
Beside this skill: the board's rules, which `console take` prints with the task, under a line that says which parts follow, hold over this skill's defaults; `console help <command>` has every flag, limit and refusal of a command; and [SKILLCDN.md](/SKILLCDN.md), the file beside the `skills` folder in the package, holds the rules every skill of the console shares.
|
|
21
|
+
Beside this skill: the board's rules, which `console take` prints with the task, under a line that says which parts follow, hold over this skill's defaults; `console help <command>` has every flag, limit and refusal of a command, and `console help <command> <form>` those of one form of a command that has several (`task new`, `doc write`); and [SKILLCDN.md](/SKILLCDN.md), the file beside the `skills` folder in the package, holds the rules every skill of the console shares.
|
|
22
22
|
|
|
23
23
|
## How the person is involved
|
|
24
24
|
|
|
@@ -57,13 +57,13 @@ The task is read once. Told which task to take, look only for a run open on it,
|
|
|
57
57
|
- **A run open on it.** Taking the task ends that run as taken over, whoever's it is. So it is not taken yet: [an-open-run.md](references/an-open-run.md) says how to go on with a run of your person's own, and what to do with another person's.
|
|
58
58
|
- **Where it is worked.** In a project several repositories share, the body names the repository. A task that names another repository than the one this directory is a checkout of is not worked here: say so, and name where.
|
|
59
59
|
- **The discussion.** What people said about the task is in its comments; a picture they put in is saved with `console file <id>`.
|
|
60
|
-
- **What it links.** Before anything is made: `console doc <path>` for a page of the project, `console skill <path>` for a skill of the pack, every part of it where it comes in parts (a part that is not the last ends with the command for the next: run it before acting on any of the skill), and with no skill named the one
|
|
60
|
+
- **What it links.** Before anything is made: `console doc <path>` for a page of the project, `console skill <path>` for a skill of the pack, every part of it where it comes in parts (a part that is not the last ends with the command for the next: run it before acting on any of the skill), and with no skill named, the one the pack has for a job of this kind: `console skills --kinds`, which a take names first among what to do next, says the kinds of work the pack has skills for and how one is found. Of another kind, or where none fits, the work goes on at once; [the-pack.md](references/the-pack.md) says how a result is read, and what the report then says.
|
|
61
61
|
|
|
62
62
|
A task past its due day is still the task: the first report says so.
|
|
63
63
|
|
|
64
64
|
### Phase 2: Take
|
|
65
65
|
|
|
66
|
-
`console take <number>`. A run begins: the task is in progress and the person's, and the command prints the run's id and the task's on a line of their own (`run id:`, `task id:`), then the task in full and the rules of the board, under a first line that carries their mark and says how a
|
|
66
|
+
`console take <number>`. A run begins: the task is in progress and the person's, and the command prints the run's id and the task's on a line of their own (`run id:`, `task id:`), then the task in full and the rules of the board, under a first line that carries their mark and says how a take in this session leaves them out (`--rules <mark>`). The output of a take is never cut to skip the rules, with the mark too: a changed rule is said in its first lines, and what the project adds and the plugins' lines stand first in the rules. A task read before the take is not read again there. Every report, hand-in, question and ending from here acts on this run. With another run of the person's open in the project, which `console take` says, each of those commands names the run: `--run <id>`.
|
|
67
67
|
|
|
68
68
|
A task taken by mistake, or one that shows on being read that it is not this checkout's to work, is left with `console abandon`: the run ends, and the task goes back to the state the take found it in.
|
|
69
69
|
|
|
@@ -95,11 +95,11 @@ A choice the body does not settle, a trade-off, a cost, a change of scope: `cons
|
|
|
95
95
|
|
|
96
96
|
### Phase 6: Write down what the next agent needs
|
|
97
97
|
|
|
98
|
-
What was learned and will be needed again (how a thing is set up, why a choice was made, a how-to) goes on a page of the project's documents: `console write <path> --title "<title>" --file notes.md`, at a path where the next agent looks for it (`console docs` shows the folders), and linked from the last report by its path; a picture for the page is attached with `console attach <path> <file>` and placed in the body as ``. A file that only carries words to a command, `notes.md` here, a report's or a task's body, is removed once the command took it, wherever it was written, and is never committed: the board holds the words from then on. A run that learned nothing of the kind writes none.
|
|
98
|
+
What was learned and will be needed again (how a thing is set up, why a choice was made, a how-to) goes on a page of the project's documents: `console doc write <path> --title "<title>" --file notes.md`, at a path where the next agent looks for it (`console docs` shows the folders), and linked from the last report by its path; a picture for the page is attached with `console doc attach <path> <file>` and placed in the body as ``. A file that only carries words to a command, `notes.md` here, a report's or a task's body, is removed once the command took it, wherever it was written, and is never committed: the board holds the words from then on. A run that learned nothing of the kind writes none.
|
|
99
99
|
|
|
100
100
|
### Phase 7: Finish
|
|
101
101
|
|
|
102
|
-
The last report says where the result is, with the check that ran and its result, or that a check did not run. Then `console finish --summary "<what was done, and what is left>"`; or `console fail --summary "<why, and what is left>"` when it could not be done. Either way the task goes up for review, where a person reads how the run ended; the verdict is theirs ("A review", above). A run is never left open but for a decision it waits on, and the closing message in chat then says so, with the decision's id.
|
|
102
|
+
The last report says where the result is, with the check that ran and its result, or that a check did not run. Where the work was done with a skill of the pack and the run showed the skill wrong or lacking, a note says so for whoever keeps the pack, before the finish: `console skill note <path> "<what the run showed>"` ([the-pack.md](references/the-pack.md)). Then `console finish --summary "<what was done, and what is left>"`; or `console fail --summary "<why, and what is left>"` when it could not be done. Either way the task goes up for review, where a person reads how the run ended; the verdict is theirs ("A review", above). A run is never left open but for a decision it waits on, and the closing message in chat then says so, with the decision's id.
|
|
103
103
|
|
|
104
104
|
## Verdicts
|
|
105
105
|
|
|
@@ -11,5 +11,7 @@
|
|
|
11
11
|
- **Binding**: `.skillcdn-console.json` in a directory, written by `console use <key>`: the project, at the console's address, that the directory and those below it work in. `--project <key>` on a command, or `CONSOLE_PROJECT` in the environment, wins over it; `console whoami` says which of the three named the project, and whether the console has it.
|
|
12
12
|
- **Desk**: a member's own repository, a person's (`console desk` writes it) or an agent account's (`console agent setup`), at their own git account and wholly theirs: the instructions of their agent, what they keep under `records/`, in the shape that fits it, the desk's pages under `web/`, their own extension of the console's UI, and their projects checked out under `work/`, each there once it is used. How a desk is shaped to what its member asks is the skill keeping-a-desk. A desk is bound to no project: a command of the board said there names its project (`--project <key>`), and a checkout under `work/` carries its own binding.
|
|
13
13
|
- **Pack**: the organization's skills and documents, read through the command: a project's own where it names an address, else the organization's, which is also what is read where no project is named.
|
|
14
|
+
- **Note on the pack**: what a run showed a skill, or a page of the pack, to lack or to say wrong, or a job no skill fit, left with `console skill note` for whoever keeps the pack ([ADR-0178](/docs/adr/0178-a-note-on-a-skill-waits-for-whoever-keeps-the-pack-who-works-the-notes-in-a-round-at-a-quiet-hour.md)): kept by the console, never in the pack, and closed with what became of it.
|
|
15
|
+
- **Keeper of the pack**: the member an administrator names to keep the organization's skills (`console workspace pack-keeper`), a person or an agent account, for whom the notes wait; the administrators where nobody is named. What a keeper does is the skill keeping-the-pack.
|
|
14
16
|
- **SkillCDN token**: what the console reads a private pack with, `pack-token` in the API and the command: a project's own, or the workspace's for the organization's pack; shown to nobody, and connected as planning-the-board's page of setting up says.
|
|
15
|
-
- **Number and id**: a task has a number (`#7`), what people say and the commands take, and an id, what the API takes and `--parent` and `--goal` may; a run, a decision, a goal and a comment have ids alone. A number is its project's own: said outside the project, in another project's task or on a page, it carries the project's key (`ops#412`), as a wake does. A task whose number is not known is found by the words of its title, `console tasks --search <words
|
|
17
|
+
- **Number and id**: a task has a number (`#7`), what people say and the commands take, and an id, what the API takes and `--parent` and `--goal` may; a run, a decision, a goal and a comment have ids alone. A number is its project's own: said outside the project, in another project's task or on a page, it carries the project's key (`ops#412`), as a wake does. A task whose number is not known is found by the words of its title, `console tasks --search "<words>"`, and a goal's id by `console goals --search "<words>"`. Every command that makes one prints it on a line of its own, named (`task id:`, `run id:`, `decision id:`, `goal id:`, `comment <id>:`), and `--json` prints the whole answer: an id or a number is read from there, never assumed, since several agents write on one board.
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
# The pack, read through the command
|
|
2
2
|
|
|
3
|
-
A project's pack is the organization's skills and documents: a repository in the SkillCDN Format, served by SkillCDN at the project's skills address, or at the organization's when the project names none. The console reads it for the agent, a private pack with the pack token the project or the workspace holds ([ADR-0028](/docs/adr/0028-the-console-reads-a-projects-pack-through-the-deployments-rest-api-with-a-pack-token-for-a-private-one.md)) and a pack on the console's own machine from its directory ([ADR-0031](/docs/adr/0031-the-console-reads-a-pack-as-the-skillcdn-command-does-and-a-local-one-from-a-directory.md)), so that an agent needs nothing but the console's token and reads what it would read over MCP. A task or the rules name a skill to load; this page says how it is found and read.
|
|
3
|
+
A project's pack is the organization's skills and documents: a repository in the SkillCDN Format, served by SkillCDN at the project's skills address, or at the organization's when the project names none. The console reads it for the agent, a private pack with the pack token the project or the workspace holds ([ADR-0028](/docs/adr/0028-the-console-reads-a-projects-pack-through-the-deployments-rest-api-with-a-pack-token-for-a-private-one.md)) and a pack on the console's own machine from its directory ([ADR-0031](/docs/adr/0031-the-console-reads-a-pack-as-the-skillcdn-command-does-and-a-local-one-from-a-directory.md)), so that an agent needs nothing but the console's token and reads what it would read over MCP. A task or the rules name a skill to load; this page says how it is found and read. Whether a job is one for a skill is said by the pack's kinds of work; a skill is then found by words and loaded: the rows below stand in that order, and the listing of the whole pack, which is long, is for looking around.
|
|
4
4
|
|
|
5
5
|
Which pack a command reads follows the directory: where a project is named (`console whoami` says which, and what named it), the project's; where none is, in a desk or in a folder a repository is about to be made in, the organization's, and the first line of the answer says so. `--project <key>` reads a project's own from anywhere.
|
|
6
6
|
|
|
7
7
|
| To | Command | What comes back |
|
|
8
8
|
|---|---|---|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
| Look
|
|
9
|
+
| Know whether a job is one for a skill | `console skills --kinds` | The kinds of work the pack has skills for, a line a folder that holds skills (`design/`) with the jobs its description begins with, and a line a skill no such folder holds, the lines within 1,500 characters; then what a job of one of those kinds begins with, the search and the load. Read once in a conversation, before its first job: a job of none of those kinds needs no search. |
|
|
10
|
+
| Find a skill, or a page, by words | `console skills --search "<words>" --limit <n> [--path <folder>]` | What the words find, as the `skillcdn` command's `find` prints it: a result is its name, its path and the start of its description, a skill with the files of its that matched and a document with the sections that matched and the offset and limit that read each, and `--full` prints everything the search keeps of one; in the pack's language, and by meaning too where the deployment searches by it, which the result then says. A result that matches closely says so after its name, the loose ones follow the others on a line each, and where none matches closely the first sentence says `No close match`: the pack has no skill for the job. Where a skill was found, the results end with the command that loads it. Every bare word is of the query, and the words go in quotes all the same, which every version of the command reads so; `--path` keeps the search to a folder. Ten unless `--limit` says otherwise, up to 25, and where more matched the last line is the command that reads the next page: a `--limit` of three to five finds the skill a task needs. |
|
|
11
|
+
| Read a skill | `console skill <path>` | The skill, as `load_skill` gives it to a model: the rules of the repository from its root to the nearest manifest, the instructions, the files it includes, then its supporting files and what it refers to. A long skill comes in parts: a part whose last line is `console skill <path> --cursor <cursor>` is not the whole skill, so run that command, and the one the next part ends with, until a part says `Skill context is complete: this was its last part.` Where the pack counts them, a part says how many pages of the skill follow it. The command is printed so that bash, zsh and PowerShell all run it as it is; for a path no one spelling keeps whole in them all, the line says to run the command you ran again with `--cursor <cursor>`, quoted for your shell. `<path>` is the `SKILL.md`'s path as `console skills` lists it, or the skill's folder, or the URI the pack names it by (`skill://<host>/<owner>/<name>/<path>`). |
|
|
12
|
+
| Look into a folder | `console skills <folder>` (`.` for the root) | A page of what it holds, as `browse_repo` lays it out for a model: its skills, its folders with the README that introduces each, its files; 50 entries unless `--limit` says otherwise, and a page that ends before the folder does ends with the command that reads the next (`Next page: console skills <folder> --cursor <cursor>`). |
|
|
13
|
+
| Look around the pack | `console skills` | Where the pack is, at a deployment or on the console's machine, and how the read went; what a client is told of it on connect; every skill with the path of its `SKILL.md`, and how many documents stand outside the skills, which a folder (`console skills <folder>`) and a search read; where the console's own skills are on this machine. A long listing comes in pages, each ending with the command that lists the rest (`console skills --cursor <cursor>`): for getting to know a pack, never for finding one skill. |
|
|
13
14
|
| Read a file of it | `console skill --file <path>` | A page of the file, as `read_repo_file` does, or what a folder holds: 24,000 characters, ended at a line, unless `--limit` says otherwise, and a page that ends before the file does says the offset the next begins at, which `--offset` reads. |
|
|
14
15
|
| Read one section | `console skills <file>`, then `console skill --file <file> --offset <n> --limit <n>` | The file's outline, every heading with the offset and limit that read its section; then that section alone, as a search or the outline named it, with where the file continues. |
|
|
15
16
|
| Take a table or code whole | `console skills --rows [<folder\|file>]`, `console skills --code [<folder\|file>]`, with `--out <path>` for a file | The tables of a document, or of every document under a folder, as one CSV: a header of `path`, `heading` and every column name, then a line per row in reading order. Or the fenced code blocks as written, each under a line that says where it stands. `--heading <words>` keeps what stands under a heading, `--format json` gives the rows as an array, and `--grep <pattern>` keeps the blocks whose text matches. A document's outline says how many it has and names these commands. |
|
|
16
17
|
| Read a plugin's skills | `console plugin <key> skills`, `console plugin <key> skill <path>` | The same reads, of the pack a plugin ships in its package, when the rules name the plugin. |
|
|
18
|
+
| Say what a run showed a skill to lack | `console skill note <path> "<what the run showed>"`; `console skill note --none "<the job, and the words searched>"` for a job no skill fit | The note's id, and whom it waits for: the member who keeps the organization's skills, or, where nobody does, the administrators, which the answer says and the run's report passes on. The last part of a skill of the project's or the organization's pack ends with this command, the skill's folder in it. |
|
|
19
|
+
| Read the notes | `console skills --notes` | Your own notes, open and, with `--all`, closed with what became of each; everyone's for whoever keeps the skills, to whom the list ends with where a keeper's work is written, the skill [keeping-the-pack](/skills/keeping-the-pack/SKILL.md). |
|
|
17
20
|
|
|
18
|
-
Each read is the `skillcdn` command's own, printed by the reads that command prints with, page for page and word for word, with the reads named as these commands ([ADR-0124](/docs/adr/0124-the-commands-reads-of-a-pack-are-the-skillcdn-commands-own.md)): a skill whole where a host shows it whole and in parts where it is longer, a folder and a file a page at a time, the tables and the code blocks whole as data. `--json` on any of them answers with what the pack answered, in the shapes of the main repository's REST API.
|
|
21
|
+
Each read is the `skillcdn` command's own, printed by the reads that command prints with, page for page and word for word, with the reads named as these commands ([ADR-0124](/docs/adr/0124-the-commands-reads-of-a-pack-are-the-skillcdn-commands-own.md)), and asked for by what that command takes after its own word for the read ([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)): a skill whole where a host shows it whole and in parts where it is longer, a folder and a file a page at a time, the tables and the code blocks whole as data. `--json` on any of them answers with what the pack answered, in the shapes of the main repository's REST API.
|
|
19
22
|
|
|
20
23
|
What is refused ends the command with exit `1` and says why on standard error, so that nothing printed is ever a refusal. Of one read, the pack's own code and words, as the `skillcdn` command prints them: `skill.not_found: No skill at "<path>". Use console skills <folder> or console skills --search for its exact SKILL.md path. Available: ...` names the skills there are, and `file.not_found` says that no file is at a path; the pack answered, so the path is what to mend. Of the pack as a whole, a first line that says where it is and how it stands: `not_found`, the pack is not served to the console, a private one with no pack token on the project or the workspace, which an owner or an administrator connects with a code a person approves (planning-the-board, or the Settings page), the workspace's being the one the organization's pack is read with; `token_invalid`, the token no longer works, and an owner or an administrator sets a new one; `unavailable` or `indexing`, ask again later.
|
|
21
24
|
|
|
22
25
|
A table a task needs whole, a list of codes to build into a program, a set of definitions to generate from, is taken with `--rows` into a file and read by a program: never copied out of a section row by row.
|
|
23
26
|
|
|
24
|
-
How the pack is used.
|
|
27
|
+
How the pack is used. A job of a kind the pack has skills for begins with its skill. Load the one the task names before anything is made. With none named, read the kinds of work the pack has skills for (`console skills --kinds`), once in a conversation: a job of none of them is done without a skill and without a search. For a job of one of them, find the skill whose description fits by two or three nouns of the job in the pack's language (`console skills --search "<words>" --limit 5 --path <the kind's folder>`, the words in quotes and `--path` keeping the search to the kind's folder), not by listing the pack; read it to its end, every part of it, before applying it. A job that comes with no task, in a message or in chat, begins the same way. The search is made once and what it found goes on with the job: a task written for another to take names the skill under "Read first", or says there that a search found none, and a subagent is handed the skill's path, or told that none fits, since it reads neither the conversation nor a search made before it. The skill's questions and its checkpoints are kept, on the board as off it: what it asks before it begins is asked in chat where the person is in the conversation, and written on the task; what it has a person approve is a decision ([SKILL.md](../SKILL.md), "How the person is involved"). A host that lists skills through a connection of its own to the address loads them by their URI, which means nothing elsewhere for a pack on the console's machine; either way a skill is never fetched another way. The rules those skills share arrive with each of them, from their repository's `SKILLCDN.md`, and hold within that work beside the board's rules, which come first where they differ. What is read of a private pack is the project's: it stays in the work, and is not copied into a report, a page or a comment beyond what the work needs.
|
|
28
|
+
|
|
29
|
+
What the run showed the skill to lack. Whoever works with a skill is the one who meets what is wrong with it: a step that had to be guessed or made up, a sentence the tool or the person contradicted, something the result needed that the skill never asks for. Once the work is done, say so in a note, a few sentences of what happened, as behavior and without the run's own material, no customer, product, person or secret: `console skill note <path> "<what the run showed>"`, the path the skill's folder or the page it concerns. The console keeps the note, never the pack, and tells nobody at once: whoever keeps the organization's skills works the notes in a round of their own ([ADR-0178](/docs/adr/0178-a-note-on-a-skill-waits-for-whoever-keeps-the-pack-who-works-the-notes-in-a-round-at-a-quiet-hour.md)). A run that went as the skill says leaves none, and the skill is never mended in passing by whoever used it: the note is the whole of it.
|
|
30
|
+
|
|
31
|
+
Where no skill fits: the search's first sentence says `No close match`, or that no skill among its results matches closely, or what it found does not do the job by its description. The work goes on at once, by the task and the repository's agreement: no second search, unless the result's last lines say it was ranked by words alone, and no skill stretched past what its description says, since its checkpoints are written for its own job. A job of a kind that will come again, a report every month, a review of the same shape, is noted as one the pack has no skill for: `console skill note --none "a press release for a launch; searched press release launch"`, the job in a few words and the words that were searched. It is noted with a task or without one, and the run's report need not say it again. A job that will not come again, or that the repository's agreement already says how to do, a fix among its code, leaves no note. Whoever keeps the pack finds there what it lacks, and puts a skill that is asked for often before a person; this paragraph is the one place that says what such a note holds.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# What the person was told
|
|
2
2
|
|
|
3
|
-
`console notifications` lists what the board told the person, `--unread` what they have not read; reading it marks nothing, and nothing is marked read (`--read`) but on their word. A task's notifications are turned on or off for them when they say so: `console follow <number>` turns them on, which has a task their settings would be silent of tell them of everything on it, and `console mute <number>` turns them off; `console task <number>` says how they stand.
|
|
3
|
+
`console notifications` lists what the board told the person, `--unread` what they have not read; reading it marks nothing, and nothing is marked read (`--read`) but on their word. A task's notifications are turned on or off for them when they say so: `console task follow <number>` turns them on, which has a task their settings would be silent of tell them of everything on it, and `console task mute <number>` turns them off; `console task <number>` says how they stand.
|
package/src/agent-page.tsx
CHANGED
|
@@ -20,6 +20,8 @@ import {
|
|
|
20
20
|
AgentElsewhereList,
|
|
21
21
|
AgentRunnerFacts,
|
|
22
22
|
AgentSecretList,
|
|
23
|
+
AgentSecretOfferForm,
|
|
24
|
+
AgentSecretOfferList,
|
|
23
25
|
AgentSessionList,
|
|
24
26
|
AgentStateBadge,
|
|
25
27
|
AgentUsage,
|
|
@@ -679,6 +681,69 @@ function AgentSessions(props: {
|
|
|
679
681
|
);
|
|
680
682
|
}
|
|
681
683
|
|
|
684
|
+
/** How many offers that no longer wait a member is shown of their own, beside those that wait. */
|
|
685
|
+
const OFFERS_SHOWN_AFTER = 3;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Under an agent's plate, for whoever sees the account and supervises it not (ADR-0169): the
|
|
689
|
+
* way to offer it a secret, and how their own offers stand. For the account itself, what it was
|
|
690
|
+
* offered that waits, which it takes or leaves with its command.
|
|
691
|
+
*/
|
|
692
|
+
function AgentOffers(props: {
|
|
693
|
+
readonly client: ConsoleClient;
|
|
694
|
+
readonly agent: RestAgent;
|
|
695
|
+
readonly handle: string;
|
|
696
|
+
/** Whether the page is the account's own. */
|
|
697
|
+
readonly own: boolean;
|
|
698
|
+
}) {
|
|
699
|
+
const words = useWords().agents.page.offers;
|
|
700
|
+
const { client, agent, handle, own } = props;
|
|
701
|
+
const { busy, error, act } = useAction();
|
|
702
|
+
const read = useCallback(
|
|
703
|
+
(signal: AbortSignal) =>
|
|
704
|
+
own ? client.secretOffers(signal) : client.agentSecretOffers(handle, signal),
|
|
705
|
+
[client, handle, own],
|
|
706
|
+
);
|
|
707
|
+
const found = useRead(read);
|
|
708
|
+
const all = found.value?.items ?? [];
|
|
709
|
+
const waiting = all.filter((offer) => offer.state === "waiting");
|
|
710
|
+
const shown = own
|
|
711
|
+
? waiting
|
|
712
|
+
: [
|
|
713
|
+
...waiting,
|
|
714
|
+
...all.filter((offer) => offer.state !== "waiting").slice(0, OFFERS_SHOWN_AFTER),
|
|
715
|
+
];
|
|
716
|
+
if (own && shown.length === 0) {
|
|
717
|
+
return null;
|
|
718
|
+
}
|
|
719
|
+
return (
|
|
720
|
+
<section className="sc-panel" aria-label={own ? words.title : words.offerTitle}>
|
|
721
|
+
<h2 className="sc-section-title">{own ? words.title : words.offerTitle}</h2>
|
|
722
|
+
{error !== undefined && <Callout tone="danger">{error}</Callout>}
|
|
723
|
+
{shown.length > 0 && <AgentSecretOfferList offers={shown} />}
|
|
724
|
+
{own ? (
|
|
725
|
+
<p className="sc-field-hint">{words.own}</p>
|
|
726
|
+
) : (
|
|
727
|
+
<AgentSecretOfferForm
|
|
728
|
+
account={personName(agent.person)}
|
|
729
|
+
busy={busy}
|
|
730
|
+
onOffer={(offer) =>
|
|
731
|
+
void act(async () => {
|
|
732
|
+
await client.offerAgentSecret(handle, {
|
|
733
|
+
name: offer.name,
|
|
734
|
+
value: offer.value,
|
|
735
|
+
...(offer.note === undefined ? {} : { note: offer.note }),
|
|
736
|
+
...(offer.expiresOn === undefined ? {} : { expiresOn: offer.expiresOn }),
|
|
737
|
+
});
|
|
738
|
+
found.again();
|
|
739
|
+
})
|
|
740
|
+
}
|
|
741
|
+
/>
|
|
742
|
+
)}
|
|
743
|
+
</section>
|
|
744
|
+
);
|
|
745
|
+
}
|
|
746
|
+
|
|
682
747
|
/** What is kept of the agent: its runner, where it is signed in, what it runs with, its secrets by name, its persona. */
|
|
683
748
|
function AgentSettings(props: {
|
|
684
749
|
readonly client: ConsoleClient;
|
|
@@ -699,6 +764,13 @@ function AgentSettings(props: {
|
|
|
699
764
|
[client, handle],
|
|
700
765
|
);
|
|
701
766
|
const secrets = useRead(readSecrets);
|
|
767
|
+
const readOffers = useCallback(
|
|
768
|
+
(signal: AbortSignal) => client.agentSecretOffers(handle, signal),
|
|
769
|
+
[client, handle],
|
|
770
|
+
);
|
|
771
|
+
const offers = useRead(readOffers);
|
|
772
|
+
/** What members offered the account that it has neither taken nor left (ADR-0169). */
|
|
773
|
+
const offered = (offers.value?.items ?? []).filter((offer) => offer.state === "waiting");
|
|
702
774
|
const readSignIns = useCallback(
|
|
703
775
|
(signal: AbortSignal) =>
|
|
704
776
|
viaToken ? Promise.resolve(undefined) : client.agentSignIns(handle, signal),
|
|
@@ -880,9 +952,12 @@ function AgentSettings(props: {
|
|
|
880
952
|
<AgentSecretList
|
|
881
953
|
secrets={kept}
|
|
882
954
|
busy={busy}
|
|
883
|
-
onSeed={(secret, value) =>
|
|
955
|
+
onSeed={(secret, value, expiresOn) =>
|
|
884
956
|
void act(async () => {
|
|
885
|
-
await client.seedAgentSecret(handle, secret, {
|
|
957
|
+
await client.seedAgentSecret(handle, secret, {
|
|
958
|
+
value,
|
|
959
|
+
...(expiresOn === undefined ? {} : { expiresOn }),
|
|
960
|
+
});
|
|
886
961
|
secrets.again();
|
|
887
962
|
})
|
|
888
963
|
}
|
|
@@ -894,6 +969,13 @@ function AgentSettings(props: {
|
|
|
894
969
|
}
|
|
895
970
|
/>
|
|
896
971
|
</section>
|
|
972
|
+
{offered.length > 0 && (
|
|
973
|
+
<section className="sc-panel" aria-label={page.offers.title}>
|
|
974
|
+
<h2 className="sc-section-title">{page.offers.title}</h2>
|
|
975
|
+
<AgentSecretOfferList offers={offered} />
|
|
976
|
+
<p className="sc-field-hint">{page.offers.waits(personName(agent.person))}</p>
|
|
977
|
+
</section>
|
|
978
|
+
)}
|
|
897
979
|
</div>
|
|
898
980
|
</div>
|
|
899
981
|
);
|
|
@@ -910,6 +992,8 @@ export interface AgentPageProps {
|
|
|
910
992
|
readonly providers?: readonly RestProvider[] | undefined;
|
|
911
993
|
/** The agent's plate, which the console draws as it draws a person's. */
|
|
912
994
|
readonly work: (agent: RestAgent) => ReactNode;
|
|
995
|
+
/** The member who looks at the page, by their id: the account itself is offered no secret of its own. */
|
|
996
|
+
readonly me?: string | undefined;
|
|
913
997
|
}
|
|
914
998
|
|
|
915
999
|
/**
|
|
@@ -1007,9 +1091,32 @@ export function AgentPage(props: AgentPageProps) {
|
|
|
1007
1091
|
</nav>
|
|
1008
1092
|
)}
|
|
1009
1093
|
{view === "work" ? (
|
|
1010
|
-
|
|
1094
|
+
<>
|
|
1095
|
+
{props.work(agent)}
|
|
1096
|
+
{/* A supervisor seeds a secret among what is kept of the agent; anyone else offers one. */}
|
|
1097
|
+
{!agent.supervised && props.me !== undefined && (
|
|
1098
|
+
<AgentOffers
|
|
1099
|
+
client={client}
|
|
1100
|
+
agent={agent}
|
|
1101
|
+
handle={handle}
|
|
1102
|
+
own={props.me === person.id}
|
|
1103
|
+
/>
|
|
1104
|
+
)}
|
|
1105
|
+
</>
|
|
1011
1106
|
) : view === "closed" ? (
|
|
1012
|
-
<
|
|
1107
|
+
<div className="sc-agent-closed">
|
|
1108
|
+
<EmptyState title={words.notSupervised.title} body={words.notSupervised.body} />
|
|
1109
|
+
{/* The address a supervisor seeds a secret at is the one an agent hands to whoever
|
|
1110
|
+
has one for it (ADR-0184): whoever supervises it not offers one there. */}
|
|
1111
|
+
{tab === "settings" && props.me !== undefined && (
|
|
1112
|
+
<AgentOffers
|
|
1113
|
+
client={client}
|
|
1114
|
+
agent={agent}
|
|
1115
|
+
handle={handle}
|
|
1116
|
+
own={props.me === person.id}
|
|
1117
|
+
/>
|
|
1118
|
+
)}
|
|
1119
|
+
</div>
|
|
1013
1120
|
) : view === "live" ? (
|
|
1014
1121
|
<AgentLive
|
|
1015
1122
|
client={client}
|