@modootoday/pmcp 0.25.0 → 0.26.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.
Files changed (111) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.mcp.json +1 -1
  5. package/dist/{affected-IPFJM2KD.js → affected-4FILH743.js} +174 -77
  6. package/dist/{apply-6XLLYLJT.js → apply-7HWNHSQB.js} +17 -15
  7. package/dist/{broadcast-34CEG2NQ.js → broadcast-U7ZYOJWE.js} +4 -4
  8. package/dist/{chunk-2TXVOHRS.js → chunk-2VL3C52Y.js} +4 -4
  9. package/dist/{chunk-UKR64U7J.js → chunk-374AZ4J4.js} +2 -2
  10. package/dist/{chunk-ISWR2XIU.js → chunk-3T7CJS4A.js} +2 -2
  11. package/dist/{chunk-PGZZI42O.js → chunk-5ZP3ABPI.js} +2 -2
  12. package/dist/{chunk-SSQ6EWNA.js → chunk-A7MF7RMO.js} +7 -7
  13. package/dist/{chunk-3P6Y2BAO.js → chunk-BSG74PTY.js} +3 -3
  14. package/dist/{chunk-SRSKCFFS.js → chunk-CJD2HFXF.js} +3 -3
  15. package/dist/chunk-D7IDT7OA.js +21 -0
  16. package/dist/chunk-E272CFPS.js +14 -0
  17. package/dist/{chunk-LZVHFPN6.js → chunk-E7BPELYH.js} +5 -5
  18. package/dist/chunk-EIBKHS74.js +7 -0
  19. package/dist/chunk-FLG7VRTC.js +1 -0
  20. package/dist/{chunk-BG6TONJO.js → chunk-GIK4TROM.js} +2 -2
  21. package/dist/{chunk-ARXCYFFZ.js → chunk-GQRDEIQA.js} +22 -2
  22. package/dist/{chunk-UQHJUTDW.js → chunk-GYL2C2Y5.js} +2 -2
  23. package/dist/{chunk-TOR6SKRB.js → chunk-JDVDA5HW.js} +508 -48
  24. package/dist/chunk-KLIYFD3W.js +32 -0
  25. package/dist/{chunk-5MUD7FHP.js → chunk-KWEW5EBE.js} +2 -2
  26. package/dist/{chunk-PECS47OL.js → chunk-M2XABD33.js} +3 -3
  27. package/dist/{chunk-MBHI2TKQ.js → chunk-MFQAQ4IJ.js} +5 -5
  28. package/dist/{chunk-NAHAESFV.js → chunk-OHCUPXU4.js} +18 -5
  29. package/dist/{chunk-3V37OZQH.js → chunk-PAY6HEEY.js} +2 -2
  30. package/dist/{chunk-DITIXBFB.js → chunk-PZ6D3WKD.js} +65 -1
  31. package/dist/{chunk-QYHM6554.js → chunk-RGTWJWQ7.js} +3 -3
  32. package/dist/{chunk-VYQJPT27.js → chunk-S2FUWBLO.js} +18 -4
  33. package/dist/{chunk-DWHM5BAY.js → chunk-T52AGUO7.js} +2 -2
  34. package/dist/{chunk-OGCJO6HQ.js → chunk-TQRLWO4F.js} +2 -2
  35. package/dist/{chunk-EC5QLEZD.js → chunk-UHKHXS3E.js} +14 -6
  36. package/dist/{chunk-MHKY6TNF.js → chunk-VN34GLGJ.js} +3 -3
  37. package/dist/chunk-WUFNKK3U.js +71 -0
  38. package/dist/chunk-X6W7JIED.js +25 -0
  39. package/dist/{chunk-RF6RDJYH.js → chunk-XPLT6DJC.js} +26 -19
  40. package/dist/{chunk-C3KRMTIZ.js → chunk-YJVSN6UN.js} +2 -2
  41. package/dist/{chunk-EWYLWBKS.js → chunk-YKICVMF7.js} +22 -5
  42. package/dist/{chunk-TJW4DP26.js → chunk-ZT75ACJ2.js} +2 -2
  43. package/dist/{cli-QDQYUHAP.js → cli-FVUHK2NB.js} +6 -6
  44. package/dist/{cli-5G2OYTIL.js → cli-ZOY2274X.js} +8 -8
  45. package/dist/cli.js +9 -14
  46. package/dist/{completion-3GVNPLZY.js → completion-O3KRUSJG.js} +5 -4
  47. package/dist/{diagnostics-2W7QDQNG.js → diagnostics-PB5TKIAL.js} +7 -7
  48. package/dist/{doctor-3TDO5LJ5.js → doctor-JVWINJT5.js} +31 -20
  49. package/dist/{entry-E62DZQJF.js → entry-CY74PLN3.js} +13 -13
  50. package/dist/{exec-mcp-4N7FLY52.js → exec-mcp-HAKUGQZM.js} +14 -12
  51. package/dist/{harness-E2AUZDLV.js → harness-N234LNM7.js} +3 -3
  52. package/dist/harness-launch-gate.js +5 -5
  53. package/dist/harness-worker.js +7 -7
  54. package/dist/{heavy-HZQVFI6P.js → heavy-X3KZ7WBU.js} +186 -99
  55. package/dist/hook-body.js +548 -116
  56. package/dist/{hook-spec-Bd24eo2L.d.ts → hook-spec-u7hnz571.d.ts} +10 -0
  57. package/dist/{hooks-VAEAK2FY.js → hooks-7K624JQC.js} +4 -4
  58. package/dist/{host-I2EMQ7UE.js → host-CCJFOCZJ.js} +16 -14
  59. package/dist/{host-4GJDGTLW.js → host-PT7NRWG6.js} +8 -8
  60. package/dist/{host-run-DDMKD3BU.js → host-run-RRBFTVYW.js} +6 -6
  61. package/dist/http.js +1 -1
  62. package/dist/{import-mcp-TNSAMJXI.js → import-mcp-GCNNSLWH.js} +13 -11
  63. package/dist/index.d.ts +2 -2
  64. package/dist/index.js +17 -15
  65. package/dist/{init-UA7MDNTZ.js → init-A4NLTERR.js} +2 -2
  66. package/dist/{invoke-HW7NBPGP.js → invoke-G4LNWPTL.js} +9 -9
  67. package/dist/{list-A7VQJXE5.js → list-EZYULVDW.js} +16 -14
  68. package/dist/{logout-HNPLUKJY.js → logout-BYO3UJUH.js} +14 -12
  69. package/dist/{logs-2JEMSNSG.js → logs-J4W6GFMK.js} +4 -4
  70. package/dist/{mailbox-MR6TPD3P.js → mailbox-6MHH6CUA.js} +4 -4
  71. package/dist/{mainline-MSLW3UFD.js → mainline-SWZPKA7U.js} +13 -9
  72. package/dist/{mcp-6C23GX2E.js → mcp-CZNYDYTJ.js} +2 -2
  73. package/dist/owners-MPI22SFU.js +63 -0
  74. package/dist/{pause-H6ZYZF7C.js → pause-3IMVYXQQ.js} +4 -4
  75. package/dist/project/hook-adapter.d.ts +1 -1
  76. package/dist/{project-BX6NCGKB.js → project-GLT3SO7Y.js} +4 -4
  77. package/dist/{report-43SFNNCF.js → report-MWXB5XKE.js} +4 -4
  78. package/dist/{resume-2BWGSTCN.js → resume-7LCSV4X3.js} +4 -4
  79. package/dist/{run-2UVAWBAF.js → run-J5O2V3MB.js} +13 -11
  80. package/dist/{run-7TRWZFEZ.js → run-OBQBKBPV.js} +4 -4
  81. package/dist/{serve-4XZ5SKJJ.js → serve-QCG4PCVS.js} +3 -3
  82. package/dist/{setup-GRWLDBVB.js → setup-7JHWLV7K.js} +6 -4
  83. package/dist/{smoke-6X6IXQIQ.js → smoke-GZECLXOJ.js} +3 -3
  84. package/dist/{start-login-AR7ITWNV.js → start-login-LRO3RTHD.js} +14 -12
  85. package/dist/{status-ZY6LDQSF.js → status-BQLT7JRE.js} +14 -12
  86. package/dist/{status-VQCMJFVE.js → status-EZTFSD5S.js} +18 -16
  87. package/dist/{status-2GDYLIR3.js → status-QFMN7IUG.js} +4 -4
  88. package/dist/stdio.js +2 -2
  89. package/dist/{sweep-76BUOGEI.js → sweep-BS7HVSNP.js} +4 -4
  90. package/dist/{test-VWGNFSH5.js → test-O7TN5SBA.js} +25 -15
  91. package/dist/{tui-TUMOQBE7.js → tui-ODLF6QWC.js} +4 -4
  92. package/dist/{unbroadcast-HJHYUHZL.js → unbroadcast-GRGX3F6T.js} +4 -4
  93. package/dist/{worker-NEEPJRVV.js → worker-AK4GLGPZ.js} +11 -11
  94. package/dist/{worktree-sync-MUVKK2CV.js → worktree-sync-BQZD4J73.js} +5 -2
  95. package/docs/commands.md +12 -3
  96. package/docs/git-workflow.md +40 -5
  97. package/docs/hooks.md +69 -14
  98. package/docs/project-configuration.md +63 -4
  99. package/docs/upgrading.md +13 -0
  100. package/gemini-extension.json +2 -2
  101. package/mcp.json +1 -1
  102. package/package.json +5 -5
  103. package/plugin.json +1 -1
  104. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  105. package/plugins/pmcp/.mcp.json +1 -1
  106. package/plugins/pmcp/gemini-extension.json +2 -2
  107. package/plugins/pmcp/mcp.json +1 -1
  108. package/plugins/pmcp/plugin.json +1 -1
  109. package/dist/chunk-7TD53M7L.js +0 -13
  110. package/dist/chunk-FQLCD4HU.js +0 -24
  111. package/dist/chunk-SMBU3QLE.js +0 -7
