@modootoday/pmcp 0.22.12 → 0.23.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 (154) 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-D6FRJPPI.js +836 -0
  6. package/dist/{apply-LPKZZ6EL.js → apply-3PWUO4J5.js} +27 -22
  7. package/dist/{available-BFXLII4A.js → available-74CMIBPD.js} +9 -9
  8. package/dist/{broadcast-DZGMSZRG.js → broadcast-VKZY7WSD.js} +6 -5
  9. package/dist/chunk-2GZKA33O.js +173 -0
  10. package/dist/chunk-2HL2MFNI.js +159 -0
  11. package/dist/{chunk-OAX6MIOZ.js → chunk-2K4WYN4C.js} +2 -2
  12. package/dist/{chunk-PEMMV5YQ.js → chunk-2MX5C7B2.js} +3 -3
  13. package/dist/{chunk-7I7O7ZNT.js → chunk-3V37OZQH.js} +5 -3
  14. package/dist/chunk-43MXRTKH.js +134 -0
  15. package/dist/chunk-4VVQLWTS.js +93 -0
  16. package/dist/{chunk-DYZVHO2L.js → chunk-5HNLHI5F.js} +2 -2
  17. package/dist/{chunk-JEL35P7S.js → chunk-5NDUWEMW.js} +2 -2
  18. package/dist/chunk-65BW7Y6O.js +40 -0
  19. package/dist/{chunk-HUBJWC7T.js → chunk-6NRLBSEG.js} +7 -7
  20. package/dist/chunk-6QJ3F445.js +166 -0
  21. package/dist/{chunk-2OOWAGBE.js → chunk-72V6U7CZ.js} +3 -3
  22. package/dist/{chunk-RPCIROW7.js → chunk-7CHUMF3E.js} +2 -2
  23. package/dist/{chunk-INT7QLEU.js → chunk-7DJQASH3.js} +25 -6
  24. package/dist/chunk-7IRXUPM2.js +7 -0
  25. package/dist/{chunk-UDVYVRGJ.js → chunk-DNSHJIS4.js} +2 -2
  26. package/dist/{chunk-UMQLIRSU.js → chunk-DZTSCJOZ.js} +3 -3
  27. package/dist/{chunk-KEHB4FZP.js → chunk-E2E4HIEN.js} +49 -3
  28. package/dist/{chunk-SUJCVEBM.js → chunk-EQF64INS.js} +3 -3
  29. package/dist/chunk-F3R5HEUB.js +39 -0
  30. package/dist/chunk-FOLA4EUJ.js +261 -0
  31. package/dist/chunk-FQLCD4HU.js +24 -0
  32. package/dist/{chunk-OEH47H6A.js → chunk-GUHOEIHP.js} +3 -20
  33. package/dist/{chunk-B2WRYGHJ.js → chunk-HES44LTA.js} +5 -5
  34. package/dist/{chunk-RHJEGLYM.js → chunk-HF5D6B2U.js} +45 -6
  35. package/dist/{chunk-R5MT42JS.js → chunk-HYXOJYVR.js} +2 -2
  36. package/dist/chunk-JANBBPKP.js +50 -0
  37. package/dist/{chunk-ITOTOC6Y.js → chunk-JJFPSFDU.js} +3 -3
  38. package/dist/{chunk-XNML2KIC.js → chunk-JPYQDOEW.js} +3 -3
  39. package/dist/{chunk-SPZQRLL5.js → chunk-KYGGQPAH.js} +18 -6
  40. package/dist/{chunk-EX4YXPVW.js → chunk-LGRFYN5T.js} +2 -2
  41. package/dist/{chunk-DP326AER.js → chunk-LO54UUDE.js} +2 -2
  42. package/dist/{chunk-5QKXEWDB.js → chunk-MHKY6TNF.js} +6 -4
  43. package/dist/chunk-N7ANFMA5.js +171 -0
  44. package/dist/{chunk-KPKMEUUH.js → chunk-OGCJO6HQ.js} +9 -8
  45. package/dist/{chunk-N63QCJHX.js → chunk-P25V6NEX.js} +5 -5
  46. package/dist/{chunk-PUIWESU3.js → chunk-Q6V274OB.js} +8 -6
  47. package/dist/chunk-QR6A3TYP.js +315 -0
  48. package/dist/{chunk-EIDIVIAD.js → chunk-QYLOIM4U.js} +9 -2
  49. package/dist/{chunk-MIFPPUWY.js → chunk-RRKA3GF5.js} +4 -4
  50. package/dist/{chunk-7CSUKCU7.js → chunk-RZYZILU4.js} +17 -96
  51. package/dist/{chunk-FODUHLZM.js → chunk-SDQYZDHS.js} +2 -2
  52. package/dist/chunk-SGFTHKKS.js +86 -0
  53. package/dist/chunk-T6C3TSTO.js +99 -0
  54. package/dist/chunk-UVTGY2R3.js +78 -0
  55. package/dist/{chunk-LLT5FQBE.js → chunk-VBVNOLRR.js} +7 -3
  56. package/dist/{chunk-ABTJQ4QV.js → chunk-WBPVNCQO.js} +20 -5
  57. package/dist/{chunk-63RZGEVI.js → chunk-WQBKQTNT.js} +98 -26
  58. package/dist/{chunk-YGOWIJPE.js → chunk-WZYGM3FR.js} +6 -2
  59. package/dist/chunk-Y6NFETNG.js +232 -0
  60. package/dist/{chunk-D5MIZM6L.js → chunk-YRNFMPZB.js} +7 -8
  61. package/dist/{chunk-2GRECE6B.js → chunk-ZXMECZBI.js} +4 -4
  62. package/dist/{cli-34EDFXJA.js → cli-GFDT4YXM.js} +14 -15
  63. package/dist/{cli-JXPJFHUA.js → cli-YWV7FLYO.js} +24 -12
  64. package/dist/cli.js +317 -51
  65. package/dist/{completion-KTECNPVY.js → completion-OKGNN7DE.js} +25 -21
  66. package/dist/{diagnostics-I5VZHK42.js → diagnostics-N4XRRCQG.js} +10 -6
  67. package/dist/{doctor-JJ2VUNHT.js → doctor-3H6UYNEA.js} +27 -23
  68. package/dist/{entry-OT7BN3ID.js → entry-KDLLG6ED.js} +19 -15
  69. package/dist/{exec-mcp-3E4SRJUY.js → exec-mcp-AENALAHJ.js} +15 -11
  70. package/dist/{harness-Q236VJSU.js → harness-GRYTNUF2.js} +26 -44
  71. package/dist/harness-launch-gate.js +8 -4
  72. package/dist/harness-worker.js +10 -6
  73. package/dist/heavy-BGXKJKYB.js +1965 -0
  74. package/dist/hook-body.js +69 -21
  75. package/dist/hooks-V25ANQ4Q.js +24 -0
  76. package/dist/{host-LT5JMUFJ.js → host-4EGPADOJ.js} +11 -7
  77. package/dist/{host-UDC4HVX3.js → host-MLSWY7D7.js} +24 -17
  78. package/dist/{host-run-LD63JGN7.js → host-run-VI52IUKF.js} +10 -6
  79. package/dist/http.js +1 -1
  80. package/dist/{import-mcp-URVONIZ3.js → import-mcp-FIXFLUDM.js} +18 -14
  81. package/dist/index.d.ts +1 -1
  82. package/dist/index.js +17 -12
  83. package/dist/init-ALTBFUPP.js +14 -0
  84. package/dist/{install-7V6NIA7W.js → install-5JH4DSFF.js} +10 -10
  85. package/dist/{invoke-JW5OC2HO.js → invoke-7T7UY57O.js} +12 -8
  86. package/dist/{list-UM4DYJRL.js → list-JFZ7UZLV.js} +18 -14
  87. package/dist/{list-WK2IYUK7.js → list-LV5EKCF6.js} +11 -7
  88. package/dist/{logout-H5X4D26I.js → logout-7CNBO76Z.js} +15 -11
  89. package/dist/{logs-UHJM7ZCL.js → logs-2JEMSNSG.js} +11 -10
  90. package/dist/{mailbox-NIMBOQPA.js → mailbox-5FVFMQ2J.js} +12 -44
  91. package/dist/{mailbox-YN6PG66A.js → mailbox-ZHZWZMAY.js} +14 -21
  92. package/dist/{mainline-74WCH4T4.js → mainline-6PBT3VNR.js} +75 -126
  93. package/dist/{marketplace-G4VQET5W.js → marketplace-2X3OOEPW.js} +10 -9
  94. package/dist/{mcp-6P3MVT4V.js → mcp-MVQVMAKJ.js} +4 -4
  95. package/dist/{mcp-AXHV547W.js → mcp-PBTQ5SJW.js} +2 -2
  96. package/dist/{models-ISU4DCMA.js → models-XSF45MCD.js} +9 -5
  97. package/dist/{pause-CBZ3BTJL.js → pause-CMZOIHTJ.js} +6 -5
  98. package/dist/{preview-DT7DWG5F.js → preview-465CQJBQ.js} +4 -4
  99. package/dist/{project-6QUIC73W.js → project-FZGJRG2U.js} +14 -12
  100. package/dist/{reindex-I7RYWCUR.js → reindex-D62HQAN2.js} +7 -7
  101. package/dist/{report-ZHOHQ4PZ.js → report-UB7MXAUB.js} +14 -13
  102. package/dist/{resume-UJEWQ66P.js → resume-PAKIT4TT.js} +6 -5
  103. package/dist/{run-HQTB7N2R.js → run-TOP37ZQC.js} +14 -10
  104. package/dist/run-VGJDMA2O.js +23 -0
  105. package/dist/{serve-APEVIJD2.js → serve-LR7SJHNH.js} +13 -13
  106. package/dist/{session-YZVX4NGN.js → session-3YVVO2GR.js} +6 -6
  107. package/dist/{setup-SOUBEZ3H.js → setup-6AQUOWOH.js} +7 -4
  108. package/dist/{smoke-2FI5D74B.js → smoke-6X6IXQIQ.js} +4 -4
  109. package/dist/{start-login-ER7DEGYN.js → start-login-X37KGCCB.js} +16 -12
  110. package/dist/{status-KN2ZE64O.js → status-4PYPTYUB.js} +7 -6
  111. package/dist/{status-7NYXRZ3R.js → status-E4AFUOQO.js} +24 -13
  112. package/dist/{status-OGABWCPO.js → status-LBRK37GA.js} +35 -30
  113. package/dist/stdio.js +2 -2
  114. package/dist/{sweep-EPZCW63Q.js → sweep-VURZU6DI.js} +6 -5
  115. package/dist/{test-WRZQERYC.js → test-D2EEFUN2.js} +18 -14
  116. package/dist/{tui-YUHQ36FC.js → tui-D7E3MD3X.js} +45 -19
  117. package/dist/{unbroadcast-N6LXHAMT.js → unbroadcast-7AMLURCG.js} +6 -5
  118. package/dist/{validate-KFBCUFI4.js → validate-YXR7FJJX.js} +11 -9
  119. package/dist/wait-HEODT7KV.js +141 -0
  120. package/dist/{worker-OKBJNDEI.js → worker-WTBC6VYO.js} +12 -8
  121. package/dist/{worktree-create-KMXPQXIQ.js → worktree-create-FTSLMZWS.js} +2 -2
  122. package/docs/commands.md +108 -36
  123. package/docs/git-workflow.md +51 -0
  124. package/docs/hooks.md +11 -4
  125. package/docs/project-configuration.md +136 -20
  126. package/docs/terminal-workspace.md +2 -0
  127. package/docs/upgrading.md +54 -0
  128. package/gemini-extension.json +2 -2
  129. package/mcp.json +1 -1
  130. package/package.json +5 -5
  131. package/plugin.json +1 -1
  132. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  133. package/plugins/pmcp/.mcp.json +1 -1
  134. package/plugins/pmcp/gemini-extension.json +2 -2
  135. package/plugins/pmcp/mcp.json +1 -1
  136. package/plugins/pmcp/plugin.json +1 -1
  137. package/plugins/pmcp/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
  138. package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +1 -1
  139. package/plugins/pmcp/skills/pmcp-sessions-and-git/SKILL.md +3 -2
  140. package/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
  141. package/skills/pmcp-project-init/SKILL.md +1 -1
  142. package/skills/pmcp-sessions-and-git/SKILL.md +3 -2
  143. package/dist/chunk-2P4Z2NUX.js +0 -28
  144. package/dist/chunk-3C5FVHQ3.js +0 -7
  145. package/dist/chunk-3Y3HDMHA.js +0 -108
  146. package/dist/chunk-A4PKLESO.js +0 -112
  147. package/dist/chunk-E3DQB5LS.js +0 -48
  148. package/dist/chunk-GFOQDLPL.js +0 -35
  149. package/dist/chunk-JWRZDYB5.js +0 -59
  150. package/dist/chunk-LMUBBIE2.js +0 -83
  151. package/dist/chunk-SMZPYJQI.js +0 -151
  152. package/dist/hooks-PABOEQO6.js +0 -24
  153. package/dist/init-4O24ZNUQ.js +0 -14
  154. package/dist/run-GZK3XJ62.js +0 -19
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  catalogFrom
3
- } from "./chunk-PEMMV5YQ.js";
3
+ } from "./chunk-2MX5C7B2.js";
4
4
  import {
5
5
  specFrom
6
- } from "./chunk-D5MIZM6L.js";
6
+ } from "./chunk-YRNFMPZB.js";
7
7
  import {
8
8
  printSmoke,
9
9
  runSmoke
10
- } from "./chunk-KPKMEUUH.js";
10
+ } from "./chunk-OGCJO6HQ.js";
11
11
  import {
12
12
  configFrom
13
- } from "./chunk-RPCIROW7.js";
13
+ } from "./chunk-7CHUMF3E.js";
14
14
  import {
15
15
  describeHookProblem,
16
16
  project,
17
17
  unmanagedHookProblems
18
- } from "./chunk-2GRECE6B.js";
18
+ } from "./chunk-ZXMECZBI.js";
19
19
  import "./chunk-ANJMLKBR.js";
