@modootoday/pmcp 0.22.11 → 0.22.13
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 +836 -0
- package/dist/{apply-DXM56NV3.js → apply-OIKQ5SIY.js} +21 -17
- package/dist/{available-BFXLII4A.js → available-Z5MIDFPH.js} +3 -3
- package/dist/{broadcast-DZGMSZRG.js → broadcast-BF2QL3O7.js} +6 -5
- package/dist/{chunk-TU2SG5BM.js → chunk-24L4MO7H.js} +2 -2
- package/dist/{chunk-7I7O7ZNT.js → chunk-3V37OZQH.js} +5 -3
- package/dist/{chunk-PEMMV5YQ.js → chunk-4O4ZOSBQ.js} +3 -3
- package/dist/{chunk-7ZWSCSZM.js → chunk-5IZFEVPW.js} +2 -2
- package/dist/{chunk-TQODDSIG.js → chunk-5KWDQFVY.js} +4 -4
- package/dist/{chunk-R5MT42JS.js → chunk-5OFQVW2K.js} +2 -2
- package/dist/{chunk-REFEJ4VJ.js → chunk-5PNS6V5C.js} +2 -2
- package/dist/chunk-65BW7Y6O.js +40 -0
- package/dist/{chunk-IATFWEAX.js → chunk-733WVP2R.js} +19 -7
- package/dist/{chunk-URCQLONP.js → chunk-737BENAU.js} +8 -8
- package/dist/{chunk-GFOQDLPL.js → chunk-74O7KZUH.js} +13 -3
- package/dist/{chunk-5ZUEPPFZ.js → chunk-7ZOQELXR.js} +9 -7
- package/dist/{chunk-ENOMRAFS.js → chunk-A6DARDQ4.js} +3 -3
- package/dist/{chunk-PUIWESU3.js → chunk-A7XCUR2C.js} +4 -4
- package/dist/{chunk-P4N7DBD5.js → chunk-ANJMLKBR.js} +2 -2
- package/dist/chunk-BN4XAXMQ.js +65 -0
- package/dist/chunk-FOLA4EUJ.js +261 -0
- package/dist/chunk-FQLCD4HU.js +24 -0
- package/dist/chunk-G4ATQPQI.js +35 -0
- package/dist/{chunk-TZWLT6FD.js → chunk-GNVME5AD.js} +2 -2
- package/dist/{chunk-OEH47H6A.js → chunk-GUHOEIHP.js} +3 -20
- package/dist/{chunk-PIVKGKMR.js → chunk-ISGBOJT7.js} +3 -3
- package/dist/{chunk-RPCIROW7.js → chunk-J3QUG6O5.js} +2 -2
- package/dist/{chunk-B2WRYGHJ.js → chunk-JW5NMQTU.js} +3 -3
- package/dist/{chunk-2GOR4ZKO.js → chunk-K2VU3B4W.js} +99 -27
- package/dist/{chunk-5QKXEWDB.js → chunk-MHKY6TNF.js} +6 -4
- package/dist/chunk-N7ANFMA5.js +171 -0
- package/dist/{chunk-URP3QIWI.js → chunk-NNGGNXF2.js} +2 -2
- package/dist/{chunk-7CSUKCU7.js → chunk-P5D6RKMT.js} +13 -94
- package/dist/{chunk-EA2OSLFJ.js → chunk-QBSJL3SP.js} +42 -31
- package/dist/chunk-SGFTHKKS.js +86 -0
- package/dist/{chunk-Z5RNKEHF.js → chunk-T4GVN7XO.js} +5 -5
- package/dist/chunk-T6C3TSTO.js +99 -0
- package/dist/{chunk-NRBQK6UX.js → chunk-TYY5TYHF.js} +14 -1
- package/dist/{chunk-VEOYGFEQ.js → chunk-UED3RH53.js} +2 -2
- package/dist/{chunk-37RGCHTK.js → chunk-VNZTULFD.js} +3 -3
- package/dist/chunk-VSTUKACC.js +7 -0
- package/dist/{chunk-A4PKLESO.js → chunk-WFY7ATSZ.js} +8 -4
- package/dist/{chunk-KPKMEUUH.js → chunk-XSWF7APE.js} +3 -3
- package/dist/{chunk-GIDKCJVZ.js → chunk-ZKB7ZNKY.js} +4 -4
- package/dist/{chunk-ZEERJLE5.js → chunk-ZS5IDQFJ.js} +6 -6
- package/dist/{cli-JXPJFHUA.js → cli-FSSYFCV3.js} +15 -9
- package/dist/{cli-34EDFXJA.js → cli-IHVNE3WL.js} +9 -9
- package/dist/cli.js +19 -13
- package/dist/{completion-25CHR7SR.js → completion-ZTTJVV4C.js} +8 -6
- package/dist/{diagnostics-4PQSTI2X.js → diagnostics-XC5L6Z3E.js} +11 -7
- package/dist/{doctor-MHFALEWR.js → doctor-FGDSUBR3.js} +21 -17
- package/dist/{entry-25VWXTCW.js → entry-NNB2CQLZ.js} +20 -16
- package/dist/{exec-mcp-OQP5OU26.js → exec-mcp-ZU3Z3XT6.js} +16 -12
- package/dist/{harness-DTXPIWKL.js → harness-B7ANLH5M.js} +5 -5
- package/dist/harness-launch-gate.js +9 -5
- package/dist/harness-worker.js +11 -7
- package/dist/heavy-IIZBO4YM.js +1909 -0
- package/dist/hook-body.js +69 -21
- package/dist/{hooks-E33GKFRS.js → hooks-IEJTW7BV.js} +5 -5
- package/dist/{host-4YG67ZQ2.js → host-5P4D7GSE.js} +18 -14
- package/dist/host-XXWQ23LD.js +28 -0
- package/dist/{host-run-AJR2THEY.js → host-run-AEWHFVQL.js} +11 -7
- package/dist/http.js +1 -1
- package/dist/{import-mcp-MGDRREMJ.js → import-mcp-BQM5DKYH.js} +16 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -14
- package/dist/{init-RMTFPDJQ.js → init-L6GUO3PW.js} +2 -2
- package/dist/{install-7V6NIA7W.js → install-OFVLR7TI.js} +3 -3
- package/dist/invoke-3BQ5NG3P.js +29 -0
- package/dist/{list-WJE6NS7Y.js → list-EU4MJOXA.js} +17 -13
- package/dist/{list-WK2IYUK7.js → list-WWYCGD3X.js} +4 -4
- package/dist/{logout-SZY5GBIH.js → logout-6DFDYJUI.js} +16 -12
- package/dist/{logs-UHJM7ZCL.js → logs-BRF6DBKG.js} +7 -6
- package/dist/{mailbox-YN6PG66A.js → mailbox-AQCTXO3H.js} +3 -3
- package/dist/{mailbox-NIMBOQPA.js → mailbox-QYA2LQSE.js} +9 -41
- package/dist/{mainline-74WCH4T4.js → mainline-O5AEHG3J.js} +69 -121
- package/dist/{marketplace-G4VQET5W.js → marketplace-TI5HFAHB.js} +2 -2
- package/dist/{mcp-AXHV547W.js → mcp-4R53HSGY.js} +2 -2
- package/dist/{mcp-BPTTJKWL.js → mcp-HR5JFUW7.js} +2 -2
- package/dist/{models-ISU4DCMA.js → models-63NQBSV3.js} +2 -2
- package/dist/{pause-CBZ3BTJL.js → pause-UF7FQDJX.js} +6 -5
- package/dist/{preview-DT7DWG5F.js → preview-WSESS2UN.js} +3 -3
- package/dist/{project-6GDQBLDC.js → project-JXXL24WN.js} +6 -6
- package/dist/{reindex-I7RYWCUR.js → reindex-3GPKAFBW.js} +5 -5
- package/dist/{report-ZHOHQ4PZ.js → report-JUSKQPAC.js} +7 -6
- package/dist/{resume-UJEWQ66P.js → resume-3WAROOQ3.js} +6 -5
- package/dist/{run-V4LBDW5O.js → run-VUUQS4WY.js} +5 -5
- package/dist/{run-5UM7WUTH.js → run-XRWU4L73.js} +14 -10
- package/dist/{serve-723OCAUT.js → serve-OEX5V5CD.js} +7 -7
- package/dist/{setup-SOUBEZ3H.js → setup-SWNAC2C7.js} +6 -4
- package/dist/{smoke-2FI5D74B.js → smoke-5BGJXAHX.js} +4 -4
- package/dist/{start-login-M425T4GS.js → start-login-MG26NDE3.js} +16 -12
- package/dist/{status-XAP66PLK.js → status-APADL7O2.js} +16 -12
- package/dist/{status-KN2ZE64O.js → status-GKCIVAAR.js} +6 -5
- package/dist/{status-QEFRBTOO.js → status-LH7Q255G.js} +18 -14
- package/dist/stdio.js +2 -2
- package/dist/{sweep-EPZCW63Q.js → sweep-VTVPDAPY.js} +6 -5
- package/dist/{test-TL7DRDMD.js → test-TK2J3IB7.js} +17 -13
- package/dist/{tui-DGGNATMI.js → tui-YTPHHKCW.js} +5 -5
- package/dist/{unbroadcast-N6LXHAMT.js → unbroadcast-CH7BAQ2G.js} +6 -5
- package/dist/{validate-KFBCUFI4.js → validate-5QVZBE6W.js} +4 -4
- package/dist/wait-4HYJJAWO.js +141 -0
- package/dist/{worker-N7EOJVI3.js → worker-RBXYAMR4.js} +13 -9
- package/dist/{worktree-create-KMXPQXIQ.js → worktree-create-FEZNQUQ6.js} +2 -2
- package/docs/commands.md +48 -12
- package/docs/git-workflow.md +51 -0
- package/docs/hooks.md +8 -1
- package/docs/project-configuration.md +134 -18
- package/docs/upgrading.md +11 -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/dist/chunk-L7LQEVTE.js +0 -7
- package/dist/host-W6B2O44Q.js +0 -24
- package/dist/invoke-JRFOK374.js +0 -25
|
@@ -1,19 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
harnessSpec,
|
|
3
|
+
tuiSpec
|
|
4
|
+
} from "./chunk-3Y3HDMHA.js";
|
|
1
5
|
import {
|
|
2
6
|
marketplaceSpec
|
|
3
7
|
} from "./chunk-2P4Z2NUX.js";
|
|
8
|
+
import {
|
|
9
|
+
mcpSpec
|
|
10
|
+
} from "./chunk-E3DQB5LS.js";
|
|
4
11
|
import {
|
|
5
12
|
mailboxSpec
|
|
6
13
|
} from "./chunk-JWRZDYB5.js";
|
|
7
|
-
import {
|
|
8
|
-
harnessSpec,
|
|
9
|
-
tuiSpec
|
|
10
|
-
} from "./chunk-3Y3HDMHA.js";
|
|
11
14
|
import {
|
|
12
15
|
gitSpec
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-74O7KZUH.js";
|
|
14
17
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
heavySpec
|
|
19
|
+
} from "./chunk-BN4XAXMQ.js";
|
|
20
|
+
import {
|
|
21
|
+
waitSpec
|
|
22
|
+
} from "./chunk-G4ATQPQI.js";
|
|
17
23
|
import {
|
|
18
24
|
sessionsSpec
|
|
19
25
|
} from "./chunk-LMUBBIE2.js";
|
|
@@ -61,19 +67,19 @@ var completionSpec = {
|
|
|
61
67
|
var COMMANDS = [
|
|
62
68
|
{
|
|
63
69
|
...statusSpec,
|
|
64
|
-
load: async () => (await import("./status-
|
|
70
|
+
load: async () => (await import("./status-LH7Q255G.js")).statusCommand
|
|
65
71
|
},
|
|
66
|
-
{ ...initSpec, load: async () => (await import("./init-
|
|
67
|
-
{ ...hooksSpec, load: async () => (await import("./hooks-
|
|
68
|
-
{ ...serveSpec, load: async () => (await import("./serve-
|
|
69
|
-
{ ...listSpec, load: async () => (await import("./list-
|
|
72
|
+
{ ...initSpec, load: async () => (await import("./init-L6GUO3PW.js")).initCommand },
|
|
73
|
+
{ ...hooksSpec, load: async () => (await import("./hooks-IEJTW7BV.js")).hooksCommand },
|
|
74
|
+
{ ...serveSpec, load: async () => (await import("./serve-OEX5V5CD.js")).serveCommand },
|
|
75
|
+
{ ...listSpec, load: async () => (await import("./list-WWYCGD3X.js")).listCommand },
|
|
70
76
|
{
|
|
71
77
|
...indexSpec,
|
|
72
|
-
load: async () => (await import("./reindex-
|
|
78
|
+
load: async () => (await import("./reindex-3GPKAFBW.js")).indexCommand
|
|
73
79
|
},
|
|
74
80
|
{
|
|
75
81
|
...modelsSpec,
|
|
76
|
-
load: async () => (await import("./models-
|
|
82
|
+
load: async () => (await import("./models-63NQBSV3.js")).modelsCommand
|
|
77
83
|
},
|
|
78
84
|
{
|
|
79
85
|
...loginSpec,
|
|
@@ -89,52 +95,57 @@ var COMMANDS = [
|
|
|
89
95
|
},
|
|
90
96
|
{
|
|
91
97
|
...availableSpec,
|
|
92
|
-
load: async () => (await import("./available-
|
|
98
|
+
load: async () => (await import("./available-Z5MIDFPH.js")).availableCommand
|
|
93
99
|
},
|
|
94
100
|
{
|
|
95
101
|
...previewSpec,
|
|
96
|
-
load: async () => (await import("./preview-
|
|
102
|
+
load: async () => (await import("./preview-WSESS2UN.js")).previewCommand
|
|
97
103
|
},
|
|
98
104
|
{
|
|
99
105
|
...installSpec,
|
|
100
|
-
load: async () => (await import("./install-
|
|
106
|
+
load: async () => (await import("./install-OFVLR7TI.js")).installCommand
|
|
101
107
|
},
|
|
102
|
-
{ ...syncSpec, load: async () => (await import("./install-
|
|
108
|
+
{ ...syncSpec, load: async () => (await import("./install-OFVLR7TI.js")).syncCommand },
|
|
103
109
|
{
|
|
104
110
|
...projectSpec,
|
|
105
|
-
load: async () => (await import("./project-
|
|
111
|
+
load: async () => (await import("./project-JXXL24WN.js")).projectCommand
|
|
106
112
|
},
|
|
107
113
|
{
|
|
108
114
|
...doctorSpec,
|
|
109
|
-
load: async () => (await import("./doctor-
|
|
115
|
+
load: async () => (await import("./doctor-FGDSUBR3.js")).doctorCommand
|
|
110
116
|
},
|
|
111
117
|
{
|
|
112
118
|
...sessionsSpec,
|
|
113
|
-
load: async () => (await import("./cli-
|
|
119
|
+
load: async () => (await import("./cli-IHVNE3WL.js")).sessionsCommand
|
|
120
|
+
},
|
|
121
|
+
{ ...logsSpec, load: async () => (await import("./logs-BRF6DBKG.js")).logsCommand },
|
|
122
|
+
{ ...gitSpec, load: async () => (await import("./cli-FSSYFCV3.js")).gitCommand },
|
|
123
|
+
{
|
|
124
|
+
...heavySpec,
|
|
125
|
+
load: async () => (await import("./heavy-IIZBO4YM.js")).heavyCommand
|
|
114
126
|
},
|
|
115
|
-
{ ...
|
|
116
|
-
{ ...
|
|
117
|
-
{ ...mcpSpec, load: async () => (await import("./mcp-BPTTJKWL.js")).mcpCommand },
|
|
127
|
+
{ ...waitSpec, load: async () => (await import("./wait-4HYJJAWO.js")).waitCommand },
|
|
128
|
+
{ ...mcpSpec, load: async () => (await import("./mcp-HR5JFUW7.js")).mcpCommand },
|
|
118
129
|
{
|
|
119
130
|
...validateSpec,
|
|
120
|
-
load: async () => (await import("./validate-
|
|
131
|
+
load: async () => (await import("./validate-5QVZBE6W.js")).validateCommand
|
|
121
132
|
},
|
|
122
133
|
{
|
|
123
134
|
...mailboxSpec,
|
|
124
|
-
load: async () => (await import("./mailbox-
|
|
135
|
+
load: async () => (await import("./mailbox-AQCTXO3H.js")).mailboxCommand
|
|
125
136
|
},
|
|
126
137
|
{
|
|
127
138
|
...harnessSpec,
|
|
128
|
-
load: async () => (await import("./harness-
|
|
139
|
+
load: async () => (await import("./harness-B7ANLH5M.js")).harnessCommand
|
|
129
140
|
},
|
|
130
|
-
{ ...tuiSpec, load: async () => (await import("./tui-
|
|
141
|
+
{ ...tuiSpec, load: async () => (await import("./tui-YTPHHKCW.js")).tuiCommand },
|
|
131
142
|
{
|
|
132
143
|
...marketplaceSpec,
|
|
133
|
-
load: async () => (await import("./marketplace-
|
|
144
|
+
load: async () => (await import("./marketplace-TI5HFAHB.js")).marketplaceCommand
|
|
134
145
|
},
|
|
135
146
|
{
|
|
136
147
|
...completionSpec,
|
|
137
|
-
load: async () => (await import("./completion-
|
|
148
|
+
load: async () => (await import("./completion-ZTTJVV4C.js")).completionCommand
|
|
138
149
|
}
|
|
139
150
|
];
|
|
140
151
|
var PLANNED = [];
|
|
@@ -148,4 +159,4 @@ export {
|
|
|
148
159
|
PLANNED,
|
|
149
160
|
commandNamed
|
|
150
161
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
162
|
+
//# sourceMappingURL=chunk-QBSJL3SP.js.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
flockAvailable,
|
|
3
|
+
lockFile
|
|
4
|
+
} from "./chunk-DZ2MRTYT.js";
|
|
5
|
+
|
|
6
|
+
// src/git/mainline/lock.ts
|
|
7
|
+
import { spawnSync } from "child_process";
|
|
8
|
+
import {
|
|
9
|
+
closeSync,
|
|
10
|
+
mkdirSync,
|
|
11
|
+
openSync,
|
|
12
|
+
readFileSync,
|
|
13
|
+
rmSync,
|
|
14
|
+
writeFileSync
|
|
15
|
+
} from "fs";
|
|
16
|
+
import { dirname, join } from "path";
|
|
17
|
+
function flock(fd, args) {
|
|
18
|
+
const run = spawnSync("flock", [...args, "3"], {
|
|
19
|
+
stdio: ["ignore", "ignore", "pipe", fd]
|
|
20
|
+
});
|
|
21
|
+
if (run.error !== void 0)
|
|
22
|
+
throw new Error(`flock (util-linux) is required: ${run.error.message}`);
|
|
23
|
+
return run.status ?? 1;
|
|
24
|
+
}
|
|
25
|
+
function acquireHostLock(path, waitSeconds, onWait) {
|
|
26
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
27
|
+
if (!flockAvailable()) {
|
|
28
|
+
const now = lockFile(path, 0);
|
|
29
|
+
if (now) return now;
|
|
30
|
+
onWait?.();
|
|
31
|
+
return lockFile(path, waitSeconds * 1e3);
|
|
32
|
+
}
|
|
33
|
+
const fd = openSync(path, "a");
|
|
34
|
+
try {
|
|
35
|
+
if (flock(fd, ["-n"]) !== 0) {
|
|
36
|
+
onWait?.();
|
|
37
|
+
if (flock(fd, ["-w", String(waitSeconds)]) !== 0) {
|
|
38
|
+
closeSync(fd);
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
} catch (error) {
|
|
43
|
+
closeSync(fd);
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
46
|
+
let open = true;
|
|
47
|
+
return {
|
|
48
|
+
release: () => {
|
|
49
|
+
if (!open) return;
|
|
50
|
+
open = false;
|
|
51
|
+
closeSync(fd);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function holderFile(lockPath) {
|
|
56
|
+
return join(dirname(lockPath), "holder.json");
|
|
57
|
+
}
|
|
58
|
+
function writeHolder(lockPath, holder) {
|
|
59
|
+
const record = {
|
|
60
|
+
...holder,
|
|
61
|
+
pid: process.pid,
|
|
62
|
+
startedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
63
|
+
};
|
|
64
|
+
writeFileSync(holderFile(lockPath), `${JSON.stringify(record)}
|
|
65
|
+
`);
|
|
66
|
+
}
|
|
67
|
+
function removeHolder(lockPath) {
|
|
68
|
+
if (readHolder(lockPath)?.pid === process.pid)
|
|
69
|
+
rmSync(holderFile(lockPath), { force: true });
|
|
70
|
+
}
|
|
71
|
+
function readHolder(lockPath) {
|
|
72
|
+
try {
|
|
73
|
+
return JSON.parse(readFileSync(holderFile(lockPath), "utf8"));
|
|
74
|
+
} catch {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
flock,
|
|
81
|
+
acquireHostLock,
|
|
82
|
+
writeHolder,
|
|
83
|
+
removeHolder,
|
|
84
|
+
readHolder
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=chunk-SGFTHKKS.js.map
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
observeSession,
|
|
8
8
|
openGroup,
|
|
9
9
|
runOperation
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ISGBOJT7.js";
|
|
11
11
|
import {
|
|
12
12
|
nativeHostTools
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5IZFEVPW.js";
|
|
14
14
|
import {
|
|
15
15
|
locateExecutable
|
|
16
16
|
} from "./chunk-R2GPCZUX.js";
|
|
17
17
|
import {
|
|
18
18
|
artifact,
|
|
19
19
|
stateDirectory
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GNVME5AD.js";
|
|
21
21
|
import {
|
|
22
22
|
ptyBinary
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-733WVP2R.js";
|
|
24
24
|
import {
|
|
25
25
|
GroupStore,
|
|
26
26
|
privateJson
|
|
@@ -249,4 +249,4 @@ async function invoke(operation) {
|
|
|
249
249
|
export {
|
|
250
250
|
invoke
|
|
251
251
|
};
|
|
252
|
-
//# sourceMappingURL=chunk-
|
|
252
|
+
//# sourceMappingURL=chunk-T4GVN7XO.js.map
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ConfigError
|
|
3
|
+
} from "./chunk-GJXOFDJT.js";
|
|
4
|
+
|
|
5
|
+
// src/git/config/reader.ts
|
|
6
|
+
var Reader = class {
|
|
7
|
+
constructor(path, name, table2, keys) {
|
|
8
|
+
this.path = path;
|
|
9
|
+
this.name = name;
|
|
10
|
+
this.table = table2;
|
|
11
|
+
for (const key of Object.keys(table2)) {
|
|
12
|
+
if (!keys.includes(key))
|
|
13
|
+
throw new ConfigError(path, `unknown key [${name}] ${key}`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
path;
|
|
17
|
+
name;
|
|
18
|
+
table;
|
|
19
|
+
fail(key, expected) {
|
|
20
|
+
throw new ConfigError(
|
|
21
|
+
this.path,
|
|
22
|
+
`[${this.name}] ${key} must be ${expected}`
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
string(key) {
|
|
26
|
+
const value = this.table[key];
|
|
27
|
+
if (value === void 0) return void 0;
|
|
28
|
+
if (typeof value !== "string" || !value.trim())
|
|
29
|
+
this.fail(key, "a non-empty string");
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
envName(key) {
|
|
33
|
+
const value = this.string(key);
|
|
34
|
+
if (value !== void 0 && !/^[A-Z_][A-Z0-9_]{0,127}$/u.test(value))
|
|
35
|
+
this.fail(key, "an environment variable name (A-Z, 0-9, _)");
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
oneOf(key, values, fallback) {
|
|
39
|
+
const value = this.table[key] ?? fallback;
|
|
40
|
+
if (!values.includes(value)) this.fail(key, values.join(" | "));
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
bool(key, fallback) {
|
|
44
|
+
const value = this.table[key] ?? fallback;
|
|
45
|
+
if (typeof value !== "boolean") this.fail(key, "a boolean");
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
int(key, fallback) {
|
|
49
|
+
const value = this.table[key] ?? fallback;
|
|
50
|
+
if (!Number.isInteger(value) || value < 1)
|
|
51
|
+
this.fail(key, "a positive integer");
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
positive(key) {
|
|
55
|
+
const value = this.table[key];
|
|
56
|
+
if (value === void 0) return void 0;
|
|
57
|
+
if (typeof value !== "number" || !(value > 0))
|
|
58
|
+
this.fail(key, "a positive number");
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
list(key) {
|
|
62
|
+
const value = this.table[key] ?? [];
|
|
63
|
+
if (!Array.isArray(value) || !value.every((v) => typeof v === "string"))
|
|
64
|
+
this.fail(key, "a list of strings");
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
argv(key) {
|
|
68
|
+
const value = this.list(key);
|
|
69
|
+
if (value.length === 0) return void 0;
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
// A table of environment variable names to string values.
|
|
73
|
+
envMap(key) {
|
|
74
|
+
const value = this.table[key] ?? {};
|
|
75
|
+
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
76
|
+
this.fail(key, "a table of variable names to strings");
|
|
77
|
+
for (const [name, text] of Object.entries(value)) {
|
|
78
|
+
if (!/^[A-Z_][A-Z0-9_]{0,127}$/u.test(name) || typeof text !== "string")
|
|
79
|
+
this.fail(key, "a table of variable names (A-Z, 0-9, _) to strings");
|
|
80
|
+
}
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
function table(path, name, value) {
|
|
85
|
+
if (value === void 0) return void 0;
|
|
86
|
+
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
87
|
+
throw new ConfigError(path, `[${name}] must be a table`);
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
function child(path, parent, name, key) {
|
|
91
|
+
return table(path, `${name}.${key}`, parent?.[key]);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
Reader,
|
|
96
|
+
table,
|
|
97
|
+
child
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=chunk-T6C3TSTO.js.map
|
|
@@ -21,6 +21,18 @@ function trackedFiles(root, recurse = false) {
|
|
|
21
21
|
return [];
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
function trackedGitlinks(root) {
|
|
25
|
+
try {
|
|
26
|
+
const out = execFileSync("git", ["ls-files", "-s", "-z"], {
|
|
27
|
+
cwd: root,
|
|
28
|
+
encoding: "utf8",
|
|
29
|
+
maxBuffer: 1 << 28
|
|
30
|
+
});
|
|
31
|
+
return out.split("\0").filter((entry) => entry.startsWith("160000 ")).map((entry) => entry.slice(entry.indexOf(" ") + 1));
|
|
32
|
+
} catch {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
24
36
|
function deriveName(dir, strip) {
|
|
25
37
|
const segments = dir.split("/");
|
|
26
38
|
if (segments.length > 1 && strip.includes(segments[0] ?? "")) {
|
|
@@ -98,8 +110,9 @@ export {
|
|
|
98
110
|
ProjectError,
|
|
99
111
|
RULES_DIR,
|
|
100
112
|
trackedFiles,
|
|
113
|
+
trackedGitlinks,
|
|
101
114
|
deriveName,
|
|
102
115
|
legacyLinks,
|
|
103
116
|
packageRuleOutputs
|
|
104
117
|
};
|
|
105
|
-
//# sourceMappingURL=chunk-
|
|
118
|
+
//# sourceMappingURL=chunk-TYY5TYHF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSkillServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5PNS6V5C.js";
|
|
4
4
|
import {
|
|
5
5
|
attachMailbox
|
|
6
6
|
} from "./chunk-JZKAJUVT.js";
|
|
@@ -84,4 +84,4 @@ export {
|
|
|
84
84
|
serveWithMailbox,
|
|
85
85
|
main
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=chunk-
|
|
87
|
+
//# sourceMappingURL=chunk-UED3RH53.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-5ZABTVSW.js";
|
|
4
4
|
import {
|
|
5
5
|
dependencies
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NNGGNXF2.js";
|
|
7
7
|
import {
|
|
8
8
|
interactiveEntry
|
|
9
9
|
} from "./chunk-LMT3PPXJ.js";
|
|
10
10
|
import {
|
|
11
11
|
assertNativeHost
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5IZFEVPW.js";
|
|
13
13
|
|
|
14
14
|
// src/tui/startup/host.ts
|
|
15
15
|
function terminalSupport() {
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
terminalSupport,
|
|
43
43
|
requireTerminal
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-VNZTULFD.js.map
|
|
@@ -3,7 +3,9 @@ var EXIT = {
|
|
|
3
3
|
ok: 0,
|
|
4
4
|
failure: 1,
|
|
5
5
|
usage: 2,
|
|
6
|
-
missingOptional: 3
|
|
6
|
+
missingOptional: 3,
|
|
7
|
+
// Not run because the host stayed busy; nothing changed, so a retry later is safe (EX_TEMPFAIL).
|
|
8
|
+
busy: 75
|
|
7
9
|
};
|
|
8
10
|
var ArgumentError = class extends Error {
|
|
9
11
|
constructor(message) {
|
|
@@ -16,10 +18,12 @@ function parseArgs(argv, specs = []) {
|
|
|
16
18
|
const positional = [];
|
|
17
19
|
const options = /* @__PURE__ */ new Map();
|
|
18
20
|
const flags = /* @__PURE__ */ new Set();
|
|
21
|
+
let passthrough;
|
|
19
22
|
for (let i = 0; i < argv.length; i += 1) {
|
|
20
23
|
const arg = argv[i];
|
|
21
24
|
if (arg === "--") {
|
|
22
|
-
|
|
25
|
+
passthrough = argv.slice(i + 1);
|
|
26
|
+
positional.push(...passthrough);
|
|
23
27
|
break;
|
|
24
28
|
}
|
|
25
29
|
if (!arg.startsWith("--")) {
|
|
@@ -49,7 +53,7 @@ function parseArgs(argv, specs = []) {
|
|
|
49
53
|
}
|
|
50
54
|
options.set(name, [...existing ?? [], value]);
|
|
51
55
|
}
|
|
52
|
-
return { positional, options, flags };
|
|
56
|
+
return passthrough === void 0 ? { positional, options, flags } : { positional, options, flags, passthrough };
|
|
53
57
|
}
|
|
54
58
|
function one(args, name) {
|
|
55
59
|
return args.options.get(name)?.[0];
|
|
@@ -109,4 +113,4 @@ export {
|
|
|
109
113
|
printCommandHelp,
|
|
110
114
|
printHelp
|
|
111
115
|
};
|
|
112
|
-
//# sourceMappingURL=chunk-
|
|
116
|
+
//# sourceMappingURL=chunk-WFY7ATSZ.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J3QUG6O5.js";
|
|
4
4
|
import {
|
|
5
5
|
readFixtures,
|
|
6
6
|
smoke
|
|
7
7
|
} from "./chunk-ARXCYFFZ.js";
|
|
8
8
|
import {
|
|
9
9
|
ArgumentError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WFY7ATSZ.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/hooks/smoke.ts
|
|
13
13
|
import { readFileSync } from "fs";
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
printSmoke,
|
|
51
51
|
run
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-XSWF7APE.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J3QUG6O5.js";
|
|
4
4
|
import {
|
|
5
5
|
readSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K2VU3B4W.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WFY7ATSZ.js";
|
|
10
10
|
|
|
11
11
|
// src/commands/mcp/server.ts
|
|
12
12
|
function serverFrom(context) {
|
|
@@ -25,4 +25,4 @@ function serverFrom(context) {
|
|
|
25
25
|
export {
|
|
26
26
|
serverFrom
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-ZKB7ZNKY.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
backupFiles
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ANJMLKBR.js";
|
|
4
4
|
import {
|
|
5
5
|
checkProject,
|
|
6
6
|
guardVersionProblems,
|
|
7
7
|
prepare,
|
|
8
8
|
present,
|
|
9
9
|
writeNative
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7ZOQELXR.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-K2VU3B4W.js";
|
|
25
25
|
import {
|
|
26
26
|
HOOK_DIRECTORY
|
|
27
27
|
} from "./chunk-ARXCYFFZ.js";
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
replaceFile,
|
|
31
31
|
replaceLink,
|
|
32
32
|
writeLock
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-733WVP2R.js";
|
|
34
34
|
import {
|
|
35
35
|
RULES_DIR,
|
|
36
36
|
legacyLinks
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-TYY5TYHF.js";
|
|
38
38
|
|
|
39
39
|
// src/project/apply/files.ts
|
|
40
40
|
import { mkdirSync } from "fs";
|
|
@@ -400,4 +400,4 @@ export {
|
|
|
400
400
|
unmanagedHooks,
|
|
401
401
|
describeHookProblem
|
|
402
402
|
};
|
|
403
|
-
//# sourceMappingURL=chunk-
|
|
403
|
+
//# sourceMappingURL=chunk-ZS5IDQFJ.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
gitSpec
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-74O7KZUH.js";
|
|
4
4
|
import "./chunk-XNML2KIC.js";
|
|
5
5
|
import {
|
|
6
6
|
ArgumentError,
|
|
7
7
|
one
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WFY7ATSZ.js";
|
|
9
9
|
|
|
10
10
|
// src/git/cli.ts
|
|
11
11
|
async function action(positional) {
|
|
12
12
|
const [verb, sub] = positional;
|
|
13
13
|
if (verb === "deliver")
|
|
14
|
-
return (await import("./mainline-
|
|
15
|
-
if (verb === "sync") return (await import("./mainline-
|
|
14
|
+
return (await import("./mainline-O5AEHG3J.js")).mainlineDeliver;
|
|
15
|
+
if (verb === "sync") return (await import("./mainline-O5AEHG3J.js")).mainlineSync;
|
|
16
16
|
if (verb !== "worktree")
|
|
17
|
-
throw new ArgumentError("Use worktree, deliver or
|
|
17
|
+
throw new ArgumentError("Use worktree, deliver, sync or affected");
|
|
18
18
|
if (sub === "create")
|
|
19
|
-
return (await import("./worktree-create-
|
|
19
|
+
return (await import("./worktree-create-FEZNQUQ6.js")).worktreeCreate;
|
|
20
20
|
if (sub === "list")
|
|
21
21
|
return (await import("./worktree-list-WH6OX6U7.js")).worktreeList;
|
|
22
22
|
if (sub === "sync")
|
|
@@ -25,10 +25,16 @@ async function action(positional) {
|
|
|
25
25
|
}
|
|
26
26
|
async function run(context) {
|
|
27
27
|
const [verb, sub] = context.args.positional;
|
|
28
|
+
if (verb === "affected")
|
|
29
|
+
return (await import("./affected-ZWO2F5EM.js")).gitAffected(context);
|
|
30
|
+
if (context.args.flags.has("tests-only") || context.args.options.has("head"))
|
|
31
|
+
throw new ArgumentError("--tests-only and --head require git affected");
|
|
28
32
|
if (context.args.flags.has("json") && !(verb === "worktree" && sub === "list") && verb !== "deliver")
|
|
29
|
-
throw new ArgumentError(
|
|
33
|
+
throw new ArgumentError(
|
|
34
|
+
"--json requires git worktree list, git deliver or git affected"
|
|
35
|
+
);
|
|
30
36
|
const act = await action(context.args.positional);
|
|
31
|
-
const { loadGit } = await import("./setup-
|
|
37
|
+
const { loadGit } = await import("./setup-SWNAC2C7.js");
|
|
32
38
|
const setup = loadGit(context.cwd, one(context.args, "config"), context.env);
|
|
33
39
|
if (setup instanceof Error) {
|
|
34
40
|
context.ui.error(setup.message);
|
|
@@ -45,4 +51,4 @@ var gitCommand = { ...gitSpec, run };
|
|
|
45
51
|
export {
|
|
46
52
|
gitCommand
|
|
47
53
|
};
|
|
48
|
-
//# sourceMappingURL=cli-
|
|
54
|
+
//# sourceMappingURL=cli-FSSYFCV3.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import "./chunk-XNML2KIC.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WFY7ATSZ.js";
|
|
10
10
|
|
|
11
11
|
// src/sessions/cli.ts
|
|
12
12
|
async function run(context) {
|
|
@@ -16,26 +16,26 @@ async function run(context) {
|
|
|
16
16
|
`unknown verb ${verb}; use ${SESSION_VERBS.join(", ")}`
|
|
17
17
|
);
|
|
18
18
|
if (verb === "status")
|
|
19
|
-
return (await import("./status-
|
|
19
|
+
return (await import("./status-GKCIVAAR.js")).status(context);
|
|
20
20
|
if (context.args.flags.has("json") && !JSON_VERBS.includes(verb))
|
|
21
21
|
throw new ArgumentError(`--json works with ${JSON_VERBS.join(", ")}`);
|
|
22
22
|
if (["send", "inbox", "ack", "reply"].includes(verb)) {
|
|
23
|
-
const mailbox = await import("./mailbox-
|
|
23
|
+
const mailbox = await import("./mailbox-QYA2LQSE.js");
|
|
24
24
|
if (verb === "send") return mailbox.send(context);
|
|
25
25
|
if (verb === "inbox") return mailbox.inbox(context);
|
|
26
26
|
if (verb === "ack") return mailbox.ack(context);
|
|
27
27
|
return mailbox.reply(context);
|
|
28
28
|
}
|
|
29
|
-
if (verb === "pause") return (await import("./pause-
|
|
30
|
-
if (verb === "resume") return (await import("./resume-
|
|
29
|
+
if (verb === "pause") return (await import("./pause-UF7FQDJX.js")).run(context);
|
|
30
|
+
if (verb === "resume") return (await import("./resume-3WAROOQ3.js")).run(context);
|
|
31
31
|
if (verb === "broadcast")
|
|
32
|
-
return (await import("./broadcast-
|
|
32
|
+
return (await import("./broadcast-BF2QL3O7.js")).run(context);
|
|
33
33
|
if (verb === "unbroadcast")
|
|
34
|
-
return (await import("./unbroadcast-
|
|
35
|
-
return (await import("./sweep-
|
|
34
|
+
return (await import("./unbroadcast-CH7BAQ2G.js")).run(context);
|
|
35
|
+
return (await import("./sweep-VTVPDAPY.js")).run(context);
|
|
36
36
|
}
|
|
37
37
|
var sessionsCommand = { ...sessionsSpec, run };
|
|
38
38
|
export {
|
|
39
39
|
sessionsCommand
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=cli-
|
|
41
|
+
//# sourceMappingURL=cli-IHVNE3WL.js.map
|