@plurnk/plurnk-execs 1.0.4 β†’ 1.0.6

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 CHANGED
@@ -21,7 +21,7 @@ Ship an executor by publishing a package β€” **under any scope** (`@acme/whateve
21
21
  {
22
22
  "name": "cobol",
23
23
  "glyph": "πŸ—„",
24
- "example": "EXEC[cobol]:DISPLAY 'HI'.:EXEC",
24
+ "example": "<<EXEC[cobol]:DISPLAY 'HI'.:EXEC",
25
25
  "documentation": "# cobol\n\nGnuCOBOL `cobc -xj`. Fixed-format source; the body is one program…"
26
26
  }
27
27
  ]
@@ -42,22 +42,22 @@ The framework instantiates **one executor per tag**, injecting `{ runtime, glyph
42
42
  - `probe(signal?)` *(optional)* β€” `{ available, detail? }`; defaults to available. Override when you depend on an external binary or config (the `detail` is model-facing on a 501). If you spawn a child (or open a connection) to check, hand it `signal` so a resolved/timed-out probe reaps it β€” no stray write EPIPEs after teardown (plurnk-execs#16).
43
43
  - `effect(target)` *(optional)* β€” `"pure" | "read" | "host"`; the consumer maps it to its proposal policy (host β†’ propose, read/pure β†’ auto-run inline). Classify the **target only**, never the command. Defaults to `host` (the safe end).
44
44
 
45
- ### 3. What `run` receives (`ExecArgs`) β€” sinks, never the substrate
45
+ ### 3. What `worker` receives (`ExecArgs`) β€” sinks, never the substrate
46
46
 
47
- `{ runtime, command, cwd, target, env, signal, write(channel, chunk, mimetype?), setState(channel, state), emit(event) }`. The executor gets sinks and honors `signal` β€” never the db, subscriptions, or wake machinery (those stay in the consumer). **`cwd`** is the session workspace (the process working directory); **`target`** is the parsed EXEC `(target)` slot β€” a referenced resource you interpret **per your tool's CLI**: a *data* runtime reads it as input with `command` as the program (jq `(file):filter`, sqlite `(db):SQL`); an *executable* runtime runs it as the program with `command` as its **stdin** (sh `(cmdline):stdin`, python `(script):stdin`). Resolved relative to `cwd`, `null` when the op names none (plurnk-execs#15). `write`'s optional `mimetype` stamps the channel with the real per-call output type. **`env`**, when the consumer scopes it, is exactly the environment a spawned child should see (the host's own secrets already dropped β€” never inherit `process.env` for model-run children yourself). Stay stateless across runs beyond your construction metadata.
47
+ `{ runtime, command, cwd, target, env, signal, write(channel, chunk, mimetype?), setState(channel, state), emit(event) }`. The executor gets sinks and honors `signal` β€” never the db, subscriptions, or wake machinery (those stay in the consumer). **`cwd`** is the workspace workspace (the process working directory); **`target`** is the parsed EXEC `(target)` slot β€” a referenced resource you interpret **per your tool's CLI**: a *data* runtime reads it as input with `command` as the program (jq `(file):filter`, sqlite `(db):SQL`); an *executable* runtime runs it as the program with `command` as its **stdin** (sh `(cmdline):stdin`, python `(script):stdin`). Resolved relative to `cwd`, `null` when the op names none (plurnk-execs#15). `write`'s optional `mimetype` stamps the channel with the real per-call output type. **`env`**, when the consumer scopes it, is exactly the environment a spawned child should see (the host's own secrets already dropped β€” never inherit `process.env` for model-run children yourself). Stay stateless across runs beyond your construction metadata.
48
48
 
49
49
  ### How the model sees your tag
50
50
 
51
51
  Your tag documents itself to the model at two altitudes β€” you provide the content, the consumer decides how it reaches the model:
52
52
 
53
- - **`example`** β€” one line, the always-on form. The model uses it to reach for a simple tag without reading anything more. Store it **bare** (`EXEC[tag]:…:EXEC`). Keep it to a single line β€” it's surfaced per available tag, so it's token-sensitive.
53
+ - **`example`** β€” one line, the always-on form. The model uses it to reach for a simple tag without reading anything more. Store it as the **complete `<<`-delimited op** (`<<EXEC[tag]:…:EXEC`) β€” the consumer renders it verbatim, so an example missing the `<<` opener teaches the model a malformed op. Keep it to a single line β€” it's surfaced per available tag, so it's token-sensitive.
54
54
  - **`documentation`** β€” full markdown, depth on demand. The flags, modes, and gotchas the one-liner can't carry (sqlite's `:memory:`-vs-file, jq's `$ENV`, git's tokenized argv). Optional β€” provide it for non-trivial tags; the consumer can still derive a baseline from the rest of your registry entry (example, channels, effect, availability) when you don't.
55
55
 
56
56
  Declare the two and a third-party tag gets the same self-documenting surface the first-party tags do. **How** the consumer renders the one-liner and serves the docs on demand is plurnk-service's concern, not this contract's β€” execs owns the two fields, the consumer owns the wiring.
57
57
 
58
58
  ## Discovery & trust
59
59
 
60
- `discover(options?)` scans **every installed package** under `<cwd>/node_modules` β€” scope-agnostic β€” for `plurnk.kind === "exec"`, returning `{ registry, skipped, disabled }`.
60
+ `discover(options?)` scans **every installed package** under the nearest `node_modules` (walking up from `cwd` for workspace hoisting) β€” scope-agnostic β€” for `plurnk.kind === "exec"`, returning `{ registry, skipped, disabled }`.
61
61
 
62
62
  - **Tag collisions are fail-hard.** Two packages claiming the same tag throws at discovery, naming both β€” deliberately stricter than plurnk-mimetypes' last-wins. A runtime tag is an executable dispatch key, so a third party silently shadowing `python` is exactly the failure we refuse to let ship quietly; the operator resolves it.
63
63
  - **Trust gate.** `discover()` honors **`PLURNK_PLUGINS_TRUSTED_ONLY`** (host posture, plurnk-service#229): unset/`""`/`0` β†’ every package registers (default, no regression); any value β†’ `@plurnk/*` always trusted plus a comma-separated allowlist (`1` = first-party only). An untrusted package is discovered but **not** registered and returned in `Discovery.skipped` for the consumer to note β€” never a crash.
@@ -68,10 +68,10 @@ Declare the two and a third-party tag gets the same self-documenting surface the
68
68
  - `BaseExecutor` β€” abstract base: `channels`, `run(args)`, optional `probe()` / `effect(target)`.
69
69
  - `SubprocessExecutor` β€” concrete base for subprocess runtimes; override `spawnArgs()` (and `binary`). Streaming + process-group abort + env scoping + exit code, inherited.
70
70
  - `discover(options?)` β€” the scope-agnostic registry scan (trust-gated + runtime-policy-gated, fail-hard on collision).
71
- - `Policy` β€” the runtime enable/disable resolver (SPEC Β§3.3): `Policy.isEnabled(tag, env?)`, `Policy.enabledAcross(tag, layers)`. Same parser the daemon and the consumer's per-session client layer share.
71
+ - `Policy` β€” the runtime enable/disable resolver (SPEC Β§3.3): `Policy.isEnabled(tag, env?)`, `Policy.enabledAcross(tag, layers)`. Same parser the daemon and the consumer's per-workspace client layer share.
72
72
  - Contract types: `ExecArgs`, `ExecResult`, `ChannelDecl`, `ChannelState`, `ExecutorMetadata`, `RuntimeAvailability`, `Effect`, `ExecInfo`, `ExecRegistry`, `Discovery`, `DiscoverOptions`.
73
73
  - `TelemetryEvent`, `ContentOffset`, `LogCoordinate` β€” the `emit` sink's payload (mirror of grammar's telemetry envelope).
74
- - `resolveRuntime`, `isKnownRuntime`, `KNOWN_RUNTIMES`, `SpawnArgs`, `RuntimeResolver` β€” subprocess-family helper for the consumer's legacy spawn path (SPEC Β§4).
74
+ - `resolveWorkertime`, `isKnownRuntime`, `KNOWN_RUNTIMES`, `SpawnArgs`, `RuntimeResolver` β€” subprocess-family helper for the consumer's legacy spawn path (SPEC Β§4).
75
75
 
76
76
  ## Tests
77
77
 
package/SPEC.md CHANGED
@@ -8,7 +8,7 @@ Contract for `@plurnk/plurnk-execs-*` sibling packages β€” runtime executors tha
8
8
 
9
9
  A runtime executor handles one or more EXEC `runtime` slot values (`sh`, `node`, `python`, `search`, `news`, …). It is a `BaseExecutor` subclass that declares its output channels and implements `run()`; the framework discovers it from its `package.json` `plurnk` block. The consuming scheme owns all I/O and lifecycle machinery (db, channels, subscriptions, AbortController bridging, wake-on-completion) and hands the executor sinks β€” the executor stays stateless across runs beyond its construction metadata.
10
10
 
11
- The framework ships `SubprocessExecutor` (Β§4), the concrete `BaseExecutor` for subprocess runtimes (sh/node/python), built on the lower-level `resolveRuntime` / `SpawnArgs` helper. plurnk-service's exec scheme has adopted `SubprocessExecutor`; the discovery-registry + `probe()`/`effect()` consumption is realized in service `0.9.0` (`ExecutorRegistry` boot-discovers and probes siblings; `EffectPolicy` gates the proposal lifecycle).
11
+ The framework ships `SubprocessExecutor` (Β§4), the concrete `BaseExecutor` for subprocess runtimes (sh/node/python), built on the lower-level `resolveWorkertime` / `SpawnArgs` helper. plurnk-service's exec scheme has adopted `SubprocessExecutor`; the discovery-registry + `probe()`/`effect()` consumption is realized in service `0.9.0` (`ExecutorRegistry` boot-discovers and probes siblings; `EffectPolicy` gates the proposal lifecycle).
12
12
 
13
13
  ## Β§2 Executor contract
14
14
 
@@ -32,12 +32,14 @@ type ChannelState = "active" | "closed" | "errored";
32
32
  interface ExecArgs {
33
33
  runtime: string; // matched tag; multi-tag executors branch on it
34
34
  command: string; // EXEC body: shell line / source / search query
35
- cwd: string | null; // process working dir (session workspace); null for logical runtimes
35
+ cwd: string | null; // process working dir (workspace workspace); null for logical runtimes
36
36
  target: string | null; // parsed EXEC (target) slot, interpreted per-runtime (data: input+body=program / executable: program+body=stdin); resolved vs cwd; null if none
37
+ env?: NodeJS.ProcessEnv; // consumer-scoped child env β€” drops plurnk's own secrets (plurnk-execs#8); host env inherited when omitted
37
38
  signal: AbortSignal; // cancellation β€” executors must honor it
38
- write: (channel: string, chunk: string) => void; // write a chunk to a declared channel
39
- setState: (channel: string, state: ChannelState) => void; // drive a declared channel's lifecycle
40
- emit: (event: TelemetryEvent) => void; // emit telemetry/error (Β§2.2)
39
+ write: (channel: string, chunk: string, mimetype?: string) => void; // write a chunk; optional mimetype stamps the channel's real per-call output type
40
+ setState: (channel: string, state: ChannelState) => void; // drive a declared channel's lifecycle
41
+ emit: (event: TelemetryEvent) => void; // emit telemetry/error (Β§2.2)
42
+ entry?: (path: string, content: string | null, opts: { tags: string[]; mimetype?: string }) => Promise<void>; // request materialization/prefetch β€” content null β‡’ consumer-sourced (Β§2.6)
41
43
  }
42
44
 
43
45
  interface ExecResult {
@@ -107,7 +109,7 @@ So the feature is contract-free for executors and applies to all of them uniform
107
109
 
108
110
  ### Β§2.6 Output addressing β€” the executor produces, the consumer reads
109
111
 
110
- An executor is a **producer, not a reader.** Its whole output contract is `run()` writing channels (`write` / `setState` / `emit`); the consumer streams those into an ordinary log entry addressed at **`<tag>://<coord>`** (the run's `<runtime>:///<loop>/<turn>/<seq>`), and every READ/FIND over that output is the consumer's uniform entry machinery β€” identical for `sh`, `search`, `sqlite`, and MCP alike. The executor never reads, slices, summarizes, or orients its own output.
112
+ An executor is a **producer, not a reader.** Its whole output contract is `run()` writing channels (`write` / `setState` / `emit`); the consumer streams those into an ordinary log entry addressed at **`<tag>://<coord>`** (the worker's `<runtime>:///<loop>/<turn>/<seq>`), and every READ/FIND over that output is the consumer's uniform entry machinery β€” identical for `sh`, `search`, `sqlite`, and MCP alike. The executor never reads, slices, summarizes, or orients its own output.
111
113
 
112
114
  The executor's only scheme-facing contribution is a **derived manifest** β€” `OutputScheme.manifestFromRuntime({ name, glyph, channels, defaultChannel })`, built from the runtime declaration, no separate authoring β€” so the consumer can mint a per-tag output scheme (name = the tag) and the model can address `<tag>://`. `defaultChannel` (first declared channel; subprocess β†’ `stdout`) is where a bare `READ <tag>://<coord>` lands. `discover()` is unchanged (static install/config truth, Β§3); activation (Β§3.2) is the consumer's runtime overlay.
113
115
 
@@ -121,7 +123,7 @@ MCP is the proof, not the exception: `plurnk-execs-mcp` is a plain producer β€”
121
123
 
122
124
  ## Β§3 Discovery
123
125
 
124
- `discover(options?) β†’ { registry }`. Scans **every installed package** under `<cwd>/node_modules` β€” scope-agnostic (scoped and unscoped) β€” for those declaring `plurnk.kind === "exec"`, and registers each runtime tag from `plurnk.runtimes[]`. The scan is deliberately not limited to `@plurnk/*`: a **third party** can publish an executor under their own scope (`@acme/acme-execs-foo`) and have it discovered with no involvement from this project. (For the batteries-included set, an aggregator package β€” `@plurnk/plurnk-execs-all` β€” depends on the framework's daughters flat so one install surfaces them all; the framework itself stays contract-only.)
126
+ `discover(options?) β†’ { registry, skipped, disabled }`. Scans **every installed package** under the nearest `node_modules` (walking up from `cwd` for workspace hoisting) β€” scope-agnostic (scoped and unscoped) β€” for those declaring `plurnk.kind === "exec"`, and registers each runtime tag from `plurnk.runtimes[]`. The scan is deliberately not limited to `@plurnk/*`: a **third party** can publish an executor under their own scope (`@acme/acme-execs-foo`) and have it discovered with no involvement from this project. (No aggregator package: the default bundle is the daemon's own dependency list, not a metapackage.)
125
127
 
126
128
  ```json
127
129
  {
@@ -164,7 +166,7 @@ Two guarantees frame the hook:
164
166
 
165
167
  `runtimes[]` and `runtimesModule` are mutually exclusive; if both are present the **static array wins** and the hook is never loaded.
166
168
 
167
- **Trust gate.** `discover()` honors the host's **`PLURNK_PLUGINS_TRUSTED_ONLY`** env var (plurnk-service#229) β€” the one posture decided once and enforced across every scope-agnostic discovery surface (schemes/mimetypes/providers/execs). Unset/`""`/`0` β†’ off: every installed package registers (no regression). Any value β†’ on: `@plurnk/*` is always trusted, plus a comma-separated allowlist of additionally-trusted package names (`1` = on with zero third-party). An untrusted package is **discovered but not registered** β€” never a crash β€” and returned in **`Discovery.skipped`** (package names) so the consumer can emit a telemetry note (`discover()` has no sink of its own). The policy mirrors plurnk-service's `PluginTrust.isTrusted`; it's duplicated, not shared, since it can't cross the package boundary.
169
+ **Trust gate.** `discover()` honors the host's **`PLURNK_PLUGINS_TRUSTED_ONLY`** env var (plurnk-service#229) β€” the one posture decided once and enforced across every scope-agnostic discovery surface (schemes/mimetypes/providers/execs). Unset/`""`/`0` β†’ off: every installed package registers (no regression). Any value β†’ on: `@plurnk/*` is always trusted, plus a comma-separated allowlist of additionally-trusted package names (`1` = on with zero third-party). An untrusted package is **discovered but not registered** β€” never a crash β€” and returned in **`Discovery.skipped`** (package names) so the consumer can emit a telemetry note (`discover()` has no sink of its own). The trust predicate is the single shared implementation in **`@plurnk/plurnk-meta`** (`Meta.isTrusted`), consumed identically by the daemon and every family-head scanner β€” trust is defined once for the whole family, never duplicated.
168
170
 
169
171
  Each runtime package's **default export** is its `BaseExecutor` subclass (also a named export β€” `export { default as Sh }` / `export { default }`); the consumer instantiates it per matched tag with the tag + glyph from the registry.
170
172
 
@@ -185,7 +187,7 @@ This split *is* the progressive disclosure that bounds the sheet: N available se
185
187
  |---|---|---|
186
188
  | Installed package (boot discovery) | first-party (`@plurnk/*`) | **Active** |
187
189
  | Installed package (boot discovery) | third-party | **Available** |
188
- | Env-declared (e.g. `PLURNK_MCP_<server>`, model-alias style) | β€” | **Available** |
190
+ | Env-declared (e.g. `PLURNK_EXECS_MCP_<server>`, model-alias style) | β€” | **Available** |
189
191
  | Runtime hotload (`/mcp`, gated β€” below) | β€” | **Active** on add |
190
192
 
191
193
  The principle: *Active = the operator unambiguously committed this capability ON* (installed a first-party package; explicitly hotloaded). Configuring connection details (env) or installing a third-party package is the lighter act β†’ Available, opt-in. Mirrors `PLURNK_MODEL_*` β€” declare many aliases, activate a subset.
@@ -194,9 +196,9 @@ The principle: *Active = the operator unambiguously committed this capability ON
194
196
 
195
197
  **Capability vs substrate.** enable/disable targets **capability** tags only (execs and executor-backed schemes). Core **substrate** schemes (`file://`, the addressing/ops ground) are always-active and never toggleable β€” `/disable file` must not be able to brick the address space. For an executor-backed scheme, `disable` gates *new production*; existing `tag://` entries stay READable (reads are pure).
196
198
 
197
- **Security β€” one gate, on introduction not activation.** `enable` / `disable` are **not** trust-gated: a client (and the model itself) may freely activate any *registered* capability. This is safe because the registered set is operator-bounded β€” only env-declared or package-installed capabilities exist β€” *unless* the single daemon gate **`PLURNK_MCP_INSTALL`** (default off) opens the runtime-hotload route, permitting *arbitrary* tooling to be **added**. Gate the introduction of capabilities, never their activation. The trust gate (Β§3) still bounds *registration*; activation rides on top of an already-trusted set.
199
+ **Security β€” one gate, on introduction not activation.** `enable` / `disable` are **not** trust-gated: a client (and the model itself) may freely activate any *registered* capability. This is safe because the registered set is operator-bounded β€” only env-declared or package-installed capabilities exist β€” *unless* the single daemon gate **`PLURNK_EXECS_MCP_INSTALL`** (default off) opens the runtime-hotload route, permitting *arbitrary* tooling to be **added**. Gate the introduction of capabilities, never their activation. The trust gate (Β§3) still bounds *registration*; activation rides on top of an already-trusted set.
198
200
 
199
- Execs owns none of the overlay machinery β€” the live Active/Available state, the `/enable` `/disable` `/mcp` commands, and the gate enforcement are the consumer's (plurnk-service#240). Execs' contribution is the static signals above and (for the hotload route) an MCP executor that accepts a runtime-injected server config and re-checks `PLURNK_MCP_INSTALL` at its connect path (defense in depth).
201
+ Execs owns none of the overlay machinery β€” the live Active/Available state, the `/enable` `/disable` `/mcp` commands, and the gate enforcement are the consumer's (plurnk-service#240). Execs' contribution is the static signals above and (for the hotload route) an MCP executor that accepts a runtime-injected server config and re-checks `PLURNK_EXECS_MCP_INSTALL` at its connect path (defense in depth).
200
202
 
201
203
  ### Β§3.3 Runtime policy (the enable/disable cascade)
202
204
 
@@ -214,7 +216,7 @@ The two compose within a layer (an allowlisted tag can still be individually kil
214
216
  **The cascade is an intersection.** A tag is live iff enabled in *every* layer: `enabled(tag) = service ∧ client ∧ …`. Because each layer only subtracts, order is irrelevant and no downstream layer can undo an upstream disable β€” **the client can never re-enable what the service disabled**, structurally, not by a policed rule.
215
217
 
216
218
  - `discover()` applies the **daemon boot layer** (`process.env`) at registration, uniformly across every daughter (framework-guaranteed β€” a daughter cannot escape it, the way `-common`'s old local kill-switch let `sqlite`/`jq`/`git` slip through). Disabled tags are returned in `Discovery.disabled`.
217
- - The consumer applies the **per-session client layer** with the *same parser* β€” `Policy.enabledAcross(tag, [serviceEnv, clientLayer])`, or `Policy.isEnabled(tag, clientLayer)` over the already-registered set. The client declares its policy in the identical `PLURNK_EXECS_*` format; the daemon intersects. The client has no enforcement surface of its own β€” executors run in the daemon β€” so this is a structural ceiling, not a trust boundary.
219
+ - The consumer applies the **per-workspace client layer** with the *same parser* β€” `Policy.enabledAcross(tag, [serviceEnv, clientLayer])`, or `Policy.isEnabled(tag, clientLayer)` over the already-registered set. The client declares its policy in the identical `PLURNK_EXECS_*` format; the daemon intersects. The client has no enforcement surface of its own β€” executors run in the daemon β€” so this is a structural ceiling, not a trust boundary.
218
220
 
219
221
  Framework surface: **`Policy.isEnabled(tag, env?)`** (one layer, defaults to `process.env`) and **`Policy.enabledAcross(tag, layers)`** (the intersection). To disable all standard execs except search: `PLURNK_EXECS_ONLY=search`.
220
222
 
@@ -230,7 +232,7 @@ Execs owns the notice content and the tally. It does **not** own the mode, the s
230
232
 
231
233
  ## Β§4 Subprocess helper (legacy path)
232
234
 
233
- `resolveRuntime(runtime, command) β†’ SpawnArgs` and `isKnownRuntime(runtime)` / `KNOWN_RUNTIMES` translate a subprocess runtime tag into `node:child_process.spawn` arguments:
235
+ `resolveWorkertime(runtime, command) β†’ SpawnArgs` and `isKnownRuntime(runtime)` / `KNOWN_RUNTIMES` translate a subprocess runtime tag into `node:child_process.spawn` arguments:
234
236
 
235
237
  ```ts
236
238
  interface SpawnArgs { cmd: string; args: string[]; useShell: boolean; stdin?: string; }
@@ -243,11 +245,13 @@ interface SpawnArgs { cmd: string; args: string[]; useShell: boolean; stdin?: st
243
245
  | `"python"` / `"python3"` | `{ cmd: "python3", args: ["-c", command], useShell: false }` |
244
246
  | any other | `{ cmd: runtime, args: ["-c", command], useShell: false }` (conservative fallback) |
245
247
 
246
- `resolveRuntime` never throws; consumers gate unknown runtimes with `isKnownRuntime` and return 501 before invoking.
248
+ `resolveWorkertime` never throws; consumers gate unknown runtimes with `isKnownRuntime` and return 501 before invoking.
247
249
 
248
- **With a `(target)`** β€” `resolveRuntime(runtime, command, target)` runs the **target as the program** and the **body as its stdin** (plurnk-execs#15): a shell runs `sh -c "<target>"` (the shell tokenizes the target β€” the framework parses nothing), any other runtime runs `<interpreter> <target>` (a single script-file positional). No target β†’ the body is the inline program (`-c`/`-e`) as in the table. This is family-relative: the *data* runtimes (jq/sqlite/wasm) invert it β€” `target` is the data, `body` the program β€” inside their own `run()`. Each daughter maps the two raw strings to its own tool's CLI; the parent hands them down and parses neither.
250
+ **With a `(target)`** β€” `resolveWorkertime(runtime, command, target)` runs the **target as the program** and the **body as its stdin** (plurnk-execs#15): a shell runs `sh -c "<target>"` (the shell tokenizes the target β€” the framework parses nothing), any other runtime runs `<interpreter> <target>` (a single script-file positional). No target β†’ the body is the inline program (`-c`/`-e`) as in the table. This is family-relative: the *data* runtimes (jq/sqlite/wasm) invert it β€” `target` is the data, `body` the program β€” inside their own `run()`. Each daughter maps the two raw strings to its own tool's CLI; the parent hands them down and parses neither.
249
251
 
250
- The framework wraps this in **`SubprocessExecutor extends BaseExecutor`** β€” declares `{ stdout, stderr }` channels and implements `run()` (spawn via `resolveRuntime`, stream into the channels, honor `signal`, `emit` `spawn_failed` on a failed start, return `{ status, exitCode }`). Subclasses with their own interpreter table override the **`protected spawnArgs(runtime, command) β†’ SpawnArgs`** hook (default delegates to `resolveRuntime`) β€” and so inherit run()'s streaming + process-group abort handling. `SpawnArgs.stdin?` lets filter-style runtimes feed their program/input via stdin (`bc`, `tclsh`; or `""` for an `awk` BEGIN with EOF). On abort it signals the whole **process group** (`detached` spawn + `process.kill(-pid, …)`) so shell grandchildren can't leak (plurnk-execs#4): the default abort is a polite **SIGHUP**, once, no escalation; a `KILL[code]` reason carrying `{ signal }` delivers exactly that signal, fire-and-forget; only the consumer's loop-end housekeeping reason (`{ housekeeping: true, graceMs }`) escalates SIGHUPβ†’**SIGKILL** after the consumer-sourced grace (never a magic number here). The `plurnk-execs-common` sibling subclasses it β€” claiming the whole subprocess set (sh/bash/node/python plus detected host interpreters) via a recipe table behind a `spawnArgs()` / `probe()` override. `isKnownRuntime` / `KNOWN_RUNTIMES` are the legacy 501 gate; the discovery registry + `probe()` supersede them once a consumer wires the registry.
252
+ **Dispatch note (#448):** the consumer **stat-routes** a subprocess op's `(target)` β€” a **directory** becomes the `cwd` for the body command; a **file** is the program run here (via `resolveWorkertime` above), the body its stdin (empty body is legal β€” it just runs the file: `<<EXEC[sh](greet.sh)::EXEC`). No target β†’ the body is the command in the project-root cwd. So: directory β†’ run *in* it, file β†’ run *it*.
253
+
254
+ The framework wraps this in **`SubprocessExecutor extends BaseExecutor`** β€” declares `{ stdout, stderr }` channels and implements `run()` (spawn via `resolveWorkertime`, stream into the channels, honor `signal`, `emit` `spawn_failed` on a failed start, return `{ status, exitCode }`). Subclasses with their own interpreter table override the **`protected spawnArgs(runtime, command, target) β†’ SpawnArgs`** hook (default delegates to `resolveWorkertime`) β€” and so inherit run()'s streaming + process-group abort handling. `SpawnArgs.stdin?` lets filter-style runtimes feed their program/input via stdin (`bc`, `tclsh`; or `""` for an `awk` BEGIN with EOF). On abort it signals the whole **process group** (`detached` spawn + `process.kill(-pid, …)`) so shell grandchildren can't leak (plurnk-execs#4): the default abort is a polite **SIGHUP**, once, no escalation; a `KILL[code]` reason carrying `{ signal }` delivers exactly that signal, fire-and-forget; only the consumer's loop-end housekeeping reason (`{ housekeeping: true, graceMs }`) escalates SIGHUPβ†’**SIGKILL** after the consumer-sourced grace (never a magic number here). The `plurnk-execs-common` sibling subclasses it β€” claiming the whole subprocess set (sh/bash/node/python plus detected host interpreters) via a recipe table behind a `spawnArgs()` / `probe()` override. `isKnownRuntime` / `KNOWN_RUNTIMES` are the legacy 501 gate; the discovery registry + `probe()` supersede them once a consumer wires the registry.
251
255
 
252
256
  ## Β§5 Consumer surface (plurnk-service)
253
257
 
@@ -265,7 +269,7 @@ Per plurnk-service#174/#181/#182, realized in service `0.9.0`, the exec scheme:
265
269
  | Database access |
266
270
  | Imports from `@plurnk/plurnk-service/*` |
267
271
  | Mutating `ExecArgs` |
268
- | Holding state across `run` calls beyond construction metadata |
272
+ | Holding state across `worker` calls beyond construction metadata |
269
273
  | Reading runtime output via `console.*` |
270
274
  | Ignoring `args.signal` |
271
275
  | Writing to an undeclared channel |
@@ -19,7 +19,7 @@ const housekeepingGrace = (reason) => {
19
19
  return r?.housekeeping === true && typeof r.graceMs === "number" ? r.graceMs : null;
20
20
  };
21
21
  // Concrete BaseExecutor for subprocess runtimes (sh, node, python, …). Spawns
22
- // via resolveRuntime, streams the process's stdout/stderr into the declared
22
+ // via resolveWorkertime, streams the process's stdout/stderr into the declared
23
23
  // channels, honors cancellation, and reports the exit code. The sibling
24
24
  // packages (plurnk-execs-sh / -node / -python) subclass this and differ only
25
25
  // in which runtime tags they claim in their `plurnk.runtimes[]` manifest.
@@ -1 +1 @@
1
- {"version":3,"file":"SubprocessExecutor.js","sourceRoot":"","sources":["../src/SubprocessExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,O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BACjE,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;gBAChF,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;YACrD,CAAC,CAAC,CAAC;YAEH,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;gBACvB,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;oBACjB,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;oBACzD,OAAO;gBACX,CAAC;gBACD,MAAM,EAAE,GAAG,IAAI,KAAK,CAAC,CAAC;gBACtB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YACxF,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../src/discover.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAyB,MAAM,YAAY,CAAC;AAkDpF,MAAM,CAAC,OAAO,OAAO,QAAQ;;IACzB,OAAa,IAAI,CAAC,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,SAAS,CAAC,CA0CnE;CAuIJ"}
1
+ {"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../src/discover.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAyB,MAAM,YAAY,CAAC;AAkDpF,MAAM,CAAC,OAAO,OAAO,QAAQ;;IACzB,OAAa,IAAI,CAAC,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,SAAS,CAAC,CA0CnE;CA0IJ"}
package/dist/discover.js CHANGED
@@ -78,7 +78,7 @@ export default class Discover {
78
78
  // layer, applied uniformly to EVERY tag regardless of daughter
79
79
  // (SPEC Β§3.3). A disabled tag is not registered β€” absent, not
80
80
  // "Available-off" β€” and recorded for the consumer. The
81
- // per-session client layer is the consumer's to intersect via
81
+ // per-workspace client layer is the consumer's to intersect via
82
82
  // the exported Policy, same parser.
83
83
  if (!Policy.isEnabled(info.runtime)) {
84
84
  disabled.add(info.runtime);
@@ -104,9 +104,11 @@ export default class Discover {
104
104
  return (await Meta.packageDirs(nm)).map((c) => c.dir).toSorted();
105
105
  }
106
106
  // Read a package's `package.json` and return its manifest iff it declares
107
- // `plurnk.kind === "exec"`. Returns null for non-executor packages, a missing
108
- // or malformed `package.json` β€” discover() silently skips those (they are not
109
- // "skipped by trust", just not exec packages).
107
+ // `plurnk.kind === "exec"` β€” or an array including it, the dual-kind form for
108
+ // a package shipping an exec AND a scheme face (#483; plurnk-execs-mcp).
109
+ // Returns null for non-executor packages, a missing or malformed
110
+ // `package.json` β€” discover() silently skips those (they are not "skipped by
111
+ // trust", just not exec packages).
110
112
  static async #readExecManifest(dir) {
111
113
  let raw;
112
114
  try {
@@ -129,7 +131,8 @@ export default class Discover {
129
131
  if (typeof plurnk !== "object" || plurnk === null)
130
132
  return null;
131
133
  const plurnkRec = plurnk;
132
- if (plurnkRec.kind !== "exec")
134
+ const kind = plurnkRec.kind;
135
+ if (kind !== "exec" && !(Array.isArray(kind) && kind.includes("exec")))
133
136
  return null;
134
137
  return { packageName: typeof record.name === "string" ? record.name : "", plurnk: plurnkRec };
135
138
  }
@@ -1 +1 @@
1
- {"version":3,"file":"discover.js","sourceRoot":"","sources":["../src/discover.ts"],"names":[],"mappings":";;;;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C;IAED,2EAA2E;IAC3E,0EAA0E;IAC1E,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,GAAW,EAAE,GAAW;QAC9C,IAAI,CAAC;YACD,OAAO,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAG,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;QAC3E,CAAC;QAAC,MAAM,CAAC;YACL,OAAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;CACJ"}
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export { default as Policy } from "./policy.ts";
7
7
  export { default as Advertise } from "./advertise.ts";
8
8
  export declare const KNOWN_RUNTIMES: ReadonlySet<string>;
9
9
  export declare const isKnownRuntime: typeof Runtime.isKnown;
10
- export declare const resolveRuntime: typeof Runtime.resolve;
10
+ export declare const resolveWorkertime: typeof Runtime.resolve;
11
11
  export type { ChannelState, ChannelDecl, ExecutorMetadata, ExecArgs, ExecResult, Effect, RuntimeAvailability, RuntimeDecl, RuntimesHook, ExecInfo, ExecRegistry, Discovery, DiscoverOptions, SpawnArgs, RuntimeResolver, } from "./types.ts";
12
12
  export type { TelemetryEvent, ContentOffset, LogCoordinate } from "./TelemetryEvent.ts";
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,OAAO,MAAM,cAAc,CAAC;AAGnC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAKxE,eAAO,MAAM,QAAQ,sBAAgB,CAAC;AAMtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAMhD,OAAO,EAAE,OAAO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EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ export { default as SubprocessExecutor } from "./SubprocessExecutor.js";
8
8
  // public contract and the consumer's import stay unchanged.
9
9
  export const discover = Discover.scan;
10
10
  // Runtime enable/disable policy (SPEC Β§3.3). `discover()` applies it as the
11
- // daemon boot layer; the consumer reuses the same parser for the per-session
11
+ // daemon boot layer; the consumer reuses the same parser for the per-workspace
12
12
  // client layer β€” Policy.enabledAcross(tag, [serviceEnv, clientLayer]) β€” so the
13
13
  // cascade is byte-identical at both tiers.
14
14
  export { default as Policy } from "./policy.js";
@@ -22,5 +22,5 @@ export { default as Advertise } from "./advertise.js";
22
22
  // function/constant names re-exported over its statics.
23
23
  export const KNOWN_RUNTIMES = Runtime.KNOWN;
24
24
  export const isKnownRuntime = Runtime.isKnown;
25
- export const resolveRuntime = Runtime.resolve;
25
+ export const resolveWorkertime = Runtime.resolve;
26
26
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,oBAAoB;AACpB,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAExE,uEAAuE;AACvE,8EAA8E;AAC9E,4DAA4D;AAC5D,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC;AAEtC,4EAA4E;AAC5E,6EAA6E;AAC7E,+EAA+E;AAC/E,2CAA2C;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAEhD,+EAA+E;AAC/E,wEAAwE;AACxE,8EAA8E;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// `env` is the policy LAYER: `process.env` for the daemon's boot layer
19
19
  // (discover's default), or a client-declared map in the exact same
20
- // `PLURNK_EXECS_*` format for the per-session client layer. One parser, both
20
+ // `PLURNK_EXECS_*` format for the per-workspace client layer. One parser, both
21
21
  // tiers β€” the consumer feeds the client's map straight to these methods.
22
22
  export default class Policy {
23
23
  // Read a PLURNK_EXECS_<suffix> key case-INSENSITIVELY. The env-var
@@ -1 +1 @@
1
- {"version":3,"file":"policy.js","sourceRoot":"","sources":["../src/policy.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,+EAA+E;AAC/E,gFAAgF;AAChF,sEAAsE;AACtE,2EAA2E;AAC3E,EAAE;AACF,iEAAiE;AACjE,oEAAoE;AACpE,4EAA4E;AAC5E,yEAAyE;AACzE,4EAA4E;AAC5E,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,+EAA+E;AAC/E,uCAAuC;AACvC,EAAE;AACF,uEAAuE;AACvE,mEAAmE;AACnE,6EAA6E;AAC7E,yEAAyE;AACzE,MAAM,CAAC,OAAO,OAAO,MAAM;IACvB,mEAAmE;IACnE,6EAA6E;IAC7E,2EAA2E;IAC3E,0EAA0E;IAC1E,wEAAwE;IACxE,yDAAyD;IACzD,MAAM,CAAC,KAAK,CAAC,GAAuC,EAAE,MAAc;QAChE,MAAM,GAAG,GAAG,gBAAgB,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC;QACnD,IAAI,GAAG,IAAI,GAAG;YAAE,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;QAChC,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAC;QAClE,OAAO,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;IAED,MAAM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C,CAAC;YAC1F,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;gBAAE,OAAO,KAAK,CAAC;QACpD,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,mEAAmE;IACnE,yEAAyE;IACzE,iDAAiD;IACjD,MAAM,CAAC,aAAa,CAAC,GAAW,EAAE,MAAiD;QAC/E,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IACjE,CAAC;CACJ"}
package/dist/runtime.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // Runtime tag β†’ spawn-args dispatch. Hardcoded v0 multiplexer; plugin
2
2
  // discovery (one runtime per `@plurnk/plurnk-execs-*` sibling) is the
3
3
  // forward-spec path documented in SPEC.md. The public `KNOWN_RUNTIMES` /
4
- // `isKnownRuntime` / `resolveRuntime` surface (SPEC Β§4) is re-exported from
4
+ // `isKnownRuntime` / `resolveWorkertime` surface (SPEC Β§4) is re-exported from
5
5
  // index.ts over these statics; cross-refs use the explicit `Runtime.` binding
6
6
  // so a detached re-export stays callable.
7
7
  export default class Runtime {
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,yEAAyE;AACzE,4EAA4E;AAC5E,8EAA8E;AAC9E,0CAA0C;AAI1C,MAAM,CAAC,OAAO,OAAO,OAAO;IACxB,0EAA0E;IAC1E,kEAAkE;IAClE,MAAM,CAAU,KAAK,GAAwB,IAAI,GAAG,CAAC;QACjD,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS;KAChD,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,CAAC,OAAe;QAC1B,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,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H,CAAC;QACD,IAAI,KAAK;YAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC7D,IAAI,OAAO,KAAK,MAAM;YAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACvF,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,SAAS;YAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACrH,mEAAmE;QACnE,sEAAsE;QACtE,+BAA+B;QAC/B,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACpE,CAAC;CACJ"}
package/dist/types.d.ts CHANGED
@@ -18,9 +18,9 @@ export interface ExecArgs {
18
18
  write: (channel: string, chunk: string, mimetype?: string) => void;
19
19
  setState: (channel: string, state: ChannelState) => void;
20
20
  emit: (event: TelemetryEvent) => void;
21
- entry?: (path: string, content: string, opts: {
21
+ entry?: (path: string, content: string | null, opts: {
22
22
  tags: string[];
23
- mimetype: string;
23
+ mimetype?: string;
24
24
  }) => Promise<void>;
25
25
  }
26
26
  export interface ExecResult {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI1D,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAM3D,MAAM,WAAW,WAAW;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;CA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atch for those tags.
5
5
  //
6
6
  // The framework surface is `BaseExecutor.run()` + `discover()`. The runtime
7
- // tag β†’ spawn-args translator (`SpawnArgs` / `resolveRuntime`) is retained as
7
+ // tag β†’ spawn-args translator (`SpawnArgs` / `resolveWorkertime`) is retained as
8
8
  // a subprocess-family helper: plurnk-service's exec scheme still consumes it
9
9
  // on its legacy subprocess path until the deferred SubprocessExecutor
10
10
  // migration (service#174 Q2). See SPEC.md.
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAC5E,qDAAqD;AACrD,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,sEAAsE;AACtE,2CAA2C"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAC5E,qDAAqD;AACrD,EAAE;AACF,4EAA4E;AAC5E,iFAAiF;AACjF,6EAA6E;AAC7E,sEAAsE;AACtE,2CAA2C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plurnk/plurnk-execs",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Framework + contract for the @plurnk/plurnk-execs-* runtime executor family.",
5
5
  "keywords": [
6
6
  "plurnk",
@@ -48,14 +48,14 @@
48
48
  "prepack": "npm run build"
49
49
  },
50
50
  "dependencies": {
51
- "@plurnk/plurnk-schemes": "1.0.4",
52
- "@plurnk/plurnk-execs-common": "1.0.4",
53
- "@plurnk/plurnk-execs-search": "1.0.4",
54
- "@plurnk/plurnk-execs-mcp": "1.0.4",
55
- "@plurnk/plurnk-execs-git": "1.0.4",
56
- "@plurnk/plurnk-execs-jq": "1.0.4",
57
- "@plurnk/plurnk-execs-sqlite": "1.0.4",
58
- "@plurnk/plurnk-meta": "1.0.4",
59
- "@plurnk/plurnk-execs-wasm": "1.0.4"
51
+ "@plurnk/plurnk-schemes": "1.0.6",
52
+ "@plurnk/plurnk-execs-common": "1.0.6",
53
+ "@plurnk/plurnk-execs-search": "1.0.6",
54
+ "@plurnk/plurnk-execs-mcp": "1.0.6",
55
+ "@plurnk/plurnk-execs-git": "1.0.6",
56
+ "@plurnk/plurnk-execs-jq": "1.0.6",
57
+ "@plurnk/plurnk-execs-sqlite": "1.0.6",
58
+ "@plurnk/plurnk-meta": "1.0.6",
59
+ "@plurnk/plurnk-execs-wasm": "1.0.6"
60
60
  }
61
61
  }