@modootoday/pmcp 0.22.1 → 0.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +1 -1
- package/dist/{apply-VMOFDOCN.js → apply-CYVC5LDG.js} +15 -14
- package/dist/{broadcast-ZALGUJVR.js → broadcast-DZGMSZRG.js} +3 -3
- package/dist/{chunk-57Q75MS4.js → chunk-5QKXEWDB.js} +2 -2
- package/dist/{chunk-5YCKFU5Q.js → chunk-7DYWCQVB.js} +1 -1
- package/dist/{chunk-MR5IBS6L.js → chunk-7I7O7ZNT.js} +41 -10
- package/dist/{chunk-ALX7BECI.js → chunk-7LUYI7QM.js} +2 -2
- package/dist/{chunk-M5LC5TKQ.js → chunk-7Q3AIS4Q.js} +2 -2
- package/dist/{chunk-7FV2LORT.js → chunk-B2WRYGHJ.js} +4 -3
- package/dist/{chunk-P2LJADGI.js → chunk-CALWIRAI.js} +14 -14
- package/dist/{chunk-2GI5RM3M.js → chunk-CILQCERV.js} +2 -2
- package/dist/{chunk-XYEI7KRO.js → chunk-ESCOMAPX.js} +3 -3
- package/dist/{chunk-GBKRDRMZ.js → chunk-FE7WOHZM.js} +17 -5
- package/dist/{chunk-D5BLJIAA.js → chunk-HV52EUSL.js} +9 -9
- package/dist/{chunk-GRRURNVA.js → chunk-ICZH4NFR.js} +5 -5
- package/dist/chunk-JTRFZQTB.js +7 -0
- package/dist/{chunk-3W2GELNR.js → chunk-JUG4W7RF.js} +2 -2
- package/dist/{chunk-6HCEEC6V.js → chunk-MLGXDSHZ.js} +17 -15
- package/dist/{chunk-TMXWSGXH.js → chunk-MQMWVJZB.js} +3 -3
- package/dist/{chunk-3TS3CX3R.js → chunk-MZF7VOQA.js} +2 -2
- package/dist/{chunk-SB6X342E.js → chunk-NQFULJZC.js} +3 -3
- package/dist/{chunk-V6LLHO4S.js → chunk-ONYZIC2F.js} +7 -7
- package/dist/{chunk-DPVLHB3K.js → chunk-PR2RBEXI.js} +2 -2
- package/dist/{chunk-XWAE3VEQ.js → chunk-RZZZHQCE.js} +2 -2
- package/dist/{chunk-UVGW56SY.js → chunk-ULFV3EIZ.js} +27 -7
- package/dist/{chunk-FHK5BE2D.js → chunk-UQNRGU3V.js} +2 -2
- package/dist/{chunk-NYA4GX44.js → chunk-V7LZTVWS.js} +2 -2
- package/dist/{chunk-OKMWYNZF.js → chunk-WPX4ONFT.js} +24 -7
- package/dist/chunk-XWLMZKH2.js +12 -0
- package/dist/{cli-6FWRBCWM.js → cli-34EDFXJA.js} +8 -8
- package/dist/{cli-BEEDAD4E.js → cli-A6HKRICM.js} +4 -4
- package/dist/cli.js +3 -3
- package/dist/{completion-XA7SR2OU.js → completion-FDLVWLAC.js} +2 -2
- package/dist/{diagnostics-AYSD3454.js → diagnostics-DYLW7WYV.js} +7 -5
- package/dist/{doctor-PDLZL4BR.js → doctor-FRQ5H5FU.js} +21 -14
- package/dist/{entry-5CKOI3QK.js → entry-XPZZNQ4L.js} +11 -9
- package/dist/{exec-mcp-EJZVPVU5.js → exec-mcp-HOM2ZANM.js} +12 -11
- package/dist/{harness-VMQJY3KY.js → harness-WIGJRE5P.js} +3 -3
- package/dist/harness-launch-gate.js +5 -3
- package/dist/harness-worker.js +7 -5
- package/dist/hook-body.js +189 -76
- package/dist/{hook-spec-hZL4MSgi.d.ts → hook-spec-Bd24eo2L.d.ts} +1 -0
- package/dist/{hooks-SKD67KMA.js → hooks-MIF3FONJ.js} +4 -4
- package/dist/{host-GY2LFEZX.js → host-CE5TW5SC.js} +12 -11
- package/dist/{host-4BA3LM7Z.js → host-JKZLOCZS.js} +8 -6
- package/dist/{host-run-X3VDTIQ2.js → host-run-MJGJ7NVE.js} +6 -4
- package/dist/http.js +1 -1
- package/dist/{import-mcp-G2VTD5KR.js → import-mcp-T3GZYEE5.js} +11 -10
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -15
- package/dist/{init-JEK3QUAK.js → init-D5VPDF2B.js} +2 -2
- package/dist/{invoke-7BUFBFJU.js → invoke-HEAOQLFQ.js} +9 -7
- package/dist/{list-D3Y3TIC6.js → list-PCLCFG2J.js} +11 -10
- package/dist/{logout-T4JLFE2D.js → logout-3ZXFXKHB.js} +10 -9
- package/dist/{logs-74JGLQG6.js → logs-UHJM7ZCL.js} +3 -3
- package/dist/{mailbox-VK5AVTHI.js → mailbox-NIMBOQPA.js} +3 -3
- package/dist/{mainline-Q42M2GJ2.js → mainline-6CTSVOWP.js} +63 -29
- package/dist/{mcp-GPIHVL65.js → mcp-T6PYHRUL.js} +2 -2
- package/dist/{pause-CZ2OZYLC.js → pause-CBZ3BTJL.js} +3 -3
- package/dist/project/hook-adapter.d.ts +1 -1
- package/dist/{project-6QRKXOMM.js → project-H4R3Q3QO.js} +7 -7
- package/dist/{report-Z3JV2PCT.js → report-ZHOHQ4PZ.js} +3 -3
- package/dist/{resume-DFIHT2RO.js → resume-UJEWQ66P.js} +3 -3
- package/dist/{run-YHOLKUYB.js → run-FMTHUOAZ.js} +4 -4
- package/dist/{run-MVP22ENA.js → run-V74M7PZK.js} +9 -8
- package/dist/{serve-EAESQK2I.js → serve-JKNEC4AX.js} +3 -3
- package/dist/{setup-3GET6K3J.js → setup-HYEYYVDU.js} +3 -3
- package/dist/{smoke-FQQJOQBD.js → smoke-UA7VVDKD.js} +4 -3
- package/dist/{start-login-K3TAZ3IH.js → start-login-JRMVLK5J.js} +10 -9
- package/dist/{status-25DRPV7U.js → status-6273XFHT.js} +10 -9
- package/dist/{status-3RTGDN2K.js → status-KN2ZE64O.js} +3 -3
- package/dist/{status-DPPNTGHB.js → status-RG2GFDQU.js} +12 -11
- package/dist/stdio.js +2 -2
- package/dist/{sweep-EPJMEZR6.js → sweep-EPZCW63Q.js} +3 -3
- package/dist/{test-I2V5AMQF.js → test-M365FK5N.js} +23 -15
- package/dist/{tui-VCEN2L5I.js → tui-PKPYE76A.js} +4 -4
- package/dist/{unbroadcast-NTOC3PY3.js → unbroadcast-N6LXHAMT.js} +3 -3
- package/dist/{worker-NPQFYEBU.js → worker-C23EAPCY.js} +9 -7
- package/docs/commands.md +1 -1
- package/docs/git-workflow.md +21 -12
- package/docs/hooks.md +7 -1
- package/docs/project-configuration.md +1 -0
- package/docs/upgrading.md +13 -0
- package/gemini-extension.json +2 -2
- package/mcp.json +1 -1
- package/package.json +5 -5
- package/plugin.json +1 -1
- package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
- package/plugins/pmcp/.mcp.json +1 -1
- package/plugins/pmcp/gemini-extension.json +2 -2
- package/plugins/pmcp/mcp.json +1 -1
- package/plugins/pmcp/mod/commands.ts +10 -4
- package/plugins/pmcp/mod/host.ts +17 -1
- package/plugins/pmcp/mod/reader/read.ts +3 -1
- package/plugins/pmcp/mod/reader/types.ts +2 -0
- package/plugins/pmcp/mod/register.tsx +2 -1
- package/plugins/pmcp/mod/snapshot.ts +1 -0
- package/plugins/pmcp/mod/state.ts +1 -0
- package/plugins/pmcp/plugin.json +1 -1
- package/dist/chunk-ACHBHIGD.js +0 -7
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
gateTreePath,
|
|
33
33
|
leaseSpecs
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FE7WOHZM.js";
|
|
35
35
|
import {
|
|
36
36
|
detect
|
|
37
37
|
} from "./chunk-2Q6MNGU5.js";
|
|
38
38
|
import {
|
|
39
39
|
createFilesStore
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-7I7O7ZNT.js";
|
|
41
41
|
import "./chunk-Z6WRFOFT.js";
|
|
42
42
|
import {
|
|
43
43
|
git,
|
|
@@ -51,6 +51,9 @@ import "./chunk-IJBSOWHK.js";
|
|
|
51
51
|
import "./chunk-GJXOFDJT.js";
|
|
52
52
|
import "./chunk-PMJG2CXF.js";
|
|
53
53
|
|
|
54
|
+
// src/git/cli/mainline.ts
|
|
55
|
+
import { join as join8 } from "path";
|
|
56
|
+
|
|
54
57
|
// src/git/mainline/deliver.ts
|
|
55
58
|
import { readFileSync as readFileSync2 } from "fs";
|
|
56
59
|
import { dirname as dirname3, join as join5 } from "path";
|
|
@@ -61,8 +64,11 @@ import {
|
|
|
61
64
|
existsSync,
|
|
62
65
|
mkdirSync,
|
|
63
66
|
readdirSync,
|
|
67
|
+
renameSync,
|
|
64
68
|
rmSync,
|
|
65
|
-
|
|
69
|
+
statSync,
|
|
70
|
+
symlinkSync,
|
|
71
|
+
writeFileSync
|
|
66
72
|
} from "fs";
|
|
67
73
|
import { dirname, join } from "path";
|
|
68
74
|
function gateTree(tree) {
|
|
@@ -128,16 +134,30 @@ function prepareGateTree(mainRoot, tree, tip, links, report) {
|
|
|
128
134
|
}
|
|
129
135
|
return null;
|
|
130
136
|
}
|
|
131
|
-
var
|
|
132
|
-
|
|
133
|
-
|
|
137
|
+
var KEEP_TIPS = 20;
|
|
138
|
+
var TIP = /^[0-9a-f]{40,64}$/u;
|
|
139
|
+
function gateLog(dir, tip, keep = KEEP_TIPS) {
|
|
140
|
+
const logs = join(dir, tip);
|
|
141
|
+
if (!existsSync(logs)) {
|
|
142
|
+
mkdirSync(logs, { recursive: true });
|
|
143
|
+
const tips = readdirSync(dir, { withFileTypes: true }).filter((entry) => entry.isDirectory() && TIP.test(entry.name)).map((entry) => ({
|
|
144
|
+
name: entry.name,
|
|
145
|
+
at: statSync(join(dir, entry.name)).mtimeMs
|
|
146
|
+
})).sort((a, b) => b.at - a.at || a.name.localeCompare(b.name));
|
|
147
|
+
for (const old of tips.slice(Math.max(1, keep)))
|
|
148
|
+
if (old.name !== tip)
|
|
149
|
+
rmSync(join(dir, old.name), { recursive: true, force: true });
|
|
150
|
+
}
|
|
151
|
+
const runs = readdirSync(logs).filter((name2) => name2.endsWith(".log")).length;
|
|
134
152
|
const stamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/gu, "-");
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
153
|
+
const name = `${stamp}-${runs + 1}.log`;
|
|
154
|
+
const temporary = join(logs, `latest.${process.pid}.tmp`);
|
|
155
|
+
writeFileSync(temporary, `${name}
|
|
156
|
+
`);
|
|
157
|
+
renameSync(temporary, join(logs, "latest"));
|
|
158
|
+
return { log: join(logs, name), logs };
|
|
139
159
|
}
|
|
140
|
-
function runGate(mainRoot, tree, tip, command, links, report, lockEnv,
|
|
160
|
+
function runGate(mainRoot, tree, tip, command, links, report, lockEnv, logDir2, restore = false, keep = KEEP_TIPS) {
|
|
141
161
|
const problem = prepareGateTree(
|
|
142
162
|
mainRoot,
|
|
143
163
|
tree,
|
|
@@ -147,9 +167,9 @@ function runGate(mainRoot, tree, tip, command, links, report, lockEnv, logDir =
|
|
|
147
167
|
);
|
|
148
168
|
if (problem !== null) {
|
|
149
169
|
report.warn(`the gate did not run: ${problem}`);
|
|
150
|
-
return { code: 1, log: null };
|
|
170
|
+
return { code: 1, log: null, logs: null };
|
|
151
171
|
}
|
|
152
|
-
const log = gateLog(
|
|
172
|
+
const { log, logs } = gateLog(logDir2, tip, keep);
|
|
153
173
|
report.info(`gate on ${tip.slice(0, 10)} in ${tree}; gate log: ${log}`);
|
|
154
174
|
const code = runCommandLogged(command, tree, log, {
|
|
155
175
|
PMCP_GATE_TIP: tip,
|
|
@@ -158,7 +178,7 @@ function runGate(mainRoot, tree, tip, command, links, report, lockEnv, logDir =
|
|
|
158
178
|
});
|
|
159
179
|
if (code !== 0)
|
|
160
180
|
report.warn(`the gate failed (exit ${code}); full gate log: ${log}`);
|
|
161
|
-
return { code, log };
|
|
181
|
+
return { code, log, logs };
|
|
162
182
|
}
|
|
163
183
|
|
|
164
184
|
// src/git/mainline/lock.ts
|
|
@@ -169,7 +189,7 @@ import {
|
|
|
169
189
|
openSync,
|
|
170
190
|
readFileSync,
|
|
171
191
|
rmSync as rmSync2,
|
|
172
|
-
writeFileSync
|
|
192
|
+
writeFileSync as writeFileSync2
|
|
173
193
|
} from "fs";
|
|
174
194
|
import { dirname as dirname2, join as join2 } from "path";
|
|
175
195
|
function flock(fd, args) {
|
|
@@ -219,7 +239,7 @@ function writeHolder(lockPath, holder) {
|
|
|
219
239
|
pid: process.pid,
|
|
220
240
|
startedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
221
241
|
};
|
|
222
|
-
|
|
242
|
+
writeFileSync2(holderFile(lockPath), `${JSON.stringify(record)}
|
|
223
243
|
`);
|
|
224
244
|
}
|
|
225
245
|
function removeHolder(lockPath) {
|
|
@@ -396,13 +416,16 @@ function push(options, tip, preHook) {
|
|
|
396
416
|
};
|
|
397
417
|
const args = ["push", ctx.remote, `${tip}:refs/heads/${ctx.mainline}`];
|
|
398
418
|
if (!preHook) return git(ctx.root, args, env);
|
|
399
|
-
const
|
|
400
|
-
const log = gateLog(dir, tip);
|
|
419
|
+
const { log, logs } = gateLog(logDir(options), tip, options.gate?.logKeep);
|
|
401
420
|
report.info(`the pre-push hook gates ${tip.slice(0, 10)}; gate log: ${log}`);
|
|
402
421
|
const status = runCommandLogged(["git", ...args], ctx.root, log, env);
|
|
403
|
-
if (options.track)
|
|
422
|
+
if (options.track)
|
|
423
|
+
options.track.gate = { exit: status, log, logs, by: "pre-push" };
|
|
404
424
|
return { status, stdout: "", stderr: "" };
|
|
405
425
|
}
|
|
426
|
+
function logDir(options) {
|
|
427
|
+
return options.gate?.logDir ?? options.logDir ?? join5(dirname3(gateTree(options.tree).tree), "gate-logs");
|
|
428
|
+
}
|
|
406
429
|
function attempts(options) {
|
|
407
430
|
const { ctx, report } = options;
|
|
408
431
|
const { lock, tree } = gateTree(options.tree);
|
|
@@ -443,11 +466,17 @@ function attempts(options) {
|
|
|
443
466
|
options.links,
|
|
444
467
|
report,
|
|
445
468
|
options.gate?.lockEnv,
|
|
446
|
-
options
|
|
447
|
-
options.umask !== void 0
|
|
469
|
+
logDir(options),
|
|
470
|
+
options.umask !== void 0,
|
|
471
|
+
options.gate?.logKeep
|
|
448
472
|
);
|
|
449
473
|
if (options.track)
|
|
450
|
-
options.track.gate = {
|
|
474
|
+
options.track.gate = {
|
|
475
|
+
exit: run.code,
|
|
476
|
+
log: run.log,
|
|
477
|
+
logs: run.logs,
|
|
478
|
+
by: "command"
|
|
479
|
+
};
|
|
451
480
|
if (run.code !== 0) {
|
|
452
481
|
report.warn("the gate failed; nothing was pushed");
|
|
453
482
|
return 1;
|
|
@@ -698,8 +727,11 @@ function deliveryEvents(setup) {
|
|
|
698
727
|
}
|
|
699
728
|
|
|
700
729
|
// src/git/mainline/store.ts
|
|
701
|
-
function filesSessionGate(stateDir, leaseFiles = {}) {
|
|
702
|
-
const store = createFilesStore(stateDir, {
|
|
730
|
+
function filesSessionGate(stateDir, leaseFiles = {}, pauseFile) {
|
|
731
|
+
const store = createFilesStore(stateDir, {
|
|
732
|
+
leaseFiles,
|
|
733
|
+
...pauseFile ? { pauseFile } : {}
|
|
734
|
+
});
|
|
703
735
|
return {
|
|
704
736
|
pause: store.pause,
|
|
705
737
|
leases: {
|
|
@@ -724,7 +756,7 @@ import {
|
|
|
724
756
|
mkdtempSync as mkdtempSync2,
|
|
725
757
|
openSync as openSync2,
|
|
726
758
|
readFileSync as readFileSync3,
|
|
727
|
-
renameSync,
|
|
759
|
+
renameSync as renameSync2,
|
|
728
760
|
rmSync as rmSync4
|
|
729
761
|
} from "fs";
|
|
730
762
|
import { join as join6 } from "path";
|
|
@@ -804,7 +836,7 @@ function resetKeepingIdenticalFiles(cwd, target) {
|
|
|
804
836
|
copyFileSync(scratch, lock);
|
|
805
837
|
closeSync2(fd);
|
|
806
838
|
fd = void 0;
|
|
807
|
-
|
|
839
|
+
renameSync2(lock, index);
|
|
808
840
|
rmSync4(temporary, { recursive: true, force: true });
|
|
809
841
|
return moved;
|
|
810
842
|
} catch (error) {
|
|
@@ -981,7 +1013,7 @@ function deskSync(setup, report) {
|
|
|
981
1013
|
return syncDesk({
|
|
982
1014
|
ctx: setup.ctx,
|
|
983
1015
|
followSubmodules: config.submodules?.follow === "clean_pins",
|
|
984
|
-
store: filesSessionGate(setup.stateDir, setup.leaseFiles),
|
|
1016
|
+
store: filesSessionGate(setup.stateDir, setup.leaseFiles, setup.pauseFile),
|
|
985
1017
|
leases: leaseSpecs(config),
|
|
986
1018
|
report,
|
|
987
1019
|
...install2 === void 0 ? {} : { install: install2 },
|
|
@@ -1058,9 +1090,11 @@ var mainlineDeliver = (setup, context, report) => {
|
|
|
1058
1090
|
deliver: settings,
|
|
1059
1091
|
...config.gate === void 0 ? {} : { gate: config.gate },
|
|
1060
1092
|
tree: gateTreePath(setup),
|
|
1093
|
+
// Gate output lives in the state dir whatever the gate tree is, unless log_dir says.
|
|
1094
|
+
logDir: join8(setup.stateDir, "gate-logs"),
|
|
1061
1095
|
links: config.worktrees?.linkFromMain ?? [],
|
|
1062
1096
|
leases: leaseSpecs(config),
|
|
1063
|
-
store: filesSessionGate(setup.stateDir, setup.leaseFiles),
|
|
1097
|
+
store: filesSessionGate(setup.stateDir, setup.leaseFiles, setup.pauseFile),
|
|
1064
1098
|
duringPause: context.args.flags.has("during-pause"),
|
|
1065
1099
|
noPush: context.args.flags.has("no-push"),
|
|
1066
1100
|
afterDeliver,
|
|
@@ -1079,4 +1113,4 @@ export {
|
|
|
1079
1113
|
mainlineDeliver,
|
|
1080
1114
|
mainlineSync
|
|
1081
1115
|
};
|
|
1082
|
-
//# sourceMappingURL=mainline-
|
|
1116
|
+
//# sourceMappingURL=mainline-6CTSVOWP.js.map
|
|
@@ -5,11 +5,11 @@ import "./chunk-XNML2KIC.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-FMTHUOAZ.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-T6PYHRUL.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
change
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-B2WRYGHJ.js";
|
|
4
|
+
import "./chunk-7I7O7ZNT.js";
|
|
5
5
|
import "./chunk-Z6WRFOFT.js";
|
|
6
6
|
import "./chunk-A4PKLESO.js";
|
|
7
7
|
import "./chunk-OEH47H6A.js";
|
|
@@ -14,4 +14,4 @@ var run = (context) => change(context, "pause");
|
|
|
14
14
|
export {
|
|
15
15
|
run
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=pause-
|
|
17
|
+
//# sourceMappingURL=pause-CBZ3BTJL.js.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ProjectError
|
|
3
|
-
} from "./chunk-NRBQK6UX.js";
|
|
4
1
|
import {
|
|
5
2
|
projectSpec
|
|
6
3
|
} from "./chunk-RHJEGLYM.js";
|
|
@@ -12,6 +9,9 @@ import {
|
|
|
12
9
|
one
|
|
13
10
|
} from "./chunk-A4PKLESO.js";
|
|
14
11
|
import "./chunk-V4NPDK6X.js";
|
|
12
|
+
import {
|
|
13
|
+
ProjectError
|
|
14
|
+
} from "./chunk-NRBQK6UX.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/project.ts
|
|
17
17
|
async function route(context, verb, name) {
|
|
@@ -19,7 +19,7 @@ async function route(context, verb, name) {
|
|
|
19
19
|
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
20
|
throw new ArgumentError("exec-mcp takes only a declared MCP alias");
|
|
21
21
|
}
|
|
22
|
-
const { runExecMcp } = await import("./exec-mcp-
|
|
22
|
+
const { runExecMcp } = await import("./exec-mcp-HOM2ZANM.js");
|
|
23
23
|
return await runExecMcp(context, name);
|
|
24
24
|
}
|
|
25
25
|
if (verb === "import-mcp") {
|
|
@@ -28,13 +28,13 @@ async function route(context, verb, name) {
|
|
|
28
28
|
"import-mcp takes --source, --name and --write; no positional name or --check"
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
const { importMcp } = await import("./import-mcp-
|
|
31
|
+
const { importMcp } = await import("./import-mcp-T3GZYEE5.js");
|
|
32
32
|
return importMcp(context);
|
|
33
33
|
}
|
|
34
34
|
if (many(context.args, "source").length > 0 || one(context.args, "name") !== void 0 || context.args.flags.has("write")) {
|
|
35
35
|
throw new ArgumentError("--source, --name and --write require import-mcp");
|
|
36
36
|
}
|
|
37
|
-
const apply = await import("./apply-
|
|
37
|
+
const apply = await import("./apply-CYVC5LDG.js");
|
|
38
38
|
if (verb === void 0) return apply.projectOrCheck(context);
|
|
39
39
|
if (context.args.flags.has("check")) {
|
|
40
40
|
throw new ArgumentError("--check takes no subcommand");
|
|
@@ -67,4 +67,4 @@ var projectCommand = {
|
|
|
67
67
|
export {
|
|
68
68
|
projectCommand
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=project-
|
|
70
|
+
//# sourceMappingURL=project-H4R3Q3QO.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
logLocation,
|
|
3
3
|
parseSince,
|
|
4
4
|
readLogs
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5QKXEWDB.js";
|
|
6
6
|
import {
|
|
7
7
|
configFrom
|
|
8
8
|
} from "./chunk-RPCIROW7.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
wouldRefuse
|
|
14
14
|
} from "./chunk-LFFIQBNY.js";
|
|
15
15
|
import "./chunk-HQOB7OQS.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-7I7O7ZNT.js";
|
|
17
17
|
import "./chunk-Z6WRFOFT.js";
|
|
18
18
|
import {
|
|
19
19
|
ArgumentError,
|
|
@@ -102,4 +102,4 @@ async function run(context) {
|
|
|
102
102
|
export {
|
|
103
103
|
run
|
|
104
104
|
};
|
|
105
|
-
//# sourceMappingURL=report-
|
|
105
|
+
//# sourceMappingURL=report-ZHOHQ4PZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
change
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-B2WRYGHJ.js";
|
|
4
|
+
import "./chunk-7I7O7ZNT.js";
|
|
5
5
|
import "./chunk-Z6WRFOFT.js";
|
|
6
6
|
import "./chunk-A4PKLESO.js";
|
|
7
7
|
import "./chunk-OEH47H6A.js";
|
|
@@ -14,4 +14,4 @@ var run = (context) => change(context, "resume");
|
|
|
14
14
|
export {
|
|
15
15
|
run
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=resume-
|
|
17
|
+
//# sourceMappingURL=resume-UJEWQ66P.js.map
|
|
@@ -9,11 +9,11 @@ async function executeMcpCommand(context) {
|
|
|
9
9
|
throw new ArgumentError("Use pmcp mcp <login|logout|status> <name>");
|
|
10
10
|
if (context.args.flags.has("json") && verb !== "status")
|
|
11
11
|
throw new ArgumentError("--json requires mcp status");
|
|
12
|
-
if (verb === "status") return (await import("./status-
|
|
13
|
-
if (verb === "logout") return (await import("./logout-
|
|
14
|
-
return (await import("./start-login-
|
|
12
|
+
if (verb === "status") return (await import("./status-6273XFHT.js")).run(context);
|
|
13
|
+
if (verb === "logout") return (await import("./logout-3ZXFXKHB.js")).run(context);
|
|
14
|
+
return (await import("./start-login-JRMVLK5J.js")).run(context);
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
17
|
executeMcpCommand
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=run-
|
|
19
|
+
//# sourceMappingURL=run-FMTHUOAZ.js.map
|
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSpec
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MLGXDSHZ.js";
|
|
4
4
|
import "./chunk-UKR64U7J.js";
|
|
5
5
|
import "./chunk-XZ2TDH3J.js";
|
|
6
6
|
import "./chunk-KUBHGVTD.js";
|
|
7
7
|
import "./chunk-EATCUWGG.js";
|
|
8
8
|
import "./chunk-OFJIMBTL.js";
|
|
9
|
-
import "./chunk-NRBQK6UX.js";
|
|
10
9
|
import "./chunk-LFFIQBNY.js";
|
|
11
10
|
import "./chunk-HQOB7OQS.js";
|
|
12
11
|
import "./chunk-73AKO4UL.js";
|
|
13
12
|
import "./chunk-P6LNYYYH.js";
|
|
14
13
|
import {
|
|
15
14
|
readGitConfig
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FE7WOHZM.js";
|
|
17
16
|
import {
|
|
18
17
|
detect
|
|
19
18
|
} from "./chunk-2Q6MNGU5.js";
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-7I7O7ZNT.js";
|
|
21
20
|
import "./chunk-Z6WRFOFT.js";
|
|
22
21
|
import "./chunk-G7JONWL4.js";
|
|
23
22
|
import "./chunk-Q5H3L6Y4.js";
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-7DYWCQVB.js";
|
|
25
24
|
import {
|
|
26
25
|
ArgumentError,
|
|
27
26
|
one
|
|
28
27
|
} from "./chunk-A4PKLESO.js";
|
|
29
28
|
import "./chunk-V4NPDK6X.js";
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-ULFV3EIZ.js";
|
|
30
|
+
import "./chunk-NRBQK6UX.js";
|
|
31
31
|
import "./chunk-OEH47H6A.js";
|
|
32
32
|
import "./chunk-IJBSOWHK.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-XWLMZKH2.js";
|
|
34
|
+
import "./chunk-JTRFZQTB.js";
|
|
34
35
|
import {
|
|
35
36
|
readConfig
|
|
36
37
|
} from "./chunk-GJXOFDJT.js";
|
|
@@ -127,4 +128,4 @@ function run(context) {
|
|
|
127
128
|
export {
|
|
128
129
|
run
|
|
129
130
|
};
|
|
130
|
-
//# sourceMappingURL=run-
|
|
131
|
+
//# sourceMappingURL=run-V74M7PZK.js.map
|
|
@@ -19,7 +19,7 @@ import "./chunk-73AKO4UL.js";
|
|
|
19
19
|
import {
|
|
20
20
|
serve,
|
|
21
21
|
serveWithMailbox
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-V7LZTVWS.js";
|
|
23
23
|
import {
|
|
24
24
|
serveSpec
|
|
25
25
|
} from "./chunk-LLT5FQBE.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
one
|
|
31
31
|
} from "./chunk-A4PKLESO.js";
|
|
32
32
|
import "./chunk-ISZOLR3D.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-JUG4W7RF.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-JKNEC4AX.js.map
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
gateTreePath,
|
|
3
3
|
leaseSpecs,
|
|
4
4
|
loadGit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FE7WOHZM.js";
|
|
6
6
|
import "./chunk-2Q6MNGU5.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-7I7O7ZNT.js";
|
|
8
8
|
import "./chunk-Z6WRFOFT.js";
|
|
9
9
|
import "./chunk-G7JONWL4.js";
|
|
10
10
|
import "./chunk-OEH47H6A.js";
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
leaseSpecs,
|
|
17
17
|
loadGit
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=setup-
|
|
19
|
+
//# sourceMappingURL=setup-HYEYYVDU.js.map
|
|
@@ -2,10 +2,11 @@ import {
|
|
|
2
2
|
printSmoke,
|
|
3
3
|
run,
|
|
4
4
|
runSmoke
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CILQCERV.js";
|
|
6
6
|
import "./chunk-RPCIROW7.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-7DYWCQVB.js";
|
|
8
8
|
import "./chunk-A4PKLESO.js";
|
|
9
|
+
import "./chunk-XWLMZKH2.js";
|
|
9
10
|
import "./chunk-GJXOFDJT.js";
|
|
10
11
|
import "./chunk-PMJG2CXF.js";
|
|
11
12
|
export {
|
|
@@ -13,4 +14,4 @@ export {
|
|
|
13
14
|
run,
|
|
14
15
|
runSmoke
|
|
15
16
|
};
|
|
16
|
-
//# sourceMappingURL=smoke-
|
|
17
|
+
//# sourceMappingURL=smoke-UA7VVDKD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MZF7VOQA.js";
|
|
4
4
|
import {
|
|
5
5
|
storeBearer,
|
|
6
6
|
tokenRequest,
|
|
@@ -14,36 +14,37 @@ import {
|
|
|
14
14
|
writeCredentials
|
|
15
15
|
} from "./chunk-UPQTAHUK.js";
|
|
16
16
|
import "./chunk-RPCIROW7.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-MLGXDSHZ.js";
|
|
18
18
|
import "./chunk-UKR64U7J.js";
|
|
19
19
|
import "./chunk-XZ2TDH3J.js";
|
|
20
20
|
import "./chunk-KUBHGVTD.js";
|
|
21
21
|
import "./chunk-EATCUWGG.js";
|
|
22
22
|
import "./chunk-OFJIMBTL.js";
|
|
23
|
-
import "./chunk-NRBQK6UX.js";
|
|
24
23
|
import "./chunk-LFFIQBNY.js";
|
|
25
24
|
import "./chunk-HQOB7OQS.js";
|
|
26
25
|
import "./chunk-73AKO4UL.js";
|
|
27
26
|
import "./chunk-P6LNYYYH.js";
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-FE7WOHZM.js";
|
|
29
28
|
import "./chunk-2Q6MNGU5.js";
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-7I7O7ZNT.js";
|
|
31
30
|
import "./chunk-Z6WRFOFT.js";
|
|
32
31
|
import "./chunk-G7JONWL4.js";
|
|
33
32
|
import {
|
|
34
33
|
McpAuthError,
|
|
35
34
|
safeEndpoint
|
|
36
35
|
} from "./chunk-Q5H3L6Y4.js";
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-7DYWCQVB.js";
|
|
38
37
|
import {
|
|
39
38
|
ArgumentError,
|
|
40
39
|
one
|
|
41
40
|
} from "./chunk-A4PKLESO.js";
|
|
42
41
|
import "./chunk-V4NPDK6X.js";
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-ULFV3EIZ.js";
|
|
43
|
+
import "./chunk-NRBQK6UX.js";
|
|
44
44
|
import "./chunk-OEH47H6A.js";
|
|
45
45
|
import "./chunk-IJBSOWHK.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-XWLMZKH2.js";
|
|
47
|
+
import "./chunk-JTRFZQTB.js";
|
|
47
48
|
import "./chunk-GJXOFDJT.js";
|
|
48
49
|
import "./chunk-PMJG2CXF.js";
|
|
49
50
|
import "./chunk-J6KL3COD.js";
|
|
@@ -417,4 +418,4 @@ async function run(context) {
|
|
|
417
418
|
export {
|
|
418
419
|
run
|
|
419
420
|
};
|
|
420
|
-
//# sourceMappingURL=start-login-
|
|
421
|
+
//# sourceMappingURL=start-login-JRMVLK5J.js.map
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MZF7VOQA.js";
|
|
4
4
|
import {
|
|
5
5
|
status
|
|
6
6
|
} from "./chunk-UPQTAHUK.js";
|
|
7
7
|
import "./chunk-RPCIROW7.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-MLGXDSHZ.js";
|
|
9
9
|
import "./chunk-UKR64U7J.js";
|
|
10
10
|
import "./chunk-XZ2TDH3J.js";
|
|
11
11
|
import "./chunk-KUBHGVTD.js";
|
|
12
12
|
import "./chunk-EATCUWGG.js";
|
|
13
13
|
import "./chunk-OFJIMBTL.js";
|
|
14
|
-
import "./chunk-NRBQK6UX.js";
|
|
15
14
|
import "./chunk-LFFIQBNY.js";
|
|
16
15
|
import "./chunk-HQOB7OQS.js";
|
|
17
16
|
import "./chunk-73AKO4UL.js";
|
|
18
17
|
import "./chunk-P6LNYYYH.js";
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-FE7WOHZM.js";
|
|
20
19
|
import "./chunk-2Q6MNGU5.js";
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-7I7O7ZNT.js";
|
|
22
21
|
import "./chunk-Z6WRFOFT.js";
|
|
23
22
|
import "./chunk-G7JONWL4.js";
|
|
24
23
|
import "./chunk-Q5H3L6Y4.js";
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-7DYWCQVB.js";
|
|
26
25
|
import "./chunk-A4PKLESO.js";
|
|
27
26
|
import "./chunk-V4NPDK6X.js";
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-ULFV3EIZ.js";
|
|
28
|
+
import "./chunk-NRBQK6UX.js";
|
|
29
29
|
import "./chunk-OEH47H6A.js";
|
|
30
30
|
import "./chunk-IJBSOWHK.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-XWLMZKH2.js";
|
|
32
|
+
import "./chunk-JTRFZQTB.js";
|
|
32
33
|
import "./chunk-GJXOFDJT.js";
|
|
33
34
|
import "./chunk-PMJG2CXF.js";
|
|
34
35
|
import "./chunk-J6KL3COD.js";
|
|
@@ -44,4 +45,4 @@ function run(context) {
|
|
|
44
45
|
export {
|
|
45
46
|
run
|
|
46
47
|
};
|
|
47
|
-
//# sourceMappingURL=status-
|
|
48
|
+
//# sourceMappingURL=status-6273XFHT.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MVFH26QT.js";
|
|
4
4
|
import {
|
|
5
5
|
storeFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B2WRYGHJ.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionSnapshot
|
|
9
9
|
} from "./chunk-JGJ4INEN.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import "./chunk-NHUMPEPV.js";
|
|
18
18
|
import "./chunk-TIA4SPU2.js";
|
|
19
19
|
import "./chunk-OFJIMBTL.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-7I7O7ZNT.js";
|
|
21
21
|
import "./chunk-Z6WRFOFT.js";
|
|
22
22
|
import "./chunk-A4PKLESO.js";
|
|
23
23
|
import "./chunk-OEH47H6A.js";
|
|
@@ -51,4 +51,4 @@ function status(context) {
|
|
|
51
51
|
export {
|
|
52
52
|
status
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=status-
|
|
54
|
+
//# sourceMappingURL=status-KN2ZE64O.js.map
|