@modootoday/pmcp 0.22.12 → 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-D6FRJPPI.js +836 -0
- package/dist/{apply-LPKZZ6EL.js → apply-3PWUO4J5.js} +27 -22
- package/dist/{available-BFXLII4A.js → available-74CMIBPD.js} +9 -9
- package/dist/{broadcast-DZGMSZRG.js → broadcast-VKZY7WSD.js} +6 -5
- package/dist/chunk-2GZKA33O.js +173 -0
- package/dist/chunk-2HL2MFNI.js +159 -0
- package/dist/{chunk-OAX6MIOZ.js → chunk-2K4WYN4C.js} +2 -2
- package/dist/{chunk-PEMMV5YQ.js → chunk-2MX5C7B2.js} +3 -3
- package/dist/{chunk-7I7O7ZNT.js → chunk-3V37OZQH.js} +5 -3
- package/dist/chunk-43MXRTKH.js +134 -0
- package/dist/chunk-4VVQLWTS.js +93 -0
- package/dist/{chunk-DYZVHO2L.js → chunk-5HNLHI5F.js} +2 -2
- package/dist/{chunk-JEL35P7S.js → chunk-5NDUWEMW.js} +2 -2
- package/dist/chunk-65BW7Y6O.js +40 -0
- package/dist/{chunk-HUBJWC7T.js → chunk-6NRLBSEG.js} +7 -7
- package/dist/chunk-6QJ3F445.js +166 -0
- package/dist/{chunk-2OOWAGBE.js → chunk-72V6U7CZ.js} +3 -3
- package/dist/{chunk-RPCIROW7.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-UDVYVRGJ.js → chunk-DNSHJIS4.js} +2 -2
- package/dist/{chunk-UMQLIRSU.js → chunk-DZTSCJOZ.js} +3 -3
- package/dist/{chunk-KEHB4FZP.js → chunk-E2E4HIEN.js} +49 -3
- package/dist/{chunk-SUJCVEBM.js → chunk-EQF64INS.js} +3 -3
- package/dist/chunk-F3R5HEUB.js +39 -0
- package/dist/chunk-FOLA4EUJ.js +261 -0
- package/dist/chunk-FQLCD4HU.js +24 -0
- package/dist/{chunk-OEH47H6A.js → chunk-GUHOEIHP.js} +3 -20
- package/dist/{chunk-B2WRYGHJ.js → chunk-HES44LTA.js} +5 -5
- package/dist/{chunk-RHJEGLYM.js → chunk-HF5D6B2U.js} +45 -6
- package/dist/{chunk-R5MT42JS.js → chunk-HYXOJYVR.js} +2 -2
- package/dist/chunk-JANBBPKP.js +50 -0
- package/dist/{chunk-ITOTOC6Y.js → chunk-JJFPSFDU.js} +3 -3
- package/dist/{chunk-XNML2KIC.js → chunk-JPYQDOEW.js} +3 -3
- package/dist/{chunk-SPZQRLL5.js → chunk-KYGGQPAH.js} +18 -6
- package/dist/{chunk-EX4YXPVW.js → chunk-LGRFYN5T.js} +2 -2
- package/dist/{chunk-DP326AER.js → chunk-LO54UUDE.js} +2 -2
- package/dist/{chunk-5QKXEWDB.js → chunk-MHKY6TNF.js} +6 -4
- package/dist/chunk-N7ANFMA5.js +171 -0
- package/dist/{chunk-KPKMEUUH.js → chunk-OGCJO6HQ.js} +9 -8
- package/dist/{chunk-N63QCJHX.js → chunk-P25V6NEX.js} +5 -5
- package/dist/{chunk-PUIWESU3.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-MIFPPUWY.js → chunk-RRKA3GF5.js} +4 -4
- package/dist/{chunk-7CSUKCU7.js → chunk-RZYZILU4.js} +17 -96
- package/dist/{chunk-FODUHLZM.js → chunk-SDQYZDHS.js} +2 -2
- package/dist/chunk-SGFTHKKS.js +86 -0
- package/dist/chunk-T6C3TSTO.js +99 -0
- 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-63RZGEVI.js → chunk-WQBKQTNT.js} +98 -26
- package/dist/{chunk-YGOWIJPE.js → chunk-WZYGM3FR.js} +6 -2
- package/dist/chunk-Y6NFETNG.js +232 -0
- package/dist/{chunk-D5MIZM6L.js → chunk-YRNFMPZB.js} +7 -8
- package/dist/{chunk-2GRECE6B.js → chunk-ZXMECZBI.js} +4 -4
- package/dist/{cli-34EDFXJA.js → cli-GFDT4YXM.js} +14 -15
- package/dist/{cli-JXPJFHUA.js → cli-YWV7FLYO.js} +24 -12
- package/dist/cli.js +317 -51
- package/dist/{completion-KTECNPVY.js → completion-OKGNN7DE.js} +25 -21
- package/dist/{diagnostics-I5VZHK42.js → diagnostics-N4XRRCQG.js} +10 -6
- package/dist/{doctor-JJ2VUNHT.js → doctor-3H6UYNEA.js} +27 -23
- package/dist/{entry-OT7BN3ID.js → entry-KDLLG6ED.js} +19 -15
- package/dist/{exec-mcp-3E4SRJUY.js → exec-mcp-AENALAHJ.js} +15 -11
- package/dist/{harness-Q236VJSU.js → harness-GRYTNUF2.js} +26 -44
- package/dist/harness-launch-gate.js +8 -4
- package/dist/harness-worker.js +10 -6
- package/dist/heavy-BGXKJKYB.js +1965 -0
- package/dist/hook-body.js +69 -21
- package/dist/hooks-V25ANQ4Q.js +24 -0
- package/dist/{host-LT5JMUFJ.js → host-4EGPADOJ.js} +11 -7
- package/dist/{host-UDC4HVX3.js → host-MLSWY7D7.js} +24 -17
- package/dist/{host-run-LD63JGN7.js → host-run-VI52IUKF.js} +10 -6
- package/dist/http.js +1 -1
- package/dist/{import-mcp-URVONIZ3.js → import-mcp-FIXFLUDM.js} +18 -14
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -12
- package/dist/init-ALTBFUPP.js +14 -0
- package/dist/{install-7V6NIA7W.js → install-5JH4DSFF.js} +10 -10
- package/dist/{invoke-JW5OC2HO.js → invoke-7T7UY57O.js} +12 -8
- package/dist/{list-UM4DYJRL.js → list-JFZ7UZLV.js} +18 -14
- package/dist/{list-WK2IYUK7.js → list-LV5EKCF6.js} +11 -7
- package/dist/{logout-H5X4D26I.js → logout-7CNBO76Z.js} +15 -11
- package/dist/{logs-UHJM7ZCL.js → logs-2JEMSNSG.js} +11 -10
- package/dist/{mailbox-NIMBOQPA.js → mailbox-5FVFMQ2J.js} +12 -44
- package/dist/{mailbox-YN6PG66A.js → mailbox-ZHZWZMAY.js} +14 -21
- package/dist/{mainline-74WCH4T4.js → mainline-6PBT3VNR.js} +75 -126
- package/dist/{marketplace-G4VQET5W.js → marketplace-2X3OOEPW.js} +10 -9
- package/dist/{mcp-6P3MVT4V.js → mcp-MVQVMAKJ.js} +4 -4
- package/dist/{mcp-AXHV547W.js → mcp-PBTQ5SJW.js} +2 -2
- package/dist/{models-ISU4DCMA.js → models-XSF45MCD.js} +9 -5
- package/dist/{pause-CBZ3BTJL.js → pause-CMZOIHTJ.js} +6 -5
- package/dist/{preview-DT7DWG5F.js → preview-465CQJBQ.js} +4 -4
- package/dist/{project-6QUIC73W.js → project-FZGJRG2U.js} +14 -12
- package/dist/{reindex-I7RYWCUR.js → reindex-D62HQAN2.js} +7 -7
- package/dist/{report-ZHOHQ4PZ.js → report-UB7MXAUB.js} +14 -13
- package/dist/{resume-UJEWQ66P.js → resume-PAKIT4TT.js} +6 -5
- package/dist/{run-HQTB7N2R.js → run-TOP37ZQC.js} +14 -10
- package/dist/run-VGJDMA2O.js +23 -0
- package/dist/{serve-APEVIJD2.js → serve-LR7SJHNH.js} +13 -13
- package/dist/{session-YZVX4NGN.js → session-3YVVO2GR.js} +6 -6
- package/dist/{setup-SOUBEZ3H.js → setup-6AQUOWOH.js} +7 -4
- package/dist/{smoke-2FI5D74B.js → smoke-6X6IXQIQ.js} +4 -4
- package/dist/{start-login-ER7DEGYN.js → start-login-X37KGCCB.js} +16 -12
- package/dist/{status-KN2ZE64O.js → status-4PYPTYUB.js} +7 -6
- package/dist/{status-7NYXRZ3R.js → status-E4AFUOQO.js} +24 -13
- package/dist/{status-OGABWCPO.js → status-LBRK37GA.js} +35 -30
- package/dist/stdio.js +2 -2
- package/dist/{sweep-EPZCW63Q.js → sweep-VURZU6DI.js} +6 -5
- package/dist/{test-WRZQERYC.js → test-D2EEFUN2.js} +18 -14
- package/dist/{tui-YUHQ36FC.js → tui-D7E3MD3X.js} +45 -19
- package/dist/{unbroadcast-N6LXHAMT.js → unbroadcast-7AMLURCG.js} +6 -5
- package/dist/{validate-KFBCUFI4.js → validate-YXR7FJJX.js} +11 -9
- package/dist/wait-HEODT7KV.js +141 -0
- package/dist/{worker-OKBJNDEI.js → worker-WTBC6VYO.js} +12 -8
- package/dist/{worktree-create-KMXPQXIQ.js → worktree-create-FTSLMZWS.js} +2 -2
- package/docs/commands.md +108 -36
- package/docs/git-workflow.md +51 -0
- package/docs/hooks.md +11 -4
- package/docs/project-configuration.md +136 -20
- package/docs/terminal-workspace.md +2 -0
- package/docs/upgrading.md +54 -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-3C5FVHQ3.js +0 -7
- package/dist/chunk-3Y3HDMHA.js +0 -108
- package/dist/chunk-A4PKLESO.js +0 -112
- package/dist/chunk-E3DQB5LS.js +0 -48
- package/dist/chunk-GFOQDLPL.js +0 -35
- package/dist/chunk-JWRZDYB5.js +0 -59
- package/dist/chunk-LMUBBIE2.js +0 -83
- package/dist/chunk-SMZPYJQI.js +0 -151
- package/dist/hooks-PABOEQO6.js +0 -24
- package/dist/init-4O24ZNUQ.js +0 -14
- package/dist/run-GZK3XJ62.js +0 -19
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
acquireHostLock,
|
|
3
|
+
readHolder,
|
|
4
|
+
removeHolder,
|
|
5
|
+
writeHolder
|
|
6
|
+
} from "./chunk-SGFTHKKS.js";
|
|
1
7
|
import {
|
|
2
8
|
off
|
|
3
9
|
} from "./chunk-YIXDHQYE.js";
|
|
4
|
-
import
|
|
5
|
-
flockAvailable,
|
|
6
|
-
lockFile
|
|
7
|
-
} from "./chunk-DZ2MRTYT.js";
|
|
8
|
-
import {
|
|
9
|
-
globPattern
|
|
10
|
-
} from "./chunk-UKR64U7J.js";
|
|
10
|
+
import "./chunk-DZ2MRTYT.js";
|
|
11
11
|
import {
|
|
12
12
|
followPins,
|
|
13
13
|
initAddedSubmodules,
|
|
@@ -17,6 +17,9 @@ import {
|
|
|
17
17
|
lockHash,
|
|
18
18
|
syncWorktree
|
|
19
19
|
} from "./chunk-UYBWUOLR.js";
|
|
20
|
+
import {
|
|
21
|
+
globPattern
|
|
22
|
+
} from "./chunk-UKR64U7J.js";
|
|
20
23
|
import {
|
|
21
24
|
GitReadError,
|
|
22
25
|
cherry,
|
|
@@ -33,13 +36,13 @@ import {
|
|
|
33
36
|
import {
|
|
34
37
|
gateTreePath,
|
|
35
38
|
leaseSpecs
|
|
36
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-RZYZILU4.js";
|
|
37
40
|
import {
|
|
38
41
|
detect
|
|
39
42
|
} from "./chunk-SUDG7B6S.js";
|
|
40
43
|
import {
|
|
41
44
|
createFilesStore
|
|
42
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-3V37OZQH.js";
|
|
43
46
|
import "./chunk-Z6WRFOFT.js";
|
|
44
47
|
import {
|
|
45
48
|
git,
|
|
@@ -48,17 +51,24 @@ import {
|
|
|
48
51
|
runCommand,
|
|
49
52
|
runCommandLogged
|
|
50
53
|
} from "./chunk-B3OZ4GGO.js";
|
|
51
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-Y6NFETNG.js";
|
|
55
|
+
import {
|
|
56
|
+
BUSY_EXIT
|
|
57
|
+
} from "./chunk-FOLA4EUJ.js";
|
|
58
|
+
import "./chunk-N7ANFMA5.js";
|
|
59
|
+
import "./chunk-T6C3TSTO.js";
|
|
60
|
+
import "./chunk-FQLCD4HU.js";
|
|
61
|
+
import "./chunk-GUHOEIHP.js";
|
|
52
62
|
import "./chunk-IJBSOWHK.js";
|
|
53
63
|
import "./chunk-GJXOFDJT.js";
|
|
54
64
|
import "./chunk-PMJG2CXF.js";
|
|
55
65
|
|
|
56
66
|
// src/git/cli/mainline.ts
|
|
57
|
-
import { join as
|
|
67
|
+
import { join as join7 } from "path";
|
|
58
68
|
|
|
59
69
|
// src/git/mainline/deliver.ts
|
|
60
|
-
import { readFileSync
|
|
61
|
-
import { dirname as
|
|
70
|
+
import { readFileSync } from "fs";
|
|
71
|
+
import { dirname as dirname2, join as join4 } from "path";
|
|
62
72
|
import { loadavg } from "os";
|
|
63
73
|
|
|
64
74
|
// src/git/mainline/gate.ts
|
|
@@ -159,7 +169,7 @@ function gateLog(dir, tip, keep = KEEP_TIPS) {
|
|
|
159
169
|
renameSync(temporary, join(logs, "latest"));
|
|
160
170
|
return { log: join(logs, name), logs };
|
|
161
171
|
}
|
|
162
|
-
function runGate(mainRoot, tree, tip, command, links, report, lockEnv, logDir2, restore = false, keep = KEEP_TIPS) {
|
|
172
|
+
function runGate(mainRoot, tree, tip, command, links, report, lockEnv, logDir2, restore = false, keep = KEEP_TIPS, extraEnv = {}) {
|
|
163
173
|
const problem = prepareGateTree(
|
|
164
174
|
mainRoot,
|
|
165
175
|
tree,
|
|
@@ -174,6 +184,7 @@ function runGate(mainRoot, tree, tip, command, links, report, lockEnv, logDir2,
|
|
|
174
184
|
const { log, logs } = gateLog(logDir2, tip, keep);
|
|
175
185
|
report.info(`gate on ${tip.slice(0, 10)} in ${tree}; gate log: ${log}`);
|
|
176
186
|
const code = runCommandLogged(command, tree, log, {
|
|
187
|
+
...extraEnv,
|
|
177
188
|
PMCP_GATE_TIP: tip,
|
|
178
189
|
PMCP_GATE_MAIN: mainRoot,
|
|
179
190
|
...lockEnv ? { [lockEnv]: "1" } : {}
|
|
@@ -183,82 +194,9 @@ function runGate(mainRoot, tree, tip, command, links, report, lockEnv, logDir2,
|
|
|
183
194
|
return { code, log, logs };
|
|
184
195
|
}
|
|
185
196
|
|
|
186
|
-
// src/git/mainline/lock.ts
|
|
187
|
-
import { spawnSync } from "child_process";
|
|
188
|
-
import {
|
|
189
|
-
closeSync,
|
|
190
|
-
mkdirSync as mkdirSync2,
|
|
191
|
-
openSync,
|
|
192
|
-
readFileSync,
|
|
193
|
-
rmSync as rmSync2,
|
|
194
|
-
writeFileSync as writeFileSync2
|
|
195
|
-
} from "fs";
|
|
196
|
-
import { dirname as dirname2, join as join2 } from "path";
|
|
197
|
-
function flock(fd, args) {
|
|
198
|
-
const run = spawnSync("flock", [...args, "3"], {
|
|
199
|
-
stdio: ["ignore", "ignore", "pipe", fd]
|
|
200
|
-
});
|
|
201
|
-
if (run.error !== void 0)
|
|
202
|
-
throw new Error(`flock (util-linux) is required: ${run.error.message}`);
|
|
203
|
-
return run.status ?? 1;
|
|
204
|
-
}
|
|
205
|
-
function acquireHostLock(path, waitSeconds, onWait) {
|
|
206
|
-
mkdirSync2(dirname2(path), { recursive: true });
|
|
207
|
-
if (!flockAvailable()) {
|
|
208
|
-
const now = lockFile(path, 0);
|
|
209
|
-
if (now) return now;
|
|
210
|
-
onWait?.();
|
|
211
|
-
return lockFile(path, waitSeconds * 1e3);
|
|
212
|
-
}
|
|
213
|
-
const fd = openSync(path, "a");
|
|
214
|
-
try {
|
|
215
|
-
if (flock(fd, ["-n"]) !== 0) {
|
|
216
|
-
onWait?.();
|
|
217
|
-
if (flock(fd, ["-w", String(waitSeconds)]) !== 0) {
|
|
218
|
-
closeSync(fd);
|
|
219
|
-
return null;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
} catch (error) {
|
|
223
|
-
closeSync(fd);
|
|
224
|
-
throw error;
|
|
225
|
-
}
|
|
226
|
-
let open = true;
|
|
227
|
-
return {
|
|
228
|
-
release: () => {
|
|
229
|
-
if (!open) return;
|
|
230
|
-
open = false;
|
|
231
|
-
closeSync(fd);
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
function holderFile(lockPath) {
|
|
236
|
-
return join2(dirname2(lockPath), "holder.json");
|
|
237
|
-
}
|
|
238
|
-
function writeHolder(lockPath, holder) {
|
|
239
|
-
const record = {
|
|
240
|
-
...holder,
|
|
241
|
-
pid: process.pid,
|
|
242
|
-
startedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
243
|
-
};
|
|
244
|
-
writeFileSync2(holderFile(lockPath), `${JSON.stringify(record)}
|
|
245
|
-
`);
|
|
246
|
-
}
|
|
247
|
-
function removeHolder(lockPath) {
|
|
248
|
-
if (readHolder(lockPath)?.pid === process.pid)
|
|
249
|
-
rmSync2(holderFile(lockPath), { force: true });
|
|
250
|
-
}
|
|
251
|
-
function readHolder(lockPath) {
|
|
252
|
-
try {
|
|
253
|
-
return JSON.parse(readFileSync(holderFile(lockPath), "utf8"));
|
|
254
|
-
} catch {
|
|
255
|
-
return null;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
197
|
// src/git/mainline/pins.ts
|
|
260
198
|
import { existsSync as existsSync2 } from "fs";
|
|
261
|
-
import { join as
|
|
199
|
+
import { join as join2 } from "path";
|
|
262
200
|
var GITLINK = /^:(?:160000|000000) 160000 [0-9a-f]{40} ([0-9a-f]{40}) [AM]\t(.+)$/u;
|
|
263
201
|
function pins(root, upstream, tip) {
|
|
264
202
|
const raw = gitText(root, [
|
|
@@ -288,9 +226,9 @@ function branchOf(root, path) {
|
|
|
288
226
|
}
|
|
289
227
|
function pushPins(root, upstream, tip, report) {
|
|
290
228
|
for (const [path, pin] of pins(root, upstream, tip)) {
|
|
291
|
-
const dir =
|
|
229
|
+
const dir = join2(root, path);
|
|
292
230
|
const short = pin.slice(0, 10);
|
|
293
|
-
if (!existsSync2(
|
|
231
|
+
if (!existsSync2(join2(dir, ".git"))) {
|
|
294
232
|
report.warn(
|
|
295
233
|
`${path}: not checked out here, so ${short} cannot be pushed`
|
|
296
234
|
);
|
|
@@ -361,14 +299,14 @@ function waitForLeases(store, specs, waitSeconds, report, pollMs = 1e3) {
|
|
|
361
299
|
}
|
|
362
300
|
|
|
363
301
|
// src/git/mainline/replay.ts
|
|
364
|
-
import { mkdtempSync, rmdirSync, rmSync as
|
|
302
|
+
import { mkdtempSync, rmdirSync, rmSync as rmSync2 } from "fs";
|
|
365
303
|
import { tmpdir } from "os";
|
|
366
|
-
import { join as
|
|
304
|
+
import { join as join3 } from "path";
|
|
367
305
|
function remove(root, dir) {
|
|
368
306
|
const removed = git(root, ["worktree", "remove", "--force", dir]);
|
|
369
307
|
if (removed.status !== 0)
|
|
370
308
|
return `worktree cleanup failed; preserved ${dir}: ${removed.stderr.trim()}`;
|
|
371
|
-
|
|
309
|
+
rmSync2(dir, { recursive: true, force: true });
|
|
372
310
|
return null;
|
|
373
311
|
}
|
|
374
312
|
function withoutHints(stderr) {
|
|
@@ -391,7 +329,7 @@ nothing was pushed; rebase onto ${base} and deliver again`
|
|
|
391
329
|
};
|
|
392
330
|
}
|
|
393
331
|
function replay(root, base, commits) {
|
|
394
|
-
const dir = mkdtempSync(
|
|
332
|
+
const dir = mkdtempSync(join3(tmpdir(), "pmcp-deliver-"));
|
|
395
333
|
const added = git(root, ["worktree", "add", "-q", "--detach", dir, base]);
|
|
396
334
|
if (added.status !== 0) {
|
|
397
335
|
rmdirSync(dir);
|
|
@@ -430,7 +368,7 @@ function push(options, tip, preHook) {
|
|
|
430
368
|
return { status, stdout: "", stderr: "" };
|
|
431
369
|
}
|
|
432
370
|
function logDir(options) {
|
|
433
|
-
return options.gate?.logDir ?? options.logDir ??
|
|
371
|
+
return options.gate?.logDir ?? options.logDir ?? join4(dirname2(gateTree(options.tree).tree), "gate-logs");
|
|
434
372
|
}
|
|
435
373
|
function attempts(options) {
|
|
436
374
|
const { ctx, report } = options;
|
|
@@ -439,7 +377,7 @@ function attempts(options) {
|
|
|
439
377
|
if (options.track) options.track.attempts = attempt;
|
|
440
378
|
if (!fetch(ctx)) {
|
|
441
379
|
report.warn(`fetch from ${ctx.remote} failed`);
|
|
442
|
-
return
|
|
380
|
+
return 1;
|
|
443
381
|
}
|
|
444
382
|
const commits = undelivered(ctx.root, ctx.upstream, options.named);
|
|
445
383
|
if (commits.length === 0) {
|
|
@@ -476,6 +414,17 @@ function attempts(options) {
|
|
|
476
414
|
options.umask !== void 0,
|
|
477
415
|
options.gate?.logKeep
|
|
478
416
|
);
|
|
417
|
+
if (run.code === BUSY_EXIT) {
|
|
418
|
+
report.warn("gate not run: host busy, nothing pushed, retry later");
|
|
419
|
+
if (options.track)
|
|
420
|
+
options.track.gate = {
|
|
421
|
+
exit: run.code,
|
|
422
|
+
log: run.log,
|
|
423
|
+
logs: run.logs,
|
|
424
|
+
by: "command"
|
|
425
|
+
};
|
|
426
|
+
return BUSY_EXIT;
|
|
427
|
+
}
|
|
479
428
|
if (options.track)
|
|
480
429
|
options.track.gate = {
|
|
481
430
|
exit: run.code,
|
|
@@ -522,7 +471,7 @@ ${pushed.stderr.trim()}`
|
|
|
522
471
|
}
|
|
523
472
|
function hostLoad() {
|
|
524
473
|
try {
|
|
525
|
-
return Number(
|
|
474
|
+
return Number(readFileSync("/proc/loadavg", "utf8").split(" ")[0]);
|
|
526
475
|
} catch {
|
|
527
476
|
return loadavg()[0] ?? 0;
|
|
528
477
|
}
|
|
@@ -625,7 +574,7 @@ function deliver(options) {
|
|
|
625
574
|
} catch (error) {
|
|
626
575
|
if (!(error instanceof GitReadError)) throw error;
|
|
627
576
|
report.warn(error.message);
|
|
628
|
-
return
|
|
577
|
+
return 1;
|
|
629
578
|
}
|
|
630
579
|
});
|
|
631
580
|
options.onReceipt?.({
|
|
@@ -658,7 +607,7 @@ function deliverOnce(options) {
|
|
|
658
607
|
}
|
|
659
608
|
if (!fetch(ctx)) {
|
|
660
609
|
report.warn(`fetch from ${ctx.remote} failed`);
|
|
661
|
-
return
|
|
610
|
+
return 1;
|
|
662
611
|
}
|
|
663
612
|
const commits = undelivered(ctx.root, ctx.upstream, options.named);
|
|
664
613
|
const touched = touchedPaths(ctx.root, commits);
|
|
@@ -716,8 +665,8 @@ function deliverOnce(options) {
|
|
|
716
665
|
}
|
|
717
666
|
|
|
718
667
|
// src/git/mainline/delivery-events.ts
|
|
719
|
-
import { appendFileSync, mkdirSync as
|
|
720
|
-
import { dirname as
|
|
668
|
+
import { appendFileSync, mkdirSync as mkdirSync2 } from "fs";
|
|
669
|
+
import { dirname as dirname3 } from "path";
|
|
721
670
|
function deliveryEvents(setup) {
|
|
722
671
|
return (delivery) => {
|
|
723
672
|
const specs = leaseSpecs(setup.config);
|
|
@@ -730,7 +679,7 @@ function deliveryEvents(setup) {
|
|
|
730
679
|
const spec = installSpec(sync, setup.stateDir);
|
|
731
680
|
const state = spec ? installState(root, spec) : { hash: lockHash(root, paths), installed: false };
|
|
732
681
|
const { hash, installed } = state;
|
|
733
|
-
|
|
682
|
+
mkdirSync2(dirname3(events), { recursive: true });
|
|
734
683
|
appendFileSync(
|
|
735
684
|
events,
|
|
736
685
|
`${JSON.stringify({
|
|
@@ -765,22 +714,22 @@ function filesSessionGate(stateDir, leaseFiles = {}, pauseFile) {
|
|
|
765
714
|
|
|
766
715
|
// src/git/mainline/sync.ts
|
|
767
716
|
import { existsSync as existsSync4 } from "fs";
|
|
768
|
-
import { join as
|
|
717
|
+
import { join as join6 } from "path";
|
|
769
718
|
|
|
770
719
|
// src/git/mainline/identical-files.ts
|
|
771
|
-
import { spawnSync
|
|
720
|
+
import { spawnSync } from "child_process";
|
|
772
721
|
import {
|
|
773
|
-
closeSync
|
|
722
|
+
closeSync,
|
|
774
723
|
copyFileSync,
|
|
775
724
|
existsSync as existsSync3,
|
|
776
725
|
lstatSync,
|
|
777
726
|
mkdtempSync as mkdtempSync2,
|
|
778
|
-
openSync
|
|
779
|
-
readFileSync as
|
|
727
|
+
openSync,
|
|
728
|
+
readFileSync as readFileSync2,
|
|
780
729
|
renameSync as renameSync2,
|
|
781
|
-
rmSync as
|
|
730
|
+
rmSync as rmSync3
|
|
782
731
|
} from "fs";
|
|
783
|
-
import { join as
|
|
732
|
+
import { join as join5 } from "path";
|
|
784
733
|
var FILE_MODES = /* @__PURE__ */ new Set(["100644", "100755"]);
|
|
785
734
|
var GITLINK2 = "160000";
|
|
786
735
|
function refuse(path) {
|
|
@@ -795,14 +744,14 @@ function identical(cwd, path, mode, oid) {
|
|
|
795
744
|
if (!FILE_MODES.has(mode)) return false;
|
|
796
745
|
let current = cwd;
|
|
797
746
|
for (const segment of path.split("/")) {
|
|
798
|
-
current =
|
|
747
|
+
current = join5(current, segment);
|
|
799
748
|
if (lstatSync(current).isSymbolicLink()) return false;
|
|
800
749
|
}
|
|
801
750
|
const stat = lstatSync(current);
|
|
802
751
|
if (!stat.isFile()) return false;
|
|
803
752
|
if (Boolean(stat.mode & 73) !== (mode === "100755")) return false;
|
|
804
|
-
const blob =
|
|
805
|
-
return blob.status === 0 &&
|
|
753
|
+
const blob = spawnSync("git", ["cat-file", "blob", oid], { cwd });
|
|
754
|
+
return blob.status === 0 && readFileSync2(current).equals(blob.stdout);
|
|
806
755
|
}
|
|
807
756
|
function directoriesOf(paths) {
|
|
808
757
|
const dirs = /* @__PURE__ */ new Set();
|
|
@@ -835,8 +784,8 @@ function adopt(cwd, target, env) {
|
|
|
835
784
|
const [, mode = "", oid = "", path = ""] = match;
|
|
836
785
|
if (existing.has(path)) continue;
|
|
837
786
|
if (trackedDirs.has(path)) continue;
|
|
838
|
-
if (!lstatSync(
|
|
839
|
-
const leftCheckout = mode === GITLINK2 && existsSync3(
|
|
787
|
+
if (!lstatSync(join5(cwd, path), { throwIfNoEntry: false })) continue;
|
|
788
|
+
const leftCheckout = mode === GITLINK2 && existsSync3(join5(cwd, path, ".git"));
|
|
840
789
|
if (!leftCheckout && !identical(cwd, path, mode, oid)) return refuse(path);
|
|
841
790
|
const added = git(
|
|
842
791
|
cwd,
|
|
@@ -861,9 +810,9 @@ function resetKeepingIdenticalFiles(cwd, target) {
|
|
|
861
810
|
let temporary;
|
|
862
811
|
let movedHead = false;
|
|
863
812
|
try {
|
|
864
|
-
fd =
|
|
813
|
+
fd = openSync(lock, "wx");
|
|
865
814
|
temporary = mkdtempSync2(`${index}.sync-`);
|
|
866
|
-
const scratch =
|
|
815
|
+
const scratch = join5(temporary, "index");
|
|
867
816
|
copyFileSync(index, scratch);
|
|
868
817
|
const env = { GIT_INDEX_FILE: scratch };
|
|
869
818
|
const refused = adopt(cwd, target, env);
|
|
@@ -872,10 +821,10 @@ function resetKeepingIdenticalFiles(cwd, target) {
|
|
|
872
821
|
if (moved.status !== 0) return moved;
|
|
873
822
|
movedHead = true;
|
|
874
823
|
copyFileSync(scratch, lock);
|
|
875
|
-
|
|
824
|
+
closeSync(fd);
|
|
876
825
|
fd = void 0;
|
|
877
826
|
renameSync2(lock, index);
|
|
878
|
-
|
|
827
|
+
rmSync3(temporary, { recursive: true, force: true });
|
|
879
828
|
return moved;
|
|
880
829
|
} catch (error) {
|
|
881
830
|
const recovery = movedHead ? `; HEAD moved, recovery index kept at ${temporary}/index` : "";
|
|
@@ -883,10 +832,10 @@ function resetKeepingIdenticalFiles(cwd, target) {
|
|
|
883
832
|
return { status: 1, stdout: "", stderr: `${reason}${recovery}
|
|
884
833
|
` };
|
|
885
834
|
} finally {
|
|
886
|
-
if (fd !== void 0)
|
|
835
|
+
if (fd !== void 0) closeSync(fd);
|
|
887
836
|
if (temporary !== void 0 && !movedHead)
|
|
888
|
-
|
|
889
|
-
if (fd !== void 0 && !movedHead && existsSync3(lock))
|
|
837
|
+
rmSync3(temporary, { recursive: true, force: true });
|
|
838
|
+
if (fd !== void 0 && !movedHead && existsSync3(lock)) rmSync3(lock);
|
|
890
839
|
}
|
|
891
840
|
}
|
|
892
841
|
|
|
@@ -902,7 +851,7 @@ var IN_PROGRESS = [
|
|
|
902
851
|
];
|
|
903
852
|
function inProgress(ctx) {
|
|
904
853
|
for (const marker of IN_PROGRESS) {
|
|
905
|
-
if (existsSync4(
|
|
854
|
+
if (existsSync4(join6(ctx.gitDir, marker)))
|
|
906
855
|
return `${marker} is present; another git command is running or unfinished`;
|
|
907
856
|
}
|
|
908
857
|
return null;
|
|
@@ -930,7 +879,7 @@ function syncMainline(options) {
|
|
|
930
879
|
} catch (error) {
|
|
931
880
|
if (!(error instanceof GitReadError)) throw error;
|
|
932
881
|
options.report.warn(error.message);
|
|
933
|
-
return
|
|
882
|
+
return 1;
|
|
934
883
|
}
|
|
935
884
|
});
|
|
936
885
|
}
|
|
@@ -957,7 +906,7 @@ function syncOnce(options) {
|
|
|
957
906
|
}
|
|
958
907
|
if (git(ctx.root, ["fetch", "-q", ctx.remote, ctx.mainline]).status !== 0) {
|
|
959
908
|
report.warn(`fetch from ${ctx.remote} failed`);
|
|
960
|
-
return
|
|
909
|
+
return 1;
|
|
961
910
|
}
|
|
962
911
|
const { carried, missing } = cherry(ctx.root, ctx.upstream);
|
|
963
912
|
if (missing.length > 0) {
|
|
@@ -1139,7 +1088,7 @@ var mainlineDeliver = (setup, context, report) => {
|
|
|
1139
1088
|
...config.gate === void 0 ? {} : { gate: config.gate },
|
|
1140
1089
|
tree: gateTreePath(setup),
|
|
1141
1090
|
// Gate output lives in the state dir whatever the gate tree is, unless log_dir says.
|
|
1142
|
-
logDir:
|
|
1091
|
+
logDir: join7(setup.stateDir, "gate-logs"),
|
|
1143
1092
|
links: config.worktrees?.linkFromMain ?? [],
|
|
1144
1093
|
leases: leaseSpecs(config),
|
|
1145
1094
|
store: filesSessionGate(setup.stateDir, setup.leaseFiles, setup.pauseFile),
|
|
@@ -1161,4 +1110,4 @@ export {
|
|
|
1161
1110
|
mainlineDeliver,
|
|
1162
1111
|
mainlineSync
|
|
1163
1112
|
};
|
|
1164
|
-
//# sourceMappingURL=mainline-
|
|
1113
|
+
//# sourceMappingURL=mainline-6PBT3VNR.js.map
|
|
@@ -3,11 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-73AKO4UL.js";
|
|
4
4
|
import {
|
|
5
5
|
marketplaceSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JANBBPKP.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError,
|
|
9
|
-
one
|
|
10
|
-
|
|
9
|
+
one,
|
|
10
|
+
unknownSubcommand
|
|
11
|
+
} from "./chunk-Y6NFETNG.js";
|
|
11
12
|
import {
|
|
12
13
|
containedPath,
|
|
13
14
|
readLocalMarketplace
|
|
@@ -148,7 +149,7 @@ var marketplaceCommand = {
|
|
|
148
149
|
);
|
|
149
150
|
return 0;
|
|
150
151
|
}
|
|
151
|
-
context.ui.table(
|
|
152
|
+
context.ui.results.table(
|
|
152
153
|
plugins.map((plugin) => [
|
|
153
154
|
plugin.name,
|
|
154
155
|
String(plugin.description ?? "")
|
|
@@ -156,10 +157,10 @@ var marketplaceCommand = {
|
|
|
156
157
|
);
|
|
157
158
|
return 0;
|
|
158
159
|
}
|
|
159
|
-
if (verb !== "export"
|
|
160
|
-
throw
|
|
161
|
-
|
|
162
|
-
);
|
|
160
|
+
if (verb !== "export")
|
|
161
|
+
throw unknownSubcommand("marketplace", verb, ["list", "export"]);
|
|
162
|
+
if (!name || extra.length)
|
|
163
|
+
throw new ArgumentError("marketplace export takes exactly one plugin");
|
|
163
164
|
const output = one(context.args, "output");
|
|
164
165
|
if (!output)
|
|
165
166
|
throw new ArgumentError("Provide --output for the exported plugin");
|
|
@@ -188,4 +189,4 @@ var marketplaceCommand = {
|
|
|
188
189
|
export {
|
|
189
190
|
marketplaceCommand
|
|
190
191
|
};
|
|
191
|
-
//# sourceMappingURL=marketplace-
|
|
192
|
+
//# sourceMappingURL=marketplace-2X3OOEPW.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpSpec
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-UVTGY2R3.js";
|
|
4
|
+
import "./chunk-JPYQDOEW.js";
|
|
5
5
|
|
|
6
6
|
// src/commands/mcp.ts
|
|
7
7
|
async function run(context) {
|
|
8
|
-
const { executeMcpCommand } = await import("./run-
|
|
8
|
+
const { executeMcpCommand } = await import("./run-VGJDMA2O.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-MVQVMAKJ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-NQPURJT5.js";
|
|
5
5
|
import {
|
|
6
6
|
ArgumentError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Y6NFETNG.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/harness/mcp.ts
|
|
10
10
|
import { McpServer } from "@modelcontextprotocol/server";
|
|
@@ -190,4 +190,4 @@ async function runPtyMcp(context) {
|
|
|
190
190
|
export {
|
|
191
191
|
runPtyMcp
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=mcp-
|
|
193
|
+
//# sourceMappingURL=mcp-PBTQ5SJW.js.map
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
modelsSpec
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import
|
|
3
|
+
} from "./chunk-7DJQASH3.js";
|
|
4
|
+
import "./chunk-5NDUWEMW.js";
|
|
5
|
+
import {
|
|
6
|
+
ArgumentError
|
|
7
|
+
} from "./chunk-Y6NFETNG.js";
|
|
6
8
|
import {
|
|
7
9
|
embeddingModels
|
|
8
10
|
} from "./chunk-PMJG2CXF.js";
|
|
@@ -11,13 +13,15 @@ import {
|
|
|
11
13
|
var modelsCommand = {
|
|
12
14
|
...modelsSpec,
|
|
13
15
|
run(context) {
|
|
16
|
+
if (context.args.positional.length > 0)
|
|
17
|
+
throw new ArgumentError(`unexpected ${context.args.positional[0]}`);
|
|
14
18
|
const models = embeddingModels();
|
|
15
19
|
if (context.args.flags.has("json")) {
|
|
16
20
|
context.ui.data(`${JSON.stringify(models, null, 2)}
|
|
17
21
|
`);
|
|
18
22
|
return 0;
|
|
19
23
|
}
|
|
20
|
-
context.ui.table(
|
|
24
|
+
context.ui.results.table(
|
|
21
25
|
models.map((model) => [
|
|
22
26
|
model.name,
|
|
23
27
|
`${model.modelId} (${model.dtype}; dimensions: ${model.dimensions.join(", ")})`
|
|
@@ -29,4 +33,4 @@ var modelsCommand = {
|
|
|
29
33
|
export {
|
|
30
34
|
modelsCommand
|
|
31
35
|
};
|
|
32
|
-
//# sourceMappingURL=models-
|
|
36
|
+
//# sourceMappingURL=models-XSF45MCD.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
change
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HES44LTA.js";
|
|
4
|
+
import "./chunk-3V37OZQH.js";
|
|
5
5
|
import "./chunk-Z6WRFOFT.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-Y6NFETNG.js";
|
|
7
|
+
import "./chunk-FQLCD4HU.js";
|
|
8
|
+
import "./chunk-GUHOEIHP.js";
|
|
8
9
|
import "./chunk-IJBSOWHK.js";
|
|
9
10
|
import "./chunk-GJXOFDJT.js";
|
|
10
11
|
import "./chunk-PMJG2CXF.js";
|
|
@@ -14,4 +15,4 @@ var run = (context) => change(context, "pause");
|
|
|
14
15
|
export {
|
|
15
16
|
run
|
|
16
17
|
};
|
|
17
|
-
//# sourceMappingURL=pause-
|
|
18
|
+
//# sourceMappingURL=pause-CMZOIHTJ.js.map
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-4NDEP7HU.js";
|
|
4
4
|
import {
|
|
5
5
|
remoteCatalog
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HYXOJYVR.js";
|
|
7
7
|
import "./chunk-RMATE45Z.js";
|
|
8
8
|
import "./chunk-73AKO4UL.js";
|
|
9
9
|
import {
|
|
10
10
|
previewSpec
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WBPVNCQO.js";
|
|
12
12
|
import {
|
|
13
13
|
ArgumentError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Y6NFETNG.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/preview.ts
|
|
17
17
|
var previewCommand = {
|
|
@@ -88,4 +88,4 @@ ${entry.preview.example}
|
|
|
88
88
|
export {
|
|
89
89
|
previewCommand
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=preview-
|
|
91
|
+
//# sourceMappingURL=preview-465CQJBQ.js.map
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectSpec
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HF5D6B2U.js";
|
|
4
|
+
import "./chunk-5NDUWEMW.js";
|
|
5
|
+
import "./chunk-JPYQDOEW.js";
|
|
6
|
+
import "./chunk-V4NPDK6X.js";
|
|
6
7
|
import {
|
|
7
8
|
ArgumentError,
|
|
8
9
|
many,
|
|
9
|
-
one
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
one,
|
|
11
|
+
unknownSubcommand
|
|
12
|
+
} from "./chunk-Y6NFETNG.js";
|
|
12
13
|
import {
|
|
13
14
|
ProjectError
|
|
14
15
|
} from "./chunk-TYY5TYHF.js";
|
|
15
16
|
|
|
16
17
|
// src/commands/project.ts
|
|
18
|
+
var VERBS = ["add", "remove", "import-mcp", "exec-mcp"];
|
|
17
19
|
async function route(context, verb, name) {
|
|
18
20
|
if (verb === "exec-mcp") {
|
|
19
21
|
if (name === void 0 || context.args.flags.has("check") || context.args.flags.has("write") || many(context.args, "source").length > 0 || many(context.args, "name").length > 0) {
|
|
20
22
|
throw new ArgumentError("exec-mcp takes only a declared MCP alias");
|
|
21
23
|
}
|
|
22
|
-
const { runExecMcp } = await import("./exec-mcp-
|
|
24
|
+
const { runExecMcp } = await import("./exec-mcp-AENALAHJ.js");
|
|
23
25
|
return await runExecMcp(context, name);
|
|
24
26
|
}
|
|
25
27
|
if (verb === "import-mcp") {
|
|
@@ -28,14 +30,15 @@ async function route(context, verb, name) {
|
|
|
28
30
|
"import-mcp takes --source, --name and --write; no positional name or --check"
|
|
29
31
|
);
|
|
30
32
|
}
|
|
31
|
-
const { importMcp } = await import("./import-mcp-
|
|
33
|
+
const { importMcp } = await import("./import-mcp-FIXFLUDM.js");
|
|
32
34
|
return importMcp(context);
|
|
33
35
|
}
|
|
34
36
|
if (many(context.args, "source").length > 0 || one(context.args, "name") !== void 0 || context.args.flags.has("write")) {
|
|
35
37
|
throw new ArgumentError("--source, --name and --write require import-mcp");
|
|
36
38
|
}
|
|
37
|
-
const apply = await import("./apply-
|
|
39
|
+
const apply = await import("./apply-3PWUO4J5.js");
|
|
38
40
|
if (verb === void 0) return apply.projectOrCheck(context);
|
|
41
|
+
if (!VERBS.includes(verb)) throw unknownSubcommand("project", verb, VERBS);
|
|
39
42
|
if (context.args.flags.has("check")) {
|
|
40
43
|
throw new ArgumentError("--check takes no subcommand");
|
|
41
44
|
}
|
|
@@ -43,8 +46,7 @@ async function route(context, verb, name) {
|
|
|
43
46
|
throw new ArgumentError(`${verb} needs a name`);
|
|
44
47
|
}
|
|
45
48
|
if (verb === "add") return apply.addAndProject(context, name);
|
|
46
|
-
|
|
47
|
-
throw new ArgumentError(`unknown subcommand ${verb}`);
|
|
49
|
+
return apply.removeAndProject(context, name);
|
|
48
50
|
}
|
|
49
51
|
var projectCommand = {
|
|
50
52
|
...projectSpec,
|
|
@@ -67,4 +69,4 @@ var projectCommand = {
|
|
|
67
69
|
export {
|
|
68
70
|
projectCommand
|
|
69
71
|
};
|
|
70
|
-
//# sourceMappingURL=project-
|
|
72
|
+
//# sourceMappingURL=project-FZGJRG2U.js.map
|