@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.
Files changed (146) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.mcp.json +1 -1
  5. package/CONTRIBUTING.md +8 -0
  6. package/dist/{affected-ZWO2F5EM.js → affected-D6FRJPPI.js} +2 -2
  7. package/dist/{apply-OIKQ5SIY.js → apply-6JVJ7FDZ.js} +21 -20
  8. package/dist/{available-Z5MIDFPH.js → available-74CMIBPD.js} +9 -9
  9. package/dist/{broadcast-BF2QL3O7.js → broadcast-VKZY7WSD.js} +3 -3
  10. package/dist/{chunk-K2VU3B4W.js → chunk-25M2YWBH.js} +4 -4
  11. package/dist/chunk-2GZKA33O.js +173 -0
  12. package/dist/chunk-2HL2MFNI.js +159 -0
  13. package/dist/{chunk-4O4ZOSBQ.js → chunk-2MX5C7B2.js} +3 -3
  14. package/dist/chunk-2W2F5BWF.js +166 -0
  15. package/dist/chunk-43MXRTKH.js +134 -0
  16. package/dist/chunk-4VVQLWTS.js +93 -0
  17. package/dist/{chunk-ZKB7ZNKY.js → chunk-56VBB3H7.js} +4 -4
  18. package/dist/{chunk-JEL35P7S.js → chunk-5NDUWEMW.js} +2 -2
  19. package/dist/{chunk-5PNS6V5C.js → chunk-5QBOGEVE.js} +2 -2
  20. package/dist/{chunk-NNGGNXF2.js → chunk-62BC3K4Z.js} +2 -2
  21. package/dist/{chunk-7ZOQELXR.js → chunk-644GNYMB.js} +3 -3
  22. package/dist/{chunk-GNVME5AD.js → chunk-6UGHVU5B.js} +2 -2
  23. package/dist/{chunk-733WVP2R.js → chunk-7A6QIROT.js} +3 -3
  24. package/dist/{chunk-J3QUG6O5.js → chunk-7CHUMF3E.js} +2 -2
  25. package/dist/{chunk-INT7QLEU.js → chunk-7DJQASH3.js} +25 -6
  26. package/dist/{chunk-VNZTULFD.js → chunk-D2MHB5EF.js} +3 -3
  27. package/dist/{chunk-KEHB4FZP.js → chunk-E2E4HIEN.js} +49 -3
  28. package/dist/{chunk-G4ATQPQI.js → chunk-F3R5HEUB.js} +5 -1
  29. package/dist/{chunk-JW5NMQTU.js → chunk-HES44LTA.js} +4 -4
  30. package/dist/{chunk-RHJEGLYM.js → chunk-HF5D6B2U.js} +45 -6
  31. package/dist/{chunk-5OFQVW2K.js → chunk-HYXOJYVR.js} +2 -2
  32. package/dist/{chunk-UED3RH53.js → chunk-ISGHJHVH.js} +2 -2
  33. package/dist/chunk-JANBBPKP.js +50 -0
  34. package/dist/{chunk-XNML2KIC.js → chunk-JPYQDOEW.js} +3 -3
  35. package/dist/{chunk-ZS5IDQFJ.js → chunk-K6ATERWS.js} +4 -4
  36. package/dist/{chunk-737BENAU.js → chunk-LB2WXBPA.js} +5 -5
  37. package/dist/{chunk-5IZFEVPW.js → chunk-LI3BII4F.js} +2 -2
  38. package/dist/chunk-LTMHE5VL.js +7 -0
  39. package/dist/{chunk-XSWF7APE.js → chunk-OGCJO6HQ.js} +9 -8
  40. package/dist/{chunk-A7XCUR2C.js → chunk-Q6V274OB.js} +8 -6
  41. package/dist/{chunk-ISGBOJT7.js → chunk-QR4GXET7.js} +3 -3
  42. package/dist/chunk-QR6A3TYP.js +315 -0
  43. package/dist/{chunk-FOLA4EUJ.js → chunk-QY2P54Z2.js} +10 -2
  44. package/dist/{chunk-EIDIVIAD.js → chunk-QYLOIM4U.js} +9 -2
  45. package/dist/{chunk-P5D6RKMT.js → chunk-RZYZILU4.js} +5 -3
  46. package/dist/{chunk-A6DARDQ4.js → chunk-S6G7YWNE.js} +2 -2
  47. package/dist/{chunk-24L4MO7H.js → chunk-TIH7JFPJ.js} +2 -2
  48. package/dist/{chunk-5KWDQFVY.js → chunk-UFWW4H6V.js} +7 -8
  49. package/dist/chunk-UVTGY2R3.js +78 -0
  50. package/dist/{chunk-LLT5FQBE.js → chunk-VBVNOLRR.js} +7 -3
  51. package/dist/{chunk-ABTJQ4QV.js → chunk-WBPVNCQO.js} +20 -5
  52. package/dist/{chunk-T4GVN7XO.js → chunk-WNP2BXR7.js} +5 -5
  53. package/dist/{chunk-YGOWIJPE.js → chunk-WZYGM3FR.js} +6 -2
  54. package/dist/chunk-Y6NFETNG.js +232 -0
  55. package/dist/{cli-IHVNE3WL.js → cli-GFDT4YXM.js} +14 -15
  56. package/dist/{cli-FSSYFCV3.js → cli-WWNTQJPV.js} +18 -12
  57. package/dist/cli.js +307 -47
  58. package/dist/{completion-ZTTJVV4C.js → completion-I63UIDZ7.js} +25 -23
  59. package/dist/{diagnostics-XC5L6Z3E.js → diagnostics-RUJZBPNZ.js} +6 -6
  60. package/dist/{doctor-FGDSUBR3.js → doctor-CLUFTEFO.js} +21 -21
  61. package/dist/{entry-NNB2CQLZ.js → entry-QSJCFI5Z.js} +10 -10
  62. package/dist/{exec-mcp-ZU3Z3XT6.js → exec-mcp-AFPUJTN7.js} +9 -9
  63. package/dist/{harness-B7ANLH5M.js → harness-PPM32AI5.js} +26 -44
  64. package/dist/harness-launch-gate.js +4 -4
  65. package/dist/harness-worker.js +6 -6
  66. package/dist/{heavy-IIZBO4YM.js → heavy-TEHP5PHT.js} +112 -27
  67. package/dist/hooks-L4PXVEGR.js +24 -0
  68. package/dist/{host-5P4D7GSE.js → host-LBTL47X7.js} +18 -15
  69. package/dist/{host-XXWQ23LD.js → host-MU2GRH57.js} +7 -7
  70. package/dist/{host-run-AEWHFVQL.js → host-run-IRSAQA5Z.js} +6 -6
  71. package/dist/http.js +1 -1
  72. package/dist/{import-mcp-BQM5DKYH.js → import-mcp-QVPW6A2Q.js} +12 -12
  73. package/dist/index.d.ts +1 -1
  74. package/dist/index.js +11 -10
  75. package/dist/init-46STH6FP.js +14 -0
  76. package/dist/{install-OFVLR7TI.js → install-5JH4DSFF.js} +10 -10
  77. package/dist/{invoke-3BQ5NG3P.js → invoke-I6C6UT6Q.js} +8 -8
  78. package/dist/{list-EU4MJOXA.js → list-HXG6EB7V.js} +12 -12
  79. package/dist/{list-WWYCGD3X.js → list-LV5EKCF6.js} +11 -7
  80. package/dist/{logout-6DFDYJUI.js → logout-SSUXJ6SE.js} +9 -9
  81. package/dist/{logs-BRF6DBKG.js → logs-2JEMSNSG.js} +7 -7
  82. package/dist/{mailbox-QYA2LQSE.js → mailbox-5FVFMQ2J.js} +6 -6
  83. package/dist/{mailbox-AQCTXO3H.js → mailbox-ZHZWZMAY.js} +14 -21
  84. package/dist/{mainline-O5AEHG3J.js → mainline-4XP6ZORU.js} +9 -8
  85. package/dist/{marketplace-TI5HFAHB.js → marketplace-2X3OOEPW.js} +10 -9
  86. package/dist/{mcp-HR5JFUW7.js → mcp-L6X45IOS.js} +4 -4
  87. package/dist/{mcp-4R53HSGY.js → mcp-PBTQ5SJW.js} +2 -2
  88. package/dist/{models-63NQBSV3.js → models-XSF45MCD.js} +9 -5
  89. package/dist/{pause-UF7FQDJX.js → pause-CMZOIHTJ.js} +3 -3
  90. package/dist/{preview-WSESS2UN.js → preview-465CQJBQ.js} +4 -4
  91. package/dist/{project-JXXL24WN.js → project-4JPKU2D7.js} +14 -12
  92. package/dist/{reindex-3GPKAFBW.js → reindex-D62HQAN2.js} +7 -7
  93. package/dist/{report-JUSKQPAC.js → report-UB7MXAUB.js} +10 -10
  94. package/dist/{resume-3WAROOQ3.js → resume-PAKIT4TT.js} +3 -3
  95. package/dist/run-OW7436TY.js +23 -0
  96. package/dist/{run-XRWU4L73.js → run-PMASXIGY.js} +8 -8
  97. package/dist/{serve-OEX5V5CD.js → serve-P3HJN6AF.js} +13 -13
  98. package/dist/{session-YZVX4NGN.js → session-3YVVO2GR.js} +6 -6
  99. package/dist/{setup-SWNAC2C7.js → setup-6AQUOWOH.js} +3 -2
  100. package/dist/{smoke-5BGJXAHX.js → smoke-6X6IXQIQ.js} +4 -4
  101. package/dist/{start-login-MG26NDE3.js → start-login-P7YDRTA3.js} +10 -10
  102. package/dist/{status-GKCIVAAR.js → status-4PYPTYUB.js} +4 -4
  103. package/dist/{status-LH7Q255G.js → status-DAXQKT35.js} +28 -27
  104. package/dist/{status-APADL7O2.js → status-DLGZDYEP.js} +18 -11
  105. package/dist/stdio.js +2 -2
  106. package/dist/{sweep-VTVPDAPY.js → sweep-VURZU6DI.js} +3 -3
  107. package/dist/{test-TK2J3IB7.js → test-H243OTSK.js} +12 -12
  108. package/dist/{tui-YTPHHKCW.js → tui-P6XTSTQO.js} +45 -19
  109. package/dist/{unbroadcast-CH7BAQ2G.js → unbroadcast-7AMLURCG.js} +3 -3
  110. package/dist/{validate-5QVZBE6W.js → validate-YXR7FJJX.js} +11 -9
  111. package/dist/{wait-4HYJJAWO.js → wait-HEODT7KV.js} +3 -3
  112. package/dist/{worker-RBXYAMR4.js → worker-5YJLIGTU.js} +8 -8
  113. package/dist/{worktree-create-FEZNQUQ6.js → worktree-create-FTSLMZWS.js} +2 -2
  114. package/docs/commands.md +65 -29
  115. package/docs/hooks.md +3 -3
  116. package/docs/project-configuration.md +54 -38
  117. package/docs/terminal-workspace.md +2 -0
  118. package/docs/upgrading.md +67 -0
  119. package/gemini-extension.json +2 -2
  120. package/mcp.json +1 -1
  121. package/package.json +5 -5
  122. package/plugin.json +1 -1
  123. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  124. package/plugins/pmcp/.mcp.json +1 -1
  125. package/plugins/pmcp/gemini-extension.json +2 -2
  126. package/plugins/pmcp/mcp.json +1 -1
  127. package/plugins/pmcp/plugin.json +1 -1
  128. package/plugins/pmcp/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
  129. package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +1 -1
  130. package/plugins/pmcp/skills/pmcp-sessions-and-git/SKILL.md +3 -2
  131. package/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
  132. package/skills/pmcp-project-init/SKILL.md +1 -1
  133. package/skills/pmcp-sessions-and-git/SKILL.md +3 -2
  134. package/dist/chunk-2P4Z2NUX.js +0 -28
  135. package/dist/chunk-3Y3HDMHA.js +0 -108
  136. package/dist/chunk-74O7KZUH.js +0 -45
  137. package/dist/chunk-BN4XAXMQ.js +0 -65
  138. package/dist/chunk-E3DQB5LS.js +0 -48
  139. package/dist/chunk-JWRZDYB5.js +0 -59
  140. package/dist/chunk-LMUBBIE2.js +0 -83
  141. package/dist/chunk-QBSJL3SP.js +0 -162
  142. package/dist/chunk-VSTUKACC.js +0 -7
  143. package/dist/chunk-WFY7ATSZ.js +0 -116
  144. package/dist/hooks-IEJTW7BV.js +0 -24
  145. package/dist/init-L6GUO3PW.js +0 -14
  146. package/dist/run-VUUQS4WY.js +0 -19
