@modootoday/pmcp 0.19.9 → 0.20.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.
Files changed (107) 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/{apply-TM6B2Y3G.js → apply-QJ6MGLBX.js} +13 -13
  6. package/dist/{attachment-D84OGI6n.d.ts → attachment-ms6s8Aow.d.ts} +1 -1
  7. package/dist/{broadcast-DSCHWUMB.js → broadcast-LYOA6BEW.js} +4 -4
  8. package/dist/{chunk-YKU7KHJO.js → chunk-4VK5G3SV.js} +3 -3
  9. package/dist/{chunk-YXAPCHXJ.js → chunk-5JPD6VIH.js} +24 -4
  10. package/dist/{chunk-57FHYW74.js → chunk-66F3HLW4.js} +2 -2
  11. package/dist/{chunk-EONAJAMJ.js → chunk-7SDOSTW7.js} +3 -3
  12. package/dist/{chunk-IACJDHFQ.js → chunk-AWZF72SH.js} +5 -5
  13. package/dist/{chunk-FR6JHNLC.js → chunk-CQZYQAAV.js} +3 -3
  14. package/dist/{chunk-2S44RDO4.js → chunk-EKPMVEIA.js} +2 -2
  15. package/dist/{chunk-3UOFHLY4.js → chunk-FD6VGFYZ.js} +5 -5
  16. package/dist/chunk-FGYFA6JY.js +7 -0
  17. package/dist/{chunk-XNPOHPMJ.js → chunk-FQAJSNNU.js} +3 -3
  18. package/dist/{chunk-4XNAKVSO.js → chunk-IQD4W53M.js} +2 -2
  19. package/dist/{chunk-SPUCY4AG.js → chunk-IZABPDAO.js} +2 -2
  20. package/dist/{chunk-A6TM4NTI.js → chunk-J6HNP6HA.js} +2 -2
  21. package/dist/{chunk-PBDPWE5J.js → chunk-JBHGJKSL.js} +2 -2
  22. package/dist/{chunk-YYG3GUQW.js → chunk-K2C3KFGB.js} +9 -9
  23. package/dist/{chunk-BZ2RXI5I.js → chunk-L4MFGGSI.js} +2 -2
  24. package/dist/{chunk-W5RLIUNC.js → chunk-M2RYXWX2.js} +2 -2
  25. package/dist/{chunk-4XWVLC23.js → chunk-MZEMLFFD.js} +2 -2
  26. package/dist/{chunk-VDBUZKXC.js → chunk-O2JWF7ZM.js} +2 -2
  27. package/dist/{chunk-PG42KALG.js → chunk-OAIQ7A3R.js} +5 -5
  28. package/dist/{chunk-I4DLMIN5.js → chunk-ONP6JRFZ.js} +2 -2
  29. package/dist/{chunk-V7HG3STC.js → chunk-PQTM27GU.js} +32 -15
  30. package/dist/{chunk-YLPXTJJM.js → chunk-QDY6BWE6.js} +2 -2
  31. package/dist/{chunk-BRSESCGX.js → chunk-QOFSPFJ6.js} +13 -12
  32. package/dist/{chunk-RRKGSYQ4.js → chunk-QSIADSMQ.js} +13 -2
  33. package/dist/{chunk-MCYGYZVZ.js → chunk-QYH2NR6G.js} +2 -2
  34. package/dist/{chunk-XPWIJOZT.js → chunk-RBNMNKNN.js} +3 -3
  35. package/dist/{chunk-QTKD7JEL.js → chunk-RMHZFWHF.js} +15 -15
  36. package/dist/{chunk-QYQGPDBE.js → chunk-YDICIB2A.js} +2 -2
  37. package/dist/{chunk-CJ6OFTS3.js → chunk-YOWIYFIV.js} +6 -37
  38. package/dist/{claude-2C5L2HQL.js → claude-GT2BPXEL.js} +3 -3
  39. package/dist/{cli-YV6SFE4D.js → cli-6HTAJ54L.js} +4 -4
  40. package/dist/{cli-BVRPAI23.js → cli-IV5DJCXU.js} +8 -8
  41. package/dist/cli.js +3 -3
  42. package/dist/{completion-B3UT3GVI.js → completion-PPM7MEI2.js} +2 -2
  43. package/dist/{diagnostics-ONIAKCA3.js → diagnostics-EWU2ROTG.js} +6 -6
  44. package/dist/{doctor-MJFU5L6R.js → doctor-ZWZQMDKZ.js} +17 -17
  45. package/dist/{entry-DZGKCL4G.js → entry-NDICBQ2F.js} +10 -10
  46. package/dist/{exec-mcp-QK2VC6RX.js → exec-mcp-AG4G7SG7.js} +10 -10
  47. package/dist/{harness-GTED4GLK.js → harness-JABSZCAA.js} +3 -3
  48. package/dist/harness-launch-gate.js +4 -4
  49. package/dist/harness-worker.js +6 -6
  50. package/dist/hook-body.js +42 -20
  51. package/dist/{hooks-FRZ4SUNJ.js → hooks-YVQSDQV3.js} +3 -3
  52. package/dist/{host-AGNF2AQH.js → host-2SZRMHZX.js} +7 -7
  53. package/dist/{host-3HTCZNVJ.js → host-BWZ5LA4Q.js} +12 -12
  54. package/dist/{host-run-2OQZVQID.js → host-run-SXLV4LHI.js} +5 -5
  55. package/dist/http.d.ts +1 -1
  56. package/dist/http.js +1 -1
  57. package/dist/{import-mcp-7KEPR2B6.js → import-mcp-2M7SZRVQ.js} +8 -8
  58. package/dist/index.d.ts +2 -2
  59. package/dist/index.js +17 -17
  60. package/dist/{init-BHGCF7JL.js → init-HOOIFBAD.js} +2 -2
  61. package/dist/{invoke-CVHF6PEK.js → invoke-JP4MILYY.js} +8 -8
  62. package/dist/{list-6XGQ3FR3.js → list-UBSBUZKS.js} +10 -10
  63. package/dist/{logout-6RJLG2KG.js → logout-OO3DERRK.js} +9 -9
  64. package/dist/{logs-VTW7S2LR.js → logs-K3QXKRD4.js} +4 -4
  65. package/dist/mailbox/index.d.ts +3 -3
  66. package/dist/{mailbox-CNAONXN7.js → mailbox-DAJV6VAI.js} +9 -9
  67. package/dist/{mainline-JSG4MUKH.js → mainline-6K5BA3WX.js} +48 -25
  68. package/dist/{mcp-P55VLQLR.js → mcp-JXNTKRJG.js} +2 -2
  69. package/dist/{pause-V5VCNOSH.js → pause-GRVTSKOK.js} +4 -4
  70. package/dist/{project-B57IQPDK.js → project-M672MKQH.js} +4 -4
  71. package/dist/{pty-FD4JGBZL.js → pty-LHKJKY2E.js} +3 -3
  72. package/dist/{resume-7S4K3R4X.js → resume-6DMPGG3N.js} +4 -4
  73. package/dist/{run-MC2BPLOE.js → run-5W566T3V.js} +8 -8
  74. package/dist/{run-LFJXONLW.js → run-ORBIERI3.js} +4 -4
  75. package/dist/{serve-TFAEVXX3.js → serve-73SRPAV4.js} +3 -3
  76. package/dist/{setup-FHFQZJY6.js → setup-ULKDPF5B.js} +4 -4
  77. package/dist/{start-login-KXOHCR5A.js → start-login-BGFAMCZL.js} +9 -9
  78. package/dist/{status-AW7DOW7A.js → status-73FEFQUQ.js} +9 -9
  79. package/dist/{status-YXOIEVOJ.js → status-YCW6YJ3S.js} +13 -13
  80. package/dist/{status-OYRB3KL5.js → status-YHXEAJ7U.js} +7 -7
  81. package/dist/stdio.d.ts +2 -2
  82. package/dist/stdio.js +2 -2
  83. package/dist/{sweep-ZSYG6FNR.js → sweep-XF2HG3EO.js} +4 -4
  84. package/dist/{test-2HTOY4PJ.js → test-IMNBXOYW.js} +11 -13
  85. package/dist/{tui-DQFXYQ4H.js → tui-5GDA22TB.js} +4 -4
  86. package/dist/{unbroadcast-FONZJWEW.js → unbroadcast-XP3OCVN3.js} +4 -4
  87. package/dist/{validate-WOFI7TMT.js → validate-KFBCUFI4.js} +2 -2
  88. package/dist/{worker-UXPGXAV2.js → worker-RV6NGSXT.js} +8 -8
  89. package/docs/git-workflow.md +22 -5
  90. package/docs/hooks.md +1 -2
  91. package/docs/project-configuration.md +7 -5
  92. package/docs/upgrading.md +52 -0
  93. package/gemini-extension.json +2 -2
  94. package/mcp.json +1 -1
  95. package/package.json +5 -5
  96. package/plugin.json +1 -1
  97. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  98. package/plugins/pmcp/.mcp.json +1 -1
  99. package/plugins/pmcp/gemini-extension.json +2 -2
  100. package/plugins/pmcp/mcp.json +1 -1
  101. package/plugins/pmcp/mod/reader/read.ts +14 -4
  102. package/plugins/pmcp/mod/sessions/format.ts +16 -1
  103. package/plugins/pmcp/mod/sessions/types.ts +1 -1
  104. package/plugins/pmcp/plugin.json +1 -1
  105. package/schema/catalog-v1.json +1 -7
  106. package/dist/chunk-YGTJQVCK.js +0 -7
  107. package/dist/{core-C1LPjxK6.d.ts → core-Sug_rZrx.d.ts} +1 -1
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  serverFrom
3
- } from "./chunk-A6TM4NTI.js";
3
+ } from "./chunk-J6HNP6HA.js";
4
4
  import {
5
5
  status
6
6
  } from "./chunk-UPQTAHUK.js";
