@plurnk/plurnk-execs 0.4.43 → 1.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 +12 -0
- package/SPEC.md +4 -4
- package/dist/advertise.d.ts +1 -1
- package/dist/advertise.d.ts.map +1 -1
- package/dist/advertise.js +2 -3
- package/dist/advertise.js.map +1 -1
- package/dist/discover.d.ts.map +1 -1
- package/dist/discover.js +29 -54
- package/dist/discover.js.map +1 -1
- package/package.json +14 -9
package/.env.defaults
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# --- @plurnk/plurnk-execs : runtime registration policy (SPEC §3.3) ---
|
|
2
|
+
# Purely subtractive: these only ever REMOVE tags from the registered set — there
|
|
3
|
+
# is no force-enable verb. Unset ⇒ every discovered runtime is registered. This
|
|
4
|
+
# package sets no operative default; the comments below ARE the operator docs.
|
|
5
|
+
|
|
6
|
+
# Allowlist: register ONLY these tags (comma-separated); every other tag is off.
|
|
7
|
+
# PLURNK_EXECS_ONLY=sh,jq,search
|
|
8
|
+
|
|
9
|
+
# Per-tag kill-switch (case-insensitive): set any registered tag to 0 to drop it.
|
|
10
|
+
# Absent ⇒ the runtime stays enabled. e.g.:
|
|
11
|
+
# PLURNK_EXECS_PYTHON=0
|
|
12
|
+
# PLURNK_EXECS_BC=0
|
package/SPEC.md
CHANGED
|
@@ -144,12 +144,12 @@ Each entry's optional **`documentation`** is full markdown — the flags, modes,
|
|
|
144
144
|
|
|
145
145
|
### §3.1 Dynamic runtimes (per-deployment tags)
|
|
146
146
|
|
|
147
|
-
A package whose tags are not known at publish time — the MCP bridge is the motivating case, where each tag is a per-deployment MCP **server** an operator configures in the environment (plurnk-execs#10) — declares **`plurnk.runtimesModule`** (
|
|
147
|
+
A package whose tags are not known at publish time — the MCP bridge is the motivating case, where each tag is a per-deployment MCP **server** an operator configures in the environment (plurnk-execs#10) — declares **`plurnk.runtimesModule`** (an export subpath, resolved through the package's export map) **instead of** a static `plurnk.runtimes[]`:
|
|
148
148
|
|
|
149
149
|
```json
|
|
150
150
|
{
|
|
151
151
|
"name": "@plurnk/plurnk-execs-mcp",
|
|
152
|
-
"plurnk": { "kind": "exec", "runtimesModule": "./
|
|
152
|
+
"plurnk": { "kind": "exec", "runtimesModule": "./runtimes" }
|
|
153
153
|
}
|
|
154
154
|
```
|
|
155
155
|
|
|
@@ -218,11 +218,11 @@ Framework surface: **`Policy.isEnabled(tag, env?)`** (one layer, defaults to `pr
|
|
|
218
218
|
|
|
219
219
|
### §3.4 The empty-set notice (the legible no)
|
|
220
220
|
|
|
221
|
-
When a loop leaves **zero** EXEC runtimes in the §3.2 *Active* bucket, the capability sheet must carry a positive statement — **"No EXEC
|
|
221
|
+
When a loop leaves **zero** EXEC runtimes in the §3.2 *Active* bucket, the capability sheet must carry a positive statement — **"No EXEC operations permitted"** — not silent absence. The grammar still teaches `EXEC` as a valid op (the GBNF permits it); with no availability signal either way, the model reads the bare op mention as *unknown* and confabulates runtimes, burning its strikes on a gate that correctly refuses them (execs#24). The negative line closes that window: a legible *no* where silence invited a guess.
|
|
222
222
|
|
|
223
223
|
**One contributor, both cases.** `Advertise.contribute(registry, isPermitted)` returns the permitted runtimes **and** the notice from the *same* filter — a non-empty result never carries a notice, so the N-runtime sheet and the 0-runtime line cannot drift out of sync.
|
|
224
224
|
|
|
225
|
-
**Cause-agnostic.** `isPermitted` resolves whether a registered tag survives *this* loop's gates: execs supplies the §3.3 policy cascade as the baseline predicate, and the consumer composes stricter gates into it — the effect-typed **host bar** by which a loop mode (ask-mode) bars host-effecting ops. But *why* the set is empty — policy zeroing every tag, or the host bar catching them all — is never execs' business. Execs owns the §2.3 `effect()` classification and the count; the consumer owns the loop-mode decision and reduces it to the effect-typed bar it composes into the predicate. Nothing about the mode reaches execs. The line
|
|
225
|
+
**Cause-agnostic.** `isPermitted` resolves whether a registered tag survives *this* loop's gates: execs supplies the §3.3 policy cascade as the baseline predicate, and the consumer composes stricter gates into it — the effect-typed **host bar** by which a loop mode (ask-mode) bars host-effecting ops. But *why* the set is empty — policy zeroing every tag, or the host bar catching them all — is never execs' business. Execs owns the §2.3 `effect()` classification and the count; the consumer owns the loop-mode decision and reduces it to the effect-typed bar it composes into the predicate. Nothing about the mode reaches execs. The line is short and **EXEC-scoped** — it names the op, so the model reads a bounded "no EXEC here", not a general rule — and cause-agnostic. Exact wording is the consumer's ask-mode probe to validate, not asserted here.
|
|
226
226
|
|
|
227
227
|
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.
|
|
228
228
|
|
package/dist/advertise.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExecInfo, ExecRegistry } from "./types.ts";
|
|
2
2
|
export default class Advertise {
|
|
3
|
-
static readonly NO_EXECS_NOTICE = "No EXEC
|
|
3
|
+
static readonly NO_EXECS_NOTICE = "No EXEC operations permitted";
|
|
4
4
|
static contribute(registry: ExecRegistry, isPermitted: (tag: string) => boolean): {
|
|
5
5
|
permitted: ExecInfo[];
|
|
6
6
|
notice: string | null;
|
package/dist/advertise.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advertise.d.ts","sourceRoot":"","sources":["../src/advertise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAGzD,MAAM,CAAC,OAAO,OAAO,SAAS;
|
|
1
|
+
{"version":3,"file":"advertise.d.ts","sourceRoot":"","sources":["../src/advertise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAGzD,MAAM,CAAC,OAAO,OAAO,SAAS;IAE1B,MAAM,CAAC,QAAQ,CAAC,eAAe,kCAAkC;IAEjE,MAAM,CAAC,UAAU,CACb,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,GACtC;QAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAGlD;CACJ"}
|
package/dist/advertise.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// The EXEC family's per-loop capability contribution (SPEC §3.4, execs#24).
|
|
2
2
|
export default class Advertise {
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
static NO_EXECS_NOTICE = "No EXEC runtimes are active";
|
|
3
|
+
// Deliberate wording — validated by the consumer probe, not free to edit (SPEC §3.4).
|
|
4
|
+
static NO_EXECS_NOTICE = "No EXEC operations permitted";
|
|
6
5
|
static contribute(registry, isPermitted) {
|
|
7
6
|
const permitted = [...registry.values()].filter(({ runtime }) => isPermitted(runtime));
|
|
8
7
|
return { permitted, notice: permitted.length === 0 ? Advertise.NO_EXECS_NOTICE : null };
|
package/dist/advertise.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advertise.js","sourceRoot":"","sources":["../src/advertise.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,MAAM,CAAC,OAAO,OAAO,SAAS;IAC1B,
|
|
1
|
+
{"version":3,"file":"advertise.js","sourceRoot":"","sources":["../src/advertise.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,MAAM,CAAC,OAAO,OAAO,SAAS;IAC1B,sFAAsF;IACtF,MAAM,CAAU,eAAe,GAAG,8BAA8B,CAAC;IAEjE,MAAM,CAAC,UAAU,CACb,QAAsB,EACtB,WAAqC;QAErC,MAAM,SAAS,GAAG,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;QACvF,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC5F,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":"
|
|
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"}
|
package/dist/discover.js
CHANGED
|
@@ -8,7 +8,9 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
|
|
|
8
8
|
};
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import path from "node:path";
|
|
11
|
+
import { createRequire } from "node:module";
|
|
11
12
|
import { pathToFileURL } from "node:url";
|
|
13
|
+
import Meta from "@plurnk/plurnk-meta";
|
|
12
14
|
import Policy from "./policy.js";
|
|
13
15
|
// Scan installed executor packages and build the runtime-tag registry the
|
|
14
16
|
// consuming scheme dispatches on. Parallel to plurnk-mimetypes' discover().
|
|
@@ -66,7 +68,7 @@ export default class Discover {
|
|
|
66
68
|
// imported: an untrusted third-party package is discovered but not
|
|
67
69
|
// registered, and its code is never executed. Recorded for the
|
|
68
70
|
// consumer's telemetry note, never crashed on.
|
|
69
|
-
if (!
|
|
71
|
+
if (!Meta.isTrusted(manifest.packageName)) {
|
|
70
72
|
skipped.add(manifest.packageName);
|
|
71
73
|
continue;
|
|
72
74
|
}
|
|
@@ -92,56 +94,14 @@ export default class Discover {
|
|
|
92
94
|
}
|
|
93
95
|
return { registry, skipped: [...skipped].sort(), disabled: [...disabled].sort() };
|
|
94
96
|
}
|
|
95
|
-
// Host plugin-trust gate, read from PLURNK_PLUGINS_TRUSTED_ONLY — the SAME
|
|
96
|
-
// env var plurnk-service decides once and every scope-agnostic discovery
|
|
97
|
-
// surface enforces (plurnk-service#229). Mirrors plurnk-service's
|
|
98
|
-
// PluginTrust.isTrusted (we can't import across the package boundary, so the
|
|
99
|
-
// ~5-line policy is duplicated, not shared):
|
|
100
|
-
// unset / "" / "0" → OFF: every installed package trusted (no regression).
|
|
101
|
-
// any value → ON: `@plurnk/*` always trusted, plus a comma-separated
|
|
102
|
-
// allowlist of additionally-trusted package names;
|
|
103
|
-
// "1" (naming no real package) = on, zero third-party.
|
|
104
|
-
static #isTrusted(packageName) {
|
|
105
|
-
const gate = process.env.PLURNK_PLUGINS_TRUSTED_ONLY;
|
|
106
|
-
if (gate === undefined || gate === "" || gate === "0")
|
|
107
|
-
return true;
|
|
108
|
-
if (packageName.startsWith("@plurnk/"))
|
|
109
|
-
return true;
|
|
110
|
-
return gate.split(",").map((s) => s.trim()).includes(packageName);
|
|
111
|
-
}
|
|
112
97
|
// Enumerate every installed package directory — scoped (`@scope/name`) and
|
|
113
98
|
// unscoped (`name`) — under `<cwd>/node_modules`. The scan is scope-agnostic
|
|
114
99
|
// so a THIRD PARTY can publish an executor under their own scope (`@acme/foo`)
|
|
115
100
|
// and have it discovered with no involvement from us; `#readExecInfos` keeps
|
|
116
101
|
// only the packages that declare `plurnk.kind === "exec"`.
|
|
117
102
|
static async #defaultPackageDirs(cwd) {
|
|
118
|
-
const nm = path.join(cwd, "node_modules");
|
|
119
|
-
|
|
120
|
-
try {
|
|
121
|
-
entries = await fs.readdir(nm, { withFileTypes: true });
|
|
122
|
-
}
|
|
123
|
-
catch {
|
|
124
|
-
return [];
|
|
125
|
-
}
|
|
126
|
-
const dirs = [];
|
|
127
|
-
for (const entry of entries) {
|
|
128
|
-
if (!entry.isDirectory() || entry.name === ".bin" || entry.name === ".cache")
|
|
129
|
-
continue;
|
|
130
|
-
if (entry.name.startsWith("@")) {
|
|
131
|
-
const scopeDir = path.join(nm, entry.name);
|
|
132
|
-
try {
|
|
133
|
-
const scoped = await fs.readdir(scopeDir, { withFileTypes: true });
|
|
134
|
-
for (const s of scoped)
|
|
135
|
-
if (s.isDirectory())
|
|
136
|
-
dirs.push(path.join(scopeDir, s.name));
|
|
137
|
-
}
|
|
138
|
-
catch { /* unreadable scope dir — skip */ }
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
dirs.push(path.join(nm, entry.name));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return dirs;
|
|
103
|
+
const nm = Meta.nearestNodeModules(cwd) ?? path.join(path.resolve(cwd), "node_modules");
|
|
104
|
+
return (await Meta.packageDirs(nm)).map((c) => c.dir).toSorted();
|
|
145
105
|
}
|
|
146
106
|
// Read a package's `package.json` and return its manifest iff it declares
|
|
147
107
|
// `plurnk.kind === "exec"`. Returns null for non-executor packages, a missing
|
|
@@ -204,9 +164,9 @@ export default class Discover {
|
|
|
204
164
|
return infos;
|
|
205
165
|
}
|
|
206
166
|
// Resolve a package's runtime decls. Static `plurnk.runtimes[]` is the common
|
|
207
|
-
// case; `plurnk.runtimesModule` (
|
|
208
|
-
// per-deployment tags. Static wins if both are declared.
|
|
209
|
-
// neither is present.
|
|
167
|
+
// case; `plurnk.runtimesModule` (an export subpath, e.g. "./runtimes") is the
|
|
168
|
+
// dynamic hook for per-deployment tags. Static wins if both are declared.
|
|
169
|
+
// Returns [] when neither is present.
|
|
210
170
|
static async #runtimeDecls(dir, packageName, plurnk) {
|
|
211
171
|
if (Array.isArray(plurnk.runtimes))
|
|
212
172
|
return plurnk.runtimes;
|
|
@@ -215,13 +175,28 @@ export default class Discover {
|
|
|
215
175
|
return Discover.#loadDynamicRuntimes(dir, packageName, mod);
|
|
216
176
|
return [];
|
|
217
177
|
}
|
|
218
|
-
// Import a trusted package's runtimes hook and call it.
|
|
219
|
-
//
|
|
220
|
-
//
|
|
221
|
-
//
|
|
222
|
-
//
|
|
178
|
+
// Import a trusted package's runtimes hook via its export map and call it.
|
|
179
|
+
// The manifest names an export SUBPATH ("./runtimes"), never a file path —
|
|
180
|
+
// resolution through exports keeps dev (src via conditions) and published
|
|
181
|
+
// (dist) layouts on one mechanism. Fail-hard on every failure — an
|
|
182
|
+
// unloadable module, a missing/non-function export, or a non-array return
|
|
183
|
+
// is a contract violation by a trusted package (its own packaging or
|
|
184
|
+
// config), surfaced with the cause, never swallowed. The trust gate in
|
|
185
|
+
// scan() guarantees this only runs for trusted packages.
|
|
223
186
|
static async #loadDynamicRuntimes(dir, packageName, rel) {
|
|
224
|
-
|
|
187
|
+
if (!rel.startsWith("./"))
|
|
188
|
+
throw new Error(`exec runtimes hook invalid: ${packageName} -> ${rel} must be an export subpath like "./runtimes"`);
|
|
189
|
+
// Self-reference resolution: the subpath resolves through the package's OWN export
|
|
190
|
+
// map anchored at its root — conditions apply (plurnk-dev → src in a workspace
|
|
191
|
+
// checkout; dist when published), and a package needn't be installed to resolve.
|
|
192
|
+
let href;
|
|
193
|
+
try {
|
|
194
|
+
const selfRequire = createRequire(path.join(dir, "package.json"));
|
|
195
|
+
href = pathToFileURL(selfRequire.resolve(`${packageName}${rel.slice(1)}`)).href;
|
|
196
|
+
}
|
|
197
|
+
catch (cause) {
|
|
198
|
+
throw new Error(`exec runtimes hook unloadable: ${packageName} -> ${rel}`, { cause });
|
|
199
|
+
}
|
|
225
200
|
let mod;
|
|
226
201
|
try {
|
|
227
202
|
mod = await import(__rewriteRelativeImportExtension(href));
|
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,UAAU,CAAC;AACzC,OAAO,MAAM,MAA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AAG,oDAAoD,CAAC,CAAC;QAC9H,CAAC;QACD,IAAI,KAAc,CAAC;QACnB,IAAI,CAAC;YACD,KAAK,GAAG,MAAO,IAAsB,EAAE,CAAC;QAC5C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,WAAW,OAAO,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QACrF,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,4CAA4C,WAAW,OAAO,GAAG,EAAE,CAAC,CAAC;QACzF,CAAC;QACD,OAAO,KAAsB,CAAC;IAClC,CAAC;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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plurnk/plurnk-execs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Framework + contract for the @plurnk/plurnk-execs-* runtime executor family.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plurnk",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
|
+
"plurnk-dev": "./src/index.ts",
|
|
31
32
|
"default": "./dist/index.js"
|
|
32
33
|
},
|
|
33
34
|
"./package.json": "./package.json"
|
|
@@ -35,21 +36,25 @@
|
|
|
35
36
|
"files": [
|
|
36
37
|
"dist/**/*",
|
|
37
38
|
"README.md",
|
|
38
|
-
"SPEC.md"
|
|
39
|
+
"SPEC.md",
|
|
40
|
+
".env.defaults"
|
|
39
41
|
],
|
|
40
42
|
"scripts": {
|
|
41
43
|
"test:lint": "tsc --noEmit",
|
|
42
|
-
"test:unit": "node --test \"src/**/*.test.ts\" \"test/**/*.test.ts\"",
|
|
44
|
+
"test:unit": "node --conditions=plurnk-dev --test \"src/**/*.test.ts\" \"test/**/*.test.ts\"",
|
|
43
45
|
"test": "npm run test:lint && npm run test:unit",
|
|
44
46
|
"build:dist": "tsc -p tsconfig.build.json",
|
|
45
47
|
"build": "npm run build:dist",
|
|
46
|
-
"
|
|
48
|
+
"prepack": "npm run build"
|
|
47
49
|
},
|
|
48
50
|
"dependencies": {
|
|
49
|
-
"@plurnk/plurnk-schemes": "0.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"@
|
|
53
|
-
"
|
|
51
|
+
"@plurnk/plurnk-schemes": "1.0.0",
|
|
52
|
+
"@plurnk/plurnk-execs-common": "1.0.0",
|
|
53
|
+
"@plurnk/plurnk-execs-search": "1.0.0",
|
|
54
|
+
"@plurnk/plurnk-execs-mcp": "1.0.0",
|
|
55
|
+
"@plurnk/plurnk-execs-git": "1.0.0",
|
|
56
|
+
"@plurnk/plurnk-execs-jq": "1.0.0",
|
|
57
|
+
"@plurnk/plurnk-execs-sqlite": "1.0.0",
|
|
58
|
+
"@plurnk/plurnk-meta": "1.0.0"
|
|
54
59
|
}
|
|
55
60
|
}
|