@modootoday/pmcp 0.25.0 → 0.26.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.
- 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-IPFJM2KD.js → affected-4FILH743.js} +174 -77
- package/dist/{apply-6XLLYLJT.js → apply-HJUCYQDQ.js} +17 -15
- package/dist/{broadcast-34CEG2NQ.js → broadcast-U7ZYOJWE.js} +4 -4
- package/dist/{chunk-BG6TONJO.js → chunk-2GL5L2G5.js} +2 -2
- package/dist/{chunk-PGZZI42O.js → chunk-2JUHFM4V.js} +2 -2
- package/dist/{chunk-UKR64U7J.js → chunk-374AZ4J4.js} +2 -2
- package/dist/{chunk-ISWR2XIU.js → chunk-3JOFDNL4.js} +2 -2
- package/dist/{chunk-2TXVOHRS.js → chunk-3KISMGVP.js} +4 -4
- package/dist/{chunk-SRSKCFFS.js → chunk-6XE3WW7S.js} +3 -3
- package/dist/{chunk-5MUD7FHP.js → chunk-7FHOSWNQ.js} +2 -2
- package/dist/{chunk-QYHM6554.js → chunk-7PBWLYCO.js} +3 -3
- package/dist/{chunk-PECS47OL.js → chunk-C7Y2MBCN.js} +3 -3
- package/dist/chunk-D7IDT7OA.js +21 -0
- package/dist/chunk-E272CFPS.js +14 -0
- package/dist/chunk-FLG7VRTC.js +1 -0
- package/dist/{chunk-3P6Y2BAO.js → chunk-FXDGW2IH.js} +3 -3
- package/dist/{chunk-RF6RDJYH.js → chunk-GIL3RBRX.js} +26 -19
- package/dist/{chunk-ARXCYFFZ.js → chunk-GQRDEIQA.js} +22 -2
- package/dist/chunk-J43Z4O3G.js +7 -0
- package/dist/chunk-KLIYFD3W.js +32 -0
- package/dist/{chunk-UQHJUTDW.js → chunk-KQV2EPAP.js} +2 -2
- package/dist/{chunk-DWHM5BAY.js → chunk-LCPCRZ7N.js} +2 -2
- package/dist/{chunk-MBHI2TKQ.js → chunk-NQZMGQFG.js} +5 -5
- package/dist/{chunk-SSQ6EWNA.js → chunk-OBCBCLS2.js} +7 -7
- package/dist/{chunk-LZVHFPN6.js → chunk-OG2ESRQP.js} +5 -5
- package/dist/{chunk-NAHAESFV.js → chunk-OHCUPXU4.js} +18 -5
- package/dist/{chunk-3V37OZQH.js → chunk-PAY6HEEY.js} +2 -2
- package/dist/{chunk-DITIXBFB.js → chunk-PZ6D3WKD.js} +65 -1
- package/dist/{chunk-TJW4DP26.js → chunk-Q5BQIRM3.js} +2 -2
- package/dist/{chunk-VYQJPT27.js → chunk-S2FUWBLO.js} +18 -4
- package/dist/{chunk-OGCJO6HQ.js → chunk-TQRLWO4F.js} +2 -2
- package/dist/{chunk-EC5QLEZD.js → chunk-UVPIVSZB.js} +14 -6
- package/dist/{chunk-MHKY6TNF.js → chunk-VN34GLGJ.js} +3 -3
- package/dist/chunk-WUFNKK3U.js +71 -0
- package/dist/{chunk-TOR6SKRB.js → chunk-Y7FYCVUK.js} +508 -48
- package/dist/{chunk-C3KRMTIZ.js → chunk-YJVSN6UN.js} +2 -2
- package/dist/{chunk-EWYLWBKS.js → chunk-YKICVMF7.js} +22 -5
- package/dist/{cli-QDQYUHAP.js → cli-FVUHK2NB.js} +6 -6
- package/dist/{cli-5G2OYTIL.js → cli-ZOY2274X.js} +8 -8
- package/dist/cli.js +6 -5
- package/dist/{completion-3GVNPLZY.js → completion-ZKWGPMEK.js} +5 -4
- package/dist/{diagnostics-2W7QDQNG.js → diagnostics-IM2OPAPL.js} +7 -7
- package/dist/{doctor-3TDO5LJ5.js → doctor-VZTHEPVC.js} +31 -20
- package/dist/{entry-E62DZQJF.js → entry-Q4EI4PNO.js} +13 -13
- package/dist/{exec-mcp-4N7FLY52.js → exec-mcp-AWGUQVT2.js} +14 -12
- package/dist/{harness-E2AUZDLV.js → harness-L4C5XWKR.js} +3 -3
- package/dist/harness-launch-gate.js +5 -5
- package/dist/harness-worker.js +7 -7
- package/dist/{heavy-HZQVFI6P.js → heavy-OG3UVZNY.js} +181 -99
- package/dist/hook-body.js +548 -116
- package/dist/{hook-spec-Bd24eo2L.d.ts → hook-spec-u7hnz571.d.ts} +10 -0
- package/dist/{hooks-VAEAK2FY.js → hooks-2E6PJJQK.js} +4 -4
- package/dist/{host-4GJDGTLW.js → host-OQDBQJB2.js} +8 -8
- package/dist/{host-I2EMQ7UE.js → host-RJJGTKWA.js} +16 -14
- package/dist/{host-run-DDMKD3BU.js → host-run-PWCIXJDN.js} +6 -6
- package/dist/http.js +1 -1
- package/dist/{import-mcp-TNSAMJXI.js → import-mcp-2H2NRUCL.js} +13 -11
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -15
- package/dist/{init-UA7MDNTZ.js → init-O2UCU2WT.js} +2 -2
- package/dist/{invoke-HW7NBPGP.js → invoke-SJ3JHRJU.js} +9 -9
- package/dist/{list-A7VQJXE5.js → list-SJVXZGKK.js} +16 -14
- package/dist/{logout-HNPLUKJY.js → logout-ROKXWR3T.js} +14 -12
- package/dist/{logs-2JEMSNSG.js → logs-J4W6GFMK.js} +4 -4
- package/dist/{mailbox-MR6TPD3P.js → mailbox-6MHH6CUA.js} +4 -4
- package/dist/{mainline-MSLW3UFD.js → mainline-SWZPKA7U.js} +13 -9
- package/dist/{mcp-6C23GX2E.js → mcp-U7MVFAB4.js} +2 -2
- package/dist/owners-MPI22SFU.js +63 -0
- package/dist/{pause-H6ZYZF7C.js → pause-3IMVYXQQ.js} +4 -4
- package/dist/project/hook-adapter.d.ts +1 -1
- package/dist/{project-BX6NCGKB.js → project-MGUYHUF7.js} +4 -4
- package/dist/{report-43SFNNCF.js → report-MWXB5XKE.js} +4 -4
- package/dist/{resume-2BWGSTCN.js → resume-7LCSV4X3.js} +4 -4
- package/dist/{run-2UVAWBAF.js → run-DDWLS6FY.js} +13 -11
- package/dist/{run-7TRWZFEZ.js → run-TBO5JO4Y.js} +4 -4
- package/dist/{serve-4XZ5SKJJ.js → serve-RBQYB3FP.js} +3 -3
- package/dist/{setup-GRWLDBVB.js → setup-7JHWLV7K.js} +6 -4
- package/dist/{smoke-6X6IXQIQ.js → smoke-GZECLXOJ.js} +3 -3
- package/dist/{start-login-AR7ITWNV.js → start-login-SOTNDUP6.js} +14 -12
- package/dist/{status-VQCMJFVE.js → status-EBIUQIGY.js} +18 -16
- package/dist/{status-2GDYLIR3.js → status-QFMN7IUG.js} +4 -4
- package/dist/{status-ZY6LDQSF.js → status-TSTOFNZU.js} +14 -12
- package/dist/stdio.js +2 -2
- package/dist/{sweep-76BUOGEI.js → sweep-BS7HVSNP.js} +4 -4
- package/dist/{test-VWGNFSH5.js → test-4PZHHWOQ.js} +25 -15
- package/dist/{tui-TUMOQBE7.js → tui-QD2LMXHV.js} +4 -4
- package/dist/{unbroadcast-HJHYUHZL.js → unbroadcast-GRGX3F6T.js} +4 -4
- package/dist/{worker-NEEPJRVV.js → worker-SPJ4HFWV.js} +11 -11
- package/dist/{worktree-sync-MUVKK2CV.js → worktree-sync-BQZD4J73.js} +5 -2
- package/docs/commands.md +12 -3
- package/docs/git-workflow.md +40 -5
- package/docs/hooks.md +69 -14
- package/docs/project-configuration.md +63 -4
- package/docs/upgrading.md +13 -0
- package/gemini-extension.json +2 -2
- package/mcp.json +1 -1
- package/package.json +5 -5
- package/plugin.json +1 -1
- package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
- package/plugins/pmcp/.mcp.json +1 -1
- package/plugins/pmcp/gemini-extension.json +2 -2
- package/plugins/pmcp/mcp.json +1 -1
- package/plugins/pmcp/plugin.json +1 -1
- package/dist/chunk-7TD53M7L.js +0 -13
- package/dist/chunk-FQLCD4HU.js +0 -24
- package/dist/chunk-SMBU3QLE.js +0 -7
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-5ZABTVSW.js";
|
|
4
4
|
import {
|
|
5
5
|
dependencies
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2JUHFM4V.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-3JOFDNL4.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-C7Y2MBCN.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
jsonOption,
|
|
3
|
+
nearestConfigOption
|
|
4
|
+
} from "./chunk-JPYQDOEW.js";
|
|
5
|
+
|
|
6
|
+
// src/commands/specs/owners.ts
|
|
7
|
+
var ownersSpec = {
|
|
8
|
+
name: "owners",
|
|
9
|
+
examples: [
|
|
10
|
+
"pmcp owners services/auth/src/login.ts",
|
|
11
|
+
"pmcp owners docs --json"
|
|
12
|
+
],
|
|
13
|
+
describe: "Who looks after a path, from [[owners]] in pmcp.toml",
|
|
14
|
+
usage: "pmcp owners <path>... [--config <file>] [--json]",
|
|
15
|
+
options: [nearestConfigOption, jsonOption]
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
ownersSpec
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk-D7IDT7OA.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/hooks/inspection/source.ts
|
|
2
|
+
function sourceFor(id) {
|
|
3
|
+
if (id.startsWith("custom.")) return "hooks.guards.custom";
|
|
4
|
+
if (id.startsWith("external.")) return "hooks.guards.external";
|
|
5
|
+
if (id.startsWith("checks.")) return "hooks." + id;
|
|
6
|
+
if (id === "owners" || id.startsWith("sessions.") || id.startsWith("git.worktrees") || id === "git.shared_checkout" || id === "git.mainline.deliver")
|
|
7
|
+
return id;
|
|
8
|
+
return "hooks.guards." + id;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
sourceFor
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=chunk-E272CFPS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-FLG7VRTC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNativeHost
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3JOFDNL4.js";
|
|
4
4
|
import {
|
|
5
5
|
locateExecutable
|
|
6
6
|
} from "./chunk-R2GPCZUX.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resourceClaim,
|
|
34
34
|
resourceRunning,
|
|
35
35
|
runtimeUnit
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LCPCRZ7N.js";
|
|
37
37
|
import {
|
|
38
38
|
command
|
|
39
39
|
} from "./chunk-34DECPVC.js";
|
|
@@ -1981,4 +1981,4 @@ export {
|
|
|
1981
1981
|
isReadOnly,
|
|
1982
1982
|
runOperation
|
|
1983
1983
|
};
|
|
1984
|
-
//# sourceMappingURL=chunk-
|
|
1984
|
+
//# sourceMappingURL=chunk-FXDGW2IH.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
marketplaceSpec
|
|
3
|
+
} from "./chunk-JANBBPKP.js";
|
|
1
4
|
import {
|
|
2
5
|
harnessSpec,
|
|
3
6
|
tuiSpec
|
|
4
7
|
} from "./chunk-QR6A3TYP.js";
|
|
5
|
-
import {
|
|
6
|
-
marketplaceSpec
|
|
7
|
-
} from "./chunk-JANBBPKP.js";
|
|
8
8
|
import {
|
|
9
9
|
mcpSpec
|
|
10
10
|
} from "./chunk-UVTGY2R3.js";
|
|
@@ -16,10 +16,13 @@ import {
|
|
|
16
16
|
} from "./chunk-4VVQLWTS.js";
|
|
17
17
|
import {
|
|
18
18
|
heavySpec
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OHCUPXU4.js";
|
|
20
20
|
import {
|
|
21
21
|
waitSpec
|
|
22
22
|
} from "./chunk-F3R5HEUB.js";
|
|
23
|
+
import {
|
|
24
|
+
ownersSpec
|
|
25
|
+
} from "./chunk-D7IDT7OA.js";
|
|
23
26
|
import {
|
|
24
27
|
sessionsSpec
|
|
25
28
|
} from "./chunk-A4P3IIPE.js";
|
|
@@ -71,11 +74,11 @@ var completionSpec = {
|
|
|
71
74
|
var COMMANDS = [
|
|
72
75
|
{
|
|
73
76
|
...statusSpec,
|
|
74
|
-
load: async () => (await import("./status-
|
|
77
|
+
load: async () => (await import("./status-EBIUQIGY.js")).statusCommand
|
|
75
78
|
},
|
|
76
|
-
{ ...initSpec, load: async () => (await import("./init-
|
|
77
|
-
{ ...hooksSpec, load: async () => (await import("./hooks-
|
|
78
|
-
{ ...serveSpec, load: async () => (await import("./serve-
|
|
79
|
+
{ ...initSpec, load: async () => (await import("./init-O2UCU2WT.js")).initCommand },
|
|
80
|
+
{ ...hooksSpec, load: async () => (await import("./hooks-2E6PJJQK.js")).hooksCommand },
|
|
81
|
+
{ ...serveSpec, load: async () => (await import("./serve-RBQYB3FP.js")).serveCommand },
|
|
79
82
|
{ ...listSpec, load: async () => (await import("./list-LV5EKCF6.js")).listCommand },
|
|
80
83
|
{
|
|
81
84
|
...indexSpec,
|
|
@@ -112,24 +115,28 @@ var COMMANDS = [
|
|
|
112
115
|
{ ...syncSpec, load: async () => (await import("./install-5JH4DSFF.js")).syncCommand },
|
|
113
116
|
{
|
|
114
117
|
...projectSpec,
|
|
115
|
-
load: async () => (await import("./project-
|
|
118
|
+
load: async () => (await import("./project-MGUYHUF7.js")).projectCommand
|
|
116
119
|
},
|
|
117
120
|
{
|
|
118
121
|
...doctorSpec,
|
|
119
|
-
load: async () => (await import("./doctor-
|
|
122
|
+
load: async () => (await import("./doctor-VZTHEPVC.js")).doctorCommand
|
|
120
123
|
},
|
|
121
124
|
{
|
|
122
125
|
...sessionsSpec,
|
|
123
|
-
load: async () => (await import("./cli-
|
|
126
|
+
load: async () => (await import("./cli-ZOY2274X.js")).sessionsCommand
|
|
124
127
|
},
|
|
125
|
-
{ ...logsSpec, load: async () => (await import("./logs-
|
|
126
|
-
{ ...gitSpec, load: async () => (await import("./cli-
|
|
128
|
+
{ ...logsSpec, load: async () => (await import("./logs-J4W6GFMK.js")).logsCommand },
|
|
129
|
+
{ ...gitSpec, load: async () => (await import("./cli-FVUHK2NB.js")).gitCommand },
|
|
127
130
|
{
|
|
128
131
|
...heavySpec,
|
|
129
|
-
load: async () => (await import("./heavy-
|
|
132
|
+
load: async () => (await import("./heavy-OG3UVZNY.js")).heavyCommand
|
|
130
133
|
},
|
|
131
134
|
{ ...waitSpec, load: async () => (await import("./wait-HEODT7KV.js")).waitCommand },
|
|
132
|
-
{
|
|
135
|
+
{
|
|
136
|
+
...ownersSpec,
|
|
137
|
+
load: async () => (await import("./owners-MPI22SFU.js")).ownersCommand
|
|
138
|
+
},
|
|
139
|
+
{ ...mcpSpec, load: async () => (await import("./mcp-U7MVFAB4.js")).mcpCommand },
|
|
133
140
|
{
|
|
134
141
|
...validateSpec,
|
|
135
142
|
load: async () => (await import("./validate-YXR7FJJX.js")).validateCommand
|
|
@@ -140,16 +147,16 @@ var COMMANDS = [
|
|
|
140
147
|
},
|
|
141
148
|
{
|
|
142
149
|
...harnessSpec,
|
|
143
|
-
load: async () => (await import("./harness-
|
|
150
|
+
load: async () => (await import("./harness-L4C5XWKR.js")).harnessCommand
|
|
144
151
|
},
|
|
145
|
-
{ ...tuiSpec, load: async () => (await import("./tui-
|
|
152
|
+
{ ...tuiSpec, load: async () => (await import("./tui-QD2LMXHV.js")).tuiCommand },
|
|
146
153
|
{
|
|
147
154
|
...marketplaceSpec,
|
|
148
155
|
load: async () => (await import("./marketplace-2X3OOEPW.js")).marketplaceCommand
|
|
149
156
|
},
|
|
150
157
|
{
|
|
151
158
|
...completionSpec,
|
|
152
|
-
load: async () => (await import("./completion-
|
|
159
|
+
load: async () => (await import("./completion-ZKWGPMEK.js")).completionCommand
|
|
153
160
|
}
|
|
154
161
|
];
|
|
155
162
|
var PLANNED = [];
|
|
@@ -163,4 +170,4 @@ export {
|
|
|
163
170
|
PLANNED,
|
|
164
171
|
commandNamed
|
|
165
172
|
};
|
|
166
|
-
//# sourceMappingURL=chunk-
|
|
173
|
+
//# sourceMappingURL=chunk-GIL3RBRX.js.map
|
|
@@ -397,10 +397,30 @@ function toolFields(name, kind, input, paths) {
|
|
|
397
397
|
kind,
|
|
398
398
|
native: name,
|
|
399
399
|
...kind === "shell" ? { command: text2(input["command"]) ?? "" } : {},
|
|
400
|
-
paths
|
|
400
|
+
paths,
|
|
401
|
+
...editFields(name, input, paths)
|
|
401
402
|
}
|
|
402
403
|
};
|
|
403
404
|
}
|
|
405
|
+
function replacement(value) {
|
|
406
|
+
const item = object2(value);
|
|
407
|
+
const old = text2(item["old_string"]);
|
|
408
|
+
const next = text2(item["new_string"]);
|
|
409
|
+
if (old === void 0 || next === void 0) return null;
|
|
410
|
+
return { old, new: next, all: item["replace_all"] === true };
|
|
411
|
+
}
|
|
412
|
+
function editFields(name, input, paths) {
|
|
413
|
+
const path = paths[0];
|
|
414
|
+
if (path === void 0) return {};
|
|
415
|
+
if (name === "Write") {
|
|
416
|
+
const content = text2(input["content"]);
|
|
417
|
+
return content === void 0 ? {} : { edit: { path, content } };
|
|
418
|
+
}
|
|
419
|
+
const list = name === "Edit" ? [replacement(input)] : name === "MultiEdit" && Array.isArray(input["edits"]) ? input["edits"].map(replacement) : null;
|
|
420
|
+
if (list === null || list.length === 0 || list.some((item) => !item))
|
|
421
|
+
return {};
|
|
422
|
+
return { edit: { path, replacements: list } };
|
|
423
|
+
}
|
|
404
424
|
function stopFields(event, raw, lastMessage) {
|
|
405
425
|
if (event !== "stop") return {};
|
|
406
426
|
return {
|
|
@@ -1669,4 +1689,4 @@ export {
|
|
|
1669
1689
|
readFixtures,
|
|
1670
1690
|
smoke
|
|
1671
1691
|
};
|
|
1672
|
-
//# sourceMappingURL=chunk-
|
|
1692
|
+
//# sourceMappingURL=chunk-GQRDEIQA.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
expandPath
|
|
3
|
+
} from "./chunk-GUHOEIHP.js";
|
|
4
|
+
import {
|
|
5
|
+
gitCommonDir
|
|
6
|
+
} from "./chunk-IJBSOWHK.js";
|
|
7
|
+
|
|
8
|
+
// src/sessions/state-dir.ts
|
|
9
|
+
import { createHash } from "crypto";
|
|
10
|
+
import { realpathSync } from "fs";
|
|
11
|
+
import { homedir } from "os";
|
|
12
|
+
import { join } from "path";
|
|
13
|
+
function stateHome(env) {
|
|
14
|
+
return env["XDG_STATE_HOME"] || join(homedir(), ".local", "state");
|
|
15
|
+
}
|
|
16
|
+
function projectStateId(root) {
|
|
17
|
+
const anchor = gitCommonDir(root) ?? realpathSync(root);
|
|
18
|
+
return createHash("sha256").update(anchor).digest("hex").slice(0, 16);
|
|
19
|
+
}
|
|
20
|
+
function projectStateDir(root, override, env = process.env) {
|
|
21
|
+
if (override) return expandPath(root, override);
|
|
22
|
+
return join(stateHome(env), "pmcp", "projects", projectStateId(root));
|
|
23
|
+
}
|
|
24
|
+
function displacedDir(root, env = process.env) {
|
|
25
|
+
return join(stateHome(env), "pmcp", "displaced", projectStateId(root));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
projectStateDir,
|
|
30
|
+
displacedDir
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=chunk-KLIYFD3W.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSkillServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7FHOSWNQ.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-KQV2EPAP.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-34DECPVC.js";
|
|
4
4
|
import {
|
|
5
5
|
ptyBinary
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3KISMGVP.js";
|
|
7
7
|
import {
|
|
8
8
|
GroupStore,
|
|
9
9
|
egressPolicy,
|
|
@@ -775,4 +775,4 @@ export {
|
|
|
775
775
|
prepareBridge,
|
|
776
776
|
assertBridge
|
|
777
777
|
};
|
|
778
|
-
//# sourceMappingURL=chunk-
|
|
778
|
+
//# sourceMappingURL=chunk-LCPCRZ7N.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
prepare,
|
|
8
8
|
present,
|
|
9
9
|
writeNative
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6XE3WW7S.js";
|
|
11
11
|
import {
|
|
12
12
|
ANTIGRAVITY_MCP_PLUGIN,
|
|
13
13
|
BUNDLE_NATIVE_FILES,
|
|
@@ -21,16 +21,16 @@ import {
|
|
|
21
21
|
same,
|
|
22
22
|
splitKeyed,
|
|
23
23
|
withoutBlock
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-Y7FYCVUK.js";
|
|
25
25
|
import {
|
|
26
26
|
HOOK_DIRECTORY
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GQRDEIQA.js";
|
|
28
28
|
import {
|
|
29
29
|
LOCK_FILE,
|
|
30
30
|
replaceFile,
|
|
31
31
|
replaceLink,
|
|
32
32
|
writeLock
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3KISMGVP.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-NQZMGQFG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hostApprovalDoctor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7PBWLYCO.js";
|
|
4
4
|
import {
|
|
5
5
|
wakeableBy
|
|
6
6
|
} from "./chunk-JQVSDPFL.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
describeHookProblem,
|
|
13
13
|
project,
|
|
14
14
|
unmanagedHooks
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NQZMGQFG.js";
|
|
16
16
|
import {
|
|
17
17
|
ANTIGRAVITY_MCP_PLUGIN,
|
|
18
18
|
agentNames,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
skillNames,
|
|
24
24
|
splitFrontmatter,
|
|
25
25
|
uiClaudeDoctor
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Y7FYCVUK.js";
|
|
27
27
|
import {
|
|
28
28
|
pathPmcp,
|
|
29
29
|
pmcpCommand
|
|
@@ -31,19 +31,19 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
createFilesStore,
|
|
33
33
|
inboxKey
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PAY6HEEY.js";
|
|
35
35
|
import {
|
|
36
36
|
hostDoctor,
|
|
37
37
|
hostEnvDoctor,
|
|
38
38
|
ptyBinaryDoctor,
|
|
39
39
|
readLockFile
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3KISMGVP.js";
|
|
41
41
|
import {
|
|
42
42
|
ProjectError
|
|
43
43
|
} from "./chunk-TYY5TYHF.js";
|
|
44
44
|
import {
|
|
45
45
|
projectStateDir
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KLIYFD3W.js";
|
|
47
47
|
|
|
48
48
|
// src/project/doctor/runner.ts
|
|
49
49
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
@@ -671,4 +671,4 @@ export {
|
|
|
671
671
|
spawnRunner,
|
|
672
672
|
doctor
|
|
673
673
|
};
|
|
674
|
-
//# sourceMappingURL=chunk-
|
|
674
|
+
//# sourceMappingURL=chunk-OBCBCLS2.js.map
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
observeSession,
|
|
8
8
|
openGroup,
|
|
9
9
|
runOperation
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FXDGW2IH.js";
|
|
11
11
|
import {
|
|
12
12
|
nativeHostTools
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3JOFDNL4.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-LCPCRZ7N.js";
|
|
21
21
|
import {
|
|
22
22
|
ptyBinary
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3KISMGVP.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-OG2ESRQP.js.map
|
|
@@ -27,10 +27,13 @@ var heavySpec = {
|
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
name: "result",
|
|
30
|
-
describe: "
|
|
31
|
-
usage: "pmcp heavy result <
|
|
32
|
-
options: ["config", "json"],
|
|
33
|
-
examples: [
|
|
30
|
+
describe: "A job's state and exit code, or with --log its kept output",
|
|
31
|
+
usage: "pmcp heavy result <id> [--log [--tail <n>]] [--json]",
|
|
32
|
+
options: ["log", "tail", "config", "json"],
|
|
33
|
+
examples: [
|
|
34
|
+
"pmcp heavy result 1794239701-482b9b",
|
|
35
|
+
"pmcp heavy result 1794239701-482b9b --log --tail 50"
|
|
36
|
+
]
|
|
34
37
|
},
|
|
35
38
|
{
|
|
36
39
|
name: "queue",
|
|
@@ -115,6 +118,16 @@ var heavySpec = {
|
|
|
115
118
|
describe: "stats: only the n commands with the most runs.",
|
|
116
119
|
placeholder: "<n>"
|
|
117
120
|
},
|
|
121
|
+
{
|
|
122
|
+
name: "log",
|
|
123
|
+
describe: "result: print the job's kept stdout and stderr instead of its state.",
|
|
124
|
+
boolean: true
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: "tail",
|
|
128
|
+
describe: "result --log: only the last n lines.",
|
|
129
|
+
placeholder: "<n>"
|
|
130
|
+
},
|
|
118
131
|
{
|
|
119
132
|
name: "ticket",
|
|
120
133
|
describe: "Internal: the submitted ticket this run belongs to.",
|
|
@@ -136,4 +149,4 @@ var heavySpec = {
|
|
|
136
149
|
export {
|
|
137
150
|
heavySpec
|
|
138
151
|
};
|
|
139
|
-
//# sourceMappingURL=chunk-
|
|
152
|
+
//# sourceMappingURL=chunk-OHCUPXU4.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-Z6WRFOFT.js";
|
|
13
13
|
import {
|
|
14
14
|
projectStateDir
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KLIYFD3W.js";
|
|
16
16
|
import {
|
|
17
17
|
expandPath
|
|
18
18
|
} from "./chunk-GUHOEIHP.js";
|
|
@@ -730,4 +730,4 @@ export {
|
|
|
730
730
|
readStoreSettings,
|
|
731
731
|
openStore
|
|
732
732
|
};
|
|
733
|
-
//# sourceMappingURL=chunk-
|
|
733
|
+
//# sourceMappingURL=chunk-PAY6HEEY.js.map
|
|
@@ -15,6 +15,59 @@ import {
|
|
|
15
15
|
readConfig
|
|
16
16
|
} from "./chunk-GJXOFDJT.js";
|
|
17
17
|
|
|
18
|
+
// src/lease/job-log.ts
|
|
19
|
+
import {
|
|
20
|
+
closeSync,
|
|
21
|
+
existsSync,
|
|
22
|
+
fstatSync,
|
|
23
|
+
openSync,
|
|
24
|
+
readFileSync,
|
|
25
|
+
renameSync,
|
|
26
|
+
writeSync
|
|
27
|
+
} from "fs";
|
|
28
|
+
var DEFAULT_JOB_LOG_BYTES = 4 * 1024 * 1024;
|
|
29
|
+
var JobLog = class {
|
|
30
|
+
constructor(path, cap) {
|
|
31
|
+
this.path = path;
|
|
32
|
+
this.cap = cap;
|
|
33
|
+
this.fd = openSync(path, "a");
|
|
34
|
+
this.size = fstatSync(this.fd).size;
|
|
35
|
+
}
|
|
36
|
+
path;
|
|
37
|
+
cap;
|
|
38
|
+
fd;
|
|
39
|
+
size;
|
|
40
|
+
write(chunk) {
|
|
41
|
+
const bytes = typeof chunk === "string" ? Buffer.from(chunk) : chunk;
|
|
42
|
+
try {
|
|
43
|
+
if (this.size > 0 && this.size + bytes.length > this.cap) {
|
|
44
|
+
closeSync(this.fd);
|
|
45
|
+
renameSync(this.path, `${this.path}.1`);
|
|
46
|
+
this.fd = openSync(this.path, "a");
|
|
47
|
+
this.size = 0;
|
|
48
|
+
}
|
|
49
|
+
const kept = bytes.length > this.cap ? bytes.subarray(bytes.length - this.cap) : bytes;
|
|
50
|
+
writeSync(this.fd, kept);
|
|
51
|
+
this.size += kept.length;
|
|
52
|
+
} catch {
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
close() {
|
|
56
|
+
try {
|
|
57
|
+
closeSync(this.fd);
|
|
58
|
+
} catch {
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
function readJobLog(path, tail) {
|
|
63
|
+
const parts = [`${path}.1`, path].filter((file) => existsSync(file)).map((file) => readFileSync(file, "utf8"));
|
|
64
|
+
const text = parts.join("");
|
|
65
|
+
if (tail === void 0) return text;
|
|
66
|
+
const lines = text.split("\n");
|
|
67
|
+
if (lines[lines.length - 1] === "") lines.pop();
|
|
68
|
+
return lines.slice(-tail).join("\n") + (lines.length > 0 ? "\n" : "");
|
|
69
|
+
}
|
|
70
|
+
|
|
18
71
|
// src/lease/config.ts
|
|
19
72
|
import { availableParallelism } from "os";
|
|
20
73
|
|
|
@@ -79,6 +132,7 @@ var KEYS = [
|
|
|
79
132
|
"guard",
|
|
80
133
|
"io",
|
|
81
134
|
"usage_cap",
|
|
135
|
+
"job_log_bytes",
|
|
82
136
|
"settle_window",
|
|
83
137
|
"skip_always",
|
|
84
138
|
"skip_reasons"
|
|
@@ -296,6 +350,13 @@ function readLeaseSettings(path, dir, host) {
|
|
|
296
350
|
guard: read.oneOf("guard", ["observe", "warn", "deny", "off"], "observe"),
|
|
297
351
|
io: ioSettings(path, child(path, raw, "host.lease", "io")),
|
|
298
352
|
usageCap: read.int("usage_cap", 5e6),
|
|
353
|
+
jobLogBytes: whole(
|
|
354
|
+
path,
|
|
355
|
+
"host.lease",
|
|
356
|
+
"job_log_bytes",
|
|
357
|
+
raw["job_log_bytes"],
|
|
358
|
+
DEFAULT_JOB_LOG_BYTES
|
|
359
|
+
),
|
|
299
360
|
settleWindow: whole(
|
|
300
361
|
path,
|
|
301
362
|
"host.lease",
|
|
@@ -313,10 +374,13 @@ function leaseSettingsFor(cwd, configPath) {
|
|
|
313
374
|
}
|
|
314
375
|
|
|
315
376
|
export {
|
|
377
|
+
DEFAULT_JOB_LOG_BYTES,
|
|
378
|
+
JobLog,
|
|
379
|
+
readJobLog,
|
|
316
380
|
DISABLE_ENV,
|
|
317
381
|
NOW_ENV,
|
|
318
382
|
BUSY_EXIT,
|
|
319
383
|
readLeaseSettings,
|
|
320
384
|
leaseSettingsFor
|
|
321
385
|
};
|
|
322
|
-
//# sourceMappingURL=chunk-
|
|
386
|
+
//# sourceMappingURL=chunk-PZ6D3WKD.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-7CHUMF3E.js";
|
|
4
4
|
import {
|
|
5
5
|
readSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y7FYCVUK.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError
|
|
9
9
|
} from "./chunk-Y6NFETNG.js";
|
|
@@ -25,4 +25,4 @@ function serverFrom(context) {
|
|
|
25
25
|
export {
|
|
26
26
|
serverFrom
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-Q5BQIRM3.js.map
|
|
@@ -16,6 +16,9 @@ import {
|
|
|
16
16
|
gitWithInput,
|
|
17
17
|
runCommand
|
|
18
18
|
} from "./chunk-23PE3HZB.js";
|
|
19
|
+
import {
|
|
20
|
+
displacedDir
|
|
21
|
+
} from "./chunk-KLIYFD3W.js";
|
|
19
22
|
|
|
20
23
|
// src/git/install.ts
|
|
21
24
|
import { createHash } from "crypto";
|
|
@@ -88,6 +91,7 @@ function installIfStale(root, spec, report) {
|
|
|
88
91
|
|
|
89
92
|
// src/git/added-submodules.ts
|
|
90
93
|
import {
|
|
94
|
+
cpSync,
|
|
91
95
|
existsSync as existsSync2,
|
|
92
96
|
mkdirSync as mkdirSync2,
|
|
93
97
|
readdirSync,
|
|
@@ -199,11 +203,21 @@ function restoreIgnoreFiles(root, path, from) {
|
|
|
199
203
|
return restored;
|
|
200
204
|
}
|
|
201
205
|
function displace(root, path) {
|
|
202
|
-
const gitDir = gitText(root, ["rev-parse", "--absolute-git-dir"]);
|
|
203
206
|
const stamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/gu, "-");
|
|
204
|
-
const target = join2(
|
|
207
|
+
const target = join2(displacedDir(root), stamp, path);
|
|
205
208
|
mkdirSync2(dirname2(target), { recursive: true });
|
|
206
|
-
|
|
209
|
+
const source = join2(root, path);
|
|
210
|
+
try {
|
|
211
|
+
renameSync(source, target);
|
|
212
|
+
} catch (error) {
|
|
213
|
+
if (error.code !== "EXDEV") throw error;
|
|
214
|
+
cpSync(source, target, {
|
|
215
|
+
recursive: true,
|
|
216
|
+
verbatimSymlinks: true,
|
|
217
|
+
preserveTimestamps: true
|
|
218
|
+
});
|
|
219
|
+
rmSync(source, { recursive: true, force: true });
|
|
220
|
+
}
|
|
207
221
|
return target;
|
|
208
222
|
}
|
|
209
223
|
|
|
@@ -388,4 +402,4 @@ export {
|
|
|
388
402
|
followPins,
|
|
389
403
|
syncWorktree
|
|
390
404
|
};
|
|
391
|
-
//# sourceMappingURL=chunk-
|
|
405
|
+
//# sourceMappingURL=chunk-S2FUWBLO.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
readFixtures,
|
|
6
6
|
smoke
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GQRDEIQA.js";
|
|
8
8
|
import {
|
|
9
9
|
ArgumentError,
|
|
10
10
|
EXIT,
|
|
@@ -51,4 +51,4 @@ export {
|
|
|
51
51
|
printSmoke,
|
|
52
52
|
run
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=chunk-
|
|
54
|
+
//# sourceMappingURL=chunk-TQRLWO4F.js.map
|