7
7
  import "./chunk-RPCIROW7.js";
8
- import "./chunk-BRSESCGX.js";
8
+ import "./chunk-QOFSPFJ6.js";
9
9
  import "./chunk-HQOB7OQS.js";
10
10
  import "./chunk-ICF2JZSN.js";
11
11
  import "./chunk-UD3BEEBQ.js";
12
12
  import "./chunk-ISNRDHSD.js";
13
13
  import "./chunk-EATCUWGG.js";
14
14
  import "./chunk-NRBQK6UX.js";
15
- import "./chunk-I4DLMIN5.js";
15
+ import "./chunk-ONP6JRFZ.js";
16
16
  import "./chunk-P6LNYYYH.js";
17
- import "./chunk-YXAPCHXJ.js";
17
+ import "./chunk-5JPD6VIH.js";
18
18
  import "./chunk-2Q6MNGU5.js";
19
- import "./chunk-V7HG3STC.js";
20
- import "./chunk-RRKGSYQ4.js";
19
+ import "./chunk-PQTM27GU.js";
20
+ import "./chunk-QSIADSMQ.js";
21
21
  import "./chunk-G7JONWL4.js";
22
22
  import "./chunk-Q5H3L6Y4.js";
23
23
  import "./chunk-A4PKLESO.js";
