@skillcdn/console 0.5.3 → 0.6.0

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.
Files changed (65) hide show
  1. package/README.md +18 -14
  2. package/SKILLCDN.md +3 -2
  3. package/dist/cli/cli.d.ts.map +1 -1
  4. package/dist/cli/cli.js +29 -6
  5. package/dist/cli/cli.js.map +1 -1
  6. package/dist/cli/pack.d.ts +8 -0
  7. package/dist/cli/pack.d.ts.map +1 -1
  8. package/dist/cli/pack.js +12 -1
  9. package/dist/cli/pack.js.map +1 -1
  10. package/dist/compat.d.ts +1 -1
  11. package/dist/compat.js +2 -2
  12. package/dist/components/home.d.ts.map +1 -1
  13. package/dist/components/home.js +40 -8
  14. package/dist/components/home.js.map +1 -1
  15. package/dist/components/popover.d.ts +24 -0
  16. package/dist/components/popover.d.ts.map +1 -0
  17. package/dist/components/popover.js +127 -0
  18. package/dist/components/popover.js.map +1 -0
  19. package/dist/components/shell.d.ts.map +1 -1
  20. package/dist/components/shell.js +5 -106
  21. package/dist/components/shell.js.map +1 -1
  22. package/dist/console.css +83 -45
  23. package/dist/i18n/en.d.ts +2 -0
  24. package/dist/i18n/en.d.ts.map +1 -1
  25. package/dist/i18n/en.js +2 -0
  26. package/dist/i18n/en.js.map +1 -1
  27. package/dist/i18n/ko.d.ts.map +1 -1
  28. package/dist/i18n/ko.js +1 -0
  29. package/dist/i18n/ko.js.map +1 -1
  30. package/dist/plugin-web.d.ts +1 -0
  31. package/dist/plugin-web.d.ts.map +1 -1
  32. package/dist/plugin-web.js +3 -1
  33. package/dist/plugin-web.js.map +1 -1
  34. package/dist/plugin.d.ts +1 -0
  35. package/dist/plugin.d.ts.map +1 -1
  36. package/dist/plugin.js +4 -0
  37. package/dist/plugin.js.map +1 -1
  38. package/dist/schemas.d.ts +15 -0
  39. package/dist/schemas.d.ts.map +1 -1
  40. package/docs/specs/cli.md +3 -3
  41. package/docs/specs/plugins.md +18 -8
  42. package/docs/specs/rest.md +1 -1
  43. package/docs/specs/runner.md +1 -1
  44. package/docs/start.md +48 -0
  45. package/package.json +4 -4
  46. package/skills/building-a-plugin/SKILL.md +2 -2
  47. package/skills/working-the-board/SKILL.md +1 -1
  48. package/skills/working-the-board/references/the-pack.md +1 -1
  49. package/src/cli/cli.ts +33 -7
  50. package/src/cli/pack.ts +20 -1
  51. package/src/compat.ts +2 -2
  52. package/src/components/home.tsx +108 -18
  53. package/src/components/popover.ts +145 -0
  54. package/src/components/shell.tsx +5 -112
  55. package/src/i18n/en.ts +2 -0
  56. package/src/i18n/ko.ts +1 -0
  57. package/src/plugin-web.ts +3 -1
  58. package/src/plugin.ts +4 -0
  59. package/src/styles/README.md +1 -1
  60. package/src/styles/pages/home.css +32 -5
  61. package/src/styles/parts/button.css +8 -4
  62. package/src/styles/parts/detail.css +3 -13
  63. package/src/styles/parts/menu.css +33 -0
  64. package/src/styles/parts/page.css +6 -16
  65. package/src/styles/parts/tabs.css +1 -7
package/README.md CHANGED
@@ -2,26 +2,29 @@
2
2
  <a href="https://skillcdn.ai"><img alt="SkillCDN" src="https://raw.githubusercontent.com/skillcdn/skillcdn/main/packages/brand/symbol.svg" width="72"></a>
3
3
  </p>