20
- import "./chunk-2OOWAGBE.js";
20
+ import "./chunk-72V6U7CZ.js";
21
21
  import {
22
22
  checkBudget,
23
23
  renderFrontmatter,
24
24
  splitFrontmatter
25
- } from "./chunk-63RZGEVI.js";
26
- import "./chunk-UKR64U7J.js";
25
+ } from "./chunk-WQBKQTNT.js";
27
26
  import "./chunk-UYBWUOLR.js";
27
+ import "./chunk-UKR64U7J.js";
28
28
  import "./chunk-42SO7KYX.js";
29
29
  import "./chunk-EATCUWGG.js";
30
30
  import "./chunk-OFJIMBTL.js";
@@ -32,9 +32,9 @@ import "./chunk-LFFIQBNY.js";
32
32
  import "./chunk-HQOB7OQS.js";
33
33
  import "./chunk-73AKO4UL.js";
34
34
  import "./chunk-M6X6HVQK.js";
35
- import "./chunk-7CSUKCU7.js";
35
+ import "./chunk-RZYZILU4.js";
36
36
  import "./chunk-SUDG7B6S.js";
37
- import "./chunk-7I7O7ZNT.js";
37
+ import "./chunk-3V37OZQH.js";
38
38
  import "./chunk-Z6WRFOFT.js";