24
24
  import "./chunk-V4NPDK6X.js";
25
- import "./chunk-57FHYW74.js";
25
+ import "./chunk-66F3HLW4.js";
26
26
  import "./chunk-OEH47H6A.js";
27
27
  import "./chunk-IJBSOWHK.js";
28
- import "./chunk-YGTJQVCK.js";
28
+ import "./chunk-FGYFA6JY.js";
29
29
  import "./chunk-GJXOFDJT.js";
30
30
  import "./chunk-PMJG2CXF.js";
31
31
  import "./chunk-J6KL3COD.js";
@@ -41,4 +41,4 @@ function run(context) {
41
41
  export {
42
42
  run
43
43
  };
44
- //# sourceMappingURL=status-AW7DOW7A.js.map
44
+ //# sourceMappingURL=status-73FEFQUQ.js.map
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  logLocation,
3
3
  readLogs
4
- } from "./chunk-4XNAKVSO.js";
4
+ } from "./chunk-IQD4W53M.js";
5
5
  import {
6
6
  sessionSnapshot
7
7
  } from "./chunk-JGJ4INEN.js";
8
8
  import {
9
9
  policyRows
10
- } from "./chunk-2S44RDO4.js";
10
+ } from "./chunk-EKPMVEIA.js";
11
11
  import "./chunk-7TD53M7L.js";
12
12
  import {
13
13
  configFrom
14
14
  } from "./chunk-RPCIROW7.js";
15
15
  import {
16
16
  checkProject
17
- } from "./chunk-IACJDHFQ.js";
18
- import "./chunk-YLPXTJJM.js";
17
+ } from "./chunk-AWZF72SH.js";
18
+ import "./chunk-QDY6BWE6.js";
19
19
  import "./chunk-73AKO4UL.js";
20
20
  import {
21
21
  readSpec
22
- } from "./chunk-BRSESCGX.js";
22
+ } from "./chunk-QOFSPFJ6.js";
23
23
  import "./chunk-HQOB7OQS.js";
24
24
  import "./chunk-ICF2JZSN.js";
25
25
  import "./chunk-UD3BEEBQ.js";
@@ -28,11 +28,11 @@ import {
28
28
  } from "./chunk-ISNRDHSD.js";
29
29
  import "./chunk-EATCUWGG.js";
30
30
  import "./chunk-NRBQK6UX.js";
31
- import "./chunk-I4DLMIN5.js";
31
+ import "./chunk-ONP6JRFZ.js";
32
32
  import "./chunk-P6LNYYYH.js";
