@modootoday/pmcp 0.22.0 → 0.22.2
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-3PR4UOES.js → apply-AWZ32Z66.js} +14 -13
- package/dist/{chunk-TCW2H47H.js → chunk-4Z6NPSWX.js} +49 -16
- package/dist/{chunk-3LADLKAI.js → chunk-5A7QRZP6.js} +9 -9
- package/dist/{chunk-SEM6WD7J.js → chunk-5F7TL3V7.js} +23 -6
- package/dist/{chunk-E6YP2PMO.js → chunk-BUD3WS4Y.js} +2 -2
- package/dist/{chunk-S4Y44CCC.js → chunk-D2DDM5VZ.js} +2 -2
- package/dist/{chunk-RNC7PGW2.js → chunk-FOIQUPIQ.js} +2 -2
- package/dist/chunk-FWKQA6TX.js +7 -0
- package/dist/{chunk-LVNGMGOM.js → chunk-G25LCRIG.js} +2 -2
- package/dist/{chunk-SLCNCAWY.js → chunk-GE2PHR35.js} +3 -3
- package/dist/{chunk-73IDLWRI.js → chunk-GZQH3RJA.js} +3 -3
- package/dist/{chunk-5ZUDBC3P.js → chunk-JP27V2H4.js} +2 -2
- package/dist/{chunk-2QJGUR23.js → chunk-KLWZZTUQ.js} +7 -7
- package/dist/{chunk-XB363ZXT.js → chunk-NAXUAC5S.js} +27 -7
- package/dist/{chunk-GBKRDRMZ.js → chunk-NFJ44OE2.js} +5 -2
- package/dist/{chunk-5YCKFU5Q.js → chunk-OMIIXLMO.js} +1 -1
- package/dist/{chunk-NDED2O5B.js → chunk-SKOP4ZST.js} +5 -5
- package/dist/{chunk-SPZ42EWE.js → chunk-T6MQPVLH.js} +2 -2
- package/dist/{chunk-RNE4WPBS.js → chunk-U2NWTZQP.js} +2 -2
- package/dist/{chunk-TPGJXENR.js → chunk-U3IHGG7X.js} +3 -3
- package/dist/{chunk-EPNTYTDZ.js → chunk-VGW3N3HC.js} +12 -12
- package/dist/{chunk-2GI5RM3M.js → chunk-W6GA5RAW.js} +2 -2
- package/dist/chunk-XWLMZKH2.js +12 -0
- package/dist/{chunk-3OBJVG5R.js → chunk-ZYLJUABY.js} +2 -2
- package/dist/{cli-BEEDAD4E.js → cli-BOSY6VFP.js} +4 -4
- package/dist/cli.js +3 -3
- package/dist/{completion-LHYNCQ3N.js → completion-V756JVX6.js} +2 -2
- package/dist/{diagnostics-ABTJUYZQ.js → diagnostics-R7S3DNXD.js} +7 -5
- package/dist/{doctor-GPPO5L4F.js → doctor-44S5EWK5.js} +20 -13
- package/dist/{entry-ARGY5CKA.js → entry-GSGCMXE5.js} +11 -9
- package/dist/{exec-mcp-JEF74XVP.js → exec-mcp-3COXHDYT.js} +11 -10
- package/dist/{harness-OCXW6YE4.js → harness-K4WL2NSH.js} +3 -3
- package/dist/harness-launch-gate.js +5 -3
- package/dist/harness-worker.js +7 -5
- package/dist/hook-body.js +107 -38
- package/dist/{hooks-JHXUN5MD.js → hooks-HQOLXR3A.js} +3 -3
- package/dist/{host-VI4ZFCZP.js → host-4W3JUQAO.js} +11 -10
- package/dist/{host-OBRHBDRE.js → host-N5UILUK7.js} +8 -6
- package/dist/{host-run-H7AITG7C.js → host-run-CVYRZB7R.js} +6 -4
- package/dist/http.js +1 -1
- package/dist/{import-mcp-3Y33CUHF.js → import-mcp-IAGC3LJU.js} +10 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -14
- package/dist/{init-WZJHMWNJ.js → init-HPEVKKMU.js} +2 -2
- package/dist/{invoke-GWWTXQLO.js → invoke-TD5YR2G7.js} +9 -7
- package/dist/{list-Y6UPLGNF.js → list-YUHJ5CTT.js} +10 -9
- package/dist/{logout-KAUW4JZZ.js → logout-JQ5UPC5W.js} +9 -8
- package/dist/{mainline-Q42M2GJ2.js → mainline-7HO7RCQH.js} +55 -24
- package/dist/{mcp-IDEUIY2F.js → mcp-B6SYBT3X.js} +2 -2
- package/dist/{project-GVVWLDOJ.js → project-GOW2MEFY.js} +7 -7
- package/dist/{run-RRWB7U2Q.js → run-7UNRLLYD.js} +8 -7
- package/dist/{run-HVNKQHVU.js → run-ZOSIKNDX.js} +4 -4
- package/dist/{serve-KJSOU3BR.js → serve-VRBL67KO.js} +3 -3
- package/dist/{setup-3GET6K3J.js → setup-QMYAW3MB.js} +2 -2
- package/dist/{smoke-FQQJOQBD.js → smoke-EXPR7HLD.js} +4 -3
- package/dist/{start-login-RNHSEX5P.js → start-login-NRD323LK.js} +9 -8
- package/dist/{status-RR4VZARJ.js → status-JN2GT5UM.js} +10 -9
- package/dist/{status-Y25ONHA5.js → status-ZY5B7V6R.js} +9 -8
- package/dist/stdio.js +2 -2
- package/dist/{test-7NYPQ6YU.js → test-VGJXKCQT.js} +10 -9
- package/dist/{tui-H5RPSF4B.js → tui-GORRJIMA.js} +4 -4
- package/dist/{worker-YWFTWIBP.js → worker-LJG2NDMK.js} +9 -7
- package/docs/compatibility.md +11 -10
- package/docs/git-workflow.md +20 -12
- package/docs/hooks.md +7 -1
- package/docs/project-configuration.md +22 -1
- package/docs/upgrading.md +28 -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-L42U5XKC.js +0 -7
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
},
|
|
613
613
|
{
|
|
614
614
|
"name": "pmcp",
|
|
615
|
-
"version": "0.22.
|
|
615
|
+
"version": "0.22.2",
|
|
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
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-PEMMV5YQ.js";
|
|
4
4
|
import {
|
|
5
5
|
specFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FOIQUPIQ.js";
|
|
7
7
|
import {
|
|
8
8
|
printSmoke,
|
|
9
9
|
runSmoke
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W6GA5RAW.js";
|
|
11
11
|
import {
|
|
12
12
|
configFrom
|
|
13
13
|
} from "./chunk-RPCIROW7.js";
|
|
@@ -15,27 +15,24 @@ import {
|
|
|
15
15
|
describeHookProblem,
|
|
16
16
|
project,
|
|
17
17
|
unmanagedHookProblems
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5A7QRZP6.js";
|
|
19
19
|
import "./chunk-P4N7DBD5.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-KLWZZTUQ.js";
|
|
21
21
|
import {
|
|
22
22
|
checkBudget,
|
|
23
23
|
renderFrontmatter,
|
|
24
24
|
splitFrontmatter
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4Z6NPSWX.js";
|
|
26
26
|
import "./chunk-UKR64U7J.js";
|
|
27
27
|
import "./chunk-XZ2TDH3J.js";
|
|
28
28
|
import "./chunk-KUBHGVTD.js";
|
|
29
29
|
import "./chunk-EATCUWGG.js";
|
|
30
30
|
import "./chunk-OFJIMBTL.js";
|
|
31
|
-
import {
|
|
32
|
-
ProjectError
|
|
33
|
-
} from "./chunk-NRBQK6UX.js";
|
|
34
31
|
import "./chunk-LFFIQBNY.js";
|
|
35
32
|
import "./chunk-HQOB7OQS.js";
|
|
36
33
|
import "./chunk-73AKO4UL.js";
|
|
37
34
|
import "./chunk-P6LNYYYH.js";
|
|
38
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-NFJ44OE2.js";
|
|
39
36
|
import "./chunk-2Q6MNGU5.js";
|
|
40
37
|
import "./chunk-MR5IBS6L.js";
|
|
41
38
|
import "./chunk-Z6WRFOFT.js";
|
|
@@ -44,7 +41,7 @@ import "./chunk-Q5H3L6Y4.js";
|
|
|
44
41
|
import {
|
|
45
42
|
RUNTIMES,
|
|
46
43
|
readTestTable
|
|
47
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-OMIIXLMO.js";
|
|
48
45
|
import "./chunk-JEL35P7S.js";
|
|
49
46
|
import {
|
|
50
47
|
ArgumentError
|
|
@@ -56,10 +53,14 @@ import {
|
|
|
56
53
|
import "./chunk-YSAWTGNA.js";
|
|
57
54
|
import {
|
|
58
55
|
recordProjector
|
|
59
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-NAXUAC5S.js";
|
|
57
|
+
import {
|
|
58
|
+
ProjectError
|
|
59
|
+
} from "./chunk-NRBQK6UX.js";
|
|
60
60
|
import "./chunk-OEH47H6A.js";
|
|
61
61
|
import "./chunk-IJBSOWHK.js";
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-XWLMZKH2.js";
|
|
63
|
+
import "./chunk-FWKQA6TX.js";
|
|
63
64
|
import "./chunk-GJXOFDJT.js";
|
|
64
65
|
import "./chunk-PMJG2CXF.js";
|
|
65
66
|
import "./chunk-J6KL3COD.js";
|
|
@@ -274,4 +275,4 @@ export {
|
|
|
274
275
|
projectOrCheck,
|
|
275
276
|
removeAndProject
|
|
276
277
|
};
|
|
277
|
-
//# sourceMappingURL=apply-
|
|
278
|
+
//# sourceMappingURL=apply-AWZ32Z66.js.map
|
|
@@ -13,12 +13,6 @@ import {
|
|
|
13
13
|
ptyFields,
|
|
14
14
|
ptyRef
|
|
15
15
|
} from "./chunk-OFJIMBTL.js";
|
|
16
|
-
import {
|
|
17
|
-
ProjectError,
|
|
18
|
-
RULES_DIR,
|
|
19
|
-
packageRuleOutputs,
|
|
20
|
-
trackedFiles
|
|
21
|
-
} from "./chunk-NRBQK6UX.js";
|
|
22
16
|
import {
|
|
23
17
|
readReportTable
|
|
24
18
|
} from "./chunk-LFFIQBNY.js";
|
|
@@ -34,7 +28,7 @@ import {
|
|
|
34
28
|
import {
|
|
35
29
|
leaseSpecs,
|
|
36
30
|
readGitConfig
|
|
37
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NFJ44OE2.js";
|
|
38
32
|
import {
|
|
39
33
|
detect
|
|
40
34
|
} from "./chunk-2Q6MNGU5.js";
|
|
@@ -64,7 +58,7 @@ import {
|
|
|
64
58
|
RUNTIME_IDS,
|
|
65
59
|
climbCommand,
|
|
66
60
|
readTestTable
|
|
67
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-OMIIXLMO.js";
|
|
68
62
|
import {
|
|
69
63
|
TOOLS
|
|
70
64
|
} from "./chunk-V4NPDK6X.js";
|
|
@@ -72,8 +66,15 @@ import {
|
|
|
72
66
|
hostOutputs,
|
|
73
67
|
packagedBinary,
|
|
74
68
|
readHost,
|
|
75
|
-
readLock
|
|
76
|
-
|
|
69
|
+
readLock,
|
|
70
|
+
readLockFile
|
|
71
|
+
} from "./chunk-NAXUAC5S.js";
|
|
72
|
+
import {
|
|
73
|
+
ProjectError,
|
|
74
|
+
RULES_DIR,
|
|
75
|
+
packageRuleOutputs,
|
|
76
|
+
trackedFiles
|
|
77
|
+
} from "./chunk-NRBQK6UX.js";
|
|
77
78
|
import {
|
|
78
79
|
checkoutOf,
|
|
79
80
|
hasLinkedWorktrees
|
|
@@ -95,6 +96,7 @@ import {
|
|
|
95
96
|
// src/project/plan.ts
|
|
96
97
|
import { existsSync as existsSync7, readFileSync as readFileSync6, readdirSync } from "fs";
|
|
97
98
|
import { join as join6 } from "path";
|
|
99
|
+
import { stringify } from "smol-toml";
|
|
98
100
|
|
|
99
101
|
// src/project/frontmatter.ts
|
|
100
102
|
import { createRequire } from "module";
|
|
@@ -867,8 +869,7 @@ function adapterSource() {
|
|
|
867
869
|
return readFileSync3(file, "utf8");
|
|
868
870
|
}
|
|
869
871
|
function hookOutputs(spec) {
|
|
870
|
-
const
|
|
871
|
-
const lock = existsSync4(lockFile) ? JSON.parse(readFileSync3(lockFile, "utf8")) : {};
|
|
872
|
+
const lock = readLockFile(spec.root);
|
|
872
873
|
const previous = new Map(
|
|
873
874
|
(lock.outputs ?? []).filter((entry) => entry.managed !== void 0).filter((entry) => /#(hooks|pmcp-shell|pmcp)\./u.test(entry.path)).map((entry) => [entry.path, entry.managed])
|
|
874
875
|
);
|
|
@@ -1527,6 +1528,7 @@ ${body}`
|
|
|
1527
1528
|
}
|
|
1528
1529
|
function agentOutputs(spec) {
|
|
1529
1530
|
const outputs = [];
|
|
1531
|
+
const codexNames = /* @__PURE__ */ new Map();
|
|
1530
1532
|
for (const name of agentNames(spec.root)) {
|
|
1531
1533
|
const rel = `.agents/agents/${name}/agent.md`;
|
|
1532
1534
|
const { meta, body } = splitFrontmatter(
|
|
@@ -1556,22 +1558,36 @@ ${note}${body}`
|
|
|
1556
1558
|
});
|
|
1557
1559
|
}
|
|
1558
1560
|
if (spec.tools.has("codex")) {
|
|
1561
|
+
const { name: _name, description, ...rest } = overrides.codex ?? {};
|
|
1562
|
+
const codex = codexAgentName(name, overrides.codex);
|
|
1563
|
+
const taken = codexNames.get(codex);
|
|
1564
|
+
if (taken !== void 0)
|
|
1565
|
+
throw new ProjectError(
|
|
1566
|
+
`agents ${taken} and ${name} are both ${codex} in Codex; set [agents.<name>.codex] name for one of them`
|
|
1567
|
+
);
|
|
1568
|
+
codexNames.set(codex, name);
|
|
1569
|
+
const extra = Object.keys(rest).length > 0 ? stringify(rest) : "";
|
|
1559
1570
|
const toml = [
|
|
1560
1571
|
`# ${MARK} from ${rel}`,
|
|
1561
|
-
`name = ${tomlString(
|
|
1562
|
-
`description = ${tomlString(meta["description"])}`,
|
|
1572
|
+
`name = ${tomlString(codex)}`,
|
|
1573
|
+
`description = ${tomlString(description ?? meta["description"])}`,
|
|
1563
1574
|
`developer_instructions = ${tomlString(body.trim())}`,
|
|
1575
|
+
...extra ? ["", extra.trimEnd()] : [],
|
|
1564
1576
|
""
|
|
1565
1577
|
].join("\n");
|
|
1566
1578
|
outputs.push({
|
|
1567
1579
|
kind: "file",
|
|
1568
|
-
path: `.codex/agents/${
|
|
1580
|
+
path: `.codex/agents/${codex}.toml`,
|
|
1569
1581
|
content: toml
|
|
1570
1582
|
});
|
|
1571
1583
|
}
|
|
1572
1584
|
}
|
|
1573
1585
|
return outputs;
|
|
1574
1586
|
}
|
|
1587
|
+
function codexAgentName(name, overrides) {
|
|
1588
|
+
const set = overrides?.["name"];
|
|
1589
|
+
return typeof set === "string" ? set : name.replaceAll("-", "_");
|
|
1590
|
+
}
|
|
1575
1591
|
function plan(spec, owned2 = /* @__PURE__ */ new Map()) {
|
|
1576
1592
|
const outputs = [
|
|
1577
1593
|
...skillOutputs(spec),
|
|
@@ -5279,6 +5295,23 @@ function readSpec(config) {
|
|
|
5279
5295
|
}
|
|
5280
5296
|
perTool[tool] = table2(path, `[agents.${name}.${tool}]`, fields2);
|
|
5281
5297
|
}
|
|
5298
|
+
const codex = perTool.codex;
|
|
5299
|
+
if (codex?.["developer_instructions"] !== void 0)
|
|
5300
|
+
throw new ConfigError(
|
|
5301
|
+
path,
|
|
5302
|
+
`[agents.${name}.codex] developer_instructions comes from the body of .agents/agents/${name}/agent.md`
|
|
5303
|
+
);
|
|
5304
|
+
const codexName = codex?.["name"];
|
|
5305
|
+
if (codexName !== void 0 && (typeof codexName !== "string" || !/^[a-z0-9_]+$/u.test(codexName)))
|
|
5306
|
+
throw new ConfigError(
|
|
5307
|
+
path,
|
|
5308
|
+
`[agents.${name}.codex] name must be lowercase letters, digits and underscores`
|
|
5309
|
+
);
|
|
5310
|
+
if (codex?.["description"] !== void 0 && typeof codex["description"] !== "string")
|
|
5311
|
+
throw new ConfigError(
|
|
5312
|
+
path,
|
|
5313
|
+
`[agents.${name}.codex] description must be a string`
|
|
5314
|
+
);
|
|
5282
5315
|
agents[named(path, "[agents]", name)] = perTool;
|
|
5283
5316
|
}
|
|
5284
5317
|
const rules2 = table2(path, "[rules]", raw["rules"]);
|
|
@@ -5391,4 +5424,4 @@ export {
|
|
|
5391
5424
|
checkBudget,
|
|
5392
5425
|
readSpec
|
|
5393
5426
|
};
|
|
5394
|
-
//# sourceMappingURL=chunk-
|
|
5427
|
+
//# sourceMappingURL=chunk-4Z6NPSWX.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
prepare,
|
|
8
8
|
present,
|
|
9
9
|
writeNative
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KLWZZTUQ.js";
|
|
11
11
|
import {
|
|
12
12
|
ANTIGRAVITY_MCP_PLUGIN,
|
|
13
13
|
BUNDLE_NATIVE_FILES,
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
same,
|
|
22
22
|
splitKeyed,
|
|
23
23
|
withoutBlock
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
RULES_DIR,
|
|
27
|
-
legacyLinks
|
|
28
|
-
} from "./chunk-NRBQK6UX.js";
|
|
24
|
+
} from "./chunk-4Z6NPSWX.js";
|
|
29
25
|
import {
|
|
30
26
|
HOOK_DIRECTORY
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OMIIXLMO.js";
|
|
32
28
|
import {
|
|
33
29
|
LOCK_FILE,
|
|
34
30
|
replaceFile,
|
|
35
31
|
replaceLink,
|
|
36
32
|
writeLock
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NAXUAC5S.js";
|
|
34
|
+
import {
|
|
35
|
+
RULES_DIR,
|
|
36
|
+
legacyLinks
|
|
37
|
+
} from "./chunk-NRBQK6UX.js";
|
|
38
38
|
|
|
39
39
|
// src/project/apply/files.ts
|
|
40
40
|
import { mkdirSync } from "fs";
|
|
@@ -400,4 +400,4 @@ export {
|
|
|
400
400
|
unmanagedHooks,
|
|
401
401
|
describeHookProblem
|
|
402
402
|
};
|
|
403
|
-
//# sourceMappingURL=chunk-
|
|
403
|
+
//# sourceMappingURL=chunk-5A7QRZP6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hostApprovalDoctor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JP27V2H4.js";
|
|
4
4
|
import {
|
|
5
5
|
wakeableBy
|
|
6
6
|
} from "./chunk-JQVSDPFL.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
describeHookProblem,
|
|
13
13
|
project,
|
|
14
14
|
unmanagedHooks
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5A7QRZP6.js";
|
|
16
16
|
import {
|
|
17
17
|
ANTIGRAVITY_MCP_PLUGIN,
|
|
18
18
|
agentNames,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
skillNames,
|
|
24
24
|
splitFrontmatter,
|
|
25
25
|
uiClaudeDoctor
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4Z6NPSWX.js";
|
|
27
27
|
import {
|
|
28
28
|
pathPmcp,
|
|
29
29
|
pmcpCommand
|
|
@@ -35,8 +35,12 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
hostDoctor,
|
|
37
37
|
hostEnvDoctor,
|
|
38
|
-
ptyBinaryDoctor
|
|
39
|
-
|
|
38
|
+
ptyBinaryDoctor,
|
|
39
|
+
readLockFile
|
|
40
|
+
} from "./chunk-NAXUAC5S.js";
|
|
41
|
+
import {
|
|
42
|
+
ProjectError
|
|
43
|
+
} from "./chunk-NRBQK6UX.js";
|
|
40
44
|
import {
|
|
41
45
|
projectStateDir
|
|
42
46
|
} from "./chunk-OEH47H6A.js";
|
|
@@ -605,6 +609,19 @@ function pathFinding(root, stateDir, options) {
|
|
|
605
609
|
|
|
606
610
|
// src/project/doctor/inspect.ts
|
|
607
611
|
function doctor(spec, options) {
|
|
612
|
+
try {
|
|
613
|
+
readLockFile(spec.root);
|
|
614
|
+
} catch (error) {
|
|
615
|
+
if (!(error instanceof ProjectError)) throw error;
|
|
616
|
+
return [
|
|
617
|
+
{
|
|
618
|
+
tool: "project",
|
|
619
|
+
check: "outputs match sources",
|
|
620
|
+
status: "fail",
|
|
621
|
+
detail: error.message
|
|
622
|
+
}
|
|
623
|
+
];
|
|
624
|
+
}
|
|
608
625
|
const check = project(spec, { check: true });
|
|
609
626
|
const findings = [
|
|
610
627
|
check.code === 0 ? { tool: "project", check: "outputs match sources", status: "ok" } : {
|
|
@@ -654,4 +671,4 @@ export {
|
|
|
654
671
|
spawnRunner,
|
|
655
672
|
doctor
|
|
656
673
|
};
|
|
657
|
-
//# sourceMappingURL=chunk-
|
|
674
|
+
//# sourceMappingURL=chunk-5F7TL3V7.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
nativeBinary,
|
|
9
9
|
ptyBinary
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NAXUAC5S.js";
|
|
11
11
|
|
|
12
12
|
// src/tui/rust.ts
|
|
13
13
|
import { spawn } from "child_process";
|
|
@@ -62,4 +62,4 @@ export {
|
|
|
62
62
|
runTui,
|
|
63
63
|
dependencies
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-BUD3WS4Y.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-NAXUAC5S.js";
|
|
7
7
|
import {
|
|
8
8
|
GroupStore,
|
|
9
9
|
egressPolicy,
|
|
@@ -775,4 +775,4 @@ export {
|
|
|
775
775
|
prepareBridge,
|
|
776
776
|
assertBridge
|
|
777
777
|
};
|
|
778
|
-
//# sourceMappingURL=chunk-
|
|
778
|
+
//# sourceMappingURL=chunk-D2DDM5VZ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RPCIROW7.js";
|
|
4
4
|
import {
|
|
5
5
|
readSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4Z6NPSWX.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError
|
|
9
9
|
} from "./chunk-A4PKLESO.js";
|
|
@@ -28,4 +28,4 @@ function specFrom(context) {
|
|
|
28
28
|
export {
|
|
29
29
|
specFrom
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=chunk-
|
|
31
|
+
//# sourceMappingURL=chunk-FOIQUPIQ.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.22.
|
|
1193
|
+
var SERVER_VERSION = "0.22.2";
|
|
1194
1194
|
var MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
1195
1195
|
function registerSkillTools(server, tools) {
|
|
1196
1196
|
registerCatalogTool(server, tools);
|
|
@@ -1247,4 +1247,4 @@ export {
|
|
|
1247
1247
|
registerSkillTools,
|
|
1248
1248
|
createSkillServer
|
|
1249
1249
|
};
|
|
1250
|
-
//# sourceMappingURL=chunk-
|
|
1250
|
+
//# sourceMappingURL=chunk-G25LCRIG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNativeHost
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T6MQPVLH.js";
|
|
4
4
|
import {
|
|
5
5
|
locateExecutable
|
|
6
6
|
} from "./chunk-R2GPCZUX.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resourceClaim,
|
|
34
34
|
resourceRunning,
|
|
35
35
|
runtimeUnit
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-D2DDM5VZ.js";
|
|
37
37
|
import {
|
|
38
38
|
command
|
|
39
39
|
} from "./chunk-34DECPVC.js";
|
|
@@ -1981,4 +1981,4 @@ export {
|
|
|
1981
1981
|
isReadOnly,
|
|
1982
1982
|
runOperation
|
|
1983
1983
|
};
|
|
1984
|
-
//# sourceMappingURL=chunk-
|
|
1984
|
+
//# sourceMappingURL=chunk-GE2PHR35.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
POLICIES,
|
|
6
6
|
customMode,
|
|
7
7
|
customPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4Z6NPSWX.js";
|
|
9
9
|
import {
|
|
10
10
|
RUNTIMES
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OMIIXLMO.js";
|
|
12
12
|
|
|
13
13
|
// src/hooks/inspection/list.ts
|
|
14
14
|
function policyRows(compiled) {
|
|
@@ -42,4 +42,4 @@ function policyRows(compiled) {
|
|
|
42
42
|
export {
|
|
43
43
|
policyRows
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-GZQH3RJA.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HOST_MANIFEST,
|
|
3
3
|
HOST_POLICY
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NAXUAC5S.js";
|
|
5
5
|
import {
|
|
6
6
|
projectStateDir
|
|
7
7
|
} from "./chunk-OEH47H6A.js";
|
|
@@ -99,4 +99,4 @@ export {
|
|
|
99
99
|
hostApprovalDoctor,
|
|
100
100
|
writeApproval
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
102
|
+
//# sourceMappingURL=chunk-JP27V2H4.js.map
|
|
@@ -19,17 +19,17 @@ import {
|
|
|
19
19
|
splitKeyed,
|
|
20
20
|
versionMatches,
|
|
21
21
|
withoutBlock
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4Z6NPSWX.js";
|
|
23
|
+
import {
|
|
24
|
+
lockVersionProblem,
|
|
25
|
+
readLock,
|
|
26
|
+
replaceFile
|
|
27
|
+
} from "./chunk-NAXUAC5S.js";
|
|
23
28
|
import {
|
|
24
29
|
ProjectError,
|
|
25
30
|
RULES_DIR,
|
|
26
31
|
trackedFiles
|
|
27
32
|
} from "./chunk-NRBQK6UX.js";
|
|
28
|
-
import {
|
|
29
|
-
lockVersionProblem,
|
|
30
|
-
readLock,
|
|
31
|
-
replaceFile
|
|
32
|
-
} from "./chunk-XB363ZXT.js";
|
|
33
33
|
|
|
34
34
|
// src/project/apply/census.ts
|
|
35
35
|
import { existsSync, readFileSync, readdirSync } from "fs";
|
|
@@ -271,4 +271,4 @@ export {
|
|
|
271
271
|
prepare,
|
|
272
272
|
checkProject
|
|
273
273
|
};
|
|
274
|
-
//# sourceMappingURL=chunk-
|
|
274
|
+
//# sourceMappingURL=chunk-KLWZZTUQ.js.map
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProjectError
|
|
3
|
+
} from "./chunk-NRBQK6UX.js";
|
|
1
4
|
import {
|
|
2
5
|
projectStateDir
|
|
3
6
|
} from "./chunk-OEH47H6A.js";
|
|
7
|
+
import {
|
|
8
|
+
lockProblem
|
|
9
|
+
} from "./chunk-XWLMZKH2.js";
|
|
4
10
|
import {
|
|
5
11
|
VERSION
|
|
6
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FWKQA6TX.js";
|
|
7
13
|
import {
|
|
8
14
|
ConfigError
|
|
9
15
|
} from "./chunk-GJXOFDJT.js";
|
|
@@ -143,7 +149,13 @@ var PROJECTOR_FILE = "projector.json";
|
|
|
143
149
|
function lockVersionProblem(root) {
|
|
144
150
|
const path = join2(root, "pmcp.lock");
|
|
145
151
|
if (!existsSync(path)) return null;
|
|
146
|
-
const
|
|
152
|
+
const text2 = readFileSync(path, "utf8");
|
|
153
|
+
let lock;
|
|
154
|
+
try {
|
|
155
|
+
lock = JSON.parse(text2);
|
|
156
|
+
} catch {
|
|
157
|
+
return lockProblem(text2);
|
|
158
|
+
}
|
|
147
159
|
const recorded = lock[LOCK_VERSION_KEY];
|
|
148
160
|
if (recorded === VERSION) return null;
|
|
149
161
|
return `drift: pmcp.lock ${LOCK_VERSION_KEY} ${typeof recorded === "string" ? recorded : "none"}, this pmcp ${VERSION}`;
|
|
@@ -174,11 +186,18 @@ import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
|
174
186
|
import { join as join3 } from "path";
|
|
175
187
|
var LOCK_FILE = "pmcp.lock";
|
|
176
188
|
var sha = (text2) => createHash("sha256").update(text2).digest("hex");
|
|
177
|
-
function
|
|
189
|
+
function readLockFile(root) {
|
|
178
190
|
const path = join3(root, LOCK_FILE);
|
|
179
|
-
if (!existsSync2(path)) return
|
|
180
|
-
const
|
|
181
|
-
|
|
191
|
+
if (!existsSync2(path)) return {};
|
|
192
|
+
const text2 = readFileSync2(path, "utf8");
|
|
193
|
+
try {
|
|
194
|
+
return JSON.parse(text2);
|
|
195
|
+
} catch {
|
|
196
|
+
throw new ProjectError(lockProblem(text2));
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
function readLock(root) {
|
|
200
|
+
return readLockFile(root).outputs ?? [];
|
|
182
201
|
}
|
|
183
202
|
function lockEntry(output) {
|
|
184
203
|
switch (output.kind) {
|
|
@@ -567,6 +586,7 @@ export {
|
|
|
567
586
|
lockVersionProblem,
|
|
568
587
|
recordProjector,
|
|
569
588
|
LOCK_FILE,
|
|
589
|
+
readLockFile,
|
|
570
590
|
readLock,
|
|
571
591
|
writeLock,
|
|
572
592
|
readHost,
|
|
@@ -578,4 +598,4 @@ export {
|
|
|
578
598
|
hostEnvDoctor,
|
|
579
599
|
hostDoctor
|
|
580
600
|
};
|
|
581
|
-
//# sourceMappingURL=chunk-
|
|
601
|
+
//# sourceMappingURL=chunk-NAXUAC5S.js.map
|
|
@@ -170,10 +170,12 @@ function gate(path, dir, source) {
|
|
|
170
170
|
"lock_env",
|
|
171
171
|
"tree_env",
|
|
172
172
|
"log_dir",
|
|
173
|
+
"log_keep",
|
|
173
174
|
"max_load",
|
|
174
175
|
"load_wait_seconds"
|
|
175
176
|
]);
|
|
176
177
|
const tree = read.string("tree");
|
|
178
|
+
const logKeep = read.positive("log_keep");
|
|
177
179
|
const lockEnv = read.envName("lock_env");
|
|
178
180
|
const treeEnv = read.envName("tree_env");
|
|
179
181
|
const logDir = read.string("log_dir");
|
|
@@ -186,7 +188,8 @@ function gate(path, dir, source) {
|
|
|
186
188
|
...maxLoad ? { maxLoad } : {},
|
|
187
189
|
...lockEnv ? { lockEnv } : {},
|
|
188
190
|
...treeEnv ? { treeEnv } : {},
|
|
189
|
-
...logDir ? { logDir: expandPath(dir, logDir) } : {}
|
|
191
|
+
...logDir ? { logDir: expandPath(dir, logDir) } : {},
|
|
192
|
+
...logKeep ? { logKeep: Math.floor(logKeep) } : {}
|
|
190
193
|
};
|
|
191
194
|
}
|
|
192
195
|
function deliver(path, source) {
|
|
@@ -380,4 +383,4 @@ export {
|
|
|
380
383
|
gateTreePath,
|
|
381
384
|
leaseSpecs
|
|
382
385
|
};
|
|
383
|
-
//# sourceMappingURL=chunk-
|
|
386
|
+
//# sourceMappingURL=chunk-NFJ44OE2.js.map
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
observeSession,
|
|
8
8
|
openGroup,
|
|
9
9
|
runOperation
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GE2PHR35.js";
|
|
11
11
|
import {
|
|
12
12
|
nativeHostTools
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-T6MQPVLH.js";
|
|
14
14
|
import {
|
|
15
15
|
locateExecutable
|
|
16
16
|
} from "./chunk-R2GPCZUX.js";
|
|
17
17
|
import {
|
|
18
18
|
artifact,
|
|
19
19
|
stateDirectory
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-D2DDM5VZ.js";
|
|
21
21
|
import {
|
|
22
22
|
ptyBinary
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NAXUAC5S.js";
|
|
24
24
|
import {
|
|
25
25
|
GroupStore,
|
|
26
26
|
privateJson
|
|
@@ -249,4 +249,4 @@ async function invoke(operation) {
|
|
|
249
249
|
export {
|
|
250
250
|
invoke
|
|
251
251
|
};
|
|
252
|
-
//# sourceMappingURL=chunk-
|
|
252
|
+
//# sourceMappingURL=chunk-SKOP4ZST.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-NAXUAC5S.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-T6MQPVLH.js.map
|