39
39
  import "./chunk-B3OZ4GGO.js";
40
40
  import "./chunk-Q5H3L6Y4.js";
@@ -42,25 +42,30 @@ import {
42
42
  RUNTIMES,
43
43
  readTestTable
44
44
  } from "./chunk-ARXCYFFZ.js";
45
- import "./chunk-JEL35P7S.js";
46
- import {
47
- ArgumentError
48
- } from "./chunk-A4PKLESO.js";
45
+ import "./chunk-5NDUWEMW.js";
49
46
  import "./chunk-V4NPDK6X.js";
47
+ import {
48
+ ArgumentError,
49
+ EXIT
50
+ } from "./chunk-Y6NFETNG.js";
50
51
  import {
51
52
  kindOf
52
53
  } from "./chunk-4CRRLDDS.js";
53
54
  import "./chunk-YSAWTGNA.js";
54
55
  import {
55
56
  recordProjector
56
- } from "./chunk-SPZQRLL5.js";
57
+ } from "./chunk-KYGGQPAH.js";
58
+ import "./chunk-FOLA4EUJ.js";
59
+ import "./chunk-N7ANFMA5.js";
57
60
  import {
58
61
  ProjectError
59
62
  } from "./chunk-TYY5TYHF.js";
60
- import "./chunk-OEH47H6A.js";
63
+ import "./chunk-T6C3TSTO.js";
64
+ import "./chunk-FQLCD4HU.js";
65
+ import "./chunk-GUHOEIHP.js";
61
66
  import "./chunk-IJBSOWHK.js";