33
33
  import {
34
34
  readGitConfig
35
- } from "./chunk-YXAPCHXJ.js";
35
+ } from "./chunk-5JPD6VIH.js";
36
36
  import {
37
37
  defaultMainline,
38
38
  defaultRemote
@@ -40,8 +40,8 @@ import {
40
40
  import {
41
41
  openStore,
42
42
  readStoreSettings
43
- } from "./chunk-V7HG3STC.js";
44
- import "./chunk-RRKGSYQ4.js";
43
+ } from "./chunk-PQTM27GU.js";
44
+ import "./chunk-QSIADSMQ.js";
45
45
  import "./chunk-G7JONWL4.js";
46
46
  import "./chunk-Q5H3L6Y4.js";
47
47
  import {
@@ -52,14 +52,14 @@ import {
52
52
  ArgumentError
53
53
  } from "./chunk-A4PKLESO.js";
54
54
  import "./chunk-V4NPDK6X.js";
55
- import "./chunk-EONAJAMJ.js";
56
- import "./chunk-57FHYW74.js";
55
+ import "./chunk-7SDOSTW7.js";
56
+ import "./chunk-66F3HLW4.js";
57
57
  import "./chunk-OEH47H6A.js";
58
58
  import {
59
59
  checkoutOf,
60
60
  worktreesOf
61
61
  } from "./chunk-IJBSOWHK.js";
62
- import "./chunk-YGTJQVCK.js";
62
+ import "./chunk-FGYFA6JY.js";
63
63
  import "./chunk-GJXOFDJT.js";
64
64
  import "./chunk-PMJG2CXF.js";
65
65
  import "./chunk-J6KL3COD.js";
@@ -278,4 +278,4 @@ var statusCommand = {
278
278
  export {
279
279
  statusCommand
280
280
  };
281
- //# sourceMappingURL=status-YXOIEVOJ.js.map
281
+ //# sourceMappingURL=status-YCW6YJ3S.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  storeFrom
3
- } from "./chunk-MCYGYZVZ.js";
3
+ } from "./chunk-QYH2NR6G.js";
4
4
  import {
5
5
  statusLines
6
6
  } from "./chunk-MVFH26QT.js";
@@ -9,16 +9,16 @@ import {
9
9
  } from "./chunk-JGJ4INEN.js";
10
10
  import {
11
11
  wakeableBy
12
- } from "./chunk-XPWIJOZT.js";
13
- import "./chunk-W5RLIUNC.js";
12
+ } from "./chunk-RBNMNKNN.js";
13
+ import "./chunk-M2RYXWX2.js";
14
14
  import "./chunk-TIA4SPU2.js";
15
15
  import {
16
16
  currentHooks,
17
17
  restartNotes
18
18
  } from "./chunk-VJFEN6DJ.js";
19
- import "./chunk-I4DLMIN5.js";
20
- import "./chunk-V7HG3STC.js";
21
- import "./chunk-RRKGSYQ4.js";
19
+ import "./chunk-ONP6JRFZ.js";
20
+ import "./chunk-PQTM27GU.js";
21
+ import "./chunk-QSIADSMQ.js";
22
22
  import "./chunk-A4PKLESO.js";
23
23
  import "./chunk-OEH47H6A.js";
24
24
  import "./chunk-IJBSOWHK.js";
@@ -51,4 +51,4 @@ function status(context) {
51
51
  export {
52
52
  status
53
53
  };
54
- //# sourceMappingURL=status-OYRB3KL5.js.map
54
+ //# sourceMappingURL=status-YHXEAJ7U.js.map
package/dist/stdio.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { serveStdio } from '@modelcontextprotocol/server/stdio';
3
3
  import { S as SkillServerOptions, C as CatalogOptions } from './tools-gpHNq9Dh.js';
4
- import { M as MailboxService } from './core-C1LPjxK6.js';
5
- import { M as MailboxAttachmentOptions } from './attachment-D84OGI6n.js';
4
+ import { M as MailboxService } from './core-Sug_rZrx.js';
5
+ import { M as MailboxAttachmentOptions } from './attachment-ms6s8Aow.js';
6
6
  import 'zod';
7
7
 
8
8
  declare function resolveRoots(argv: readonly string[], cwd: string): string[];
package/dist/stdio.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  resolveRoots,
5
5
  serve,
6
6
  serveWithMailbox
7
- } from "./chunk-4XWVLC23.js";
8
- import "./chunk-VDBUZKXC.js";
7
+ } from "./chunk-MZEMLFFD.js";
8
+ import "./chunk-O2JWF7ZM.js";
9
9
  import "./chunk-6WXMJOMI.js";
10
10
  import "./chunk-4CRRLDDS.js";
11
11
  import "./chunk-YSAWTGNA.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  change
3
- } from "./chunk-MCYGYZVZ.js";
4
- import "./chunk-V7HG3STC.js";
5
- import "./chunk-RRKGSYQ4.js";
3
+ } from "./chunk-QYH2NR6G.js";
4
+ import "./chunk-PQTM27GU.js";
5
+ import "./chunk-QSIADSMQ.js";
6
6
  import "./chunk-A4PKLESO.js";
7
7
  import "./chunk-OEH47H6A.js";
8
8
  import "./chunk-IJBSOWHK.js";
@@ -14,4 +14,4 @@ var run = (context) => change(context, "sweep");
14
14
  export {
15
15
  run
16
16
  };
