@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
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-E272CFPS.js";
|
|
4
4
|
import {
|
|
5
5
|
POLICIES,
|
|
6
6
|
customMode,
|
|
7
|
-
customPolicy
|
|
8
|
-
|
|
7
|
+
customPolicy,
|
|
8
|
+
externalId,
|
|
9
|
+
externalPolicy
|
|
10
|
+
} from "./chunk-Y7FYCVUK.js";
|
|
9
11
|
import {
|
|
10
12
|
RUNTIMES
|
|
11
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GQRDEIQA.js";
|
|
12
14
|
|
|
13
15
|
// src/hooks/inspection/list.ts
|
|
14
16
|
function policyRows(compiled) {
|
|
@@ -24,7 +26,13 @@ function policyRows(compiled) {
|
|
|
24
26
|
options: {},
|
|
25
27
|
mode: customMode(entry)
|
|
26
28
|
}));
|
|
27
|
-
|
|
29
|
+
const external = (compiled.external ?? []).map((entry) => ({
|
|
30
|
+
id: externalId(entry),
|
|
31
|
+
policy: externalPolicy(entry),
|
|
32
|
+
options: {},
|
|
33
|
+
mode: entry.mode
|
|
34
|
+
}));
|
|
35
|
+
return [...guards, ...custom, ...external].flatMap((entry) => {
|
|
28
36
|
const events = entry.policy.eventsFor?.(entry.policy.options(entry.options)) ?? entry.policy.events;
|
|
29
37
|
return events.filter(
|
|
30
38
|
(event) => RUNTIMES[runtime].capabilities.events[event] !== "unsupported"
|
|
@@ -42,4 +50,4 @@ function policyRows(compiled) {
|
|
|
42
50
|
export {
|
|
43
51
|
policyRows
|
|
44
52
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-UVPIVSZB.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "./chunk-HQOB7OQS.js";
|
|
6
6
|
import {
|
|
7
7
|
readStoreSettings
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PAY6HEEY.js";
|
|
9
9
|
import {
|
|
10
10
|
projectStateDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KLIYFD3W.js";
|
|
12
12
|
import {
|
|
13
13
|
expandPath
|
|
14
14
|
} from "./chunk-GUHOEIHP.js";
|
|
@@ -154,4 +154,4 @@ export {
|
|
|
154
154
|
tail,
|
|
155
155
|
logLocation
|
|
156
156
|
};
|
|
157
|
-
//# sourceMappingURL=chunk-
|
|
157
|
+
//# sourceMappingURL=chunk-VN34GLGJ.js.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
globPattern
|
|
3
|
+
} from "./chunk-374AZ4J4.js";
|
|
4
|
+
|
|
5
|
+
// src/hooks/owners.ts
|
|
6
|
+
var FIELDS = ["paths", "owner", "note", "mode"];
|
|
7
|
+
function readEntry(value, at) {
|
|
8
|
+
const where = `[[owners]] entry ${at + 1}`;
|
|
9
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
10
|
+
throw new Error(`${where} must be a table`);
|
|
11
|
+
const entry = value;
|
|
12
|
+
const unknown = Object.keys(entry).find((key) => !FIELDS.includes(key));
|
|
13
|
+
if (unknown) throw new Error(`${where}: unknown key ${unknown}`);
|
|
14
|
+
const paths = entry["paths"];
|
|
15
|
+
if (!Array.isArray(paths) || paths.length === 0 || !paths.every(
|
|
16
|
+
(glob) => typeof glob === "string" && glob !== "" && !glob.startsWith("/") && !glob.split("/").includes("..")
|
|
17
|
+
))
|
|
18
|
+
throw new Error(
|
|
19
|
+
`${where}: paths must be a nonempty list of globs inside the project`
|
|
20
|
+
);
|
|
21
|
+
const owner = entry["owner"];
|
|
22
|
+
if (typeof owner !== "string" || owner.trim() === "")
|
|
23
|
+
throw new Error(`${where}: owner must be a name`);
|
|
24
|
+
const note = entry["note"];
|
|
25
|
+
if (note !== void 0 && typeof note !== "string")
|
|
26
|
+
throw new Error(`${where}: note must be a string`);
|
|
27
|
+
const mode = entry["mode"] ?? "warn";
|
|
28
|
+
if (mode !== "warn" && mode !== "observe")
|
|
29
|
+
throw new Error(`${where}: mode must be warn or observe`);
|
|
30
|
+
return {
|
|
31
|
+
paths,
|
|
32
|
+
owner,
|
|
33
|
+
...note !== void 0 && note !== "" ? { note } : {},
|
|
34
|
+
mode
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function readOwners(value) {
|
|
38
|
+
if (value === void 0) return [];
|
|
39
|
+
if (!Array.isArray(value))
|
|
40
|
+
throw new Error("[[owners]] must be an array of tables");
|
|
41
|
+
return value.map(readEntry);
|
|
42
|
+
}
|
|
43
|
+
function ownersOf(entries, path) {
|
|
44
|
+
return entries.filter(
|
|
45
|
+
(entry) => entry.paths.some((glob) => globPattern(glob).test(path))
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
function ownerLine(entry, path) {
|
|
49
|
+
return `${path} belongs to ${entry.owner}${entry.note ? `: ${entry.note}` : ""}`;
|
|
50
|
+
}
|
|
51
|
+
function ownerNotices(entries, paths) {
|
|
52
|
+
const hits = /* @__PURE__ */ new Map();
|
|
53
|
+
for (const path of paths)
|
|
54
|
+
for (const entry of ownersOf(entries, path)) {
|
|
55
|
+
if (entry.mode !== "warn") continue;
|
|
56
|
+
hits.set(entry, [...hits.get(entry) ?? [], path]);
|
|
57
|
+
}
|
|
58
|
+
return [...hits].map(([entry, matched]) => {
|
|
59
|
+
const sorted = [...matched].sort();
|
|
60
|
+
const more = sorted.length > 1 ? ` (and ${sorted.length - 1} more)` : "";
|
|
61
|
+
return `${ownerLine(entry, sorted[0])}${more}`;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export {
|
|
66
|
+
readOwners,
|
|
67
|
+
ownersOf,
|
|
68
|
+
ownerLine,
|
|
69
|
+
ownerNotices
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=chunk-WUFNKK3U.js.map
|