@@ -1,11 +1,15 @@
1
1
  import {
2
2
  jsonOption,
3
3
  nearestConfigOption
4
- } from "./chunk-XNML2KIC.js";
4
+ } from "./chunk-JPYQDOEW.js";
5
5
 
6
6
  // src/commands/specs/logs.ts
7
7
  var logsSpec = {
8
8
  name: "logs",
9
+ examples: [
10
+ "pmcp logs --since 10m --level warn --pretty",
11
+ "pmcp logs --trace 7cef825e8fbd8c3f --json"
12
+ ],
9
13
  describe: "Read this project's pmcp JSONL logs, filtered by session, trace, component, level or time",
10
14
  usage: "pmcp logs [--session <id>] [--trace <id>] [--component <name>] [--level <level>] [--since <10m|ISO>] [--follow] [--pretty]",
11
15
  options: [
@@ -48,4 +52,4 @@ var logsSpec = {
48
52
  export {
49
53
  logsSpec
50
54
  };
51
- //# sourceMappingURL=chunk-YGOWIJPE.js.map
55
+ //# sourceMappingURL=chunk-WZYGM3FR.js.map
@@ -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
@@ -2,40 +2,39 @@ import {
2
2
  JSON_VERBS,
3
3
  SESSION_VERBS,
4
4
  sessionsSpec
5
- } from "./chunk-LMUBBIE2.js";
6
- import "./chunk-XNML2KIC.js";
5
+ } from "./chunk-2GZKA33O.js";
6
+ import "./chunk-JPYQDOEW.js";
7
7
  import {
8
- ArgumentError
9
- } from "./chunk-WFY7ATSZ.js";
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 new ArgumentError(
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-GKCIVAAR.js")).status(context);
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-QYA2LQSE.js");
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-UF7FQDJX.js")).run(context);
30
- if (verb === "resume") return (await import("./resume-3WAROOQ3.js")).run(context);
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-BF2QL3O7.js")).run(context);
31
+ return (await import("./broadcast-VKZY7WSD.js")).run(context);
33
32
  if (verb === "unbroadcast")
34
- return (await import("./unbroadcast-CH7BAQ2G.js")).run(context);
35
- return (await import("./sweep-VTVPDAPY.js")).run(context);
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-IHVNE3WL.js.map
40
+ //# sourceMappingURL=cli-GFDT4YXM.js.map
@@ -1,32 +1,38 @@
1
1
  import {
2
2
  gitSpec
3
- } from "./chunk-74O7KZUH.js";
4
- import "./chunk-XNML2KIC.js";
3
+ } from "./chunk-4VVQLWTS.js";
4
+ import "./chunk-JPYQDOEW.js";
5
5
  import {
6
6
  ArgumentError,
7
- one
8
- } from "./chunk-WFY7ATSZ.js";
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-O5AEHG3J.js")).mainlineDeliver;
15
- if (verb === "sync") return (await import("./mainline-O5AEHG3J.js")).mainlineSync;
15
+ return (await import("./mainline-4XP6ZORU.js")).mainlineDeliver;
16
+ if (verb === "sync") return (await import("./mainline-4XP6ZORU.js")).mainlineSync;
16
17
  if (verb !== "worktree")
17
- throw new ArgumentError("Use worktree, deliver, sync or affected");
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-FEZNQUQ6.js")).worktreeCreate;
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 new ArgumentError("Use worktree create, list or sync");
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-ZWO2F5EM.js")).gitAffected(context);
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-SWNAC2C7.js");
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-FSSYFCV3.js.map
60
+ //# sourceMappingURL=cli-WWNTQJPV.js.map