@modootoday/pmcp 0.26.0 → 0.27.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/.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-HJUCYQDQ.js → apply-YNBY2GPK.js} +7 -7
- package/dist/{chunk-FXDGW2IH.js → chunk-5TT7YAEP.js} +3 -3
- package/dist/chunk-674APJDK.js +128 -0
- package/dist/chunk-6TM7PLXG.js +154 -0
- package/dist/{chunk-2JUHFM4V.js → chunk-6U6MLIS2.js} +2 -2
- package/dist/{chunk-KQV2EPAP.js → chunk-ENFF7ZBC.js} +2 -2
- package/dist/{chunk-GIL3RBRX.js → chunk-GVKVMSWX.js} +25 -23
- package/dist/{chunk-LCPCRZ7N.js → chunk-JTKGDT2K.js} +2 -2
- package/dist/{chunk-UVPIVSZB.js → chunk-L5EJK24I.js} +2 -2
- package/dist/{chunk-3JOFDNL4.js → chunk-LKH57HLV.js} +2 -2
- package/dist/chunk-LXJTABBQ.js +1148 -0
- package/dist/{chunk-OHCUPXU4.js → chunk-LXWAU7AX.js} +65 -2
- package/dist/{chunk-Q5BQIRM3.js → chunk-M5GNZSOJ.js} +2 -2
- package/dist/chunk-MXVP3ICV.js +7 -0
- package/dist/{chunk-3KISMGVP.js → chunk-OY7XYKVL.js} +2 -2
- package/dist/{chunk-C7Y2MBCN.js → chunk-OZTEMCCM.js} +3 -3
- package/dist/{chunk-6XE3WW7S.js → chunk-PH3P5WEY.js} +3 -3
- package/dist/{chunk-NQZMGQFG.js → chunk-Q3XLIRIJ.js} +4 -4
- package/dist/{chunk-OG2ESRQP.js → chunk-TVA2IN6H.js} +5 -5
- package/dist/chunk-TYXJBXZQ.js +441 -0
- package/dist/chunk-WG7KH46S.js +71 -0
- package/dist/{chunk-2GL5L2G5.js → chunk-X2WDR3UK.js} +2 -2
- package/dist/{chunk-OBCBCLS2.js → chunk-X3LNF5KJ.js} +5 -5
- package/dist/chunk-X6W7JIED.js +25 -0
- package/dist/{chunk-7FHOSWNQ.js → chunk-XCIFD7G5.js} +2 -2
- package/dist/{chunk-Y7FYCVUK.js → chunk-Y5WIIEG2.js} +2 -2
- package/dist/{chunk-7PBWLYCO.js → chunk-ZO5CRS2T.js} +2 -2
- package/dist/cli.js +13 -19
- package/dist/{completion-ZKWGPMEK.js → completion-WKIMMLNF.js} +6 -6
- package/dist/{diagnostics-IM2OPAPL.js → diagnostics-LCNF5NRK.js} +5 -5
- package/dist/doctor-NKFZNSRD.js +106 -0
- package/dist/{doctor-VZTHEPVC.js → doctor-PSMPNQXS.js} +9 -9
- package/dist/{entry-Q4EI4PNO.js → entry-LMAWTZM2.js} +11 -11
- package/dist/{exec-mcp-AWGUQVT2.js → exec-mcp-VAP46MKO.js} +5 -5
- package/dist/{harness-L4C5XWKR.js → harness-ZCMU5MJD.js} +3 -3
- package/dist/harness-launch-gate.js +3 -3
- package/dist/harness-worker.js +5 -5
- package/dist/heavy-VBC4AGL6.js +1063 -0
- package/dist/{hooks-2E6PJJQK.js → hooks-AWAO7CQO.js} +3 -3
- package/dist/{host-RJJGTKWA.js → host-4GFQQJUS.js} +7 -7
- package/dist/{host-OQDBQJB2.js → host-I4XIJTXR.js} +6 -6
- package/dist/host-OBTC2PGQ.js +32 -0
- package/dist/{host-run-PWCIXJDN.js → host-run-T3FC7L6I.js} +4 -4
- package/dist/http.js +1 -1
- package/dist/{import-mcp-2H2NRUCL.js → import-mcp-5JSGA5IS.js} +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/{init-O2UCU2WT.js → init-PZYWBDZS.js} +2 -2
- package/dist/{invoke-SJ3JHRJU.js → invoke-DCKJCMRB.js} +7 -7
- package/dist/jobs-FLHB3WER.js +26 -0
- package/dist/{list-SJVXZGKK.js → list-ZEU7T3XK.js} +6 -6
- package/dist/{logout-ROKXWR3T.js → logout-CUSOVMKL.js} +5 -5
- package/dist/{mcp-U7MVFAB4.js → mcp-ZHOPOFXI.js} +2 -2
- package/dist/measure-AUBPYT6L.js +129 -0
- package/dist/plan-46BTJQIV.js +98 -0
- package/dist/{project-MGUYHUF7.js → project-T36TRAWT.js} +4 -4
- package/dist/{run-TBO5JO4Y.js → run-37PVE74I.js} +4 -4
- package/dist/{run-DDWLS6FY.js → run-LMSHQJPQ.js} +4 -4
- package/dist/{serve-RBQYB3FP.js → serve-E4FD6PAL.js} +3 -3
- package/dist/{start-login-SOTNDUP6.js → start-login-JSKFXSLY.js} +5 -5
- package/dist/{status-TSTOFNZU.js → status-ZNWF4362.js} +5 -5
- package/dist/{status-EBIUQIGY.js → status-ZSK3PNM2.js} +6 -6
- package/dist/stdio.js +2 -2
- package/dist/{test-4PZHHWOQ.js → test-OCTC2DSZ.js} +5 -5
- package/dist/{tui-QD2LMXHV.js → tui-LE2KPUMI.js} +4 -4
- package/dist/{worker-SPJ4HFWV.js → worker-6U67LWIP.js} +9 -9
- package/docs/commands.md +24 -8
- package/docs/project-configuration.md +1 -1
- 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-J43Z4O3G.js +0 -7
- package/dist/heavy-OG3UVZNY.js +0 -2206
|
@@ -21,7 +21,7 @@ async function route(context, verb, name) {
|
|
|
21
21
|
if (name === void 0 || context.args.flags.has("check") || context.args.flags.has("write") || many(context.args, "source").length > 0 || many(context.args, "name").length > 0) {
|
|
22
22
|
throw new ArgumentError("exec-mcp takes only a declared MCP alias");
|
|
23
23
|
}
|
|
24
|
-
const { runExecMcp } = await import("./exec-mcp-
|
|
24
|
+
const { runExecMcp } = await import("./exec-mcp-VAP46MKO.js");
|
|
25
25
|
return await runExecMcp(context, name);
|
|
26
26
|
}
|
|
27
27
|
if (verb === "import-mcp") {
|
|
@@ -30,13 +30,13 @@ async function route(context, verb, name) {
|
|
|
30
30
|
"import-mcp takes --source, --name and --write; no positional name or --check"
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
const { importMcp } = await import("./import-mcp-
|
|
33
|
+
const { importMcp } = await import("./import-mcp-5JSGA5IS.js");
|
|
34
34
|
return importMcp(context);
|
|
35
35
|
}
|
|
36
36
|
if (many(context.args, "source").length > 0 || one(context.args, "name") !== void 0 || context.args.flags.has("write")) {
|
|
37
37
|
throw new ArgumentError("--source, --name and --write require import-mcp");
|
|
38
38
|
}
|
|
39
|
-
const apply = await import("./apply-
|
|
39
|
+
const apply = await import("./apply-YNBY2GPK.js");
|
|
40
40
|
if (verb === void 0) return apply.projectOrCheck(context);
|
|
41
41
|
if (!VERBS.includes(verb)) throw unknownSubcommand("project", verb, VERBS);
|
|
42
42
|
if (context.args.flags.has("check")) {
|
|
@@ -69,4 +69,4 @@ var projectCommand = {
|
|
|
69
69
|
export {
|
|
70
70
|
projectCommand
|
|
71
71
|
};
|
|
72
|
-
//# sourceMappingURL=project-
|
|
72
|
+
//# sourceMappingURL=project-T36TRAWT.js.map
|
|
@@ -13,11 +13,11 @@ async function executeMcpCommand(context) {
|
|
|
13
13
|
if (extra.length) throw new ArgumentError(`unexpected ${extra.join(" ")}`);
|
|
14
14
|
if (context.args.flags.has("json") && verb !== "status")
|
|
15
15
|
throw new ArgumentError("--json requires mcp status");
|
|
16
|
-
if (verb === "status") return (await import("./status-
|
|
17
|
-
if (verb === "logout") return (await import("./logout-
|
|
18
|
-
return (await import("./start-login-
|
|
16
|
+
if (verb === "status") return (await import("./status-ZNWF4362.js")).run(context);
|
|
17
|
+
if (verb === "logout") return (await import("./logout-CUSOVMKL.js")).run(context);
|
|
18
|
+
return (await import("./start-login-JSKFXSLY.js")).run(context);
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
21
|
executeMcpCommand
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=run-
|
|
23
|
+
//# sourceMappingURL=run-37PVE74I.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSpec
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y5WIIEG2.js";
|
|
4
4
|
import "./chunk-S2FUWBLO.js";
|
|
5
5
|
import "./chunk-FLG7VRTC.js";
|
|
6
6
|
import "./chunk-2GD7PQ7J.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
ArgumentError,
|
|
30
30
|
one
|
|
31
31
|
} from "./chunk-Y6NFETNG.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-OY7XYKVL.js";
|
|
33
33
|
import "./chunk-PZ6D3WKD.js";
|
|
34
34
|
import "./chunk-N7ANFMA5.js";
|
|
35
35
|
import "./chunk-TYY5TYHF.js";
|
|
@@ -38,7 +38,7 @@ import "./chunk-KLIYFD3W.js";
|
|
|
38
38
|
import "./chunk-GUHOEIHP.js";
|
|
39
39
|
import "./chunk-IJBSOWHK.js";
|
|
40
40
|
import "./chunk-XWLMZKH2.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-MXVP3ICV.js";
|
|
42
42
|
import {
|
|
43
43
|
readConfig
|
|
44
44
|
} from "./chunk-GJXOFDJT.js";
|
|
@@ -135,4 +135,4 @@ function run(context) {
|
|
|
135
135
|
export {
|
|
136
136
|
run
|
|
137
137
|
};
|
|
138
|
-
//# sourceMappingURL=run-
|
|
138
|
+
//# sourceMappingURL=run-LMSHQJPQ.js.map
|
|
@@ -16,7 +16,7 @@ import "./chunk-73AKO4UL.js";
|
|
|
16
16
|
import {
|
|
17
17
|
serve,
|
|
18
18
|
serveWithMailbox
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ENFF7ZBC.js";
|
|
20
20
|
import {
|
|
21
21
|
serveSpec
|
|
22
22
|
} from "./chunk-VBVNOLRR.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
one
|
|
31
31
|
} from "./chunk-Y6NFETNG.js";
|
|
32
32
|
import "./chunk-ISZOLR3D.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-XCIFD7G5.js";
|
|
34
34
|
import "./chunk-6WXMJOMI.js";
|
|
35
35
|
import "./chunk-4CRRLDDS.js";
|
|
36
36
|
import "./chunk-YSAWTGNA.js";
|
|
@@ -101,4 +101,4 @@ var serveCommand = {
|
|
|
101
101
|
export {
|
|
102
102
|
serveCommand
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=serve-
|
|
104
|
+
//# sourceMappingURL=serve-E4FD6PAL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M5GNZSOJ.js";
|
|
4
4
|
import {
|
|
5
5
|
storeBearer,
|
|
6
6
|
tokenRequest,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeCredentials
|
|
15
15
|
} from "./chunk-UPQTAHUK.js";
|
|
16
16
|
import "./chunk-7CHUMF3E.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-Y5WIIEG2.js";
|
|
18
18
|
import "./chunk-S2FUWBLO.js";
|
|
19
19
|
import "./chunk-FLG7VRTC.js";
|
|
20
20
|
import "./chunk-2GD7PQ7J.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
ArgumentError,
|
|
43
43
|
one
|
|
44
44
|
} from "./chunk-Y6NFETNG.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-OY7XYKVL.js";
|
|
46
46
|
import "./chunk-PZ6D3WKD.js";
|
|
47
47
|
import "./chunk-N7ANFMA5.js";
|
|
48
48
|
import "./chunk-TYY5TYHF.js";
|
|
@@ -51,7 +51,7 @@ import "./chunk-KLIYFD3W.js";
|
|
|
51
51
|
import "./chunk-GUHOEIHP.js";
|
|
52
52
|
import "./chunk-IJBSOWHK.js";
|
|
53
53
|
import "./chunk-XWLMZKH2.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-MXVP3ICV.js";
|
|
55
55
|
import "./chunk-GJXOFDJT.js";
|
|
56
56
|
import "./chunk-PMJG2CXF.js";
|
|
57
57
|
import "./chunk-J6KL3COD.js";
|
|
@@ -425,4 +425,4 @@ async function run(context) {
|
|
|
425
425
|
export {
|
|
426
426
|
run
|
|
427
427
|
};
|
|
428
|
-
//# sourceMappingURL=start-login-
|
|
428
|
+
//# sourceMappingURL=start-login-JSKFXSLY.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M5GNZSOJ.js";
|
|
4
4
|
import {
|
|
5
5
|
status
|
|
6
6
|
} from "./chunk-UPQTAHUK.js";
|
|
7
7
|
import "./chunk-7CHUMF3E.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-Y5WIIEG2.js";
|
|
9
9
|
import "./chunk-S2FUWBLO.js";
|
|
10
10
|
import "./chunk-FLG7VRTC.js";
|
|
11
11
|
import "./chunk-2GD7PQ7J.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-Q5H3L6Y4.js";
|
|
|
27
27
|
import "./chunk-GQRDEIQA.js";
|
|
28
28
|
import "./chunk-V4NPDK6X.js";
|
|
29
29
|
import "./chunk-Y6NFETNG.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-OY7XYKVL.js";
|
|
31
31
|
import "./chunk-PZ6D3WKD.js";
|
|
32
32
|
import "./chunk-N7ANFMA5.js";
|
|
33
33
|
import "./chunk-TYY5TYHF.js";
|
|
@@ -36,7 +36,7 @@ import "./chunk-KLIYFD3W.js";
|
|
|
36
36
|
import "./chunk-GUHOEIHP.js";
|
|
37
37
|
import "./chunk-IJBSOWHK.js";
|
|
38
38
|
import "./chunk-XWLMZKH2.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-MXVP3ICV.js";
|
|
40
40
|
import "./chunk-GJXOFDJT.js";
|
|
41
41
|
import "./chunk-PMJG2CXF.js";
|
|
42
42
|
import "./chunk-J6KL3COD.js";
|
|
@@ -59,4 +59,4 @@ function run(context) {
|
|
|
59
59
|
export {
|
|
60
60
|
run
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=status-
|
|
62
|
+
//# sourceMappingURL=status-ZNWF4362.js.map
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
} from "./chunk-VN34GLGJ.js";
|
|
8
8
|
import {
|
|
9
9
|
policyRows
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L5EJK24I.js";
|
|
11
11
|
import "./chunk-E272CFPS.js";
|
|
12
12
|
import {
|
|
13
13
|
configFrom
|
|
14
14
|
} from "./chunk-7CHUMF3E.js";
|
|
15
15
|
import {
|
|
16
16
|
checkProject
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PH3P5WEY.js";
|
|
18
18
|
import {
|
|
19
19
|
checkBudget,
|
|
20
20
|
readSpec
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Y5WIIEG2.js";
|
|
22
22
|
import "./chunk-S2FUWBLO.js";
|
|
23
23
|
import "./chunk-FLG7VRTC.js";
|
|
24
24
|
import {
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
EXIT,
|
|
59
59
|
noConfig
|
|
60
60
|
} from "./chunk-Y6NFETNG.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-OY7XYKVL.js";
|
|
62
62
|
import "./chunk-PZ6D3WKD.js";
|
|
63
63
|
import "./chunk-N7ANFMA5.js";
|
|
64
64
|
import "./chunk-TYY5TYHF.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
worktreesOf
|
|
71
71
|
} from "./chunk-IJBSOWHK.js";
|
|
72
72
|
import "./chunk-XWLMZKH2.js";
|
|
73
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-MXVP3ICV.js";
|
|
74
74
|
import "./chunk-GJXOFDJT.js";
|
|
75
75
|
import "./chunk-PMJG2CXF.js";
|
|
76
76
|
import "./chunk-J6KL3COD.js";
|
|
@@ -306,4 +306,4 @@ var statusCommand = {
|
|
|
306
306
|
export {
|
|
307
307
|
statusCommand
|
|
308
308
|
};
|
|
309
|
-
//# sourceMappingURL=status-
|
|
309
|
+
//# sourceMappingURL=status-ZSK3PNM2.js.map
|
package/dist/stdio.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
resolveRoots,
|
|
5
5
|
serve,
|
|
6
6
|
serveWithMailbox
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ENFF7ZBC.js";
|
|
8
|
+
import "./chunk-XCIFD7G5.js";
|
|
9
9
|
import "./chunk-6WXMJOMI.js";
|
|
10
10
|
import "./chunk-4CRRLDDS.js";
|
|
11
11
|
import "./chunk-YSAWTGNA.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
specFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X2WDR3UK.js";
|
|
4
4
|
import {
|
|
5
5
|
sourceFor
|
|
6
6
|
} from "./chunk-E272CFPS.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
customPolicy,
|
|
14
14
|
externalPolicy,
|
|
15
15
|
readScript
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Y5WIIEG2.js";
|
|
17
17
|
import "./chunk-S2FUWBLO.js";
|
|
18
18
|
import "./chunk-FLG7VRTC.js";
|
|
19
19
|
import "./chunk-2GD7PQ7J.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
ArgumentError,
|
|
58
58
|
one
|
|
59
59
|
} from "./chunk-Y6NFETNG.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-OY7XYKVL.js";
|
|
61
61
|
import "./chunk-PZ6D3WKD.js";
|
|
62
62
|
import "./chunk-N7ANFMA5.js";
|
|
63
63
|
import "./chunk-TYY5TYHF.js";
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
worktreesOf
|
|
72
72
|
} from "./chunk-IJBSOWHK.js";
|
|
73
73
|
import "./chunk-XWLMZKH2.js";
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-MXVP3ICV.js";
|
|
75
75
|
import "./chunk-GJXOFDJT.js";
|
|
76
76
|
import "./chunk-PMJG2CXF.js";
|
|
77
77
|
import "./chunk-J6KL3COD.js";
|
|
@@ -639,4 +639,4 @@ async function run(context) {
|
|
|
639
639
|
export {
|
|
640
640
|
run
|
|
641
641
|
};
|
|
642
|
-
//# sourceMappingURL=test-
|
|
642
|
+
//# sourceMappingURL=test-OCTC2DSZ.js.map
|
|
@@ -140,10 +140,10 @@ var tuiCommand = {
|
|
|
140
140
|
try {
|
|
141
141
|
let receipt;
|
|
142
142
|
if (invocation.action === "doctor") {
|
|
143
|
-
const { inspectTerminalHost } = await import("./diagnostics-
|
|
143
|
+
const { inspectTerminalHost } = await import("./diagnostics-LCNF5NRK.js");
|
|
144
144
|
receipt = inspectTerminalHost();
|
|
145
145
|
} else if (invocation.action === "start-worker") {
|
|
146
|
-
const { startWorkspaceWorker } = await import("./worker-
|
|
146
|
+
const { startWorkspaceWorker } = await import("./worker-6U67LWIP.js");
|
|
147
147
|
receipt = await startWorkspaceWorker(
|
|
148
148
|
{ config: invocation.startup?.config, cwd: context.cwd },
|
|
149
149
|
invocation.startup.runtime,
|
|
@@ -156,7 +156,7 @@ var tuiCommand = {
|
|
|
156
156
|
cwd: context.cwd
|
|
157
157
|
});
|
|
158
158
|
} else {
|
|
159
|
-
const { launchStartup, planStartup } = await import("./entry-
|
|
159
|
+
const { launchStartup, planStartup } = await import("./entry-LMAWTZM2.js");
|
|
160
160
|
const request = { ...invocation.startup, cwd: context.cwd };
|
|
161
161
|
receipt = invocation.action === "plan" ? planStartup(request) : await launchStartup(
|
|
162
162
|
request,
|
|
@@ -176,4 +176,4 @@ var tuiCommand = {
|
|
|
176
176
|
export {
|
|
177
177
|
tuiCommand
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=tui-
|
|
179
|
+
//# sourceMappingURL=tui-LE2KPUMI.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
invoke
|
|
3
|
-
} from "./chunk-OG2ESRQP.js";
|
|
4
1
|
import {
|
|
5
2
|
readStartup,
|
|
6
3
|
startupFile,
|
|
7
4
|
startupSettings
|
|
8
5
|
} from "./chunk-C3G75JH7.js";
|
|
6
|
+
import {
|
|
7
|
+
invoke
|
|
8
|
+
} from "./chunk-TVA2IN6H.js";
|
|
9
9
|
import "./chunk-DZ2MRTYT.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-5TT7YAEP.js";
|
|
11
|
+
import "./chunk-LKH57HLV.js";
|
|
12
12
|
import {
|
|
13
13
|
locateExecutable
|
|
14
14
|
} from "./chunk-R2GPCZUX.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-JTKGDT2K.js";
|
|
16
16
|
import "./chunk-34DECPVC.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-OY7XYKVL.js";
|
|
18
18
|
import "./chunk-PZ6D3WKD.js";
|
|
19
19
|
import "./chunk-N7ANFMA5.js";
|
|
20
20
|
import "./chunk-TYY5TYHF.js";
|
|
@@ -23,7 +23,7 @@ import "./chunk-KLIYFD3W.js";
|
|
|
23
23
|
import "./chunk-GUHOEIHP.js";
|
|
24
24
|
import "./chunk-IJBSOWHK.js";
|
|
25
25
|
import "./chunk-XWLMZKH2.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-MXVP3ICV.js";
|
|
27
27
|
import "./chunk-GJXOFDJT.js";
|
|
28
28
|
import "./chunk-PMJG2CXF.js";
|
|
29
29
|
import {
|
|
@@ -83,4 +83,4 @@ async function startWorkspaceWorker(request, runtime, memoryMb) {
|
|
|
83
83
|
export {
|
|
84
84
|
startWorkspaceWorker
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=worker-
|
|
86
|
+
//# sourceMappingURL=worker-6U67LWIP.js.map
|
package/docs/commands.md
CHANGED
|
@@ -240,6 +240,22 @@ pmcp heavy priority <id> +2 --reason "the session waits on it"
|
|
|
240
240
|
|
|
241
241
|
Run a heavy command within the host-wide budget of [`[host.lease]`](project-configuration.md#host-lease), across every session and worktree on the host. A job starts once its lane has a free slot, its weight fits what the running jobs leave of the budget, and the host is under `max_load` and `max_io` (or, past `load_grace` and with nothing leased running, under `hard_factor` times them). Waiting jobs start by lane (gate, hook, interactive, bulk), oldest first within a lane, with a line on standard error every `heartbeat`; `--lane` and `--weight` override the profile and `[host.lease] commands`. The command runs with the lease marker set, so a nested `pmcp heavy` runs at once. Everything after `--` is the command, options included. `status` prints the lock, the host readings, when the host was last settled, the holder record, each waiter with its lane, weight, position and a rough wait estimate from the log's run times, the lanes' use and the running weight against the budget, each running job against `hold_warn` and `hold_max`, the IO average the check reads, how many jobs started on `load_grace` in the last day, and the busiest processes outside the lease. With the lease disabled (`enabled = false`), the command runs at once. With `PMCP_HEAVY_DISABLE=<reason>` set to an allowed reason (`nested` inside a leased job, `operator` for the operator, or one listed in `[host.lease] skip_reasons` or `skip_always`), an ordinary command runs at once and its usage record keeps the reason; any other reason runs nothing and exits 2 with the allowed list, but a bulk job (`--lane bulk`, or a `commands` entry with `lane = "bulk"`) still queues in the bulk lane, with a line saying the skip was not honoured, unless `[host.lease] skip_always` lists the reason. `--now --reason <text>` (or `PMCP_HEAVY_NOW=<reason>`) is the operator's emergency bypass: it runs at once, logged and shown in status, and still counts its weight; from an agent session it exits 1 and names who to ask, as `promote --now` and `cancel --force` on another session's job do. Where the io controller reaches the user's scopes, each job runs in its own scope with its lane's `io.weight`. `submit` queues the command and returns a ticket at once, so the caller keeps working: a detached runner (its own session, so it outlives the caller) waits and runs it under the same rules, its output in the ticket's log and its exit code and usage record in the ticket's result. Every job keeps its stdout and stderr in its ticket, bounded by `[host.lease] job_log_bytes` (default 4 MiB, rotated once to `log.1`, so a job keeps at most twice that): a submitted job's runner writes them there, and a blocking run opens a ticket of its own and copies them there as they reach the terminal, so the command sees pipes instead of a terminal; a blocking run that fails ends with a line naming its id. `job_log_bytes = 0`, or a disabled lease, keeps nothing for blocking runs, which then write to the terminal directly. `result <id>` reads the state (queued with its position, running, done, or lost when the runner died), `--json` as data, and `result <id> --log` prints the kept output instead, the rotated part first; `--tail <n>` keeps its last n lines. `wait <ticket>` blocks until it is done, prints the log's tail and exits with the job's code (75 at `--timeout`); `cancel <ticket>` stops a queued job and, with `--force`, a running one. Tickets live under `<dir>/tickets/` and finished ones are removed after a week. Every waiting or running job has an id (a ticket's, or one made for a blocking run), shown by `status` and `queue`: `queue` lists the waiters with id, lane, position, waited and estimated time, weight, pid, session and label; `promote <id> --now --reason` starts a waiter at once as a bypass; `priority <id> <lane|+N|-N> --reason` moves it to another lane's end or N places within its lane; `cancel <id>` takes a waiter out of the queue (its run exits 130) and, with `--force`, stops a running job. The waiting process reads the change on its next poll; each change is made under the admission lock and logged as a `control` line with the uid, the session and the reason, and a waiter whose process died is removed instead of changed. `stats` lists each command signature's recorded runs with the median and 90th percentile of wall time, CPU time, peak RSS and IO and how many skipped the lease, after a line with the share of all runs that skipped it and lines counting the skip reasons and the refused ones, the most-run first; `--top <n>` keeps the first n, `--json` as data. Exit: the command's own code; 75 when nothing ran within `max_wait`, with the reason (the queue, the session's cap, a shell wrapper's hold, a host past `hard_factor`); 2 for a missing `--`, an unknown profile or lane, a bad weight, `--now` without a reason, or a skip reason that is not allowed; 1 for an operator verb outside the operator's terminal.
|
|
242
242
|
|
|
243
|
+
## host
|
|
244
|
+
|
|
245
|
+
```sh
|
|
246
|
+
pmcp host io measure [--dir <path>] [--seconds <n>] [--json]
|
|
247
|
+
pmcp host io plan [--unit <name>] [--json]
|
|
248
|
+
pmcp host io doctor [--weights [--seconds <n>]] [--json]
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
Fit the kernel's io.cost model to the disk, so the lanes' `io.weight` (`[host.lease.io]`) divides it. Linux with cgroup v2 only; elsewhere these exit 3. The kernel's own estimate (`ctrl=auto`) can overstate a network volume several times, and while it does, weights of 25 and 100 get nearly the same IOPS. A measured model alone is not enough: with qos `ctrl=auto` the kernel may raise vrate far past the model, so the model always comes with qos `ctrl=user rpct=0 rlat=0 wpct=0 wlat=0 min=50 max=100`.
|
|
252
|
+
|
|
253
|
+
`measure` waits for the host lease in the bulk lane with the whole budget, like any heavy job (75 when it never gets it), then probes a 1 GiB file on the filesystem of `--dir` (default: the lease directory) with `O_DIRECT`, so the page cache is bypassed; it never touches the raw device. The probe runs in its own `systemd-run --user` scope under `pmcp-io.slice`, outside the lanes' scopes and their `io.max`, and its directory is removed however it ends. It writes the file in 1 MiB blocks, then runs 1 MiB sequential reads at depth 4 and 4 KiB sequential and random reads and writes at depth 16 for `--seconds` each (default 8), about a minute in all, and records the model with the whole disk's major:minor (a partition resolves to its disk), the time, the pmcp version and the io.cost lines live at the time in `<dir>/io-model.json` of [`[host.lease]`](project-configuration.md#host-lease). While the device's qos is `ctrl=user`, vrate is held to the current model and a probe would measure that cap, so `measure` refuses before it takes the lease, with exit 4: it prints the line that lifts the cap (`echo '259:0 enable=1 ctrl=auto' > /sys/fs/cgroup/io.cost.qos` as root, for that device), and `plan` prints the capped line to restore afterwards. There is no override.
|
|
254
|
+
|
|
255
|
+
`plan` reads the record and prints, per device, the `io.cost.model` line, the `io.cost.qos` line and a systemd unit (`pmcp-io-cost.service`) that writes both at boot; `--unit <name>` prints a drop-in for an existing oneshot unit instead. It only prints: install the unit as root. Exit 1 without a record.
|
|
256
|
+
|
|
257
|
+
`doctor` only reads: it compares the live `io.cost.model` with the record and checks that qos is enabled, `ctrl=user` and `max` at most 100. `--weights` also runs two 4 KiB random readers at `io.weight` 25 and 100 in sibling scopes for `--seconds` (default 20), under the host lease like `measure`; each scope first checks that every cgroup above it has `io` in `cgroup.subtree_control`, since without it the weights are never read, and the check is reported as not valid instead of as a ratio. A ratio under 2 is a warning. Exit 0 when every check passes, 4 with a warning (no record included), 3 without io.cost.
|
|
258
|
+
|
|
243
259
|
## wait
|
|
244
260
|
|
|
245
261
|
```sh
|
|
@@ -395,14 +411,14 @@ An unknown command, subcommand or option exits 2 with one line naming it, the cl
|
|
|
395
411
|
|
|
396
412
|
Every command uses one table, so a script can branch on the code alone:
|
|
397
413
|
|
|
398
|
-
| Code | Means | For example
|
|
399
|
-
| ---- | ------------------------------------------------- |
|
|
400
|
-
| `0` | it did what you asked | skills listed, the whole catalog indexed, nothing to deliver
|
|
401
|
-
| `1` | it ran and failed, or found a problem | no skills under those roots, a partial index, no SQLite to store vectors in, `validate` errors, a `doctor` FAIL, a declined or failed install, a refused delivery, a failed gate or fetch
|
|
402
|
-
| `2` | usage error: it could not run as asked | an unknown command, subcommand or option, a missing value, no `pmcp.toml` or a missing `[git]` table, `git sync` in the wrong checkout
|
|
403
|
-
| `3` | an optional dependency is missing | `index` without `@huggingface/transformers`
|
|
404
|
-
| `4` | a check ran and found differences | `status` projection drift, `project --check` drift or an exceeded budget, stale or undeclared outputs, a `hooks test --fixtures` or `--smoke` finding
|
|
405
|
-
| `75` | the host stayed busy, so nothing ran; retry later | `heavy` past `max_wait`, a `git deliver` gate whose test stage never got the host lease, `wait` past `--timeout`
|
|
414
|
+
| Code | Means | For example |
|
|
415
|
+
| ---- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
416
|
+
| `0` | it did what you asked | skills listed, the whole catalog indexed, nothing to deliver |
|
|
417
|
+
| `1` | it ran and failed, or found a problem | no skills under those roots, a partial index, no SQLite to store vectors in, `validate` errors, a `doctor` FAIL, a declined or failed install, a refused delivery, a failed gate or fetch |
|
|
418
|
+
| `2` | usage error: it could not run as asked | an unknown command, subcommand or option, a missing value, no `pmcp.toml` or a missing `[git]` table, `git sync` in the wrong checkout |
|
|
419
|
+
| `3` | an optional dependency is missing | `index` without `@huggingface/transformers`, `host io` off Linux or without io.cost |
|
|
420
|
+
| `4` | a check ran and found differences | `status` projection drift, `project --check` drift or an exceeded budget, stale or undeclared outputs, a `hooks test --fixtures` or `--smoke` finding, a `host io doctor` warning, `host io measure` refused under a capped qos |
|
|
421
|
+
| `75` | the host stayed busy, so nothing ran; retry later | `heavy` or `host io measure` past `max_wait`, a `git deliver` gate whose test stage never got the host lease, `wait` past `--timeout` |
|
|
406
422
|
|
|
407
423
|
1 says the project is not what you expected; 2 says the command line or the setup is wrong, so retrying the same command will not help; 3 says the machine is missing something optional and the server still works without it; 4 says a check did its job and found something to fix, usually with `pmcp project`. A command that runs another command, such as `heavy`, exits with that command's code. Before 0.23.0, drift exited 2 like a usage error; see [Upgrading](upgrading.md).
|
|
408
424
|
|
|
@@ -323,7 +323,7 @@ load_grace = 600
|
|
|
323
323
|
| `profiles.<name>` | table | gate 2700/600, hook 900/30 | `max_wait`, `load_grace` and `memory_max` for `pmcp heavy --profile <name>`. The `gate` and `hook` profiles also choose their lane. Any other profile starts from the top-level values. |
|
|
324
324
|
| `heavy` | argv lists, or `"default"` | `"default"` with the table, none without | The commands the `host.lease` guard expects under the lease, as argv prefixes. `"default"`, alone or as an item of the list, names pmcp's preset: `install` (and `i`, `ci`), `test`, `build` and `typecheck` for npm, pnpm, yarn and bun (`<manager> run <script>` too), and `cargo build`, `test` and `check`. An empty list turns the guard off. |
|
|
325
325
|
| `guard` | string | `observe` | The `host.lease` guard's mode: `observe` logs what it would have refused (at info, so `pmcp hooks report --switch-check host.lease` reads it at the default log level), `warn` tells the agent, `deny` refuses with the command to run instead (`pmcp heavy -- <command>`), `off`. A command already wrapped passes. Run a week in `observe`, read the report, then set `deny`. |
|
|
326
|
-
| `io.enabled` | `"auto"` or boolean | `"auto"` | Each leased job runs in its own `systemd-run --user` scope and gets its lane's `io.weight` where the cgroup v2 io controller reaches the user manager; elsewhere nothing changes. `true` also says when it could not; `false` never.
|
|
326
|
+
| `io.enabled` | `"auto"` or boolean | `"auto"` | Each leased job runs in its own `systemd-run --user` scope and gets its lane's `io.weight` where the cgroup v2 io controller reaches the user manager; elsewhere nothing changes. `true` also says when it could not; `false` never. The weights only divide the disk when the kernel's io.cost model and qos fit it: [`pmcp host io`](commands.md#host) measures the disk and checks both. |
|
|
327
327
|
| `io.weights.<lane>` | integer | gate 500, hook 300, interactive 100, bulk 25 | The scope's `io.weight` per lane (1 to 10000). |
|
|
328
328
|
| `io.max.<lane>` | string | none | An `io.max` line for the lane's scopes, such as `"259:0 wbps=50000000"`; the device is this host's to name. |
|
|
329
329
|
| `settle_window` | seconds | `60` | After a leased job ends, its own leftover IO may hold the queue only this long: then a waiter starts on a moderately busy host (below `hard_factor`). `0` turns it off. |
|
package/gemini-extension.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"mcpServers": {
|
|
5
5
|
"pmcp": {
|
|
6
6
|
"type": "stdio",
|
|
7
7
|
"command": "npx",
|
|
8
|
-
"args": ["-y", "@modootoday/pmcp@0.
|
|
8
|
+
"args": ["-y", "@modootoday/pmcp@0.27.0", "serve"]
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|
package/mcp.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modootoday/pmcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"author": "modootoday",
|
|
6
6
|
"description": "Use the skills your packages already ship, and keep your AI tools' project configuration in one place.",
|
|
@@ -136,9 +136,9 @@
|
|
|
136
136
|
"bun": ">=1.3.0"
|
|
137
137
|
},
|
|
138
138
|
"optionalDependencies": {
|
|
139
|
-
"@modootoday/pmcp-linux-x64": "0.
|
|
140
|
-
"@modootoday/pmcp-linux-arm64": "0.
|
|
141
|
-
"@modootoday/pmcp-darwin-x64": "0.
|
|
142
|
-
"@modootoday/pmcp-darwin-arm64": "0.
|
|
139
|
+
"@modootoday/pmcp-linux-x64": "0.27.0",
|
|
140
|
+
"@modootoday/pmcp-linux-arm64": "0.27.0",
|
|
141
|
+
"@modootoday/pmcp-darwin-x64": "0.27.0",
|
|
142
|
+
"@modootoday/pmcp-darwin-arm64": "0.27.0"
|
|
143
143
|
}
|
|
144
144
|
}
|
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "pmcp",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.0",
|
|
5
5
|
"description": "Find package skills and use native runtime project configuration.",
|
|
6
6
|
"author": { "name": "modootoday" },
|
|
7
7
|
"license": "Elastic-2.0",
|
package/plugins/pmcp/.mcp.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"mcpServers": {
|
|
5
5
|
"pmcp": {
|
|
6
6
|
"type": "stdio",
|
|
7
7
|
"command": "npx",
|
|
8
|
-
"args": ["-y", "@modootoday/pmcp@0.
|
|
8
|
+
"args": ["-y", "@modootoday/pmcp@0.27.0", "serve"]
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|
package/plugins/pmcp/mcp.json
CHANGED
package/plugins/pmcp/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "pmcp",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.0",
|
|
5
5
|
"description": "Find package skills and use native runtime project configuration.",
|
|
6
6
|
"author": { "name": "modootoday" },
|
|
7
7
|
"license": "Elastic-2.0",
|