diff --git a/AGENTS.md b/AGENTS.md index 09df19e72..927bb9fdc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,7 +47,7 @@ pnpm build # typecheck lib; build vscode extension, Pocket, frame origin, - **`remote-lib-common/`** — Security primitives + remote wire contract shared by `relay`, the Burrow module in `lib`, and the Pocket app (bare ES2022 — no DOM or Node types) - **`dor-lib-common/`** — Cross-platform external-process spawning (`spawnAndCapture`) shared by `dor` and the `lib` host. Despite the parallel names, the two `*-lib-common` packages are unrelated: `remote-lib-common` is remote security/wire, `dor-lib-common` is spawn plumbing. - **`dor-tools/`** — Dor Tools (MIT), the submodule `diffplug/dor-tools` (moving its pin: `docs/specs/dor-tools-suite.md` → Packaging): - - `api/` (`@dor-tools/api`) — The Tool integration protocol (OSC 367) for Tools and their hosts; no runtime dependencies, private until 1.0. + - `api/` (`@dor-tools/api`) — The Tool integration protocol (OSC 367) for Tools and their hosts; no runtime dependencies, on npm at 0.x. - `scaffold/` (`@dor-tools/scaffold`) — Helpers for building a Tool on `api`: the capability server, save relay, and page theme. - `suite/` (`@dor-tools/suite`) — The built-in Tools (`builtin:file` viewer and editors, `builtin:code` source editor, `builtin:folder`), loaded by `dor` from a separate runtime bundle; lib and the hosts import its pure format module. diff --git a/docs/specs/dor-tools-api.md b/docs/specs/dor-tools-api.md index 88028de64..cc548f713 100644 --- a/docs/specs/dor-tools-api.md +++ b/docs/specs/dor-tools-api.md @@ -7,7 +7,7 @@ **Must stay MIT with no runtime dependencies, importing only its own modules**, so a Tool or a third-party host can embed it without FSL code or a transitive install. `dor-tools/api/test/boundary.test.mjs` fails on a declared dependency, a license change, or an import leaving `src`. -**Must remain `private` until the protocol reaches 1.0.** New host capabilities land here, in the host, and in `docs/specs/dor-tool.md` together, one per change, before the first publish; see [Future](#future). +**Must stay below 1.0 until [Future](#future) is done.** New host capabilities land here, in the host, and in `docs/specs/dor-tool.md` together, one per change. | Entry point | Tool side | Host side | |---|---|---| @@ -24,4 +24,4 @@ Source of truth: `dor-tools/api/src/` (a module per entry point); `dor-tools/api - **New host capabilities**, each carrying its wire, library, and host halves: Tool preferences the host stores, Pane header buttons, and the like. - **Theme through the library.** A subscription to the host's iframe theme (`docs/specs/theme.md` → Tool iframe themes), which today reaches Tools only through the proxy shim. -- **Publish.** A host-neutral protocol reference inside the package, the OSC 367 collision sweep (`docs/specs/dor-tool.md` → Open questions), and npm trusted publishing. +- **Publish.** A host-neutral protocol reference inside the package, the OSC 367 collision sweep (`docs/specs/dor-tool.md` → Open questions), and npm trusted publishing; 0.1.0 was published by hand. diff --git a/dor-tools b/dor-tools index 34491bf64..73fb53773 160000 --- a/dor-tools +++ b/dor-tools @@ -1 +1 @@ -Subproject commit 34491bf643413de9b378de7391181fcc783a7b86 +Subproject commit 73fb53773d0c8c43c83a2b6060edb8c2cd75b50c diff --git a/dor/skill-tools.md b/dor/skill-tools.md index c87508a2b..d7020065f 100644 --- a/dor/skill-tools.md +++ b/dor/skill-tools.md @@ -76,7 +76,7 @@ printf '\033]367;serve;{"v":1,"port":%s,"path":"/review?tab=open"}\007' "$PORT" Each `serve` replaces the last whole, so restate every field you want kept, `save` and `dehydrate` included; one without `port` leaves the page where it is. -Every sequence on this page is `ESC ] 367 ;`, a verb, `;`, one JSON object of at most 4,096 UTF-8 bytes, and BEL. Write the same bytes from any language. `@dor-tools/api` encodes them but is not published yet, so a Tool outside the Dormouse repository writes them raw. +Every sequence on this page is `ESC ] 367 ;`, a verb, `;`, one JSON object of at most 4,096 UTF-8 bytes, and BEL. Write the same bytes from any language. `@dor-tools/api` on npm encodes them for a Tool written in JavaScript. ## Talking to the host