4
4
  <h1 align="center">@skillcdn/console</h1>
5
- <p align="center">What a custom SkillCDN console is built from: the API client and schemas, the components, the composition of the default console, and the <code>console</code> command agents work the board with.</p>
5
+ <p align="center">What a custom SkillCDN console is built from: the API client and schemas, the components, the composition of the default console, the <code>console</code> command a person's agent and an agent account work the board with, and the runner that keeps an agent account at work on its machine.</p>
6
6
  <p align="center">
7
7
  <a href="https://github.com/skillcdn/console/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/skillcdn/console/actions/workflows/ci.yml/badge.svg?branch=main"></a>
8
8
  <a href="https://github.com/skillcdn/console/blob/main/LICENSE.md"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-3a6dd4"></a>
9
9
  </p>
10
10
 
11
- **Pre-1.0.** Published from `main` by the release workflow, from changesets, through the registry's trusted publishing ([ADR-0007](https://github.com/skillcdn/console/blob/main/docs/adr/0007-the-package-is-published-through-trusted-publishing-and-versioned-on-the-core-line.md)). The version's major and minor are SkillCDN's, the one version of the main repository's packages the console is built on, and its patch the console's own: `@skillcdn/console` 0.5.x is the console for SkillCDN 0.5, and the changelog says what each release changed, first as `Breaking:` where it changed what existed ([ADR-0034](https://github.com/skillcdn/console/blob/main/docs/adr/0034-the-package-is-versioned-on-skillcdns-line-one-line-at-a-time-with-a-patch-of-its-own.md)). All three layers are here, and the command: the contract of the REST API, the components, the composition of the default console, and `console`, what an agent works the board with.
11
+ **Pre-1.0.** Published from `main` by the release workflow, from changesets, through the registry's trusted publishing ([ADR-0007](https://github.com/skillcdn/console/blob/main/docs/adr/0007-the-package-is-published-through-trusted-publishing-and-versioned-on-the-core-line.md)). The version's major and minor are SkillCDN's, the one version of the main repository's packages the console is built on, and its patch the console's own: `@skillcdn/console` 0.6.x is the console for SkillCDN 0.6, and the changelog says what each release changed, first as `Breaking:` where it changed what existed ([ADR-0034](https://github.com/skillcdn/console/blob/main/docs/adr/0034-the-package-is-versioned-on-skillcdns-line-one-line-at-a-time-with-a-patch-of-its-own.md)). All three layers are here, and the command: the contract of the REST API, the components, the composition of the default console, and `console`, what an agent works the board with.
12
12
 
13
13
  ## What it exports
14
14
 
