@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/docs/specs/cli.md
CHANGED
|
@@ -19,6 +19,8 @@ The board is a project's ([ADR-0008](../adr/0008-a-workspace-holds-projects-and-
|
|
|
19
19
|
|
|
20
20
|
## The commands
|
|
21
21
|
|
|
22
|
+
The command's shape ([ADR-0167](../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)). A word in the plural lists (`tasks`, `docs`, `agents`); the same word in the singular reads one by what it is called by (`task 7`, `doc guides/onboarding`, `agent mira`), and with a word after it does something to one or makes one (`task new`, `doc write`, `agent tell`): a form. The words at the top that name no thing are those of a run, which act on the one open run (`take`, `report`, `hand-in`, `ask`, `answer`, `comment`, `file`, `finish`, `fail`, `abandon`), of signing in (`login`, `logins`, `logout`, `whoami`, `use`), of what one is told (`work`, `notify`, `manager`, `rules`) and of a machine (`serve`, `desk`, `runner`); nothing else is added there. `console help` lists the commands in one table, grouped by who runs them, within 3,000 bytes; `console help <command>` is a command's page, its forms a line each with every flag, what must be known before it is run, its limits and its refusals, within 2,600 bytes; a command of several forms says the first on its page and names the others, each with a page of its own, `console help <command> <form>`, which `<command> <form> --help` opens too; `console help everywhere` says what holds for every command. Six words of before still run, each as the form that took its place, and stand in no list: `write`, `attach`, `archive` and `restore` are `doc write`, `doc attach`, `doc archive` and `doc restore`, and `follow` and `mute` are `task follow` and `task mute`; they go with 0.7.
|
|
23
|
+
|
|
22
24
|
A table a group, each row a command: what it asks the console, and what it says. `...` is `/api/v1/projects/<key>`, the project the command works in. Everywhere: `--json` prints the console's own answer as JSON, in the shapes of `@skillcdn/console/api`; `--url <origin>` names the console this one command talks to, which must be one signed in to here; `--account <login>` the account there, where several are; `--project <key>` the project. A Markdown body given as `-` is read from standard input. A day is given as `2026-10-24`, `today`, `tomorrow` or `+7` (days from today by this machine's clock); `--due overdue` keeps the open tasks past their day, `--due week` those due by the last day of this week, the week beginning as the workspace says (`console workspace`) or, left to the language, as the person's language has it, else this machine's ([ADR-0039](../adr/0039-this-week-is-the-plans-unit-and-the-week-begins-as-the-workspace-says.md)). Every argument is bounded and checked by the console, as the REST API's schemas say; the command sends it as it was given.
|
|
23
25
|
|
|
24
26
|
### Commands to sign in and to name the project
|
|
@@ -27,10 +29,10 @@ A table a group, each row a command: what it asks the console, and what it says.
|
|
|
27
29
|
|---|---|---|
|
|
28
30
|
| `login --url <origin> [--agent <name>] [--self] [--token-stdin] [--default] [--wait <seconds>]` | `POST /api/v1/connect`, then `POST /api/v1/connect/claim` until a person approved, in the same call at a terminal and in the next where there is none ([ADR-0129](../adr/0129-a-login-under-an-agent-says-its-code-and-ends-and-the-next-call-waits.md)), then `GET /api/v1/me` with the token; `DELETE /api/v1/me/token` with the token a repeated login replaces | the address and the code for a person, and when the wait for them ends, printed as a moment is: in the workspace's time zone where a login at that console kept it, else in the machine's own, since an agent passes the moment on to a person, and as the API gave it where the machine says none; then who the token is, whether this is the default console, and where the token, or the session's secret of `--self`, is kept: the credentials file by its path at a terminal, and, where no terminal shows the words and an agent reads them, only that the command keeps it on this machine and never shows it, since that file is the one an agent must never open; last, what is bound to a project and nothing of a next step (`Only a project's checkout is bound to it: console use <key> (console projects lists them).`), since a desk, or a folder that is no checkout of a project's repository, is bound to none; keeps the login |
|
|
29
31
|
| `logins` | nothing | one line per login: the console, the account, what the token is called or that the command is signed in as the account itself, since when, and which is the default; never a token or a session's secret; then one line per connection that waits for a person while its code lasts: the console, the code, its end and the command that waits for it, never its secret (`waiting` on `--json`) |
|
|
30
|
-
| `manager` | `GET /api/v1/me/manager` | whom the person reports to, a person or an agent account, with what they do and what they are; and the administrators, who stand in, where they report to nobody or their manager is out ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)). Needs no project |
|
|
32
|
+
| `manager` | `GET /api/v1/me/manager` | whom the person reports to, a person or an agent account, with what they do and what they are; and the administrators, who stand in, where they report to nobody or their manager is out ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)), the others where whoever asks is one, or `No administrator stands in.` ([ADR-0180](../adr/0180-an-agent-account-administers-where-it-is-made-an-administrator-and-nobody-supervises-themselves.md)). Needs no project |
|
|
31
33
|
| `logout [--url <origin>] [--account <login>]` | `DELETE /api/v1/me/token` | that the login's token is given up and forgotten, or that the console keeps it while its person is out, or that the console was out of reach and the token is left to the Agents page; a connection that waited for a person at that console is forgotten with it, and where nobody is signed in at that console, or as the account named, it is forgotten all the same and said so, with `0`, where the command otherwise refuses with nothing to forget |
|
|
32
34
|
| `whoami` | `GET /api/v1/me`, and `GET /api/v1/projects/<key>` where a project is named | the login and the role, an agent account by its handle first (`@mira (carol, member)`), the workspace, the address, and the project this directory works in, asked of the console ([ADR-0112](../adr/0112-a-binding-names-its-console-and-whoami-asks-the-console-for-the-project.md)): its key, its name, and what named it, `.skillcdn-console.json` with the directory that holds it, `CONSOLE_PROJECT` or `--project` (`; project web (The web app), named by .skillcdn-console.json in /work/app`), or `no project named here`. A project the console does not have, or does not show the member, is said on that line, and the command ends with exit `1` and `project.not_found` after the lines below, the message naming the key, the console and what named it, then the two things a person can do about it: where the project is there and the member is not in it, one of its owners lists them (`console member add <login> --project <key>`, with the member's login); where the key is wrong, the directory is bound to the right one, the key the repository's agreement names or the one the person says, with `console use <key>`, or `CONSOLE_PROJECT` is set to it; both are said as what is done and by whom, never as a command to whoever reads, since which key is right is not the reader's to choose; `--json` carries `project`, `projectName` and `projectSource`. Then, in one line, what is read before the first task, the rules (`console rules`) and the skill working-the-board, that one command's flags are read with `console help <command>`, and last where the skill is on this machine, in a directory that names no project too, as an agent account's desk does: the sentence of a checkout's agreement says that this answer says how, and the line names nothing else to read; then the command's version and where it is installed, the console's version and the range it takes, and the update to make when they differ. Keeps the workspace's time zone on the login it used, so that the moments the command prints are in it from then on ([ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)) |
|
|
33
|
-
| `projects` | `GET /api/v1/projects` | one line per project: key, name, what the person is in it, what waits in it |
|
|
35
|
+
| `projects` | `GET /api/v1/projects` | one line per project: key, name, what the person is in it, what waits in it; in none, `GET /api/v1/me` says what is the person's to do: an administrator makes one, anyone else is listed in one by an administrator |
|
|
34
36
|
| `use <key> [--url <origin>] [--account <login>]` | `GET /api/v1/projects/<key>` | that the directory works in the project from now on, at which console, and as which account where it binds one, that the file names the project and the console and never a token, and that `console rules` says what its people ask; then the sentence for the checkout's agreement (AGENTS.md, or CLAUDE.md), to be copied as it is, which has an agent run `console whoami` before its first step and work the task through the console when that names a project or the file is in the checkout, as the answer of `whoami` says how, and names nothing else to read; writes `.skillcdn-console.json` |
|
|
35
37
|
|
|
36
38
|
### Commands for work, tasks and goals
|
|
@@ -42,15 +44,15 @@ A table a group, each row a command: what it asks the console, and what it says.
|
|
|
42
44
|
| `notifications --read <id> [<id>...]`, `notifications --read-all` | `POST /api/v1/notifications/read` with `ids`, each once, or `all: true` | how many were marked read, and how many are still unread (`Marked 2 read; 3 still unread.`). `--read` without an id, the two together, a word without `--read`, and either beside `--unread`, `--limit` or `--offset` are not understood (`2`), and nothing is asked of the console |
|
|
43
45
|
| `notify` | `GET /api/v1/notifications/settings` | what the member is told of ([ADR-0157](../adr/0157-the-console-decides-who-is-told-of-what-and-keeps-the-record-and-a-plugin-carries-it-out.md)): a line per kind of `NOTIFICATION_KINDS`, `on` or `off`, with what it is of in a few words, and `(default: on\|off)` where they chose otherwise than a member who chose nothing has; a kind a newer console answers after them, by its name alone; then the projects turned off, by key and name, and whether what an agent of their own did as them is told to them. They are of everything the member is told: what a plugin that carries notifications elsewhere, to a messenger say, sends of it is that plugin's own setting, and the command names no plugin. Needs no project |
|
|
44
46
|
| `notify [--on <kind>]... [--off <kind>]... [--project-off <key>]... [--project-on <key>]... [--own-agents on\|off]`, `notify --reset` | `PUT /api/v1/notifications/settings`, once: the kinds named, the others staying as they are, as `kinds`; `ownAgents`; and, where a project is named, `projectsOff` whole, which is those that were, read first with `GET` of the same, less the ones turned on again, and the ones turned off now; or `reset: true`, alone | the settings as they are now, as `notify` prints them. A kind that is none of `NOTIFICATION_KINDS` is refused with the kinds there are before anything is asked of the console (`2`), as are a kind or a project said both on and off, a word for `--own-agents` that is neither, and `--reset` beside another flag; a key turned off of a project the console has not, or does not show the member (`project.not_found`), is the console's to refuse, with nothing changed; a key turned on that was not off changes nothing |
|
|
45
|
-
| `follow <number\|id>`, `mute <number\|id>` | `GET .../tasks/<ref>`, then `PUT .../tasks/<id>/follow` with `on`: `true` for `follow`, `false` for `mute` | one line that says whether the task's notifications are on or off for the member now ([ADR-0157](../adr/0157-the-console-decides-who-is-told-of-what-and-keeps-the-record-and-a-plugin-carries-it-out.md)), and how, with the command that turns them the other way: turned on where their settings would tell them nothing of it, `Notifications of #7 <title> are on: you are told of everything that happens on it. Turn them off: console mute 7`; turned off where their settings would tell them, `... are off: you are told of nothing of it. Turn them on: console follow 7`; and turned to what their settings say already, `... are on, as your settings have it: you are told of it by the kinds you have on (console notify). Turn them off: console mute 7` or `... are off, as your settings have it. Turn them on: console follow 7`, so that a task muted and followed again tells them by their kinds as before. Their own choice of that one task; `--json` is the console's answer, `{ "on", "usual", "all" }`. A console older than the command has none of the notifications' routes: `notifications`, `notify`, `follow` and `mute` each say that it is one, with its version where it says it, and end with `1` |
|
|
46
|
-
| `tasks [--state <state>] [--open] [--mine] [--category <key>] [--goal <id>] [--due <day\|today\|week\|overdue>] [--unassigned] [--search <words>] [--archived] [--limit <n>] [--offset <n>]` | `GET .../tasks?brief=true` with the filters and the page, the tasks without their bodies, which no line shows, and whole on `--json` (`--mine` and `--unassigned` not together; `--search` is `q=`, the words of a title or a number, how a task is found as a parent, [ADR-0037](../adr/0037-a-task-has-one-owner-and-any-number-of-workers-and-a-parent-or-a-goal-is-found-by-search.md)) | one line per task: number, state, priority, title, owner, workers, category, due day, what waits on it, and whether it is put away; the tasks put away are left out unless `--archived` asks for them alone; a page at a time; a search that finds nothing says so with the words it looked for, and, where they were several, that every one must be in a title and fewer find more |
|
|
47
|
+
| `task follow <number\|id>`, `task mute <number\|id>` | `GET .../tasks/<ref>`, then `PUT .../tasks/<id>/follow` with `on`: `true` for `follow`, `false` for `mute` | one line that says whether the task's notifications are on or off for the member now ([ADR-0157](../adr/0157-the-console-decides-who-is-told-of-what-and-keeps-the-record-and-a-plugin-carries-it-out.md)), and how, with the command that turns them the other way: turned on where their settings would tell them nothing of it, `Notifications of #7 <title> are on: you are told of everything that happens on it. Turn them off: console task mute 7`; turned off where their settings would tell them, `... are off: you are told of nothing of it. Turn them on: console task follow 7`; and turned to what their settings say already, `... are on, as your settings have it: you are told of it by the kinds you have on (console notify). Turn them off: console task mute 7` or `... are off, as your settings have it. Turn them on: console task follow 7`, so that a task muted and followed again tells them by their kinds as before. Their own choice of that one task; `--json` is the console's answer, `{ "on", "usual", "all" }`. A console older than the command has none of the notifications' routes: `notifications`, `notify`, `task follow` and `task mute` each say that it is one, with its version where it says it, and end with `1` |
|
|
48
|
+
| `tasks [--state <state>] [--open] [--mine] [--category <key>] [--goal <id>] [--due <day\|today\|week\|overdue>] [--unassigned] [--search "<words>"] [--archived] [--limit <n>] [--offset <n>]` | `GET .../tasks?brief=true` with the filters and the page, the tasks without their bodies, which no line shows, and whole on `--json` (`--mine` and `--unassigned` not together; `--search` is `q=`, the words of a title or a number, every bare word typed being of them ([ADR-0179](../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), point 6), how a task is found as a parent, [ADR-0037](../adr/0037-a-task-has-one-owner-and-any-number-of-workers-and-a-parent-or-a-goal-is-found-by-search.md)) | one line per task: number, state, priority, title, owner, workers, category, due day, what waits on it, and whether it is put away; the tasks put away are left out unless `--archived` asks for them alone; a page at a time; a search that finds nothing says so with the words it looked for, and, where they were several, that every one must be in a title and fewer find more |
|
|
47
49
|
| `task <number\|id>` | `GET .../tasks/<ref>`, the decisions about it, the runs on it without their reports (`GET .../runs?task=&brief=true`; whole on `--json`), `GET .../tasks/<id>/comments`, `GET .../tasks/<id>/follow` | the task in full, after its id the address of its page on a line of its own (`page: <origin>/projects/<key>/tasks/<number>`, made from the console's origin and the pages' route and asked of no console, so that an agent that tells a person of the task links the task and not the console's front page), with its plan and its moments, and the discussion on it: each comment whole, with its files and the command that reads each. A line says whether the task's notifications are on for the member ([ADR-0157](../adr/0157-the-console-decides-who-is-told-of-what-and-keeps-the-record-and-a-plugin-carries-it-out.md)), and how: `notifications: on, as your settings have it`, `notifications: on, turned on by you: you are told of everything that happens on it`, `notifications: off, turned off by you: you are told of nothing of it` or `notifications: off, as your settings have it`; `--json` carries it as `follow`, `{ "on", "usual", "all" }`; a console older than the command has no such route, and nothing is said of it then |
|
|
48
50
|
| `task new <title> [--body <markdown>\|--file <path>] [--state <state>] [--priority <priority>] [--category <key>] [--goal <id>] [--starts <day>] [--due <day>] [--worker <login\|me\|none>]... [--parent <number\|id>] [--take [--rules <mark>] [--agent <name>]]` | `POST .../tasks`; with `--take`, then what `take` asks, from `POST .../runs` on | the number, the id and the address of the task's page, as `task` prints it (with `--take`, once, in the task's lines after the take); `--worker` given again, or with commas between, names several, in place of the workers there were, and `none` alone nobody. With `--take` the task is written and taken in one command, in that order: what `task new` prints, the number first, then what `take` prints, `--rules` and `--agent` as `take` has them, and on `--json` what `take` answers with the task as it was written beside it (`written`). The task is written `ready` where no state is said, since an idea is not taken; a state that cannot be taken (`done`, `dropped`) is refused before anything is written, as are `--rules` and `--agent` without `--take`. Where the take fails after the task was written, the task's two lines are on the output (on `--json`, `{ "written": ... }` alone), and the error says, before the console's own words for the refusal, that the task is written and was not taken, and that `console take <number>` is the way on: the task is not written a second time. Where the run began and only a read after it failed, the error says that the task is written and taken, by which run, and that it is neither written nor taken again (on `--json`, `{ "written": ..., "run": ... }`), since a second take would end the run that began. The exit code is the refusal's |
|
|
49
51
|
| `task edit <number\|id> [--title <title>] [--body ...] [the same flags; `none` clears a field]` | `GET .../tasks/<ref>`, then `PATCH .../tasks/<id>` | the task in full, as it is now |
|
|
50
52
|
| `task archive <number\|id>` | `GET .../tasks/<ref>`, then `POST .../tasks/<id>/archive` | the task's line, put away ([ADR-0029](../adr/0029-a-task-done-or-dropped-is-put-away-out-of-the-board-and-open-by-its-number.md)), whatever its state ([ADR-0030](../adr/0030-a-task-is-put-away-from-any-state.md)): out of the listings, the board and the calendar, open by its number still |
|
|
51
53
|
| `task archive --goal <id>` | `POST .../tasks/archive` | how many done or dropped tasks of the goal were put away; for an owner |
|
|
52
54
|
| `task restore <number\|id>` | `GET .../tasks/<ref>`, then `POST .../tasks/<id>/restore` | the task's line, back on the board |
|
|
53
|
-
| `goals [--category <key>] [--state <state>] [--search <words>] [--limit <n>] [--offset <n>]` | `GET .../goals?category=&state=&q=&limit=&offset=` | one line per goal of the roadmap: id, state, title, category, the days it starts and is meant to be reached by, how far it is ([ADR-0026](../adr/0026-a-goal-is-planned-in-days-and-sorted-into-a-category-and-the-roadmap-is-read-as-months.md)); `--search` keeps those whose title has the words; a page at a time |
|
|
55
|
+
| `goals [--category <key>] [--state <state>] [--search "<words>"] [--limit <n>] [--offset <n>]` | `GET .../goals?category=&state=&q=&limit=&offset=` | one line per goal of the roadmap: id, state, title, category, the days it starts and is meant to be reached by, how far it is ([ADR-0026](../adr/0026-a-goal-is-planned-in-days-and-sorted-into-a-category-and-the-roadmap-is-read-as-months.md)); `--search` keeps those whose title has the words, every bare word typed being of them; a page at a time |
|
|
54
56
|
| `goal <id>` | `GET .../goals/<id>`, `GET .../tasks?goal=&brief=true` (whole on `--json`) | the goal in full, with its plan and the tasks that work towards it |
|
|
55
57
|
| `goal new <title> [--body <markdown>\|--file <path>] [--state <state>] [--category <key>] [--starts <day>] [--due <day>]` | `POST .../goals` | the title and the id; for an owner of the project |
|
|
56
58
|
| `goal edit <id> [--title <title>] [--body ...] [--state <state>] [--category <key\|none>] [--starts <day\|none>] [--due <day\|none>]` | `PATCH .../goals/<id>` | the goal in full, as it is now |
|
|
@@ -60,10 +62,11 @@ A table a group, each row a command: what it asks the console, and what it says.
|
|
|
60
62
|
| Command | Asks the console | Says |
|
|
61
63
|
|---|---|---|
|
|
62
64
|
| `categories` | `GET /api/v1/categories` | one line per category: key, name, colour |
|
|
63
|
-
| `workspace` | `GET /api/v1/me` | the workspace's settings ([ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)): its name, who sees whom on the People page (`everyone`, or `shared_projects`), the day the calendars begin a week on, its time zone, its language for whoever has none of their own ([ADR-0081](../adr/0081-a-workspace-has-a-language-for-whoever-has-none-of-their-own.md)), where the organization's skills come from, and the most days a token may last. Keeps the time zone on the login, as `whoami` does. Needs no project |
|
|
65
|
+
| `workspace` | `GET /api/v1/me` | the workspace's settings ([ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)): its name, who sees whom on the People page (`everyone`, or `shared_projects`), the day the calendars begin a week on, its time zone, its language for whoever has none of their own ([ADR-0081](../adr/0081-a-workspace-has-a-language-for-whoever-has-none-of-their-own.md)), where the organization's skills come from and, where the console says it, who keeps them ([ADR-0178](../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)), the keeper called as the people's list calls them (`GET /api/v1/people`, asked only where a keeper is named), and the most days a token may last. Keeps the time zone on the login, as `whoami` does. Needs no project |
|
|
64
66
|
| `workspace edit [--people-visibility <everyone\|shared-projects>] [--week-start <auto\|monday\|sunday>] [--time-zone <zone\|none>] [--language <en\|ko\|none>] [--handle <name\|none>] [--domain <domain\|none>] [--service <role>=<kind\|none>[,<parameter>=<value>]...]...` | `PATCH /api/v1/workspace` | the settings as they are now; for an administrator. The time zone is an IANA name the console knows (`request.invalid` otherwise), and `none` takes it away; the command keeps the zone on its login and prints moments in it from then on. The language is one the console speaks, and `none` takes it away, English then. `--handle`, `--domain` and `--service` name what the workspace's agents work with ([ADR-0089](../adr/0089-a-workspace-names-the-services-its-agents-work-with.md)): the organization's short name, its domain, and a service for a role, `identity`, `git` or `messenger`, as `git=github,organization=acme`, given again for another role, `=none` to take one away; `console workspace` prints them |
|
|
65
67
|
| `workspace pack-token --connect` | `POST /api/v1/workspace/pack-token/connect`, then `POST .../pack-token/connect/claim` at the interval the deployment named, until the token is kept or the request ended | the page at SkillCDN and the code for a person who may open the repository, then that the pack is connected and the workspace's settings as they are now, never the token; `1` when the code expired, the request was declined or SkillCDN refused; for an administrator ([ADR-0036](../adr/0036-a-private-pack-is-connected-with-a-code-a-person-approves-from-the-projects-settings.md)) |
|
|
66
68
|
| `workspace pack-token --stdin`, `workspace pack-token --remove` | `PUT /api/v1/workspace/pack-token` with the token read from standard input, or `DELETE /api/v1/workspace/pack-token` | the workspace's settings as they are now, saying when its SkillCDN token was set and never the token: what every project with no address and no token of its own reads the organization's pack with; for an administrator |
|
|
69
|
+
| `workspace pack-keeper <login\|none> [--round <HH:MM\|none>]`, `workspace pack-keeper --round <HH:MM\|none>` | `GET /api/v1/people?login=` for the member, then `PATCH /api/v1/workspace` with `packKeeperId`, `packRoundAt` or both | the workspace's settings as they are now, with who keeps the organization's skills and the hour of their round ([ADR-0178](../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 member by login or handle, a person or an agent account, `none` for nobody; `--round` an hour of the day in the workspace's time zone, `none` for no round. For an administrator; `workspace.keeper_not_found` for a member who is not in. A console of before, which reads neither setting, is said to name nobody who keeps the skills yet and to be older than the command |
|
|
67
70
|
| `people` | `GET /api/v1/people` | one line per person the person sees (everyone, or, while the workspace narrows the people a member sees, those they share a project with, the administrators and their own reporting line): login, name and what they do where a title says, role in the workspace, and `deactivated` for one taken out; an agent account with its handle after its login (`carol @mira`), as `agent account`, and `not signed in yet` while nobody has signed in with it; then, where they see everyone, one line per login let in that nobody has signed in with yet. Needs no project |
|
|
68
71
|
| `person role <login> <admin\|member>` | `GET /api/v1/people?login=` for the id, then `PATCH /api/v1/people/<id>` | the person as they are now; for an administrator |
|
|
69
72
|
| `person manager <login> <manager login\|none>` | `GET /api/v1/people?login=` for both ids, then `PATCH /api/v1/people/<id>` with `managerId` | the person as they are now, with whom they report to: the reporting line of the directory, another active person who does not report to them, or none; for an administrator (`person.invalid_manager`); `console people` shows it beside each person |
|
|
@@ -77,14 +80,18 @@ A table a group, each row a command: what it asks the console, and what it says.
|
|
|
77
80
|
| Command | Asks the console | Says |
|
|
78
81
|
|---|---|---|
|
|
79
82
|
| `agents` | `GET /api/v1/agents` | one line per agent account the person sees or supervises ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)): the handle (`@mira`), the name and what it does, the login it signs in with, whom it reports to where the person sees them, and `not signed in yet` or `deactivated` where so. Needs no project |
|
|
80
|
-
| `agent new <handle> [--login <login>] [--name "<name>"] [--title "<title>"] [--manager <login\|me>] [--host gh\|google] [--seed <seed>] [--convert]` | `GET /api/v1/people?login=` for the manager's id, then `POST /api/v1/agents`, with `convert: true` where `--convert` says that the member who carries the login is to become the account | the account's line, and what happens next: the account it signs in with, by its login: at Google Workspace it is made before its machine is set up, and its first sign-in binds it; at a git host it has to be the organization's already, and the line says what its first sign-in is held to ([ADR-0126](../adr/0126-an-agent-account-at-a-git-host-is-bound-to-the-hosts-account-when-it-is-added.md)), confirmed where the organization said which account the login is, so that only that account is let in, and not confirmed where it has no member called so, could not be asked, or is not read by this console, with who is let in then; the account's line says the same in a word while it waits (`its account confirmed at the host`, `its account not confirmed`); its first
|
|
81
|
-
| `agent <handle> [--avatar <file>] [--account <service>=<name\|none>]... [--day-start <HH:MM\|none>] [--day-end <HH:MM\|none>]` | `GET /api/v1/agents/<handle>`; with `--account`, `PATCH /api/v1/agents/<handle>` | the account's line; how it stands ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md)), its state,
|
|
83
|
+
| `agent new <handle> [--login <login>] [--name "<name>"] [--title "<title>"] [--manager <login\|me>] [--host gh\|google] [--seed <seed>] [--convert]` | `GET /api/v1/people?login=` for the manager's id, then `POST /api/v1/agents`, with `convert: true` where `--convert` says that the member who carries the login is to become the account | the account's line, and what happens next: the account it signs in with, by its login: at Google Workspace it is made before its machine is set up, and its first sign-in binds it; at a git host it has to be the organization's already, and the line says what its first sign-in is held to ([ADR-0126](../adr/0126-an-agent-account-at-a-git-host-is-bound-to-the-hosts-account-when-it-is-added.md)), confirmed where the organization said which account the login is, so that only that account is let in, and not confirmed where it has no member called so, could not be asked, or is not read by this console, with who is let in then; the account's line says the same in a word while it waits (`its account confirmed at the host`, `its account not confirmed`); that what setting it up takes waits on its record as the console's first message to it, and that it is made in no project, with the line by which a private one lists it, `console member add <login> --project <key>` ([ADR-0181](../adr/0181-an-agent-account-is-made-in-no-project-and-its-onboarding-is-the-consoles-first-message-to-it.md)); and that a machine comes next, with `console agent invite`. Without `--login`, the login is what the workspace's identity service makes of the workspace's short name, the handle and the domain (`mira@acme.example`), and the command asks for one where the workspace names no such service. For an administrator ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)): the handle, which never changes; the login it signs in with, the host read off its shape unless `--host` says; the name, the handle capitalized when left out; the manager, whoever makes it when left out. No project is sent. A console before 0.6.4 makes an account in a project and refuses the body for the `project` it lacks (`request.invalid`), with nothing made: the command then sends the account again with the project the directory or `--project` names, and says which project that console made it in, a private one too, with the line that takes it out of it, `console member remove <login> --project <key>`, and that console's line for the task it made, `Its first task is #<n> in <key>`; where none is named it ends with exit 1 and the line to type, `console agent new <handle> --login <login> --project <key>`. The console rolls the avatar, from `--seed` where one is given. The pages make one from proposals instead |
|
|
84
|
+
| `agent <handle> [--avatar <file>] [--account <service>=<name\|none>]... [--day-start <HH:MM\|none>] [--day-end <HH:MM\|none>]` | `GET /api/v1/agents/<handle>`; with `--account`, `PATCH /api/v1/agents/<handle>` | the account's line; how it stands ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md)), its state, since when it stands, until when where its runner said, as when a usage limit resets ([ADR-0150](../adr/0150-a-runner-waits-out-its-products-usage-limit-and-tells-its-agent-before-it.md)), why, and when its runner was last heard from, as `state: running since <moment>; why: reset, said <moment>; its runner was last heard from <moment>`: the moment after `since` is the state's alone, and the reason stands apart from it, with when it was said where that is another moment, a new conversation or a turn that completed under a state that stayed, and with none where it came with the state or the console keeps no moment for it; how much of its product's allowance is used, a line where its runner said any ([ADR-0156](../adr/0156-an-agent-account-shows-what-its-products-allowance-has-used-and-when-it-resets.md)): each window that still stands with its share, that it is near its limit where it is, and when it resets, and when the product said so, of each where one was kept from before; for a supervisor and for the account, what its runner last said of itself, the model and the effort it is set to and runs with, and how many of its signals were delivered; and whether the person supervises it; the handle with the `@` or without. With `--avatar`, the account's avatar as a PNG file of 1024 pixels a side, written to the path given or into a directory under `<handle>.png`: drawn by the command from the `avatarParts` the console answers, for the profile of the agent's account elsewhere. With `--account`, given once for each, the accounts the agent holds elsewhere are recorded on it ([ADR-0089](../adr/0089-a-workspace-names-the-services-its-agents-work-with.md)): what it is called at a service, by the service's short name (`--account github=acme-mira`), and never a secret; `=none` takes one away; by the account itself, or a supervisor. The account's lines say them as `accounts elsewhere`. `--day-start` and `--day-end` keep the hours of its day ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md)), an hour as `09:00` in the workspace's time zone, `none` for the usual start or no end, by the account itself or a supervisor: the console sends its briefings by them, and the account's lines say them as `day`. Needs no project |
|
|
82
85
|
| `secrets` | `GET /api/v1/agents/me/secrets` | one line per secret of the account's own store ([ADR-0087](../adr/0087-an-agent-account-keeps-its-secrets-in-a-store-of-its-own-that-only-it-reads.md)): its name, when it was set, `seeded by a supervisor` where one set it, and the day it ends on where one was said; never a value. For an agent account signed in as itself. Needs no project |
|
|
83
86
|
| `secret <name>` | `GET /api/v1/agents/me/secrets/<name>` | the value and nothing else, for whatever reads it next; the reading is noted on the account's record |
|
|
84
87
|
| `secret <name> --set [--file <path>] [--expires <day\|none>]`, `secret <name> --remove` | `PUT`, `DELETE /api/v1/agents/me/secrets/<name>` | the secret as it is kept, without its value; or that it is removed. The value is typed unseen at the terminal, or read whole from standard input when piped, or from `--file`; never an argument |
|
|
85
88
|
| `agent secrets <handle>` | `GET /api/v1/agents/<handle>/secrets` | the names of the account's secrets, as `secrets` prints them; for a supervisor. Refused to the account itself as to anyone who supervises it not, and then in words that name the account's own commands, `console secrets` and `console secret <name>` |
|
|
86
|
-
| `
|
|
87
|
-
| `
|
|
89
|
+
| `secrets --offered` | `GET /api/v1/agents/me/secret-offers` | one offer that waits for the account a line ([ADR-0169](../adr/0169-a-member-offers-an-agent-account-a-secret-and-the-account-takes-it-or-leaves-it.md)): its id, the name proposed, who offers it and through which agent, when, and until when it waits; under it, what the offerer said it is for, as their words; then the two commands that take one and leave one. Never a value |
|
|
90
|
+
| `secret --accept <offer id> [--as <name>] [--replace]`, `secret --decline <offer id>` | `POST /api/v1/agents/me/secret-offers/<id>/take`, `DELETE /api/v1/agents/me/secret-offers/<id>` | the secret as it is kept from then on, without its value, under the name offered or the one `--as` says; or that the offer is left and its value gone. Where the account keeps a secret of that name already it is refused in words that name the two ways on, `--as <name>` and `--replace`, and the offer still waits. `--as` and `--replace` without `--accept`, or two of `--accept`, `--decline`, `--set` and `--remove`, are a mistake, answered with a sentence |
|
|
91
|
+
| `agent secret <handle> <name> --offer [--note "<what it is for>"] [--file <path>] [--expires <day\|none>]` | `POST /api/v1/agents/<handle>/secret-offers` | that the secret is offered, with the offer's line, and that nothing the account keeps changed; for any member who sees the account. The value is given as `secret --set` takes it. `--note` without `--offer`, and `--offer` with `--remove`, are a mistake, answered with a sentence. Seeding refused for want of supervising the account is answered with the way to offer instead |
|
|
92
|
+
| `agent secrets <handle> --offered` | `GET /api/v1/agents/<handle>/secret-offers` | the account's offers a line each, as `secrets --offered` prints one, with how each stands, waiting, taken and under which name, left or run out: all of them for a supervisor, one's own for any other member |
|
|
93
|
+
| `agent secret <handle> <name> [--file <path>] [--expires <day\|none>]`, `agent secret <handle> <name> --remove` | `PUT`, `DELETE /api/v1/agents/<handle>/secrets/<name>` | that the secret is seeded, which only the account reads back, or removed; for a supervisor. The value is given as `secret --set` takes it, a file's text whole but for the one newline it ends with. A person does the same on the account's page, under Settings, and whoever supervises the account not offers one there, a file's text among what the page takes ([ADR-0184](../adr/0184-what-a-person-must-do-has-a-page-which-guidance-names-and-a-secret-is-put-in-there-from-a-file-too.md)) |
|
|
94
|
+
| `agent invite <handle> [--out <path>]`, `agent invite <handle> --revoke` | `POST`, `DELETE /api/v1/agents/<handle>/invitation` | the day the invitation is good until, the one line to say to the agent's product on its machine, which carries the command with its code, shown this once, and the address where a person reads the same guide, `/setup/<code>`; or that the invitation is taken away. Made again, it takes the place of the one before. With `--out`, the same words are written to a file as Markdown, at the path or into a directory as `<handle>-invitation.md`, and the output names the file, the day and how the file is handed on, never the code, with `--json` too (`handle`, `invitation`, `file`): what the command prints under an agent is in that agent's record, so an agent that makes an invitation hands the file to whoever prepares the machine as the body of a decision (`ask --file --to`), as an attachment of a comment (`comment --attach`) or at the messenger, and never as a comment's own words, which `comment` prints back; the path the output names is spelled so that every shell takes it whole. The path is tried before the invitation is made, with a file that holds nothing: one that cannot be written fails the command with no invitation made, so that the one before stands. The file is written for its OS account alone to read (mode 600), one that was there before too. A file that took the try and not the line leaves the invitation made and its line with nobody: the command fails and says to make it again. For a supervisor ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md), [rest.md](rest.md#the-invitation-apiv1agentshandleinvitation-and-get-apiv1setupcode)). The code is no credential |
|
|
88
95
|
| `agent setup --console <origin> --code <code>` | `GET /api/v1/setup/<code>` at the console the line names, with no token | the guide of that account's setup, as Markdown with every line to run on a line of its own: the account and how it signs in, then what has to be there before the line, what the agent asks the person at the machine for and what the command does, what the agent does when it starts, how it signs in elsewhere in a browser, and what it asks for where it cannot, in the words of the services its workspace names ([ADR-0094](../adr/0094-the-account-an-agent-signs-in-with-is-named-and-who-makes-it-is-the-organizations-to-say.md)). `--guide` stops there, and `--json` prints what the code opened and the guide in its parts. Otherwise the command goes on, as [Setting a machine up](#setting-a-machine-up) says. Run in the agent's OS account on the machine being set up, signed in nowhere yet; `--url` is read as `--console`, and the code as a person types one. Needs no login and no project. A code that opens nothing ends in 1 and says who makes another; what is no code or no origin is a misuse (2) and asks nothing of any console |
|
|
89
96
|
| `agent setup --refresh [--desk <dir>]` | `GET /api/v1/me` | what was written of the desk and of the service, and the services the workspace names now with what the account is called at each. For the agent account's own command, in its desk, when the services or the account changed |
|
|
90
97
|
| `agent tell <handle> "<words>"`, `agent interrupt\|stop\|restart\|reset\|wake <handle> ["<words>"]`, an `interrupt` without words having the agent read now what it was told and has not come to; the words also from `--file <path>`, or from standard input as `-` | `POST /api/v1/agents/<handle>/signals` | the signal as it is on the account's record: its number, its kind, who sent it and through which agent, when, and its first words. For a supervisor ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), [runner.md](runner.md#signals)): `tell` says something to the agent, taken after the tool call under way; `interrupt` stops its turn first; `stop` ends its session, and it stays stopped until `restart`, which goes on with the same conversation, or `reset`, which begins a new one; `wake` says there is something to do. Needs no project |
|
|
@@ -114,26 +121,27 @@ A table a group, each row a command: what it asks the console, and what it says.
|
|
|
114
121
|
|
|
115
122
|
| Command | Asks the console | Says |
|
|
116
123
|
|---|---|---|
|
|
117
|
-
| `skills [--cursor <cursor>]`, `skills <folder\|file> [--limit <n>] [--cursor <cursor>]`, `skills --search <words> [
|
|
118
|
-
| `skill <path> [--cursor <cursor>]`, `skill --file <path> [--offset <n>] [--limit <n>]` | `GET .../skills`, then `GET .../skills/one?path=&cursor=`, page after page until `complete` or until the next page would pass what a part holds; with `--file`, `GET .../skills/file?path=&offset=&limit=` once; where no project is named, the same reads under `/api/v1/workspace/skills` | as `skillcdn skill` and `skillcdn file` go ([ADR-0118](../adr/0118-the-consoles-reads-of-a-pack-keep-to-the-skillcdn-commands-read-by-read.md), [ADR-0124](../adr/0124-the-commands-reads-of-a-pack-are-the-skillcdn-commands-own.md)), of the project's pack, or of the organization's where no project is named, under the line that says so: the skill, the pages it came in joined, whole where it prints within 28,000 bytes, the line above it counted where the pack is the organization's, and otherwise in parts, since a host shows an agent no more of one command's output: a part joins as many pages as fit, says at its head that the skill's context is incomplete, a part after the first under the skill's name and its source alone, the description, the license and the lists of its files and of what it refers to printed once, with the first (SkillCDN 0.5.3; the license from 0.6, which took its line out of a later part), a part ending between two blocks of Markdown where it can, outside a table and a fenced code block, with a long table's first two lines said again where the next part goes on with it, and the first part naming what it shortened and the files of other packs the skill links to, which are not read here (SkillCDN 0.6), and ends in the `skillcdn` command's own words (SkillCDN 0.6.2), with none of the console's after them: that the part ends before the skill does, how many pages of the skill follow it where the pack counts them (`3 more pages follow this part`), and that the skill is not to be used, planned from or answered from yet but read on now, then, alone on the last line, the command that prints the next part, `console skill <path as given> --cursor <cursor>` with `--project`, `--url` and `--account` as they were given; the last part of a skill read in parts
|
|
119
|
-
| `
|
|
124
|
+
| `skills [--cursor <cursor>]`, `skills <folder\|file> [--limit <n>] [--cursor <cursor>]`, `skills --search "<words>" [--path <folder>] [--full] [--limit <n>] [--cursor <cursor>]`, `skills --rows [<folder\|file>] [--heading <words>] [--format csv\|json] [--out <path>]`, `skills --code [<folder\|file>] [--heading <words>] [--grep <pattern>] [--out <path>]`, `skills --kinds` | `GET .../skills`, which `--kinds` reads alone; `GET .../skills/browse?path=&cursor=&limit=`, one page; `GET .../skills/find?query=&path=&cursor=&limit=`, one page; `GET .../skills/rows?path=&heading=&cursor=&limit=` or `.../skills/code`, page after page to the end; where no project is named, the same reads under `/api/v1/workspace/skills` | each read as the `skillcdn` command's own goes, printed by the reads that command prints with ([ADR-0118](../adr/0118-the-consoles-reads-of-a-pack-keep-to-the-skillcdn-commands-read-by-read.md), [ADR-0124](../adr/0124-the-commands-reads-of-a-pack-are-the-skillcdn-commands-own.md)): `skillcdn skills`, `browse`, `find`, `rows` and `code`, with the same pages, bounds and words, the reads named as the commands the pack is read with, `console plugin <key> skills` for a plugin's, and each asked for by what that command takes after its own word for the read, the pack left out ([ADR-0179](../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)). `--kinds` is `skillcdn skills --kinds` (ADR-0176, below): the kinds of work the pack has skills for, in a few lines. The project's pack; or, where no project is named, the organization's, every read but `--rows`, `--code` and `--json` under a first line that says whose pack it is and how a project's own is read ([ADR-0113](../adr/0113-the-organizations-pack-is-read-where-no-project-is-named-by-every-member.md)). The project's pack is its own, or the organization's ([ADR-0031](../adr/0031-the-console-reads-a-pack-as-the-skillcdn-command-does-and-a-local-one-from-a-directory.md)): where it is, at a deployment or on the console's machine, and how the read went; what a client is told of it on connect, as the deployment tells one, with the reads named as the console's commands, and a file it names, the page to start from, the manifest, an overview, by the line that reads it, `console skill --file <path>` with `--project`, `--url` and `--account` as they were given (SkillCDN 0.6.4); every skill with the path of its `SKILL.md`, as a search without words lists them, and the documents outside the skills counted and not listed, with the commands that read them, a folder and a search, since a pack of documents holds hundreds (SkillCDN 0.6.3); a line of the command's own, after the listing, that a skill is loaded, its rules first, with `console skill <the path of its SKILL.md>`, a long one in parts, and that `--file` reads a file as it is, without the rules; where a person connects an agent of its own, and where the console's own skills are on this machine. A listing longer than one read prints, 28,000 bytes with the console's own lines counted (SkillCDN 0.6.2), comes in pages cut from the console's one answer: the first has the console's lines above the listing and ends with `The listing goes on: console skills --cursor <cursor>`, with `--project`, `--url` and `--account` as they were given, a page from a cursor is the listing alone, and the last says `The listing is complete: this was its last page.`; a cursor that is none, or of another commit of the pack, is refused as the pack refuses one (`request.invalid`), and `--limit` goes with a folder or a search. With a folder (`.` for the root; `/` is taken too, but a Windows shell rewrites it into a path before the command sees it; a folder as a listing and the kinds print it, `design/`, is that folder, with `--path` too, since a deployment refuses a path that ends with a slash), a page of what it holds, as `browse_repo` lays it out for a model: 50 entries unless `--limit` says otherwise (up to 200), and a page that ends before the folder does ends with the command that reads the next, `Next page: console skills <folder> --cursor <cursor>`, with `--limit`, `--project`, `--url` and `--account` as they were given, and names no cursor beside it (SkillCDN 0.6.3). With a file's path, the file's outline, paged the same way: every heading with its level and the offset and limit that read its section with `skill --file`; a file that is not Markdown has none, and the line says so (SkillCDN 0.4); from SkillCDN 0.5 a heading says how many rows the tables of its section hold, and a line how many tables and code blocks the document has, each with the command that reads them as data, its path spelled as the line that reads the next part of a skill spells one (`skill` below). With `--rows`, the tables of the document, or of every document under the folder, the whole pack when none is named, as data ([ADR-0100](../adr/0100-a-packs-tables-and-code-blocks-are-had-as-data-through-the-console.md)): one CSV, a header of `path`, `heading` and every column name the tables have, then a line per row in reading order, every page the pack answers joined, so that a table written in several sections and files under one header comes out as one. `--format json` prints an array of rows instead, each with its `path`, its `heading` and its `cells` by column name; a document with no table prints the header alone, and standard error says that there is none. With `--code`, the fenced code blocks as written, each under a line that names its file, the section it stands in and what it says it is written in (`--- <path> > <heading> (<language>) ---`); `--grep <pattern>` keeps the blocks whose text matches, a regular expression as JavaScript reads one, run on this machine. `--heading <words>` keeps what stands under a heading whose path holds every word; `--out <path>` writes the file there, or into a directory, and says how much was written (`Wrote 3 rows of 2 tables to <file>.`), instead of printing. A read as data that the pack refused prints nothing, says why on standard error and exits with `1`, so that what a program takes is never a refusal; one that does not end within 64 pages fails the same way, and a folder or a file under the path is named instead. With `--search`, one page of what the words find, as `skillcdn find` prints it (SkillCDN 0.6.4, ADR-0179): every bare word typed is of the query, in the order typed, and `--path <folder>` keeps the search to a folder; a result is its name, its path and the start of its description, at most 160 characters, a skill with the files of its that matched on one line and a document with the sections of it that matched and the offset and limit that read each, in relevance order, ten unless `--limit` says otherwise (up to 25), and `--full` prints everything the search keeps of a result; a result that matches closely says so after its name, with what it rests on, the loose ones follow the others on a line each, and the first sentence is `No close match for "..." in ...` where every result is loose, which is how a job is known to have no skill in the pack; where a skill was found, the results end with the next step, said once, `Load the one that fits, or go on without one where none does: console skill <its path>`, with `--project`, `--url` and `--account` as they were given; a document made from others is marked as one (SkillCDN 0.5), a line says how the page was ranked where the deployment searches by meaning too, which from SkillCDN 0.5 says where identifiers were ranked by their words and how much of the pack is embedded so far, and, when more matched, the last line is the command that reads the next page, `Next page: console skills --search <words> ... --cursor <cursor>`, the words as one word of the line, the folder as `--path`, `--limit` and `--full` as they were given. How a result matches is judged where the search runs: by the deployment, with the bounds its operator says for its models, and for a pack read from the console's machine by its words alone; the console has no setting for it. A read the pack refused ends the command with exit `1` and the refusal on standard error, the listing too: for one read, the pack's own code and words, as the `skillcdn` command prints them (`file.not_found: No file at that path in this mount.`); for the pack as a whole, where it is, how it stands and whose token is missing. `--json` is the console's answer: what the pack answered, in the shapes of the main repository's REST API, one page of a folder or an outline as it came, the tables or the code blocks joined; for a refused read it says the status, and the command ends the same. The listing ends with where the plugins' own skills are: `console plugin <key> skills` |
|
|
125
|
+
| `skill <path> [--cursor <cursor>]`, `skill --file <path> [--offset <n>] [--limit <n>]` | `GET .../skills`, then `GET .../skills/one?path=&cursor=`, page after page until `complete` or until the next page would pass what a part holds; with `--file`, `GET .../skills/file?path=&offset=&limit=` once; where no project is named, the same reads under `/api/v1/workspace/skills` | as `skillcdn skill` and `skillcdn file` go ([ADR-0118](../adr/0118-the-consoles-reads-of-a-pack-keep-to-the-skillcdn-commands-read-by-read.md), [ADR-0124](../adr/0124-the-commands-reads-of-a-pack-are-the-skillcdn-commands-own.md)), of the project's pack, or of the organization's where no project is named, under the line that says so: the skill, the pages it came in joined, whole where it prints within 28,000 bytes, the line above it counted where the pack is the organization's, and otherwise in parts, since a host shows an agent no more of one command's output: a part joins as many pages as fit, says at its head that the skill's context is incomplete, a part after the first under the skill's name and its source alone, the description, the license and the lists of its files and of what it refers to printed once, with the first (SkillCDN 0.5.3; the license from 0.6, which took its line out of a later part), a part ending between two blocks of Markdown where it can, outside a table and a fenced code block, with a long table's first two lines said again where the next part goes on with it, and the first part naming what it shortened and the files of other packs the skill links to, which are not read here (SkillCDN 0.6), and ends in the `skillcdn` command's own words (SkillCDN 0.6.2), with none of the console's after them: that the part ends before the skill does, how many pages of the skill follow it where the pack counts them (`3 more pages follow this part`), and that the skill is not to be used, planned from or answered from yet but read on now, then, alone on the last line, the command that prints the next part, `console skill <path as given> --cursor <cursor>` with `--project`, `--url` and `--account` as they were given; the last part of a skill read in parts says at its end `Skill context is complete: this was its last part.`, and a skill printed whole by one command says neither, however many pages it came in; after the last part, and after a skill printed whole, of the project's or the organization's pack and never of a plugin's, comes one line of the console's own, which the read keeps room for: the command that leaves a note on the skill, its folder in it and `--project`, `--url` and `--account` as they were given (ADR-0178, below), and nothing with `--json`; a cursor of a pack that has moved since is refused in the pack's own words. Where a skill does not list every file of its folder, or resolve every file it links to, it names the folder by the command that lists it, `console skills <folder>`, `.` for the root's, with `--project`, `--url` and `--account` as they were given (SkillCDN 0.6.3). Each word of a line printed to run is spelled as the `skillcdn` command spells one (`shellLine` of `@skillcdn/cli`, ADR-0179), so that bash, zsh and PowerShell all take it whole and expand nothing in it: as it is where none reads anything of it, else in single quotes, and in double quotes where it holds a single quote, straight or curly, and nothing any of them reads inside them; a word that holds a single quote with `$`, a backtick, a backslash or `!`, one with a double quote, which Windows PowerShell does not hand on as spelled, or with a character that does not show, has no spelling they all take, and no line is printed for it: the part says to run the command that was run again with `--cursor <cursor>`, and why, and an outline says the read with the file's path quoted for one's shell. Laid out as `load_skill` lays it out for a model: the rules of the repository from its root to the nearest manifest, the instructions, the included files, then its supporting files and what it refers to, a reference whose link names a section with what reads that section (SkillCDN 0.5), rendered by the main repository's own renderers with the reads named as the console's commands; or, with `--file`, a page of the file, or what a folder holds: the text as written from character `--offset` (0 unless given), 24,000 characters ended at the end of a line unless `--limit` says otherwise (1 to 100,000), and a page that ends before the file does says where the next begins, which `--offset` then reads; the section a search or an outline named is read the same way; a private pack through the pack token the project holds ([ADR-0028](../adr/0028-the-console-reads-a-projects-pack-through-the-deployments-rest-api-with-a-pack-token-for-a-private-one.md)). `<path>` is the path of the SKILL.md from the repository's root, or of the skill's folder, which is read as its `SKILL.md` (`.` for the root's own), or the URI the pack names it by (`skill://<host>/<owner>/<name>/<path>`); a URI of another pack is not understood. Where the pack answers that no skill is at the path, the command says so as `skillcdn skill` does, `skill.not_found: No skill at "<path>". Use console skills <folder> or console skills --search for its exact SKILL.md path. Available: <the first twenty there are>.`; no file is the pack's own `file.not_found` and words; the words about a private pack and its token are for a pack that serves nothing to the console at all. `--file` takes no skill's path beside it, `--offset` and `--limit` go with `--file` only, and `--cursor` with a skill only: otherwise not understood. A read the pack refused ends the command with exit `1` and the refusal on standard error; `--json` prints the console's answer, with the skill whole in it, from `--cursor` where one is given, or the file's page as the API gives it, 40,000 characters unless `--limit` says otherwise; for a refused read it says the status, and ends the same |
|
|
126
|
+
| `skill note <path> "<words>"\|-`, `skill note --none "<words>"\|-`, `skill note <id> --done "<words>"`, `skill note <id> --drop "<words>"`, `skills --notes [<folder\|path>] [--all] [--mine] [--limit <n>] [--offset <n>]` | `POST /api/v1/pack-notes`, with the project where one is named; `POST /api/v1/pack-notes/<id>/close`; `GET /api/v1/pack-notes?state=&mine=&path=&limit=&offset=` | the notes on the pack ([ADR-0178](../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)). Leaving one says its id, what it is on and whom it waits for, the member who keeps the organization's skills by what they are called, or as the member who keeps them where the console does not name them to the asker; where nobody keeps them, that it waits for an administrator and that the report of the work should say so. A console of before, which has no such path, is said to take no notes yet and to be older than the command, with where the finding goes meanwhile. `<path>` is a skill's folder, its `SKILL.md` or the URI the pack names it by, each kept as the folder, or a page of the pack as written, a path from the pack's root with no `.` or `..` among its parts and refused otherwise; `-` reads the words from standard input; what says nothing or is over its length is refused before anything is sent. Closing one says how it ended and what was said of it. `skills --notes` prints, under a line that says whose notes they are, how many are open and who keeps the skills, each skill or page with its notes, the oldest first, a note as its id, its day, who left it, `a member` where the console does not name them to the asker, through which agent and from which project, then what it says, set in, and for a closed one what became of it after `->`; the jobs no skill fit come last; `--all` the closed too, `--mine` the asker's own alone, a folder or a path the notes under it, 50 a page. To whoever reads everyone's it ends with how a note is closed and with the skill `keeping-the-pack` and its place on this machine; to anyone else with how one is taken back. It reads nothing of the pack, and a flag of a read beside it is not understood |
|
|
127
|
+
| `rules` | `GET .../rules`, or `GET /api/v1/rules` without a project named, and `GET /api/v1/me` | the rules that hold, as they read for the person (`{language}` is the language they read in, or the task's while they have none) ([ADR-0023](../adr/0023-the-rules-of-a-board-are-pages-the-workspace-and-its-projects-keep-read-first-by-every-agent.md)), under a first line that says what follows ([ADR-0119](../adr/0119-a-take-leaves-out-the-rules-a-session-says-it-holds.md)): `Rules <mark>:`, which parts there are, in the order they are printed, with how many characters each is, and how a take in this session leaves them out (`console take <number> --rules <mark>`). The mark is the first eight hex characters of a SHA-256 over the rules as they read for the person, the console's rules with what the organization adds, what the project adds and the plugins' lines, in the language they are read in: the same for the same rules, another once a rule changed, for another project's and in another language; a project that adds nothing has the mark of the workspace's alone. Then the parts, what differs first and what always holds last ([ADR-0120](../adr/0120-the-consoles-rules-always-hold-and-a-workspace-and-a-project-add-to-them.md)): what this project adds, with its version and who wrote it; under `## Plugins`, a line per plugin bound to the project that the person holds a role in, or at the workspace every plugin they may use, with the sentence its manifest gives agents and `console plugin <key>` to start with ([plugins.md](plugins.md), "The command"); what the organization adds, with its version and who wrote it; and the console's rules, which always hold. A part that adds nothing is not printed: the first line says in a clause that the project, the organization or both add nothing. What is added stands first because it is short and is what differs between projects; where the parts differ the earlier holds, as the line says. `--json` carries the rules as the console answered them, and `mark` |
|
|
120
128
|
| `rules write --body <markdown>\|--file <path>\|-\|none [--workspace] [--base <version>]` | `PUT .../docs/rules` or `POST .../docs/rules/archive`; with `--workspace`, `PUT /api/v1/rules` or `POST /api/v1/rules/archive` | the version written of what the project adds to the rules, or with `--workspace` of what the organization adds ([ADR-0120](../adr/0120-the-consoles-rules-always-hold-and-a-workspace-and-a-project-add-to-them.md)); that a text which adds nothing to the console's rules wrote nothing; or, with `none`, that what was added is put away; for an owner of the project, or an administrator for the organization's. |
|
|
121
129
|
| `plugins` | `GET /api/v1/plugins`, `GET /api/v1/me` | one line per plugin the person may use ([plugins.md](plugins.md)): key, name in their language, version, state, their roles in it. Needs no project |
|
|
122
130
|
| `plugin <key>` | `GET /api/v1/plugins/<key>`, `GET /api/v1/me` | the plugin whole: what it is, the sentence for agents, the roles held in it, its board project, a line per command and query the person may run with its usage, where its skills are, its settings; its problems, a job that failed twice running among them, and a line per job, how often it runs, how its last run went and since when it has failed, and when it runs next, where it has any |
|
|
123
131
|
| `plugin <key> help [<command>]` | `GET /api/v1/plugins/<key>` | one command or query in full, as `help <command>` prints one: the usage, the arguments with their types and bounds, the roles, the refusals; or every one in a line |
|
|
124
132
|
| `plugin <key> <command> [<args>] [--<name> <value>]... [--file <path> \| -] [--run <id>]` | `POST /api/v1/plugins/<key>/files` as a form, where `--file` or `-`; then `POST /api/v1/plugins/<key>/invoke` with the words as typed after the command's name, the handle, the project the command works in and the run named | what the command says, or a query's answer as JSON, a file a query answers saved under its name; `--json` the whole answer; exit `3` with the decision's id, the project it waits in and `console decision <id> --wait 100` when the command raised one, which reads it wherever it is; the console's refusal with its code otherwise. `--json`, `--url`, `--account`, `--project`, `--file` and `--run` are the command's own wherever they stand; every other word is the plugin's, and the console parses them against the definition |
|
|
125
|
-
| `plugin <key> records <collection> [<id>] [--where <field>=<value>]... [--search <words>] [--project <key>] [--order <field>[:desc]] [--limit <n>] [--after <cursor>] [--archived] [--versions]` | `GET .../records/<collection>?where=&q=&project=&order=&limit=&after=&archived=`; `GET .../records/<collection>/<id>`, `.../versions` | the records the person may read, one a line with the data compact, and the cursor the next page is asked with; one record whole; its versions |
|
|
133
|
+
| `plugin <key> records <collection> [<id>] [--where <field>=<value>]... [--search "<words>"] [--project <key>] [--order <field>[:desc]] [--limit <n>] [--after <cursor>] [--archived] [--versions]` | `GET .../records/<collection>?where=&q=&project=&order=&limit=&after=&archived=`; `GET .../records/<collection>/<id>`, `.../versions` | the records the person may read, one a line with the data compact, and the cursor the next page is asked with; one record whole; its versions |
|
|
126
134
|
| `plugin <key> events [--kind <kind>] [--limit <n>] [--offset <n>]` | `GET /api/v1/plugins/<key>/events` | the plugin's events the caller may read, as [plugins.md](plugins.md) says who reads them, newest first, one a line: its number, when, its kind, who did it and through what, and what it says; `--kind plugin.failed` for the failures alone, which is where a job's failure says why; a page of up to 100, 50 unless said; where the console answers none, `No event of <key> that you may read` |
|
|
127
|
-
| `plugin <key> skills [<folder>\|<file>]
|
|
135
|
+
| `plugin <key> skills [<folder>\|<file>]`, `plugin <key> skills --search "<words>" [--path <folder>]`, `plugin <key> skills --rows\|--code [<folder>\|<file>]`, `plugin <key> skill <path>`, `plugin <key> skill --file <path> [--offset <n>] [--limit <n>]` | `GET /api/v1/plugins/<key>/skills`, `.../skills/one`, `.../skills/file`, `.../skills/browse`, `.../skills/find`, `.../skills/rows`, `.../skills/code`, as `skills` and `skill` ask a project's | the plugin's own skills, a pack read from its package, printed exactly as `skills` and `skill` print a project's |
|
|
128
136
|
| `plugin <key> enable --consent <capability>,... [--board new\|<key>] [--projects all\|<key>,...] [--set <key>=<value>]...`, `plugin <key> disable`, `plugin <key> capabilities [--consent <capability>,...\|none]`, `plugin <key> settings [--set <key>=<value>]...`, `plugin <key> secret <name> [--key <key>] [--remove]` (`--key` for a keyed secret, one key at a time), `plugin <key> grant <role> --person <login>\|--project <key>\|--plugin <key>\|--team <key>\|--everyone`, `plugin <key> revoke <grant id>` | `GET /api/v1/plugins/<key>` first; then `POST .../enable`, `POST .../disable`, `PATCH .../consent`, `PATCH .../settings`, `PUT` or `DELETE .../secrets/<name>` with the value typed unseen at the terminal, or read from standard input when piped or redirected from a file, never an argument, `GET /api/v1/people?login=` then `POST .../grants`, `DELETE .../grants/<id>` | for an administrator: `enable` prints what each capability the plugin asks opens and refuses unless `--consent` names every one again, makes the board project the manifest proposes with `--board new`, with the mark it names for it, or chooses one by key, puts the plugin on every project or on the keys named, and sets the settings read as their types, an empty value clearing one; what changed, as it is now; a secret is sealed and shown never |
|
|
129
137
|
|
|
130
138
|
### Commands for working a task
|
|
131
139
|
|
|
132
140
|
| Command | Asks the console | Says |
|
|
133
141
|
|---|---|---|
|
|
134
|
-
| `take <number\|id> [--agent <name>] [--rules <mark>]` | `GET .../tasks/<ref>`, then `POST .../runs`, then `GET .../rules`, `GET /api/v1/me`, `GET .../tasks/<ref>` again, `GET .../tasks/<id>/comments` and `GET .../runs?open=true&mine=true&brief=true` | the run that began, with the run's id and the task's id on a line of their own, the task in full as it stands taken, with the address of its page as `task` prints it and the discussion on it, the rules that hold as they read for the person, as `rules` prints them, under the line that carries their mark, and what to do next. With `--rules <mark>`, the mark a session read at the head of the rules ([ADR-0119](../adr/0119-a-take-leaves-out-the-rules-a-session-says-it-holds.md)): where it is the mark the rules have now, they are left out, and one line says so (`Rules <mark>: left out, since they stand as this session read them. console rules prints them.`); where it is not, since a rule changed or the mark is of another project's, a line says so (`The rules are not the ones marked <mark>: … They follow whole after the task, under the mark they have now.`) and they are printed whole after the task, as without a mark. The line that answers a mark stands directly after the line of the run's ids, before the task: a session that holds the rules reads the head of a take, and a rule that changed is said there. Without it the rules are printed whole, so that a session that was never shown them, a fresh one or a subagent, has them whatever it does. `--json` carries the rules either way, with `mark`; a run open on the task is taken over, and that is said when it happened ([ADR-0020](../adr/0020-the-console-does-not-claim-an-agent-is-at-work-a-run-says-when-it-was-last-heard-from-and-a-new-run-takes-over.md)); another run of the token open in the project is named, with the `--run <id>` to say on every command on a run from here |
|
|
142
|
+
| `take <number\|id> [--agent <name>] [--rules <mark>]` | `GET .../tasks/<ref>`, then `POST .../runs`, then `GET .../rules`, `GET /api/v1/me`, `GET .../tasks/<ref>` again, `GET .../tasks/<id>/comments` and `GET .../runs?open=true&mine=true&brief=true` | the run that began, with the run's id and the task's id on a line of their own, the task in full as it stands taken, with the address of its page as `task` prints it and the discussion on it, the rules that hold as they read for the person, as `rules` prints them, under the line that carries their mark, and what to do next, the job's skill first ([ADR-0176](../adr/0176-a-job-begins-with-its-skill-where-the-pack-has-skills-for-its-kind-which-one-read-says.md)): `console skill <path>` for the one the task names, else `console skills --kinds`, which says whether the pack has skills for a job of this kind and how one is found, each with `--project`, `--url` and `--account` as the take was given them, named in words where they have no spelling every shell takes or the library that spells them does not load; said at every take, the take itself reading nothing of the pack and running no search. With `--rules <mark>`, the mark a session read at the head of the rules ([ADR-0119](../adr/0119-a-take-leaves-out-the-rules-a-session-says-it-holds.md)): where it is the mark the rules have now, they are left out, and one line says so (`Rules <mark>: left out, since they stand as this session read them. console rules prints them.`); where it is not, since a rule changed or the mark is of another project's, a line says so (`The rules are not the ones marked <mark>: … They follow whole after the task, under the mark they have now.`) and they are printed whole after the task, as without a mark. The line that answers a mark stands directly after the line of the run's ids, before the task: a session that holds the rules reads the head of a take, and a rule that changed is said there. Without it the rules are printed whole, so that a session that was never shown them, a fresh one or a subagent, has them whatever it does. `--json` carries the rules either way, with `mark`; a run open on the task is taken over, and that is said when it happened ([ADR-0020](../adr/0020-the-console-does-not-claim-an-agent-is-at-work-a-run-says-when-it-was-last-heard-from-and-a-new-run-takes-over.md)); another run of the token open in the project is named, with the `--run <id>` to say on every command on a run from here |
|
|
135
143
|
| `report <markdown> [--run <id>]`, `report --file <path> [--run <id>]`, `report - [--run <id>]` | `POST .../runs/<id>/reports` | how many reports the run carries |
|
|
136
|
-
| `hand-in <https url \| file path> [--label <words>] [--run <id>]` | `POST .../runs/<id>/artifacts` for a link; `POST .../runs/<id>/files` for a file, sent as a form with its name and its media type by extension | how many artifacts; a picture handed in is shown on the task, and where a report names it as `` |
|
|
144
|
+
| `hand-in <https url \| file path> [--label <words>] [--run <id>]` | `POST .../runs/<id>/artifacts` for a link; `POST .../runs/<id>/files` for a file, sent as a form with its name and its media type by extension | how many artifacts; a picture handed in is shown on the task, and where a report names it as ``. A link is over https; over http the console takes an address of its own alone, a page a command printed on a console served on one machine (`http://127.0.0.1:11199/...`), and refuses any other in those words (`request.invalid`), one with a backslash in it or a name before an `@` among them |
|
|
137
145
|
| `comment <number\|id> "<markdown>" [--attach <path>]...`, `comment <number\|id> --file <path>`, `comment <number\|id> -` | `GET .../tasks/<ref>`, then `POST .../tasks/<id>/comments`: as JSON, or as one form with the part `body` and a part `file` per file attached, its media type by extension | the comment as written, with its files and the command that reads each; a word to the task's people, which needs no run ([ADR-0024](../adr/0024-a-task-carries-a-discussion-of-comments-with-their-files-read-as-one-thread-with-the-runs-and-the-decisions.md)) |
|
|
138
146
|
| `file <id> [--decision <id>] [--out <path>]` | `GET .../files/<id>`; with `--decision`, `GET /api/v1/decisions/<decision id>/files/<id>`, needing no project ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)) | that the file is saved, where, with its size and type: under its own name in the working directory, at the path, or into the directory named; a file a run handed in, one put in a comment or on a decision, or one attached to a page, so that an agent looks at a picture a person put on the board; with `--decision`, a file of that decision wherever it is, as `decision` names it for one reached outside the project; `file.not_found` for a file not the decision's, or a decision out of reach |
|
|
139
147
|
| `ask "<question>" --option "<label>" ... [--body <markdown>\|--file <path>] [--attach <path>]... [--to <login\|me>]... [--wait <seconds>] [--run <id>]` | `POST .../decisions` with `runId` and, for `--to`, `deciderId`, and `deciderIds` beside it where `--to` was given more than once ([ADR-0057](../adr/0057-a-decision-may-be-addressed-to-several-people-and-the-first-answer-ends-it.md)); with `--attach`, as one form with the part `decision` and a part `file` per file, its media type by extension ([ADR-0055](../adr/0055-a-decision-carries-the-files-put-on-it-when-it-is-raised.md)); then `GET .../decisions/<id>?wait=` | the decision raised, its id and then the address of its page each on a line of its own (`page: <origin>/projects/<key>/decisions/<id>`), how many files came, whom it waits for, its options; then the answer, or that it still waits. It is for the person the agent works for unless `--to` names another of the project ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)), or several, any of whom may answer, the first answer ending it |
|
|
@@ -141,7 +149,7 @@ A table a group, each row a command: what it asks the console, and what it says.
|
|
|
141
149
|
| `answer <id> --option <n>\|--own "<answer>" [--note <markdown>\|--file <path>]` | `POST .../decisions/<id>/answer`; where the project does not have it, or none is named, `POST /api/v1/decisions/<id>/answer` ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)) | the decision with its answer: a person's answer written in their name through the agent, as they gave it in chat or in passing, with where and when in the note, so that the record is whole and a run that waited goes on ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)) |
|
|
142
150
|
| `decisions [--open] [--limit <n>] [--offset <n>]`, `decisions --mine\|--raised [--open] [--limit <n>] [--offset <n>]` | `GET .../decisions`; `GET /api/v1/decisions` for `--mine`, with `raised=true` for `--raised`, neither needing a project | one line per decision, the waiting first, each with who asked it, whom it is for and when it was asked; with `--mine`, the decisions addressed to the person across the projects they may see, with `--raised` those they asked of someone else, each with its project's key; a page at a time |
|
|
143
151
|
| `finish [--summary <markdown>\|--file <path>] [--run <id>]`, `fail [...]` | `POST .../runs/<id>/end`, then `GET .../tasks/<id>` | how the run ended and the state the task is in, read once the run is over (`Run <id> finished; task #<n> is in_review now.`), since a finished run leaves its task at work where another run is open on it; a failed run puts its task up for review too, for a person to look at why ([ADR-0114](../adr/0114-the-end-of-a-run-leaves-no-task-at-work-behind-it.md)), and it is left `in_progress` where a person moved the task meanwhile or another run is open on it. `--json` is the run as the console answered it, and the task is not read. Where the task could not be read, standard error says that the run is over and is not to be ended again, then what the reading ended on, with exit `1` |
|
|
144
|
-
| `abandon [<run id>] [--summary <markdown>]` | `POST .../runs/<id>/end`, as `abandoned`, then `GET .../tasks/<id>` | how the run ended, and the state the task is in, read once the run is over (`Run <id> abandoned; task #<n> is ready now.`): back as the take found it; `--json` and a task that could not be read as after `fail` |
|
|
152
|
+
| `abandon [<run id> \| --run <id>] [--summary <markdown> \| --file <path>]` | `POST .../runs/<id>/end`, as `abandoned`, then `GET .../tasks/<id>` | how the run ended, and the state the task is in, read once the run is over (`Run <id> abandoned; task #<n> is ready now.`): back as the take found it; `--json` and a task that could not be read as after `fail` |
|
|
145
153
|
| `runs [--task <number\|id>] [--open] [--mine] [--limit <n>] [--offset <n>]` | `GET .../runs?brief=true`, the runs without their reports, counted, and whole on `--json` | one line per run, with how many reports and files it has and when an open one was last heard from; a page at a time |
|
|
146
154
|
| `run <id>` | `GET .../runs/<id>` | the run in full, with its reports, what it handed in and where each file is read |
|
|
147
155
|
| `decision <id> --outcome <markdown>\|--file <path>` | `PATCH .../decisions/<id>`; where no project is named, `GET /api/v1/decisions/<id>` first, for the project the decision is in ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)) | the decision as a record, with what followed written down; written from a directory that names no project, a desk, as the decision is read from there; `decision.not_found` for one out of reach |
|
|
@@ -151,11 +159,11 @@ A table a group, each row a command: what it asks the console, and what it says.
|
|
|
151
159
|
|
|
152
160
|
| Command | Asks the console | Says |
|
|
153
161
|
|---|---|---|
|
|
154
|
-
| `docs [<folder>] [--search <words>
|
|
162
|
+
| `docs [<folder>] [--archived]`, `docs --search "<words>" [--archived]` | `GET .../docs?folder=` or `?q=` | the folders and the pages of a folder, or the pages found by words: one line per page. A search is of every page of the project, and every bare word typed is of it: no folder narrows it (ADR-0179, point 6). One that finds nothing says the words it looked for, `No pages: none holds every word of "<words>"`, so that a folder typed beside them is seen to be one of them |
|
|
155
163
|
| `doc <path> [--version <n>\|--versions]` | `GET .../docs/<path>`, `.../versions`, `.../versions/<n>` | the page in full: its body, what it refers to, what refers to it, its files; or its versions; or one as it was |
|
|
156
|
-
| `write <path> [--title <title>] --body <markdown>\|--file <path> [--base <version>]` | `GET .../docs/<path>` for the title when none is said, then `PUT .../docs/<path>` | the path, the title and the version written, what the page refers to, and the page's address on a line `page: <address>`, as a task's; the title is shown above the body, on the page and by `doc`, so the body does not begin with it |
|
|
157
|
-
| `attach <path> <file> [--label <words>]` | `POST .../docs/<path>/files`, as a form | how many files the page carries; a picture attached is shown where the page's body names it as `` |
|
|
158
|
-
| `archive <path>`, `restore <path>` | `POST .../docs/<path>/archive`, `.../restore` | that the page is put away, or back |
|
|
164
|
+
| `doc write <path> [--title <title>] --body <markdown>\|--file <path> [--base <version>]` | `GET .../docs/<path>` for the title when none is said, then `PUT .../docs/<path>` | the path, the title and the version written, what the page refers to, and the page's address on a line `page: <address>`, as a task's; the title is shown above the body, on the page and by `doc`, so the body does not begin with it |
|
|
165
|
+
| `doc attach <path> <file> [--label <words>]` | `POST .../docs/<path>/files`, as a form | how many files the page carries; a picture attached is shown where the page's body names it as `` |
|
|
166
|
+
| `doc archive <path>`, `doc restore <path>` | `POST .../docs/<path>/archive`, `.../restore` | that the page is put away, or back. A form's word is the form where a path follows it, the form's flags before the path or after it, and a page's path alone: a page called `write` is read with `doc write`, and written with `doc write write` |
|
|
159
167
|
|
|
160
168
|
### Commands for the command itself
|
|
161
169
|
|
|
@@ -164,11 +172,11 @@ A table a group, each row a command: what it asks the console, and what it says.
|
|
|
164
172
|
| `serve [<dir>] [--port <n>] [--records <dir>]` | `GET /api/v1/me` once; then every request of the pages under `/api/`, carried with the token | where it serves and as whom, and where the records of a desk are where `--records` names them; then nothing until stopped ([a console of one's own](#a-console-of-ones-own)) |
|
|
165
173
|
| `desk [<directory>] [--web]` | `GET /api/v1/me` once | for a person: which of their desk's files it wrote and which were there, with `--web` the shell of the desk's pages written in `web/`, and last what is next, in order, to say to an agent begun in that folder ([a desk of one's own](#a-desk-of-ones-own)). Needs no project; for an agent account it writes the shell alone, with `--web`, into its desk, and nothing without it; refused under a directory that works in a project |
|
|
166
174
|
| `desk check [<directory>]` | nothing | each problem of the collections of the desk in the directory, the current one unless another is named, with its file and what is wrong; or that they read right, with what each collection keeps; or that the desk keeps no collection, which is no failure, what else it keeps under `records/` being its own and not read ([records.md](records.md#the-check), [ADR-0117](../adr/0117-a-desk-keeps-records-of-what-its-member-made-as-files-the-desks-pages-read.md)). Ends in 1 with any problem. Needs no sign-in and no project |
|
|
167
|
-
| `help
|
|
175
|
+
| `help`, `help <command> [<form>]`, `help everywhere` | nothing | the table of the commands; a command's page, or the page of one of its forms, the one a flag names where a form is typed as a flag (`help skills search`, and `skills --search --help`); what holds for every command: the options every command takes, the exit codes, the refusals any command may meet and which console a command talks to ([ADR-0167](../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)). A word that is no command is answered with the nearest there are, and one that is no form with the forms the command has |
|
|
168
176
|
| `--version` (also `version`, `-v`) | nothing | which version of the command this is, and where it is installed |
|
|
169
177
|
## The documents
|
|
170
178
|
|
|
171
|
-
A project's pages of Markdown ([ADR-0009](../adr/0009-documents-are-pages-of-markdown-in-a-project-addressed-by-path-versioned-and-linked-both-ways.md)), by path (`guides/onboarding`): `console docs` lists a folder, `console doc` reads a page, `console write` writes one, the first version or the next, keeping the title when none is said, `console attach` adds a file from the machine, `console archive` and `console restore` put a page away and bring it back. A link in a body whose destination is a page's path refers to that page, and `console doc` says what refers to a page in return. An agent writes down what it learned where the next agent will read it, and refers to it from its reports and in what it asks.
|
|
179
|
+
A project's pages of Markdown ([ADR-0009](../adr/0009-documents-are-pages-of-markdown-in-a-project-addressed-by-path-versioned-and-linked-both-ways.md)), by path (`guides/onboarding`): `console docs` lists a folder, `console doc` reads a page, `console doc write` writes one, the first version or the next, keeping the title when none is said, `console doc attach` adds a file from the machine, `console doc archive` and `console doc restore` put a page away and bring it back. A link in a body whose destination is a page's path refers to that page, and `console doc` says what refers to a page in return. An agent writes down what it learned where the next agent will read it, and refers to it from its reports and in what it asks.
|
|
172
180
|
|
|
173
181
|
## Configuring, as the person
|
|
174
182
|
|
|
@@ -215,6 +223,8 @@ An agent account's desk is settled by `console agent setup` ([below](#setting-a-
|
|
|
215
223
|
|
|
216
224
|
Plain text on standard output: one line per thing in a list, a few lines for one thing in full, with ids given, since the commands take them, and the vocabulary's own words (`in_progress`, `waiting`), since the options take them. A line that names a member, the owner and the workers of a task, whom a decision is for, who wrote a comment, calls a person by their login and an agent account by its handle (`workers alice, @mira`), which the commands take wherever they take a login ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)): a line tells the two apart. What went wrong goes to standard error as the console's stable code and its words (`run.task_closed: the task is done or dropped`), with a hint when there is something to do about it.
|
|
217
225
|
|
|
226
|
+
A command that was not understood is answered with a sentence, never with a page ([ADR-0167](../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)): what was wrong, with the form to type where one was left out, and a second line that names the page, of the form that was tried where it has one (`Its forms and flags: console help task edit`). An option that is none of the command's is answered with those it takes (`Not an option of this command: --bogus. Its own are --state, --open, ...; --json, --project, --url and --account go with every command.`), so that the next try needs no page; a word where the command takes none, and an option without its value, are said as that. A word that is no command names the nearest there are (`Not a command: taks. Nearest: take, tasks, task. console help lists the commands.`). All of these end with `2`, and ask the console nothing.
|
|
227
|
+
|
|
218
228
|
| Exit code | Meaning |
|
|
219
229
|
|---|---|
|
|
220
230
|
| `0` | Done. |
|
|
@@ -227,6 +237,10 @@ Plain text on standard output: one line per thing in a list, a few lines for one
|
|
|
227
237
|
|
|
228
238
|
The command's help has two layers. `console help` is the map, read once at the start: what the board is, that the agent acts as the person whose token it holds and that everything it sends is shown to people as text, which project the commands work in and how it is named; then every command in a line, by section (signing in, the board, working, the documents, configuring), each with what it does in a sentence, a many-formed command (`task`, `goal`, `project`) listing its forms without their flags; then what holds everywhere, the exit codes and the refusals any command may meet. `console help <command>` is the reference, read when the command is about to be used: the command in full, every form and flag, what each does, the limits the console holds it to (how long a report, a summary, a question or an option may be; how many options, reports and links) and the refusals it may meet, by code, so that an agent learns them before it runs into them. The help says what the command does; how the work goes and what the organization asks are the skill's and the rules', and are not repeated in it. The skill `working-the-board` ([skills/working-the-board/SKILL.md](../../skills/working-the-board/SKILL.md), [ADR-0015](../adr/0015-the-consoles-skills-live-in-this-repository-in-the-skillcdn-format-and-the-package-carries-them.md)) says how the work goes: reading, taking, reporting at the milestones, asking and waiting, handing in, writing down, finishing. The rules of the board say what the organization and the project ask of agents ([ADR-0023](../adr/0023-the-rules-of-a-board-are-pages-the-workspace-and-its-projects-keep-read-first-by-every-agent.md)): which tasks to take, which skills to load first, what to report, when to ask; `take` prints them with the task, so that they are read once, there, and `console rules` reads them any time, as when a task is still to be chosen. The plugins of the console, if it has any, are two commands in a section of their own, `console plugins` and `console plugin <key>`; the rules a task prints end with the plugins bound to the project, a line each, and `console plugin <key>` is then read before its first command, with the plugin's own skills ([plugins.md](plugins.md), "The command").
|
|
229
239
|
|
|
240
|
+
What a pack has skills for is the pack's to say, and the command says it in a few lines ([ADR-0176](../adr/0176-a-job-begins-with-its-skill-where-the-pack-has-skills-for-its-kind-which-one-read-says.md)). `console skills --kinds` prints what `skillcdn skills --kinds` prints of the same answer (SkillCDN 0.6.4, [ADR-0179](../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), point 3), in the words of the console's commands: a line a folder of the pack that holds skills, the folder as a read takes it (`design/`), with the jobs its description begins with, its first sentence, and a line a skill that no such folder holds, by its `SKILL.md`, so that every skill is behind some line; the lines within 1,500 characters, each cut to one length where they do not fit whole, and those that do not fit at forty characters each counted in a last line. Then it says what a job of one of those kinds begins with, the search, kept to the kind's folder (`--path`), and the load, each with `--project`, `--url` and `--account` as the read was given them, and that a job of none of them needs no search. `--json` answers `{ "kinds": [{ "path", "jobs", "skills" }], "skillCount", "beyond" }`, `beyond` being the skills behind none of the lines. It is one answer of the console, the one a listing is made of, and no search: it says what the pack is for, which an agent that searches only where it expects a skill is otherwise never told, and a search of one of those kinds then says itself when nothing matches closely. The rules say that a job of a kind the pack has skills for begins with its skill, a take names this read first of what to do next, and a desk names it for a job that comes with no task: an agent reads it once in a conversation, and from then on knows without a read whether a job is one for a skill.
|
|
241
|
+
|
|
242
|
+
What a run showed a skill to lack is said to whoever keeps the pack, by the agent that met it ([ADR-0178](../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)). The moment is the load: the last part of a skill ends with the command that leaves a note on it, so that the one sentence is read by whoever is about to use the skill and by nobody else, and the skill `working-the-board` says it again where a run finishes. A job of a kind that comes again and that no skill fit is a note with no path (`--none`), in place of the line a run's report once carried. Nothing of it is in a session's first words, a desk or the rules, and a take prints nothing more. A keeper that is an agent account learns of the notes from one wake of the schedule ([runner.md](runner.md#the-boards-wakes)), whose words name `console skills --notes`; that list ends with the skill `keeping-the-pack`, which is read then, when a round begins.
|
|
243
|
+
|
|
230
244
|
## Running an agent on a task
|
|
231
245
|
|
|
232
246
|
What a person does, once the command is signed in where the agent runs; tried with Claude Code on 2026-10-09, with an agent that took a task, reported at each milestone, raised a decision, acted on the answer, handed in and finished, and a person who answered on the board.
|
|
@@ -257,7 +271,7 @@ A command of 0.5.0 reads what the console answers of an agent account already ([
|
|
|
257
271
|
2. **It signs the command in as the account.** A connection that asks to be the account itself ([above](#signed-in-as-the-account-itself)), named `console as <OS account> on <machine>`, which is what the account's page shows beside the session. The command opens the page in the machine's browser, only where its address is the console's own, prints the address and the code, and waits for the account, signed in there, to say that the command is it. It then asks the console who it is: anyone but the invited account, a person who answered by mistake say, and the command gives that sign-in up at the console, keeps nothing and sets nothing up. A command that is the account's already signs in again nowhere. What it keeps is the account's session, as the default console of the OS account.
|
|
258
272
|
3. **It settles the desk**: `--desk <dir>`, else this directory where it holds a `runner.json`, else `desk` in the OS account's home. A desk that is there, with a `runner.json` or an `AGENTS.md`, is left as it is. Else, where the workspace's git host says where a desk is cloned from (`https://github.com/<account>/desk.git` for `github`) and the account keeps the secret `git.token`, which is an account that pushed a desk before, the desk is cloned: `git clone` is run with the token in its environment, answered by a credential helper named in the environment too, for the remote's own origin and no other host, so that the token is on no command line and in no file; a clone that fails stops the setup, and `--new-desk` begins a new desk instead. Otherwise the template is written ([runner.md](runner.md#the-desk)), over no file that is there, its `runner.json` naming the driver of the product found and the browser looked for and found, `"browser": "headless"` or, where `--browser chrome` said so, `"browser": "chrome"`, and `"browser": "none"` where `--no-browser` said that; for a product whose driver starts it with no browser, no `browser` at all, so that the desk does not read as having one. A desk it wrote or cloned is then made a repository where it is none (`git init`) and given, in its own configuration and for the origin of the workspace's git host alone, an empty credential helper followed by one that asks this command for the secret `git.token` (`<runtime> <command> secret git.token --url <origin> --account <login>`): the agent's own pushes are handed the token from its store, and the machine's helpers, a keychain among them, are left out. A desk that was there is given none.
|
|
259
273
|
4. **It writes the service that keeps the runner running**, by the module of the platform, `launchd` on macOS, `systemd-user` on Linux and `task-scheduler` on Windows ([runner.md](runner.md#the-service)): the runner started as this command was, `runner --url <origin> --account <login>`, in the desk. It loads it and looks for half a minute whether the runner is heard from, then says the machine, the operating system and the OS account as the runner said them, or where the runner's own lines are. Where a step of the module may fail and did, lingering on Linux that a system keeps for an administrator, it says what is left to do and goes on. On a platform without a module, and with `--no-service`, it writes none and says how the runner is started by hand: a line for a shell, the desk and the login quoted in it where they hold anything a shell reads as more than a word.
|
|
260
|
-
5. **It hands over.** Where the runner is heard from, it looks for a minute whether a session has begun (`runner.session` of `GET /api/v1/agents/<handle>`), and says: that one has, or that one begins when something wakes the agent; the address of the account's page; the account's
|
|
274
|
+
5. **It hands over.** Where the runner is heard from, it looks for a minute whether a session has begun (`runner.session` of `GET /api/v1/agents/<handle>`), and says: that one has, or that one begins when something wakes the agent; the address of the account's page; a task for the account's setup, `Set up @<handle>`, by its number and its address, where its plate holds one (`GET /api/v1/work`), as it does for an account a console before 0.6.4 made, which wrote one; that the machine's part ends there and the rest is the agent's own; how to tell the agent what changed on the machine afterwards, `console agent wake me`; and what it knows of sleep: on macOS, where the system can be asked (`pmset -g assertions`), that the runner holds the machine awake or that it does not; elsewhere, that the runner asks the system to and where its own lines say whether that holds; with what is left to whoever keeps the machine. On macOS it then reads the settings that leave an agent unheard once nobody is at the machine, as any account may read them and changing none, and says each that stands in the way in a line, with what to change and what the change costs: a sleep when idle and a power failure the machine does not start after (`pmset -g`); a restart the OS account is not logged in after, since its service runs while it is logged in, where FileVault is on (`fdesetup status`), which logs no account in by itself and is given up only at the cost of a disk anyone who takes it reads, or where the one automatic login macOS has is nobody's or another account's (`autoLoginUser` of the login window's preferences), as on a machine several agents share; and, where the account is not logged in by itself, updates of macOS that install themselves and restart for it. A setting that does not answer is not spoken of.
|
|
261
275
|
|
|
262
276
|
`--refresh` derives a machine again: a desk that is there, with a `runner.json` or an `AGENTS.md`, is left as it is, its `AGENTS.md` too, whatever the template says by now, and one that is not is settled as above; the service's files are written again where they changed, and the services are printed as they are now, for the agent to put its own `AGENTS.md` right. It runs none of the commands that load the service and unloads nothing, since it may be running under the runner it would end: what it wrote is read when the service is next loaded. Where the system reads a file only once it is told to and telling it ends nothing, as on Linux and on Windows, a refresh that wrote one tells it ([runner.md](runner.md#the-service)).
|
|
263
277
|
|