@modootoday/pmcp 0.18.3 → 0.18.4
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/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +1 -1
- package/dist/{apply-S2QI72W3.js → apply-75UWIUVQ.js} +10 -9
- package/dist/{chunk-HQWVGU3W.js → chunk-3CA3NNVH.js} +5 -5
- package/dist/{chunk-XJUNAVU2.js → chunk-45Y3KZ3Q.js} +22 -2
- package/dist/{chunk-HFE4QDJQ.js → chunk-4JUSGIMX.js} +2 -2
- package/dist/{chunk-3MEYKFFO.js → chunk-6UXJ62XJ.js} +3 -3
- package/dist/{chunk-7DEYLLIE.js → chunk-ARA4VDHD.js} +2 -2
- package/dist/{chunk-CKTN6LKP.js → chunk-DAR6RGRN.js} +2 -2
- package/dist/{chunk-TAOOPXBV.js → chunk-FBIDDE3N.js} +19 -7
- package/dist/{chunk-WM2RF2MI.js → chunk-HE2C2S5A.js} +3 -3
- package/dist/{chunk-TVL5RTE6.js → chunk-ITDJ2EXN.js} +11 -1
- package/dist/{chunk-PAX3QXX2.js → chunk-J5ZS7GLA.js} +2 -2
- package/dist/chunk-J6KL3COD.js +34 -0
- package/dist/{chunk-JM2KR2WJ.js → chunk-LFR245MZ.js} +5 -5
- package/dist/{chunk-FX3LTTMB.js → chunk-LGO2SZAS.js} +3 -3
- package/dist/{chunk-2RTRY45B.js → chunk-MSOZPOPX.js} +25 -3
- package/dist/chunk-MZCRCMEY.js +7 -0
- package/dist/{chunk-M455QSCW.js → chunk-OB3P5RMN.js} +2 -2
- package/dist/{chunk-IIBB37JE.js → chunk-QBJC4DRP.js} +11 -11
- package/dist/{chunk-E5XVSMBR.js → chunk-R26RWSFW.js} +2 -2
- package/dist/{chunk-6BN35BHI.js → chunk-TFRJ5QOS.js} +67 -17
- package/dist/{chunk-F5LEGPGP.js → chunk-VQ2HEGWH.js} +2 -2
- package/dist/{chunk-7PTG42QU.js → chunk-XMXBE5IQ.js} +6 -6
- package/dist/{chunk-4GSGT55G.js → chunk-YRGDWUFY.js} +2 -2
- package/dist/{chunk-QK4G7FCU.js → chunk-YSUINA5Q.js} +9 -7
- package/dist/{chunk-TZORR6GZ.js → chunk-ZWLUH3F2.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/{completion-GYN7PX3T.js → completion-WYJAKJE4.js} +2 -2
- package/dist/{diagnostics-WACXQ33W.js → diagnostics-ADIVFSBW.js} +7 -6
- package/dist/{doctor-VSQ72A6X.js → doctor-BBCS4DF5.js} +12 -11
- package/dist/{entry-VFEZC2XB.js → entry-DMOTX4SS.js} +13 -12
- package/dist/{exec-mcp-TOQEJFK3.js → exec-mcp-OBUM3DVW.js} +7 -6
- package/dist/{harness-XCEWFGCG.js → harness-6AUE3I4Q.js} +4 -4
- package/dist/harness-launch-gate.js +6 -5
- package/dist/harness-pane-runner.js +2 -1
- package/dist/harness-worker.js +8 -7
- package/dist/{hooks-32AFBC3Z.js → hooks-HLPQPVRY.js} +3 -3
- package/dist/{host-72OLHUX7.js → host-5Q3X6OY7.js} +9 -8
- package/dist/{host-TE5PNDHJ.js → host-LGSWU3PJ.js} +8 -7
- package/dist/{host-run-MXCH26ZD.js → host-run-4NMQQASQ.js} +23 -10
- package/dist/http.js +1 -1
- package/dist/{import-mcp-QWGZSIZR.js → import-mcp-WU7TO2RT.js} +5 -4
- package/dist/index.d.ts +5 -1
- package/dist/index.js +11 -10
- package/dist/{init-5M3XWOTJ.js → init-XA6XXLGA.js} +2 -2
- package/dist/invoke-CYQZYU5T.js +24 -0
- package/dist/{list-FGDUU5DL.js → list-FNGXY5D7.js} +7 -6
- package/dist/{logout-KM5N5GOC.js → logout-N753FBZP.js} +6 -5
- package/dist/{mcp-FJ2UQ4RH.js → mcp-AXHV547W.js} +5 -5
- package/dist/{mcp-ND6ZQWJE.js → mcp-GR4VXKTG.js} +2 -2
- package/dist/{project-LZKQUV2W.js → project-OEBACWEX.js} +4 -4
- package/dist/{recovery-U6QB3PMT.js → recovery-54KHNJX4.js} +4 -3
- package/dist/{run-X4663F4M.js → run-7XNGPU2I.js} +4 -4
- package/dist/{run-YEVGHGTN.js → run-MDRUOEFL.js} +5 -4
- package/dist/{serve-S7MF42SS.js → serve-HXHNWKEK.js} +3 -3
- package/dist/{start-login-GKFGTE2A.js → start-login-PWCEKNED.js} +6 -5
- package/dist/{status-FYG6XYQ6.js → status-54IYX2FN.js} +6 -5
- package/dist/{status-XG5GRWVU.js → status-QFOBQ42J.js} +9 -8
- package/dist/stdio.js +2 -2
- package/dist/{test-KFDO6ROC.js → test-36ZUVALT.js} +6 -5
- package/dist/{tui-2MP7DRIX.js → tui-CSRW4DN2.js} +5 -5
- package/dist/{worker-3VS6RQEL.js → worker-EODWT4KK.js} +11 -10
- package/docs/project-configuration.md +8 -0
- package/docs/terminal-harness.md +14 -0
- package/gemini-extension.json +2 -2
- package/mcp.json +1 -1
- package/package.json +5 -5
- package/plugin.json +1 -1
- package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
- package/plugins/pmcp/.mcp.json +1 -1
- package/plugins/pmcp/gemini-extension.json +2 -2
- package/plugins/pmcp/mcp.json +1 -1
- package/plugins/pmcp/plugin.json +1 -1
- package/dist/chunk-AF2IBMWN.js +0 -7
- package/dist/invoke-SFSN4XT7.js +0 -23
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
},
|
|
613
613
|
{
|
|
614
614
|
"name": "pmcp",
|
|
615
|
-
"version": "0.18.
|
|
615
|
+
"version": "0.18.4",
|
|
616
616
|
"description": "Find package skills and use native runtime project configuration.",
|
|
617
617
|
"source": { "source": "local", "path": "./plugins/pmcp" },
|
|
618
618
|
"policy": { "installation": "AVAILABLE", "authentication": "ON_USE" },
|
package/.mcp.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
specFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQ2HEGWH.js";
|
|
4
4
|
import {
|
|
5
5
|
catalogFrom
|
|
6
6
|
} from "./chunk-HEBCQTOD.js";
|
|
7
7
|
import "./chunk-7DLZC73N.js";
|
|
8
8
|
import {
|
|
9
9
|
project
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3CA3NNVH.js";
|
|
11
11
|
import "./chunk-P4N7DBD5.js";
|
|
12
12
|
import {
|
|
13
13
|
renderFrontmatter,
|
|
14
14
|
splitFrontmatter
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-LFR245MZ.js";
|
|
16
|
+
import "./chunk-R26RWSFW.js";
|
|
17
17
|
import {
|
|
18
18
|
RUNTIMES
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-45Y3KZ3Q.js";
|
|
20
20
|
import "./chunk-HQOB7OQS.js";
|
|
21
21
|
import "./chunk-S3PIAMXV.js";
|
|
22
22
|
import "./chunk-JS5RTH4I.js";
|
|
@@ -41,15 +41,16 @@ import {
|
|
|
41
41
|
kindOf
|
|
42
42
|
} from "./chunk-4CRRLDDS.js";
|
|
43
43
|
import "./chunk-YSAWTGNA.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-MSOZPOPX.js";
|
|
45
45
|
import {
|
|
46
46
|
recordProjector
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-FBIDDE3N.js";
|
|
48
48
|
import "./chunk-OEH47H6A.js";
|
|
49
49
|
import "./chunk-IJBSOWHK.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-MZCRCMEY.js";
|
|
51
51
|
import "./chunk-QPL7E2HW.js";
|
|
52
52
|
import "./chunk-PMJG2CXF.js";
|
|
53
|
+
import "./chunk-J6KL3COD.js";
|
|
53
54
|
|
|
54
55
|
// src/project/edit.ts
|
|
55
56
|
import {
|
|
@@ -239,4 +240,4 @@ export {
|
|
|
239
240
|
projectOrCheck,
|
|
240
241
|
removeAndProject
|
|
241
242
|
};
|
|
242
|
-
//# sourceMappingURL=apply-
|
|
243
|
+
//# sourceMappingURL=apply-75UWIUVQ.js.map
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
prepare,
|
|
9
9
|
present,
|
|
10
10
|
writeNative
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LFR245MZ.js";
|
|
12
12
|
import {
|
|
13
13
|
ANTIGRAVITY_MCP_PLUGIN
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R26RWSFW.js";
|
|
15
15
|
import {
|
|
16
16
|
changedSincePlan,
|
|
17
17
|
exists,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
same,
|
|
23
23
|
splitKeyed,
|
|
24
24
|
withoutBlock
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-45Y3KZ3Q.js";
|
|
26
26
|
import {
|
|
27
27
|
RULES_DIR,
|
|
28
28
|
legacyLinks
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
replaceFile,
|
|
33
33
|
replaceLink,
|
|
34
34
|
writeLock
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FBIDDE3N.js";
|
|
36
36
|
|
|
37
37
|
// src/project/apply/files.ts
|
|
38
38
|
import { mkdirSync } from "fs";
|
|
@@ -208,4 +208,4 @@ function project(spec, options) {
|
|
|
208
208
|
export {
|
|
209
209
|
project
|
|
210
210
|
};
|
|
211
|
-
//# sourceMappingURL=chunk-
|
|
211
|
+
//# sourceMappingURL=chunk-3CA3NNVH.js.map
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
packagedBinary,
|
|
48
48
|
readHost,
|
|
49
49
|
readLock
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FBIDDE3N.js";
|
|
51
51
|
import {
|
|
52
52
|
checkoutOf,
|
|
53
53
|
hasLinkedWorktrees
|
|
@@ -56,6 +56,9 @@ import {
|
|
|
56
56
|
ConfigError,
|
|
57
57
|
readMarketplaces
|
|
58
58
|
} from "./chunk-QPL7E2HW.js";
|
|
59
|
+
import {
|
|
60
|
+
envNames
|
|
61
|
+
} from "./chunk-J6KL3COD.js";
|
|
59
62
|
|
|
60
63
|
// src/hooks/contract.ts
|
|
61
64
|
var RUNTIME_IDS = [
|
|
@@ -4852,6 +4855,21 @@ function named(path, where, name) {
|
|
|
4852
4855
|
}
|
|
4853
4856
|
return name;
|
|
4854
4857
|
}
|
|
4858
|
+
function readHarness(path, raw) {
|
|
4859
|
+
if (raw === void 0) return void 0;
|
|
4860
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw))
|
|
4861
|
+
throw new ConfigError(path, "[harness] must be a table");
|
|
4862
|
+
for (const key of Object.keys(raw))
|
|
4863
|
+
if (key !== "env")
|
|
4864
|
+
throw new ConfigError(path, `[harness] unknown key ${key}`);
|
|
4865
|
+
try {
|
|
4866
|
+
return {
|
|
4867
|
+
env: envNames(raw["env"], "[harness] env")
|
|
4868
|
+
};
|
|
4869
|
+
} catch (error) {
|
|
4870
|
+
throw new ConfigError(path, error.message);
|
|
4871
|
+
}
|
|
4872
|
+
}
|
|
4855
4873
|
function readSpec(config) {
|
|
4856
4874
|
const path = config.path;
|
|
4857
4875
|
const raw = config.raw;
|
|
@@ -4925,6 +4943,7 @@ function readSpec(config) {
|
|
|
4925
4943
|
const uiClaude = readUiClaude(path, raw["ui"], sessionHooks);
|
|
4926
4944
|
const permissions = readPermissions(path, raw["permissions"]);
|
|
4927
4945
|
const host = readHost(path, raw["host"]);
|
|
4946
|
+
const harness = readHarness(path, raw["harness"]);
|
|
4928
4947
|
return {
|
|
4929
4948
|
root: config.dir,
|
|
4930
4949
|
tools,
|
|
@@ -4936,6 +4955,7 @@ function readSpec(config) {
|
|
|
4936
4955
|
...uiClaude ? { uiClaude } : {},
|
|
4937
4956
|
...permissions ? { permissions } : {},
|
|
4938
4957
|
...host ? { host } : {},
|
|
4958
|
+
...harness ? { harness } : {},
|
|
4939
4959
|
...hooks.legacy.length > 0 ? { hooks: hooks.legacy } : {},
|
|
4940
4960
|
...hooks.bundle ? { hookBundle: hooks.bundle } : {},
|
|
4941
4961
|
...hooks.deprecations.length > 0 ? { deprecations: hooks.deprecations } : {},
|
|
@@ -4982,4 +5002,4 @@ export {
|
|
|
4982
5002
|
permissionDoctor,
|
|
4983
5003
|
readSpec
|
|
4984
5004
|
};
|
|
4985
|
-
//# sourceMappingURL=chunk-
|
|
5005
|
+
//# sourceMappingURL=chunk-45Y3KZ3Q.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-34DECPVC.js";
|
|
7
7
|
import {
|
|
8
8
|
ptyBinary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MSOZPOPX.js";
|
|
10
10
|
|
|
11
11
|
// src/harness/adapters/systemd/admission.ts
|
|
12
12
|
var nativeHostTools = ["systemctl", "systemd-run"];
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
nativeHostTools,
|
|
37
37
|
assertNativeHost
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-4JUSGIMX.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-5ZABTVSW.js";
|
|
4
4
|
import {
|
|
5
5
|
dependencies
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HE2C2S5A.js";
|
|
7
7
|
import {
|
|
8
8
|
interactiveEntry
|
|
9
9
|
} from "./chunk-LMT3PPXJ.js";
|
|
10
10
|
import {
|
|
11
11
|
assertNativeHost
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4JUSGIMX.js";
|
|
13
13
|
|
|
14
14
|
// src/tui/startup/host.ts
|
|
15
15
|
function terminalSupport() {
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
terminalSupport,
|
|
43
43
|
requireTerminal
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-6UXJ62XJ.js.map
|
|
@@ -1190,7 +1190,7 @@ function registerReadTool(server, tools) {
|
|
|
1190
1190
|
|
|
1191
1191
|
// src/mcp.ts
|
|
1192
1192
|
var SERVER_NAME = "pmcp";
|
|
1193
|
-
var SERVER_VERSION = "0.18.
|
|
1193
|
+
var SERVER_VERSION = "0.18.4";
|
|
1194
1194
|
function registerSkillTools(server, tools) {
|
|
1195
1195
|
registerCatalogTool(server, tools);
|
|
1196
1196
|
registerFindTool(server, tools);
|
|
@@ -1243,4 +1243,4 @@ export {
|
|
|
1243
1243
|
registerSkillTools,
|
|
1244
1244
|
createSkillServer
|
|
1245
1245
|
};
|
|
1246
|
-
//# sourceMappingURL=chunk-
|
|
1246
|
+
//# sourceMappingURL=chunk-ARA4VDHD.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-7DLZC73N.js";
|
|
4
4
|
import {
|
|
5
5
|
readSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-45Y3KZ3Q.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError
|
|
9
9
|
} from "./chunk-A4PKLESO.js";
|
|
@@ -25,4 +25,4 @@ function serverFrom(context) {
|
|
|
25
25
|
export {
|
|
26
26
|
serverFrom
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-DAR6RGRN.js.map
|
|
@@ -3,10 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-OEH47H6A.js";
|
|
4
4
|
import {
|
|
5
5
|
VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MZCRCMEY.js";
|
|
7
7
|
import {
|
|
8
8
|
ConfigError
|
|
9
9
|
} from "./chunk-QPL7E2HW.js";
|
|
10
|
+
import {
|
|
11
|
+
envNames
|
|
12
|
+
} from "./chunk-J6KL3COD.js";
|
|
10
13
|
|
|
11
14
|
// src/project/projector.ts
|
|
12
15
|
import { existsSync, mkdirSync, readFileSync, realpathSync } from "fs";
|
|
@@ -340,7 +343,8 @@ function session(path, i, value, roots) {
|
|
|
340
343
|
"argv",
|
|
341
344
|
"labels",
|
|
342
345
|
"restart",
|
|
343
|
-
"max_restarts"
|
|
346
|
+
"max_restarts",
|
|
347
|
+
"env"
|
|
344
348
|
]);
|
|
345
349
|
const name = text(path, `${where} name`, t["name"]);
|
|
346
350
|
if (!NAME2.test(name))
|
|
@@ -364,9 +368,17 @@ function session(path, i, value, roots) {
|
|
|
364
368
|
argv,
|
|
365
369
|
labels: labels(path, `${where} labels`, t["labels"]),
|
|
366
370
|
restart,
|
|
367
|
-
maxRestarts: max
|
|
371
|
+
maxRestarts: max,
|
|
372
|
+
env: names(path, `${where} env`, t["env"])
|
|
368
373
|
};
|
|
369
374
|
}
|
|
375
|
+
function names(path, where, value) {
|
|
376
|
+
try {
|
|
377
|
+
return envNames(value, where);
|
|
378
|
+
} catch (error) {
|
|
379
|
+
return fail2(path, error.message);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
370
382
|
function readHost(path, raw) {
|
|
371
383
|
if (raw === void 0) return void 0;
|
|
372
384
|
const root = table2(path, "[host]", raw);
|
|
@@ -392,11 +404,11 @@ function readHost(path, raw) {
|
|
|
392
404
|
return value;
|
|
393
405
|
};
|
|
394
406
|
const sessions = list("sessions").map((s, i) => session(path, i, s, roots));
|
|
395
|
-
const
|
|
407
|
+
const names2 = /* @__PURE__ */ new Set();
|
|
396
408
|
for (const s of sessions) {
|
|
397
|
-
if (
|
|
409
|
+
if (names2.has(s.name))
|
|
398
410
|
fail2(path, `[[host.sessions]] name ${s.name} is used twice`);
|
|
399
|
-
|
|
411
|
+
names2.add(s.name);
|
|
400
412
|
}
|
|
401
413
|
const answers = list("answers").map((a, i) => answer(path, i, a));
|
|
402
414
|
const browser = readHostBrowser(path, root["browser"]);
|
|
@@ -416,4 +428,4 @@ export {
|
|
|
416
428
|
writeLock,
|
|
417
429
|
readHost
|
|
418
430
|
};
|
|
419
|
-
//# sourceMappingURL=chunk-
|
|
431
|
+
//# sourceMappingURL=chunk-FBIDDE3N.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-34DECPVC.js";
|
|
7
7
|
import {
|
|
8
8
|
ptyBinary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MSOZPOPX.js";
|
|
10
10
|
import {
|
|
11
11
|
nativeBinary
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FBIDDE3N.js";
|
|
13
13
|
|
|
14
14
|
// src/tui/rust.ts
|
|
15
15
|
import { spawn } from "child_process";
|
|
@@ -64,4 +64,4 @@ export {
|
|
|
64
64
|
runTui,
|
|
65
65
|
dependencies
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-HE2C2S5A.js.map
|
|
@@ -8,6 +8,9 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
runtimeExecutables
|
|
10
10
|
} from "./chunk-BU65MNVU.js";
|
|
11
|
+
import {
|
|
12
|
+
envNames
|
|
13
|
+
} from "./chunk-J6KL3COD.js";
|
|
11
14
|
|
|
12
15
|
// src/harness/groups/store.ts
|
|
13
16
|
import { randomUUID } from "crypto";
|
|
@@ -162,6 +165,13 @@ function validateState(value) {
|
|
|
162
165
|
member(group.state, ["ready", "paused", "stopped"]);
|
|
163
166
|
integer(group.memoryMb, "memory_budget", 128, 4096);
|
|
164
167
|
integer(group.maxActive, "max_active", 1, 5);
|
|
168
|
+
if (group.env !== void 0) {
|
|
169
|
+
try {
|
|
170
|
+
envNames(group.env, "env");
|
|
171
|
+
} catch {
|
|
172
|
+
throw new Error("invalid_env_names");
|
|
173
|
+
}
|
|
174
|
+
}
|
|
165
175
|
const sessions = records(group.sessions);
|
|
166
176
|
for (const session of sessions) {
|
|
167
177
|
id(session.id, "session_id");
|
|
@@ -266,4 +276,4 @@ export {
|
|
|
266
276
|
readPrivateJson,
|
|
267
277
|
GroupStore
|
|
268
278
|
};
|
|
269
|
-
//# sourceMappingURL=chunk-
|
|
279
|
+
//# sourceMappingURL=chunk-ITDJ2EXN.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
privateJson,
|
|
11
11
|
readPrivateJson
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ITDJ2EXN.js";
|
|
13
13
|
import {
|
|
14
14
|
object,
|
|
15
15
|
text
|
|
@@ -137,4 +137,4 @@ export {
|
|
|
137
137
|
readStartup,
|
|
138
138
|
saveStartup
|
|
139
139
|
};
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-J5ZS7GLA.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// src/native/env-names.ts
|
|
2
|
+
var NAME = /^[A-Z_][A-Z0-9_]{0,127}$/u;
|
|
3
|
+
var RESERVED = ["PMCP_PTY_SOCKET", "PMCP_PTY_SESSION", "PMCP_PTY_INSTANCE"];
|
|
4
|
+
function envNames(value, where) {
|
|
5
|
+
if (value === void 0) return [];
|
|
6
|
+
if (!Array.isArray(value))
|
|
7
|
+
throw new Error(`${where} must be a list of environment variable names`);
|
|
8
|
+
const names = value.map((name, i) => {
|
|
9
|
+
if (typeof name !== "string" || !NAME.test(name))
|
|
10
|
+
throw new Error(
|
|
11
|
+
`${where}[${i}] must be an environment variable name (A-Z, 0-9, _)`
|
|
12
|
+
);
|
|
13
|
+
if (RESERVED.includes(name))
|
|
14
|
+
throw new Error(`${where}[${i}] ${name} is set by pmcp-pty itself`);
|
|
15
|
+
return name;
|
|
16
|
+
});
|
|
17
|
+
return [...new Set(names)];
|
|
18
|
+
}
|
|
19
|
+
function pickEnv(names, env) {
|
|
20
|
+
const values = {};
|
|
21
|
+
const missing = [];
|
|
22
|
+
for (const name of names) {
|
|
23
|
+
const value = env[name];
|
|
24
|
+
if (value === void 0 || value === "") missing.push(name);
|
|
25
|
+
else values[name] = value;
|
|
26
|
+
}
|
|
27
|
+
return { values, missing };
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
envNames,
|
|
32
|
+
pickEnv
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=chunk-J6KL3COD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OPENCODE_CONFIG,
|
|
3
3
|
mcpOutputs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R26RWSFW.js";
|
|
5
5
|
import {
|
|
6
6
|
MARK,
|
|
7
7
|
NATIVE_HOOK_FILES,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
splitKeyed,
|
|
26
26
|
uiClaudeOutputs,
|
|
27
27
|
withoutBlock
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-45Y3KZ3Q.js";
|
|
29
29
|
import {
|
|
30
30
|
ProjectError,
|
|
31
31
|
RULES_DIR,
|
|
@@ -37,12 +37,12 @@ import {
|
|
|
37
37
|
} from "./chunk-73AKO4UL.js";
|
|
38
38
|
import {
|
|
39
39
|
hostOutputs
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-MSOZPOPX.js";
|
|
41
41
|
import {
|
|
42
42
|
lockVersionProblem,
|
|
43
43
|
readLock,
|
|
44
44
|
replaceFile
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-FBIDDE3N.js";
|
|
46
46
|
import {
|
|
47
47
|
CODEX_PLUGIN_LIST,
|
|
48
48
|
claudeSettings,
|
|
@@ -1022,4 +1022,4 @@ export {
|
|
|
1022
1022
|
prepare,
|
|
1023
1023
|
checkProject
|
|
1024
1024
|
};
|
|
1025
|
-
//# sourceMappingURL=chunk-
|
|
1025
|
+
//# sourceMappingURL=chunk-LFR245MZ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-34DECPVC.js";
|
|
4
4
|
import {
|
|
5
5
|
ptyBinary
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MSOZPOPX.js";
|
|
7
7
|
import {
|
|
8
8
|
GroupStore,
|
|
9
9
|
egressPolicy,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
profileName,
|
|
12
12
|
readPrivateJson,
|
|
13
13
|
selectedProfile
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ITDJ2EXN.js";
|
|
15
15
|
import {
|
|
16
16
|
integer,
|
|
17
17
|
object,
|
|
@@ -775,4 +775,4 @@ export {
|
|
|
775
775
|
prepareBridge,
|
|
776
776
|
assertBridge
|
|
777
777
|
};
|
|
778
|
-
//# sourceMappingURL=chunk-
|
|
778
|
+
//# sourceMappingURL=chunk-LGO2SZAS.js.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nativeBinary,
|
|
3
3
|
readLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBIDDE3N.js";
|
|
5
|
+
import {
|
|
6
|
+
pickEnv
|
|
7
|
+
} from "./chunk-J6KL3COD.js";
|
|
5
8
|
|
|
6
9
|
// src/project/host.ts
|
|
7
10
|
import { createHash } from "crypto";
|
|
@@ -37,7 +40,9 @@ function hostManifest(host) {
|
|
|
37
40
|
labels: { ...s.labels, "pmcp.host": s.name },
|
|
38
41
|
restart: s.restart,
|
|
39
42
|
max_restarts: s.maxRestarts,
|
|
40
|
-
delivery_setup: true
|
|
43
|
+
delivery_setup: true,
|
|
44
|
+
// Only when declared, so an approval made before env existed stays valid.
|
|
45
|
+
...s.env.length > 0 ? { env: s.env } : {}
|
|
41
46
|
}))
|
|
42
47
|
};
|
|
43
48
|
}
|
|
@@ -66,6 +71,22 @@ function ptyBinaryDoctor(env) {
|
|
|
66
71
|
detail: "pmcp-pty not found; set PMCP_PTY_BIN or put it on PATH"
|
|
67
72
|
};
|
|
68
73
|
}
|
|
74
|
+
function hostEnvDoctor(spec, env) {
|
|
75
|
+
return (spec.host?.sessions ?? []).filter((s) => s.env.length > 0).map((s) => {
|
|
76
|
+
const { missing } = pickEnv(s.env, env);
|
|
77
|
+
return missing.length === 0 ? {
|
|
78
|
+
tool: "project",
|
|
79
|
+
check: `host env (${s.name})`,
|
|
80
|
+
status: "ok",
|
|
81
|
+
detail: `set: ${s.env.join(", ")}`
|
|
82
|
+
} : {
|
|
83
|
+
tool: "project",
|
|
84
|
+
check: `host env (${s.name})`,
|
|
85
|
+
status: "warn",
|
|
86
|
+
detail: `not set: ${missing.join(", ")}; host up refuses ${s.name} until they are`
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
}
|
|
69
90
|
var sha256 = (text) => createHash("sha256").update(text).digest("hex");
|
|
70
91
|
function hostDoctor(spec) {
|
|
71
92
|
if (!spec.host) return [];
|
|
@@ -99,6 +120,7 @@ export {
|
|
|
99
120
|
hostOutputs,
|
|
100
121
|
ptyBinary,
|
|
101
122
|
ptyBinaryDoctor,
|
|
123
|
+
hostEnvDoctor,
|
|
102
124
|
hostDoctor
|
|
103
125
|
};
|
|
104
|
-
//# sourceMappingURL=chunk-
|
|
126
|
+
//# sourceMappingURL=chunk-MSOZPOPX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSkillServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ARA4VDHD.js";
|
|
4
4
|
import {
|
|
5
5
|
attachMailbox
|
|
6
6
|
} from "./chunk-NWOV2E26.js";
|
|
@@ -84,4 +84,4 @@ export {
|
|
|
84
84
|
serveWithMailbox,
|
|
85
85
|
main
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=chunk-
|
|
87
|
+
//# sourceMappingURL=chunk-OB3P5RMN.js.map
|
|
@@ -61,11 +61,11 @@ var completionSpec = {
|
|
|
61
61
|
var COMMANDS = [
|
|
62
62
|
{
|
|
63
63
|
...statusSpec,
|
|
64
|
-
load: async () => (await import("./status-
|
|
64
|
+
load: async () => (await import("./status-QFOBQ42J.js")).statusCommand
|
|
65
65
|
},
|
|
66
|
-
{ ...initSpec, load: async () => (await import("./init-
|
|
67
|
-
{ ...hooksSpec, load: async () => (await import("./hooks-
|
|
68
|
-
{ ...serveSpec, load: async () => (await import("./serve-
|
|
66
|
+
{ ...initSpec, load: async () => (await import("./init-XA6XXLGA.js")).initCommand },
|
|
67
|
+
{ ...hooksSpec, load: async () => (await import("./hooks-HLPQPVRY.js")).hooksCommand },
|
|
68
|
+
{ ...serveSpec, load: async () => (await import("./serve-HXHNWKEK.js")).serveCommand },
|
|
69
69
|
{ ...listSpec, load: async () => (await import("./list-FB6RNYYB.js")).listCommand },
|
|
70
70
|
{
|
|
71
71
|
...indexSpec,
|
|
@@ -102,11 +102,11 @@ var COMMANDS = [
|
|
|
102
102
|
{ ...syncSpec, load: async () => (await import("./install-MQ7QSJQ7.js")).syncCommand },
|
|
103
103
|
{
|
|
104
104
|
...projectSpec,
|
|
105
|
-
load: async () => (await import("./project-
|
|
105
|
+
load: async () => (await import("./project-OEBACWEX.js")).projectCommand
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
...doctorSpec,
|
|
109
|
-
load: async () => (await import("./doctor-
|
|
109
|
+
load: async () => (await import("./doctor-BBCS4DF5.js")).doctorCommand
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
...sessionsSpec,
|
|
@@ -114,7 +114,7 @@ var COMMANDS = [
|
|
|
114
114
|
},
|
|
115
115
|
{ ...logsSpec, load: async () => (await import("./logs-TBUA4UWU.js")).logsCommand },
|
|
116
116
|
{ ...gitSpec, load: async () => (await import("./cli-ZN7ZVDEZ.js")).gitCommand },
|
|
117
|
-
{ ...mcpSpec, load: async () => (await import("./mcp-
|
|
117
|
+
{ ...mcpSpec, load: async () => (await import("./mcp-GR4VXKTG.js")).mcpCommand },
|
|
118
118
|
{
|
|
119
119
|
...validateSpec,
|
|
120
120
|
load: async () => (await import("./validate-AVM2VHMM.js")).validateCommand
|
|
@@ -125,16 +125,16 @@ var COMMANDS = [
|
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
...harnessSpec,
|
|
128
|
-
load: async () => (await import("./harness-
|
|
128
|
+
load: async () => (await import("./harness-6AUE3I4Q.js")).harnessCommand
|
|
129
129
|
},
|
|
130
|
-
{ ...tuiSpec, load: async () => (await import("./tui-
|
|
130
|
+
{ ...tuiSpec, load: async () => (await import("./tui-CSRW4DN2.js")).tuiCommand },
|
|
131
131
|
{
|
|
132
132
|
...marketplaceSpec,
|
|
133
133
|
load: async () => (await import("./marketplace-G4VQET5W.js")).marketplaceCommand
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
...completionSpec,
|
|
137
|
-
load: async () => (await import("./completion-
|
|
137
|
+
load: async () => (await import("./completion-WYJAKJE4.js")).completionCommand
|
|
138
138
|
}
|
|
139
139
|
];
|
|
140
140
|
var PLANNED = [];
|
|
@@ -148,4 +148,4 @@ export {
|
|
|
148
148
|
PLANNED,
|
|
149
149
|
commandNamed
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
151
|
+
//# sourceMappingURL=chunk-QBJC4DRP.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
MARK,
|
|
3
3
|
blockOutput,
|
|
4
4
|
jsonOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-45Y3KZ3Q.js";
|
|
6
6
|
import {
|
|
7
7
|
ProjectError
|
|
8
8
|
} from "./chunk-NRBQK6UX.js";
|
|
@@ -393,4 +393,4 @@ export {
|
|
|
393
393
|
serversForTool,
|
|
394
394
|
mcpOutputs
|
|
395
395
|
};
|
|
396
|
-
//# sourceMappingURL=chunk-
|
|
396
|
+
//# sourceMappingURL=chunk-R26RWSFW.js.map
|