@modootoday/pmcp 0.22.13 → 0.24.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/CONTRIBUTING.md +8 -0
- package/dist/{affected-ZWO2F5EM.js → affected-D6FRJPPI.js} +2 -2
- package/dist/{apply-OIKQ5SIY.js → apply-6JVJ7FDZ.js} +21 -20
- package/dist/{available-Z5MIDFPH.js → available-74CMIBPD.js} +9 -9
- package/dist/{broadcast-BF2QL3O7.js → broadcast-VKZY7WSD.js} +3 -3
- package/dist/{chunk-K2VU3B4W.js → chunk-25M2YWBH.js} +4 -4
- package/dist/chunk-2GZKA33O.js +173 -0
- package/dist/chunk-2HL2MFNI.js +159 -0
- package/dist/{chunk-4O4ZOSBQ.js → chunk-2MX5C7B2.js} +3 -3
- package/dist/chunk-2W2F5BWF.js +166 -0
- package/dist/chunk-43MXRTKH.js +134 -0
- package/dist/chunk-4VVQLWTS.js +93 -0
- package/dist/{chunk-ZKB7ZNKY.js → chunk-56VBB3H7.js} +4 -4
- package/dist/{chunk-JEL35P7S.js → chunk-5NDUWEMW.js} +2 -2
- package/dist/{chunk-5PNS6V5C.js → chunk-5QBOGEVE.js} +2 -2
- package/dist/{chunk-NNGGNXF2.js → chunk-62BC3K4Z.js} +2 -2
- package/dist/{chunk-7ZOQELXR.js → chunk-644GNYMB.js} +3 -3
- package/dist/{chunk-GNVME5AD.js → chunk-6UGHVU5B.js} +2 -2
- package/dist/{chunk-733WVP2R.js → chunk-7A6QIROT.js} +3 -3
- package/dist/{chunk-J3QUG6O5.js → chunk-7CHUMF3E.js} +2 -2
- package/dist/{chunk-INT7QLEU.js → chunk-7DJQASH3.js} +25 -6
- package/dist/{chunk-VNZTULFD.js → chunk-D2MHB5EF.js} +3 -3
- package/dist/{chunk-KEHB4FZP.js → chunk-E2E4HIEN.js} +49 -3
- package/dist/{chunk-G4ATQPQI.js → chunk-F3R5HEUB.js} +5 -1
- package/dist/{chunk-JW5NMQTU.js → chunk-HES44LTA.js} +4 -4
- package/dist/{chunk-RHJEGLYM.js → chunk-HF5D6B2U.js} +45 -6
- package/dist/{chunk-5OFQVW2K.js → chunk-HYXOJYVR.js} +2 -2
- package/dist/{chunk-UED3RH53.js → chunk-ISGHJHVH.js} +2 -2
- package/dist/chunk-JANBBPKP.js +50 -0
- package/dist/{chunk-XNML2KIC.js → chunk-JPYQDOEW.js} +3 -3
- package/dist/{chunk-ZS5IDQFJ.js → chunk-K6ATERWS.js} +4 -4
- package/dist/{chunk-737BENAU.js → chunk-LB2WXBPA.js} +5 -5
- package/dist/{chunk-5IZFEVPW.js → chunk-LI3BII4F.js} +2 -2
- package/dist/chunk-LTMHE5VL.js +7 -0
- package/dist/{chunk-XSWF7APE.js → chunk-OGCJO6HQ.js} +9 -8
- package/dist/{chunk-A7XCUR2C.js → chunk-Q6V274OB.js} +8 -6
- package/dist/{chunk-ISGBOJT7.js → chunk-QR4GXET7.js} +3 -3
- package/dist/chunk-QR6A3TYP.js +315 -0
- package/dist/{chunk-FOLA4EUJ.js → chunk-QY2P54Z2.js} +10 -2
- package/dist/{chunk-EIDIVIAD.js → chunk-QYLOIM4U.js} +9 -2
- package/dist/{chunk-P5D6RKMT.js → chunk-RZYZILU4.js} +5 -3
- package/dist/{chunk-A6DARDQ4.js → chunk-S6G7YWNE.js} +2 -2
- package/dist/{chunk-24L4MO7H.js → chunk-TIH7JFPJ.js} +2 -2
- package/dist/{chunk-5KWDQFVY.js → chunk-UFWW4H6V.js} +7 -8
- package/dist/chunk-UVTGY2R3.js +78 -0
- package/dist/{chunk-LLT5FQBE.js → chunk-VBVNOLRR.js} +7 -3
- package/dist/{chunk-ABTJQ4QV.js → chunk-WBPVNCQO.js} +20 -5
- package/dist/{chunk-T4GVN7XO.js → chunk-WNP2BXR7.js} +5 -5
- package/dist/{chunk-YGOWIJPE.js → chunk-WZYGM3FR.js} +6 -2
- package/dist/chunk-Y6NFETNG.js +232 -0
- package/dist/{cli-IHVNE3WL.js → cli-GFDT4YXM.js} +14 -15
- package/dist/{cli-FSSYFCV3.js → cli-WWNTQJPV.js} +18 -12
- package/dist/cli.js +307 -47
- package/dist/{completion-ZTTJVV4C.js → completion-I63UIDZ7.js} +25 -23
- package/dist/{diagnostics-XC5L6Z3E.js → diagnostics-RUJZBPNZ.js} +6 -6
- package/dist/{doctor-FGDSUBR3.js → doctor-CLUFTEFO.js} +21 -21
- package/dist/{entry-NNB2CQLZ.js → entry-QSJCFI5Z.js} +10 -10
- package/dist/{exec-mcp-ZU3Z3XT6.js → exec-mcp-AFPUJTN7.js} +9 -9
- package/dist/{harness-B7ANLH5M.js → harness-PPM32AI5.js} +26 -44
- package/dist/harness-launch-gate.js +4 -4
- package/dist/harness-worker.js +6 -6
- package/dist/{heavy-IIZBO4YM.js → heavy-TEHP5PHT.js} +112 -27
- package/dist/hooks-L4PXVEGR.js +24 -0
- package/dist/{host-5P4D7GSE.js → host-LBTL47X7.js} +18 -15
- package/dist/{host-XXWQ23LD.js → host-MU2GRH57.js} +7 -7
- package/dist/{host-run-AEWHFVQL.js → host-run-IRSAQA5Z.js} +6 -6
- package/dist/http.js +1 -1
- package/dist/{import-mcp-BQM5DKYH.js → import-mcp-QVPW6A2Q.js} +12 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -10
- package/dist/init-46STH6FP.js +14 -0
- package/dist/{install-OFVLR7TI.js → install-5JH4DSFF.js} +10 -10
- package/dist/{invoke-3BQ5NG3P.js → invoke-I6C6UT6Q.js} +8 -8
- package/dist/{list-EU4MJOXA.js → list-HXG6EB7V.js} +12 -12
- package/dist/{list-WWYCGD3X.js → list-LV5EKCF6.js} +11 -7
- package/dist/{logout-6DFDYJUI.js → logout-SSUXJ6SE.js} +9 -9
- package/dist/{logs-BRF6DBKG.js → logs-2JEMSNSG.js} +7 -7
- package/dist/{mailbox-QYA2LQSE.js → mailbox-5FVFMQ2J.js} +6 -6
- package/dist/{mailbox-AQCTXO3H.js → mailbox-ZHZWZMAY.js} +14 -21
- package/dist/{mainline-O5AEHG3J.js → mainline-4XP6ZORU.js} +9 -8
- package/dist/{marketplace-TI5HFAHB.js → marketplace-2X3OOEPW.js} +10 -9
- package/dist/{mcp-HR5JFUW7.js → mcp-L6X45IOS.js} +4 -4
- package/dist/{mcp-4R53HSGY.js → mcp-PBTQ5SJW.js} +2 -2
- package/dist/{models-63NQBSV3.js → models-XSF45MCD.js} +9 -5
- package/dist/{pause-UF7FQDJX.js → pause-CMZOIHTJ.js} +3 -3
- package/dist/{preview-WSESS2UN.js → preview-465CQJBQ.js} +4 -4
- package/dist/{project-JXXL24WN.js → project-4JPKU2D7.js} +14 -12
- package/dist/{reindex-3GPKAFBW.js → reindex-D62HQAN2.js} +7 -7
- package/dist/{report-JUSKQPAC.js → report-UB7MXAUB.js} +10 -10
- package/dist/{resume-3WAROOQ3.js → resume-PAKIT4TT.js} +3 -3
- package/dist/run-OW7436TY.js +23 -0
- package/dist/{run-XRWU4L73.js → run-PMASXIGY.js} +8 -8
- package/dist/{serve-OEX5V5CD.js → serve-P3HJN6AF.js} +13 -13
- package/dist/{session-YZVX4NGN.js → session-3YVVO2GR.js} +6 -6
- package/dist/{setup-SWNAC2C7.js → setup-6AQUOWOH.js} +3 -2
- package/dist/{smoke-5BGJXAHX.js → smoke-6X6IXQIQ.js} +4 -4
- package/dist/{start-login-MG26NDE3.js → start-login-P7YDRTA3.js} +10 -10
- package/dist/{status-GKCIVAAR.js → status-4PYPTYUB.js} +4 -4
- package/dist/{status-LH7Q255G.js → status-DAXQKT35.js} +28 -27
- package/dist/{status-APADL7O2.js → status-DLGZDYEP.js} +18 -11
- package/dist/stdio.js +2 -2
- package/dist/{sweep-VTVPDAPY.js → sweep-VURZU6DI.js} +3 -3
- package/dist/{test-TK2J3IB7.js → test-H243OTSK.js} +12 -12
- package/dist/{tui-YTPHHKCW.js → tui-P6XTSTQO.js} +45 -19
- package/dist/{unbroadcast-CH7BAQ2G.js → unbroadcast-7AMLURCG.js} +3 -3
- package/dist/{validate-5QVZBE6W.js → validate-YXR7FJJX.js} +11 -9
- package/dist/{wait-4HYJJAWO.js → wait-HEODT7KV.js} +3 -3
- package/dist/{worker-RBXYAMR4.js → worker-5YJLIGTU.js} +8 -8
- package/dist/{worktree-create-FEZNQUQ6.js → worktree-create-FTSLMZWS.js} +2 -2
- package/docs/commands.md +65 -29
- package/docs/hooks.md +3 -3
- package/docs/project-configuration.md +54 -38
- package/docs/terminal-workspace.md +2 -0
- package/docs/upgrading.md +67 -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/plugins/pmcp/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
- package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +1 -1
- package/plugins/pmcp/skills/pmcp-sessions-and-git/SKILL.md +3 -2
- package/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
- package/skills/pmcp-project-init/SKILL.md +1 -1
- package/skills/pmcp-sessions-and-git/SKILL.md +3 -2
- package/dist/chunk-2P4Z2NUX.js +0 -28
- package/dist/chunk-3Y3HDMHA.js +0 -108
- package/dist/chunk-74O7KZUH.js +0 -45
- package/dist/chunk-BN4XAXMQ.js +0 -65
- package/dist/chunk-E3DQB5LS.js +0 -48
- package/dist/chunk-JWRZDYB5.js +0 -59
- package/dist/chunk-LMUBBIE2.js +0 -83
- package/dist/chunk-QBSJL3SP.js +0 -162
- package/dist/chunk-VSTUKACC.js +0 -7
- package/dist/chunk-WFY7ATSZ.js +0 -116
- package/dist/hooks-IEJTW7BV.js +0 -24
- package/dist/init-L6GUO3PW.js +0 -14
- package/dist/run-VUUQS4WY.js +0 -19
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
gateTreePath,
|
|
38
38
|
leaseSpecs
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-RZYZILU4.js";
|
|
40
40
|
import {
|
|
41
41
|
detect
|
|
42
42
|
} from "./chunk-SUDG7B6S.js";
|
|
@@ -51,9 +51,10 @@ import {
|
|
|
51
51
|
runCommand,
|
|
52
52
|
runCommandLogged
|
|
53
53
|
} from "./chunk-B3OZ4GGO.js";
|
|
54
|
+
import "./chunk-Y6NFETNG.js";
|
|
54
55
|
import {
|
|
55
56
|
BUSY_EXIT
|
|
56
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-QY2P54Z2.js";
|
|
57
58
|
import "./chunk-N7ANFMA5.js";
|
|
58
59
|
import "./chunk-T6C3TSTO.js";
|
|
59
60
|
import "./chunk-FQLCD4HU.js";
|
|
@@ -376,7 +377,7 @@ function attempts(options) {
|
|
|
376
377
|
if (options.track) options.track.attempts = attempt;
|
|
377
378
|
if (!fetch(ctx)) {
|
|
378
379
|
report.warn(`fetch from ${ctx.remote} failed`);
|
|
379
|
-
return
|
|
380
|
+
return 1;
|
|
380
381
|
}
|
|
381
382
|
const commits = undelivered(ctx.root, ctx.upstream, options.named);
|
|
382
383
|
if (commits.length === 0) {
|
|
@@ -573,7 +574,7 @@ function deliver(options) {
|
|
|
573
574
|
} catch (error) {
|
|
574
575
|
if (!(error instanceof GitReadError)) throw error;
|
|
575
576
|
report.warn(error.message);
|
|
576
|
-
return
|
|
577
|
+
return 1;
|
|
577
578
|
}
|
|
578
579
|
});
|
|
579
580
|
options.onReceipt?.({
|
|
@@ -606,7 +607,7 @@ function deliverOnce(options) {
|
|
|
606
607
|
}
|
|
607
608
|
if (!fetch(ctx)) {
|
|
608
609
|
report.warn(`fetch from ${ctx.remote} failed`);
|
|
609
|
-
return
|
|
610
|
+
return 1;
|
|
610
611
|
}
|
|
611
612
|
const commits = undelivered(ctx.root, ctx.upstream, options.named);
|
|
612
613
|
const touched = touchedPaths(ctx.root, commits);
|
|
@@ -878,7 +879,7 @@ function syncMainline(options) {
|
|
|
878
879
|
} catch (error) {
|
|
879
880
|
if (!(error instanceof GitReadError)) throw error;
|
|
880
881
|
options.report.warn(error.message);
|
|
881
|
-
return
|
|
882
|
+
return 1;
|
|
882
883
|
}
|
|
883
884
|
});
|
|
884
885
|
}
|
|
@@ -905,7 +906,7 @@ function syncOnce(options) {
|
|
|
905
906
|
}
|
|
906
907
|
if (git(ctx.root, ["fetch", "-q", ctx.remote, ctx.mainline]).status !== 0) {
|
|
907
908
|
report.warn(`fetch from ${ctx.remote} failed`);
|
|
908
|
-
return
|
|
909
|
+
return 1;
|
|
909
910
|
}
|
|
910
911
|
const { carried, missing } = cherry(ctx.root, ctx.upstream);
|
|
911
912
|
if (missing.length > 0) {
|
|
@@ -1109,4 +1110,4 @@ export {
|
|
|
1109
1110
|
mainlineDeliver,
|
|
1110
1111
|
mainlineSync
|
|
1111
1112
|
};
|
|
1112
|
-
//# sourceMappingURL=mainline-
|
|
1113
|
+
//# sourceMappingURL=mainline-4XP6ZORU.js.map
|
|
@@ -3,11 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-73AKO4UL.js";
|
|
4
4
|
import {
|
|
5
5
|
marketplaceSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JANBBPKP.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError,
|
|
9
|
-
one
|
|
10
|
-
|
|
9
|
+
one,
|
|
10
|
+
unknownSubcommand
|
|
11
|
+
} from "./chunk-Y6NFETNG.js";
|
|
11
12
|
import {
|
|
12
13
|
containedPath,
|
|
13
14
|
readLocalMarketplace
|
|
@@ -148,7 +149,7 @@ var marketplaceCommand = {
|
|
|
148
149
|
);
|
|
149
150
|
return 0;
|
|
150
151
|
}
|
|
151
|
-
context.ui.table(
|
|
152
|
+
context.ui.results.table(
|
|
152
153
|
plugins.map((plugin) => [
|
|
153
154
|
plugin.name,
|
|
154
155
|
String(plugin.description ?? "")
|
|
@@ -156,10 +157,10 @@ var marketplaceCommand = {
|
|
|
156
157
|
);
|
|
157
158
|
return 0;
|
|
158
159
|
}
|
|
159
|
-
if (verb !== "export"
|
|
160
|
-
throw
|
|
161
|
-
|
|
162
|
-
);
|
|
160
|
+
if (verb !== "export")
|
|
161
|
+
throw unknownSubcommand("marketplace", verb, ["list", "export"]);
|
|
162
|
+
if (!name || extra.length)
|
|
163
|
+
throw new ArgumentError("marketplace export takes exactly one plugin");
|
|
163
164
|
const output = one(context.args, "output");
|
|
164
165
|
if (!output)
|
|
165
166
|
throw new ArgumentError("Provide --output for the exported plugin");
|
|
@@ -188,4 +189,4 @@ var marketplaceCommand = {
|
|
|
188
189
|
export {
|
|
189
190
|
marketplaceCommand
|
|
190
191
|
};
|
|
191
|
-
//# sourceMappingURL=marketplace-
|
|
192
|
+
//# sourceMappingURL=marketplace-2X3OOEPW.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpSpec
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-UVTGY2R3.js";
|
|
4
|
+
import "./chunk-JPYQDOEW.js";
|
|
5
5
|
|
|
6
6
|
// src/commands/mcp.ts
|
|
7
7
|
async function run(context) {
|
|
8
|
-
const { executeMcpCommand } = await import("./run-
|
|
8
|
+
const { executeMcpCommand } = await import("./run-OW7436TY.js");
|
|
9
9
|
return executeMcpCommand(context);
|
|
10
10
|
}
|
|
11
11
|
var mcpCommand = { ...mcpSpec, run };
|
|
12
12
|
export {
|
|
13
13
|
mcpCommand
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=mcp-
|
|
15
|
+
//# sourceMappingURL=mcp-L6X45IOS.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-NQPURJT5.js";
|
|
5
5
|
import {
|
|
6
6
|
ArgumentError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Y6NFETNG.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/harness/mcp.ts
|
|
10
10
|
import { McpServer } from "@modelcontextprotocol/server";
|
|
@@ -190,4 +190,4 @@ async function runPtyMcp(context) {
|
|
|
190
190
|
export {
|
|
191
191
|
runPtyMcp
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=mcp-
|
|
193
|
+
//# sourceMappingURL=mcp-PBTQ5SJW.js.map
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
modelsSpec
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import
|
|
3
|
+
} from "./chunk-7DJQASH3.js";
|
|
4
|
+
import "./chunk-5NDUWEMW.js";
|
|
5
|
+
import {
|
|
6
|
+
ArgumentError
|
|
7
|
+
} from "./chunk-Y6NFETNG.js";
|
|
6
8
|
import {
|
|
7
9
|
embeddingModels
|
|
8
10
|
} from "./chunk-PMJG2CXF.js";
|
|
@@ -11,13 +13,15 @@ import {
|
|
|
11
13
|
var modelsCommand = {
|
|
12
14
|
...modelsSpec,
|
|
13
15
|
run(context) {
|
|
16
|
+
if (context.args.positional.length > 0)
|
|
17
|
+
throw new ArgumentError(`unexpected ${context.args.positional[0]}`);
|
|
14
18
|
const models = embeddingModels();
|
|
15
19
|
if (context.args.flags.has("json")) {
|
|
16
20
|
context.ui.data(`${JSON.stringify(models, null, 2)}
|
|
17
21
|
`);
|
|
18
22
|
return 0;
|
|
19
23
|
}
|
|
20
|
-
context.ui.table(
|
|
24
|
+
context.ui.results.table(
|
|
21
25
|
models.map((model) => [
|
|
22
26
|
model.name,
|
|
23
27
|
`${model.modelId} (${model.dtype}; dimensions: ${model.dimensions.join(", ")})`
|
|
@@ -29,4 +33,4 @@ var modelsCommand = {
|
|
|
29
33
|
export {
|
|
30
34
|
modelsCommand
|
|
31
35
|
};
|
|
32
|
-
//# sourceMappingURL=models-
|
|
36
|
+
//# sourceMappingURL=models-XSF45MCD.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
change
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HES44LTA.js";
|
|
4
4
|
import "./chunk-3V37OZQH.js";
|
|
5
5
|
import "./chunk-Z6WRFOFT.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-Y6NFETNG.js";
|
|
7
7
|
import "./chunk-FQLCD4HU.js";
|
|
8
8
|
import "./chunk-GUHOEIHP.js";
|
|
9
9
|
import "./chunk-IJBSOWHK.js";
|
|
@@ -15,4 +15,4 @@ var run = (context) => change(context, "pause");
|
|
|
15
15
|
export {
|
|
16
16
|
run
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=pause-
|
|
18
|
+
//# sourceMappingURL=pause-CMZOIHTJ.js.map
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-4NDEP7HU.js";
|
|
4
4
|
import {
|
|
5
5
|
remoteCatalog
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HYXOJYVR.js";
|
|
7
7
|
import "./chunk-RMATE45Z.js";
|
|
8
8
|
import "./chunk-73AKO4UL.js";
|
|
9
9
|
import {
|
|
10
10
|
previewSpec
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WBPVNCQO.js";
|
|
12
12
|
import {
|
|
13
13
|
ArgumentError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Y6NFETNG.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/preview.ts
|
|
17
17
|
var previewCommand = {
|
|
@@ -88,4 +88,4 @@ ${entry.preview.example}
|
|
|
88
88
|
export {
|
|
89
89
|
previewCommand
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=preview-
|
|
91
|
+
//# sourceMappingURL=preview-465CQJBQ.js.map
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectSpec
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HF5D6B2U.js";
|
|
4
|
+
import "./chunk-5NDUWEMW.js";
|
|
5
|
+
import "./chunk-JPYQDOEW.js";
|
|
6
|
+
import "./chunk-V4NPDK6X.js";
|
|
6
7
|
import {
|
|
7
8
|
ArgumentError,
|
|
8
9
|
many,
|
|
9
|
-
one
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
one,
|
|
11
|
+
unknownSubcommand
|
|
12
|
+
} from "./chunk-Y6NFETNG.js";
|
|
12
13
|
import {
|
|
13
14
|
ProjectError
|
|
14
15
|
} from "./chunk-TYY5TYHF.js";
|
|
15
16
|
|
|
16
17
|
// src/commands/project.ts
|
|
18
|
+
var VERBS = ["add", "remove", "import-mcp", "exec-mcp"];
|
|
17
19
|
async function route(context, verb, name) {
|
|
18
20
|
if (verb === "exec-mcp") {
|
|
19
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) {
|
|
20
22
|
throw new ArgumentError("exec-mcp takes only a declared MCP alias");
|
|
21
23
|
}
|
|
22
|
-
const { runExecMcp } = await import("./exec-mcp-
|
|
24
|
+
const { runExecMcp } = await import("./exec-mcp-AFPUJTN7.js");
|
|
23
25
|
return await runExecMcp(context, name);
|
|
24
26
|
}
|
|
25
27
|
if (verb === "import-mcp") {
|
|
@@ -28,14 +30,15 @@ async function route(context, verb, name) {
|
|
|
28
30
|
"import-mcp takes --source, --name and --write; no positional name or --check"
|
|
29
31
|
);
|
|
30
32
|
}
|
|
31
|
-
const { importMcp } = await import("./import-mcp-
|
|
33
|
+
const { importMcp } = await import("./import-mcp-QVPW6A2Q.js");
|
|
32
34
|
return importMcp(context);
|
|
33
35
|
}
|
|
34
36
|
if (many(context.args, "source").length > 0 || one(context.args, "name") !== void 0 || context.args.flags.has("write")) {
|
|
35
37
|
throw new ArgumentError("--source, --name and --write require import-mcp");
|
|
36
38
|
}
|
|
37
|
-
const apply = await import("./apply-
|
|
39
|
+
const apply = await import("./apply-6JVJ7FDZ.js");
|
|
38
40
|
if (verb === void 0) return apply.projectOrCheck(context);
|
|
41
|
+
if (!VERBS.includes(verb)) throw unknownSubcommand("project", verb, VERBS);
|
|
39
42
|
if (context.args.flags.has("check")) {
|
|
40
43
|
throw new ArgumentError("--check takes no subcommand");
|
|
41
44
|
}
|
|
@@ -43,8 +46,7 @@ async function route(context, verb, name) {
|
|
|
43
46
|
throw new ArgumentError(`${verb} needs a name`);
|
|
44
47
|
}
|
|
45
48
|
if (verb === "add") return apply.addAndProject(context, name);
|
|
46
|
-
|
|
47
|
-
throw new ArgumentError(`unknown subcommand ${verb}`);
|
|
49
|
+
return apply.removeAndProject(context, name);
|
|
48
50
|
}
|
|
49
51
|
var projectCommand = {
|
|
50
52
|
...projectSpec,
|
|
@@ -67,4 +69,4 @@ var projectCommand = {
|
|
|
67
69
|
export {
|
|
68
70
|
projectCommand
|
|
69
71
|
};
|
|
70
|
-
//# sourceMappingURL=project-
|
|
72
|
+
//# sourceMappingURL=project-4JPKU2D7.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
indexCommand,
|
|
3
3
|
indexPath
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-Q6V274OB.js";
|
|
5
|
+
import "./chunk-2MX5C7B2.js";
|
|
6
|
+
import "./chunk-7CHUMF3E.js";
|
|
7
7
|
import "./chunk-73AKO4UL.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-7DJQASH3.js";
|
|
9
|
+
import "./chunk-5NDUWEMW.js";
|
|
10
|
+
import "./chunk-Y6NFETNG.js";
|
|
11
11
|
import "./chunk-ISZOLR3D.js";
|
|
12
12
|
import "./chunk-6WXMJOMI.js";
|
|
13
13
|
import "./chunk-4CRRLDDS.js";
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
indexCommand,
|
|
20
20
|
indexPath
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=reindex-
|
|
22
|
+
//# sourceMappingURL=reindex-D62HQAN2.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-MHKY6TNF.js";
|
|
6
6
|
import {
|
|
7
7
|
configFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7CHUMF3E.js";
|
|
9
9
|
import {
|
|
10
10
|
guardLines,
|
|
11
11
|
readReportTable,
|
|
@@ -17,8 +17,9 @@ import "./chunk-3V37OZQH.js";
|
|
|
17
17
|
import "./chunk-Z6WRFOFT.js";
|
|
18
18
|
import {
|
|
19
19
|
ArgumentError,
|
|
20
|
+
noConfig,
|
|
20
21
|
one
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Y6NFETNG.js";
|
|
22
23
|
import "./chunk-FQLCD4HU.js";
|
|
23
24
|
import "./chunk-GUHOEIHP.js";
|
|
24
25
|
import "./chunk-IJBSOWHK.js";
|
|
@@ -28,8 +29,7 @@ import "./chunk-PMJG2CXF.js";
|
|
|
28
29
|
// src/commands/hooks/report.ts
|
|
29
30
|
async function run(context) {
|
|
30
31
|
const config = configFrom(context);
|
|
31
|
-
if (!config)
|
|
32
|
-
throw new ArgumentError("no pmcp.toml here or above; pass --config");
|
|
32
|
+
if (!config) throw noConfig();
|
|
33
33
|
const hooks = config.raw.hooks ?? {};
|
|
34
34
|
let settings;
|
|
35
35
|
let since;
|
|
@@ -59,7 +59,7 @@ async function run(context) {
|
|
|
59
59
|
);
|
|
60
60
|
else {
|
|
61
61
|
for (const line of found)
|
|
62
|
-
context.ui.line(
|
|
62
|
+
context.ui.results.line(
|
|
63
63
|
[
|
|
64
64
|
line.ts,
|
|
65
65
|
line.runtime,
|
|
@@ -68,7 +68,7 @@ async function run(context) {
|
|
|
68
68
|
line.tool ?? ""
|
|
69
69
|
].filter(Boolean).join(" ")
|
|
70
70
|
);
|
|
71
|
-
context.ui.line(
|
|
71
|
+
context.ui.results.line(
|
|
72
72
|
`${guard} would have refused ${found.length} call(s) it let through`
|
|
73
73
|
);
|
|
74
74
|
}
|
|
@@ -86,16 +86,16 @@ async function run(context) {
|
|
|
86
86
|
return 0;
|
|
87
87
|
}
|
|
88
88
|
if (summary.lines === 0)
|
|
89
|
-
context.ui.line(
|
|
89
|
+
context.ui.results.line(
|
|
90
90
|
"no guard log lines; guards log at debug level ([logging] level or PMCP_LOG=debug)"
|
|
91
91
|
);
|
|
92
92
|
for (const row of summary.guards) {
|
|
93
93
|
const counts = (values) => Object.entries(values).sort(([a], [b]) => a.localeCompare(b)).map(([name, value]) => `${name} ${value}`).join(", ");
|
|
94
|
-
context.ui.line(
|
|
94
|
+
context.ui.results.line(
|
|
95
95
|
`${row.policy} ${row.runtime} [${row.modes.join(",")}]: ${row.calls} call(s), ${row.sessions} session(s); found ${counts(row.raw)}; gave ${counts(row.verdict)}; p50 ${row.durationMs.p50}ms p95 ${row.durationMs.p95}ms max ${row.durationMs.max}ms`
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
|
-
context.ui.line(
|
|
98
|
+
context.ui.results.line(
|
|
99
99
|
`${summary.lines} guard run(s) in ${summary.sessions} session(s)${summary.excluded ? `; ${summary.excluded} excluded by [hooks.report] exclude_sessions` : ""}`
|
|
100
100
|
);
|
|
101
101
|
return 0;
|
|
@@ -103,4 +103,4 @@ async function run(context) {
|
|
|
103
103
|
export {
|
|
104
104
|
run
|
|
105
105
|
};
|
|
106
|
-
//# sourceMappingURL=report-
|
|
106
|
+
//# sourceMappingURL=report-UB7MXAUB.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
change
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HES44LTA.js";
|
|
4
4
|
import "./chunk-3V37OZQH.js";
|
|
5
5
|
import "./chunk-Z6WRFOFT.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-Y6NFETNG.js";
|
|
7
7
|
import "./chunk-FQLCD4HU.js";
|
|
8
8
|
import "./chunk-GUHOEIHP.js";
|
|
9
9
|
import "./chunk-IJBSOWHK.js";
|
|
@@ -15,4 +15,4 @@ var run = (context) => change(context, "resume");
|
|
|
15
15
|
export {
|
|
16
16
|
run
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=resume-
|
|
18
|
+
//# sourceMappingURL=resume-PAKIT4TT.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArgumentError,
|
|
3
|
+
unknownSubcommand
|
|
4
|
+
} from "./chunk-Y6NFETNG.js";
|
|
5
|
+
|
|
6
|
+
// src/commands/mcp/run.ts
|
|
7
|
+
var VERBS = ["login", "logout", "status"];
|
|
8
|
+
async function executeMcpCommand(context) {
|
|
9
|
+
const [verb, name, ...extra] = context.args.positional;
|
|
10
|
+
if (verb === void 0 || !VERBS.includes(verb))
|
|
11
|
+
throw unknownSubcommand("mcp", verb, VERBS);
|
|
12
|
+
if (!name) throw new ArgumentError(`mcp ${verb} needs a server name`);
|
|
13
|
+
if (extra.length) throw new ArgumentError(`unexpected ${extra.join(" ")}`);
|
|
14
|
+
if (context.args.flags.has("json") && verb !== "status")
|
|
15
|
+
throw new ArgumentError("--json requires mcp status");
|
|
16
|
+
if (verb === "status") return (await import("./status-DLGZDYEP.js")).run(context);
|
|
17
|
+
if (verb === "logout") return (await import("./logout-SSUXJ6SE.js")).run(context);
|
|
18
|
+
return (await import("./start-login-P7YDRTA3.js")).run(context);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
executeMcpCommand
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=run-OW7436TY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSpec
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-25M2YWBH.js";
|
|
4
4
|
import "./chunk-UYBWUOLR.js";
|
|
5
5
|
import "./chunk-UKR64U7J.js";
|
|
6
6
|
import "./chunk-42SO7KYX.js";
|
|
@@ -12,7 +12,7 @@ import "./chunk-73AKO4UL.js";
|
|
|
12
12
|
import "./chunk-M6X6HVQK.js";
|
|
13
13
|
import {
|
|
14
14
|
readGitConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RZYZILU4.js";
|
|
16
16
|
import {
|
|
17
17
|
detect
|
|
18
18
|
} from "./chunk-SUDG7B6S.js";
|
|
@@ -21,13 +21,13 @@ import "./chunk-Z6WRFOFT.js";
|
|
|
21
21
|
import "./chunk-B3OZ4GGO.js";
|
|
22
22
|
import "./chunk-Q5H3L6Y4.js";
|
|
23
23
|
import "./chunk-ARXCYFFZ.js";
|
|
24
|
+
import "./chunk-V4NPDK6X.js";
|
|
24
25
|
import {
|
|
25
26
|
ArgumentError,
|
|
26
27
|
one
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-FOLA4EUJ.js";
|
|
28
|
+
} from "./chunk-Y6NFETNG.js";
|
|
29
|
+
import "./chunk-7A6QIROT.js";
|
|
30
|
+
import "./chunk-QY2P54Z2.js";
|
|
31
31
|
import "./chunk-N7ANFMA5.js";
|
|
32
32
|
import "./chunk-TYY5TYHF.js";
|
|
33
33
|
import "./chunk-T6C3TSTO.js";
|
|
@@ -35,7 +35,7 @@ import "./chunk-FQLCD4HU.js";
|
|
|
35
35
|
import "./chunk-GUHOEIHP.js";
|
|
36
36
|
import "./chunk-IJBSOWHK.js";
|
|
37
37
|
import "./chunk-XWLMZKH2.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-LTMHE5VL.js";
|
|
39
39
|
import {
|
|
40
40
|
readConfig
|
|
41
41
|
} from "./chunk-GJXOFDJT.js";
|
|
@@ -132,4 +132,4 @@ function run(context) {
|
|
|
132
132
|
export {
|
|
133
133
|
run
|
|
134
134
|
};
|
|
135
|
-
//# sourceMappingURL=run-
|
|
135
|
+
//# sourceMappingURL=run-PMASXIGY.js.map
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
embeddingFrom,
|
|
3
3
|
indexPath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q6V274OB.js";
|
|
5
5
|
import {
|
|
6
6
|
catalogOptionsFrom,
|
|
7
7
|
rootsFrom
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
invocation
|
|
11
|
-
} from "./chunk-J7UYNJCR.js";
|
|
8
|
+
} from "./chunk-2MX5C7B2.js";
|
|
12
9
|
import {
|
|
13
10
|
configFrom
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7CHUMF3E.js";
|
|
15
12
|
import {
|
|
16
13
|
prepareSearch
|
|
17
14
|
} from "./chunk-NLHLA2N5.js";
|
|
@@ -19,18 +16,21 @@ import "./chunk-73AKO4UL.js";
|
|
|
19
16
|
import {
|
|
20
17
|
serve,
|
|
21
18
|
serveWithMailbox
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ISGHJHVH.js";
|
|
23
20
|
import {
|
|
24
21
|
serveSpec
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-VBVNOLRR.js";
|
|
23
|
+
import "./chunk-7DJQASH3.js";
|
|
24
|
+
import "./chunk-5NDUWEMW.js";
|
|
25
|
+
import {
|
|
26
|
+
invocation
|
|
27
|
+
} from "./chunk-J7UYNJCR.js";
|
|
28
28
|
import {
|
|
29
29
|
ArgumentError,
|
|
30
30
|
one
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Y6NFETNG.js";
|
|
32
32
|
import "./chunk-ISZOLR3D.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-5QBOGEVE.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-P3HJN6AF.js.map
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
startDevice,
|
|
8
8
|
writeSession
|
|
9
9
|
} from "./chunk-RMATE45Z.js";
|
|
10
|
-
import {
|
|
11
|
-
invocation
|
|
12
|
-
} from "./chunk-J7UYNJCR.js";
|
|
13
10
|
import {
|
|
14
11
|
loginSpec,
|
|
15
12
|
logoutSpec,
|
|
16
13
|
whoamiSpec
|
|
17
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QYLOIM4U.js";
|
|
15
|
+
import {
|
|
16
|
+
invocation
|
|
17
|
+
} from "./chunk-J7UYNJCR.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/session.ts
|
|
20
20
|
var DEFAULT_ISSUER = "https://auth.pmcp.build";
|
|
@@ -121,7 +121,7 @@ var whoamiCommand = {
|
|
|
121
121
|
`);
|
|
122
122
|
} else {
|
|
123
123
|
ui.data("not signed in\n");
|
|
124
|
-
ui.info(
|
|
124
|
+
ui.info(`run ${invocation()} login to sign in`);
|
|
125
125
|
}
|
|
126
126
|
return 1;
|
|
127
127
|
}
|
|
@@ -156,4 +156,4 @@ export {
|
|
|
156
156
|
logoutCommand,
|
|
157
157
|
whoamiCommand
|
|
158
158
|
};
|
|
159
|
-
//# sourceMappingURL=session-
|
|
159
|
+
//# sourceMappingURL=session-3YVVO2GR.js.map
|
|
@@ -2,11 +2,12 @@ import {
|
|
|
2
2
|
gateTreePath,
|
|
3
3
|
leaseSpecs,
|
|
4
4
|
loadGit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RZYZILU4.js";
|
|
6
6
|
import "./chunk-SUDG7B6S.js";
|
|
7
7
|
import "./chunk-3V37OZQH.js";
|
|
8
8
|
import "./chunk-Z6WRFOFT.js";
|
|
9
9
|
import "./chunk-B3OZ4GGO.js";
|
|
10
|
+
import "./chunk-Y6NFETNG.js";
|
|
10
11
|
import "./chunk-T6C3TSTO.js";
|
|
11
12
|
import "./chunk-FQLCD4HU.js";
|
|
12
13
|
import "./chunk-GUHOEIHP.js";
|
|
@@ -18,4 +19,4 @@ export {
|
|
|
18
19
|
leaseSpecs,
|
|
19
20
|
loadGit
|
|
20
21
|
};
|
|
21
|
-
//# sourceMappingURL=setup-
|
|
22
|
+
//# sourceMappingURL=setup-6AQUOWOH.js.map
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
printSmoke,
|
|
3
3
|
run,
|
|
4
4
|
runSmoke
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-OGCJO6HQ.js";
|
|
6
|
+
import "./chunk-7CHUMF3E.js";
|
|
7
7
|
import "./chunk-ARXCYFFZ.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-Y6NFETNG.js";
|
|
9
9
|
import "./chunk-XWLMZKH2.js";
|
|
10
10
|
import "./chunk-GJXOFDJT.js";
|
|
11
11
|
import "./chunk-PMJG2CXF.js";
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
run,
|
|
15
15
|
runSmoke
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=smoke-
|
|
17
|
+
//# sourceMappingURL=smoke-6X6IXQIQ.js.map
|