@modootoday/pmcp 0.22.13 → 0.23.1
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/{affected-ZWO2F5EM.js → affected-D6FRJPPI.js} +2 -2
- package/dist/{apply-OIKQ5SIY.js → apply-3PWUO4J5.js} +20 -19
- package/dist/{available-Z5MIDFPH.js → available-74CMIBPD.js} +9 -9
- package/dist/{broadcast-BF2QL3O7.js → broadcast-VKZY7WSD.js} +3 -3
- package/dist/chunk-2GZKA33O.js +173 -0
- package/dist/chunk-2HL2MFNI.js +159 -0
- package/dist/{chunk-5PNS6V5C.js → chunk-2K4WYN4C.js} +2 -2
- package/dist/{chunk-4O4ZOSBQ.js → chunk-2MX5C7B2.js} +3 -3
- package/dist/chunk-43MXRTKH.js +134 -0
- package/dist/chunk-4VVQLWTS.js +93 -0
- package/dist/{chunk-24L4MO7H.js → chunk-5HNLHI5F.js} +2 -2
- package/dist/{chunk-JEL35P7S.js → chunk-5NDUWEMW.js} +2 -2
- package/dist/{chunk-737BENAU.js → chunk-6NRLBSEG.js} +5 -5
- package/dist/chunk-6QJ3F445.js +166 -0
- package/dist/{chunk-7ZOQELXR.js → chunk-72V6U7CZ.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-7IRXUPM2.js +7 -0
- package/dist/{chunk-UED3RH53.js → chunk-DNSHJIS4.js} +2 -2
- package/dist/{chunk-ISGBOJT7.js → chunk-DZTSCJOZ.js} +3 -3
- package/dist/{chunk-KEHB4FZP.js → chunk-E2E4HIEN.js} +49 -3
- package/dist/{chunk-VNZTULFD.js → chunk-EQF64INS.js} +3 -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-JANBBPKP.js +50 -0
- package/dist/{chunk-A6DARDQ4.js → chunk-JJFPSFDU.js} +2 -2
- package/dist/{chunk-XNML2KIC.js → chunk-JPYQDOEW.js} +3 -3
- package/dist/{chunk-733WVP2R.js → chunk-KYGGQPAH.js} +2 -2
- package/dist/{chunk-NNGGNXF2.js → chunk-LGRFYN5T.js} +2 -2
- package/dist/{chunk-GNVME5AD.js → chunk-LO54UUDE.js} +2 -2
- package/dist/{chunk-XSWF7APE.js → chunk-OGCJO6HQ.js} +9 -8
- package/dist/{chunk-T4GVN7XO.js → chunk-P25V6NEX.js} +5 -5
- package/dist/{chunk-A7XCUR2C.js → chunk-Q6V274OB.js} +8 -6
- package/dist/chunk-QR6A3TYP.js +315 -0
- package/dist/{chunk-EIDIVIAD.js → chunk-QYLOIM4U.js} +9 -2
- package/dist/{chunk-ZKB7ZNKY.js → chunk-RRKA3GF5.js} +4 -4
- package/dist/{chunk-P5D6RKMT.js → chunk-RZYZILU4.js} +5 -3
- package/dist/{chunk-5IZFEVPW.js → chunk-SDQYZDHS.js} +2 -2
- 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-K2VU3B4W.js → chunk-WQBKQTNT.js} +3 -3
- package/dist/{chunk-YGOWIJPE.js → chunk-WZYGM3FR.js} +6 -2
- package/dist/chunk-Y6NFETNG.js +232 -0
- package/dist/{chunk-5KWDQFVY.js → chunk-YRNFMPZB.js} +7 -8
- package/dist/{chunk-ZS5IDQFJ.js → chunk-ZXMECZBI.js} +4 -4
- package/dist/{cli-IHVNE3WL.js → cli-GFDT4YXM.js} +14 -15
- package/dist/{cli-FSSYFCV3.js → cli-YWV7FLYO.js} +18 -12
- package/dist/cli.js +307 -47
- package/dist/{completion-ZTTJVV4C.js → completion-OKGNN7DE.js} +25 -23
- package/dist/{diagnostics-XC5L6Z3E.js → diagnostics-N4XRRCQG.js} +5 -5
- package/dist/{doctor-FGDSUBR3.js → doctor-3H6UYNEA.js} +20 -20
- package/dist/{entry-NNB2CQLZ.js → entry-KDLLG6ED.js} +9 -9
- package/dist/{exec-mcp-ZU3Z3XT6.js → exec-mcp-AENALAHJ.js} +8 -8
- package/dist/{harness-B7ANLH5M.js → harness-GRYTNUF2.js} +26 -44
- package/dist/harness-launch-gate.js +3 -3
- package/dist/harness-worker.js +5 -5
- package/dist/{heavy-IIZBO4YM.js → heavy-BGXKJKYB.js} +78 -22
- package/dist/hooks-V25ANQ4Q.js +24 -0
- package/dist/{host-XXWQ23LD.js → host-4EGPADOJ.js} +6 -6
- package/dist/{host-5P4D7GSE.js → host-MLSWY7D7.js} +17 -14
- package/dist/{host-run-AEWHFVQL.js → host-run-VI52IUKF.js} +5 -5
- package/dist/http.js +1 -1
- package/dist/{import-mcp-BQM5DKYH.js → import-mcp-FIXFLUDM.js} +11 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -9
- package/dist/init-ALTBFUPP.js +14 -0
- package/dist/{install-OFVLR7TI.js → install-5JH4DSFF.js} +10 -10
- package/dist/{invoke-3BQ5NG3P.js → invoke-7T7UY57O.js} +7 -7
- package/dist/{list-EU4MJOXA.js → list-JFZ7UZLV.js} +11 -11
- package/dist/{list-WWYCGD3X.js → list-LV5EKCF6.js} +11 -7
- package/dist/{logout-6DFDYJUI.js → logout-7CNBO76Z.js} +8 -8
- 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-6PBT3VNR.js} +8 -7
- package/dist/{marketplace-TI5HFAHB.js → marketplace-2X3OOEPW.js} +10 -9
- package/dist/{mcp-HR5JFUW7.js → mcp-MVQVMAKJ.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-FZGJRG2U.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-XRWU4L73.js → run-TOP37ZQC.js} +7 -7
- package/dist/run-VGJDMA2O.js +23 -0
- package/dist/{serve-OEX5V5CD.js → serve-LR7SJHNH.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-X37KGCCB.js} +9 -9
- package/dist/{status-GKCIVAAR.js → status-4PYPTYUB.js} +4 -4
- package/dist/{status-APADL7O2.js → status-E4AFUOQO.js} +17 -10
- package/dist/{status-LH7Q255G.js → status-LBRK37GA.js} +27 -26
- package/dist/stdio.js +2 -2
- package/dist/{sweep-VTVPDAPY.js → sweep-VURZU6DI.js} +3 -3
- package/dist/{test-TK2J3IB7.js → test-D2EEFUN2.js} +11 -11
- package/dist/{tui-YTPHHKCW.js → tui-D7E3MD3X.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-WTBC6VYO.js} +7 -7
- package/dist/{worktree-create-FEZNQUQ6.js → worktree-create-FTSLMZWS.js} +2 -2
- package/docs/commands.md +64 -28
- package/docs/hooks.md +3 -3
- package/docs/project-configuration.md +33 -33
- package/docs/terminal-workspace.md +2 -0
- package/docs/upgrading.md +43 -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
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
} from "./chunk-MHKY6TNF.js";
|
|
8
8
|
import {
|
|
9
9
|
policyRows
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5HNLHI5F.js";
|
|
11
11
|
import "./chunk-7TD53M7L.js";
|
|
12
12
|
import {
|
|
13
13
|
configFrom
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7CHUMF3E.js";
|
|
15
15
|
import {
|
|
16
16
|
checkProject
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-72V6U7CZ.js";
|
|
18
18
|
import {
|
|
19
19
|
checkBudget,
|
|
20
20
|
readSpec
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WQBKQTNT.js";
|
|
22
22
|
import "./chunk-UYBWUOLR.js";
|
|
23
23
|
import "./chunk-UKR64U7J.js";
|
|
24
24
|
import {
|
|
@@ -32,7 +32,7 @@ import "./chunk-73AKO4UL.js";
|
|
|
32
32
|
import "./chunk-M6X6HVQK.js";
|
|
33
33
|
import {
|
|
34
34
|
readGitConfig
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RZYZILU4.js";
|
|
36
36
|
import {
|
|
37
37
|
defaultMainline,
|
|
38
38
|
defaultRemote
|
|
@@ -47,13 +47,15 @@ import "./chunk-Q5H3L6Y4.js";
|
|
|
47
47
|
import "./chunk-ARXCYFFZ.js";
|
|
48
48
|
import {
|
|
49
49
|
statusSpec
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import {
|
|
53
|
-
ArgumentError
|
|
54
|
-
} from "./chunk-WFY7ATSZ.js";
|
|
50
|
+
} from "./chunk-E2E4HIEN.js";
|
|
51
|
+
import "./chunk-JPYQDOEW.js";
|
|
55
52
|
import "./chunk-V4NPDK6X.js";
|
|
56
|
-
import
|
|
53
|
+
import {
|
|
54
|
+
ArgumentError,
|
|
55
|
+
EXIT,
|
|
56
|
+
noConfig
|
|
57
|
+
} from "./chunk-Y6NFETNG.js";
|
|
58
|
+
import "./chunk-KYGGQPAH.js";
|
|
57
59
|
import "./chunk-FOLA4EUJ.js";
|
|
58
60
|
import "./chunk-N7ANFMA5.js";
|
|
59
61
|
import "./chunk-TYY5TYHF.js";
|
|
@@ -65,7 +67,7 @@ import {
|
|
|
65
67
|
worktreesOf
|
|
66
68
|
} from "./chunk-IJBSOWHK.js";
|
|
67
69
|
import "./chunk-XWLMZKH2.js";
|
|
68
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-7IRXUPM2.js";
|
|
69
71
|
import "./chunk-GJXOFDJT.js";
|
|
70
72
|
import "./chunk-PMJG2CXF.js";
|
|
71
73
|
import "./chunk-J6KL3COD.js";
|
|
@@ -239,16 +241,16 @@ async function readStatus(config, env) {
|
|
|
239
241
|
|
|
240
242
|
// src/status/render.ts
|
|
241
243
|
function renderStatus(context, report) {
|
|
242
|
-
context.ui.line("pmcp status: " + report.config);
|
|
244
|
+
context.ui.results.line("pmcp status: " + report.config);
|
|
243
245
|
const enabled = report.features.filter((row) => row.enabled);
|
|
244
|
-
context.ui.line(
|
|
246
|
+
context.ui.results.line(
|
|
245
247
|
"Features: " + (enabled.map((row) => row.feature + " [" + row.source + "]").join(", ") || "none")
|
|
246
248
|
);
|
|
247
|
-
context.ui.line(
|
|
249
|
+
context.ui.results.line(
|
|
248
250
|
"Projection: " + (report.projection.drift ? report.projection.problems.length + " drift(s)" : "matches") + " (" + report.projection.outputs + " outputs)"
|
|
249
251
|
);
|
|
250
252
|
for (const problem of report.projection.problems.slice(0, 3))
|
|
251
|
-
context.ui.line(" " + problem);
|
|
253
|
+
context.ui.results.line(" " + problem);
|
|
252
254
|
if (report.budget) {
|
|
253
255
|
const worst = /* @__PURE__ */ new Map();
|
|
254
256
|
for (const row of report.budget.rows) {
|
|
@@ -256,26 +258,26 @@ function renderStatus(context, report) {
|
|
|
256
258
|
if (!seen || row.value - row.limit > seen.value - seen.limit)
|
|
257
259
|
worst.set(row.key, row);
|
|
258
260
|
}
|
|
259
|
-
context.ui.line(
|
|
261
|
+
context.ui.results.line(
|
|
260
262
|
"Budget: " + (report.budget.problems.length ? report.budget.problems.length + " over" : "within") + ([...worst.values()].map((row) => `; ${row.key} ${row.subject} ${row.value}/${row.limit}`).join("") || "")
|
|
261
263
|
);
|
|
262
264
|
for (const problem of report.budget.problems.slice(0, 3))
|
|
263
|
-
context.ui.line(" " + problem);
|
|
265
|
+
context.ui.results.line(" " + problem);
|
|
264
266
|
}
|
|
265
267
|
const state = report.sessions;
|
|
266
|
-
context.ui.line(
|
|
268
|
+
context.ui.results.line(
|
|
267
269
|
"Sessions: " + state.live.length + " live; pause " + (state.pause?.reason ?? "none") + "; " + state.leases.length + " lease(s); " + state.broadcasts.filter((row) => row.unseenBy.length > 0).length + " unseen broadcast(s)"
|
|
268
270
|
);
|
|
269
271
|
const drifted = report.worktrees.filter(
|
|
270
272
|
(row) => (row.behind ?? 0) > 0 || (row.ahead ?? 0) > 0
|
|
271
273
|
);
|
|
272
|
-
context.ui.line(
|
|
274
|
+
context.ui.results.line(
|
|
273
275
|
"Linked worktrees: " + report.worktrees.length + "; " + drifted.length + " ahead/behind"
|
|
274
276
|
);
|
|
275
|
-
context.ui.line(
|
|
277
|
+
context.ui.results.line(
|
|
276
278
|
"MCP auth: " + (report.mcp.map((row) => row.name + "=" + (row.present ? "present" : "absent")).join(", ") || "no pmcp-auth servers")
|
|
277
279
|
);
|
|
278
|
-
context.ui.line("Errors (last hour): " + report.errors.length);
|
|
280
|
+
context.ui.results.line("Errors (last hour): " + report.errors.length);
|
|
279
281
|
}
|
|
280
282
|
|
|
281
283
|
// src/status/run.ts
|
|
@@ -283,13 +285,12 @@ async function run(context) {
|
|
|
283
285
|
if (context.args.positional.length)
|
|
284
286
|
throw new ArgumentError("Use status [--json]");
|
|
285
287
|
const config = configFrom(context);
|
|
286
|
-
if (!config)
|
|
287
|
-
throw new ArgumentError("no pmcp.toml here or above; run pmcp init");
|
|
288
|
+
if (!config) throw noConfig();
|
|
288
289
|
const report = await readStatus(config, context.env);
|
|
289
290
|
if (context.args.flags.has("json"))
|
|
290
291
|
context.ui.data(JSON.stringify(report) + "\n");
|
|
291
292
|
if (!context.args.flags.has("json")) renderStatus(context, report);
|
|
292
|
-
return report.drift ?
|
|
293
|
+
return report.drift ? EXIT.differences : EXIT.ok;
|
|
293
294
|
}
|
|
294
295
|
|
|
295
296
|
// src/commands/status.ts
|
|
@@ -300,4 +301,4 @@ var statusCommand = {
|
|
|
300
301
|
export {
|
|
301
302
|
statusCommand
|
|
302
303
|
};
|
|
303
|
-
//# sourceMappingURL=status-
|
|
304
|
+
//# sourceMappingURL=status-LBRK37GA.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-DNSHJIS4.js";
|
|
8
|
+
import "./chunk-2K4WYN4C.js";
|
|
9
9
|
import "./chunk-6WXMJOMI.js";
|
|
10
10
|
import "./chunk-4CRRLDDS.js";
|
|
11
11
|
import "./chunk-YSAWTGNA.js";
|
|
@@ -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, "sweep");
|
|
|
15
15
|
export {
|
|
16
16
|
run
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=sweep-
|
|
18
|
+
//# sourceMappingURL=sweep-VURZU6DI.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
specFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YRNFMPZB.js";
|
|
4
4
|
import {
|
|
5
5
|
sourceFor
|
|
6
6
|
} from "./chunk-7TD53M7L.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-7CHUMF3E.js";
|
|
8
8
|
import {
|
|
9
9
|
POLICIES,
|
|
10
10
|
UnreadableCommand,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
customMode,
|
|
13
13
|
customPolicy,
|
|
14
14
|
readScript
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WQBKQTNT.js";
|
|
16
16
|
import "./chunk-UYBWUOLR.js";
|
|
17
17
|
import "./chunk-UKR64U7J.js";
|
|
18
18
|
import "./chunk-42SO7KYX.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-HQOB7OQS.js";
|
|
26
26
|
import "./chunk-73AKO4UL.js";
|
|
27
27
|
import "./chunk-M6X6HVQK.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-RZYZILU4.js";
|
|
29
29
|
import "./chunk-SUDG7B6S.js";
|
|
30
30
|
import {
|
|
31
31
|
SESSION_ID,
|
|
@@ -48,12 +48,12 @@ import {
|
|
|
48
48
|
RUNTIMES,
|
|
49
49
|
RUNTIME_IDS
|
|
50
50
|
} from "./chunk-ARXCYFFZ.js";
|
|
51
|
+
import "./chunk-V4NPDK6X.js";
|
|
51
52
|
import {
|
|
52
53
|
ArgumentError,
|
|
53
54
|
one
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-733WVP2R.js";
|
|
55
|
+
} from "./chunk-Y6NFETNG.js";
|
|
56
|
+
import "./chunk-KYGGQPAH.js";
|
|
57
57
|
import "./chunk-FOLA4EUJ.js";
|
|
58
58
|
import "./chunk-N7ANFMA5.js";
|
|
59
59
|
import "./chunk-TYY5TYHF.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
worktreesOf
|
|
68
68
|
} from "./chunk-IJBSOWHK.js";
|
|
69
69
|
import "./chunk-XWLMZKH2.js";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-7IRXUPM2.js";
|
|
71
71
|
import "./chunk-GJXOFDJT.js";
|
|
72
72
|
import "./chunk-PMJG2CXF.js";
|
|
73
73
|
import "./chunk-J6KL3COD.js";
|
|
@@ -561,7 +561,7 @@ async function simulate(input, compiled, store) {
|
|
|
561
561
|
async function run(context) {
|
|
562
562
|
const fixtures = one(context.args, "fixtures");
|
|
563
563
|
if (fixtures !== void 0)
|
|
564
|
-
return (await import("./smoke-
|
|
564
|
+
return (await import("./smoke-6X6IXQIQ.js")).run(context, fixtures);
|
|
565
565
|
const runtime = one(context.args, "runtime");
|
|
566
566
|
if (!RUNTIME_IDS.includes(runtime))
|
|
567
567
|
throw new ArgumentError("--runtime must be claude or codex");
|
|
@@ -611,7 +611,7 @@ async function run(context) {
|
|
|
611
611
|
context.ui.data(JSON.stringify(result) + "\n");
|
|
612
612
|
if (!context.args.flags.has("json")) {
|
|
613
613
|
for (const row of report.policies)
|
|
614
|
-
context.ui.line(
|
|
614
|
+
context.ui.results.line(
|
|
615
615
|
row.policy + ": " + row.verdict + " " + row.durationMs + "ms" + (row.skipped ? " (external effects skipped)" : "") + (row.reason ? " " + row.reason : "") + // A guard in observe, warn or graded mode: what it found, before its mode.
|
|
616
616
|
(row.raw && row.raw.verdict !== row.verdict ? ` (${row.mode}; found ${row.raw.verdict}` + (row.raw.reason && row.raw.reason !== row.reason ? `: ${row.raw.reason}` : "") + ")" : "")
|
|
617
617
|
);
|
|
@@ -627,4 +627,4 @@ async function run(context) {
|
|
|
627
627
|
export {
|
|
628
628
|
run
|
|
629
629
|
};
|
|
630
|
-
//# sourceMappingURL=test-
|
|
630
|
+
//# sourceMappingURL=test-D2EEFUN2.js.map
|
|
@@ -4,11 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-F5XMGOOX.js";
|
|
5
5
|
import {
|
|
6
6
|
tuiSpec
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QR6A3TYP.js";
|
|
8
8
|
import {
|
|
9
9
|
ArgumentError,
|
|
10
|
-
one
|
|
11
|
-
|
|
10
|
+
one,
|
|
11
|
+
unknownSubcommand
|
|
12
|
+
} from "./chunk-Y6NFETNG.js";
|
|
12
13
|
import {
|
|
13
14
|
ConfigError
|
|
14
15
|
} from "./chunk-GJXOFDJT.js";
|
|
@@ -17,10 +18,10 @@ import "./chunk-PMJG2CXF.js";
|
|
|
17
18
|
// src/commands/tui/invocation.ts
|
|
18
19
|
var allowed = {
|
|
19
20
|
launch: ["config", "runtime", "yes", "new"],
|
|
20
|
-
plan: ["config", "runtime"],
|
|
21
|
-
recovery: ["config"],
|
|
22
|
-
"start-worker": ["config", "runtime", "memory-mb"],
|
|
23
|
-
doctor: []
|
|
21
|
+
plan: ["config", "runtime", "json"],
|
|
22
|
+
recovery: ["config", "json"],
|
|
23
|
+
"start-worker": ["config", "runtime", "memory-mb", "json"],
|
|
24
|
+
doctor: ["json"]
|
|
24
25
|
};
|
|
25
26
|
var REMOVED = /* @__PURE__ */ new Set([
|
|
26
27
|
"create",
|
|
@@ -49,8 +50,11 @@ function parseTui(args) {
|
|
|
49
50
|
`tui ${action} was a tmux view operation and is removed; run pmcp tui, which opens pmcp-tui on the group's pmcp-pty host`
|
|
50
51
|
);
|
|
51
52
|
const options = allowed[action];
|
|
52
|
-
if (!options
|
|
53
|
-
|
|
53
|
+
if (!options) {
|
|
54
|
+
const verbs = Object.keys(allowed).filter((verb) => verb !== "launch");
|
|
55
|
+
throw unknownSubcommand("tui", action, verbs);
|
|
56
|
+
}
|
|
57
|
+
if (extra.length) throw new ArgumentError(`unexpected ${extra.join(" ")}`);
|
|
54
58
|
for (const key of [...args.options.keys(), ...args.flags])
|
|
55
59
|
if (!options.includes(key))
|
|
56
60
|
throw new ArgumentError(`--${key} is not supported by tui ${action}`);
|
|
@@ -87,6 +91,23 @@ function parseTui(args) {
|
|
|
87
91
|
};
|
|
88
92
|
}
|
|
89
93
|
|
|
94
|
+
// src/commands/tui/render.ts
|
|
95
|
+
function renderReceipt(ui, receipt, indent = "") {
|
|
96
|
+
if (receipt === null || typeof receipt !== "object") {
|
|
97
|
+
ui.line(`${indent}${String(receipt)}`);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const entries = Array.isArray(receipt) ? receipt.map((value, index) => [String(index + 1), value]) : Object.entries(receipt);
|
|
101
|
+
for (const [key, value] of entries) {
|
|
102
|
+
if (value !== null && typeof value === "object") {
|
|
103
|
+
ui.line(`${indent}${key}:`);
|
|
104
|
+
renderReceipt(ui, value, `${indent} `);
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
ui.line(`${indent}${key}: ${String(value)}`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
90
111
|
// src/commands/tui.ts
|
|
91
112
|
function failed(error) {
|
|
92
113
|
const message = error instanceof Error ? error.message : "tui_failed";
|
|
@@ -99,23 +120,30 @@ function failed(error) {
|
|
|
99
120
|
inputReplayed: false
|
|
100
121
|
};
|
|
101
122
|
}
|
|
123
|
+
function printReceipt(context, receipt) {
|
|
124
|
+
if (context.args.flags.has("json")) {
|
|
125
|
+
context.ui.data(`${JSON.stringify(receipt)}
|
|
126
|
+
`);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
renderReceipt(context.ui.results, receipt);
|
|
130
|
+
}
|
|
102
131
|
var tuiCommand = {
|
|
103
132
|
...tuiSpec,
|
|
104
133
|
async run(context) {
|
|
105
134
|
const invocation = parseTui(context.args);
|
|
106
135
|
const unsupported = unsupportedHost();
|
|
107
136
|
if (unsupported) {
|
|
108
|
-
context
|
|
109
|
-
`);
|
|
137
|
+
printReceipt(context, unsupportedReceipt(unsupported));
|
|
110
138
|
return 1;
|
|
111
139
|
}
|
|
112
140
|
try {
|
|
113
141
|
let receipt;
|
|
114
142
|
if (invocation.action === "doctor") {
|
|
115
|
-
const { inspectTerminalHost } = await import("./diagnostics-
|
|
143
|
+
const { inspectTerminalHost } = await import("./diagnostics-N4XRRCQG.js");
|
|
116
144
|
receipt = inspectTerminalHost();
|
|
117
145
|
} else if (invocation.action === "start-worker") {
|
|
118
|
-
const { startWorkspaceWorker } = await import("./worker-
|
|
146
|
+
const { startWorkspaceWorker } = await import("./worker-WTBC6VYO.js");
|
|
119
147
|
receipt = await startWorkspaceWorker(
|
|
120
148
|
{ config: invocation.startup?.config, cwd: context.cwd },
|
|
121
149
|
invocation.startup.runtime,
|
|
@@ -128,7 +156,7 @@ var tuiCommand = {
|
|
|
128
156
|
cwd: context.cwd
|
|
129
157
|
});
|
|
130
158
|
} else {
|
|
131
|
-
const { launchStartup, planStartup } = await import("./entry-
|
|
159
|
+
const { launchStartup, planStartup } = await import("./entry-KDLLG6ED.js");
|
|
132
160
|
const request = { ...invocation.startup, cwd: context.cwd };
|
|
133
161
|
receipt = invocation.action === "plan" ? planStartup(request) : await launchStartup(
|
|
134
162
|
request,
|
|
@@ -136,13 +164,11 @@ var tuiCommand = {
|
|
|
136
164
|
);
|
|
137
165
|
}
|
|
138
166
|
if (invocation.action !== "launch" || receipt.ok !== true)
|
|
139
|
-
context
|
|
140
|
-
`);
|
|
167
|
+
printReceipt(context, receipt);
|
|
141
168
|
return receipt.ok === true ? 0 : 1;
|
|
142
169
|
} catch (error) {
|
|
143
170
|
if (error instanceof ConfigError) throw new ArgumentError(error.message);
|
|
144
|
-
context
|
|
145
|
-
`);
|
|
171
|
+
printReceipt(context, failed(error));
|
|
146
172
|
return 1;
|
|
147
173
|
}
|
|
148
174
|
}
|
|
@@ -150,4 +176,4 @@ var tuiCommand = {
|
|
|
150
176
|
export {
|
|
151
177
|
tuiCommand
|
|
152
178
|
};
|
|
153
|
-
//# sourceMappingURL=tui-
|
|
179
|
+
//# sourceMappingURL=tui-D7E3MD3X.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, "unbroadcast");
|
|
|
15
15
|
export {
|
|
16
16
|
run
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=unbroadcast-
|
|
18
|
+
//# sourceMappingURL=unbroadcast-7AMLURCG.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogOptionsFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2MX5C7B2.js";
|
|
4
4
|
import {
|
|
5
5
|
configFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7CHUMF3E.js";
|
|
7
7
|
import {
|
|
8
8
|
validateCatalog,
|
|
9
9
|
validateSkillDir
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
import "./chunk-73AKO4UL.js";
|
|
12
12
|
import {
|
|
13
13
|
validateSpec
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-7DJQASH3.js";
|
|
15
|
+
import "./chunk-5NDUWEMW.js";
|
|
16
|
+
import "./chunk-Y6NFETNG.js";
|
|
17
17
|
import "./chunk-4CRRLDDS.js";
|
|
18
18
|
import "./chunk-YSAWTGNA.js";
|
|
19
19
|
import "./chunk-GJXOFDJT.js";
|
|
@@ -33,14 +33,16 @@ var validateCommand = {
|
|
|
33
33
|
return errors > 0 ? 1 : 0;
|
|
34
34
|
}
|
|
35
35
|
for (const finding of findings) {
|
|
36
|
-
const
|
|
37
|
-
report
|
|
36
|
+
const out = context.ui.results;
|
|
37
|
+
const report = finding.level === "error" ? out.error : out.warn;
|
|
38
|
+
report.call(out, finding.reason, finding.path);
|
|
38
39
|
}
|
|
39
|
-
if (findings.length === 0)
|
|
40
|
+
if (findings.length === 0)
|
|
41
|
+
context.ui.results.success("every skill is valid");
|
|
40
42
|
return errors > 0 ? 1 : 0;
|
|
41
43
|
}
|
|
42
44
|
};
|
|
43
45
|
export {
|
|
44
46
|
validateCommand
|
|
45
47
|
};
|
|
46
|
-
//# sourceMappingURL=validate-
|
|
48
|
+
//# sourceMappingURL=validate-YXR7FJJX.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
waitSpec
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F3R5HEUB.js";
|
|
4
4
|
import {
|
|
5
5
|
ArgumentError,
|
|
6
6
|
EXIT,
|
|
7
7
|
many,
|
|
8
8
|
one
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y6NFETNG.js";
|
|
10
10
|
import {
|
|
11
11
|
pidAlive
|
|
12
12
|
} from "./chunk-N7ANFMA5.js";
|
|
@@ -138,4 +138,4 @@ var waitCommand = { ...waitSpec, run };
|
|
|
138
138
|
export {
|
|
139
139
|
waitCommand
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=wait-
|
|
141
|
+
//# sourceMappingURL=wait-HEODT7KV.js.map
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
} from "./chunk-C3G75JH7.js";
|
|
6
6
|
import {
|
|
7
7
|
invoke
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-P25V6NEX.js";
|
|
9
9
|
import "./chunk-DZ2MRTYT.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-DZTSCJOZ.js";
|
|
11
|
+
import "./chunk-SDQYZDHS.js";
|
|
12
12
|
import {
|
|
13
13
|
locateExecutable
|
|
14
14
|
} from "./chunk-R2GPCZUX.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-LO54UUDE.js";
|
|
16
16
|
import "./chunk-34DECPVC.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-KYGGQPAH.js";
|
|
18
18
|
import "./chunk-FOLA4EUJ.js";
|
|
19
19
|
import "./chunk-N7ANFMA5.js";
|
|
20
20
|
import "./chunk-TYY5TYHF.js";
|
|
@@ -23,7 +23,7 @@ import "./chunk-FQLCD4HU.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-7IRXUPM2.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-WTBC6VYO.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
ArgumentError,
|
|
11
11
|
one
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Y6NFETNG.js";
|
|
13
13
|
|
|
14
14
|
// src/git/worktrees/create.ts
|
|
15
15
|
import { existsSync, symlinkSync } from "fs";
|
|
@@ -86,4 +86,4 @@ var worktreeCreate = (setup, context, report) => {
|
|
|
86
86
|
export {
|
|
87
87
|
worktreeCreate
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=worktree-create-
|
|
89
|
+
//# sourceMappingURL=worktree-create-FTSLMZWS.js.map
|