@@ -19,12 +19,12 @@ import {
19
19
  splitKeyed,
20
20
  versionMatches,
21
21
  withoutBlock
22
- } from "./chunk-TOR6SKRB.js";
22
+ } from "./chunk-JDVDA5HW.js";
23
23
  import {
24
24
  lockVersionProblem,
25
25
  readLock,
26
26
  replaceFile
27
- } from "./chunk-2TXVOHRS.js";
27
+ } from "./chunk-2VL3C52Y.js";
28
28
  import {
29
29
  ProjectError,
30
30
  RULES_DIR,
@@ -273,4 +273,4 @@ export {
273
273
  prepare,
274
274
  checkProject
275
275
  };
276
- //# sourceMappingURL=chunk-SRSKCFFS.js.map
276
+ //# sourceMappingURL=chunk-CJD2HFXF.js.map
@@ -0,0 +1,21 @@
1
+ import {
2
+ jsonOption,
3
+ nearestConfigOption
4
+ } from "./chunk-JPYQDOEW.js";
5
+
6
+ // src/commands/specs/owners.ts
7
+ var ownersSpec = {
8
+ name: "owners",
9
+ examples: [
10
+ "pmcp owners services/auth/src/login.ts",
11
+ "pmcp owners docs --json"
12
+ ],
13
+ describe: "Who looks after a path, from [[owners]] in pmcp.toml",
14
+ usage: "pmcp owners <path>... [--config <file>] [--json]",
15
+ options: [nearestConfigOption, jsonOption]
16
+ };
17
+
18
+ export {
19
+ ownersSpec
20
+ };
21
+ //# sourceMappingURL=chunk-D7IDT7OA.js.map
@@ -0,0 +1,14 @@
1
+ // src/hooks/inspection/source.ts
2
+ function sourceFor(id) {
3
+ if (id.startsWith("custom.")) return "hooks.guards.custom";
4
+ if (id.startsWith("external.")) return "hooks.guards.external";
5
+ if (id.startsWith("checks.")) return "hooks." + id;
6
+ if (id === "owners" || id.startsWith("sessions.") || id.startsWith("git.worktrees") || id === "git.shared_checkout" || id === "git.mainline.deliver")
7
+ return id;
8
+ return "hooks.guards." + id;
9
+ }
10
+
11
+ export {
12
+ sourceFor
13
+ };
14
+ //# sourceMappingURL=chunk-E272CFPS.js.map
@@ -7,20 +7,20 @@ import {
7
7
  observeSession,
8
8
  openGroup,
9
9
  runOperation
10
- } from "./chunk-3P6Y2BAO.js";
10
+ } from "./chunk-BSG74PTY.js";
11
11
  import {
12
12
  nativeHostTools
13
- } from "./chunk-ISWR2XIU.js";
13
+ } from "./chunk-3T7CJS4A.js";
14
14
  import {
15
15
  locateExecutable
16
16
  } from "./chunk-R2GPCZUX.js";
