@modootoday/pmcp 0.19.1 → 0.19.3
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/{apply-IPTASVRS.js → apply-3GVOB5SB.js} +16 -15
- package/dist/{chunk-Y65MO2SS.js → chunk-27RQE4X5.js} +32 -17
- package/dist/{chunk-YTSJRA4Z.js → chunk-3PFBFW5K.js} +2 -2
- package/dist/{chunk-G7NN23YK.js → chunk-6NAOPDEL.js} +2 -2
- package/dist/{chunk-J5XQW2CM.js → chunk-7B2KRL2H.js} +14 -3
- package/dist/{chunk-XS2QM6AT.js → chunk-A2A2QEGQ.js} +5 -5
- package/dist/{chunk-7FAA32PB.js → chunk-AKZ3TZF6.js} +3 -3
- package/dist/{chunk-MFPQDXUQ.js → chunk-BU5QVZD7.js} +5 -5
- package/dist/{chunk-OWW5VY4D.js → chunk-DJX3T6OQ.js} +3 -3
- package/dist/{chunk-JJBSYUSQ.js → chunk-DXJZ2ZCX.js} +2 -2
- package/dist/{chunk-UOLV2AWA.js → chunk-E4RHRBN4.js} +3 -3
- package/dist/{chunk-D5D3V6RU.js → chunk-ICF2JZSN.js} +15 -1
- package/dist/{chunk-2W6CEJD7.js → chunk-IITLKKLW.js} +2 -2
- package/dist/{chunk-MB72PZH7.js → chunk-INAQADYF.js} +8 -8
- package/dist/{chunk-3BLHIEAK.js → chunk-IRE5CH3V.js} +2 -2
- package/dist/{chunk-IKJOXDCF.js → chunk-JKUO3SES.js} +2 -2
- package/dist/chunk-JUV4AO7M.js +7 -0
- package/dist/{chunk-2DAC45ZT.js → chunk-JWYZE3QX.js} +2 -2
- package/dist/chunk-P6LNYYYH.js +95 -0
- package/dist/{chunk-XKGS2FNF.js → chunk-QESM25BF.js} +2 -2
- package/dist/{chunk-JAICIL6H.js → chunk-QWFXAUTC.js} +8 -8
- package/dist/{chunk-3CLLHFP7.js → chunk-TA7STTID.js} +2 -2
- package/dist/{chunk-ZYMJV7YX.js → chunk-VNNHEB6B.js} +23 -23
- package/dist/{chunk-3H5FZCKX.js → chunk-VVFEFQSO.js} +3 -3
- package/dist/{chunk-U2FPMGEM.js → chunk-WXKUV52B.js} +2 -2
- package/dist/{chunk-WIW772I3.js → chunk-XLXDXJY2.js} +4 -4
- package/dist/{chunk-LLBPVZXM.js → chunk-YN5GQCHN.js} +4 -4
- package/dist/{chunk-OKW7VKNQ.js → chunk-Z7OYA467.js} +2 -2
- package/dist/{cli-T5LHBUY2.js → cli-BTPTJWCC.js} +3 -3
- package/dist/{cli-MUP2NSXT.js → cli-UFCFDIVI.js} +7 -6
- package/dist/cli.js +7 -7
- package/dist/{completion-ZY5P443T.js → completion-S5RXYRE6.js} +6 -6
- package/dist/{diagnostics-KUNS6LCZ.js → diagnostics-IWZ44B3T.js} +6 -6
- package/dist/{doctor-UH7KEOSO.js → doctor-6OM2CW6Y.js} +21 -19
- package/dist/{entry-DOUDMRO2.js → entry-OP6P6JIE.js} +10 -10
- package/dist/{exec-mcp-TGW6FXGC.js → exec-mcp-VEHKAWE4.js} +10 -9
- package/dist/{harness-7HC6UR2D.js → harness-5IIU5JUZ.js} +3 -3
- package/dist/harness-launch-gate.js +4 -4
- package/dist/harness-worker.js +6 -6
- package/dist/hook-body.js +155 -56
- package/dist/{hook-spec-0aGt29Pg.d.ts → hook-spec-C7umArqw.d.ts} +1 -1
- package/dist/{hooks-L2MKB75Z.js → hooks-ZSA4DLUZ.js} +3 -3
- package/dist/{host-OAQZTYII.js → host-BWSHEN3G.js} +12 -11
- package/dist/{host-QSBXKTWT.js → host-CU5YGXUO.js} +7 -7
- package/dist/{host-run-HFOADX32.js → host-run-MCYOHAV4.js} +5 -5
- package/dist/http.js +1 -1
- package/dist/{import-mcp-BCYXJAIU.js → import-mcp-FC7HCWRT.js} +8 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -16
- package/dist/{init-NVJVNZOD.js → init-ADQO2QTV.js} +2 -2
- package/dist/{invoke-KVTEPXSC.js → invoke-P6GHAPFV.js} +8 -8
- package/dist/{list-2VRPMASP.js → list-YXCHN33G.js} +10 -9
- package/dist/{logout-6T5ZDLHQ.js → logout-J4YFUKXJ.js} +9 -8
- package/dist/{mailbox-O3MX6QPF.js → mailbox-UECKDZ3Q.js} +1 -1
- package/dist/{mainline-DG75NLBS.js → mainline-FPK4HWFF.js} +47 -14
- package/dist/{mcp-7UKG5TD3.js → mcp-DGQR4FRE.js} +2 -2
- package/dist/modes-COBVV7RA.js +14 -0
- package/dist/project/hook-adapter.d.ts +1 -1
- package/dist/{project-BPKQOSKQ.js → project-VZV5ZJ7Q.js} +6 -6
- package/dist/{run-WGIRM6Z7.js → run-6D7XVMOA.js} +4 -4
- package/dist/{run-5JD62E7R.js → run-OHZHE2GN.js} +8 -7
- package/dist/{serve-J575WVIU.js → serve-6ZL6SR5O.js} +6 -6
- package/dist/{setup-T6T2PFC4.js → setup-63E3TVJK.js} +4 -4
- package/dist/{start-login-2AYCHWLV.js → start-login-G63U6RT2.js} +9 -8
- package/dist/{status-425ZKIE6.js → status-6YMXYFE6.js} +9 -8
- package/dist/{status-GPSLH4VO.js → status-CM753VKY.js} +3 -3
- package/dist/{status-2YWTJOMH.js → status-KXTLD7EN.js} +13 -12
- package/dist/stdio.js +2 -2
- package/dist/{test-XBLZOX52.js → test-W3P5F5ML.js} +15 -10
- package/dist/{tui-WNVBHP65.js → tui-7R7TVPGT.js} +4 -4
- package/dist/{worker-CGF3UIJE.js → worker-SD2CHGC7.js} +8 -8
- package/dist/{worktree-sync-W4BDDLRO.js → worktree-sync-GQVYAXGJ.js} +4 -2
- package/docs/git-workflow.md +6 -5
- package/docs/hooks.md +19 -14
- package/docs/project-configuration.md +3 -1
- 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-GPSOPGJA.js +0 -7
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-NRBQK6UX.js";
|
|
4
4
|
import {
|
|
5
5
|
projectSpec
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-XNML2KIC.js";
|
|
6
|
+
} from "./chunk-YN5GQCHN.js";
|
|
8
7
|
import "./chunk-JEL35P7S.js";
|
|
8
|
+
import "./chunk-XNML2KIC.js";
|
|
9
9
|
import {
|
|
10
10
|
ArgumentError,
|
|
11
11
|
many,
|
|
@@ -19,7 +19,7 @@ async function route(context, verb, name) {
|
|
|
19
19
|
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
20
|
throw new ArgumentError("exec-mcp takes only a declared MCP alias");
|
|
21
21
|
}
|
|
22
|
-
const { runExecMcp } = await import("./exec-mcp-
|
|
22
|
+
const { runExecMcp } = await import("./exec-mcp-VEHKAWE4.js");
|
|
23
23
|
return await runExecMcp(context, name);
|
|
24
24
|
}
|
|
25
25
|
if (verb === "import-mcp") {
|
|
@@ -28,13 +28,13 @@ async function route(context, verb, name) {
|
|
|
28
28
|
"import-mcp takes --source, --name and --write; no positional name or --check"
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
const { importMcp } = await import("./import-mcp-
|
|
31
|
+
const { importMcp } = await import("./import-mcp-FC7HCWRT.js");
|
|
32
32
|
return importMcp(context);
|
|
33
33
|
}
|
|
34
34
|
if (many(context.args, "source").length > 0 || one(context.args, "name") !== void 0 || context.args.flags.has("write")) {
|
|
35
35
|
throw new ArgumentError("--source, --name and --write require import-mcp");
|
|
36
36
|
}
|
|
37
|
-
const apply = await import("./apply-
|
|
37
|
+
const apply = await import("./apply-3GVOB5SB.js");
|
|
38
38
|
if (verb === void 0) return apply.projectOrCheck(context);
|
|
39
39
|
if (context.args.flags.has("check")) {
|
|
40
40
|
throw new ArgumentError("--check takes no subcommand");
|
|
@@ -67,4 +67,4 @@ var projectCommand = {
|
|
|
67
67
|
export {
|
|
68
68
|
projectCommand
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=project-
|
|
70
|
+
//# sourceMappingURL=project-VZV5ZJ7Q.js.map
|
|
@@ -9,11 +9,11 @@ async function executeMcpCommand(context) {
|
|
|
9
9
|
throw new ArgumentError("Use pmcp mcp <login|logout|status> <name>");
|
|
10
10
|
if (context.args.flags.has("json") && verb !== "status")
|
|
11
11
|
throw new ArgumentError("--json requires mcp status");
|
|
12
|
-
if (verb === "status") return (await import("./status-
|
|
13
|
-
if (verb === "logout") return (await import("./logout-
|
|
14
|
-
return (await import("./start-login-
|
|
12
|
+
if (verb === "status") return (await import("./status-6YMXYFE6.js")).run(context);
|
|
13
|
+
if (verb === "logout") return (await import("./logout-J4YFUKXJ.js")).run(context);
|
|
14
|
+
return (await import("./start-login-G63U6RT2.js")).run(context);
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
17
|
executeMcpCommand
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=run-
|
|
19
|
+
//# sourceMappingURL=run-6D7XVMOA.js.map
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSpec
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-27RQE4X5.js";
|
|
4
4
|
import "./chunk-HQOB7OQS.js";
|
|
5
5
|
import {
|
|
6
6
|
readGitConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7B2KRL2H.js";
|
|
8
8
|
import {
|
|
9
9
|
detect
|
|
10
10
|
} from "./chunk-2Q6MNGU5.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ICF2JZSN.js";
|
|
12
12
|
import "./chunk-UD3BEEBQ.js";
|
|
13
13
|
import "./chunk-ISNRDHSD.js";
|
|
14
|
-
import "./chunk-G7JONWL4.js";
|
|
15
14
|
import "./chunk-EATCUWGG.js";
|
|
16
15
|
import "./chunk-NRBQK6UX.js";
|
|
17
16
|
import "./chunk-3PW4FI7U.js";
|
|
18
17
|
import "./chunk-DHAPQUEF.js";
|
|
19
18
|
import "./chunk-C4NHQGHL.js";
|
|
19
|
+
import "./chunk-P6LNYYYH.js";
|
|
20
|
+
import "./chunk-G7JONWL4.js";
|
|
20
21
|
import "./chunk-Q5H3L6Y4.js";
|
|
21
22
|
import {
|
|
22
23
|
ArgumentError,
|
|
23
24
|
one
|
|
24
25
|
} from "./chunk-A4PKLESO.js";
|
|
25
26
|
import "./chunk-V4NPDK6X.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-QESM25BF.js";
|
|
27
28
|
import "./chunk-OEH47H6A.js";
|
|
28
29
|
import "./chunk-IJBSOWHK.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-JUV4AO7M.js";
|
|
30
31
|
import {
|
|
31
32
|
readConfig
|
|
32
33
|
} from "./chunk-QPL7E2HW.js";
|
|
@@ -123,4 +124,4 @@ function run(context) {
|
|
|
123
124
|
export {
|
|
124
125
|
run
|
|
125
126
|
};
|
|
126
|
-
//# sourceMappingURL=run-
|
|
127
|
+
//# sourceMappingURL=run-OHZHE2GN.js.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
invocation
|
|
3
|
-
} from "./chunk-J7UYNJCR.js";
|
|
4
1
|
import {
|
|
5
2
|
embeddingFrom,
|
|
6
3
|
indexPath
|
|
@@ -9,6 +6,9 @@ import {
|
|
|
9
6
|
catalogOptionsFrom,
|
|
10
7
|
rootsFrom
|
|
11
8
|
} from "./chunk-HEBCQTOD.js";
|
|
9
|
+
import {
|
|
10
|
+
invocation
|
|
11
|
+
} from "./chunk-J7UYNJCR.js";
|
|
12
12
|
import {
|
|
13
13
|
configFrom
|
|
14
14
|
} from "./chunk-7DLZC73N.js";
|
|
@@ -19,7 +19,7 @@ import "./chunk-73AKO4UL.js";
|
|
|
19
19
|
import {
|
|
20
20
|
serve,
|
|
21
21
|
serveWithMailbox
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WXKUV52B.js";
|
|
23
23
|
import {
|
|
24
24
|
serveSpec
|
|
25
25
|
} from "./chunk-LLT5FQBE.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
one
|
|
31
31
|
} from "./chunk-A4PKLESO.js";
|
|
32
32
|
import "./chunk-ISZOLR3D.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-JWYZE3QX.js";
|
|
34
34
|
import "./chunk-6WXMJOMI.js";
|
|
35
35
|
import "./chunk-4CRRLDDS.js";
|
|
36
36
|
import "./chunk-YSAWTGNA.js";
|
|
@@ -101,4 +101,4 @@ var serveCommand = {
|
|
|
101
101
|
export {
|
|
102
102
|
serveCommand
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=serve-
|
|
104
|
+
//# sourceMappingURL=serve-6ZL6SR5O.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
gateTreePath,
|
|
3
3
|
leaseSpecs,
|
|
4
4
|
loadGit
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DXJZ2ZCX.js";
|
|
6
|
+
import "./chunk-7B2KRL2H.js";
|
|
7
7
|
import "./chunk-2Q6MNGU5.js";
|
|
8
|
-
import "./chunk-G7JONWL4.js";
|
|
9
8
|
import "./chunk-DHAPQUEF.js";
|
|
10
9
|
import "./chunk-C4NHQGHL.js";
|
|
10
|
+
import "./chunk-G7JONWL4.js";
|
|
11
11
|
import "./chunk-OEH47H6A.js";
|
|
12
12
|
import "./chunk-IJBSOWHK.js";
|
|
13
13
|
import "./chunk-QPL7E2HW.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
leaseSpecs,
|
|
18
18
|
loadGit
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=setup-
|
|
20
|
+
//# sourceMappingURL=setup-63E3TVJK.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3PFBFW5K.js";
|
|
4
4
|
import {
|
|
5
5
|
storeBearer,
|
|
6
6
|
tokenRequest,
|
|
@@ -14,19 +14,20 @@ import {
|
|
|
14
14
|
writeCredentials
|
|
15
15
|
} from "./chunk-UPQTAHUK.js";
|
|
16
16
|
import "./chunk-7DLZC73N.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-27RQE4X5.js";
|
|
18
18
|
import "./chunk-HQOB7OQS.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-7B2KRL2H.js";
|
|
20
20
|
import "./chunk-2Q6MNGU5.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-ICF2JZSN.js";
|
|
22
22
|
import "./chunk-UD3BEEBQ.js";
|
|
23
23
|
import "./chunk-ISNRDHSD.js";
|
|
24
|
-
import "./chunk-G7JONWL4.js";
|
|
25
24
|
import "./chunk-EATCUWGG.js";
|
|
26
25
|
import "./chunk-NRBQK6UX.js";
|
|
27
26
|
import "./chunk-3PW4FI7U.js";
|
|
28
27
|
import "./chunk-DHAPQUEF.js";
|
|
29
28
|
import "./chunk-C4NHQGHL.js";
|
|
29
|
+
import "./chunk-P6LNYYYH.js";
|
|
30
|
+
import "./chunk-G7JONWL4.js";
|
|
30
31
|
import {
|
|
31
32
|
McpAuthError,
|
|
32
33
|
safeEndpoint
|
|
@@ -36,10 +37,10 @@ import {
|
|
|
36
37
|
one
|
|
37
38
|
} from "./chunk-A4PKLESO.js";
|
|
38
39
|
import "./chunk-V4NPDK6X.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-QESM25BF.js";
|
|
40
41
|
import "./chunk-OEH47H6A.js";
|
|
41
42
|
import "./chunk-IJBSOWHK.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-JUV4AO7M.js";
|
|
43
44
|
import "./chunk-QPL7E2HW.js";
|
|
44
45
|
import "./chunk-PMJG2CXF.js";
|
|
45
46
|
import "./chunk-J6KL3COD.js";
|
|
@@ -413,4 +414,4 @@ async function run(context) {
|
|
|
413
414
|
export {
|
|
414
415
|
run
|
|
415
416
|
};
|
|
416
|
-
//# sourceMappingURL=start-login-
|
|
417
|
+
//# sourceMappingURL=start-login-G63U6RT2.js.map
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3PFBFW5K.js";
|
|
4
4
|
import {
|
|
5
5
|
status
|
|
6
6
|
} from "./chunk-UPQTAHUK.js";
|
|
7
7
|
import "./chunk-7DLZC73N.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-27RQE4X5.js";
|
|
9
9
|
import "./chunk-HQOB7OQS.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-7B2KRL2H.js";
|
|
11
11
|
import "./chunk-2Q6MNGU5.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-ICF2JZSN.js";
|
|
13
13
|
import "./chunk-UD3BEEBQ.js";
|
|
14
14
|
import "./chunk-ISNRDHSD.js";
|
|
15
|
-
import "./chunk-G7JONWL4.js";
|
|
16
15
|
import "./chunk-EATCUWGG.js";
|
|
17
16
|
import "./chunk-NRBQK6UX.js";
|
|
18
17
|
import "./chunk-3PW4FI7U.js";
|
|
19
18
|
import "./chunk-DHAPQUEF.js";
|
|
20
19
|
import "./chunk-C4NHQGHL.js";
|
|
20
|
+
import "./chunk-P6LNYYYH.js";
|
|
21
|
+
import "./chunk-G7JONWL4.js";
|
|
21
22
|
import "./chunk-Q5H3L6Y4.js";
|
|
22
23
|
import "./chunk-A4PKLESO.js";
|
|
23
24
|
import "./chunk-V4NPDK6X.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-QESM25BF.js";
|
|
25
26
|
import "./chunk-OEH47H6A.js";
|
|
26
27
|
import "./chunk-IJBSOWHK.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-JUV4AO7M.js";
|
|
28
29
|
import "./chunk-QPL7E2HW.js";
|
|
29
30
|
import "./chunk-PMJG2CXF.js";
|
|
30
31
|
import "./chunk-J6KL3COD.js";
|
|
@@ -40,4 +41,4 @@ function run(context) {
|
|
|
40
41
|
export {
|
|
41
42
|
run
|
|
42
43
|
};
|
|
43
|
-
//# sourceMappingURL=status-
|
|
44
|
+
//# sourceMappingURL=status-6YMXYFE6.js.map
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-JGJ4INEN.js";
|
|
10
10
|
import {
|
|
11
11
|
wakeableBy
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XLXDXJY2.js";
|
|
13
|
+
import "./chunk-TIA4SPU2.js";
|
|
13
14
|
import {
|
|
14
15
|
currentHooks,
|
|
15
16
|
restartNotes
|
|
16
17
|
} from "./chunk-VJFEN6DJ.js";
|
|
17
18
|
import "./chunk-XP2U3LO3.js";
|
|
18
|
-
import "./chunk-TIA4SPU2.js";
|
|
19
19
|
import "./chunk-3PW4FI7U.js";
|
|
20
20
|
import "./chunk-DHAPQUEF.js";
|
|
21
21
|
import "./chunk-C4NHQGHL.js";
|
|
@@ -51,4 +51,4 @@ function status(context) {
|
|
|
51
51
|
export {
|
|
52
52
|
status
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=status-
|
|
54
|
+
//# sourceMappingURL=status-CM753VKY.js.map
|
|
@@ -7,32 +7,32 @@ import {
|
|
|
7
7
|
} from "./chunk-JGJ4INEN.js";
|
|
8
8
|
import {
|
|
9
9
|
policyRows
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IITLKKLW.js";
|
|
11
11
|
import "./chunk-7TD53M7L.js";
|
|
12
12
|
import {
|
|
13
13
|
configFrom
|
|
14
14
|
} from "./chunk-7DLZC73N.js";
|
|
15
15
|
import {
|
|
16
16
|
checkProject
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-QWFXAUTC.js";
|
|
18
|
+
import "./chunk-TA7STTID.js";
|
|
19
|
+
import "./chunk-73AKO4UL.js";
|
|
19
20
|
import {
|
|
20
21
|
readSpec
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-27RQE4X5.js";
|
|
22
23
|
import "./chunk-HQOB7OQS.js";
|
|
23
24
|
import {
|
|
24
25
|
readGitConfig
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7B2KRL2H.js";
|
|
26
27
|
import {
|
|
27
28
|
defaultMainline,
|
|
28
29
|
defaultRemote
|
|
29
30
|
} from "./chunk-2Q6MNGU5.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-ICF2JZSN.js";
|
|
31
32
|
import "./chunk-UD3BEEBQ.js";
|
|
32
33
|
import {
|
|
33
34
|
distance
|
|
34
35
|
} from "./chunk-ISNRDHSD.js";
|
|
35
|
-
import "./chunk-G7JONWL4.js";
|
|
36
36
|
import "./chunk-EATCUWGG.js";
|
|
37
37
|
import "./chunk-NRBQK6UX.js";
|
|
38
38
|
import "./chunk-3PW4FI7U.js";
|
|
@@ -41,8 +41,9 @@ import {
|
|
|
41
41
|
readStoreSettings
|
|
42
42
|
} from "./chunk-DHAPQUEF.js";
|
|
43
43
|
import "./chunk-C4NHQGHL.js";
|
|
44
|
+
import "./chunk-P6LNYYYH.js";
|
|
45
|
+
import "./chunk-G7JONWL4.js";
|
|
44
46
|
import "./chunk-Q5H3L6Y4.js";
|
|
45
|
-
import "./chunk-73AKO4UL.js";
|
|
46
47
|
import {
|
|
47
48
|
statusSpec
|
|
48
49
|
} from "./chunk-OG7QR2DP.js";
|
|
@@ -51,14 +52,14 @@ import {
|
|
|
51
52
|
ArgumentError
|
|
52
53
|
} from "./chunk-A4PKLESO.js";
|
|
53
54
|
import "./chunk-V4NPDK6X.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-E4RHRBN4.js";
|
|
56
|
+
import "./chunk-QESM25BF.js";
|
|
56
57
|
import "./chunk-OEH47H6A.js";
|
|
57
58
|
import {
|
|
58
59
|
checkoutOf,
|
|
59
60
|
worktreesOf
|
|
60
61
|
} from "./chunk-IJBSOWHK.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-JUV4AO7M.js";
|
|
62
63
|
import "./chunk-QPL7E2HW.js";
|
|
63
64
|
import "./chunk-PMJG2CXF.js";
|
|
64
65
|
import "./chunk-J6KL3COD.js";
|
|
@@ -277,4 +278,4 @@ var statusCommand = {
|
|
|
277
278
|
export {
|
|
278
279
|
statusCommand
|
|
279
280
|
};
|
|
280
|
-
//# sourceMappingURL=status-
|
|
281
|
+
//# sourceMappingURL=status-KXTLD7EN.js.map
|
package/dist/stdio.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
resolveRoots,
|
|
5
5
|
serve,
|
|
6
6
|
serveWithMailbox
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-WXKUV52B.js";
|
|
8
|
+
import "./chunk-JWYZE3QX.js";
|
|
9
9
|
import "./chunk-6WXMJOMI.js";
|
|
10
10
|
import "./chunk-4CRRLDDS.js";
|
|
11
11
|
import "./chunk-YSAWTGNA.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
specFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z7OYA467.js";
|
|
4
4
|
import {
|
|
5
5
|
sourceFor
|
|
6
6
|
} from "./chunk-7TD53M7L.js";
|
|
@@ -13,17 +13,16 @@ import {
|
|
|
13
13
|
afterFailure,
|
|
14
14
|
commandsOf,
|
|
15
15
|
customPolicy
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-27RQE4X5.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_LOG_SETTINGS,
|
|
19
19
|
LEVEL_RANK
|
|
20
20
|
} from "./chunk-HQOB7OQS.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-7B2KRL2H.js";
|
|
22
22
|
import "./chunk-2Q6MNGU5.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-ICF2JZSN.js";
|
|
24
24
|
import "./chunk-UD3BEEBQ.js";
|
|
25
25
|
import "./chunk-ISNRDHSD.js";
|
|
26
|
-
import "./chunk-G7JONWL4.js";
|
|
27
26
|
import "./chunk-EATCUWGG.js";
|
|
28
27
|
import "./chunk-NRBQK6UX.js";
|
|
29
28
|
import "./chunk-3PW4FI7U.js";
|
|
@@ -41,13 +40,15 @@ import {
|
|
|
41
40
|
fieldsOf,
|
|
42
41
|
leaseFile
|
|
43
42
|
} from "./chunk-C4NHQGHL.js";
|
|
43
|
+
import "./chunk-P6LNYYYH.js";
|
|
44
|
+
import "./chunk-G7JONWL4.js";
|
|
44
45
|
import "./chunk-Q5H3L6Y4.js";
|
|
45
46
|
import {
|
|
46
47
|
ArgumentError,
|
|
47
48
|
one
|
|
48
49
|
} from "./chunk-A4PKLESO.js";
|
|
49
50
|
import "./chunk-V4NPDK6X.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-QESM25BF.js";
|
|
51
52
|
import {
|
|
52
53
|
expandPath
|
|
53
54
|
} from "./chunk-OEH47H6A.js";
|
|
@@ -55,7 +56,7 @@ import {
|
|
|
55
56
|
checkoutOf,
|
|
56
57
|
worktreesOf
|
|
57
58
|
} from "./chunk-IJBSOWHK.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-JUV4AO7M.js";
|
|
59
60
|
import "./chunk-QPL7E2HW.js";
|
|
60
61
|
import "./chunk-PMJG2CXF.js";
|
|
61
62
|
import "./chunk-J6KL3COD.js";
|
|
@@ -116,6 +117,7 @@ function seedState(store, cwd, path) {
|
|
|
116
117
|
// src/hooks/dispatch/compose.ts
|
|
117
118
|
var RANK = { allow: 0, ask: 1, deny: 2 };
|
|
118
119
|
function applyMode(id, decision, mode) {
|
|
120
|
+
if (mode === "observe") return {};
|
|
119
121
|
if (!decision.verdict || decision.verdict === "allow") return decision;
|
|
120
122
|
if (mode === "off") return {};
|
|
121
123
|
if (mode === "graded") return decision;
|
|
@@ -294,7 +296,10 @@ async function runPolicy(selected, input, deps) {
|
|
|
294
296
|
}
|
|
295
297
|
const decision = applyMode(policy.id, raw, mode);
|
|
296
298
|
log.debug("policy", {
|
|
297
|
-
|
|
299
|
+
raw: raw.verdict ?? "allow",
|
|
300
|
+
mode,
|
|
301
|
+
verdict: decision.verdict ?? "allow",
|
|
302
|
+
...input.tool ? { tool: input.tool.kind, native: input.tool.native } : {},
|
|
298
303
|
duration_ms: deps.now() - started
|
|
299
304
|
});
|
|
300
305
|
return finish(decision);
|
|
@@ -302,7 +307,7 @@ async function runPolicy(selected, input, deps) {
|
|
|
302
307
|
log.error("policy failed", {
|
|
303
308
|
error: error instanceof Error ? error.message : String(error)
|
|
304
309
|
});
|
|
305
|
-
if (policy.fail === "open") return finish({});
|
|
310
|
+
if (policy.fail === "open" || mode === "observe") return finish({});
|
|
306
311
|
if (deps.failure) {
|
|
307
312
|
const cause = error instanceof Timeout ? error.message : `error: ${(error instanceof Error ? error.message : String(error)).split("\n")[0]}`;
|
|
308
313
|
return finish(afterFailure(policy.id, cause, input, deps.failure));
|
|
@@ -594,4 +599,4 @@ async function run(context) {
|
|
|
594
599
|
export {
|
|
595
600
|
run
|
|
596
601
|
};
|
|
597
|
-
//# sourceMappingURL=test-
|
|
602
|
+
//# sourceMappingURL=test-W3P5F5ML.js.map
|
|
@@ -112,10 +112,10 @@ var tuiCommand = {
|
|
|
112
112
|
try {
|
|
113
113
|
let receipt;
|
|
114
114
|
if (invocation.action === "doctor") {
|
|
115
|
-
const { inspectTerminalHost } = await import("./diagnostics-
|
|
115
|
+
const { inspectTerminalHost } = await import("./diagnostics-IWZ44B3T.js");
|
|
116
116
|
receipt = inspectTerminalHost();
|
|
117
117
|
} else if (invocation.action === "start-worker") {
|
|
118
|
-
const { startWorkspaceWorker } = await import("./worker-
|
|
118
|
+
const { startWorkspaceWorker } = await import("./worker-SD2CHGC7.js");
|
|
119
119
|
receipt = await startWorkspaceWorker(
|
|
120
120
|
{ config: invocation.startup?.config, cwd: context.cwd },
|
|
121
121
|
invocation.startup.runtime,
|
|
@@ -128,7 +128,7 @@ var tuiCommand = {
|
|
|
128
128
|
cwd: context.cwd
|
|
129
129
|
});
|
|
130
130
|
} else {
|
|
131
|
-
const { launchStartup, planStartup } = await import("./entry-
|
|
131
|
+
const { launchStartup, planStartup } = await import("./entry-OP6P6JIE.js");
|
|
132
132
|
const request = { ...invocation.startup, cwd: context.cwd };
|
|
133
133
|
receipt = invocation.action === "plan" ? planStartup(request) : await launchStartup(
|
|
134
134
|
request,
|
|
@@ -150,4 +150,4 @@ var tuiCommand = {
|
|
|
150
150
|
export {
|
|
151
151
|
tuiCommand
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=tui-
|
|
153
|
+
//# sourceMappingURL=tui-7R7TVPGT.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
invoke
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A2A2QEGQ.js";
|
|
4
4
|
import {
|
|
5
5
|
readStartup,
|
|
6
6
|
startupFile,
|
|
7
7
|
startupSettings
|
|
8
8
|
} from "./chunk-J5ZS7GLA.js";
|
|
9
9
|
import "./chunk-DZ2MRTYT.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-AKZ3TZF6.js";
|
|
11
|
+
import "./chunk-6NAOPDEL.js";
|
|
12
12
|
import {
|
|
13
13
|
locateExecutable
|
|
14
14
|
} from "./chunk-R2GPCZUX.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-JKUO3SES.js";
|
|
16
16
|
import "./chunk-34DECPVC.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-E4RHRBN4.js";
|
|
18
|
+
import "./chunk-QESM25BF.js";
|
|
19
19
|
import "./chunk-OEH47H6A.js";
|
|
20
20
|
import "./chunk-IJBSOWHK.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-JUV4AO7M.js";
|
|
22
22
|
import "./chunk-QPL7E2HW.js";
|
|
23
23
|
import "./chunk-PMJG2CXF.js";
|
|
24
24
|
import {
|
|
@@ -78,4 +78,4 @@ async function startWorkspaceWorker(request, runtime, memoryMb) {
|
|
|
78
78
|
export {
|
|
79
79
|
startWorkspaceWorker
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=worker-
|
|
81
|
+
//# sourceMappingURL=worker-SD2CHGC7.js.map
|
|
@@ -3,11 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-YIXDHQYE.js";
|
|
4
4
|
import {
|
|
5
5
|
syncWorktree
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ICF2JZSN.js";
|
|
7
7
|
import {
|
|
8
8
|
installSpec
|
|
9
9
|
} from "./chunk-UD3BEEBQ.js";
|
|
10
10
|
import "./chunk-ISNRDHSD.js";
|
|
11
|
+
import "./chunk-P6LNYYYH.js";
|
|
11
12
|
import "./chunk-G7JONWL4.js";
|
|
12
13
|
|
|
13
14
|
// src/git/cli/worktree-sync.ts
|
|
@@ -19,6 +20,7 @@ var worktreeSync = (setup, _context, report) => {
|
|
|
19
20
|
ctx,
|
|
20
21
|
followSubmodules: config.submodules?.follow === "clean_pins",
|
|
21
22
|
report,
|
|
23
|
+
...config.umask !== void 0 ? { umask: config.umask } : {},
|
|
22
24
|
...install === void 0 ? {} : { install }
|
|
23
25
|
});
|
|
24
26
|
return result === "held" ? 1 : 0;
|
|
@@ -26,4 +28,4 @@ var worktreeSync = (setup, _context, report) => {
|
|
|
26
28
|
export {
|
|
27
29
|
worktreeSync
|
|
28
30
|
};
|
|
29
|
-
//# sourceMappingURL=worktree-sync-
|
|
31
|
+
//# sourceMappingURL=worktree-sync-GQVYAXGJ.js.map
|
package/docs/git-workflow.md
CHANGED
|
@@ -6,11 +6,12 @@ Linked worktrees, one delivery path to the mainline and main checkout sync, conf
|
|
|
6
6
|
`[git]`. [Run several agents](sessions.md) shows how it fits with sessions; the other tables
|
|
7
7
|
are in the [pmcp.toml reference](project-configuration.md).
|
|
8
8
|
|
|
9
|
-
| `[git]` key | Type | Default | Meaning
|
|
10
|
-
| ----------- | --------------------- | ------------------------------------------ |
|
|
11
|
-
| `enabled` | `"auto"`, true, false | `"auto"` | `auto` turns the git features on when the project is a git checkout; `false` turns all of them off.
|
|
12
|
-
| `remote` | string | `origin` if present, else the first remote |
|
|
13
|
-
| `mainline` | string or table | the remote's HEAD branch, else `main` | A string names the branch; a table (`[git.mainline]` with `branch`) also holds gate, deliver and sync.
|
|
9
|
+
| `[git]` key | Type | Default | Meaning |
|
|
10
|
+
| ----------- | --------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
11
|
+
| `enabled` | `"auto"`, true, false | `"auto"` | `auto` turns the git features on when the project is a git checkout; `false` turns all of them off. |
|
|
12
|
+
| `remote` | string | `origin` if present, else the first remote | |
|
|
13
|
+
| `mainline` | string or table | the remote's HEAD branch, else `main` | A string names the branch; a table (`[git.mainline]` with `branch`) also holds gate, deliver and sync. |
|
|
14
|
+
| `umask` | octal string | none (the process's) | e.g. `"022"`. `pmcp git` commands and the session-start worktree move write checkouts under it: sync, worktree sync and create, deliver (its gate tree included) and the installs they run. Tracked files they rewrote also get their index mode back (0644, or 0755 for executables); untracked files are never touched. |
|
|
14
15
|
|
|
15
16
|
`[git.shared_checkout]` warns a session working in the main checkout of a
|
|
16
17
|
repository that also has linked worktrees, tracks the files it edits there,
|
package/docs/hooks.md
CHANGED
|
@@ -53,20 +53,25 @@ Each built-in guard is one table. `mode` is the only key the option-less
|
|
|
53
53
|
guards take; an unknown option is an error. Modes: `deny` and `ask` replace
|
|
54
54
|
the guard's verdict with that mode, `warn` turns the reason into context the
|
|
55
55
|
agent reads, `off` drops the guard, and `graded` keeps the guard's own split
|
|
56
|
-
between ask and deny.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
| `[hooks.guards.shell.
|
|
66
|
-
| `[hooks.guards.
|
|
67
|
-
| `[hooks.guards.
|
|
68
|
-
| `[hooks.guards.
|
|
69
|
-
| `[hooks.guards.
|
|
56
|
+
between ask and deny. `observe` runs the guard and logs what it found but gives the runtime
|
|
57
|
+
nothing, no verdict and no context, even when the guard fails; use it to run a guard
|
|
58
|
+
beside a hook it will replace and compare. Every guard writes one debug log line per
|
|
59
|
+
call: `policy`, `session`, `verdict` (what the call got) and, under `data`, `raw`
|
|
60
|
+
(what the guard found: `allow`, `ask` or `deny`), `mode`, `tool` (the tool kind) and
|
|
61
|
+
`native` (the runtime's tool name), never the command, the reason or the prompt.
|
|
62
|
+
|
|
63
|
+
| Table | Default mode | Modes | Refuses |
|
|
64
|
+
| ------------------------------------------ | ------------ | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
65
|
+
| `[hooks.guards.shell.in_place_edit]` | deny | deny, ask, warn, observe, off | `sed -i`, `perl -i`, `awk -i inplace`: edits without a diff. |
|
|
66
|
+
| `[hooks.guards.shell.heredoc]` | deny | deny, ask, warn, observe, off | Heredocs and here-strings, whose body the shell expands silently. |
|
|
67
|
+
| `[hooks.guards.shell.stdin_interpreter]` | ask | deny, ask, warn, observe, off | An interpreter reading its program from stdin (`python3 -`, `cat x.py \| python3`). |
|
|
68
|
+
| `[hooks.guards.shell.compose_teardown]` | deny | deny, ask, warn, observe, off | `docker compose down`, and `stop`, `rm` or `kill` with no service named: they hit every service. |
|
|
69
|
+
| `[hooks.guards.shell.secret_exfiltration]` | graded | deny, ask, warn, observe, off, graded | Reading a credential asks; sending one over the network, or changing a live one, denies. |
|
|
70
|
+
| `[hooks.guards.shell.host_approval]` | deny | deny, ask, warn, observe, off | `host approve`, and commands or edits touching the host approvals directory. On by itself when `[host]` is declared. |
|
|
71
|
+
| `[hooks.guards.git.push_without_verify]` | deny | deny, ask, warn, observe, off | `git push --no-verify`. |
|
|
72
|
+
| `[hooks.guards.git.forced_branch_move]` | deny | deny, ask, warn, observe, off | Forcing a branch that is checked out in another working tree. |
|
|
73
|
+
| `[hooks.guards.git.gate_bypass_env]` | deny | deny, ask, warn, observe, off | Setting a named gate-bypass variable where it takes effect, and optionally `--no-verify` on any git command. |
|
|
74
|
+
| `[hooks.guards.git.stage_all]` | deny | deny, ask, warn, observe, off | `git add -A`, `git add .`, `git commit -a` and similar; stage explicit paths. |
|
|
70
75
|
|
|
71
76
|
Options:
|
|
72
77
|
|
|
@@ -588,7 +588,9 @@ Worktrees, delivery to the mainline and main checkout sync: [Git workflow](git-w
|
|
|
588
588
|
| `components` | table | `{}` | `<component> = "<level>"` |
|
|
589
589
|
|
|
590
590
|
The `PMCP_LOG` environment variable overrides the level. `[hooks] error_log`
|
|
591
|
-
switches hook logging on or off. Read the logs with `pmcp logs`.
|
|
591
|
+
switches hook logging on or off. Read the logs with `pmcp logs`. Guard verdicts are logged at
|
|
592
|
+
`debug` from the `hooks.entry` component, so `components = { "hooks.entry" = "debug" }`
|
|
593
|
+
records them without raising the rest; see [Hooks](hooks.md#hooksguardsgroupname).
|
|
592
594
|
|
|
593
595
|
## Claude session panes
|
|
594
596
|
|