@plurnk/plurnk-execs 1.2.0 → 1.3.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.
- package/README.md +2 -1
- package/SPEC.md +26 -12
- package/dist/SubprocessExecutor.d.ts.map +1 -1
- package/dist/SubprocessExecutor.js +4 -10
- package/dist/SubprocessExecutor.js.map +1 -1
- package/dist/discover.js +1 -1
- package/dist/discover.js.map +1 -1
- package/dist/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +1 -1
- package/dist/runtime.d.ts +0 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +2 -17
- package/dist/runtime.js.map +1 -1
- package/dist/types.d.ts +1 -14
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -5
- package/dist/types.js.map +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -71,7 +71,8 @@ Declare the two and a third-party tag gets the same self-documenting surface the
|
|
|
71
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
|
-
- `
|
|
74
|
+
- `SpawnArgs` — the `SubprocessExecutor.spawnArgs()` return shape for
|
|
75
|
+
runtime-specific subclasses.
|
|
75
76
|
|
|
76
77
|
## Tests
|
|
77
78
|
|
package/SPEC.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Contract for `@plurnk/plurnk-execs-*` sibling packages — runtime executors that plurnk-service's `exec://` scheme dispatches to. Audience: implementer of a runtime executor. Consumer: [plurnk-service](https://github.com/plurnk/plurnk-service) (SPEC.md §6.8, §10). Contract shape settled in plurnk-service#174.
|
|
4
4
|
|
|
5
|
-
**Traceability.** Section tags (`§N`, `§N.M`) are load-bearing: implementation comments cite the governing section, and every non-prose section is pinned by at least one test whose *title* carries its tag (`test("§2.2 probe: …")`). The binding is enforced both directions by `test/spec-coverage.test.ts` — an unpinned section or an orphaned citation fails the suite. Prose-only sections are exempt by an explicit, justified list in that gate.
|
|
6
|
-
|
|
7
5
|
## §1 Role
|
|
8
6
|
|
|
9
7
|
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
8
|
|
|
11
|
-
The framework ships `SubprocessExecutor` (§4),
|
|
9
|
+
The framework ships `SubprocessExecutor` (§4), a concrete `BaseExecutor` for
|
|
10
|
+
subprocess runtimes. Runtime packages override its `spawnArgs()` hook and
|
|
11
|
+
inherit process execution, streaming, cancellation, and telemetry.
|
|
12
12
|
|
|
13
13
|
## §2 Executor contract
|
|
14
14
|
|
|
@@ -119,9 +119,11 @@ The executor's only scheme-facing contribution is a **derived manifest** — `Ou
|
|
|
119
119
|
|
|
120
120
|
MCP is the proof, not the exception: `plurnk-execs-mcp` is a plain producer — `run()` calls the tool and writes its JSON result to a `results` channel, exactly as `search` writes `results` — with no `read`, no `find`, no summary. Bring a need and it maps onto the log; the log paradigm already orients, and the executor never curates.
|
|
121
121
|
|
|
122
|
-
**Entry materialization is a sink, not a substrate breach (execs#18 / service#340).** `ExecArgs.entry?(path, content, { tags, mimetype }) → Promise<void>` lets an executor *request* that the consumer materialize a substrate entry — the same shape as `write`/`emit` (consumer-implemented callbacks; the executor never touches storage, tagging, or announcement machinery). The consumer creates the entry, applies the tags, and announces it through its ambience as a **folded** row (the meta line carries path + tokens; page-scale bodies never ride a wake packet). Consumer collision semantics: upsert content, union tags, bump freshness. A rejected `entry()` means *not materialized
|
|
122
|
+
**Entry materialization is a sink, not a substrate breach (execs#18 / service#340).** `ExecArgs.entry?(path, content, { tags, mimetype }) → Promise<void>` lets an executor *request* that the consumer materialize a substrate entry — the same shape as `write`/`emit` (consumer-implemented callbacks; the executor never touches storage, tagging, or announcement machinery). The consumer creates the entry, applies the tags, and announces it through its ambience as a **folded** row (the meta line carries path + tokens; page-scale bodies never ride a wake packet). Consumer collision semantics: upsert content, union tags, bump freshness. A rejected `entry()` means only *not materialized*; it does not invalidate upstream discovery metadata. The sink is optional: absent, producers degrade gracefully without a materialization verdict. This closed the gap that §2.6's earlier absolutism forced on the search flow (a double-fetch dance routed around the missing sink); the principle — executors own zero substrate machinery — is unchanged.
|
|
123
|
+
|
|
124
|
+
**The search prefetch seam resolves here (service#596).** The consumer implements `entry()` as auto-prefetch: acquire, MIME-project, and materialize the `https://` entry. A guarded browser render is a fallback only when the HTTP response has no useful model-facing projection. Resolve/reject becomes the candidate's admission verdict: failed materializations are omitted while survivors retain SearXNG rank. Plurnk does not otherwise rerank or judge the results. There is no executor pre-validation (that would fetch — forbidden) or double fetch. A URL prefetch carries no page body for the executor to supply, so `content` is **consumer-sourced** — the executor contributes the candidate `url` as `path` and learns only the materialization verdict, never the body.
|
|
123
125
|
|
|
124
|
-
|
|
126
|
+
Search acquisition emits aggregate `search_progress` telemetry through `emit`: a start, at most approximately ten intermediate milestones, and a terminal `complete`, carrying `completed`, `total`, `materialized`, `rejected`, and `percent`. It never emits candidate URLs or one event per result. This is compact live client state, not the ranked digest and not a substitute for its durable per-result verdicts.
|
|
125
127
|
|
|
126
128
|
## §3 Discovery
|
|
127
129
|
|
|
@@ -217,7 +219,7 @@ The two compose within a layer (an allowlisted tag can still be individually kil
|
|
|
217
219
|
|
|
218
220
|
**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.
|
|
219
221
|
|
|
220
|
-
- `discover()` applies the **daemon boot layer** (`process.env`) at registration, uniformly across every
|
|
222
|
+
- `discover()` applies the **daemon boot layer** (`process.env`) at registration, uniformly across every plugin (framework-guaranteed — a plugin cannot escape it, the way `-common`'s old local kill-switch let `sqlite`/`jq`/`git` slip through). Disabled tags are returned in `Discovery.disabled`.
|
|
221
223
|
- 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.
|
|
222
224
|
|
|
223
225
|
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`.
|
|
@@ -232,9 +234,10 @@ When a loop leaves **zero** EXEC runtimes in the §3.2 *Active* bucket, the capa
|
|
|
232
234
|
|
|
233
235
|
Execs owns the notice content and the tally. It does **not** own the mode, the sheet's rendering, or the decision of when a loop bars host effects — only the single line spoken when its own count of surviving runtimes reaches zero.
|
|
234
236
|
|
|
235
|
-
## §4 Subprocess
|
|
237
|
+
## §4 Subprocess executors
|
|
236
238
|
|
|
237
|
-
`
|
|
239
|
+
`SubprocessExecutor` translates a runtime tag and command into
|
|
240
|
+
`node:child_process.spawn` arguments:
|
|
238
241
|
|
|
239
242
|
```ts
|
|
240
243
|
interface SpawnArgs { cmd: string; args: string[]; useShell: boolean; stdin?: string; }
|
|
@@ -247,13 +250,24 @@ interface SpawnArgs { cmd: string; args: string[]; useShell: boolean; stdin?: st
|
|
|
247
250
|
| `"python"` / `"python3"` | `{ cmd: "python3", args: ["-c", command], useShell: false }` |
|
|
248
251
|
| any other | `{ cmd: runtime, args: ["-c", command], useShell: false }` (conservative fallback) |
|
|
249
252
|
|
|
250
|
-
|
|
253
|
+
The executor registry rejects an unknown runtime before an executor runs.
|
|
251
254
|
|
|
252
|
-
|
|
255
|
+
With a target, a subprocess executor runs the target as the program and passes
|
|
256
|
+
the body as stdin: a shell runs `sh -c "<target>"`; another interpreter runs
|
|
257
|
+
`<interpreter> <target>`. With no target, the body is the inline program. Data
|
|
258
|
+
runtimes such as jq, sqlite, and wasm define their own mapping.
|
|
253
259
|
|
|
254
|
-
|
|
260
|
+
The consumer stat-routes a subprocess target: a directory becomes the command's
|
|
261
|
+
working directory; a file is the program and the body is its stdin. With no
|
|
262
|
+
target, the body runs from the project-root working directory.
|
|
255
263
|
|
|
256
|
-
|
|
264
|
+
`SubprocessExecutor extends BaseExecutor`, declares stdout and stderr channels,
|
|
265
|
+
and implements `run()`. Subclasses override
|
|
266
|
+
`spawnArgs(runtime, command, target) → SpawnArgs` and optionally `binary`.
|
|
267
|
+
They inherit streaming, scoped environment handling, availability probing, exit
|
|
268
|
+
status, and process-group cancellation. Abort sends SIGHUP by default; an
|
|
269
|
+
explicit kill reason supplies its signal; loop-end housekeeping may escalate to
|
|
270
|
+
SIGKILL after the consumer-provided grace period.
|
|
257
271
|
|
|
258
272
|
## §5 Consumer surface (plurnk-service)
|
|
259
273
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubprocessExecutor.d.ts","sourceRoot":"","sources":["../src/SubprocessExecutor.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"SubprocessExecutor.d.ts","sourceRoot":"","sources":["../src/SubprocessExecutor.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAuB5G,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,YAAY;IACxD,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAKpD;IAKD,SAAS,KAAK,MAAM,IAAI,MAAM,GAAG,IAAI,CAEpC;IAGQ,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAE9C;IAEc,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAsBvE;IAQD,SAAS,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAEtF;IAED,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAgGxG;CACJ"}
|
|
@@ -18,15 +18,9 @@ const housekeepingGrace = (reason) => {
|
|
|
18
18
|
const r = reason;
|
|
19
19
|
return r?.housekeeping === true && typeof r.graceMs === "number" ? r.graceMs : null;
|
|
20
20
|
};
|
|
21
|
-
// Concrete BaseExecutor for subprocess runtimes
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
// packages (plurnk-execs-sh / -node / -python) subclass this and differ only
|
|
25
|
-
// in which runtime tags they claim in their `plurnk.runtimes[]` manifest.
|
|
26
|
-
//
|
|
27
|
-
// This is the destination of plurnk-service's legacy `streamShellCommand`
|
|
28
|
-
// (service#174 Q2): the scheme migrates onto it on its own timeline; until
|
|
29
|
-
// then both paths coexist.
|
|
21
|
+
// Concrete BaseExecutor for subprocess runtimes. It streams stdout and stderr,
|
|
22
|
+
// honors cancellation, and reports the exit code. Runtime packages subclass it
|
|
23
|
+
// to claim tags and provide spawn recipes.
|
|
30
24
|
export default class SubprocessExecutor extends BaseExecutor {
|
|
31
25
|
get channels() {
|
|
32
26
|
return {
|
|
@@ -77,7 +71,7 @@ export default class SubprocessExecutor extends BaseExecutor {
|
|
|
77
71
|
// interpreter table (e.g. the common-REPL harness) override this — and so
|
|
78
72
|
// inherit run()'s streaming + process-group abort handling rather than
|
|
79
73
|
// reimplementing it. When `target` is set, the body becomes the program's
|
|
80
|
-
// stdin (plurnk-execs#15) — the
|
|
74
|
+
// stdin (plurnk-execs#15) — the plugin maps it; the parent parses nothing.
|
|
81
75
|
spawnArgs(runtime, command, target) {
|
|
82
76
|
return Runtime.resolve(runtime, command, target);
|
|
83
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubprocessExecutor.js","sourceRoot":"","sources":["../src/SubprocessExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAC7C,OAAO,OAAO,MAAM,cAAc,CAAC;AAGnC,2EAA2E;AAC3E,+EAA+E;AAC/E,2EAA2E;AAC3E,MAAM,cAAc,GAAG,CAAC,MAAe,EAAkC,EAAE;IACvE,MAAM,GAAG,GAAI,MAAkD,EAAE,MAAM,CAAC;IACxE,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,GAAG,CAAC;IACxC,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAqB,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3F,CAAC,CAAC;AAEF,kFAAkF;AAClF,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X,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"}
|
package/dist/discover.js
CHANGED
|
@@ -75,7 +75,7 @@ export default class Discover {
|
|
|
75
75
|
for (const info of await Discover.#readExecInfos(dir, manifest)) {
|
|
76
76
|
// Runtime policy — the operator kill-switch / allowlist
|
|
77
77
|
// (PLURNK_EXECS_<tag>=0, PLURNK_EXECS_ONLY), the daemon's boot
|
|
78
|
-
// layer, applied uniformly to EVERY tag regardless of
|
|
78
|
+
// layer, applied uniformly to EVERY tag regardless of plugin
|
|
79
79
|
// (SPEC §3.3). A disabled tag is not registered — absent, not
|
|
80
80
|
// "Available-off" — and recorded for the consumer. The
|
|
81
81
|
// per-workspace client layer is the consumer's to intersect via
|
package/dist/discover.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.js","sourceRoot":"","sources":["../src/discover.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,MAAM,MAAM,aAAa,CAAC;AAUjC,0EAA0E;AAC1E,4EAA4E;AAC5E,4EAA4E;AAC5E,+EAA+E;AAC/E,qCAAqC;AACrC,EAAE;AACF,4EAA4E;AAC5E,6EAA6E;AA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export { default as BaseExecutor } from "./BaseExecutor.ts";
|
|
4
3
|
export { default as SubprocessExecutor } from "./SubprocessExecutor.ts";
|
|
5
4
|
export declare const discover: typeof Discover.scan;
|
|
6
5
|
export { default as Policy } from "./policy.ts";
|
|
7
6
|
export { default as Advertise } from "./advertise.ts";
|
|
8
|
-
export
|
|
9
|
-
export declare const isKnownRuntime: typeof Runtime.isKnown;
|
|
10
|
-
export declare const resolveWorkertime: typeof Runtime.resolve;
|
|
11
|
-
export type { ChannelState, ChannelDecl, ExecutorMetadata, ExecArgs, ExecResult, Effect, RuntimeAvailability, RuntimeDecl, RuntimesHook, ExecInfo, ExecRegistry, Discovery, DiscoverOptions, SpawnArgs, RuntimeResolver, } from "./types.ts";
|
|
7
|
+
export type { ChannelState, ChannelDecl, ExecutorMetadata, ExecArgs, ExecResult, Effect, RuntimeAvailability, RuntimeDecl, RuntimesHook, ExecInfo, ExecRegistry, Discovery, DiscoverOptions, SpawnArgs, } from "./types.ts";
|
|
12
8
|
export type { TelemetryEvent, ContentOffset, LogCoordinate } from "./TelemetryEvent.ts";
|
|
13
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAGrC,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,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGtD,YAAY,EACR,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,eAAe,EACf,SAAS,GACZ,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Discover from "./discover.js";
|
|
2
|
-
import Runtime from "./runtime.js";
|
|
3
2
|
// Framework surface
|
|
4
3
|
export { default as BaseExecutor } from "./BaseExecutor.js";
|
|
5
4
|
export { default as SubprocessExecutor } from "./SubprocessExecutor.js";
|
|
@@ -17,10 +16,4 @@ export { default as Policy } from "./policy.js";
|
|
|
17
16
|
// permitted" line instead of silent absence, which the model reads as unknown
|
|
18
17
|
// availability and fills by confabulating runtimes (execs#24).
|
|
19
18
|
export { default as Advertise } from "./advertise.js";
|
|
20
|
-
// Runtime-tag → spawn-args helper (subprocess family; legacy scheme path,
|
|
21
|
-
// SPEC §4). Same shape: behavior on the `Runtime` class, the documented
|
|
22
|
-
// function/constant names re-exported over its statics.
|
|
23
|
-
export const KNOWN_RUNTIMES = Runtime.KNOWN;
|
|
24
|
-
export const isKnownRuntime = Runtime.isKnown;
|
|
25
|
-
export const resolveWorkertime = Runtime.resolve;
|
|
26
19
|
//# 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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC,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,+EAA+E;AAC/E,+EAA+E;AAC/E,2CAA2C;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAEhD,+EAA+E;AAC/E,wEAAwE;AACxE,8EAA8E;AAC9E,+DAA+D;AAC/D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { SpawnArgs } from "./types.ts";
|
|
2
2
|
export default class Runtime {
|
|
3
|
-
static readonly KNOWN: ReadonlySet<string>;
|
|
4
|
-
static isKnown(runtime: string): boolean;
|
|
5
3
|
static resolve(runtime: string, command: string, target?: string | null): SpawnArgs;
|
|
6
4
|
}
|
|
7
5
|
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,OAAO;IACxB,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,GAAG,IAAW,GAAG,SAAS,CAgBxF;CACJ"}
|
package/dist/runtime.js
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
//
|
|
2
|
-
// discovery (one runtime per `@plurnk/plurnk-execs-*` sibling) is the
|
|
3
|
-
// forward-spec path documented in SPEC.md. The public `KNOWN_RUNTIMES` /
|
|
4
|
-
// `isKnownRuntime` / `resolveWorkertime` surface (SPEC §4) is re-exported from
|
|
5
|
-
// index.ts over these statics; cross-refs use the explicit `Runtime.` binding
|
|
6
|
-
// so a detached re-export stays callable.
|
|
1
|
+
// Spawn-argument recipes used internally by SubprocessExecutor.
|
|
7
2
|
export default class Runtime {
|
|
8
|
-
// Runtimes plurnk-service's `Exec` scheme accepts at v0. Unknown runtimes
|
|
9
|
-
// must return 501 from the scheme; `resolve` itself never throws.
|
|
10
|
-
static KNOWN = new Set([
|
|
11
|
-
"", "sh", "bash", "node", "python", "python3",
|
|
12
|
-
]);
|
|
13
|
-
static isKnown(runtime) {
|
|
14
|
-
return Runtime.KNOWN.has(runtime);
|
|
15
|
-
}
|
|
16
3
|
static resolve(runtime, command, target = null) {
|
|
17
4
|
const shell = runtime === "" || runtime === "sh" || runtime === "bash";
|
|
18
5
|
// With a target the program IS the target and the body is its stdin
|
|
@@ -31,9 +18,7 @@ export default class Runtime {
|
|
|
31
18
|
return { cmd: "node", args: ["-e", command], useShell: false };
|
|
32
19
|
if (runtime === "python" || runtime === "python3")
|
|
33
20
|
return { cmd: "python3", args: ["-c", command], useShell: false };
|
|
34
|
-
//
|
|
35
|
-
// Schemes should gate this off with `isKnown` and return 501, but the
|
|
36
|
-
// resolver itself stays total.
|
|
21
|
+
// Subclasses normally override spawnArgs for additional runtimes.
|
|
37
22
|
return { cmd: runtime, args: ["-c", command], useShell: false };
|
|
38
23
|
}
|
|
39
24
|
}
|
package/dist/runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"runtime.js","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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
|
@@ -21,7 +21,7 @@ export interface ExecArgs {
|
|
|
21
21
|
entry?: (path: string, content: string | null, opts: {
|
|
22
22
|
tags: string[];
|
|
23
23
|
mimetype?: string;
|
|
24
|
-
}) => Promise<
|
|
24
|
+
}) => Promise<string>;
|
|
25
25
|
}
|
|
26
26
|
export interface ExecResult {
|
|
27
27
|
status: number;
|
|
@@ -71,17 +71,4 @@ export interface SpawnArgs {
|
|
|
71
71
|
*/
|
|
72
72
|
stdin?: string;
|
|
73
73
|
}
|
|
74
|
-
/**
|
|
75
|
-
* Translate a runtime tag + command string into spawn args for `node:child_process.spawn`.
|
|
76
|
-
*
|
|
77
|
-
* Runtimes:
|
|
78
|
-
* - `""` / `"sh"` / `"bash"` → shell-mode invocation of the command
|
|
79
|
-
* - `"node"` → `node -e <command>`
|
|
80
|
-
* - `"python"` / `"python3"` → `python3 -c <command>`
|
|
81
|
-
* - any other (unknown) runtime tag → conservative `<runtime> -c <command>` fallback
|
|
82
|
-
*
|
|
83
|
-
* Consumers check `isKnownRuntime(runtime)` before calling to enforce a 501 boundary
|
|
84
|
-
* on unconfigured runtimes; this function never throws.
|
|
85
|
-
*/
|
|
86
|
-
export type RuntimeResolver = (runtime: string, command: string, target?: string | null) => SpawnArgs;
|
|
87
74
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI1D,MAAM,MAAM,Y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M,CAAC;CACnB;AAGD,MAAM,WAAW,QAAQ;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IAOd,OAAO,EAAE,MAAM,CAAC;IAMhB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IAOpB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACnC;AAOD,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAaD,MAAM,MAAM,YAAY,GAAG,MAAM,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;AAIxE,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAEzD,MAAM,WAAW,SAAS;IACtB,QAAQ,EAAE,YAAY,CAAC;IAKvB,OAAO,EAAE,MAAM,EAAE,CAAC;IAKlB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAG5B,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAID,MAAM,WAAW,SAAS;IACtB,wFAAwF;IACxF,GAAG,EAAE,MAAM,CAAC;IACZ,kCAAkC;IAClC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,mGAAmG;IACnG,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/dist/types.js
CHANGED
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
// its `package.json` `plurnk.runtimes[]` block, and provides a BaseExecutor
|
|
4
4
|
// subclass implementing the dispatch for those tags.
|
|
5
5
|
//
|
|
6
|
-
// The framework surface is `BaseExecutor.run()` + `discover()`.
|
|
7
|
-
// tag → spawn-args translator (`SpawnArgs` / `resolveWorkertime`) is retained as
|
|
8
|
-
// a subprocess-family helper: plurnk-service's exec scheme still consumes it
|
|
9
|
-
// on its legacy subprocess path until the deferred SubprocessExecutor
|
|
10
|
-
// migration (service#174 Q2). See SPEC.md.
|
|
6
|
+
// The framework surface is `BaseExecutor.run()` + `discover()`.
|
|
11
7
|
export {};
|
|
12
8
|
//# sourceMappingURL=types.js.map
|
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,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAC5E,qDAAqD;AACrD,EAAE;AACF,gEAAgE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plurnk/plurnk-execs",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Framework + contract for the @plurnk/plurnk-execs-* runtime executor
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Framework + contract for the @plurnk/plurnk-execs-* runtime executor packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plurnk",
|
|
7
7
|
"exec",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"prepublishOnly": "npm outdated && npm audit --audit-level=moderate && npm test"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@plurnk/plurnk-schemes": "1.
|
|
53
|
-
"@plurnk/plurnk-execs-common": "1.
|
|
54
|
-
"@plurnk/plurnk-execs-search": "1.
|
|
55
|
-
"@plurnk/plurnk-execs-mcp": "1.
|
|
56
|
-
"@plurnk/plurnk-execs-git": "1.
|
|
57
|
-
"@plurnk/plurnk-execs-jq": "1.
|
|
58
|
-
"@plurnk/plurnk-execs-sqlite": "1.
|
|
59
|
-
"@plurnk/plurnk-meta": "1.
|
|
60
|
-
"@plurnk/plurnk-execs-wasm": "1.
|
|
52
|
+
"@plurnk/plurnk-schemes": "1.3.0",
|
|
53
|
+
"@plurnk/plurnk-execs-common": "1.3.0",
|
|
54
|
+
"@plurnk/plurnk-execs-search": "1.3.0",
|
|
55
|
+
"@plurnk/plurnk-execs-mcp": "1.3.0",
|
|
56
|
+
"@plurnk/plurnk-execs-git": "1.3.0",
|
|
57
|
+
"@plurnk/plurnk-execs-jq": "1.3.0",
|
|
58
|
+
"@plurnk/plurnk-execs-sqlite": "1.3.0",
|
|
59
|
+
"@plurnk/plurnk-meta": "1.3.0",
|
|
60
|
+
"@plurnk/plurnk-execs-wasm": "1.3.0"
|
|
61
61
|
}
|
|
62
62
|
}
|