@modootoday/pmcp 0.19.0 → 0.19.2
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-JVLYYXAG.js → apply-YM2NR2QA.js} +9 -9
- package/dist/{chunk-PFWTGEZJ.js → chunk-3MPPORSM.js} +2 -2
- package/dist/{chunk-3TG3KVHZ.js → chunk-5OVHW7AG.js} +3 -3
- package/dist/{chunk-LCENQ6JR.js → chunk-74TP72AP.js} +5 -5
- package/dist/{chunk-UQNCBXXH.js → chunk-ASGTJ35M.js} +11 -11
- package/dist/{chunk-OHW3A7Z3.js → chunk-BR4B2KU2.js} +2 -2
- package/dist/{chunk-47ZGCZQA.js → chunk-CIU5Q55A.js} +2 -2
- package/dist/{chunk-KHQQGBFJ.js → chunk-DFZESOWW.js} +10 -3
- package/dist/{chunk-Q3GLKL4B.js → chunk-DXK67PX7.js} +5 -5
- package/dist/{chunk-Y2MZ5RE3.js → chunk-DZV7EQ5Q.js} +2 -2
- package/dist/{chunk-4LV7KDTS.js → chunk-EB7XLUSW.js} +3 -3
- package/dist/{chunk-CYQIAEQT.js → chunk-GPPGCZKP.js} +5 -5
- package/dist/{chunk-IEK4U5RR.js → chunk-LREOXJ4I.js} +2 -2
- package/dist/{chunk-QXRD7N35.js → chunk-NDR7HEMH.js} +2 -2
- package/dist/{chunk-HEPSITZX.js → chunk-NNKLVEQZ.js} +2 -2
- package/dist/{chunk-NLKAEKSG.js → chunk-NNOATTGX.js} +3 -3
- package/dist/{chunk-QJRJCXX2.js → chunk-ONQJCG2X.js} +3 -3
- package/dist/{chunk-WJJ2KYE4.js → chunk-QXZLFIY2.js} +2 -2
- package/dist/{chunk-3O3FS6KM.js → chunk-SYCK2YYV.js} +7 -7
- package/dist/chunk-V4K6Q3GF.js +7 -0
- package/dist/{chunk-TPLV2YX2.js → chunk-YGJNZ47K.js} +2 -2
- package/dist/{chunk-6MZTOC6H.js → chunk-YMNVZMI3.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/{completion-CCK3LWVR.js → completion-52AM4CCB.js} +2 -2
- package/dist/{diagnostics-6WON3VMZ.js → diagnostics-2NXDRCS3.js} +6 -6
- package/dist/{doctor-UEXUOW5O.js → doctor-SBQHIZA4.js} +12 -11
- package/dist/{entry-GMC6LRO2.js → entry-PZUG7UVZ.js} +10 -10
- package/dist/{exec-mcp-FS7IPXNC.js → exec-mcp-UMHU5Q6Y.js} +6 -6
- package/dist/{harness-32PERNQY.js → harness-46QFLNJE.js} +3 -3
- package/dist/harness-launch-gate.js +4 -4
- package/dist/harness-worker.js +6 -6
- package/dist/hook-body.js +6 -2
- package/dist/{hook-spec-0aGt29Pg.d.ts → hook-spec-C7umArqw.d.ts} +1 -1
- package/dist/{hooks-VQCLHXRZ.js → hooks-JROFOE6Y.js} +3 -3
- package/dist/{host-4WNPLAD5.js → host-FPTPSHL2.js} +7 -7
- package/dist/{host-ED3XRUNM.js → host-MAVWRD5G.js} +8 -8
- package/dist/{host-run-PNY6NAYW.js → host-run-DMNF3PWU.js} +5 -5
- package/dist/http.js +1 -1
- package/dist/{import-mcp-WEUY6IVK.js → import-mcp-YGX7Q3CT.js} +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -10
- package/dist/{init-5ZDPHPWB.js → init-3QZPCMPA.js} +2 -2
- package/dist/{invoke-MB4SWBIE.js → invoke-TMDQXMY4.js} +8 -8
- package/dist/{list-U4SUFIS7.js → list-T6JWLS6W.js} +6 -6
- package/dist/{logout-M76LEHVP.js → logout-I3YZFAHR.js} +5 -5
- package/dist/{mcp-NSKAEV7J.js → mcp-TQBBPB3O.js} +2 -2
- package/dist/project/hook-adapter.d.ts +1 -1
- package/dist/{project-FTXIKBML.js → project-SJ3ZPUAA.js} +4 -4
- package/dist/{run-UMHKF2GM.js → run-3YQWI6PN.js} +4 -4
- package/dist/{run-Y7NKULSP.js → run-LVSY22QZ.js} +4 -4
- package/dist/{serve-MRWTSSAU.js → serve-NOPGIM4N.js} +3 -3
- package/dist/{start-login-POISLJD2.js → start-login-ULBUS65R.js} +5 -5
- package/dist/{status-XMATSURN.js → status-JI6MWSVS.js} +5 -5
- package/dist/{status-GGDHOPSE.js → status-PBYIVK3R.js} +8 -8
- package/dist/stdio.js +2 -2
- package/dist/{test-ULKQY6FV.js → test-B7KRCCL7.js} +11 -7
- package/dist/{tui-NGBCIBRW.js → tui-2SKEYYUR.js} +4 -4
- package/dist/{worker-Q7JWY6BR.js → worker-WWNHOUBS.js} +8 -8
- 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-FGEBSQQJ.js +0 -7
|
@@ -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-UMHU5Q6Y.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-YGX7Q3CT.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-YM2NR2QA.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-SJ3ZPUAA.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-JI6MWSVS.js")).run(context);
|
|
13
|
+
if (verb === "logout") return (await import("./logout-I3YZFAHR.js")).run(context);
|
|
14
|
+
return (await import("./start-login-ULBUS65R.js")).run(context);
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
17
|
executeMcpCommand
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=run-
|
|
19
|
+
//# sourceMappingURL=run-3YQWI6PN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSpec
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DFZESOWW.js";
|
|
4
4
|
import "./chunk-HQOB7OQS.js";
|
|
5
5
|
import {
|
|
6
6
|
readGitConfig
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
one
|
|
24
24
|
} from "./chunk-A4PKLESO.js";
|
|
25
25
|
import "./chunk-V4NPDK6X.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-DZV7EQ5Q.js";
|
|
27
27
|
import "./chunk-OEH47H6A.js";
|
|
28
28
|
import "./chunk-IJBSOWHK.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-V4K6Q3GF.js";
|
|
30
30
|
import {
|
|
31
31
|
readConfig
|
|
32
32
|
} from "./chunk-QPL7E2HW.js";
|
|
@@ -123,4 +123,4 @@ function run(context) {
|
|
|
123
123
|
export {
|
|
124
124
|
run
|
|
125
125
|
};
|
|
126
|
-
//# sourceMappingURL=run-
|
|
126
|
+
//# sourceMappingURL=run-LVSY22QZ.js.map
|
|
@@ -19,7 +19,7 @@ import "./chunk-73AKO4UL.js";
|
|
|
19
19
|
import {
|
|
20
20
|
serve,
|
|
21
21
|
serveWithMailbox
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YGJNZ47K.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-BR4B2KU2.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-NOPGIM4N.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YMNVZMI3.js";
|
|
4
4
|
import {
|
|
5
5
|
storeBearer,
|
|
6
6
|
tokenRequest,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeCredentials
|
|
15
15
|
} from "./chunk-UPQTAHUK.js";
|
|
16
16
|
import "./chunk-7DLZC73N.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-DFZESOWW.js";
|
|
18
18
|
import "./chunk-HQOB7OQS.js";
|
|
19
19
|
import "./chunk-J5XQW2CM.js";
|
|
20
20
|
import "./chunk-2Q6MNGU5.js";
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
one
|
|
37
37
|
} from "./chunk-A4PKLESO.js";
|
|
38
38
|
import "./chunk-V4NPDK6X.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-DZV7EQ5Q.js";
|
|
40
40
|
import "./chunk-OEH47H6A.js";
|
|
41
41
|
import "./chunk-IJBSOWHK.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-V4K6Q3GF.js";
|
|
43
43
|
import "./chunk-QPL7E2HW.js";
|
|
44
44
|
import "./chunk-PMJG2CXF.js";
|
|
45
45
|
import "./chunk-J6KL3COD.js";
|
|
@@ -413,4 +413,4 @@ async function run(context) {
|
|
|
413
413
|
export {
|
|
414
414
|
run
|
|
415
415
|
};
|
|
416
|
-
//# sourceMappingURL=start-login-
|
|
416
|
+
//# sourceMappingURL=start-login-ULBUS65R.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YMNVZMI3.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-DFZESOWW.js";
|
|
9
9
|
import "./chunk-HQOB7OQS.js";
|
|
10
10
|
import "./chunk-J5XQW2CM.js";
|
|
11
11
|
import "./chunk-2Q6MNGU5.js";
|
|
@@ -21,10 +21,10 @@ import "./chunk-C4NHQGHL.js";
|
|
|
21
21
|
import "./chunk-Q5H3L6Y4.js";
|
|
22
22
|
import "./chunk-A4PKLESO.js";
|
|
23
23
|
import "./chunk-V4NPDK6X.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-DZV7EQ5Q.js";
|
|
25
25
|
import "./chunk-OEH47H6A.js";
|
|
26
26
|
import "./chunk-IJBSOWHK.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-V4K6Q3GF.js";
|
|
28
28
|
import "./chunk-QPL7E2HW.js";
|
|
29
29
|
import "./chunk-PMJG2CXF.js";
|
|
30
30
|
import "./chunk-J6KL3COD.js";
|
|
@@ -40,4 +40,4 @@ function run(context) {
|
|
|
40
40
|
export {
|
|
41
41
|
run
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=status-
|
|
43
|
+
//# sourceMappingURL=status-JI6MWSVS.js.map
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
} from "./chunk-JGJ4INEN.js";
|
|
8
8
|
import {
|
|
9
9
|
policyRows
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3MPPORSM.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-GPPGCZKP.js";
|
|
18
|
+
import "./chunk-NDR7HEMH.js";
|
|
19
19
|
import {
|
|
20
20
|
readSpec
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DFZESOWW.js";
|
|
22
22
|
import "./chunk-HQOB7OQS.js";
|
|
23
23
|
import {
|
|
24
24
|
readGitConfig
|
|
@@ -51,14 +51,14 @@ import {
|
|
|
51
51
|
ArgumentError
|
|
52
52
|
} from "./chunk-A4PKLESO.js";
|
|
53
53
|
import "./chunk-V4NPDK6X.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-ONQJCG2X.js";
|
|
55
|
+
import "./chunk-DZV7EQ5Q.js";
|
|
56
56
|
import "./chunk-OEH47H6A.js";
|
|
57
57
|
import {
|
|
58
58
|
checkoutOf,
|
|
59
59
|
worktreesOf
|
|
60
60
|
} from "./chunk-IJBSOWHK.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-V4K6Q3GF.js";
|
|
62
62
|
import "./chunk-QPL7E2HW.js";
|
|
63
63
|
import "./chunk-PMJG2CXF.js";
|
|
64
64
|
import "./chunk-J6KL3COD.js";
|
|
@@ -277,4 +277,4 @@ var statusCommand = {
|
|
|
277
277
|
export {
|
|
278
278
|
statusCommand
|
|
279
279
|
};
|
|
280
|
-
//# sourceMappingURL=status-
|
|
280
|
+
//# sourceMappingURL=status-PBYIVK3R.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-YGJNZ47K.js";
|
|
8
|
+
import "./chunk-BR4B2KU2.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-QXZLFIY2.js";
|
|
4
4
|
import {
|
|
5
5
|
sourceFor
|
|
6
6
|
} from "./chunk-7TD53M7L.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
afterFailure,
|
|
14
14
|
commandsOf,
|
|
15
15
|
customPolicy
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DFZESOWW.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_LOG_SETTINGS,
|
|
19
19
|
LEVEL_RANK
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
one
|
|
48
48
|
} from "./chunk-A4PKLESO.js";
|
|
49
49
|
import "./chunk-V4NPDK6X.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-DZV7EQ5Q.js";
|
|
51
51
|
import {
|
|
52
52
|
expandPath
|
|
53
53
|
} from "./chunk-OEH47H6A.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
checkoutOf,
|
|
56
56
|
worktreesOf
|
|
57
57
|
} from "./chunk-IJBSOWHK.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-V4K6Q3GF.js";
|
|
59
59
|
import "./chunk-QPL7E2HW.js";
|
|
60
60
|
import "./chunk-PMJG2CXF.js";
|
|
61
61
|
import "./chunk-J6KL3COD.js";
|
|
@@ -116,6 +116,7 @@ function seedState(store, cwd, path) {
|
|
|
116
116
|
// src/hooks/dispatch/compose.ts
|
|
117
117
|
var RANK = { allow: 0, ask: 1, deny: 2 };
|
|
118
118
|
function applyMode(id, decision, mode) {
|
|
119
|
+
if (mode === "observe") return {};
|
|
119
120
|
if (!decision.verdict || decision.verdict === "allow") return decision;
|
|
120
121
|
if (mode === "off") return {};
|
|
121
122
|
if (mode === "graded") return decision;
|
|
@@ -294,7 +295,10 @@ async function runPolicy(selected, input, deps) {
|
|
|
294
295
|
}
|
|
295
296
|
const decision = applyMode(policy.id, raw, mode);
|
|
296
297
|
log.debug("policy", {
|
|
297
|
-
|
|
298
|
+
raw: raw.verdict ?? "allow",
|
|
299
|
+
mode,
|
|
300
|
+
verdict: decision.verdict ?? "allow",
|
|
301
|
+
...input.tool ? { tool: input.tool.kind, native: input.tool.native } : {},
|
|
298
302
|
duration_ms: deps.now() - started
|
|
299
303
|
});
|
|
300
304
|
return finish(decision);
|
|
@@ -302,7 +306,7 @@ async function runPolicy(selected, input, deps) {
|
|
|
302
306
|
log.error("policy failed", {
|
|
303
307
|
error: error instanceof Error ? error.message : String(error)
|
|
304
308
|
});
|
|
305
|
-
if (policy.fail === "open") return finish({});
|
|
309
|
+
if (policy.fail === "open" || mode === "observe") return finish({});
|
|
306
310
|
if (deps.failure) {
|
|
307
311
|
const cause = error instanceof Timeout ? error.message : `error: ${(error instanceof Error ? error.message : String(error)).split("\n")[0]}`;
|
|
308
312
|
return finish(afterFailure(policy.id, cause, input, deps.failure));
|
|
@@ -594,4 +598,4 @@ async function run(context) {
|
|
|
594
598
|
export {
|
|
595
599
|
run
|
|
596
600
|
};
|
|
597
|
-
//# sourceMappingURL=test-
|
|
601
|
+
//# sourceMappingURL=test-B7KRCCL7.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-2NXDRCS3.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-WWNHOUBS.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-PZUG7UVZ.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-2SKEYYUR.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
invoke
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-74TP72AP.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-EB7XLUSW.js";
|
|
11
|
+
import "./chunk-NNKLVEQZ.js";
|
|
12
12
|
import {
|
|
13
13
|
locateExecutable
|
|
14
14
|
} from "./chunk-R2GPCZUX.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-CIU5Q55A.js";
|
|
16
16
|
import "./chunk-34DECPVC.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-ONQJCG2X.js";
|
|
18
|
+
import "./chunk-DZV7EQ5Q.js";
|
|
19
19
|
import "./chunk-OEH47H6A.js";
|
|
20
20
|
import "./chunk-IJBSOWHK.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-V4K6Q3GF.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-WWNHOUBS.js.map
|
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
|
|
package/gemini-extension.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcp",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"mcpServers": {
|
|
5
5
|
"pmcp": {
|
|
6
6
|
"type": "stdio",
|
|
7
7
|
"command": "npx",
|
|
8
|
-
"args": ["-y", "@modootoday/pmcp@0.19.
|
|
8
|
+
"args": ["-y", "@modootoday/pmcp@0.19.2", "serve"]
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|
package/mcp.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modootoday/pmcp",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"author": "modootoday",
|
|
6
6
|
"description": "Use the skills your packages already ship, and keep your AI tools' project configuration in one place.",
|
|
@@ -136,9 +136,9 @@
|
|
|
136
136
|
"bun": ">=1.3.0"
|
|
137
137
|
},
|
|
138
138
|
"optionalDependencies": {
|
|
139
|
-
"@modootoday/pmcp-linux-x64": "0.19.
|
|
140
|
-
"@modootoday/pmcp-linux-arm64": "0.19.
|
|
141
|
-
"@modootoday/pmcp-darwin-x64": "0.19.
|
|
142
|
-
"@modootoday/pmcp-darwin-arm64": "0.19.
|
|
139
|
+
"@modootoday/pmcp-linux-x64": "0.19.2",
|
|
140
|
+
"@modootoday/pmcp-linux-arm64": "0.19.2",
|
|
141
|
+
"@modootoday/pmcp-darwin-x64": "0.19.2",
|
|
142
|
+
"@modootoday/pmcp-darwin-arm64": "0.19.2"
|
|
143
143
|
}
|
|
144
144
|
}
|
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "pmcp",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.2",
|
|
5
5
|
"description": "Find package skills and use native runtime project configuration.",
|
|
6
6
|
"author": { "name": "modootoday" },
|
|
7
7
|
"license": "Elastic-2.0",
|
package/plugins/pmcp/.mcp.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcp",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"mcpServers": {
|
|
5
5
|
"pmcp": {
|
|
6
6
|
"type": "stdio",
|
|
7
7
|
"command": "npx",
|
|
8
|
-
"args": ["-y", "@modootoday/pmcp@0.19.
|
|
8
|
+
"args": ["-y", "@modootoday/pmcp@0.19.2", "serve"]
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|
package/plugins/pmcp/mcp.json
CHANGED
package/plugins/pmcp/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "pmcp",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.2",
|
|
5
5
|
"description": "Find package skills and use native runtime project configuration.",
|
|
6
6
|
"author": { "name": "modootoday" },
|
|
7
7
|
"license": "Elastic-2.0",
|