15
- | Layer | What it is for | Status |
16
- |---|---|---|
17
- | The schemas and the client of the console's REST API | A custom UI talks to any console with types, and the contract has one source, shared with the server in `apps/console`. Also on its own at `@skillcdn/console/api`, which brings no React with it, and carries the format of a desk's records ([docs/specs/records.md](https://github.com/skillcdn/console/blob/main/docs/specs/records.md)): `recordsItemsSchema` and the rest, with `readRecords` and `checkRecords`. | exported |
18
- | The `console` command | The agent's side of the console: a thin client of the REST API, shipped as the package's `bin`, which a person signs in once with a token. Also as a function at `@skillcdn/console/cli`. | exported |
19
- | The components: the board, a task, a run, a decision, the live feed | Each takes its data as props and nothing from the network. | exported |
20
- | The charts | A figure, a list of bars, a chart over time, a sparkline, a share and a table of figures, parts of the console's look for a page of your own and a plugin's: the components here, and the measures they are placed by on their own at `@skillcdn/console/charts`, which depends on nothing. | exported |
21
- | The icon pack | Some eighty glyphs drawn on one grid, for the console's pages, a page of your own, a plugin's and a prototype: `Icon` draws one by its name, `IconPicker` chooses one, and the glyphs as data with `iconElement`, for a bundle without React, are on their own at `@skillcdn/console/icons`, which depends on nothing. | exported |
22
- | `createConsole(config)` | The default console assembled from the components, with the places a team may replace named. The UI the image serves is this, with the default configuration. | exported |
23
- | The serving of a build | `@skillcdn/console/web`: the files of a build, the page for every other path, under one policy. What the image serves the default UI with, and what `console serve` serves a console of your own with. Node only. | exported |
24
- | The contract of a plugin | `@skillcdn/console/plugin`: the manifest's schema, `definePlugin` and its definers, the types of `ctx`; `@skillcdn/console/plugin/web`: the frame's side of the bridge; `@skillcdn/console/plugin/testing`: a `ctx` for a plugin's tests; and `console-plugin`, the second `bin`, which writes a plugin from a template and checks one as a console would. A console runs them, an agent works one through `console plugin <key>`, and a person sees its pages in frames the console's page embeds, `PluginFrame` here, on the front page's `HomeGrid` among the projects, with the plugins' settings on `/settings/plugins` ([docs/specs/plugins.md](https://github.com/skillcdn/console/blob/main/docs/specs/plugins.md)). | exported |
15
+ | Entry point | What it is for |
16
+ |---|---|
17
+ | `@skillcdn/console` | What a page is built from. The components, the board, a task, a run, a decision, the live feed and the rest: each takes its data as props and nothing from the network. `createConsole(config)`: the default console assembled from the components, with the places a team may replace named. The UI the image serves is this, with the default configuration. With them the charts' and the icon pack's components, and everything of `/api` and `/charts` again, so that a page imports from one place. |
18
+ | `@skillcdn/console/api` | The schemas and the client of the console's REST API. A custom UI talks to any console with types, and the contract has one source, shared with the server in `apps/console`. It brings no React with it, and carries the format of a desk's records ([docs/specs/records.md](https://github.com/skillcdn/console/blob/main/docs/specs/records.md)): `recordsItemsSchema` and the rest, with `readRecords` and `checkRecords`. |
19
+ | `@skillcdn/console/charts` | A figure, a list of bars, a chart over time, a sparkline, a share and a table of figures, parts of the console's look for a page of your own and a plugin's: the components are in `@skillcdn/console`, and the measures they are placed by are here on their own, depending on nothing. |
20
+ | `@skillcdn/console/icons` | Some eighty glyphs drawn on one grid, for the console's pages, a page of your own, a plugin's and a prototype: `Icon` draws one by its name and `IconPicker` chooses one, both in `@skillcdn/console`, and the glyphs as data with `iconElement`, for a bundle without React, are here on their own, depending on nothing. |
21
+ | `@skillcdn/console/cli`, and the `console` bin | The agent's side of the console: a thin client of the REST API, shipped as the package's `bin`, which a person signs in once with a token. The entry point is the command as a function, `runCli(argv, io)`. |
22
+ | `@skillcdn/console/runner` | The runner of an agent account ([docs/specs/runner.md](https://github.com/skillcdn/console/blob/main/docs/specs/runner.md)), which `console runner` is made of: the drivers of the agent products, the wake sources, the service modules and their registries, for whoever builds on them, a console of one's own that registers a driver for another product or a test that runs one against a console. Node only. |
23
+ | `@skillcdn/console/web` | The serving of a build: the files of a build, the page for every other path, under one policy. What the image serves the default UI with, and what `console serve` serves a console of your own with. Node only. |
24
+ | `@skillcdn/console/plugin`, `/plugin/web`, `/plugin/web/react`, `/plugin/testing`, and the `console-plugin` bin | The contract of a plugin. `@skillcdn/console/plugin`: the manifest's schema, `definePlugin` and its definers, the types of `ctx`; `@skillcdn/console/plugin/web`: the frame's side of the bridge, and `/plugin/web/react` the same as a hook, `usePlugin()`; `@skillcdn/console/plugin/testing`: a `ctx` for a plugin's tests; and `console-plugin`, the second `bin`, which writes a plugin from a template and checks one as a console would. A console runs them, an agent works one through `console plugin <key>`, and a person sees its pages in frames the console's page embeds, `PluginFrame` of `@skillcdn/console`, on the front page's `HomeGrid` among the projects, with the plugins' settings on `/settings/plugins` ([docs/specs/plugins.md](https://github.com/skillcdn/console/blob/main/docs/specs/plugins.md)). |
25
+ | `@skillcdn/console/console.css` | The stylesheet of the pages: the tokens, a small reset and one class per block, which a console of your own imports once and a plugin's frame is handed. |
26
+
27
+ The table names the entry points, which is where to start, and not every export: a constant, a helper or a type beside them is described where it is declared, in its doc comment, and the sections below name the ones a console of your own begins with.
25
28
 
26
29
  ### The API layer
27
30
 
@@ -65,6 +68,7 @@ console serve dist # a console of your own, built
65
68
  - **The project's documents** are the agent's to read and write: `docs`, `doc`, `write`, `attach`, `archive` and `restore`, by path; a link in a body to a page's path refers to the page.
66
69
  - **Every command on the board works in one project:** `--project <key>`, else `CONSOLE_PROJECT`, else what `console use <key>` wrote to `.skillcdn-console.json` in the working directory or one above it: the project and the console's address, never a token, a file meant to be committed in a private repository. `console whoami` asks the console for that project and says what named it. `console projects` lists the projects the person may work in.
67
70
  - **`console serve [<dir>] [--port <n>] [--records <dir>]`** is for a person: it serves [a console of your own](#a-console-of-your-own) from your machine, the build in `<dir>` at `http://127.0.0.1:11197/`, and carries everything under `/api/` to the console the command is signed in to, with your token, which the pages never see ([ADR-0014](https://github.com/skillcdn/console/blob/main/docs/adr/0014-a-persons-own-console-is-served-from-their-machine-by-the-command.md)). With `--records`, what a desk keeps under that directory is served at `/records/` beside the build, read at each request, for the desk's pages ([ADR-0117](https://github.com/skillcdn/console/blob/main/docs/adr/0117-a-desk-keeps-records-of-what-its-member-made-as-files-the-desks-pages-read.md)). The loopback only; a request from another site's page is refused, but for the files of a plugin's frame, the plugin's bundle and the console's stylesheet and faces for frames: a frame is sandboxed, its origin no page's, and the console answers those files to anyone, so the command carries a `GET` of one whatever page asks and with no token, and a plugin's pages and widgets are drawn as on the console. Without a directory only the API is served, for a development server.
71
+ - **Agent accounts** ([ADR-0084](https://github.com/skillcdn/console/blob/main/docs/adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md)) are made, set up and supervised with the same command ([its commands](https://github.com/skillcdn/console/blob/main/docs/specs/cli.md#commands-for-agent-accounts)): `agents`, `agent new` and `agent invite` for an administrator; on the agent's own machine `agent setup`, the one line an invitation carries, and then `console runner`, which a service of the machine keeps running; `agent tell`, `interrupt`, `stop`, `restart`, `reset`, `wake` and `set` for its supervisors, with `agent signals` for the record of what it was sent; and for the account itself `secrets` and `secret <name>`, its own store, and `agent wake me`, a wake now or at a moment to come.
68
72
  - **The guide of an agent account's setup** ([ADR-0088](https://github.com/skillcdn/console/blob/main/docs/adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)) is made by `setupGuideOf` from what an invitation's code opens (`client.agentSetup(code)`), and printed by `setupGuideText`; `SetupGuideView` shows it, `AgentInvitationPanel` is the invitation under an account, and `setupCommandOf` and `setupSentenceOf` spell the command and the one line said on the machine. The default console shows the guide at `/setup/<code>` (`setupHref`) to a browser that is signed in nowhere.
69
73
  - **`console desk [<directory>] [--web]`** is for a person: it writes a desk of your own, the folder `desk` your agent begins in, and with `--web` the shell of [your desk's pages](#a-desks-pages); `console desk check` says whether the records a desk keeps read right.
70
74
  - **`@skillcdn/console/runner`** is what `console runner` is made of ([docs/specs/runner.md](https://github.com/skillcdn/console/blob/main/docs/specs/runner.md)), for a console of one's own that drives another product or a test that runs a runner against a console: `createRunner(options)`, which takes a `ConsoleClient` on the account's command, a `Driver`, its `runner.json` and what it needs of the machine; the `Driver`, `DriverSession` and `DriverEvent` types a driver is written to, `createClaudeDriver`, `createCodexDriver` and `createSpawn`; `createRunnerModules` and `ownRunnerModules`, the four registries a module is known by; `composeSignals`, `headerOf` and `introOf`, how a signal reaches the agent; `redactorOf`, which takes the values of a secret store out of a text in the encodings they are carried in, and `cutShown`, which cuts a text to a length once they are out, what a session hands its driver as `cut` so that no part of a secret stands where a driver cut a text, with `cutShownEnd`, which keeps the end of one the same way, handed as `cutEnd`, and `errorsShown`, which shows the end of what a product wrote on its standard error through it (`plainCut` and `plainCutEnd` where a driver is handed neither); `parseRunnerConfig`; `launchd`, `systemdUser` and `taskScheduler`, the services that keep a runner running on macOS, on Linux and on Windows, each as a plan of what to write and to run; and `deskFiles`, the template of an agent account's desk, with `deskServicesOf` for what it says of the workspace's services, `personDeskFiles`, the template of a person's, and `DESK_FOLDER`, what a desk's folder is called. Both templates are the least: the instructions and a structure, and no form of a thing to keep.
@@ -82,7 +86,7 @@ npm run check # console-plugin check: what a conso
82
86
  A plugin is one npm package a console installs into its image and an administrator turns on ([docs/specs/plugins.md](https://github.com/skillcdn/console/blob/main/docs/specs/plugins.md) is the contract, every field and bound; [ADR-0049](https://github.com/skillcdn/console/blob/main/docs/adr/0049-a-plugin-is-an-npm-package-installed-into-the-image-and-enabled-by-an-administrator.md) to [ADR-0054](https://github.com/skillcdn/console/blob/main/docs/adr/0054-a-plugins-pages-run-in-a-sandboxed-frame-and-speak-only-to-their-plugin.md) the decisions). This package is its `devDependency`, for the types and the command; nothing of it is imported at runtime.
83
87
 
84
88
  - **`@skillcdn/console/plugin`**, for the server module: `definePlugin({ collections, commands, queries, endpoints, on, jobs, upgrades, api, onEnable, onDisable })` is the default export of `dist/server/index.js`, built with everything it imports bundled in. `defineCollection(name, { schema, indexes, ... })` declares the records the console keeps, with a zod schema (`z` is re-exported); `defineCommand({ about, args, roles, run })` and `defineQuery(...)` are what agents run through `console plugin <key> <command>`, their `args` from `arg.text`, `arg.day`, `arg.number`, `arg.boolean`, `arg.enum`, `arg.person`, `arg.project`, `arg.record`, `arg.list` and `arg.file`, typed in `run(ctx, args)`; `defineEndpoint(...)` takes a request of a person's or a webhook's. Everything plugin code does to the console is a call on `ctx` (`PluginContext`): `ctx.records(collection)`, `ctx.console.*`, `ctx.events.emit`, `ctx.fetch`, `ctx.secrets`, `ctx.plugins`, `ctx.log`; the console refuses what the manifest did not ask with a `PluginRefusal`, and a plugin refuses in its own words with `PluginError`. The manifest, `console-plugin.json`, is read with `parsePluginManifest`; `RESERVED_PLUGIN_KEYS`, `PLUGIN_CAPABILITIES` with `capabilityWords`, the bounds (`MAX_PLUGIN_RECORD_BYTES`, `PLUGIN_COMMAND_MS`, ...) and the refusals (`PLUGIN_REFUSALS`) are the same words the console goes by. `describePlugin(definition)` is the definition as data, what the host reads and what `check` holds to the manifest.
85
- - **`@skillcdn/console/plugin/web`**, for the web bundle: `connect()` in the frame the console serves says `ready`, receives `init` (who looks, at what, the console's design tokens, applied to `:root`), and answers `{ context, command, query, records, files, navigate, download, setTitle, onEvent, onTheme, onPath }`, each performed by the console's page under the plugin's own routes and nothing else. It depends on nothing; `@skillcdn/console/plugin/web/react` adds `usePlugin()`. A bundle imports nothing from elsewhere and never reaches for `fetch`, which `check` holds it to.
89
+ - **`@skillcdn/console/plugin/web`**, for the web bundle: `connect()` in the frame the console serves says `ready`, receives `init` (who looks, at what, the console's design tokens, applied to `:root`), and answers `{ context, command, query, records, files, navigate, download, setTitle, onEvent, onTheme, onPath }`, each performed by the console's page under the plugin's own routes and nothing else. It depends on nothing; `@skillcdn/console/plugin/web/react` adds `usePlugin()`. `asObject`, `asSubject` and `asWay`, exported here and from `@skillcdn/console/plugin`, write a Korean word with the particle its ending takes, as the console's own Korean does, in place of both forms. A bundle imports nothing from elsewhere and never reaches for `fetch`, which `check` holds it to.
86
90
  - **`@skillcdn/console/plugin/testing`**: `createTestContext({ collections, plugin, caller, console, secrets, ... })` is a `ctx` for the plugin's own tests, records in memory and checked as the console checks them, the console refusing whatever the test did not provide, `emitted` and `logged` to assert on.
87
91
  - **`console-plugin`**: `init <dir> --key <key> [--name <name>] [--console <dependency>]` writes a plugin from the template this package ships (`template/plugin`), what `examples/plugin-hello` in the repository is; `check [<dir>]` reads a built plugin as a console would: the manifest, `package.json` (a permissive license, no install scripts, `files` that ship what runs), the server module loaded in a hardened thread, as the host loads one, and held to the manifest, the web bundle self-contained, its own classes prefixed `pl-<key>-` and the console's it uses the parts of the catalogue (`src/styles/README.md` here, which the command reads: a class of one of the console's own pages is refused, in the entry, a chunk or the stylesheet), the skills in the SkillCDN Format, the migrations. Node.js 24 or newer.
88
92
 
@@ -223,7 +227,7 @@ Every one of them is built from the parts of `console.css` and nothing else. On
223
227
 
224
228
  ### The skills, for an agent
225
229
 
226
- What an agent reads to work the board, to plan and set it up, to build a console, to write a plugin, to deploy a console, to run an agent account or to keep a desk is in the console's repository as skills in the SkillCDN Format ([ADR-0015](https://github.com/skillcdn/console/blob/main/docs/adr/0015-the-consoles-skills-live-in-this-repository-in-the-skillcdn-format-and-the-package-carries-them.md)), served by SkillCDN at `skillcdn.ai/gh/skillcdn/console` with the architecture, the decisions and the specifications, and shipped in this package: `skills/working-the-board/SKILL.md`, `skills/planning-the-board/SKILL.md`, `skills/building-a-console/SKILL.md`, `skills/building-a-plugin/SKILL.md`, `skills/deploying-a-console/SKILL.md`, `skills/running-an-agent/SKILL.md` and `skills/keeping-a-desk/SKILL.md`, each with its references, the deploying skill with its scripts, their manifest `SKILLCDN.md` with the rules they share, the specifications they point to under `docs/specs/` (`rest.md`, `cli.md`), and the sources under `src/` without the tests, so that `npm install` brings what an agent needs to read, at the version installed. Point an agent at them in `node_modules/@skillcdn/console/`, or copy a skill's folder into the agent's own skills. A project of a console may name that address as its skills address, and an organization's own skill for its console adds its rules and links these. The skills are maps: what they name, this README, the types and the specifications say in full.
230
+ What an agent reads to work the board, to plan and set it up, to build a console, to write a plugin, to deploy a console, to run an agent account or to keep a desk is in the console's repository as skills in the SkillCDN Format ([ADR-0015](https://github.com/skillcdn/console/blob/main/docs/adr/0015-the-consoles-skills-live-in-this-repository-in-the-skillcdn-format-and-the-package-carries-them.md)), served by SkillCDN at `skillcdn.ai/gh/skillcdn/console` with the architecture, the decisions and the specifications, and shipped in this package: `skills/working-the-board/SKILL.md`, `skills/planning-the-board/SKILL.md`, `skills/building-a-console/SKILL.md`, `skills/building-a-plugin/SKILL.md`, `skills/deploying-a-console/SKILL.md`, `skills/running-an-agent/SKILL.md` and `skills/keeping-a-desk/SKILL.md`, each with its references, the deploying skill with its scripts, their manifest `SKILLCDN.md` with the rules they share, the specifications they point to under `docs/specs/` (`rest.md`, `cli.md`, `plugins.md`, `runner.md`, `records.md`), and the sources under `src/` without the tests, so that `npm install` brings what an agent needs to read, at the version installed. Point an agent at them in `node_modules/@skillcdn/console/`, or copy a skill's folder into the agent's own skills. A project of a console may name that address as its skills address, and an organization's own skill for its console adds its rules and links these. The skills are maps: what they name, this README, the types and the specifications say in full.
227
231
 
228
232
  ## Rules
229
233
 
package/SKILLCDN.md CHANGED
@@ -1,14 +1,15 @@
1
1
  ---
2
2
  name: SkillCDN Console
3
- description: "SkillCDN Console, the board where people decide and AI agents work: tasks, runs, decisions. Connect it to your AI and it guides you from setup to everyday use."
3
+ description: "Run a team of AI agents beside your people, on one board. Agent accounts take tasks, report, hand in and ask; people decide. Connect it to your AI and it guides you from setup to everyday use."
4
4
  license: MIT
5
5
  language: en
6
6
  translations:
7
7
  ko:
8
8
  name: SkillCDN 콘솔
9
- description: "SkillCDN 콘솔: 사람은 정하고 AI 에이전트는 일하는 작업 보드입니다. 작업과 런과 결정이 한곳에 있고, AI에 연결하면 설치부터 매일 쓰는 법까지 콘솔이 안내합니다."
9
+ description: "사람과 AI 에이전트가 한 보드에서 함께 일하는 팀을 꾸립니다. 에이전트 계정이 작업을 맡아 보고하고 결과를 내고 묻고, 사람은 정합니다. AI에 연결하면 설치부터 매일 쓰는 법까지 콘솔이 안내합니다."
10
10
  documents:
11
11
  - docs
12
+ start: docs/start.md
12
13
  exclude:
13
14
  - .claude
14
15
  - docs/adr/0000-template.md
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":"AAmBA,OAAO,EAIL,KAAK,SAAS,EAKf,MAAM,cAAc,CAAC;AA8BtB,OAAO,EAAiD,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAYjG,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,SAAS,EAEf,MAAM,qBAAqB,CAAC;AAiD7B,OAAO,EACL,KAAK,eAAe,EAgBrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,gBAAgB,CAAC;AAwDxB,OAAO,EAAmB,KAAK,OAAO,EAAoB,MAAM,cAAc,CAAC;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,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3B,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EAC7E,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,GAAG,EAAE,IAAI,GACR,IAAI,GAAG,SAAS,CAmClB;AAglED,yFAAyF;AACzF,wBAAsB,MAAM,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CA8DhF"}
package/dist/cli/cli.js CHANGED
@@ -1556,21 +1556,33 @@ async function readSkill(io, session, reader, values, positionals, command, owne
1556
1556
  }
1557
1557
  // The skill, its rules first, as load_skill lays them out: whole, or the part that begins at
1558
1558
  // the cursor, ending with the command that reads the next, asked as this one was.
1559
- let continues = false;
1559
+ // The library asks for that line of every run of pages it tries, the runs it goes on from
1560
+ // among them, so a line was asked for of a skill that is then printed to its end: the part
1561
+ // goes on only where what is printed ends with the line.
1562
+ const offered = [];
1560
1563
  const loaded = await readThrough(io, session, owner, pack, { read: "skill", path: wanted.path, cursor }, {
1561
1564
  words: toolWords,
1562
1565
  // Spelled so that bash and PowerShell run it as it is; where a word has no such spelling,
1563
1566
  // the command that was run is run again, with the cursor, and the line says why.
1564
1567
  nextPart: (next) => {
1565
- continues = true;
1566
- return (commandLine(command, [given, "--cursor", next, ...again]) ??
1567
- `the command you ran, with --cursor ${commandWord(next) ?? JSON.stringify(next)} in place of any it had, each word quoted for your shell. ${NO_LINE_TO_RUN}`);
1568
+ const line = commandLine(command, [given, "--cursor", next, ...again]) ??
1569
+ `the command you ran, with --cursor ${commandWord(next) ?? JSON.stringify(next)} in place of any it had, each word quoted for your shell. ${NO_LINE_TO_RUN}`;
1570
+ offered.push({ cursor: next, line });
1571
+ return line;
1568
1572
  },
1569
1573
  });
1574
+ const goesOn = offered.findLast((one) => loaded.text.endsWith(one.line));
1570
1575
  // A part that is not the last ends with the console's own words after the library's line: a
1571
1576
  // fresh agent read one part of four, saw that the skill continued, and planned from that part,
1572
- // since "before using it" did not read as now to a session that meant only to plan.
1573
- say(jsonOfRead(session, pack, loaded), () => continues ? `${loaded.text}\n${PART_ENDS_HERE}` : loaded.text);
1577
+ // since "before using it" did not read as now to a session that meant only to plan. The last
1578
+ // part of a skill read in parts says that it is the last, so that the end is said and not
1579
+ // only missed.
1580
+ const closing = goesOn !== undefined
1581
+ ? partEndsHere(pack.pagesAfter(goesOn.cursor))
1582
+ : cursor !== undefined && pack.skillEnded()
1583
+ ? SKILL_ENDS_HERE
1584
+ : undefined;
1585
+ say(jsonOfRead(session, pack, loaded), () => closing === undefined ? loaded.text : `${loaded.text}\n${closing}`);
1574
1586
  return EXIT.ok;
1575
1587
  }
1576
1588
  /**
@@ -1578,6 +1590,17 @@ async function readSkill(io, session, reader, values, positionals, command, owne
1578
1590
  * what the rest holds, and that the command above is run now.
1579
1591
  */
1580
1592
  const PART_ENDS_HERE = "This part stops in the middle of the skill: its later steps, its checkpoints and its rules are in the parts that follow, and nothing above is complete without them. Run that command now, before a plan, an answer or any other step, and each next one, until a part ends without these lines.";
1593
+ /**
1594
+ * The same with how far the skill goes on before it, where the pack counts the pages left
1595
+ * (SkillCDN 0.6.1): a reader told how many pages follow reads a skill to its end far more often
1596
+ * than one told only that it continues. A part is a run of pages, so the count is the pack's
1597
+ * own, of pages, and falls from part to part.
1598
+ */
1599
+ const partEndsHere = (left) => left === undefined || left < 1
1600
+ ? PART_ENDS_HERE
1601
+ : `${left} more ${left === 1 ? "page" : "pages"} of the skill ${left === 1 ? "follows" : "follow"} this part. ${PART_ENDS_HERE}`;
1602
+ /** What the last part of a skill read in parts ends with. */
1603
+ const SKILL_ENDS_HERE = "The skill is complete: this was its last part.";
1581
1604
  const skill = async (args, io) => {
1582
1605
  const { values, positionals } = parse(args, SKILL_OPTIONS);
1583
1606
  const session = await open(io, values);