62
67
  import "./chunk-XWLMZKH2.js";
63
- import "./chunk-3C5FVHQ3.js";
68
+ import "./chunk-7IRXUPM2.js";
64
69
  import "./chunk-GJXOFDJT.js";
65
70
  import "./chunk-PMJG2CXF.js";
66
71
  import "./chunk-J6KL3COD.js";
@@ -226,8 +231,8 @@ function smokeCheck(context, spec) {
226
231
  return 2;
227
232
  }
228
233
  const result = runSmoke(spec.root, file, context.env);
229
- printSmoke(context.ui, result);
230
- return result.findings.length === 0 ? 0 : 2;
234
+ printSmoke(context.ui.results, result);
235
+ return result.findings.length === 0 ? EXIT.ok : EXIT.differences;
231
236
  }
232
237
  function projectOrCheck(context) {
233
238
  const spec = specFrom(context);
@@ -244,7 +249,7 @@ function projectOrCheck(context) {
244
249
  "fix",
245
250
  "pmcp project (edit .agents/ or pmcp.toml, never the outputs)"
246
251
  );
247
- return 2;
252
+ return EXIT.differences;
248
253
  }
249
254
  context.ui.success(`${result.outputs} outputs match`);
250
255
  const broken = unmanagedHookProblems(spec.root, context.env);
@@ -254,7 +259,7 @@ function projectOrCheck(context) {
254
259
  );
255
260
  const over = spec.budget ? checkBudget(spec, spec.budget).problems : [];
256
261
  for (const problem of over) context.ui.error(problem);
257
- if (broken.length > 0 || over.length > 0) return 2;
262
+ if (broken.length > 0 || over.length > 0) return EXIT.differences;
258
263
  return smoke ? smokeCheck(context, spec) : 0;
259
264
  }
260
265
  function addAndProject(context, name) {
@@ -275,4 +280,4 @@ export {
275
280
  projectOrCheck,
276
281
  removeAndProject
277
282
  };
278
- //# sourceMappingURL=apply-LPKZZ6EL.js.map
283
+ //# sourceMappingURL=apply-3PWUO4J5.js.map
@@ -8,18 +8,18 @@ import {
8
8
  import {
9
9
  projectFrom,
10
10
  remoteCatalog
11
- } from "./chunk-R5MT42JS.js";
11
+ } from "./chunk-HYXOJYVR.js";
12
12
  import "./chunk-RMATE45Z.js";
13
- import {
14
- invocation
15
- } from "./chunk-J7UYNJCR.js";
16
13
  import "./chunk-73AKO4UL.js";
17
14
  import {
18
15
  availableSpec
19
- } from "./chunk-ABTJQ4QV.js";
16
+ } from "./chunk-WBPVNCQO.js";
17
+ import {
18
+ invocation
19
+ } from "./chunk-J7UYNJCR.js";
20
20
  import {
21
21
  ArgumentError
22
- } from "./chunk-A4PKLESO.js";
22
+ } from "./chunk-Y6NFETNG.js";
23
23
  import "./chunk-4CRRLDDS.js";
24
24
  import "./chunk-YSAWTGNA.js";
25
25
 
@@ -45,12 +45,12 @@ var availableCommand = {
45
45
  `
46
46
  );
47
47
  const { verifiedOn, examplesExecuted } = match.entry.evidence;
48
- context.ui.line(
48
+ context.ui.results.line(
49
49
  ` ${examplesExecuted} examples executed${verifiedOn ? ` on ${verifiedOn}` : ""}`
50
50
  );
51
51
  const headings = match.entry.preview?.headings ?? [];
52
52
  if (headings.length > 0) {
53
- context.ui.line(` ${headings.join(" \xB7 ")}`);
53
+ context.ui.results.line(` ${headings.join(" \xB7 ")}`);
54
54
  }
55
55
  sayStanding(context, match.entry.line);
56
56
  }
@@ -70,4 +70,4 @@ var availableCommand = {
70
70
  export {
71
71
  availableCommand
72
72
  };
73
- //# sourceMappingURL=available-BFXLII4A.js.map
73
+ //# sourceMappingURL=available-74CMIBPD.js.map
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  change
3
- } from "./chunk-B2WRYGHJ.js";
4
- import "./chunk-7I7O7ZNT.js";
3
+ } from "./chunk-HES44LTA.js";
4
+ import "./chunk-3V37OZQH.js";
5
5
  import "./chunk-Z6WRFOFT.js";
6
- import "./chunk-A4PKLESO.js";
7
- import "./chunk-OEH47H6A.js";
6
+ import "./chunk-Y6NFETNG.js";
7
+ import "./chunk-FQLCD4HU.js";
8
+ import "./chunk-GUHOEIHP.js";
8
9
  import "./chunk-IJBSOWHK.js";
9
10
  import "./chunk-GJXOFDJT.js";
10
11
  import "./chunk-PMJG2CXF.js";
@@ -14,4 +15,4 @@ var run = (context) => change(context, "broadcast");
14
15
  export {
15
16
  run
16
17
  };
17
- //# sourceMappingURL=broadcast-DZGMSZRG.js.map
18
+ //# sourceMappingURL=broadcast-VKZY7WSD.js.map
@@ -0,0 +1,173 @@
1
+ import {
2
+ jsonOption,
3
+ nearestConfigOption
4
+ } from "./chunk-JPYQDOEW.js";
5
+
6
+ // src/commands/specs/sessions.ts
7
+ var SESSION_VERBS = [
8
+ "status",
9
+ "pause",
10
+ "resume",
11
+ "broadcast",
12
+ "unbroadcast",
13
+ "sweep",
14
+ "send",
15
+ "inbox",
16
+ "ack",
17
+ "reply"
18
+ ];
19
+ var JSON_VERBS = [
20
+ "status",
21
+ "send",
22
+ "inbox",
23
+ "ack",
24
+ "reply"
25
+ ];
26
+ var sessionsSpec = {
27
+ name: "sessions",
28
+ examples: [
29
+ "pmcp sessions",
30
+ 'pmcp sessions broadcast "main moved; rebase before delivering"'
31
+ ],
32
+ subcommands: [
33
+ {
34
+ name: "status",
35
+ describe: "Live sessions, pause, broadcasts and leases",
36
+ usage: "pmcp sessions [status] [--json]",
37
+ options: ["config", "json"],
38
+ examples: ["pmcp sessions status --json"]
39
+ },
40
+ {
41
+ name: "pause",
42
+ describe: "Refuse edits in every other session until resume",
43
+ usage: "pmcp sessions pause <reason> [--by <name>]",
44
+ options: ["by", "config"],
45
+ examples: ['pmcp sessions pause "release freeze"']
46
+ },
47
+ {
48
+ name: "resume",
49
+ describe: "Lift the pause",
50
+ usage: "pmcp sessions resume",
51
+ options: ["config"],
52
+ examples: ["pmcp sessions resume"]
53
+ },
54
+ {
55
+ name: "broadcast",
56
+ describe: "Deliver a note once to every session",
57
+ usage: "pmcp sessions broadcast <text> [--by <name>]",
58
+ options: ["by", "config"],
59
+ examples: ['pmcp sessions broadcast "main moved"']
60
+ },
61
+ {
62
+ name: "unbroadcast",
63
+ describe: "Withdraw the broadcasts",
64
+ usage: "pmcp sessions unbroadcast",
65
+ options: ["config"],
66
+ examples: ["pmcp sessions unbroadcast"]
67
+ },
68
+ {
69
+ name: "sweep",
70
+ describe: "Remove records whose process is gone",
71
+ usage: "pmcp sessions sweep",
72
+ options: ["config"],
73
+ examples: ["pmcp sessions sweep"]
74
+ },
75
+ {
76
+ name: "send",
77
+ describe: "Send a message to sessions",
78
+ usage: "pmcp sessions send --to <selector>... [--subject <s>] [--ttl <minutes>] [--once] [--wake] [--reply-to <id>] <body|->",
79
+ options: [
80
+ "to",
81
+ "subject",
82
+ "ttl",
83
+ "once",
84
+ "wake",
85
+ "reply-to",
86
+ "by",
87
+ "session",
88
+ "config",
89
+ "json"
90
+ ],
91
+ examples: [
92
+ 'pmcp sessions send --to role:reviewer --subject review "please look at 4f92"'
93
+ ]
94
+ },
95
+ {
96
+ name: "inbox",
97
+ describe: "List your messages",
98
+ usage: "pmcp sessions inbox [--all] [--session <id>] [--json]",
99
+ options: ["all", "session", "config", "json"],
100
+ examples: ["pmcp sessions inbox --all"]
101
+ },
102
+ {
103
+ name: "ack",
104
+ describe: "Acknowledge messages by id",
105
+ usage: "pmcp sessions ack <id>... [--session <id>]",
106
+ options: ["session", "config", "json"],
107
+ examples: ["pmcp sessions ack 01J9Z"]
108
+ },
109
+ {
110
+ name: "reply",
111
+ describe: "Answer a message",
112
+ usage: "pmcp sessions reply <id> <body|->",
113
+ options: ["session", "by", "config", "json"],
114
+ examples: ['pmcp sessions reply 01J9Z "done"']
115
+ }
116
+ ],
117
+ defaultSubcommand: "status",
118
+ describe: "Show and coordinate the live sessions of this workspace: pause, broadcast, sweep",
119
+ usage: "pmcp sessions [<subcommand>] [options]",
120
+ options: [
121
+ jsonOption,
122
+ nearestConfigOption,
123
+ {
124
+ name: "by",
125
+ describe: "Who pauses, broadcasts or sends; that session is exempt. Default operator.",
126
+ placeholder: "<name>"
127
+ },
128
+ {
129
+ name: "to",
130
+ describe: "Message recipients: all, session:<id>, alias:<name>, role:<name> or worktree:<path> (desk:<path> also works). Repeatable.",
131
+ placeholder: "<selector>",
132
+ repeat: true
133
+ },
134
+ { name: "subject", describe: "Message subject.", placeholder: "<text>" },
135
+ {
136
+ name: "ttl",
137
+ describe: "Minutes until the message expires; default [sessions.mailbox] ttl_minutes.",
138
+ placeholder: "<minutes>"
139
+ },
140
+ {
141
+ name: "once",
142
+ describe: "Mark the message a one-time request, not a standing rule.",
143
+ boolean: true
144
+ },
145
+ {
146
+ name: "wake",
147
+ describe: "Also start a turn in idle recipients where the runtime allows it (Claude, opencode).",
148
+ boolean: true
149
+ },
150
+ {
151
+ name: "reply-to",
152
+ describe: "The message this one answers.",
153
+ placeholder: "<id>"
154
+ },
155
+ {
156
+ name: "session",
157
+ describe: "Whose inbox: the session id that reads, sends or acknowledges.",
158
+ placeholder: "<id>"
159
+ },
160
+ {
161
+ name: "all",
162
+ describe: "List every unexpired message, not only yours.",
163
+ boolean: true
164
+ }
165
+ ]
166
+ };
167
+
168
+ export {
169
+ SESSION_VERBS,
170
+ JSON_VERBS,
171
+ sessionsSpec
172
+ };
173
+ //# sourceMappingURL=chunk-2GZKA33O.js.map
@@ -0,0 +1,159 @@
1
+ import {
2
+ configOption
3
+ } from "./chunk-JPYQDOEW.js";
4
+
5
+ // src/commands/specs/mailbox.ts
6
+ var mailboxSpec = {
7
+ name: "mailbox",
8
+ protocol: true,
9
+ describe: "Manage opt-in local peer mail and launcher credentials",
10
+ usage: "pmcp mailbox <subcommand> [options]",
11
+ subcommands: [
12
+ {
13
+ name: "init",
14
+ describe: "Create the project UUID and mailbox state",
15
+ usage: "pmcp mailbox init [--config <file>] [--state-dir <dir>]",
16
+ options: ["config", "state-dir"],
17
+ examples: ["pmcp mailbox init --config ./pmcp.toml"]
18
+ },
19
+ {
20
+ name: "actor",
21
+ describe: "Register an actor and write its private credential",
22
+ usage: "pmcp mailbox actor --actor <id> --actor-file <file> [--parent-binding <file>]",
23
+ options: ["config", "actor", "actor-file", "parent-binding"],
24
+ examples: [
25
+ "pmcp mailbox actor --actor reviewer --actor-file /private/reviewer.actor.json"
26
+ ]
27
+ },
28
+ {
29
+ name: "rotate",
30
+ describe: "Replace an actor's credential (administration)",
31
+ usage: "pmcp mailbox rotate --actor <id> --actor-file <file> --operator",
32
+ options: ["config", "actor", "actor-file", "operator"],
33
+ examples: [
34
+ "pmcp mailbox rotate --actor reviewer --actor-file /private/reviewer.actor.json --operator"
35
+ ]
36
+ },
37
+ {
38
+ name: "send",
39
+ describe: "Send a message from --input as the actor",
40
+ usage: "pmcp mailbox send --actor-file <file> --binding-file <file> --input <file>",
41
+ options: ["config", "actor-file", "binding-file", "input"],
42
+ examples: [
43
+ "pmcp mailbox send --actor-file a.json --binding-file b.json --input message.json"
44
+ ]
45
+ },
46
+ {
47
+ name: "inbox",
48
+ describe: "List the actor's messages",
49
+ usage: "pmcp mailbox inbox --actor-file <file> --binding-file <file> [--input <file>]",
50
+ options: ["config", "actor-file", "binding-file", "input"],
51
+ examples: [
52
+ "pmcp mailbox inbox --actor-file a.json --binding-file b.json"
53
+ ]
54
+ },
55
+ {
56
+ name: "read",
57
+ describe: "Read a message and record a receipt",
58
+ usage: "pmcp mailbox read --actor-file <file> --binding-file <file> --input <file>",
59
+ options: ["config", "actor-file", "binding-file", "input"],
60
+ examples: [
61
+ "pmcp mailbox read --actor-file a.json --binding-file b.json --input read.json"
62
+ ]
63
+ },
64
+ {
65
+ name: "ack",
66
+ describe: "Acknowledge a read message",
67
+ usage: "pmcp mailbox ack --actor-file <file> --binding-file <file> --input <file>",
68
+ options: ["config", "actor-file", "binding-file", "input"],
69
+ examples: [
70
+ "pmcp mailbox ack --actor-file a.json --binding-file b.json --input ack.json"
71
+ ]
72
+ },
73
+ {
74
+ name: "sessions",
75
+ describe: "List attached sessions",
76
+ usage: "pmcp mailbox sessions --actor-file <file> --binding-file <file>",
77
+ options: ["config", "actor-file", "binding-file"],
78
+ examples: [
79
+ "pmcp mailbox sessions --actor-file a.json --binding-file b.json"
80
+ ]
81
+ },
82
+ {
83
+ name: "export",
84
+ describe: "Export correspondence (administration)",
85
+ usage: "pmcp mailbox export --operator --output <file> [--scope-actor <id>]",
86
+ options: ["config", "operator", "output", "scope-actor"],
87
+ examples: ["pmcp mailbox export --operator --output mail-export.json"]
88
+ },
89
+ {
90
+ name: "backup",
91
+ describe: "Back the mailbox state up (administration)",
92
+ usage: "pmcp mailbox backup --operator --output <file>",
93
+ options: ["config", "operator", "output"],
94
+ examples: ["pmcp mailbox backup --operator --output mail.backup"]
95
+ },
96
+ {
97
+ name: "restore",
98
+ describe: "Restore a backup (administration)",
99
+ usage: "pmcp mailbox restore --operator --input <file> --output <file>",
100
+ options: ["config", "operator", "input", "output"],
101
+ examples: [
102
+ "pmcp mailbox restore --operator --input mail.backup --output restored"
103
+ ]
104
+ }
105
+ ],
106
+ examples: [
107
+ "pmcp mailbox init --config ./pmcp.toml",
108
+ "pmcp mailbox actor --actor reviewer --actor-file /private/reviewer.actor.json"
109
+ ],
110
+ options: [
111
+ configOption,
112
+ {
113
+ name: "state-dir",
114
+ describe: "Private mailbox state directory",
115
+ placeholder: "<dir>"
116
+ },
117
+ { name: "actor", describe: "Registered actor ID", placeholder: "<id>" },
118
+ {
119
+ name: "actor-file",
120
+ describe: "Private actor credential file",
121
+ placeholder: "<file>"
122
+ },
123
+ {
124
+ name: "binding-file",
125
+ describe: "Private existing attachment file",
126
+ placeholder: "<file>"
127
+ },
128
+ {
129
+ name: "parent-binding",
130
+ describe: "Live parent attachment for bounded child delegation",
131
+ placeholder: "<file>"
132
+ },
133
+ {
134
+ name: "input",
135
+ describe: "Operation input JSON or backup source",
136
+ placeholder: "<file>"
137
+ },
138
+ {
139
+ name: "output",
140
+ describe: "New export or backup destination",
141
+ placeholder: "<file>"
142
+ },
143
+ {
144
+ name: "scope-actor",
145
+ describe: "Limit export to one actor's correspondence",
146
+ placeholder: "<id>"
147
+ },
148
+ {
149
+ name: "operator",
150
+ describe: "Explicit local administrator intent",
151
+ boolean: true
152
+ }
153
+ ]
154
+ };
155
+
156
+ export {
157
+ mailboxSpec
158
+ };
159
+ //# sourceMappingURL=chunk-2HL2MFNI.js.map
@@ -1190,7 +1190,7 @@ function registerReadTool(server, tools) {
1190
1190
 
1191
1191
  // src/mcp.ts
1192
1192
  var SERVER_NAME = "pmcp";
1193
- var SERVER_VERSION = "0.22.12";
1193
+ var SERVER_VERSION = "0.23.1";
1194
1194
  var MAX_TOOL_INPUT_ELEMENTS = 1e4;
1195
1195
  function registerSkillTools(server, tools) {
1196
1196
  registerCatalogTool(server, tools);
@@ -1247,4 +1247,4 @@ export {
1247
1247
  registerSkillTools,
1248
1248
  createSkillServer
1249
1249
  };
1250
- //# sourceMappingURL=chunk-OAX6MIOZ.js.map
1250
+ //# sourceMappingURL=chunk-2K4WYN4C.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  configFrom
3
- } from "./chunk-RPCIROW7.js";
3
+ } from "./chunk-7CHUMF3E.js";
4
4
  import {
5
5
  publicMarketplaceRoot
6
6
  } from "./chunk-73AKO4UL.js";
7
7
  import {
8
8
  many
9
- } from "./chunk-A4PKLESO.js";
9
+ } from "./chunk-Y6NFETNG.js";
10
10
  import {
11
11
  readCatalog
12
12
  } from "./chunk-4CRRLDDS.js";
@@ -50,4 +50,4 @@ export {
50
50
  catalogOptionsFrom,
51
51
  catalogFrom
52
52
  };
53
- //# sourceMappingURL=chunk-PEMMV5YQ.js.map
53
+ //# sourceMappingURL=chunk-2MX5C7B2.js.map
@@ -11,9 +11,11 @@ import {
11
11
  leaseFile
12
12
  } from "./chunk-Z6WRFOFT.js";
13
13
  import {
14
- expandPath,
15
14
  projectStateDir
16
- } from "./chunk-OEH47H6A.js";
15
+ } from "./chunk-FQLCD4HU.js";
16
+ import {
17
+ expandPath
18
+ } from "./chunk-GUHOEIHP.js";
17
19
  import {
18
20
  checkoutOf
19
21
  } from "./chunk-IJBSOWHK.js";
@@ -728,4 +730,4 @@ export {
728
730
  readStoreSettings,
729
731
  openStore
730
732
  };
731
- //# sourceMappingURL=chunk-7I7O7ZNT.js.map
733
+ //# sourceMappingURL=chunk-3V37OZQH.js.map