17
17
  import {
18
18
  artifact,
19
19
  stateDirectory
20
- } from "./chunk-DWHM5BAY.js";
20
+ } from "./chunk-T52AGUO7.js";
21
21
  import {
22
22
  ptyBinary
23
- } from "./chunk-2TXVOHRS.js";
23
+ } from "./chunk-2VL3C52Y.js";
24
24
  import {
25
25
  GroupStore,
26
26
  privateJson
@@ -249,4 +249,4 @@ async function invoke(operation) {
249
249
  export {
250
250
  invoke
251
251
  };
252
- //# sourceMappingURL=chunk-LZVHFPN6.js.map
252
+ //# sourceMappingURL=chunk-E7BPELYH.js.map
@@ -0,0 +1,7 @@
1
+ // src/commands/version.ts
2
+ var VERSION = "0.26.1";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-EIBKHS74.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-FLG7VRTC.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7CHUMF3E.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-TOR6SKRB.js";
6
+ } from "./chunk-JDVDA5HW.js";
7
7
  import {
8
8
  ArgumentError,
9
9
  noConfig
@@ -27,4 +27,4 @@ function specFrom(context) {
27
27
  export {
28
28
  specFrom
29
29
  };
30
- //# sourceMappingURL=chunk-BG6TONJO.js.map
30
+ //# sourceMappingURL=chunk-GIK4TROM.js.map
@@ -397,10 +397,30 @@ function toolFields(name, kind, input, paths) {
397
397
  kind,
398
398
  native: name,
399
399
  ...kind === "shell" ? { command: text2(input["command"]) ?? "" } : {},
400
- paths
400
+ paths,
401
+ ...editFields(name, input, paths)
401
402
  }
402
403
  };
403
404
  }
405
+ function replacement(value) {
406
+ const item = object2(value);
407
+ const old = text2(item["old_string"]);
408
+ const next = text2(item["new_string"]);
409
+ if (old === void 0 || next === void 0) return null;
410
+ return { old, new: next, all: item["replace_all"] === true };
411
+ }
412
+ function editFields(name, input, paths) {
413
+ const path = paths[0];
414
+ if (path === void 0) return {};
415
+ if (name === "Write") {
416
+ const content = text2(input["content"]);
417
+ return content === void 0 ? {} : { edit: { path, content } };
418
+ }
419
+ const list = name === "Edit" ? [replacement(input)] : name === "MultiEdit" && Array.isArray(input["edits"]) ? input["edits"].map(replacement) : null;
420
+ if (list === null || list.length === 0 || list.some((item) => !item))
421
+ return {};
422
+ return { edit: { path, replacements: list } };
423
+ }
404
424
  function stopFields(event, raw, lastMessage) {
405
425
  if (event !== "stop") return {};
406
426
  return {
@@ -1669,4 +1689,4 @@ export {
1669
1689
  readFixtures,
1670
1690
  smoke
1671
1691
  };
1672
- //# sourceMappingURL=chunk-ARXCYFFZ.js.map
1692
+ //# sourceMappingURL=chunk-GQRDEIQA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSkillServer
3
- } from "./chunk-5MUD7FHP.js";
3
+ } from "./chunk-KWEW5EBE.js";
4
4
  import {
5
5
  attachMailbox
6
6
  } from "./chunk-JZKAJUVT.js";
@@ -84,4 +84,4 @@ export {
84
84
  serveWithMailbox,
85
85
  main
86
86
  };
87
- //# sourceMappingURL=chunk-UQHJUTDW.js.map
87
+ //# sourceMappingURL=chunk-GYL2C2Y5.js.map