17
- //# sourceMappingURL=sweep-ZSYG6FNR.js.map
17
+ //# sourceMappingURL=sweep-XF2HG3EO.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  specFrom
3
- } from "./chunk-PBDPWE5J.js";
3
+ } from "./chunk-JBHGJKSL.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-BRSESCGX.js";
16
+ } from "./chunk-QOFSPFJ6.js";
17
17
  import {
18
18
  DEFAULT_LOG_SETTINGS,
19
19
  LEVEL_RANK
@@ -23,15 +23,15 @@ import "./chunk-UD3BEEBQ.js";
23
23
  import "./chunk-ISNRDHSD.js";
24
24
  import "./chunk-EATCUWGG.js";
25
25
  import "./chunk-NRBQK6UX.js";
26
- import "./chunk-I4DLMIN5.js";
26
+ import "./chunk-ONP6JRFZ.js";
27
27
  import "./chunk-P6LNYYYH.js";
28
- import "./chunk-YXAPCHXJ.js";
28
+ import "./chunk-5JPD6VIH.js";
29
29
  import "./chunk-2Q6MNGU5.js";
30
30
  import {
31
31
  SESSION_ID,
32
32
  createFilesStore,
33
33
  writeJson
34
- } from "./chunk-V7HG3STC.js";
34
+ } from "./chunk-PQTM27GU.js";
35
35
  import {
36
36
  STATE_FILES,
37
37
  asBroadcast,
@@ -40,7 +40,7 @@ import {
40
40
  asRecord,
41
41
  fieldsOf,
42
42
  leaseFile
43
- } from "./chunk-RRKGSYQ4.js";
43
+ } from "./chunk-QSIADSMQ.js";
44
44
  import "./chunk-G7JONWL4.js";
45
45
  import "./chunk-Q5H3L6Y4.js";
46
46
  import {
@@ -48,7 +48,7 @@ import {
48
48
  one
49
49
  } from "./chunk-A4PKLESO.js";
50
50
  import "./chunk-V4NPDK6X.js";
51
- import "./chunk-57FHYW74.js";
51
+ import "./chunk-66F3HLW4.js";
52
52
  import {
53
53
  expandPath
54
54
  } from "./chunk-OEH47H6A.js";
@@ -56,7 +56,7 @@ import {
56
56
  checkoutOf,
57
57
  worktreesOf
58
58
  } from "./chunk-IJBSOWHK.js";
59
- import "./chunk-YGTJQVCK.js";
59
+ import "./chunk-FGYFA6JY.js";
60
60
  import "./chunk-GJXOFDJT.js";
61
61
  import "./chunk-PMJG2CXF.js";
62
62
  import "./chunk-J6KL3COD.js";
@@ -89,10 +89,8 @@ function seedState(store, cwd, path) {
89
89
  const record = asRecord(value2);
90
90
  if (!record || !SESSION_ID.test(record.session))
91
91
  throw new ArgumentError("records need valid session identifiers");
92
- writeJson(
93
- join(store.dir, STATE_FILES.records, record.session + ".json"),
94
- record
95
- );
92
+ for (const folder of [STATE_FILES.records, STATE_FILES.legacyRecords])
93
+ writeJson(join(store.dir, folder, record.session + ".json"), record);
96
94
  }
97
95
  if (raw.pause !== void 0 && raw.pause !== null) {
98
96
  const pause = asPause(raw.pause);
@@ -599,4 +597,4 @@ async function run(context) {
599
597
  export {
600
598
  run
601
599
  };
602
- //# sourceMappingURL=test-2HTOY4PJ.js.map
600
+ //# sourceMappingURL=test-IMNBXOYW.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-ONIAKCA3.js");
115
+ const { inspectTerminalHost } = await import("./diagnostics-EWU2ROTG.js");
116
116
  receipt = inspectTerminalHost();
117
117
  } else if (invocation.action === "start-worker") {
118
- const { startWorkspaceWorker } = await import("./worker-UXPGXAV2.js");
118
+ const { startWorkspaceWorker } = await import("./worker-RV6NGSXT.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-DZGKCL4G.js");
131
+ const { launchStartup, planStartup } = await import("./entry-NDICBQ2F.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-DQFXYQ4H.js.map
153
+ //# sourceMappingURL=tui-5GDA22TB.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  change
3
- } from "./chunk-MCYGYZVZ.js";
4
- import "./chunk-V7HG3STC.js";
5
- import "./chunk-RRKGSYQ4.js";
3
+ } from "./chunk-QYH2NR6G.js";
4
+ import "./chunk-PQTM27GU.js";
5
+ import "./chunk-QSIADSMQ.js";
6
6
  import "./chunk-A4PKLESO.js";
7
7
  import "./chunk-OEH47H6A.js";
8
8
  import "./chunk-IJBSOWHK.js";
@@ -14,4 +14,4 @@ var run = (context) => change(context, "unbroadcast");
14
14
  export {
15
15
  run
16
16
  };
17
- //# sourceMappingURL=unbroadcast-FONZJWEW.js.map
17
+ //# sourceMappingURL=unbroadcast-XP3OCVN3.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  validateCatalog,
9
9
  validateSkillDir
10
- } from "./chunk-CJ6OFTS3.js";
10
+ } from "./chunk-YOWIYFIV.js";
11
11
  import "./chunk-73AKO4UL.js";
