Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions docs/specs/dor-tools-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
|---|---|---|
Expand All @@ -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.
2 changes: 1 addition & 1 deletion dor/skill-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading