@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
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
// src/cli/suggest.ts
|
|
2
|
+
function distance(a, b) {
|
|
3
|
+
const row = Array.from({ length: b.length + 1 }, (_, j) => j);
|
|
4
|
+
for (let i = 1; i <= a.length; i += 1) {
|
|
5
|
+
let diagonal = row[0];
|
|
6
|
+
row[0] = i;
|
|
7
|
+
for (let j = 1; j <= b.length; j += 1) {
|
|
8
|
+
const above = row[j];
|
|
9
|
+
const cost = a[i - 1] === b[j - 1] ? 0 : 1;
|
|
10
|
+
row[j] = Math.min(above + 1, row[j - 1] + 1, diagonal + cost);
|
|
11
|
+
diagonal = above;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return row[b.length];
|
|
15
|
+
}
|
|
16
|
+
function closest(word, candidates) {
|
|
17
|
+
const limit = word.length <= 3 ? 1 : 2;
|
|
18
|
+
let best;
|
|
19
|
+
let bestDistance = limit + 1;
|
|
20
|
+
for (const candidate of candidates) {
|
|
21
|
+
const d = distance(word, candidate);
|
|
22
|
+
if (d < bestDistance) {
|
|
23
|
+
best = candidate;
|
|
24
|
+
bestDistance = d;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (best !== void 0) return best;
|
|
28
|
+
return candidates.find(
|
|
29
|
+
(candidate) => word.length >= 3 && candidate.startsWith(word)
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function didYouMean(word, candidates, format = (candidate) => `"${candidate}"`) {
|
|
33
|
+
const match = closest(word, candidates);
|
|
34
|
+
return match === void 0 ? "" : `; did you mean ${format(match)}?`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// src/cli/command.ts
|
|
38
|
+
var EXIT = {
|
|
39
|
+
ok: 0,
|
|
40
|
+
failure: 1,
|
|
41
|
+
usage: 2,
|
|
42
|
+
missingOptional: 3,
|
|
43
|
+
// A check ran and found differences: drift, stale outputs, a failed fixture, a budget over.
|
|
44
|
+
differences: 4,
|
|
45
|
+
// Not run because the host stayed busy; nothing changed, so a retry later is safe (EX_TEMPFAIL).
|
|
46
|
+
busy: 75
|
|
47
|
+
};
|
|
48
|
+
var ArgumentError = class extends Error {
|
|
49
|
+
constructor(message) {
|
|
50
|
+
super(message);
|
|
51
|
+
this.name = "ArgumentError";
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var NO_CONFIG = "no pmcp.toml at or above this directory; run pmcp init to create one, or pass --config <file>";
|
|
55
|
+
function noConfig() {
|
|
56
|
+
return new ArgumentError(NO_CONFIG);
|
|
57
|
+
}
|
|
58
|
+
function unknownSubcommand(command, word, verbs) {
|
|
59
|
+
const list = verbs.join(", ");
|
|
60
|
+
if (word === void 0) {
|
|
61
|
+
return new ArgumentError(`${command} needs a subcommand: ${list}`);
|
|
62
|
+
}
|
|
63
|
+
return new ArgumentError(
|
|
64
|
+
`unknown ${command} subcommand "${word}"${didYouMean(word, verbs)}; choose one of: ${list}`
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
var SHORT_FLAG = /^-[A-Za-z]/u;
|
|
68
|
+
function parseArgs(argv, specs = []) {
|
|
69
|
+
const byName = new Map(specs.map((spec) => [spec.name, spec]));
|
|
70
|
+
const positional = [];
|
|
71
|
+
const options = /* @__PURE__ */ new Map();
|
|
72
|
+
const flags = /* @__PURE__ */ new Set();
|
|
73
|
+
let passthrough;
|
|
74
|
+
for (let i = 0; i < argv.length; i += 1) {
|
|
75
|
+
const arg = argv[i];
|
|
76
|
+
if (arg === "--") {
|
|
77
|
+
passthrough = argv.slice(i + 1);
|
|
78
|
+
positional.push(...passthrough);
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
const short = specs.find(
|
|
82
|
+
(spec2) => spec2.short !== void 0 && arg === `-${spec2.short}`
|
|
83
|
+
);
|
|
84
|
+
if (short !== void 0) {
|
|
85
|
+
flags.add(short.name);
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
if (SHORT_FLAG.test(arg)) {
|
|
89
|
+
throw new ArgumentError(`unknown option ${arg}`);
|
|
90
|
+
}
|
|
91
|
+
if (!arg.startsWith("--")) {
|
|
92
|
+
positional.push(arg);
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
const eq = arg.indexOf("=");
|
|
96
|
+
const name = eq === -1 ? arg.slice(2) : arg.slice(2, eq);
|
|
97
|
+
const spec = byName.get(name);
|
|
98
|
+
if (spec === void 0) {
|
|
99
|
+
const names = specs.map((option) => `--${option.name}`);
|
|
100
|
+
const hint = didYouMean(`--${name}`, names, (option) => option);
|
|
101
|
+
throw new ArgumentError(`unknown option --${name}${hint}`);
|
|
102
|
+
}
|
|
103
|
+
if (spec.boolean === true) {
|
|
104
|
+
if (eq !== -1) {
|
|
105
|
+
throw new ArgumentError(`--${name} does not take a value`);
|
|
106
|
+
}
|
|
107
|
+
flags.add(name);
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
const value = eq === -1 ? argv[++i] : arg.slice(eq + 1);
|
|
111
|
+
if (value === void 0 || value === "" || value.startsWith("--")) {
|
|
112
|
+
throw new ArgumentError(`--${name} needs a value`);
|
|
113
|
+
}
|
|
114
|
+
const existing = options.get(name);
|
|
115
|
+
if (existing !== void 0 && spec.repeat !== true) {
|
|
116
|
+
throw new ArgumentError(`--${name} was given more than once`);
|
|
117
|
+
}
|
|
118
|
+
options.set(name, [...existing ?? [], value]);
|
|
119
|
+
}
|
|
120
|
+
return passthrough === void 0 ? { positional, options, flags } : { positional, options, flags, passthrough };
|
|
121
|
+
}
|
|
122
|
+
function one(args, name) {
|
|
123
|
+
return args.options.get(name)?.[0];
|
|
124
|
+
}
|
|
125
|
+
function many(args, name) {
|
|
126
|
+
return args.options.get(name) ?? [];
|
|
127
|
+
}
|
|
128
|
+
function optionRows(options) {
|
|
129
|
+
return options.map((option) => [
|
|
130
|
+
`${option.short ? `-${option.short}, ` : ""}--${option.name}${option.placeholder ? ` ${option.placeholder}` : ""}`,
|
|
131
|
+
option.describe
|
|
132
|
+
]);
|
|
133
|
+
}
|
|
134
|
+
function printSections(ui, options, examples) {
|
|
135
|
+
if (options.length > 0) {
|
|
136
|
+
ui.line();
|
|
137
|
+
ui.line(" Options");
|
|
138
|
+
ui.table(optionRows(options), " ", ui.width("help"));
|
|
139
|
+
}
|
|
140
|
+
if (examples.length > 0) {
|
|
141
|
+
ui.line();
|
|
142
|
+
ui.line(" Examples");
|
|
143
|
+
for (const example of examples) ui.wrapped(example, " ");
|
|
144
|
+
}
|
|
145
|
+
ui.line();
|
|
146
|
+
}
|
|
147
|
+
function printCommandHelp(ui, command) {
|
|
148
|
+
ui.heading(`pmcp ${command.name}`);
|
|
149
|
+
ui.wrapped(command.describe);
|
|
150
|
+
ui.line();
|
|
151
|
+
ui.wrapped(command.usage, " ", "dim");
|
|
152
|
+
const subcommands = command.subcommands ?? [];
|
|
153
|
+
if (subcommands.length > 0) {
|
|
154
|
+
ui.line();
|
|
155
|
+
ui.line(" Subcommands");
|
|
156
|
+
ui.table(
|
|
157
|
+
subcommands.map((sub) => [sub.name, sub.describe]),
|
|
158
|
+
" ",
|
|
159
|
+
ui.width("help")
|
|
160
|
+
);
|
|
161
|
+
ui.line();
|
|
162
|
+
ui.wrapped(
|
|
163
|
+
`Run pmcp ${command.name} <subcommand> --help for one subcommand's usage.`
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
printSections(ui, command.options ?? [], command.examples ?? []);
|
|
167
|
+
}
|
|
168
|
+
function printSubcommandHelp(ui, command, sub) {
|
|
169
|
+
ui.heading(`pmcp ${command.name} ${sub.name}`);
|
|
170
|
+
ui.wrapped(sub.describe);
|
|
171
|
+
ui.line();
|
|
172
|
+
const usage = sub.usage ?? `pmcp ${command.name} ${sub.name} [options]`;
|
|
173
|
+
ui.wrapped(usage, " ", "dim");
|
|
174
|
+
const options = (command.options ?? []).filter(
|
|
175
|
+
(option) => sub.options === void 0 || sub.options.includes(option.name)
|
|
176
|
+
);
|
|
177
|
+
printSections(ui, options, sub.examples ?? []);
|
|
178
|
+
}
|
|
179
|
+
function subcommandNamed(command, words) {
|
|
180
|
+
const subs = command.subcommands ?? [];
|
|
181
|
+
const two = words.slice(0, 2).join(" ");
|
|
182
|
+
return subs.find((sub) => sub.name === two) ?? subs.find((sub) => sub.name === words[0]);
|
|
183
|
+
}
|
|
184
|
+
function printHelp(ui, commands, notImplemented) {
|
|
185
|
+
ui.heading("pmcp \u2014 the skills your installed packages ship");
|
|
186
|
+
ui.line();
|
|
187
|
+
ui.table(
|
|
188
|
+
commands.map((command) => [command.name, command.describe]),
|
|
189
|
+
" ",
|
|
190
|
+
ui.width("help")
|
|
191
|
+
);
|
|
192
|
+
ui.line();
|
|
193
|
+
ui.wrapped(
|
|
194
|
+
"With no command, pmcp opens a terminal workspace on a supported TTY. Piped launches retain MCP stdio. Use pmcp serve explicitly for MCP."
|
|
195
|
+
);
|
|
196
|
+
ui.line();
|
|
197
|
+
ui.table(
|
|
198
|
+
[
|
|
199
|
+
["-q, --quiet", "only errors"],
|
|
200
|
+
["--color", "always colour output; FORCE_COLOR=1 does the same"],
|
|
201
|
+
["--no-color", "never colour output; NO_COLOR and FORCE_COLOR=0 too"],
|
|
202
|
+
["-v, --version", "print the version (also -V and pmcp version)"],
|
|
203
|
+
["-h, --help", "this, or help for one command"]
|
|
204
|
+
],
|
|
205
|
+
" ",
|
|
206
|
+
ui.width("help")
|
|
207
|
+
);
|
|
208
|
+
ui.line();
|
|
209
|
+
if (notImplemented.length > 0) {
|
|
210
|
+
ui.line(
|
|
211
|
+
` ${ui.paint(`not implemented yet: ${notImplemented.join(", ")}`, "dim")}`
|
|
212
|
+
);
|
|
213
|
+
ui.line();
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export {
|
|
218
|
+
didYouMean,
|
|
219
|
+
EXIT,
|
|
220
|
+
ArgumentError,
|
|
221
|
+
NO_CONFIG,
|
|
222
|
+
noConfig,
|
|
223
|
+
unknownSubcommand,
|
|
224
|
+
parseArgs,
|
|
225
|
+
one,
|
|
226
|
+
many,
|
|
227
|
+
printCommandHelp,
|
|
228
|
+
printSubcommandHelp,
|
|
229
|
+
subcommandNamed,
|
|
230
|
+
printHelp
|
|
231
|
+
};
|
|
232
|
+
//# sourceMappingURL=chunk-Y6NFETNG.js.map
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7CHUMF3E.js";
|
|
4
4
|
import {
|
|
5
5
|
readSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WQBKQTNT.js";
|
|
7
7
|
import {
|
|
8
|
-
ArgumentError
|
|
9
|
-
|
|
8
|
+
ArgumentError,
|
|
9
|
+
noConfig
|
|
10
|
+
} from "./chunk-Y6NFETNG.js";
|
|
10
11
|
|
|
11
12
|
// src/commands/project/spec-from.ts
|
|
12
13
|
function specFrom(context) {
|
|
13
14
|
const config = configFrom(context);
|
|
14
15
|
if (config === null) {
|
|
15
|
-
throw
|
|
16
|
-
"no pmcp.toml at or above this directory; pass --config <file>"
|
|
17
|
-
);
|
|
16
|
+
throw noConfig();
|
|
18
17
|
}
|
|
19
18
|
try {
|
|
20
19
|
return readSpec(config);
|
|
@@ -28,4 +27,4 @@ function specFrom(context) {
|
|
|
28
27
|
export {
|
|
29
28
|
specFrom
|
|
30
29
|
};
|
|
31
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-YRNFMPZB.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
prepare,
|
|
8
8
|
present,
|
|
9
9
|
writeNative
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-72V6U7CZ.js";
|
|
11
11
|
import {
|
|
12
12
|
ANTIGRAVITY_MCP_PLUGIN,
|
|
13
13
|
BUNDLE_NATIVE_FILES,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
same,
|
|
22
22
|
splitKeyed,
|
|
23
23
|
withoutBlock
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WQBKQTNT.js";
|
|
25
25
|
import {
|
|
26
26
|
HOOK_DIRECTORY
|
|
27
27
|
} from "./chunk-ARXCYFFZ.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
replaceFile,
|
|
31
31
|
replaceLink,
|
|
32
32
|
writeLock
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KYGGQPAH.js";
|
|
34
34
|
import {
|
|
35
35
|
RULES_DIR,
|
|
36
36
|
legacyLinks
|
|
@@ -400,4 +400,4 @@ export {
|
|
|
400
400
|
unmanagedHooks,
|
|
401
401
|
describeHookProblem
|
|
402
402
|
};
|
|
403
|
-
//# sourceMappingURL=chunk-
|
|
403
|
+
//# sourceMappingURL=chunk-ZXMECZBI.js.map
|
|
@@ -2,40 +2,39 @@ import {
|
|
|
2
2
|
JSON_VERBS,
|
|
3
3
|
SESSION_VERBS,
|
|
4
4
|
sessionsSpec
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-2GZKA33O.js";
|
|
6
|
+
import "./chunk-JPYQDOEW.js";
|
|
7
7
|
import {
|
|
8
|
-
ArgumentError
|
|
9
|
-
|
|
8
|
+
ArgumentError,
|
|
9
|
+
unknownSubcommand
|
|
10
|
+
} from "./chunk-Y6NFETNG.js";
|
|
10
11
|
|
|
11
12
|
// src/sessions/cli.ts
|
|
12
13
|
async function run(context) {
|
|
13
14
|
const verb = context.args.positional[0] ?? "status";
|
|
14
15
|
if (!SESSION_VERBS.includes(verb))
|
|
15
|
-
throw
|
|
16
|
-
`unknown verb ${verb}; use ${SESSION_VERBS.join(", ")}`
|
|
17
|
-
);
|
|
16
|
+
throw unknownSubcommand("sessions", verb, SESSION_VERBS);
|
|
18
17
|
if (verb === "status")
|
|
19
|
-
return (await import("./status-
|
|
18
|
+
return (await import("./status-4PYPTYUB.js")).status(context);
|
|
20
19
|
if (context.args.flags.has("json") && !JSON_VERBS.includes(verb))
|
|
21
20
|
throw new ArgumentError(`--json works with ${JSON_VERBS.join(", ")}`);
|
|
22
21
|
if (["send", "inbox", "ack", "reply"].includes(verb)) {
|
|
23
|
-
const mailbox = await import("./mailbox-
|
|
22
|
+
const mailbox = await import("./mailbox-5FVFMQ2J.js");
|
|
24
23
|
if (verb === "send") return mailbox.send(context);
|
|
25
24
|
if (verb === "inbox") return mailbox.inbox(context);
|
|
26
25
|
if (verb === "ack") return mailbox.ack(context);
|
|
27
26
|
return mailbox.reply(context);
|
|
28
27
|
}
|
|
29
|
-
if (verb === "pause") return (await import("./pause-
|
|
30
|
-
if (verb === "resume") return (await import("./resume-
|
|
28
|
+
if (verb === "pause") return (await import("./pause-CMZOIHTJ.js")).run(context);
|
|
29
|
+
if (verb === "resume") return (await import("./resume-PAKIT4TT.js")).run(context);
|
|
31
30
|
if (verb === "broadcast")
|
|
32
|
-
return (await import("./broadcast-
|
|
31
|
+
return (await import("./broadcast-VKZY7WSD.js")).run(context);
|
|
33
32
|
if (verb === "unbroadcast")
|
|
34
|
-
return (await import("./unbroadcast-
|
|
35
|
-
return (await import("./sweep-
|
|
33
|
+
return (await import("./unbroadcast-7AMLURCG.js")).run(context);
|
|
34
|
+
return (await import("./sweep-VURZU6DI.js")).run(context);
|
|
36
35
|
}
|
|
37
36
|
var sessionsCommand = { ...sessionsSpec, run };
|
|
38
37
|
export {
|
|
39
38
|
sessionsCommand
|
|
40
39
|
};
|
|
41
|
-
//# sourceMappingURL=cli-
|
|
40
|
+
//# sourceMappingURL=cli-GFDT4YXM.js.map
|
|
@@ -1,32 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
gitSpec
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-4VVQLWTS.js";
|
|
4
|
+
import "./chunk-JPYQDOEW.js";
|
|
5
5
|
import {
|
|
6
6
|
ArgumentError,
|
|
7
|
-
one
|
|
8
|
-
|
|
7
|
+
one,
|
|
8
|
+
unknownSubcommand
|
|
9
|
+
} from "./chunk-Y6NFETNG.js";
|
|
9
10
|
|
|
10
11
|
// src/git/cli.ts
|
|
11
12
|
async function action(positional) {
|
|
12
13
|
const [verb, sub] = positional;
|
|
13
14
|
if (verb === "deliver")
|
|
14
|
-
return (await import("./mainline-
|
|
15
|
-
if (verb === "sync") return (await import("./mainline-
|
|
15
|
+
return (await import("./mainline-6PBT3VNR.js")).mainlineDeliver;
|
|
16
|
+
if (verb === "sync") return (await import("./mainline-6PBT3VNR.js")).mainlineSync;
|
|
16
17
|
if (verb !== "worktree")
|
|
17
|
-
throw
|
|
18
|
+
throw unknownSubcommand("git", verb, [
|
|
19
|
+
"worktree",
|
|
20
|
+
"deliver",
|
|
21
|
+
"sync",
|
|
22
|
+
"affected"
|
|
23
|
+
]);
|
|
18
24
|
if (sub === "create")
|
|
19
|
-
return (await import("./worktree-create-
|
|
25
|
+
return (await import("./worktree-create-FTSLMZWS.js")).worktreeCreate;
|
|
20
26
|
if (sub === "list")
|
|
21
27
|
return (await import("./worktree-list-WH6OX6U7.js")).worktreeList;
|
|
22
28
|
if (sub === "sync")
|
|
23
29
|
return (await import("./worktree-sync-DGNHSQ64.js")).worktreeSync;
|
|
24
|
-
throw
|
|
30
|
+
throw unknownSubcommand("git worktree", sub, ["create", "list", "sync"]);
|
|
25
31
|
}
|
|
26
32
|
async function run(context) {
|
|
27
33
|
const [verb, sub] = context.args.positional;
|
|
28
34
|
if (verb === "affected")
|
|
29
|
-
return (await import("./affected-
|
|
35
|
+
return (await import("./affected-D6FRJPPI.js")).gitAffected(context);
|
|
30
36
|
if (context.args.flags.has("tests-only") || context.args.options.has("head"))
|
|
31
37
|
throw new ArgumentError("--tests-only and --head require git affected");
|
|
32
38
|
if (context.args.flags.has("json") && !(verb === "worktree" && sub === "list") && verb !== "deliver")
|
|
@@ -34,7 +40,7 @@ async function run(context) {
|
|
|
34
40
|
"--json requires git worktree list, git deliver or git affected"
|
|
35
41
|
);
|
|
36
42
|
const act = await action(context.args.positional);
|
|
37
|
-
const { loadGit } = await import("./setup-
|
|
43
|
+
const { loadGit } = await import("./setup-6AQUOWOH.js");
|
|
38
44
|
const setup = loadGit(context.cwd, one(context.args, "config"), context.env);
|
|
39
45
|
if (setup instanceof Error) {
|
|
40
46
|
context.ui.error(setup.message);
|
|
@@ -51,4 +57,4 @@ var gitCommand = { ...gitSpec, run };
|
|
|
51
57
|
export {
|
|
52
58
|
gitCommand
|
|
53
59
|
};
|
|
54
|
-
//# sourceMappingURL=cli-
|
|
60
|
+
//# sourceMappingURL=cli-YWV7FLYO.js.map
|