@plurnk/plurnk-execs 1.29.0 → 3.0.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/.env.defaults +2 -0
- package/README.md +9 -10
- package/SPEC.md +51 -44
- package/dist/BaseExecutor.d.ts +2 -1
- package/dist/BaseExecutor.d.ts.map +1 -1
- package/dist/BaseExecutor.js.map +1 -1
- package/dist/InvocationMetadata.js +4 -4
- package/dist/InvocationMetadata.js.map +1 -1
- package/dist/SubprocessExecutor.js +2 -2
- package/dist/SubprocessExecutor.js.map +1 -1
- package/dist/discover.d.ts.map +1 -1
- package/dist/discover.js +18 -27
- package/dist/discover.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/module-slice.d.ts +23 -0
- package/dist/module-slice.d.ts.map +1 -0
- package/dist/module-slice.js +2 -0
- package/dist/module-slice.js.map +1 -0
- package/dist/types.d.ts +1 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -6
package/.env.defaults
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
# PLURNK_EXECS_PYTHON3=0
|
|
8
8
|
# PLURNK_EXECS_BC=0
|
|
9
9
|
# PLURNK_EXECS_QUESTION=0
|
|
10
|
+
# Any installed runtime's tag takes the same switch.
|
|
11
|
+
# PLURNK_EXECS_<TAG>=0
|
|
10
12
|
# Maximum diagnostic characters in model-facing errors; empty/unset = unbounded.
|
|
11
13
|
PLURNK_EXECS_ERROR_DETAIL_LIMIT=512
|
|
12
14
|
# The account every subprocess runtime spawns as: a name on this host or uid[:gid]; unset = the daemon's own
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Lean framework and contract for `@plurnk/plurnk-execs-*` runtime packages. Core
|
|
4
4
|
uses it to discover runtime tags, admit calls, and stream each runtime's output
|
|
5
5
|
under its own tag-addressed scheme. The default service manifest, not this
|
|
6
|
-
framework, owns the standard installed
|
|
6
|
+
framework, owns the standard installed extensions ({§bundled-set}).
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
@@ -11,8 +11,8 @@ framework, owns the standard installed leaf set ({§bundled-set}).
|
|
|
11
11
|
npm install @plurnk/plurnk-execs
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Install executor
|
|
15
|
-
Any compatible third-party
|
|
14
|
+
Install executor extensions beside the framework to assemble a standalone host.
|
|
15
|
+
Any compatible third-party extension remains discoverable without changing the
|
|
16
16
|
framework or service.
|
|
17
17
|
|
|
18
18
|
## Documentation
|
|
@@ -82,12 +82,12 @@ acceptance is not a same-turn result. See {§executor-effect}.
|
|
|
82
82
|
|
|
83
83
|
The execution's `(target)` slot is runtime-specific:
|
|
84
84
|
|
|
85
|
-
| Runtime
|
|
85
|
+
| Runtime shape | Typical mapping |
|
|
86
86
|
| -------------- | ----------------------------------------------------------------- |
|
|
87
87
|
| Data | Target is input; body is the program (`jq`, SQLite, WebAssembly). |
|
|
88
88
|
| Executable | Target is the program; body is its stdin (shell, Python 3). |
|
|
89
89
|
|
|
90
|
-
The consumer supplies both `cwd` and a resolved `target`; the
|
|
90
|
+
The consumer supplies both `cwd` and a resolved `target`; the executor maps them
|
|
91
91
|
to its tool rather than reconstructing filesystem or scheme policy.
|
|
92
92
|
|
|
93
93
|
### Own invocation metadata
|
|
@@ -116,19 +116,18 @@ batch EOF. See [the live-input contract](SPEC.md#executor-live-input-invocation-
|
|
|
116
116
|
|
|
117
117
|
The runtime tag is also the output scheme. A subprocess result is therefore
|
|
118
118
|
read at an address such as `sh:///ab3d5678#stdout`, while a structured result may
|
|
119
|
-
be `sqlite:///f2c49a10#results`.
|
|
120
|
-
|
|
121
|
-
{§executor-output-address}.
|
|
119
|
+
be `sqlite:///f2c49a10#results`. Executors only produce channels; the consumer
|
|
120
|
+
owns storage and every later READ/FIND. See {§executor-output-address}.
|
|
122
121
|
|
|
123
122
|
## Discovery and policy
|
|
124
123
|
|
|
125
124
|
`discover(options?)` scans scoped and unscoped packages under the nearest
|
|
126
|
-
`node_modules`, applies trust before
|
|
125
|
+
`node_modules`, applies trust before importing any runtimes function, applies boot policy, and
|
|
127
126
|
returns `{ registry, packageAttributions, skipped, disabled }`. Tag collisions
|
|
128
127
|
fail hard. Static attribution is normalized once per represented package; an
|
|
129
128
|
executor may additionally decide per provider attempt whether its synchronous
|
|
130
129
|
`attributions(context)` hook returns no, one, or many opaque tags
|
|
131
|
-
({§
|
|
130
|
+
({§extension-attribution}).
|
|
132
131
|
|
|
133
132
|
| Policy | Result |
|
|
134
133
|
| ----------------------------------- | --------------------------------------------- |
|
package/SPEC.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# plurnk-execs — Specification
|
|
2
2
|
|
|
3
3
|
Author contract for `@plurnk/plurnk-execs-*` runtime packages. Core consumes
|
|
4
|
-
the framework; executor
|
|
4
|
+
the framework; executor extensions implement it.
|
|
5
5
|
|
|
6
6
|
## §executor-role Role and ownership
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ flowchart LR
|
|
|
27
27
|
|
|
28
28
|
`SubprocessExecutor` is the concrete base for command runtimes. It owns child
|
|
29
29
|
process spawning, stdout/stderr streaming, environment handoff, exit status,
|
|
30
|
-
and process-group cancellation. A subprocess
|
|
30
|
+
and process-group cancellation. A subprocess executor normally overrides only its
|
|
31
31
|
spawn recipe and availability binary.
|
|
32
32
|
|
|
33
33
|
## §executor-contract Author surface
|
|
@@ -131,9 +131,9 @@ authored READ retains its own source-scheme metadata contract.
|
|
|
131
131
|
| Stage | Contract |
|
|
132
132
|
| ----- | -------- |
|
|
133
133
|
| Preparation | Optional `prepare(input)` receives `runtime`, `body`, logical `target`, default `cwd`, and ordered raw `metadata`, before effect admission or source acquisition. It validates options without executing the program and returns `200` with a concrete `cwd` or `null`, or one universal failure. No hook means no metadata support. |
|
|
134
|
-
| Framework default | `BaseExecutor.prepare` accepts `[{"cwd": "<directory>"}]`. Relative directories resolve against the supplied default cwd; an absent override preserves it. Unknown fields, duplicates, malformed values, and nonexistent directories are refused. An unknown field's recovery names every field the run takes, the executor's own and the service's ({§service-metadata-keys}),
|
|
134
|
+
| Framework default | `BaseExecutor.prepare` accepts `[{"cwd": "<directory>"}]`. Relative directories resolve against the supplied default cwd; an absent override preserves it. Unknown fields, duplicates, malformed values, and nonexistent directories are refused. An unknown field's recovery names every field the run takes, the executor's own and the service's ({§service-metadata-keys}), and nothing more ({§diagnostic-observation}): `` Its fields are `cwd`, `args`, `stdin`, `env` and `lifetime`. `` Tools can override preparation to own different metadata. |
|
|
135
135
|
| Subprocess options | `SubprocessExecutor` additionally accepts `[{"stdin": "open"}]` ({§executor-stdin}) and `[{"args": ["arg",...]}]`. The JSON array contains strings without NUL, preserves order and empty/whitespace-containing arguments, and appends directly to the spawn argument vector without shell parsing. Inline programs retain their interpreter's usual argument conventions. |
|
|
136
|
-
| Execution | `run()` receives the prepared cwd, realized target, unchanged body, and original metadata.
|
|
136
|
+
| Execution | `run()` receives the prepared cwd, realized target, unchanged body, and original metadata. Subprocess executors use the same option parser to obtain argv; cwd is already prepared and is not resolved a second time. |
|
|
137
137
|
| Evidence | Raw metadata follows the existing transient proposal handoff, never added to proposal attrs or emitted as receipt metadata. Expected preparation failures retain the tool's Problem; malformed preparation results are internal contract failures. |
|
|
138
138
|
|
|
139
139
|
Metadata does not turn inline programs or script stdin into JSON envelopes.
|
|
@@ -172,7 +172,7 @@ batch input and EOF behavior is unchanged. The same input adapter serves `jq`.
|
|
|
172
172
|
|
|
173
173
|
A successful receipt reports `bytesAccepted` and `inputClosed`, with those facts
|
|
174
174
|
in the ordinary model-visible `detail`. It acknowledges the writable pipe, not
|
|
175
|
-
application processing. Subprocess
|
|
175
|
+
application processing. Subprocess executors inherit this
|
|
176
176
|
contract; logical executors need not offer a receiver. In particular, SQLite,
|
|
177
177
|
client-interaction tools, and MCP transports do not gain stdin through this API.
|
|
178
178
|
|
|
@@ -255,7 +255,7 @@ turn. Core owns that composed behavior in {§exec-host-proposes},
|
|
|
255
255
|
### §executor-probe Availability is per runtime tag
|
|
256
256
|
|
|
257
257
|
`probe(signal?)` reports whether this runtime tag can work in the current
|
|
258
|
-
environment. The default is `{ available: true }`;
|
|
258
|
+
environment. The default is `{ available: true }`; executors override it for
|
|
259
259
|
external binaries or required configuration. `detail` must be terse and
|
|
260
260
|
actionable because the consumer may return it with a 501 failure.
|
|
261
261
|
|
|
@@ -273,10 +273,8 @@ Core owns startup diagnostics and demand refusal in {§configuration-repair-path
|
|
|
273
273
|
|
|
274
274
|
## §executor-output-address Tag-addressed output
|
|
275
275
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
scheme face from its tag, channels, and default channel. The executor authors
|
|
279
|
-
no second scheme manifest.
|
|
276
|
+
Every available runtime receives one derived read-only scheme face from its tag,
|
|
277
|
+
channels, and default channel. The executor authors no second scheme manifest.
|
|
280
278
|
|
|
281
279
|
| Output | Model-facing address |
|
|
282
280
|
| ------------------------- | ------------------------------------------------------------------ |
|
|
@@ -323,7 +321,7 @@ be reported as successful resource publication.
|
|
|
323
321
|
`node_modules` for the exact declaration `plurnk.kind === "exec"`. It returns
|
|
324
322
|
`{ registry, packageAttributions, skipped, disabled }`, where the registry maps
|
|
325
323
|
each flat runtime tag to its declaration and package owner and the package map
|
|
326
|
-
carries the canonical attribution fact from {§
|
|
324
|
+
carries the canonical attribution fact from {§extension-attribution}.
|
|
327
325
|
|
|
328
326
|
```json
|
|
329
327
|
{
|
|
@@ -353,10 +351,10 @@ the same contract.
|
|
|
353
351
|
### §executor-installation Installed capability lifecycle
|
|
354
352
|
|
|
355
353
|
Configuration cannot enable a package that is absent from the consumer-visible
|
|
356
|
-
module graph. An
|
|
354
|
+
module graph. An exec extension must be installed under the `node_modules` found
|
|
357
355
|
from the running service before discovery can inspect its declaration. The
|
|
358
356
|
service assembles every installed member's package-owned `.env.defaults` under
|
|
359
|
-
operator configuration {§operator-config-env-defaults};
|
|
357
|
+
operator configuration {§operator-config-env-defaults}; an extension may therefore
|
|
360
358
|
ship default-disabled without transferring ownership of its key to the host.
|
|
361
359
|
|
|
362
360
|
| Package state | Effective policy and probe | Runtime result |
|
|
@@ -377,17 +375,16 @@ at boot; changing package membership or configuration requires a restart.
|
|
|
377
375
|
| ------------- | -------------------------------------------------------------------------------------------------- |
|
|
378
376
|
| `name` | Canonical runtime tag and derived output-scheme name, admitted below. |
|
|
379
377
|
| `glyph` | Optional presentation glyph. |
|
|
380
|
-
| `summary` | Required one-line description, or `{ from: "tools", description?: string }` for an exact
|
|
378
|
+
| `summary` | Required one-line description, or `{ from: "tools", description?: string }` for an exact tool inventory with an optional one-line purpose. |
|
|
381
379
|
| `invocation` | Required body and target contract, validated and normalized below. |
|
|
382
380
|
| `details` | Optional supplemental Markdown. `docs/<tag>.md` wins over the inline manifest field. |
|
|
383
|
-
| `attribution` | Published per-tag projection of the validated package declaration ({§plugin-attribution}). |
|
|
384
381
|
| `packageName` | Package that owns and default-exports the executor implementation. |
|
|
385
382
|
|
|
386
383
|
The framework validates and carries the summary source, invocation, and supplemental
|
|
387
384
|
details as separate facts. A `{ from: "tools" }` summary is valid only for a
|
|
388
385
|
runtime implementing {§executor-tool-registry}; the consumer resolves it from
|
|
389
386
|
the exact effective tool set, after capability attenuation, so a denied tool
|
|
390
|
-
cannot survive in the
|
|
387
|
+
cannot survive in the runtime's orientation line. The inventory renders as
|
|
391
388
|
one compact executable fence naming `runtime (target|...)`, with the optional
|
|
392
389
|
purpose as a trailing aside and body line breaks represented by literal `\n`;
|
|
393
390
|
an authored string remains a description, without expanding its tool inventory.
|
|
@@ -397,8 +394,8 @@ model-facing tool document from either the static invocation or the executor's e
|
|
|
397
394
|
prose. A
|
|
398
395
|
multi-tag package appears at most once in `Discovery.packageAttributions`, and
|
|
399
396
|
only when at least one of its tags survives discovery policy. An instantiated
|
|
400
|
-
executor may add attempt-time tags through the shared runtime
|
|
401
|
-
({§
|
|
397
|
+
executor may add attempt-time tags through the shared runtime `attributions` function
|
|
398
|
+
({§extension-attribution}).
|
|
402
399
|
|
|
403
400
|
A package `docs/<tag>.md` remains a valid standalone Markdown document. When
|
|
404
401
|
its first line is the exact authoring title `# <tag>`, discovery removes that
|
|
@@ -436,13 +433,13 @@ and exclusive buckets and parse as exactly one executor fence for the runtime. A
|
|
|
436
433
|
signature is presentation, not an executable example; dispatch still enforces
|
|
437
434
|
the invocation's body and target declarations. An invocation declaration
|
|
438
435
|
with a missing field, unknown field, invalid combination, multiline role, or
|
|
439
|
-
wrong primitive type is a fail-hard
|
|
440
|
-
registration. Static, dynamic
|
|
436
|
+
wrong primitive type is a fail-hard extension contract violation before
|
|
437
|
+
registration. Static, dynamic, and module-owned runtimes use this same
|
|
441
438
|
validation path. The enclosing runtime declaration is closed to `name`,
|
|
442
439
|
`glyph`, `summary`, `invocation`, and `details`; unknown or mistyped metadata is a
|
|
443
440
|
contract violation rather than silently ignored teaching.
|
|
444
441
|
|
|
445
|
-
§executor-tool-registry A runtime representing a finite
|
|
442
|
+
§executor-tool-registry A runtime representing a finite set of exact tools
|
|
446
443
|
may implement `toolRegistry()` and return one immutable snapshot:
|
|
447
444
|
|
|
448
445
|
```ts
|
|
@@ -461,7 +458,7 @@ Each entry owns one canonical literal target, one nonempty one-line summary,
|
|
|
461
458
|
its complete invocation contract, and optional supplemental Markdown. Its
|
|
462
459
|
invocation declares that target bucket as required and
|
|
463
460
|
`literal`; duplicate targets, divergent example targets, or malformed
|
|
464
|
-
invocations fail the
|
|
461
|
+
invocations fail the extension boundary. The exact target must round-trip through
|
|
465
462
|
the language's canonical target-slot escaping. The closed `tools` set replaces the
|
|
466
463
|
runtime's generic invocation for model presentation and dispatch admission:
|
|
467
464
|
an empty set exposes and admits no target, with no generic fallback. Core uses
|
|
@@ -476,12 +473,12 @@ I/O boundary rather than making packet assembly perform network discovery.
|
|
|
476
473
|
|
|
477
474
|
§executor-tool-catalog A registry may carry each tool's original JSON object as
|
|
478
475
|
`definition`. Definitions are supplied for every tool or none; a partial set or
|
|
479
|
-
non-object definition fails the
|
|
476
|
+
non-object definition fails the extension boundary. The adapter owns the definition's
|
|
480
477
|
format and correspondence to the invocation. Core preserves it without interpreting
|
|
481
478
|
or augmenting its fields. Filtering, refresh, and withdrawal operate on the same
|
|
482
479
|
registered tool, never a separately maintained catalog.
|
|
483
480
|
The common renderer exposes `{"tools":[...definitions]}` in declaration order as
|
|
484
|
-
an on-demand sibling `.json` catalog linked from the
|
|
481
|
+
an on-demand sibling `.json` catalog linked from the runtime document.
|
|
485
482
|
Definitions remain inspection data, not an additional source of execution authority.
|
|
486
483
|
Registries without definitions and empty registries publish no catalog.
|
|
487
484
|
|
|
@@ -492,7 +489,7 @@ invocation witness in plain text, with the authored description as an
|
|
|
492
489
|
operation aside on its invocation line and a literal `\n` before a
|
|
493
490
|
one-line body. The bundled subprocess interpreters declare concrete inline-program
|
|
494
491
|
examples; their catalog summaries include the program body without a script target.
|
|
495
|
-
An exact registry instead renders one compact
|
|
492
|
+
An exact registry instead renders one compact runtime document whose Summary is
|
|
496
493
|
authored or derived from its effective tools. Its H2 `Tools` contains one
|
|
497
494
|
executable fence per tool, naming the runtime and exact target, with its aside
|
|
498
495
|
and input preview. A schema-backed invocation
|
|
@@ -510,10 +507,11 @@ field takes a minimal default value matching its declared JSON type: `""` for st
|
|
|
510
507
|
`0` for number or integer, `false` for boolean, `[]` for array, and `{}` for object;
|
|
511
508
|
an undeclared type is `null`. A required field declaring a closed set of strings
|
|
512
509
|
(`enum`) uses its first choice as its default value, so common invocations require
|
|
513
|
-
no verb guesswork (#762).
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
510
|
+
no verb guesswork (#762). A top-level `anyOf` contributes its first branch's required
|
|
511
|
+
fields, so a schema that requires one of several inputs previews one valid form. Nested
|
|
512
|
+
objects and arrays stay empty; optional fields, references, other constraints, and other
|
|
513
|
+
conditional branches are not interpreted. When declared top-level properties exceed the
|
|
514
|
+
required set, the aside signals their presence with `(+N opt)`.
|
|
517
515
|
The preview is not a complete signature or validation promise. Its schema link
|
|
518
516
|
provides the complete original schema, including descriptions, definitions,
|
|
519
517
|
references, and constraints; repository-owned referenced schemas are included
|
|
@@ -525,10 +523,10 @@ Runtime-name admission is one identity contract:
|
|
|
525
523
|
| Constraint | Contract |
|
|
526
524
|
| ----------- | ------------------------------------------------------------------------------------------------------------- |
|
|
527
525
|
| Syntax | `[a-z][a-z0-9+.-]*`: canonical lowercase RFC-scheme syntax that is also an admitted execution identifier. |
|
|
528
|
-
| Identity | The exact name is the fence name, registry key,
|
|
526
|
+
| Identity | The exact name is the fence name, registry key, and output URI-scheme name. |
|
|
529
527
|
| Reservation | `only` is unavailable because `PLURNK_EXECS_ONLY` owns that case-insensitive configuration key. |
|
|
530
528
|
|
|
531
|
-
Installed static declarations, trusted dynamic
|
|
529
|
+
Installed static declarations, trusted dynamic declarations, and
|
|
532
530
|
module-owned declarations use the same validator before detail lookup,
|
|
533
531
|
policy filtering, or registry mutation. A malformed claimed declaration fails
|
|
534
532
|
hard and names its package or module boundary; discovery still ignores an
|
|
@@ -548,13 +546,13 @@ hook, or non-array result is a fail-hard contract violation by the admitted
|
|
|
548
546
|
package. The hook enumerates configuration; reachability remains the per-tag
|
|
549
547
|
probe's job.
|
|
550
548
|
|
|
551
|
-
### §executor-trust Trust precedes executable discovery
|
|
549
|
+
### §executor-trust Trust precedes executable discovery code
|
|
552
550
|
|
|
553
|
-
The shared
|
|
554
|
-
imported. A withheld package executes no
|
|
551
|
+
The shared extension trust predicate runs before a dynamic runtime module is
|
|
552
|
+
imported. A withheld package executes no code and is returned in
|
|
555
553
|
`Discovery.skipped` for consumer presentation. Discovery silently ignores a
|
|
556
554
|
package that does not form a readable executor manifest; once an admitted
|
|
557
|
-
package declares
|
|
555
|
+
package declares a runtimes function, its broken function is surfaced rather than
|
|
558
556
|
swallowed.
|
|
559
557
|
|
|
560
558
|
### §executor-policy Subtractive runtime policy
|
|
@@ -581,11 +579,11 @@ the framework does not define a second Active/Available state machine.
|
|
|
581
579
|
## §executor-default-inventory Current installed set
|
|
582
580
|
|
|
583
581
|
The default `@plurnk/plurnk-service` composition installs the following
|
|
584
|
-
`@plurnk/plurnk-execs-<
|
|
585
|
-
|
|
582
|
+
`@plurnk/plurnk-execs-<name>` packages. The lean framework owns no dependency
|
|
583
|
+
edge to an extension. A probe and consumer policy still determine which declared
|
|
586
584
|
tags are offered in a particular workspace ({§bundled-set}).
|
|
587
585
|
|
|
588
|
-
|
|
|
586
|
+
| Package | Declared tags | Effect by target | Channels / mimetype |
|
|
589
587
|
| -------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------- | ---------------------------------- |
|
|
590
588
|
| `common` | `sh`, `node`, `python3`, `perl`, `ruby`, `lua`, `deno`, `bun`, `tcl`, `bc`, `awk` | `host` | `stdout`, `stderr` / `text/stream` |
|
|
591
589
|
| `jq` | `jq` | no target `pure`; target `read` | `results` / `application/jsonl` |
|
|
@@ -620,19 +618,19 @@ interface SpawnArgs {
|
|
|
620
618
|
| `sh` | Shell command line. |
|
|
621
619
|
| `node` | `node -e <body>`. |
|
|
622
620
|
| `python3` | `python3 -c <body>`. |
|
|
623
|
-
| Other default-base runtime | `<runtime> -c <body>`; specialized
|
|
621
|
+
| Other default-base runtime | `<runtime> -c <body>`; specialized executors override this fallback. |
|
|
624
622
|
|
|
625
|
-
With a target, the target is the program and the body is its stdin. Each
|
|
623
|
+
With a target, the target is the program and the body is its stdin. Each executor
|
|
626
624
|
uses its interpreter's file form (`awk -f <target>`, for example). The working
|
|
627
625
|
directory is the consumer's `cwd` — the project root, or the directory a
|
|
628
626
|
`[{"cwd": "<directory>"}]` block on the heading names ({§exec-executor-slot}); a
|
|
629
627
|
directory is never a target. Data runtimes define their own declared target
|
|
630
628
|
kind and role.
|
|
631
629
|
|
|
632
|
-
Subprocess
|
|
630
|
+
Subprocess executors inherit stdout/stderr streaming, scoped-environment handoff,
|
|
633
631
|
availability probing, operation results, exit code, and process-group
|
|
634
632
|
cancellation. `CommandSyntaxError` during spawn translation becomes a durable
|
|
635
|
-
400 `invalid-command`; other translation exceptions remain
|
|
633
|
+
400 `invalid-command`; other translation exceptions remain extension contract
|
|
636
634
|
violations for the consumer to contain.
|
|
637
635
|
|
|
638
636
|
### §executor-cancellation Cancellation and consumer timing
|
|
@@ -654,7 +652,16 @@ The consumer:
|
|
|
654
652
|
5. validates the terminal result and closes every declared channel and subscription coherently; and
|
|
655
653
|
6. projects stream observations and later reads without calling back into the executor.
|
|
656
654
|
|
|
657
|
-
##
|
|
655
|
+
## Module slice
|
|
656
|
+
|
|
657
|
+
§executor-module-slice **A host binds to `Executor`, the contract `BaseExecutor` implements, not to the
|
|
658
|
+
class.** A daemon module contributes runtimes as `RuntimeRegistration`s: a namespace owner, the
|
|
659
|
+
runtime declaration ({§executor-runtime-declaration}), the executor, its availability, and an
|
|
660
|
+
optional scheme facet ({§scheme-module-slice}). The host arbitrates the namespace
|
|
661
|
+
({§extension-namespace-arbitration}) and publishes each registration; these types complete the
|
|
662
|
+
module contract's slices ({§module-seam-slices}).
|
|
663
|
+
|
|
664
|
+
## Forbidden in executor extensions
|
|
658
665
|
|
|
659
666
|
- Direct database, subscription, packet, or wake access.
|
|
660
667
|
- Imports from `@plurnk/plurnk-service/*`.
|
|
@@ -662,4 +669,4 @@ The consumer:
|
|
|
662
669
|
- Output through `console.*` instead of declared channels.
|
|
663
670
|
- Writes or state transitions for undeclared channels.
|
|
664
671
|
- Ignoring `args.signal` at a cancellable boundary.
|
|
665
|
-
- A process or network mechanism unrelated to the
|
|
672
|
+
- A process or network mechanism unrelated to the executor's declared runtime domain.
|
package/dist/BaseExecutor.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SchemeHandler, SchemeManifest } from "@plurnk/plurnk-schemes";
|
|
2
2
|
import type { ChannelDecl, Effect, ExecArgs, ExecInput, ExecPreparation, ExecResult, ExecutorMetadata, RuntimeAvailability } from "./types.ts";
|
|
3
|
-
|
|
3
|
+
import type { Executor } from "./module-slice.ts";
|
|
4
|
+
export default abstract class BaseExecutor implements SchemeHandler, Executor {
|
|
4
5
|
readonly runtime: string;
|
|
5
6
|
readonly glyph: string;
|
|
6
7
|
constructor({ runtime, glyph }: ExecutorMetadata);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseExecutor.d.ts","sourceRoot":"","sources":["../src/BaseExecutor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseExecutor.d.ts","sourceRoot":"","sources":["../src/BaseExecutor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE/I,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAYlD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,YAAa,YAAW,aAAa,EAAE,QAAQ;IACzE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,gBAAgB,EAG/C;IAaD,IAAI,QAAQ,IAAI,cAAc,CAU7B;IAGD,IAAI,MAAM,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,SAAS,CAE9C;IAID,IAAI,cAAc,IAAI,MAAM,CAE3B;IAGD,IAAI,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAEpC;IAOD,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;IAE/D,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC,CAElD;IAOD,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAmB5C,KAAK,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAE/D;IAQD,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAErC;CACJ"}
|
package/dist/BaseExecutor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseExecutor.js","sourceRoot":"","sources":["../src/BaseExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseExecutor.js","sourceRoot":"","sources":["../src/BaseExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AAGzD,gFAAgF;AAChF,6EAA6E;AAC7E,6EAA6E;AAC7E,yEAAyE;AACzE,EAAE;AACF,2EAA2E;AAC3E,6EAA6E;AAC7E,2EAA2E;AAC3E,4DAA4D;AAC5D,8FAA8F;AAC9F,MAAM,CAAC,OAAO,OAAgB,YAAY;IAC7B,OAAO,CAAS;IAChB,KAAK,CAAS;IAEvB,YAAY,EAAE,OAAO,EAAE,KAAK,EAAoB;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;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IAC7E,iBAAiB;IACjB,KAAK,CAAC,KAAK,CAAC,OAAqB;QAC7B,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IAC/B,CAAC;IAED,4EAA4E;IAC5E,6EAA6E;IAC7E,8EAA8E;IAC9E,yEAAyE;IACzE,wEAAwE;IACxE,gEAAgE;IAChE,MAAM,CAAC,OAAsB;QACzB,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|
|
@@ -39,13 +39,13 @@ export default class InvocationMetadata {
|
|
|
39
39
|
}
|
|
40
40
|
return { options };
|
|
41
41
|
}
|
|
42
|
-
// {§executor-metadata} — an unsupported field's
|
|
43
|
-
// executor's own and the service's ({§service-metadata-keys})
|
|
44
|
-
//
|
|
42
|
+
// {§executor-metadata} — an unsupported field's recovery names every field the run takes, the
|
|
43
|
+
// executor's own and the service's ({§service-metadata-keys}), and no guess at the field the
|
|
44
|
+
// author meant ({§diagnostic-observation}).
|
|
45
45
|
static #fields(accepted) {
|
|
46
46
|
const names = ["cwd", ...(accepted.args === true ? ["args"] : []), ...(accepted.stdin === true ? ["stdin"] : []), ...MetadataOptions.SERVICE_KEYS]
|
|
47
47
|
.map((name) => `\`${name}\``);
|
|
48
|
-
return `Its fields are ${names.slice(0, -1).join(", ")} and ${names.at(-1)}
|
|
48
|
+
return `Its fields are ${names.slice(0, -1).join(", ")} and ${names.at(-1)}.`;
|
|
49
49
|
}
|
|
50
50
|
static async prepare(input, accepted = {}) {
|
|
51
51
|
const parsed = this.parse(input, accepted);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvocationMetadata.js","sourceRoot":"","sources":["../src/InvocationMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAqB,MAAM,wBAAwB,CAAC;AAOrF,gFAAgF;AAChF,+F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AC;IACX,CAAC;CACJ"}
|
|
@@ -17,7 +17,7 @@ const overrideSignal = (reason) => {
|
|
|
17
17
|
return typeof sig === "string" && sig.startsWith("SIG") ? sig : null;
|
|
18
18
|
};
|
|
19
19
|
// Loop-end housekeeping: an abort reason marked `{ housekeeping: true, graceMs }`
|
|
20
|
-
// (the consumer's
|
|
20
|
+
// (the consumer's loop-completion teardown) escalates the polite SIGHUP to a hard
|
|
21
21
|
// SIGKILL after `graceMs` — the consumer's grace, sourced from its config, never
|
|
22
22
|
// a magic number here. Absent → null → no reap (a plain KILL is fire-and-forget).
|
|
23
23
|
const housekeepingGrace = (reason) => {
|
|
@@ -79,7 +79,7 @@ export default class SubprocessExecutor extends BaseExecutor {
|
|
|
79
79
|
// interpreter table (e.g. the common-REPL harness) override this — and so
|
|
80
80
|
// inherit run()'s streaming + process-group abort handling rather than
|
|
81
81
|
// reimplementing it. When `target` is set, the body becomes the program's
|
|
82
|
-
// stdin ({§executor-subprocess-routing}); the
|
|
82
|
+
// stdin ({§executor-subprocess-routing}); the extension maps it and the parent
|
|
83
83
|
// parses nothing.
|
|
84
84
|
spawnArgs(runtime, command, target) {
|
|
85
85
|
return Runtime.resolve(runtime, command, target);
|
|
@@ -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,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAC7C,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM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QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YACtC,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
package/dist/discover.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../src/discover.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAyB,MAAM,YAAY,CAAC;AA8BpF,MAAM,CAAC,OAAO,OAAO,QAAQ;;IACzB,OAAa,IAAI,CAAC,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../src/discover.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAyB,MAAM,YAAY,CAAC;AA8BpF,MAAM,CAAC,OAAO,OAAO,QAAQ;;IACzB,OAAa,IAAI,CAAC,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,SAAS,CAAC,CAuCnE;CAqFJ"}
|
package/dist/discover.js
CHANGED
|
@@ -22,15 +22,15 @@ import RuntimeDeclaration from "./RuntimeDeclaration.js";
|
|
|
22
22
|
// not just `@plurnk/*`. Tests and unusual layouts can pass `packageDirs`
|
|
23
23
|
// explicitly to skip the scan.
|
|
24
24
|
//
|
|
25
|
-
// Trust precedes executable
|
|
25
|
+
// Trust precedes executable discovery code ({§executor-trust}). A package is recognized
|
|
26
26
|
// only when its manifest declares `plurnk.kind === "exec"`; tags come from:
|
|
27
27
|
// - STATIC: `plurnk.runtimes: { name, glyph?, summary, invocation, details? }[]` —
|
|
28
28
|
// tags known at publish time.
|
|
29
|
-
// - DYNAMIC: `plurnk.runtimesModule: "<export-subpath>"` — a trusted
|
|
29
|
+
// - DYNAMIC: `plurnk.runtimesModule: "<export-subpath>"` — a trusted runtimes function that
|
|
30
30
|
// returns deployment-configured declarations ({§executor-dynamic-runtimes}).
|
|
31
31
|
// Each decl registers its tag separately; one package can claim many tags
|
|
32
|
-
// backed by the same default export. Summary, invocation, details
|
|
33
|
-
//
|
|
32
|
+
// backed by the same default export. Summary, invocation, and details are
|
|
33
|
+
// defined by {§executor-runtime-declaration}.
|
|
34
34
|
//
|
|
35
35
|
// Tags occupy one flat namespace. Two packages claiming one tag are a fail-hard
|
|
36
36
|
// installation ambiguity.
|
|
@@ -45,16 +45,15 @@ export default class Discover {
|
|
|
45
45
|
const manifest = await Discover.#readExecManifest(dir);
|
|
46
46
|
if (manifest === null)
|
|
47
47
|
continue; // not an exec package
|
|
48
|
-
// Trust is enforced before any dynamic
|
|
48
|
+
// Trust is enforced before any dynamic runtimes function is imported
|
|
49
49
|
// ({§executor-trust}).
|
|
50
50
|
if (!Meta.isTrusted(manifest.packageName)) {
|
|
51
51
|
skipped.add(manifest.packageName);
|
|
52
52
|
continue;
|
|
53
53
|
}
|
|
54
54
|
const tags = Meta.normalizeAttribution(manifest.plurnk.attribution, manifest.packageName);
|
|
55
|
-
const attribution = Discover.#attributionProjection(manifest.plurnk.attribution, tags);
|
|
56
55
|
let admitted = false;
|
|
57
|
-
for (const info of await Discover.#readExecInfos(dir, manifest
|
|
56
|
+
for (const info of await Discover.#readExecInfos(dir, manifest)) {
|
|
58
57
|
// Boot policy removes a tag before registration; consumer-owned
|
|
59
58
|
// layers can reuse the same parser ({§executor-policy}).
|
|
60
59
|
if (!Policy.isEnabled(info.runtime)) {
|
|
@@ -80,14 +79,14 @@ export default class Discover {
|
|
|
80
79
|
const nm = Meta.nearestNodeModules(cwd) ?? path.join(path.resolve(cwd), "node_modules");
|
|
81
80
|
return (await Meta.packageDirs(nm)).map((c) => c.dir).toSorted();
|
|
82
81
|
}
|
|
83
|
-
// The manifest of a declared executor package ({§
|
|
82
|
+
// The manifest of a declared executor package ({§extension-manifest-read}); discover() silently
|
|
84
83
|
// skips everything else (not "skipped by trust", just not an exec package).
|
|
85
84
|
static async #readExecManifest(dir) {
|
|
86
85
|
const manifest = await Meta.readManifest(dir, "exec");
|
|
87
86
|
return manifest === null ? null : { packageName: manifest.packageName ?? "", plurnk: manifest.plurnk };
|
|
88
87
|
}
|
|
89
88
|
// Produce one ExecInfo per static or dynamic runtime declaration.
|
|
90
|
-
static async #readExecInfos(dir, { packageName, plurnk }
|
|
89
|
+
static async #readExecInfos(dir, { packageName, plurnk }) {
|
|
91
90
|
const infos = [];
|
|
92
91
|
for (const raw of await Discover.#runtimeDecls(dir, packageName, plurnk)) {
|
|
93
92
|
const decl = RuntimeDeclaration.assert(raw, packageName);
|
|
@@ -103,18 +102,10 @@ export default class Discover {
|
|
|
103
102
|
packageName,
|
|
104
103
|
...(decl.resourcesPath === undefined ? {} : { resourcesPath: decl.resourcesPath }),
|
|
105
104
|
...(decl.expandTools === undefined ? {} : { expandTools: decl.expandTools }),
|
|
106
|
-
...(attribution !== undefined ? { attribution } : {}),
|
|
107
105
|
});
|
|
108
106
|
}
|
|
109
107
|
return infos;
|
|
110
108
|
}
|
|
111
|
-
// The package map is canonical. This preserves the shipped descriptor shape
|
|
112
|
-
// without preserving a second validation policy.
|
|
113
|
-
static #attributionProjection(raw, tags) {
|
|
114
|
-
if (raw === undefined || raw === null)
|
|
115
|
-
return undefined;
|
|
116
|
-
return typeof raw === "string" ? raw : [...tags];
|
|
117
|
-
}
|
|
118
109
|
// Static declarations win over a dynamic export when both are present
|
|
119
110
|
// ({§executor-dynamic-runtimes}).
|
|
120
111
|
static async #runtimeDecls(dir, packageName, plurnk) {
|
|
@@ -125,12 +116,12 @@ export default class Discover {
|
|
|
125
116
|
return Discover.#loadDynamicRuntimes(dir, packageName, mod);
|
|
126
117
|
return [];
|
|
127
118
|
}
|
|
128
|
-
// Import an admitted package's
|
|
119
|
+
// Import an admitted package's runtimes function through its export map. Its loading,
|
|
129
120
|
// shape, execution, and result failures are fail-hard
|
|
130
121
|
// ({§executor-dynamic-runtimes}).
|
|
131
122
|
static async #loadDynamicRuntimes(dir, packageName, rel) {
|
|
132
123
|
if (!rel.startsWith("./"))
|
|
133
|
-
throw new Error(`exec runtimes
|
|
124
|
+
throw new Error(`exec runtimes function invalid: ${packageName} -> ${rel} must be an export subpath like "./runtimes"`);
|
|
134
125
|
// Self-reference resolution: the subpath resolves through the package's OWN export
|
|
135
126
|
// map anchored at its root — conditions apply (plurnk-dev → src in a workspace
|
|
136
127
|
// checkout; dist when published), and a package needn't be installed to resolve.
|
|
@@ -140,28 +131,28 @@ export default class Discover {
|
|
|
140
131
|
href = pathToFileURL(selfRequire.resolve(`${packageName}${rel.slice(1)}`)).href;
|
|
141
132
|
}
|
|
142
133
|
catch (cause) {
|
|
143
|
-
throw new Error(`exec runtimes
|
|
134
|
+
throw new Error(`exec runtimes function unloadable: ${packageName} -> ${rel}`, { cause });
|
|
144
135
|
}
|
|
145
136
|
let mod;
|
|
146
137
|
try {
|
|
147
138
|
mod = await import(__rewriteRelativeImportExtension(href));
|
|
148
139
|
}
|
|
149
140
|
catch (cause) {
|
|
150
|
-
throw new Error(`exec runtimes
|
|
141
|
+
throw new Error(`exec runtimes function unloadable: ${packageName} -> ${rel}`, { cause });
|
|
151
142
|
}
|
|
152
|
-
const
|
|
153
|
-
if (typeof
|
|
154
|
-
throw new Error(`exec runtimes
|
|
143
|
+
const runtimes = mod.runtimes ?? mod.default;
|
|
144
|
+
if (typeof runtimes !== "function") {
|
|
145
|
+
throw new Error(`exec runtimes function invalid: ${packageName} -> ${rel} must export 'runtimes' (or default) as a function`);
|
|
155
146
|
}
|
|
156
147
|
let decls;
|
|
157
148
|
try {
|
|
158
|
-
decls = await
|
|
149
|
+
decls = await runtimes();
|
|
159
150
|
}
|
|
160
151
|
catch (cause) {
|
|
161
|
-
throw new Error(`exec runtimes
|
|
152
|
+
throw new Error(`exec runtimes function threw: ${packageName} -> ${rel}`, { cause });
|
|
162
153
|
}
|
|
163
154
|
if (!Array.isArray(decls)) {
|
|
164
|
-
throw new Error(`exec runtimes
|
|
155
|
+
throw new Error(`exec runtimes function returned a non-array: ${packageName} -> ${rel}`);
|
|
165
156
|
}
|
|
166
157
|
return decls;
|
|
167
158
|
}
|
package/dist/discover.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.js","sourceRoot":"","sources":["../src/discover.ts"],"names":[],"mappings":";;;;;;;;AAAA,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;AAEvC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AAUzD,uEAAuE;AACvE,8EAA8E;AAC9E,gFAAgF;AAChF,EAAE;AACF,4EAA4E;AAC5E,6EAA6E;AAC7E,yEAAyE;AACzE,+BAA+B;AAC/B,EAAE;AACF
|
|
1
|
+
{"version":3,"file":"discover.js","sourceRoot":"","sources":["../src/discover.ts"],"names":[],"mappings":";;;;;;;;AAAA,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;AAEvC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AAUzD,uEAAuE;AACvE,8EAA8E;AAC9E,gFAAgF;AAChF,EAAE;AACF,4EAA4E;AAC5E,6EAA6E;AAC7E,yEAAyE;AACzE,+BAA+B;AAC/B,EAAE;AACF,wFAAwF;AACxF,4EAA4E;AAC5E,qFAAqF;AACrF,kCAAkC;AAClC,8FAA8F;AAC9F,iFAAiF;AACjF,0EAA0E;AA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AAC;YACb,MAAM,IAAI,KAAK,CAAC,sCAAsC,WAAW,OAAO,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC9F,CAAC;QACD,IAAI,GAA4B,CAAC;QACjC,IAAI,CAAC;YACD,GAAG,GAAG,MAAM,MAAM,kCAAC,IAAI,EAAC,CAAC;QAC7B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,sCAAsC,WAAW,OAAO,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC9F,CAAC;QACD,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,OAAO,CAAC;QAC7C,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,mCAAmC,WAAW,OAAO,GAAG,oDAAoD,CAAC,CAAC;QAClI,CAAC;QACD,IAAI,KAAc,CAAC;QACnB,IAAI,CAAC;YACD,KAAK,GAAG,MAAO,QAA0B,EAAE,CAAC;QAChD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,iCAAiC,WAAW,OAAO,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QACzF,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,gDAAgD,WAAW,OAAO,GAAG,EAAE,CAAC,CAAC;QAC7F,CAAC;QACD,OAAO,KAAsB,CAAC;IAClC,CAAC;CACJ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,8 @@ export { default as Policy } from "./policy.ts";
|
|
|
17
17
|
export { Results } from "@plurnk/plurnk-schemes";
|
|
18
18
|
export type { ProblemDetails, SchemeResult } from "@plurnk/plurnk-schemes";
|
|
19
19
|
export { renderJsonResult } from "@plurnk/plurnk-contracts";
|
|
20
|
-
export type { ChannelState, ChannelDecl, ExecutorMetadata, ExecArgs, ExecInput, ExecInputMessage, ExecInputReceiver, ExecPreparation, ExecResult, Effect, RuntimeAvailability, RuntimeBodyDecl, RuntimeTargetKind, RuntimeTargetDecl, RuntimeInvocationExample, RuntimeInvocation as RuntimeInvocationDecl, RuntimeRegisteredTool, RuntimeToolRegistry, RuntimeSummaryDecl, RuntimeDecl,
|
|
20
|
+
export type { ChannelState, ChannelDecl, ExecutorMetadata, ExecArgs, ExecInput, ExecInputMessage, ExecInputReceiver, ExecPreparation, ExecResult, Effect, RuntimeAvailability, RuntimeBodyDecl, RuntimeTargetKind, RuntimeTargetDecl, RuntimeInvocationExample, RuntimeInvocation as RuntimeInvocationDecl, RuntimeRegisteredTool, RuntimeToolRegistry, RuntimeSummaryDecl, RuntimeDecl, RuntimesFunction, ExecInfo, ExecRegistry, Discovery, DiscoverOptions, SpawnArgs, } from "./types.ts";
|
|
21
|
+
export type { Executor, RuntimeRegistration } from "./module-slice.ts";
|
|
21
22
|
export type { Notice, NoticeLevel, ContentOffset, LogCoordinate } from "./Notice.ts";
|
|
22
|
-
export type {
|
|
23
|
+
export type { ExtensionAttributionContext, ExtensionAttributionDeclaration, ExtensionAttributionSource, } from "@plurnk/plurnk-meta";
|
|
23
24
|
//# 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;AAGrC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;A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AiB,EACjB,eAAe,EACf,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,IAAI,qBAAqB,EAC1C,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,eAAe,EACf,SAAS,GACZ,MAAM,YAAY,CAAC;AAEpB,YAAY,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGvE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACrF,YAAY,EACR,2BAA2B,EAC3B,+BAA+B,EAC/B,0BAA0B,GAC7B,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ export const discover = Discover.scan;
|
|
|
22
22
|
// cascade is byte-identical at both tiers.
|
|
23
23
|
export { default as Policy } from "./policy.js";
|
|
24
24
|
// Universal operation-result helpers. Executors return the same result shape as
|
|
25
|
-
// schemes; the consuming daemon validates it at the
|
|
25
|
+
// schemes; the consuming daemon validates it at the extension boundary.
|
|
26
26
|
export { Results } from "@plurnk/plurnk-schemes";
|
|
27
27
|
export { renderJsonResult } from "@plurnk/plurnk-contracts";
|
|
28
28
|
//# 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;AAErC,oBAAoB;AACpB,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,C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AC;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAElD,2EAA2E;AAC3E,8EAA8E;AAC9E,4DAA4D;AAC5D,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC;AAEtC,kFAAkF;AAClF,+EAA+E;AAC/E,+EAA+E;AAC/E,2CAA2C;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAEhD,gFAAgF;AAChF,wEAAwE;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { RuntimeSchemeFacet, SchemeManifest } from "@plurnk/plurnk-schemes";
|
|
2
|
+
import type { ChannelDecl, Effect, ExecArgs, ExecInput, ExecPreparation, ExecResult, RuntimeAvailability, RuntimeDecl, RuntimeToolRegistry } from "./types.ts";
|
|
3
|
+
export interface Executor {
|
|
4
|
+
readonly runtime: string;
|
|
5
|
+
readonly glyph: string;
|
|
6
|
+
get manifest(): SchemeManifest;
|
|
7
|
+
get defaultChannel(): string;
|
|
8
|
+
get channels(): Readonly<Record<string, ChannelDecl>>;
|
|
9
|
+
readonly publishedChannel?: string | null;
|
|
10
|
+
prepare?(input: ExecInput): Promise<ExecPreparation>;
|
|
11
|
+
run(args: ExecArgs): Promise<ExecResult>;
|
|
12
|
+
probe(signal?: AbortSignal): Promise<RuntimeAvailability>;
|
|
13
|
+
effect(target: string | null): Effect;
|
|
14
|
+
toolRegistry?(): RuntimeToolRegistry;
|
|
15
|
+
}
|
|
16
|
+
export interface RuntimeRegistration {
|
|
17
|
+
readonly namespaceOwner: string;
|
|
18
|
+
readonly decl: RuntimeDecl;
|
|
19
|
+
readonly executor: Executor;
|
|
20
|
+
readonly availability: RuntimeAvailability;
|
|
21
|
+
readonly scheme?: RuntimeSchemeFacet;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=module-slice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-slice.d.ts","sourceRoot":"","sources":["../src/module-slice.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EACR,WAAW,EACX,MAAM,EACN,QAAQ,EACR,SAAS,EACT,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACtB,MAAM,YAAY,CAAC;AAKpB,MAAM,WAAW,QAAQ;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,IAAI,QAAQ,IAAI,cAAc,CAAC;IAC/B,IAAI,cAAc,IAAI,MAAM,CAAC;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;IACtD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,OAAO,CAAC,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IACrD,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAGzC,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAG1D,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;IACtC,YAAY,CAAC,IAAI,mBAAmB,CAAC;CACxC;AAGD,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-slice.js","sourceRoot":"","sources":["../src/module-slice.ts"],"names":[],"mappings":""}
|
package/dist/types.d.ts
CHANGED
|
@@ -107,7 +107,6 @@ export interface ExecInfo {
|
|
|
107
107
|
resourcesPath?: string;
|
|
108
108
|
expandTools?: boolean;
|
|
109
109
|
packageName: string;
|
|
110
|
-
attribution?: string | string[];
|
|
111
110
|
}
|
|
112
111
|
export interface RuntimeDecl {
|
|
113
112
|
name: string;
|
|
@@ -118,7 +117,7 @@ export interface RuntimeDecl {
|
|
|
118
117
|
resourcesPath?: string;
|
|
119
118
|
expandTools?: boolean;
|
|
120
119
|
}
|
|
121
|
-
export type
|
|
120
|
+
export type RuntimesFunction = () => RuntimeDecl[] | Promise<RuntimeDecl[]>;
|
|
122
121
|
export type ExecRegistry = ReadonlyMap<string, ExecInfo>;
|
|
123
122
|
export interface Discovery {
|
|
124
123
|
registry: ExecRegistry;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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AC,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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plurnk/plurnk-execs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Framework + contract for the @plurnk/plurnk-execs-* runtime executor packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plurnk",
|
|
@@ -50,9 +50,10 @@
|
|
|
50
50
|
"prepublishOnly": "npm audit --audit-level=moderate && npm test"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@plurnk/plurnk-contracts": "
|
|
54
|
-
"@plurnk/plurnk-parser": "
|
|
55
|
-
"@plurnk/plurnk-meta": "
|
|
56
|
-
"@plurnk/plurnk-schemes": "
|
|
57
|
-
}
|
|
53
|
+
"@plurnk/plurnk-contracts": "^3.0.1",
|
|
54
|
+
"@plurnk/plurnk-parser": "^3.0.1",
|
|
55
|
+
"@plurnk/plurnk-meta": "^2.0.0",
|
|
56
|
+
"@plurnk/plurnk-schemes": "^3.0.0"
|
|
57
|
+
},
|
|
58
|
+
"gitHead": "9a63339d5a4db00f767a55407e0117190fa55f39"
|
|
58
59
|
}
|