@modootoday/pmcp 0.22.1 → 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-VMOFDOCN.js → apply-AWZ32Z66.js} +14 -13
- package/dist/{chunk-6HCEEC6V.js → chunk-4Z6NPSWX.js} +13 -13
- package/dist/{chunk-D5BLJIAA.js → chunk-5A7QRZP6.js} +9 -9
- package/dist/{chunk-OKMWYNZF.js → chunk-5F7TL3V7.js} +23 -6
- package/dist/{chunk-XWAE3VEQ.js → chunk-BUD3WS4Y.js} +2 -2
- package/dist/{chunk-FHK5BE2D.js → chunk-D2DDM5VZ.js} +2 -2
- package/dist/{chunk-DPVLHB3K.js → chunk-FOIQUPIQ.js} +2 -2
- package/dist/chunk-FWKQA6TX.js +7 -0
- package/dist/{chunk-3W2GELNR.js → chunk-G25LCRIG.js} +2 -2
- package/dist/{chunk-SB6X342E.js → chunk-GE2PHR35.js} +3 -3
- package/dist/{chunk-TMXWSGXH.js → chunk-GZQH3RJA.js} +3 -3
- package/dist/{chunk-ALX7BECI.js → chunk-JP27V2H4.js} +2 -2
- package/dist/{chunk-V6LLHO4S.js → chunk-KLWZZTUQ.js} +7 -7
- package/dist/{chunk-UVGW56SY.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-GRRURNVA.js → chunk-SKOP4ZST.js} +5 -5
- package/dist/{chunk-M5LC5TKQ.js → chunk-T6MQPVLH.js} +2 -2
- package/dist/{chunk-3TS3CX3R.js → chunk-U2NWTZQP.js} +2 -2
- package/dist/{chunk-XYEI7KRO.js → chunk-U3IHGG7X.js} +3 -3
- package/dist/{chunk-P2LJADGI.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-NYA4GX44.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-XA7SR2OU.js → completion-V756JVX6.js} +2 -2
- package/dist/{diagnostics-AYSD3454.js → diagnostics-R7S3DNXD.js} +7 -5
- package/dist/{doctor-PDLZL4BR.js → doctor-44S5EWK5.js} +20 -13
- package/dist/{entry-5CKOI3QK.js → entry-GSGCMXE5.js} +11 -9
- package/dist/{exec-mcp-EJZVPVU5.js → exec-mcp-3COXHDYT.js} +11 -10
- package/dist/{harness-VMQJY3KY.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-SKD67KMA.js → hooks-HQOLXR3A.js} +3 -3
- package/dist/{host-GY2LFEZX.js → host-4W3JUQAO.js} +11 -10
- package/dist/{host-4BA3LM7Z.js → host-N5UILUK7.js} +8 -6
- package/dist/{host-run-X3VDTIQ2.js → host-run-CVYRZB7R.js} +6 -4
- package/dist/http.js +1 -1
- package/dist/{import-mcp-G2VTD5KR.js → import-mcp-IAGC3LJU.js} +10 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -14
- package/dist/{init-JEK3QUAK.js → init-HPEVKKMU.js} +2 -2
- package/dist/{invoke-7BUFBFJU.js → invoke-TD5YR2G7.js} +9 -7
- package/dist/{list-D3Y3TIC6.js → list-YUHJ5CTT.js} +10 -9
- package/dist/{logout-T4JLFE2D.js → logout-JQ5UPC5W.js} +9 -8
- package/dist/{mainline-Q42M2GJ2.js → mainline-7HO7RCQH.js} +55 -24
- package/dist/{mcp-GPIHVL65.js → mcp-B6SYBT3X.js} +2 -2
- package/dist/{project-6QRKXOMM.js → project-GOW2MEFY.js} +7 -7
- package/dist/{run-MVP22ENA.js → run-7UNRLLYD.js} +8 -7
- package/dist/{run-YHOLKUYB.js → run-ZOSIKNDX.js} +4 -4
- package/dist/{serve-EAESQK2I.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-K3TAZ3IH.js → start-login-NRD323LK.js} +9 -8
- package/dist/{status-DPPNTGHB.js → status-JN2GT5UM.js} +10 -9
- package/dist/{status-25DRPV7U.js → status-ZY5B7V6R.js} +9 -8
- package/dist/stdio.js +2 -2
- package/dist/{test-I2V5AMQF.js → test-VGJXKCQT.js} +10 -9
- package/dist/{tui-VCEN2L5I.js → tui-GORRJIMA.js} +4 -4
- package/dist/{worker-NPQFYEBU.js → worker-LJG2NDMK.js} +9 -7
- package/docs/git-workflow.md +20 -12
- package/docs/hooks.md +7 -1
- package/docs/upgrading.md +13 -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-ACHBHIGD.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
|
|
@@ -868,8 +869,7 @@ function adapterSource() {
|
|
|
868
869
|
return readFileSync3(file, "utf8");
|
|
869
870
|
}
|
|
870
871
|
function hookOutputs(spec) {
|
|
871
|
-
const
|
|
872
|
-
const lock = existsSync4(lockFile) ? JSON.parse(readFileSync3(lockFile, "utf8")) : {};
|
|
872
|
+
const lock = readLockFile(spec.root);
|
|
873
873
|
const previous = new Map(
|
|
874
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])
|
|
875
875
|
);
|
|
@@ -5424,4 +5424,4 @@ export {
|
|
|
5424
5424
|
checkBudget,
|
|
5425
5425
|
readSpec
|
|
5426
5426
|
};
|
|
5427
|
-
//# 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-UVGW56SY.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
|
|
@@ -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";
|
|
@@ -25,4 +25,4 @@ function serverFrom(context) {
|
|
|
25
25
|
export {
|
|
26
26
|
serverFrom
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-U2NWTZQP.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-BUD3WS4Y.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-T6MQPVLH.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-U3IHGG7X.js.map
|