12
12
  import {
13
13
  validateSpec
@@ -43,4 +43,4 @@ var validateCommand = {
43
43
  export {
44
44
  validateCommand
45
45
  };
46
- //# sourceMappingURL=validate-WOFI7TMT.js.map
46
+ //# sourceMappingURL=validate-KFBCUFI4.js.map
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  invoke
3
- } from "./chunk-PG42KALG.js";
3
+ } from "./chunk-OAIQ7A3R.js";
4
4
  import {
5
5
  readStartup,
6
6
  startupFile,
7
7
  startupSettings
8
8
  } from "./chunk-C3G75JH7.js";
9
9
  import "./chunk-DZ2MRTYT.js";
10
- import "./chunk-FR6JHNLC.js";
11
- import "./chunk-BZ2RXI5I.js";
10
+ import "./chunk-CQZYQAAV.js";
11
+ import "./chunk-L4MFGGSI.js";
12
12
  import {
13
13
  locateExecutable
14
14
  } from "./chunk-R2GPCZUX.js";
15
- import "./chunk-QYQGPDBE.js";
15
+ import "./chunk-YDICIB2A.js";
16
16
  import "./chunk-34DECPVC.js";
17
- import "./chunk-EONAJAMJ.js";
18
- import "./chunk-57FHYW74.js";
17
+ import "./chunk-7SDOSTW7.js";
18
+ import "./chunk-66F3HLW4.js";
19
19
  import "./chunk-OEH47H6A.js";
20
20
  import "./chunk-IJBSOWHK.js";
21
- import "./chunk-YGTJQVCK.js";
21
+ import "./chunk-FGYFA6JY.js";
22
22
  import "./chunk-GJXOFDJT.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-UXPGXAV2.js.map
81
+ //# sourceMappingURL=worker-RV6NGSXT.js.map
@@ -18,8 +18,8 @@ repository that also has linked worktrees, tracks the files it edits there,
18
18
  and names leftovers not yet delivered, because they block syncing the shared main for
19
19
  everyone. Keys: `enabled` (`"auto"` default, following `[git] enabled`, or a
20
20
  boolean), `warn_on_session`, `track_edits`, `warn_claimants` (booleans, default
21
- `true`). It is on in any git checkout without a table, once something else
22
- enables the hook bundle.
21
+ `true`). Like every feature it is opt-in: declare the table, even empty, to
22
+ turn it on.
23
23
 
24
24
  `[git.worktrees]` configures the linked worktrees `pmcp git worktree` creates:
25
25
 
@@ -78,13 +78,30 @@ the fetched mainline, runs the gate, and pushes one delivery at a time:
78
78
  `attempts` (default `3`), `refuse_direct_push` (default `true`: a hook refuses
79
79
  `git push` from any checkout of this repository, so the mainline moves only
80
80
  through delivery), `during_pause` (`"refuse"` default or `"allow"`),
81
- `lease_wait_seconds` (default `3600`) and `notify` (argv run after a
82
- delivery).
81
+ `lease_wait_seconds` (default `3600`), `notify` (argv run after a
82
+ delivery), `gate` and `push_env`.
83
+
84
+ The push of a delivery runs the repository's own hooks, so a pre-push hook that
85
+ gates as well needs one of two set-ups.
86
+
87
+ - `gate = "pre-push"` makes that hook the gate: pmcp takes the lock, replays and
88
+ retries, runs no `[git.mainline.gate] command` (declaring one is an error),
89
+ and pushes with `lock_env` set to `1`, so a hook that takes the same lock does
90
+ not wait on pmcp. The push output is the gate log, and a refused push is a
91
+ failed gate.
92
+ - `gate = "command"` (the default) keeps pmcp's command as the gate.
93
+ `push_env` (a table of variable names to strings, default `{}`) adds variables
94
+ to the push alone in either mode, so a hook can recognise a delivery that was
95
+ already gated and step aside.
96
+
97
+ Every delivery push also carries `PMCP_GIT_DELIVER=1`. In command mode the lock
98
+ variable reaches the push only if `push_env` names it.
83
99
 
84
100
  `pmcp git deliver --json` prints one receipt on stdout when it ends, progress
85
101
  staying on stderr: `{ok, code, delivered, upstream, attempts, gate, leases,
86
102
  reason?}`, where `delivered` is the upstream commit it pushed (or `null`), `gate`
87
- is `{exit, log}` for the last gate run (or `null`), `leases` the leases it took
103
+ is `{exit, log, by}` for the last gate run (or `null`; `by` is `"command"` or
104
+ `"pre-push"`), `leases` the leases it took
88
105
  and `reason` the last refusal or failure. Exit codes: `0` delivered or nothing
89
106
  to deliver; `1` refused, a lease or the gate lock held too long, a replay
