@modootoday/pmcp 0.23.1 → 0.24.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/CONTRIBUTING.md +8 -0
- package/dist/{affected-D6FRJPPI.js → affected-IPFJM2KD.js} +484 -140
- package/dist/{apply-3PWUO4J5.js → apply-CDJQJAZH.js} +14 -14
- package/dist/{chunk-B3OZ4GGO.js → chunk-23PE3HZB.js} +16 -1
- package/dist/{chunk-KYGGQPAH.js → chunk-264DIB5U.js} +3 -3
- package/dist/{chunk-42SO7KYX.js → chunk-2GD7PQ7J.js} +2 -2
- package/dist/{chunk-WQBKQTNT.js → chunk-2ZH77O2D.js} +8 -8
- package/dist/{chunk-EQF64INS.js → chunk-3O3JZTUU.js} +3 -3
- package/dist/{chunk-ZXMECZBI.js → chunk-3SEJNT6F.js} +4 -4
- package/dist/{chunk-JJFPSFDU.js → chunk-5NQZGNKT.js} +2 -2
- package/dist/chunk-65H4PN33.js +7 -0
- package/dist/{chunk-2K4WYN4C.js → chunk-7CGGDX7X.js} +2 -2
- package/dist/{chunk-LGRFYN5T.js → chunk-AQM2JZMB.js} +2 -2
- package/dist/{chunk-P25V6NEX.js → chunk-D4FIBB2G.js} +5 -5
- package/dist/{chunk-6NRLBSEG.js → chunk-DGXZBQCA.js} +5 -5
- package/dist/{chunk-6QJ3F445.js → chunk-DLIO2D7S.js} +13 -13
- package/dist/{chunk-RZYZILU4.js → chunk-EWYLWBKS.js} +2 -2
- package/dist/{chunk-YRNFMPZB.js → chunk-GEDRPMBH.js} +2 -2
- package/dist/{chunk-LO54UUDE.js → chunk-LNKAR3IS.js} +2 -2
- package/dist/{chunk-RRKA3GF5.js → chunk-MOKZPZZO.js} +2 -2
- package/dist/{chunk-SDQYZDHS.js → chunk-MZ52S4YJ.js} +2 -2
- package/dist/{chunk-DNSHJIS4.js → chunk-PG62GOPU.js} +2 -2
- package/dist/{chunk-FOLA4EUJ.js → chunk-QY2P54Z2.js} +10 -2
- package/dist/{chunk-SUDG7B6S.js → chunk-SDFJJJB5.js} +2 -2
- package/dist/{chunk-72V6U7CZ.js → chunk-V5PXMLLL.js} +3 -3
- package/dist/{chunk-5HNLHI5F.js → chunk-VBWB2T3C.js} +2 -2
- package/dist/{chunk-M6X6HVQK.js → chunk-VQBXWMLT.js} +2 -2
- package/dist/{chunk-UYBWUOLR.js → chunk-VYQJPT27.js} +4 -4
- package/dist/{chunk-DZTSCJOZ.js → chunk-X3RUXLAV.js} +3 -3
- package/dist/{cli-YWV7FLYO.js → cli-OV5LSSGE.js} +9 -9
- package/dist/cli.js +3 -3
- package/dist/{completion-OKGNN7DE.js → completion-QNDCU4MF.js} +2 -2
- package/dist/{diagnostics-N4XRRCQG.js → diagnostics-TPK3VC5F.js} +6 -6
- package/dist/{doctor-3H6UYNEA.js → doctor-K2LADSW2.js} +16 -16
- package/dist/{entry-KDLLG6ED.js → entry-HFQHKL5L.js} +10 -10
- package/dist/{exec-mcp-AENALAHJ.js → exec-mcp-I2YGGWY4.js} +12 -12
- package/dist/{harness-GRYTNUF2.js → harness-BMWGAXCF.js} +3 -3
- package/dist/harness-launch-gate.js +4 -4
- package/dist/harness-worker.js +6 -6
- package/dist/{heavy-BGXKJKYB.js → heavy-G6CYQQ7O.js} +63 -18
- package/dist/{hooks-V25ANQ4Q.js → hooks-R7AYQXHY.js} +3 -3
- package/dist/{host-MLSWY7D7.js → host-EUD6GLWV.js} +14 -14
- package/dist/{host-4EGPADOJ.js → host-PLE2T55E.js} +7 -7
- package/dist/{host-run-VI52IUKF.js → host-run-QFNGIDL5.js} +5 -5
- package/dist/http.js +1 -1
- package/dist/{import-mcp-FIXFLUDM.js → import-mcp-DVKJOEOE.js} +11 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -15
- package/dist/{init-ALTBFUPP.js → init-DKWNL62M.js} +2 -2
- package/dist/{invoke-7T7UY57O.js → invoke-U6JTPTXT.js} +8 -8
- package/dist/{list-JFZ7UZLV.js → list-YKQFJN3G.js} +13 -13
- package/dist/{logout-7CNBO76Z.js → logout-5YSKC46N.js} +12 -12
- package/dist/{mainline-6PBT3VNR.js → mainline-D3PSR6AJ.js} +8 -8
- package/dist/{mcp-MVQVMAKJ.js → mcp-CHKKXHBB.js} +2 -2
- package/dist/{modes-SEINLLMK.js → modes-7OY7R73T.js} +3 -3
- package/dist/{project-FZGJRG2U.js → project-QEYXISHC.js} +4 -4
- package/dist/{run-VGJDMA2O.js → run-FYKDIW4C.js} +4 -4
- package/dist/{run-TOP37ZQC.js → run-HKMYYEZJ.js} +11 -11
- package/dist/{serve-LR7SJHNH.js → serve-QZNG5UUV.js} +3 -3
- package/dist/{setup-6AQUOWOH.js → setup-GRWLDBVB.js} +4 -4
- package/dist/{start-login-X37KGCCB.js → start-login-4GPM32RA.js} +12 -12
- package/dist/{status-LBRK37GA.js → status-55CD352M.js} +13 -13
- package/dist/{status-E4AFUOQO.js → status-W6SCF2GF.js} +12 -12
- package/dist/stdio.js +2 -2
- package/dist/{test-D2EEFUN2.js → test-XYEMYZ2P.js} +12 -12
- package/dist/{tui-D7E3MD3X.js → tui-FXSWN2PV.js} +4 -4
- package/dist/{worker-WTBC6VYO.js → worker-Q4I4EIAJ.js} +8 -8
- package/dist/{worktree-create-FTSLMZWS.js → worktree-create-ZQRN5JBD.js} +2 -2
- package/dist/{worktree-list-WH6OX6U7.js → worktree-list-2HV6ODBS.js} +4 -4
- package/dist/{worktree-sync-DGNHSQ64.js → worktree-sync-MUVKK2CV.js} +5 -5
- package/docs/commands.md +2 -2
- package/docs/git-workflow.md +7 -1
- package/docs/project-configuration.md +23 -5
- package/docs/upgrading.md +24 -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-7IRXUPM2.js +0 -7
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
GitReadError,
|
|
3
3
|
cherry,
|
|
4
4
|
distance
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2GD7PQ7J.js";
|
|
6
6
|
import {
|
|
7
7
|
reportModes,
|
|
8
8
|
restoreModes,
|
|
9
9
|
restoreSubmoduleModes,
|
|
10
10
|
withUmask
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VQBXWMLT.js";
|
|
12
12
|
import {
|
|
13
13
|
git,
|
|
14
14
|
gitOk,
|
|
15
15
|
gitText,
|
|
16
16
|
gitWithInput,
|
|
17
17
|
runCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-23PE3HZB.js";
|
|
19
19
|
|
|
20
20
|
// src/git/install.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -388,4 +388,4 @@ export {
|
|
|
388
388
|
followPins,
|
|
389
389
|
syncWorktree
|
|
390
390
|
};
|
|
391
|
-
//# sourceMappingURL=chunk-
|
|
391
|
+
//# sourceMappingURL=chunk-VYQJPT27.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNativeHost
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MZ52S4YJ.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-LNKAR3IS.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-X3RUXLAV.js.map
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
async function action(positional) {
|
|
13
13
|
const [verb, sub] = positional;
|
|
14
14
|
if (verb === "deliver")
|
|
15
|
-
return (await import("./mainline-
|
|
16
|
-
if (verb === "sync") return (await import("./mainline-
|
|
15
|
+
return (await import("./mainline-D3PSR6AJ.js")).mainlineDeliver;
|
|
16
|
+
if (verb === "sync") return (await import("./mainline-D3PSR6AJ.js")).mainlineSync;
|
|
17
17
|
if (verb !== "worktree")
|
|
18
18
|
throw unknownSubcommand("git", verb, [
|
|
19
19
|
"worktree",
|
|
@@ -22,17 +22,17 @@ async function action(positional) {
|
|
|
22
22
|
"affected"
|
|
23
23
|
]);
|
|
24
24
|
if (sub === "create")
|
|
25
|
-
return (await import("./worktree-create-
|
|
25
|
+
return (await import("./worktree-create-ZQRN5JBD.js")).worktreeCreate;
|
|
26
26
|
if (sub === "list")
|
|
27
|
-
return (await import("./worktree-list-
|
|
27
|
+
return (await import("./worktree-list-2HV6ODBS.js")).worktreeList;
|
|
28
28
|
if (sub === "sync")
|
|
29
|
-
return (await import("./worktree-sync-
|
|
29
|
+
return (await import("./worktree-sync-MUVKK2CV.js")).worktreeSync;
|
|
30
30
|
throw unknownSubcommand("git worktree", sub, ["create", "list", "sync"]);
|
|
31
31
|
}
|
|
32
32
|
async function run(context) {
|
|
33
33
|
const [verb, sub] = context.args.positional;
|
|
34
34
|
if (verb === "affected")
|
|
35
|
-
return (await import("./affected-
|
|
35
|
+
return (await import("./affected-IPFJM2KD.js")).gitAffected(context);
|
|
36
36
|
if (context.args.flags.has("tests-only") || context.args.options.has("head"))
|
|
37
37
|
throw new ArgumentError("--tests-only and --head require git affected");
|
|
38
38
|
if (context.args.flags.has("json") && !(verb === "worktree" && sub === "list") && verb !== "deliver")
|
|
@@ -40,7 +40,7 @@ async function run(context) {
|
|
|
40
40
|
"--json requires git worktree list, git deliver or git affected"
|
|
41
41
|
);
|
|
42
42
|
const act = await action(context.args.positional);
|
|
43
|
-
const { loadGit } = await import("./setup-
|
|
43
|
+
const { loadGit } = await import("./setup-GRWLDBVB.js");
|
|
44
44
|
const setup = loadGit(context.cwd, one(context.args, "config"), context.env);
|
|
45
45
|
if (setup instanceof Error) {
|
|
46
46
|
context.ui.error(setup.message);
|
|
@@ -50,11 +50,11 @@ async function run(context) {
|
|
|
50
50
|
info: (line) => context.ui.info(line),
|
|
51
51
|
warn: (line) => context.ui.warn(line)
|
|
52
52
|
};
|
|
53
|
-
const { withUmask } = await import("./modes-
|
|
53
|
+
const { withUmask } = await import("./modes-7OY7R73T.js");
|
|
54
54
|
return withUmask(setup.config.umask, () => act(setup, context, report));
|
|
55
55
|
}
|
|
56
56
|
var gitCommand = { ...gitSpec, run };
|
|
57
57
|
export {
|
|
58
58
|
gitCommand
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=cli-
|
|
60
|
+
//# sourceMappingURL=cli-OV5LSSGE.js.map
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
COMMANDS,
|
|
4
4
|
PLANNED,
|
|
5
5
|
commandNamed
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DLIO2D7S.js";
|
|
7
7
|
import {
|
|
8
8
|
entryMode
|
|
9
9
|
} from "./chunk-LMT3PPXJ.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-Y6NFETNG.js";
|
|
42
42
|
import {
|
|
43
43
|
VERSION
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-65H4PN33.js";
|
|
45
45
|
|
|
46
46
|
// src/cli/envelope.ts
|
|
47
47
|
var CODE_NAMES = {
|
|
@@ -417,7 +417,7 @@ async function defaultEntry(options, context) {
|
|
|
417
417
|
});
|
|
418
418
|
if (mode === "server") return run(required("serve"), [], context);
|
|
419
419
|
if (mode === "terminal") {
|
|
420
|
-
const { terminalSupport } = await import("./host-
|
|
420
|
+
const { terminalSupport } = await import("./host-PLE2T55E.js");
|
|
421
421
|
const support = terminalSupport();
|
|
422
422
|
if (support.supported) return run(required("tui"), [], context);
|
|
423
423
|
context.ui.info(`Terminal workspace unavailable: ${support.reason}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMMANDS,
|
|
3
3
|
completionSpec
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DLIO2D7S.js";
|
|
5
5
|
import "./chunk-QR6A3TYP.js";
|
|
6
6
|
import "./chunk-JANBBPKP.js";
|
|
7
7
|
import "./chunk-UVTGY2R3.js";
|
|
@@ -143,4 +143,4 @@ var completionCommand = {
|
|
|
143
143
|
export {
|
|
144
144
|
completionCommand
|
|
145
145
|
};
|
|
146
|
-
//# sourceMappingURL=completion-
|
|
146
|
+
//# sourceMappingURL=completion-QNDCU4MF.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
dependencies
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AQM2JZMB.js";
|
|
4
4
|
import {
|
|
5
5
|
assertNativeHost
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MZ52S4YJ.js";
|
|
7
7
|
import {
|
|
8
8
|
locateExecutable
|
|
9
9
|
} from "./chunk-R2GPCZUX.js";
|
|
10
10
|
import "./chunk-34DECPVC.js";
|
|
11
11
|
import {
|
|
12
12
|
missingBinary
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-264DIB5U.js";
|
|
14
|
+
import "./chunk-QY2P54Z2.js";
|
|
15
15
|
import "./chunk-N7ANFMA5.js";
|
|
16
16
|
import "./chunk-TYY5TYHF.js";
|
|
17
17
|
import "./chunk-T6C3TSTO.js";
|
|
@@ -21,7 +21,7 @@ import "./chunk-IJBSOWHK.js";
|
|
|
21
21
|
import "./chunk-XWLMZKH2.js";
|
|
22
22
|
import {
|
|
23
23
|
VERSION
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-65H4PN33.js";
|
|
25
25
|
import "./chunk-GJXOFDJT.js";
|
|
26
26
|
import "./chunk-PMJG2CXF.js";
|
|
27
27
|
import {
|
|
@@ -96,4 +96,4 @@ function inspectTerminalHost() {
|
|
|
96
96
|
export {
|
|
97
97
|
inspectTerminalHost
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=diagnostics-
|
|
99
|
+
//# sourceMappingURL=diagnostics-TPK3VC5F.js.map
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
specFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GEDRPMBH.js";
|
|
4
4
|
import "./chunk-7CHUMF3E.js";
|
|
5
5
|
import {
|
|
6
6
|
doctor,
|
|
7
7
|
spawnRunner
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-DGXZBQCA.js";
|
|
9
|
+
import "./chunk-5NQZGNKT.js";
|
|
10
10
|
import "./chunk-JQVSDPFL.js";
|
|
11
11
|
import "./chunk-VJFEN6DJ.js";
|
|
12
12
|
import "./chunk-NHUMPEPV.js";
|
|
13
13
|
import "./chunk-TIA4SPU2.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-3SEJNT6F.js";
|
|
15
15
|
import "./chunk-ANJMLKBR.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-V5PXMLLL.js";
|
|
17
17
|
import {
|
|
18
18
|
FEATURES,
|
|
19
19
|
GUARDS,
|
|
20
20
|
customEvent
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-2ZH77O2D.js";
|
|
22
|
+
import "./chunk-VYQJPT27.js";
|
|
23
23
|
import "./chunk-UKR64U7J.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-2GD7PQ7J.js";
|
|
25
25
|
import "./chunk-EATCUWGG.js";
|
|
26
26
|
import "./chunk-OFJIMBTL.js";
|
|
27
27
|
import "./chunk-LFFIQBNY.js";
|
|
28
28
|
import "./chunk-HQOB7OQS.js";
|
|
29
29
|
import "./chunk-73AKO4UL.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-VQBXWMLT.js";
|
|
31
|
+
import "./chunk-EWYLWBKS.js";
|
|
32
|
+
import "./chunk-SDFJJJB5.js";
|
|
33
33
|
import "./chunk-3V37OZQH.js";
|
|
34
34
|
import "./chunk-Z6WRFOFT.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-23PE3HZB.js";
|
|
36
36
|
import "./chunk-Q5H3L6Y4.js";
|
|
37
37
|
import {
|
|
38
38
|
HOOK_FILE,
|
|
@@ -54,8 +54,8 @@ import {
|
|
|
54
54
|
ArgumentError,
|
|
55
55
|
many
|
|
56
56
|
} from "./chunk-Y6NFETNG.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-264DIB5U.js";
|
|
58
|
+
import "./chunk-QY2P54Z2.js";
|
|
59
59
|
import "./chunk-N7ANFMA5.js";
|
|
60
60
|
import "./chunk-TYY5TYHF.js";
|
|
61
61
|
import "./chunk-T6C3TSTO.js";
|
|
@@ -63,7 +63,7 @@ import "./chunk-FQLCD4HU.js";
|
|
|
63
63
|
import "./chunk-GUHOEIHP.js";
|
|
64
64
|
import "./chunk-IJBSOWHK.js";
|
|
65
65
|
import "./chunk-XWLMZKH2.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-65H4PN33.js";
|
|
67
67
|
import "./chunk-GJXOFDJT.js";
|
|
68
68
|
import "./chunk-PMJG2CXF.js";
|
|
69
69
|
import "./chunk-J6KL3COD.js";
|
|
@@ -548,4 +548,4 @@ var doctorCommand = {
|
|
|
548
548
|
export {
|
|
549
549
|
doctorCommand
|
|
550
550
|
};
|
|
551
|
-
//# sourceMappingURL=doctor-
|
|
551
|
+
//# sourceMappingURL=doctor-K2LADSW2.js.map
|
|
@@ -7,27 +7,27 @@ import {
|
|
|
7
7
|
} from "./chunk-C3G75JH7.js";
|
|
8
8
|
import {
|
|
9
9
|
requireTerminal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3O3JZTUU.js";
|
|
11
11
|
import "./chunk-5ZABTVSW.js";
|
|
12
12
|
import {
|
|
13
13
|
runTui
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AQM2JZMB.js";
|
|
15
15
|
import {
|
|
16
16
|
invoke
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-D4FIBB2G.js";
|
|
18
18
|
import {
|
|
19
19
|
lockFile
|
|
20
20
|
} from "./chunk-DZ2MRTYT.js";
|
|
21
21
|
import "./chunk-LMT3PPXJ.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-X3RUXLAV.js";
|
|
23
|
+
import "./chunk-MZ52S4YJ.js";
|
|
24
24
|
import {
|
|
25
25
|
locateExecutable
|
|
26
26
|
} from "./chunk-R2GPCZUX.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-LNKAR3IS.js";
|
|
28
28
|
import "./chunk-34DECPVC.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-264DIB5U.js";
|
|
30
|
+
import "./chunk-QY2P54Z2.js";
|
|
31
31
|
import "./chunk-N7ANFMA5.js";
|
|
32
32
|
import "./chunk-TYY5TYHF.js";
|
|
33
33
|
import "./chunk-T6C3TSTO.js";
|
|
@@ -35,7 +35,7 @@ import "./chunk-FQLCD4HU.js";
|
|
|
35
35
|
import "./chunk-GUHOEIHP.js";
|
|
36
36
|
import "./chunk-IJBSOWHK.js";
|
|
37
37
|
import "./chunk-XWLMZKH2.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-65H4PN33.js";
|
|
39
39
|
import "./chunk-GJXOFDJT.js";
|
|
40
40
|
import "./chunk-PMJG2CXF.js";
|
|
41
41
|
import {
|
|
@@ -308,4 +308,4 @@ export {
|
|
|
308
308
|
launchStartup,
|
|
309
309
|
planStartup
|
|
310
310
|
};
|
|
311
|
-
//# sourceMappingURL=entry-
|
|
311
|
+
//# sourceMappingURL=entry-HFQHKL5L.js.map
|
|
@@ -8,33 +8,33 @@ import {
|
|
|
8
8
|
} from "./chunk-UPQTAHUK.js";
|
|
9
9
|
import {
|
|
10
10
|
specFrom
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GEDRPMBH.js";
|
|
12
12
|
import "./chunk-7CHUMF3E.js";
|
|
13
13
|
import {
|
|
14
14
|
launch
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-2ZH77O2D.js";
|
|
16
|
+
import "./chunk-VYQJPT27.js";
|
|
17
17
|
import "./chunk-UKR64U7J.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-2GD7PQ7J.js";
|
|
19
19
|
import "./chunk-EATCUWGG.js";
|
|
20
20
|
import "./chunk-OFJIMBTL.js";
|
|
21
21
|
import "./chunk-LFFIQBNY.js";
|
|
22
22
|
import "./chunk-HQOB7OQS.js";
|
|
23
23
|
import "./chunk-73AKO4UL.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-VQBXWMLT.js";
|
|
25
|
+
import "./chunk-EWYLWBKS.js";
|
|
26
|
+
import "./chunk-SDFJJJB5.js";
|
|
27
27
|
import "./chunk-3V37OZQH.js";
|
|
28
28
|
import "./chunk-Z6WRFOFT.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-23PE3HZB.js";
|
|
30
30
|
import {
|
|
31
31
|
McpAuthError
|
|
32
32
|
} from "./chunk-Q5H3L6Y4.js";
|
|
33
33
|
import "./chunk-ARXCYFFZ.js";
|
|
34
34
|
import "./chunk-V4NPDK6X.js";
|
|
35
35
|
import "./chunk-Y6NFETNG.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-264DIB5U.js";
|
|
37
|
+
import "./chunk-QY2P54Z2.js";
|
|
38
38
|
import "./chunk-N7ANFMA5.js";
|
|
39
39
|
import {
|
|
40
40
|
ProjectError
|
|
@@ -44,7 +44,7 @@ import "./chunk-FQLCD4HU.js";
|
|
|
44
44
|
import "./chunk-GUHOEIHP.js";
|
|
45
45
|
import "./chunk-IJBSOWHK.js";
|
|
46
46
|
import "./chunk-XWLMZKH2.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-65H4PN33.js";
|
|
48
48
|
import "./chunk-GJXOFDJT.js";
|
|
49
49
|
import "./chunk-PMJG2CXF.js";
|
|
50
50
|
import "./chunk-J6KL3COD.js";
|
|
@@ -370,4 +370,4 @@ function runExecMcp(context, name) {
|
|
|
370
370
|
export {
|
|
371
371
|
runExecMcp
|
|
372
372
|
};
|
|
373
|
-
//# sourceMappingURL=exec-mcp-
|
|
373
|
+
//# sourceMappingURL=exec-mcp-I2YGGWY4.js.map
|
|
@@ -133,12 +133,12 @@ var harnessCommand = {
|
|
|
133
133
|
return runPtyMcp(context);
|
|
134
134
|
}
|
|
135
135
|
if (context.args.positional[0] === "host") {
|
|
136
|
-
const { runHost } = await import("./host-
|
|
136
|
+
const { runHost } = await import("./host-EUD6GLWV.js");
|
|
137
137
|
return runHost(context);
|
|
138
138
|
}
|
|
139
139
|
try {
|
|
140
140
|
const operation = parseInvocation(context);
|
|
141
|
-
const { invoke } = await import("./invoke-
|
|
141
|
+
const { invoke } = await import("./invoke-U6JTPTXT.js");
|
|
142
142
|
const receipt = await invoke(operation);
|
|
143
143
|
context.ui.data(`${JSON.stringify(receipt)}
|
|
144
144
|
`);
|
|
@@ -156,4 +156,4 @@ var harnessCommand = {
|
|
|
156
156
|
export {
|
|
157
157
|
harnessCommand
|
|
158
158
|
};
|
|
159
|
-
//# sourceMappingURL=harness-
|
|
159
|
+
//# sourceMappingURL=harness-BMWGAXCF.js.map
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
assertProof,
|
|
8
8
|
assertResourceFresh,
|
|
9
9
|
createProof
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LNKAR3IS.js";
|
|
11
11
|
import "./chunk-34DECPVC.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-264DIB5U.js";
|
|
13
|
+
import "./chunk-QY2P54Z2.js";
|
|
14
14
|
import "./chunk-N7ANFMA5.js";
|
|
15
15
|
import "./chunk-TYY5TYHF.js";
|
|
16
16
|
import "./chunk-T6C3TSTO.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-FQLCD4HU.js";
|
|
|
18
18
|
import "./chunk-GUHOEIHP.js";
|
|
19
19
|
import "./chunk-IJBSOWHK.js";
|
|
20
20
|
import "./chunk-XWLMZKH2.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-65H4PN33.js";
|
|
22
22
|
import "./chunk-GJXOFDJT.js";
|
|
23
23
|
import "./chunk-PMJG2CXF.js";
|
|
24
24
|
import {
|
package/dist/harness-worker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runOperation
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-X3RUXLAV.js";
|
|
4
|
+
import "./chunk-MZ52S4YJ.js";
|
|
5
5
|
import "./chunk-R2GPCZUX.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-LNKAR3IS.js";
|
|
7
7
|
import "./chunk-34DECPVC.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-264DIB5U.js";
|
|
9
|
+
import "./chunk-QY2P54Z2.js";
|
|
10
10
|
import "./chunk-N7ANFMA5.js";
|
|
11
11
|
import "./chunk-TYY5TYHF.js";
|
|
12
12
|
import "./chunk-T6C3TSTO.js";
|
|
@@ -14,7 +14,7 @@ import "./chunk-FQLCD4HU.js";
|
|
|
14
14
|
import "./chunk-GUHOEIHP.js";
|
|
15
15
|
import "./chunk-IJBSOWHK.js";
|
|
16
16
|
import "./chunk-XWLMZKH2.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-65H4PN33.js";
|
|
18
18
|
import "./chunk-GJXOFDJT.js";
|
|
19
19
|
import "./chunk-PMJG2CXF.js";
|
|
20
20
|
import {
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
DISABLE_ENV,
|
|
22
22
|
NOW_ENV,
|
|
23
23
|
leaseSettingsFor
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QY2P54Z2.js";
|
|
25
25
|
import {
|
|
26
26
|
LANES,
|
|
27
27
|
describeRecord,
|
|
@@ -383,11 +383,15 @@ function hostVerdict(settings2, reading, waiting) {
|
|
|
383
383
|
|
|
384
384
|
// src/lease/acquire.ts
|
|
385
385
|
var STEP_SECONDS = 1;
|
|
386
|
+
function skipSource(settings2, env) {
|
|
387
|
+
for (const variable of [DISABLE_ENV, settings2.legacySkipEnv]) {
|
|
388
|
+
const reason2 = variable ? env[variable] : void 0;
|
|
389
|
+
if (variable && reason2) return { reason: reason2, variable };
|
|
390
|
+
}
|
|
391
|
+
return null;
|
|
392
|
+
}
|
|
386
393
|
function skipReason(settings2, env) {
|
|
387
|
-
|
|
388
|
-
if (own) return own;
|
|
389
|
-
const legacy = settings2.legacySkipEnv ? env[settings2.legacySkipEnv] : "";
|
|
390
|
-
return legacy || null;
|
|
394
|
+
return skipSource(settings2, env)?.reason ?? null;
|
|
391
395
|
}
|
|
392
396
|
function reentrant(settings2, env) {
|
|
393
397
|
const paths = leasePaths(settings2.dir);
|
|
@@ -524,16 +528,29 @@ function acquireLease(options) {
|
|
|
524
528
|
const { settings: settings2, env, label, say } = options;
|
|
525
529
|
if (!settings2.enabled) return { kind: "disabled" };
|
|
526
530
|
const paths = leasePaths(settings2.dir);
|
|
527
|
-
const skip =
|
|
528
|
-
|
|
529
|
-
|
|
531
|
+
const skip = skipSource(settings2, env);
|
|
532
|
+
const refused = skip !== null && options.lane === "bulk" && !settings2.skipAlways.includes(skip.reason);
|
|
533
|
+
if (refused && reentrant(settings2, env)) return { kind: "reentrant" };
|
|
534
|
+
if (skip !== null && refused) {
|
|
535
|
+
say(
|
|
536
|
+
`the lease skip (${skip.reason}) is not honoured for a bulk job (--lane bulk, or a [[host.lease.commands]] entry with lane = "bulk"); it queues in the bulk lane. For an emergency run: pmcp heavy --now --reason <text> -- <command>`
|
|
537
|
+
);
|
|
538
|
+
logEvent(
|
|
539
|
+
paths,
|
|
540
|
+
process.pid,
|
|
541
|
+
"skip-refused",
|
|
542
|
+
`reason=${skip.reason} env=${skip.variable} cwd=${options.cwd} label=${label}`
|
|
543
|
+
);
|
|
544
|
+
}
|
|
545
|
+
if (skip !== null && !refused) {
|
|
546
|
+
say(`running without the host lease: ${skip.reason}`);
|
|
530
547
|
logEvent(
|
|
531
548
|
paths,
|
|
532
549
|
process.pid,
|
|
533
550
|
"skip",
|
|
534
|
-
`reason=${skip} cwd=${options.cwd} label=${label}`
|
|
551
|
+
`reason=${skip.reason} env=${skip.variable} cwd=${options.cwd} label=${label}`
|
|
535
552
|
);
|
|
536
|
-
return { kind: "skipped",
|
|
553
|
+
return { kind: "skipped", ...skip };
|
|
537
554
|
}
|
|
538
555
|
if (!flockAvailable()) {
|
|
539
556
|
say("flock is not installed; running without the host lease");
|
|
@@ -731,6 +748,13 @@ var METRICS = [
|
|
|
731
748
|
"read_bytes",
|
|
732
749
|
"write_bytes"
|
|
733
750
|
];
|
|
751
|
+
function skipShare(records) {
|
|
752
|
+
const ran = records.filter((record2) => record2.outcome === "ran");
|
|
753
|
+
return {
|
|
754
|
+
skipped: ran.filter((record2) => record2.skip !== void 0).length,
|
|
755
|
+
runs: ran.length
|
|
756
|
+
};
|
|
757
|
+
}
|
|
734
758
|
function percentile(values, share) {
|
|
735
759
|
const sorted = [...values].sort((a, b) => a - b);
|
|
736
760
|
return sorted[Math.min(sorted.length - 1, Math.floor(sorted.length * share))] ?? 0;
|
|
@@ -757,6 +781,7 @@ function usageStats(records) {
|
|
|
757
781
|
samples: ran.length,
|
|
758
782
|
failed: ran.filter((record2) => record2.exit !== 0).length,
|
|
759
783
|
timeouts: list.length - ran.length,
|
|
784
|
+
skipped: ran.filter((record2) => record2.skip !== void 0).length,
|
|
760
785
|
p50: pick(0.5),
|
|
761
786
|
p90: pick(0.9)
|
|
762
787
|
};
|
|
@@ -966,6 +991,16 @@ function record(run2, fields) {
|
|
|
966
991
|
appendUsage(leasePaths(run2.settings.dir).usage, usage, run2.settings.usageCap);
|
|
967
992
|
run2.onUsage?.(usage);
|
|
968
993
|
}
|
|
994
|
+
function skipFields(run2, outcome) {
|
|
995
|
+
if (outcome.kind === "skipped")
|
|
996
|
+
return {
|
|
997
|
+
skip: outcome.reason,
|
|
998
|
+
...outcome.variable ? { skip_env: outcome.variable } : {}
|
|
999
|
+
};
|
|
1000
|
+
if (outcome.kind === "disabled" || outcome.kind === "reentrant") return {};
|
|
1001
|
+
const refused = skipSource(run2.settings, run2.env);
|
|
1002
|
+
return refused ? { skip_refused: refused.reason, skip_env: refused.variable } : {};
|
|
1003
|
+
}
|
|
969
1004
|
var CANCELLED_EXIT = 130;
|
|
970
1005
|
var NOTHING = {
|
|
971
1006
|
wall_s: 0,
|
|
@@ -993,7 +1028,8 @@ async function runHeavy(run2) {
|
|
|
993
1028
|
weight,
|
|
994
1029
|
start: "none",
|
|
995
1030
|
outcome: "cancelled",
|
|
996
|
-
exit: CANCELLED_EXIT
|
|
1031
|
+
exit: CANCELLED_EXIT,
|
|
1032
|
+
...skipFields(run2, outcome)
|
|
997
1033
|
});
|
|
998
1034
|
return CANCELLED_EXIT;
|
|
999
1035
|
}
|
|
@@ -1012,7 +1048,8 @@ async function runHeavy(run2) {
|
|
|
1012
1048
|
weight,
|
|
1013
1049
|
start: "none",
|
|
1014
1050
|
outcome: "timeout",
|
|
1015
|
-
exit: BUSY_EXIT
|
|
1051
|
+
exit: BUSY_EXIT,
|
|
1052
|
+
...skipFields(run2, outcome)
|
|
1016
1053
|
});
|
|
1017
1054
|
return BUSY_EXIT;
|
|
1018
1055
|
}
|
|
@@ -1062,7 +1099,8 @@ async function runHeavy(run2) {
|
|
|
1062
1099
|
weight,
|
|
1063
1100
|
start: held2 ? held2.start : "none",
|
|
1064
1101
|
outcome: "ran",
|
|
1065
|
-
exit: code
|
|
1102
|
+
exit: code,
|
|
1103
|
+
...skipFields(run2, outcome)
|
|
1066
1104
|
});
|
|
1067
1105
|
}
|
|
1068
1106
|
return code;
|
|
@@ -1282,10 +1320,10 @@ function leaseStatus(options) {
|
|
|
1282
1320
|
);
|
|
1283
1321
|
const outside = options.outside ?? ((pids) => outsideLease({ holders: pids }));
|
|
1284
1322
|
lines.push(...outsideLines(outside(running.map((job2) => job2.pid))));
|
|
1285
|
-
const skip =
|
|
1323
|
+
const skip = skipSource(settings2, env);
|
|
1286
1324
|
if (skip !== null)
|
|
1287
1325
|
lines.push(
|
|
1288
|
-
`skip: this shell runs without the lease (${
|
|
1326
|
+
`skip: this shell runs without the lease (${skip.variable}): ${skip.reason}`
|
|
1289
1327
|
);
|
|
1290
1328
|
return lines;
|
|
1291
1329
|
}
|
|
@@ -1834,7 +1872,7 @@ function statLine(stat) {
|
|
|
1834
1872
|
};
|
|
1835
1873
|
return [
|
|
1836
1874
|
stat.signature,
|
|
1837
|
-
`samples ${stat.samples} (failed ${stat.failed}, timeouts ${stat.timeouts})`,
|
|
1875
|
+
`samples ${stat.samples} (failed ${stat.failed}, timeouts ${stat.timeouts}, skipped the lease ${stat.skipped})`,
|
|
1838
1876
|
`wall ${pair("wall_s", 1, "s")}`,
|
|
1839
1877
|
`cpu ${Math.round(cpu.p50)}/${Math.round(cpu.p90)}s`,
|
|
1840
1878
|
`rss ${pair("max_rss_kb", 1024, "MB")}`,
|
|
@@ -1843,13 +1881,20 @@ function statLine(stat) {
|
|
|
1843
1881
|
].join(" ");
|
|
1844
1882
|
}
|
|
1845
1883
|
function stats(context) {
|
|
1846
|
-
const
|
|
1884
|
+
const records = readUsage(leasePaths(settings(context).dir).usage);
|
|
1885
|
+
const found = usageStats(records);
|
|
1847
1886
|
if (context.args.flags.has("json")) {
|
|
1848
1887
|
context.ui.data(`${JSON.stringify(found)}
|
|
1849
1888
|
`);
|
|
1850
1889
|
return EXIT.ok;
|
|
1851
1890
|
}
|
|
1852
1891
|
if (found.length === 0) context.ui.data("no usage recorded yet\n");
|
|
1892
|
+
const { skipped, runs } = skipShare(records);
|
|
1893
|
+
if (runs > 0)
|
|
1894
|
+
context.ui.data(
|
|
1895
|
+
`skipped the lease: ${skipped} of ${runs} runs (${Math.round(skipped / runs * 100)}%)
|
|
1896
|
+
`
|
|
1897
|
+
);
|
|
1853
1898
|
context.ui.data(
|
|
1854
1899
|
"signature @ dir samples p50/p90 of wall, cpu, rss, read, write\n"
|
|
1855
1900
|
);
|
|
@@ -1962,4 +2007,4 @@ var heavyCommand = { ...heavySpec, run };
|
|
|
1962
2007
|
export {
|
|
1963
2008
|
heavyCommand
|
|
1964
2009
|
};
|
|
1965
|
-
//# sourceMappingURL=heavy-
|
|
2010
|
+
//# sourceMappingURL=heavy-G6CYQQ7O.js.map
|
|
@@ -13,12 +13,12 @@ async function run(context) {
|
|
|
13
13
|
const [verb = "list", ...extra] = context.args.positional;
|
|
14
14
|
if (!VERBS.includes(verb)) throw unknownSubcommand("hooks", verb, VERBS);
|
|
15
15
|
if (extra.length) throw new ArgumentError(`unexpected ${extra.join(" ")}`);
|
|
16
|
-
if (verb === "list") return (await import("./list-
|
|
17
|
-
if (verb === "test") return (await import("./test-
|
|
16
|
+
if (verb === "list") return (await import("./list-YKQFJN3G.js")).run(context);
|
|
17
|
+
if (verb === "test") return (await import("./test-XYEMYZ2P.js")).run(context);
|
|
18
18
|
return (await import("./report-UB7MXAUB.js")).run(context);
|
|
19
19
|
}
|
|
20
20
|
var hooksCommand = { ...hooksSpec, run };
|
|
21
21
|
export {
|
|
22
22
|
hooksCommand
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=hooks-
|
|
24
|
+
//# sourceMappingURL=hooks-R7AYQXHY.js.map
|