90
107
  conflict, the gate failed, the push failed or it gave up after `attempts`; `2`
package/docs/hooks.md CHANGED
@@ -31,8 +31,7 @@ compile cache off.
31
31
 
32
32
  Every feature is opt-in: a table that is missing turns its feature off, and a
33
33
  declared table, even an empty one, turns it on. The exceptions are documented
34
- where they apply: `[git]` features detect git (`enabled = "auto"`),
35
- `[git.shared_checkout]` is on in any git checkout once the bundle exists, and
34
+ where they apply: declared `[git]` features detect git (`enabled = "auto"`), and
36
35
  logging falls back to its defaults rather than to no logging. The bundle is
37
36
  projected only when `[hooks]` declares guards or checks, a `[sessions.*]`
38
37
  feature table is declared, `[git.shared_checkout]` or `[git.worktrees.sync]` is
@@ -36,11 +36,11 @@ deny_list = "private-terms.txt"
36
36
  tiers = ["open", "free", "paid", "internal"]
37
37
  ```
38
38
 
39
- | Key | Type | Default | Meaning |
40
- | ----------- | ------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
41
- | `profile` | string | none | `catalog-v1`: the marketplace catalog rules (metadata, tier, trigger wording, ASCII in the open tier, locales); the marketplace's tier applies, else the skill's own `metadata.tier`, else `open`. `library`: the manual library skill metadata schema. |
42
- | `deny_list` | path | none | A file of terms, one per line (`#` starts a comment), that no file of a skill may contain, compared without case. Relative to `pmcp.toml`. A finding names the list line, never the term. A missing file is an error. |
43
- | `tiers` | list | `["open", "free", "paid", "internal"]` | The tier names this catalog uses, lowest first, in kebab case. `catalog-v1` reports a tier outside the list as `tier.unknown`; its tier-specific rules know only the four default names. The metadata schema itself takes any kebab-case name. |
39
+ | Key | Type | Default | Meaning |
40
+ | ----------- | ------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
41
+ | `profile` | string | none | `catalog-v1`: general marketplace catalog rules (strict metadata, name equal to the directory, tier inheritance, ASCII descriptions, approval for scripts, locales); the marketplace's tier applies, else the skill's own `metadata.tier`, else `open`. `library`: the manual library skill metadata schema. |
42
+ | `deny_list` | path | none | A file of terms, one per line (`#` starts a comment), that no file of a skill may contain, compared without case. Relative to `pmcp.toml`. A finding names the list line, never the term. A missing file is an error. |
43
+ | `tiers` | list | `["open", "free", "paid", "internal"]` | The tier names this catalog uses, lowest first, in kebab case. `catalog-v1` reports a tier outside the list as `tier.unknown`; its tier-specific rules know only the four default names. The metadata schema itself takes any kebab-case name. |
44
44
 
45
45
  Both apply to named skill directories and, with no directory named, to every
46
46
  skill the catalog reaches.
@@ -700,6 +700,8 @@ allow_commands = [["pmcp", "git", "deliver"], ["git", "log"], ["git", "status"]]
700
700
  [git]
701
701
  remote = "origin"
702
702
 
703
+ [git.shared_checkout]
704
+
703
705
  [git.mainline]
704
706
  branch = "main"
705
707
 
package/docs/upgrading.md CHANGED
@@ -5,6 +5,58 @@
5
5
  What to do when a release changes something you rely on. Each release's notes on GitHub
6
6
  Releases list its breaking changes and link here.
7
7
 
8
+ ## From 0.19 to 0.20
9
+
10
+ 0.20 removes defaults that suited one kind of project rather than pmcp's users in general.
11
+ Each one stays available as configuration; add the lines below to `pmcp.toml` to keep what
12
+ 0.19 did, then run `pmcp project`.
13
+
14
+ **The shared-checkout notice is opt-in.** 0.19 turned `[git.shared_checkout]` on in any git
15
+ checkout once the hook bundle existed. Declare it to keep the notice:
16
+
17
+ ```toml
18
+ [git.shared_checkout]
19
+ ```
20
+
21
+ **Dated `.bak` files are no longer secret paths by default.** 0.19 treated a file named like
22
+ `config.bak.20261027` as a credential. If yours hold credentials:
23
+
24
+ ```toml
25
+ [hooks.guards.shell.secret_exfiltration]
26
+ extra_secret_paths = ['\.bak\.\d{8,}']
27
+ ```
28
+
29
+ `.env.<name>` directories (`.env.d/`, `.env.local/`) are still caught as `.env` variants.
30
+
31
+ **`bun run git:land` and `bun run git:sync` are no longer lockfile operations by name.** The
32
+ shell classifier had them built in. A project's own landing or sync script is data:
33
+
34
+ - a package script run with `bun`, `npm`, `pnpm` or `yarn run` is matched by
35
+ `[sessions.pause] script_names`, whose default `"^git:"` still covers `git:*` scripts;
36
+ - a script run with `node` is matched by `[sessions.pause] scripts`, for example
37
+ `scripts = ['tools/release/(land|sync)\.mjs$']`.
38
+
39
+ **`catalog-v1` validates general catalog rules only.** `pmcp validate` with
40
+ `[catalog.validation] profile = "catalog-v1"` no longer reports `description.trigger`,
41
+ `keywords.ascii`, `output-license.required`, `server-tools.forbidden`,
42
+ `server-tools.required` or `server-tools.order`. `metadata.server-tools` is an optional list of
43
+ any tool names. A catalog that relies on those rules runs its own check beside
44
+ `pmcp validate`.
45
+
46
+ **Session records move from `fleet/` to `sessions/` in the state directory.** 0.20 writes
47
+ every record to both `sessions/<session>.json` and the deprecated `fleet/<session>.json`, and
48
+ reads both, using the copy updated last, so an older pmcp sharing the state directory (a hook
49
+ bundle not yet projected again) is followed. A tool that reads `fleet/` keeps working through
50
+ 0.20; move it to `sessions/` and run `pmcp project` everywhere before 0.21, which stops
51
+ writing `fleet/`. A mail
52
+ recipient's linked worktree is now `worktree` throughout; `desk:<path>` is still accepted as a
53
+ spelling of `worktree:<path>`.
54
+
55
+ **Deliveries can leave gating to the repository's pre-push hook.** This is new, not a
56
+ removal. `[git.mainline.deliver] gate = "pre-push"` and `push_env` are described in
57
+ [Git workflow](git-workflow.md). A delivery's push now always carries `PMCP_GIT_DELIVER=1`, and
58
+ the `--json` receipt's `gate` gains `by`.
59
+
8
60
  ## From 0.17 to 0.18
9
61
 
10
62
  0.18 replaces tmux with pmcp's own terminal host, so it does not read tmux groups or views.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.19.9",
3
+ "version": "0.20.0",
4
4
  "mcpServers": {
5
5
  "pmcp": {
6
6
  "type": "stdio",
7
7
  "command": "npx",
8
- "args": ["-y", "@modootoday/pmcp@0.19.9", "serve"]
8
+ "args": ["-y", "@modootoday/pmcp@0.20.0", "serve"]
9
9
  }
10
10
  }
11
11
  }
package/mcp.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "pmcp": {
5
5
  "type": "stdio",
6
6
  "command": "npx",
7
- "args": ["-y", "@modootoday/pmcp@0.19.9", "serve"]
7
+ "args": ["-y", "@modootoday/pmcp@0.20.0", "serve"]
8
8
  }
9
9
  }
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modootoday/pmcp",
3
- "version": "0.19.9",
3
+ "version": "0.20.0",
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.9",
140
- "@modootoday/pmcp-linux-arm64": "0.19.9",
141
- "@modootoday/pmcp-darwin-x64": "0.19.9",
142
- "@modootoday/pmcp-darwin-arm64": "0.19.9"
139
+ "@modootoday/pmcp-linux-x64": "0.20.0",
140
+ "@modootoday/pmcp-linux-arm64": "0.20.0",
141
+ "@modootoday/pmcp-darwin-x64": "0.20.0",
142
+ "@modootoday/pmcp-darwin-arm64": "0.20.0"
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.9",
4
+ "version": "0.20.0",
5
5
  "description": "Find package skills and use native runtime project configuration.",
6
6
  "author": { "name": "modootoday" },
7
7
  "license": "Elastic-2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.19.9",
3
+ "version": "0.20.0",
4
4
  "description": "Find package skills and use native runtime project configuration.",
5
5
  "author": { "name": "modootoday" },
6
6
  "license": "Elastic-2.0",
@@ -3,7 +3,7 @@
3
3
  "pmcp": {
4
4
  "type": "stdio",
5
5
  "command": "npx",
6
- "args": ["-y", "@modootoday/pmcp@0.19.9", "serve"]
6
+ "args": ["-y", "@modootoday/pmcp@0.20.0", "serve"]
7
7
  }
8
8
  }
9
9
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.19.9",
3
+ "version": "0.20.0",
4
4
  "mcpServers": {
5
5
  "pmcp": {
6
6
  "type": "stdio",
7
7
  "command": "npx",
8
- "args": ["-y", "@modootoday/pmcp@0.19.9", "serve"]
8
+ "args": ["-y", "@modootoday/pmcp@0.20.0", "serve"]
9
9
  }
10
10
  }
11
11
  }
@@ -4,7 +4,7 @@
4
4
  "pmcp": {
5
5
  "type": "stdio",
6
6
  "command": "npx",
7
- "args": ["-y", "@modootoday/pmcp@0.19.9", "serve"]
7
+ "args": ["-y", "@modootoday/pmcp@0.20.0", "serve"]
8
8
  }
9
9
  }
10
10
  }