@modootoday/pmcp 0.32.0 → 0.33.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 (147) 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-BHHN2Q3D.js → affected-CLIKMDJJ.js} +3 -3
  6. package/dist/{apply-SSYZGDJU.js → apply-PHXWER4P.js} +15 -14
  7. package/dist/{available-74CMIBPD.js → available-CYDZYY7E.js} +3 -2
  8. package/dist/{broadcast-U7ZYOJWE.js → broadcast-4YBKHLXV.js} +5 -5
  9. package/dist/{chunk-SMHHL25Y.js → chunk-2D36J3YZ.js} +9 -6
  10. package/dist/{chunk-AALSWFPA.js → chunk-3H7UTRJW.js} +7 -7
  11. package/dist/{chunk-3DRV5KHZ.js → chunk-3QU7Z7SJ.js} +4 -4
  12. package/dist/{chunk-FALOBFE6.js → chunk-47MNSTNA.js} +3 -3
  13. package/dist/{chunk-C3G75JH7.js → chunk-4B2VDTHL.js} +16 -5
  14. package/dist/{chunk-65BW7Y6O.js → chunk-4F4CMDKZ.js} +1 -1
  15. package/dist/{chunk-YOWIYFIV.js → chunk-4U4GLMZ6.js} +5 -8
  16. package/dist/{chunk-JANBBPKP.js → chunk-5VGNZSB7.js} +6 -6
  17. package/dist/{chunk-VEJU5HXJ.js → chunk-6NVAKB2U.js} +3 -3
  18. package/dist/{chunk-6H3HN7E7.js → chunk-7RRZGHXM.js} +5 -5
  19. package/dist/{chunk-Y2XASHVY.js → chunk-AXNXNFSV.js} +2 -2
  20. package/dist/{chunk-HF5D6B2U.js → chunk-BN73TTTP.js} +7 -10
  21. package/dist/{chunk-XADROJFL.js → chunk-CD3NHHQ3.js} +2 -2
  22. package/dist/chunk-CGFLYYGD.js +175 -0
  23. package/dist/{chunk-E2E4HIEN.js → chunk-CSZ2HI2R.js} +2 -2
  24. package/dist/{chunk-OIYZT4BG.js → chunk-DGVXKZHP.js} +11 -4
  25. package/dist/{chunk-ITDJ2EXN.js → chunk-DIWQOLPW.js} +2 -2
  26. package/dist/chunk-EWEY3ASH.js +21 -0
  27. package/dist/{chunk-PRQICZXO.js → chunk-EWTJTS54.js} +14 -14
  28. package/dist/{chunk-KWCZKCTC.js → chunk-FDFVAZOE.js} +11 -15
  29. package/dist/{chunk-IAR7BL5R.js → chunk-GTPQUQCP.js} +2 -2
  30. package/dist/{chunk-OIV44CYB.js → chunk-HGVYHF3S.js} +3 -3
  31. package/dist/{chunk-SU6R4VWV.js → chunk-I4IQUTR4.js} +3 -3
  32. package/dist/{chunk-7DJQASH3.js → chunk-IH76KECZ.js} +10 -34
  33. package/dist/{chunk-UKGO2RR7.js → chunk-JFZU46JO.js} +2 -2
  34. package/dist/{chunk-Q6V274OB.js → chunk-JNW2Z36X.js} +2 -2
  35. package/dist/chunk-JOGLKWN7.js +52 -0
  36. package/dist/{chunk-VBVNOLRR.js → chunk-K4ZG3BXL.js} +2 -2
  37. package/dist/{chunk-JZKAJUVT.js → chunk-KESQUAKO.js} +2 -2
  38. package/dist/{chunk-OS5CYV27.js → chunk-KR3D7TQO.js} +3 -3
  39. package/dist/{chunk-UVTGY2R3.js → chunk-KRDNVEV6.js} +4 -7
  40. package/dist/{chunk-2HL2MFNI.js → chunk-KWSCDIE2.js} +2 -2
  41. package/dist/{chunk-UT2NACLW.js → chunk-MEQ43M6X.js} +2 -2
  42. package/dist/{chunk-QYLOIM4U.js → chunk-MFD2UEJY.js} +6 -8
  43. package/dist/{chunk-QZY36KNT.js → chunk-MIOKNRMY.js} +2 -2
  44. package/dist/{chunk-JPYQDOEW.js → chunk-MPYM2HYV.js} +7 -9
  45. package/dist/{chunk-YJVSN6UN.js → chunk-NFWN3AMZ.js} +3 -3
  46. package/dist/{chunk-GQRDEIQA.js → chunk-NQBSTHYF.js} +1 -1
  47. package/dist/{chunk-I4U2A6HP.js → chunk-NQVAFHDK.js} +2 -2
  48. package/dist/{chunk-LXWAU7AX.js → chunk-OOH47XJH.js} +6 -6
  49. package/dist/chunk-PN3U7FPZ.js +7 -0
  50. package/dist/{chunk-V4NPDK6X.js → chunk-QRLTTS5K.js} +1 -1
  51. package/dist/{chunk-FFQA2R5P.js → chunk-RBWTJQYR.js} +6 -13
  52. package/dist/{chunk-MUGHZ6QC.js → chunk-RM6IPG7B.js} +2 -2
  53. package/dist/{chunk-IFFOJ3IE.js → chunk-S5L65IJL.js} +2 -2
  54. package/dist/{chunk-4VVQLWTS.js → chunk-SXFW4COX.js} +2 -2
  55. package/dist/{chunk-WZYGM3FR.js → chunk-TLHWUYTW.js} +5 -5
  56. package/dist/{chunk-FGG7JJ5M.js → chunk-TRAC427I.js} +3 -3
  57. package/dist/{chunk-D7IDT7OA.js → chunk-UFGGQVB7.js} +5 -5
  58. package/dist/{chunk-OIKT4SYO.js → chunk-UOFHM6OM.js} +2 -2
  59. package/dist/{chunk-NQCAKDRY.js → chunk-UORJZ7TK.js} +3 -3
  60. package/dist/{chunk-A4P3IIPE.js → chunk-VCQQHIH5.js} +5 -5
  61. package/dist/{chunk-QRCAGKC6.js → chunk-WWNY53B6.js} +14 -11
  62. package/dist/{chunk-WBPVNCQO.js → chunk-WYK57MIH.js} +6 -6
  63. package/dist/{chunk-TQRLWO4F.js → chunk-XPYY6K5L.js} +2 -2
  64. package/dist/{chunk-ESM7TFTO.js → chunk-YKYHM54P.js} +2 -2
  65. package/dist/{cli-RHOETDBX.js → cli-33J5JI7Q.js} +7 -7
  66. package/dist/{cli-ZOY2274X.js → cli-TVVP3DZ5.js} +10 -10
  67. package/dist/cli.js +19 -19
  68. package/dist/{completion-PE6CHX4K.js → completion-KM3C2SHI.js} +18 -18
  69. package/dist/{diagnostics-7Y5OFV44.js → diagnostics-HQIZ5M24.js} +9 -8
  70. package/dist/{doctor-XY6OMK7W.js → doctor-PIJMN7XM.js} +7 -7
  71. package/dist/{doctor-GBIPPKPD.js → doctor-UGWGKB5U.js} +18 -17
  72. package/dist/{entry-4WT2WM6C.js → entry-VNL45DQN.js} +15 -14
  73. package/dist/{exec-mcp-BLTFBWND.js → exec-mcp-2QE7TWE4.js} +12 -11
  74. package/dist/{harness-HGBKFIUT.js → harness-5QEGA4RC.js} +3 -3
  75. package/dist/harness-launch-gate.js +8 -7
  76. package/dist/harness-pane-runner.js +3 -2
  77. package/dist/harness-worker.js +10 -9
  78. package/dist/{heavy-E55QD5LR.js → heavy-E2LBLJ7P.js} +10 -10
  79. package/dist/{hooks-MT3CGRSU.js → hooks-VOKZV5M4.js} +5 -5
  80. package/dist/{host-FXO4VGE6.js → host-2F5PG3DF.js} +6 -6
  81. package/dist/{host-5AI4JAXD.js → host-IZ2Y55HL.js} +9 -8
  82. package/dist/{host-AMKVSOYU.js → host-RJ72SAF6.js} +14 -13
  83. package/dist/{host-run-M2KMMU72.js → host-run-EQQDEUW5.js} +7 -6
  84. package/dist/http.d.ts +4 -4
  85. package/dist/http.js +4 -3
  86. package/dist/{import-mcp-QTUVK5GE.js → import-mcp-HEAIC23N.js} +11 -10
  87. package/dist/index.d.ts +6 -7
  88. package/dist/index.js +18 -17
  89. package/dist/init-CVKLSL5D.js +14 -0
  90. package/dist/{install-5JH4DSFF.js → install-ITEWB6V3.js} +3 -2
  91. package/dist/{invoke-D2CYSRFG.js → invoke-TA2SYXFJ.js} +12 -11
  92. package/dist/{list-LV5EKCF6.js → list-CNLGT6TK.js} +3 -2
  93. package/dist/{list-UG67V5EO.js → list-N7DWTEPL.js} +13 -12
  94. package/dist/{load-BEUBABtB.d.ts → load-C6Iite0Q.d.ts} +1 -1
  95. package/dist/{logout-Z5KMKTTP.js → logout-FVMOFMES.js} +12 -11
  96. package/dist/{logs-J4W6GFMK.js → logs-UQ3FJ5RY.js} +3 -3
  97. package/dist/mailbox/index.js +5 -4
  98. package/dist/{mailbox-6MHH6CUA.js → mailbox-AZR6YUC5.js} +5 -5
  99. package/dist/{mailbox-ZHZWZMAY.js → mailbox-GSGP5EGX.js} +6 -5
  100. package/dist/{mainline-Y4HOI5R7.js → mainline-GYF4BNMI.js} +7 -7
  101. package/dist/{marketplace-2X3OOEPW.js → marketplace-S3DXRVIR.js} +16 -8
  102. package/dist/{mcp-QARZ7L22.js → mcp-CAUFKA44.js} +4 -4
  103. package/dist/{measure-K7D3GLC6.js → measure-QB7SGMO3.js} +7 -7
  104. package/dist/{models-XSF45MCD.js → models-YEMUWADC.js} +3 -2
  105. package/dist/{owners-MPI22SFU.js → owners-E3WYJML3.js} +3 -3
  106. package/dist/{pause-3IMVYXQQ.js → pause-HVXLAT7D.js} +5 -5
  107. package/dist/{plan-JAHYXJHP.js → plan-T2GT3YN6.js} +7 -7
  108. package/dist/{preview-465CQJBQ.js → preview-PPA6UJDD.js} +3 -2
  109. package/dist/{project-5SL2CE5F.js → project-UGPOUTTR.js} +7 -7
  110. package/dist/{recovery-HB2YFQSQ.js → recovery-7ATXH6W5.js} +5 -4
  111. package/dist/{reindex-D62HQAN2.js → reindex-KQJAX323.js} +4 -3
  112. package/dist/{resume-7LCSV4X3.js → resume-MMHI3BNI.js} +5 -5
  113. package/dist/{run-H22CN65S.js → run-O6OYB423.js} +11 -10
  114. package/dist/{run-EUU6TJBI.js → run-Z2RXQJPJ.js} +4 -4
  115. package/dist/{serve-36VOPK47.js → serve-M4PZOOAW.js} +12 -10
  116. package/dist/{session-3YVVO2GR.js → session-BTN4JXQ4.js} +3 -2
  117. package/dist/{setup-Y5SM4LKI.js → setup-O75KDANV.js} +4 -4
  118. package/dist/{smoke-GZECLXOJ.js → smoke-UK42EV7O.js} +3 -3
  119. package/dist/{start-login-3CUVLBDP.js → start-login-GY62GMNC.js} +12 -11
  120. package/dist/{status-QFMN7IUG.js → status-GQHMLK4G.js} +5 -5
  121. package/dist/{status-SLQQMCZP.js → status-YMUZYN5M.js} +12 -11
  122. package/dist/{status-ZGFOO5YT.js → status-YWXOVGE3.js} +15 -14
  123. package/dist/stdio.d.ts +1 -1
  124. package/dist/stdio.js +7 -6
  125. package/dist/{sweep-BS7HVSNP.js → sweep-UVD3KAFD.js} +5 -5
  126. package/dist/{test-JKU4KELV.js → test-SBP54LNA.js} +13 -12
  127. package/dist/{tools-gpHNq9Dh.d.ts → tools-Dnu9wAAm.d.ts} +20 -6
  128. package/dist/{tui-QB42W3XZ.js → tui-TB7YQLMP.js} +5 -5
  129. package/dist/{unbroadcast-GRGX3F6T.js → unbroadcast-YWUKATJK.js} +5 -5
  130. package/dist/{validate-YXR7FJJX.js → validate-MIVCL2ZK.js} +5 -3
  131. package/dist/{worker-VPP2HD6O.js → worker-4VBEX5KF.js} +13 -12
  132. package/docs/compatibility.md +5 -0
  133. package/docs/project-configuration.md +36 -36
  134. package/docs/upgrading.md +12 -0
  135. package/gemini-extension.json +2 -2
  136. package/mcp.json +1 -1
  137. package/package.json +5 -5
  138. package/plugin.json +1 -1
  139. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  140. package/plugins/pmcp/.mcp.json +1 -1
  141. package/plugins/pmcp/gemini-extension.json +2 -2
  142. package/plugins/pmcp/mcp.json +1 -1
  143. package/plugins/pmcp/plugin.json +1 -1
  144. package/dist/chunk-BU65MNVU.js +0 -13
  145. package/dist/chunk-KNIHXLDE.js +0 -7
  146. package/dist/chunk-PPWEOXIU.js +0 -175
  147. package/dist/init-RAAQOP4D.js +0 -14
@@ -0,0 +1,175 @@
1
+ import {
2
+ marketplaceSpec
3
+ } from "./chunk-5VGNZSB7.js";
4
+ import {
5
+ mailboxSpec
6
+ } from "./chunk-KWSCDIE2.js";
7
+ import {
8
+ harnessSpec,
9
+ tuiSpec
10
+ } from "./chunk-QR6A3TYP.js";
11
+ import {
12
+ waitSpec
13
+ } from "./chunk-F3R5HEUB.js";
14
+ import {
15
+ ownersSpec
16
+ } from "./chunk-UFGGQVB7.js";
17
+ import {
18
+ mcpSpec
19
+ } from "./chunk-KRDNVEV6.js";
20
+ import {
21
+ gitSpec
22
+ } from "./chunk-SXFW4COX.js";
23
+ import {
24
+ heavySpec,
25
+ hostSpec
26
+ } from "./chunk-OOH47XJH.js";
27
+ import {
28
+ sessionsSpec
29
+ } from "./chunk-VCQQHIH5.js";
30
+ import {
31
+ logsSpec
32
+ } from "./chunk-TLHWUYTW.js";
33
+ import {
34
+ availableSpec,
35
+ installSpec,
36
+ previewSpec,
37
+ syncSpec
38
+ } from "./chunk-WYK57MIH.js";
39
+ import {
40
+ doctorSpec,
41
+ projectSpec
42
+ } from "./chunk-BN73TTTP.js";
43
+ import {
44
+ serveSpec
45
+ } from "./chunk-K4ZG3BXL.js";
46
+ import {
47
+ indexSpec,
48
+ listSpec,
49
+ modelsSpec,
50
+ validateSpec
51
+ } from "./chunk-IH76KECZ.js";
52
+ import {
53
+ loginSpec,
54
+ logoutSpec,
55
+ whoamiSpec
56
+ } from "./chunk-MFD2UEJY.js";
57
+ import {
58
+ hooksSpec,
59
+ initSpec,
60
+ statusSpec
61
+ } from "./chunk-CSZ2HI2R.js";
62
+
63
+ // src/commands/specs/completion.ts
64
+ var completionSpec = {
65
+ name: "completion",
66
+ examples: [
67
+ "pmcp completion bash > ~/.local/share/bash-completion/completions/pmcp",
68
+ 'pmcp completion zsh > "${fpath[1]}/_pmcp"'
69
+ ],
70
+ describe: "Print a shell completion script for bash, zsh or fish",
71
+ usage: "pmcp completion bash | zsh | fish"
72
+ };
73
+
74
+ // src/commands/registry.ts
75
+ var COMMANDS = [
76
+ {
77
+ ...statusSpec,
78
+ load: async () => (await import("./status-YWXOVGE3.js")).statusCommand
79
+ },
80
+ { ...initSpec, load: async () => (await import("./init-CVKLSL5D.js")).initCommand },
81
+ { ...hooksSpec, load: async () => (await import("./hooks-VOKZV5M4.js")).hooksCommand },
82
+ { ...serveSpec, load: async () => (await import("./serve-M4PZOOAW.js")).serveCommand },
83
+ { ...listSpec, load: async () => (await import("./list-CNLGT6TK.js")).listCommand },
84
+ {
85
+ ...indexSpec,
86
+ load: async () => (await import("./reindex-KQJAX323.js")).indexCommand
87
+ },
88
+ {
89
+ ...modelsSpec,
90
+ load: async () => (await import("./models-YEMUWADC.js")).modelsCommand
91
+ },
92
+ {
93
+ ...loginSpec,
94
+ load: async () => (await import("./session-BTN4JXQ4.js")).loginCommand
95
+ },
96
+ {
97
+ ...logoutSpec,
98
+ load: async () => (await import("./session-BTN4JXQ4.js")).logoutCommand
99
+ },
100
+ {
101
+ ...whoamiSpec,
102
+ load: async () => (await import("./session-BTN4JXQ4.js")).whoamiCommand
103
+ },
104
+ {
105
+ ...availableSpec,
106
+ load: async () => (await import("./available-CYDZYY7E.js")).availableCommand
107
+ },
108
+ {
109
+ ...previewSpec,
110
+ load: async () => (await import("./preview-PPA6UJDD.js")).previewCommand
111
+ },
112
+ {
113
+ ...installSpec,
114
+ load: async () => (await import("./install-ITEWB6V3.js")).installCommand
115
+ },
116
+ { ...syncSpec, load: async () => (await import("./install-ITEWB6V3.js")).syncCommand },
117
+ {
118
+ ...projectSpec,
119
+ load: async () => (await import("./project-UGPOUTTR.js")).projectCommand
120
+ },
121
+ {
122
+ ...doctorSpec,
123
+ load: async () => (await import("./doctor-UGWGKB5U.js")).doctorCommand
124
+ },
125
+ {
126
+ ...sessionsSpec,
127
+ load: async () => (await import("./cli-TVVP3DZ5.js")).sessionsCommand
128
+ },
129
+ { ...logsSpec, load: async () => (await import("./logs-UQ3FJ5RY.js")).logsCommand },
130
+ { ...gitSpec, load: async () => (await import("./cli-33J5JI7Q.js")).gitCommand },
131
+ {
132
+ ...heavySpec,
133
+ load: async () => (await import("./heavy-E2LBLJ7P.js")).heavyCommand
134
+ },
135
+ { ...hostSpec, load: async () => (await import("./host-2F5PG3DF.js")).hostCommand },
136
+ { ...waitSpec, load: async () => (await import("./wait-HEODT7KV.js")).waitCommand },
137
+ {
138
+ ...ownersSpec,
139
+ load: async () => (await import("./owners-E3WYJML3.js")).ownersCommand
140
+ },
141
+ { ...mcpSpec, load: async () => (await import("./mcp-CAUFKA44.js")).mcpCommand },
142
+ {
143
+ ...validateSpec,
144
+ load: async () => (await import("./validate-MIVCL2ZK.js")).validateCommand
145
+ },
146
+ {
147
+ ...mailboxSpec,
148
+ load: async () => (await import("./mailbox-GSGP5EGX.js")).mailboxCommand
149
+ },
150
+ {
151
+ ...harnessSpec,
152
+ load: async () => (await import("./harness-5QEGA4RC.js")).harnessCommand
153
+ },
154
+ { ...tuiSpec, load: async () => (await import("./tui-TB7YQLMP.js")).tuiCommand },
155
+ {
156
+ ...marketplaceSpec,
157
+ load: async () => (await import("./marketplace-S3DXRVIR.js")).marketplaceCommand
158
+ },
159
+ {
160
+ ...completionSpec,
161
+ load: async () => (await import("./completion-KM3C2SHI.js")).completionCommand
162
+ }
163
+ ];
164
+ var PLANNED = [];
165
+ function commandNamed(name) {
166
+ return COMMANDS.find((command) => command.name === name);
167
+ }
168
+
169
+ export {
170
+ completionSpec,
171
+ COMMANDS,
172
+ PLANNED,
173
+ commandNamed
174
+ };
175
+ //# sourceMappingURL=chunk-CGFLYYGD.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  configOption,
3
3
  jsonOption
4
- } from "./chunk-JPYQDOEW.js";
4
+ } from "./chunk-MPYM2HYV.js";
5
5
 
6
6
  // src/commands/specs/inspection.ts
7
7
  var statusSpec = {
@@ -133,4 +133,4 @@ export {
133
133
  initSpec,
134
134
  hooksSpec
135
135
  };
136
- //# sourceMappingURL=chunk-E2E4HIEN.js.map
136
+ //# sourceMappingURL=chunk-CSZ2HI2R.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-SGFTHKKS.js";
10
10
  import {
11
11
  inferSession
12
- } from "./chunk-65BW7Y6O.js";
12
+ } from "./chunk-4F4CMDKZ.js";
13
13
  import {
14
14
  flockAvailable
15
15
  } from "./chunk-DZ2MRTYT.js";
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  BUSY_EXIT,
21
21
  DISABLE_ENV
22
- } from "./chunk-QZY36KNT.js";
22
+ } from "./chunk-MIOKNRMY.js";
23
23
  import {
24
24
  LANES,
25
25
  epoch,
@@ -549,6 +549,10 @@ function severe(settings, reading) {
549
549
  const factor = settings.hardFactor;
550
550
  return over(reading.load, settings.maxLoad * factor) || over(io(settings, reading), settings.maxIo * factor);
551
551
  }
552
+ function effectiveGrace(loadGrace, ageLimit) {
553
+ if (loadGrace === 0 || ageLimit === 0) return loadGrace;
554
+ return Math.min(loadGrace, ageLimit);
555
+ }
552
556
  function hostVerdict(settings, reading, waiting) {
553
557
  if (settled(settings, reading)) return "settled";
554
558
  if (severe(settings, reading)) return "severe";
@@ -650,7 +654,10 @@ function tryAdmit(options, paths, fd, start, registered) {
650
654
  const { running, waiters } = readQueue(paths);
651
655
  if (!admissible(options.settings, running, waiters).has(pid))
652
656
  return { admitted: false, verdict: "queue" };
653
- const grace = options.settings.profiles[options.profile].loadGrace;
657
+ const grace = effectiveGrace(
658
+ options.settings.profiles[options.profile].loadGrace,
659
+ options.settings.ageLimit
660
+ );
654
661
  const reading = readHost(hostSources(options.env));
655
662
  const released = lastRelease(paths);
656
663
  const verdict = hostVerdict(options.settings, reading, {
@@ -1161,4 +1168,4 @@ export {
1161
1168
  usageStats,
1162
1169
  runHeavy
1163
1170
  };
1164
- //# sourceMappingURL=chunk-OIYZT4BG.js.map
1171
+ //# sourceMappingURL=chunk-DGVXKZHP.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-5OMOPUE6.js";
8
8
  import {
9
9
  runtimeExecutables
10
- } from "./chunk-BU65MNVU.js";
10
+ } from "./chunk-EWEY3ASH.js";
11
11
  import {
12
12
  envNames
13
13
  } from "./chunk-J6KL3COD.js";
@@ -276,4 +276,4 @@ export {
276
276
  readPrivateJson,
277
277
  GroupStore
278
278
  };
279
- //# sourceMappingURL=chunk-ITDJ2EXN.js.map
279
+ //# sourceMappingURL=chunk-DIWQOLPW.js.map
@@ -0,0 +1,21 @@
1
+ import {
2
+ EXECUTABLES,
3
+ PRODUCT_OF
4
+ } from "./chunk-JOGLKWN7.js";
5
+
6
+ // src/harness/runtimes/registry.ts
7
+ var ORDER = [
8
+ "codex-cli",
9
+ "claude-code",
10
+ "gemini-cli",
11
+ "grok-cli",
12
+ "antigravity"
13
+ ];
14
+ var runtimeExecutables = Object.fromEntries(
15
+ ORDER.map((product) => [product, EXECUTABLES[PRODUCT_OF[product]]])
16
+ );
17
+
18
+ export {
19
+ runtimeExecutables
20
+ };
21
+ //# sourceMappingURL=chunk-EWEY3ASH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readLeaseSettings
3
- } from "./chunk-QZY36KNT.js";
3
+ } from "./chunk-MIOKNRMY.js";
4
4
  import {
5
5
  ProjectError
6
6
  } from "./chunk-TYY5TYHF.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-XWLMZKH2.js";
13
13
  import {
14
14
  VERSION
15
- } from "./chunk-KNIHXLDE.js";
15
+ } from "./chunk-PN3U7FPZ.js";
16
16
  import {
17
17
  ConfigError
18
18
  } from "./chunk-GJXOFDJT.js";
@@ -20,6 +20,11 @@ import {
20
20
  envNames,
21
21
  pickEnv
22
22
  } from "./chunk-J6KL3COD.js";
23
+ import {
24
+ EXECUTABLES,
25
+ RUNTIME_IDS,
26
+ runtimeIdOf
27
+ } from "./chunk-JOGLKWN7.js";
23
28
 
24
29
  // src/native/binary.ts
25
30
  import { accessSync, constants, statSync } from "fs";
@@ -300,14 +305,9 @@ function readHostDesktop(path, raw) {
300
305
  }
301
306
 
302
307
  // src/project/host-spec.ts
303
- var HOST_RUNTIMES = [
304
- "claude",
305
- "codex",
306
- "gemini",
307
- "agy",
308
- "grok",
309
- "opencode"
310
- ];
308
+ var HOST_RUNTIMES = RUNTIME_IDS.map(
309
+ (id) => EXECUTABLES[id]
310
+ );
311
311
  var NAME2 = /^[a-z0-9][a-z0-9-]{0,47}$/u;
312
312
  var LABEL = /^[a-z0-9][a-z0-9._-]{0,63}$/u;
313
313
  var CONTROL = /[\u0000-\u001f\u007f]/u;
@@ -336,10 +336,10 @@ function texts(path, where, value) {
336
336
  return value.map((v, i) => text(path, `${where}[${i}]`, v));
337
337
  }
338
338
  function runtime(path, where, value) {
339
- const name = text(path, where, value);
340
- if (!HOST_RUNTIMES.includes(name))
339
+ const id = runtimeIdOf(text(path, where, value));
340
+ if (id === null)
341
341
  fail2(path, `${where} must be one of ${HOST_RUNTIMES.join(", ")}`);
342
- return name;
342
+ return EXECUTABLES[id];
343
343
  }
344
344
  function relative(path, where, value) {
345
345
  const dir = normalize(text(path, where, value));
@@ -610,4 +610,4 @@ export {
610
610
  hostEnvDoctor,
611
611
  hostDoctor
612
612
  };
613
- //# sourceMappingURL=chunk-PRQICZXO.js.map
613
+ //# sourceMappingURL=chunk-EWTJTS54.js.map
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-OFJIMBTL.js";
13
13
  import {
14
14
  readOperatorSettings
15
- } from "./chunk-NQCAKDRY.js";
15
+ } from "./chunk-UORJZ7TK.js";
16
16
  import {
17
17
  readReportTable
18
18
  } from "./chunk-LFFIQBNY.js";
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  leaseSpecs,
30
30
  readGitConfig
31
- } from "./chunk-UKGO2RR7.js";
31
+ } from "./chunk-JFZU46JO.js";
32
32
  import {
33
33
  ownerLine,
34
34
  ownersOf,
@@ -66,10 +66,10 @@ import {
66
66
  RUNTIME_IDS,
67
67
  climbCommand,
68
68
  readTestTable
69
- } from "./chunk-GQRDEIQA.js";
69
+ } from "./chunk-NQBSTHYF.js";
70
70
  import {
71
71
  TOOLS
72
- } from "./chunk-V4NPDK6X.js";
72
+ } from "./chunk-QRLTTS5K.js";
73
73
  import {
74
74
  declaresPtyHost,
75
75
  hostOutputs,
@@ -77,11 +77,11 @@ import {
77
77
  readHost,
78
78
  readLock,
79
79
  readLockFile
80
- } from "./chunk-PRQICZXO.js";
80
+ } from "./chunk-EWTJTS54.js";
81
81
  import {
82
82
  DISABLE_ENV,
83
83
  readLeaseSettings
84
- } from "./chunk-QZY36KNT.js";
84
+ } from "./chunk-MIOKNRMY.js";
85
85
  import {
86
86
  ProjectError,
87
87
  RULES_DIR,
@@ -105,6 +105,9 @@ import {
105
105
  import {
106
106
  envNames
107
107
  } from "./chunk-J6KL3COD.js";
108
+ import {
109
+ productNameOf
110
+ } from "./chunk-JOGLKWN7.js";
108
111
 
109
112
  // src/project/plan.ts
110
113
  import { existsSync as existsSync7, readFileSync as readFileSync6, readdirSync } from "fs";
@@ -370,15 +373,8 @@ function proxyDriver(spec, alias) {
370
373
  }
371
374
 
372
375
  // src/project/mcp/native.ts
373
- var runtimeByTool = {
374
- claude: "claude-code",
375
- codex: "codex-cli",
376
- gemini: "gemini-cli",
377
- grok: "grok-cli",
378
- antigravity: "antigravity"
379
- };
380
376
  function mailboxRuntime(tool) {
381
- const runtime = runtimeByTool[tool];
377
+ const runtime = productNameOf(tool);
382
378
  if (!runtime) {
383
379
  throw new ProjectError(
384
380
  "OpenCode mailbox runtime binding is not qualified; limit this server's targets"
@@ -6991,4 +6987,4 @@ export {
6991
6987
  checkBudget,
6992
6988
  readSpec
6993
6989
  };
6994
- //# sourceMappingURL=chunk-KWCZKCTC.js.map
6990
+ //# sourceMappingURL=chunk-FDFVAZOE.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  nativeBinary,
9
9
  ptyBinary
10
- } from "./chunk-PRQICZXO.js";
10
+ } from "./chunk-EWTJTS54.js";
11
11
 
12
12
  // src/tui/rust.ts
13
13
  import { spawn } from "child_process";
@@ -62,4 +62,4 @@ export {
62
62
  runTui,
63
63
  dependencies
64
64
  };
65
- //# sourceMappingURL=chunk-IAR7BL5R.js.map
65
+ //# sourceMappingURL=chunk-GTPQUQCP.js.map
@@ -7,10 +7,10 @@ import {
7
7
  customPolicy,
8
8
  externalId,
9
9
  externalPolicy
10
- } from "./chunk-KWCZKCTC.js";
10
+ } from "./chunk-FDFVAZOE.js";
11
11
  import {
12
12
  RUNTIMES
13
- } from "./chunk-GQRDEIQA.js";
13
+ } from "./chunk-NQBSTHYF.js";
14
14
 
15
15
  // src/hooks/inspection/list.ts
16
16
  function policyRows(compiled) {
@@ -50,4 +50,4 @@ function policyRows(compiled) {
50
50
  export {
51
51
  policyRows
52
52
  };
53
- //# sourceMappingURL=chunk-OIV44CYB.js.map
53
+ //# sourceMappingURL=chunk-HGVYHF3S.js.map
@@ -19,12 +19,12 @@ import {
19
19
  splitKeyed,
20
20
  versionMatches,
21
21
  withoutBlock
22
- } from "./chunk-KWCZKCTC.js";
22
+ } from "./chunk-FDFVAZOE.js";
23
23
  import {
24
24
  lockVersionProblem,
25
25
  readLock,
26
26
  replaceFile
27
- } from "./chunk-PRQICZXO.js";
27
+ } from "./chunk-EWTJTS54.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-SU6R4VWV.js.map
276
+ //# sourceMappingURL=chunk-I4IQUTR4.js.map
@@ -1,6 +1,10 @@
1
1
  import {
2
2
  CATALOG_OPTIONS
3
3
  } from "./chunk-5NDUWEMW.js";
4
+ import {
5
+ dryRunOption,
6
+ jsonOption
7
+ } from "./chunk-MPYM2HYV.js";
4
8
 
5
9
  // src/commands/options/embedding.ts
6
10
  var EMBEDDING_OPTIONS = [
@@ -57,14 +61,7 @@ var listSpec = {
57
61
  examples: ["pmcp list", "pmcp list --scope @acme/ --json"],
58
62
  describe: "List the skills discovered in node_modules and marketplaces",
59
63
  usage: "pmcp list [--root <dir>] [--scope <prefix>] [--marketplace <dir>] [--package <dir>] [--workspace <dir|glob>] [--config <file> | --no-config] [--json]",
60
- options: [
61
- ...CATALOG_OPTIONS,
62
- {
63
- name: "json",
64
- describe: "Print the result as one JSON envelope on stdout.",
65
- boolean: true
66
- }
67
- ]
64
+ options: [...CATALOG_OPTIONS, jsonOption]
68
65
  };
69
66
  var indexSpec = {
70
67
  name: "index",
@@ -83,16 +80,8 @@ var indexSpec = {
83
80
  describe: "Re-encode the selected model even when descriptions match",
84
81
  boolean: true
85
82
  },
86
- {
87
- name: "json",
88
- describe: "Print the result as one JSON envelope on stdout.",
89
- boolean: true
90
- },
91
- {
92
- name: "dry-run",
93
- describe: "Report what would be encoded and write nothing.",
94
- boolean: true
95
- }
83
+ jsonOption,
84
+ dryRunOption("Report what would be encoded and write nothing.")
96
85
  ]
97
86
  };
98
87
  var modelsSpec = {
@@ -100,27 +89,14 @@ var modelsSpec = {
100
89
  examples: ["pmcp models", "pmcp models --json"],
101
90
  describe: "List embedding presets without loading or downloading models",
102
91
  usage: "pmcp models [--json]",
103
- options: [
104
- {
105
- name: "json",
106
- describe: "Print the result as one JSON envelope on stdout.",
107
- boolean: true
108
- }
109
- ]
92
+ options: [jsonOption]
110
93
  };
111
94
  var validateSpec = {
112
95
  name: "validate",
113
96
  examples: ["pmcp validate", "pmcp validate ./skills/review --json"],
114
97
  describe: "Check skills against the Agent Skills specification: given directories, or every skill the catalog reaches",
115
98
  usage: "pmcp validate [<skill-dir>...] [--root <dir>] [--marketplace <dir>] [--package <dir>] [--workspace <dir>] [--config <file> | --no-config] [--json]",
116
- options: [
117
- ...CATALOG_OPTIONS,
118
- {
119
- name: "json",
120
- describe: "Print the result as one JSON envelope on stdout.",
121
- boolean: true
122
- }
123
- ]
99
+ options: [...CATALOG_OPTIONS, jsonOption]
124
100
  };
125
101
 
126
102
  export {
@@ -130,4 +106,4 @@ export {
130
106
  modelsSpec,
131
107
  validateSpec
132
108
  };
133
- //# sourceMappingURL=chunk-7DJQASH3.js.map
109
+ //# sourceMappingURL=chunk-IH76KECZ.js.map
@@ -17,7 +17,7 @@ import {
17
17
  Reader,
18
18
  child,
19
19
  table
20
- } from "./chunk-ESM7TFTO.js";
20
+ } from "./chunk-YKYHM54P.js";
21
21
  import {
22
22
  projectStateDir
23
23
  } from "./chunk-KLIYFD3W.js";
@@ -338,4 +338,4 @@ export {
338
338
  gateTreePath,
339
339
  leaseSpecs
340
340
  };
341
- //# sourceMappingURL=chunk-UKGO2RR7.js.map
341
+ //# sourceMappingURL=chunk-JFZU46JO.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-7CHUMF3E.js";
8
8
  import {
9
9
  indexSpec
10
- } from "./chunk-7DJQASH3.js";
10
+ } from "./chunk-IH76KECZ.js";
11
11
  import {
12
12
  ArgumentError,
13
13
  EXIT,
@@ -167,4 +167,4 @@ export {
167
167
  indexPath,
168
168
  indexCommand
169
169
  };
170
- //# sourceMappingURL=chunk-Q6V274OB.js.map
170
+ //# sourceMappingURL=chunk-JNW2Z36X.js.map
@@ -0,0 +1,52 @@
1
+ // src/runtime/ids.ts
2
+ var RUNTIME_IDS = [
3
+ "claude",
4
+ "codex",
5
+ "gemini",
6
+ "antigravity",
7
+ "grok",
8
+ "opencode"
9
+ ];
10
+ var PRODUCT_NAMES = [
11
+ "claude-code",
12
+ "codex-cli",
13
+ "gemini-cli",
14
+ "grok-cli",
15
+ "antigravity"
16
+ ];
17
+ var PRODUCT_OF = {
18
+ "claude-code": "claude",
19
+ "codex-cli": "codex",
20
+ "gemini-cli": "gemini",
21
+ "grok-cli": "grok",
22
+ antigravity: "antigravity"
23
+ };
24
+ var EXECUTABLES = {
25
+ claude: "claude",
26
+ codex: "codex",
27
+ gemini: "gemini",
28
+ antigravity: "agy",
29
+ grok: "grok",
30
+ opencode: "opencode"
31
+ };
32
+ var ALIASES = new Map([
33
+ ...RUNTIME_IDS.map((id) => [id, id]),
34
+ ...PRODUCT_NAMES.map((name) => [name, PRODUCT_OF[name]]),
35
+ ...RUNTIME_IDS.map((id) => [EXECUTABLES[id], id])
36
+ ]);
37
+ function runtimeIdOf(name) {
38
+ return ALIASES.get(name.trim().toLowerCase()) ?? null;
39
+ }
40
+ function productNameOf(id) {
41
+ return PRODUCT_NAMES.find((name) => PRODUCT_OF[name] === id) ?? null;
42
+ }
43
+
44
+ export {
45
+ RUNTIME_IDS,
46
+ PRODUCT_NAMES,
47
+ PRODUCT_OF,
48
+ EXECUTABLES,
49
+ runtimeIdOf,
50
+ productNameOf
51
+ };
52
+ //# sourceMappingURL=chunk-JOGLKWN7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EMBEDDING_OPTIONS
3
- } from "./chunk-7DJQASH3.js";
3
+ } from "./chunk-IH76KECZ.js";
4
4
  import {
5
5
  CATALOG_OPTIONS
6
6
  } from "./chunk-5NDUWEMW.js";
@@ -58,4 +58,4 @@ var serveSpec = {
58
58
  export {
59
59
  serveSpec
60
60
  };
61
- //# sourceMappingURL=chunk-VBVNOLRR.js.map
61
+ //# sourceMappingURL=chunk-K4ZG3BXL.js.map
@@ -4,7 +4,7 @@ import {
4
4
  MailboxStore,
5
5
  readCredential,
6
6
  writeBindingFile
7
- } from "./chunk-I4U2A6HP.js";
7
+ } from "./chunk-NQVAFHDK.js";
8
8
 
9
9
  // src/mailbox/attachment.ts
10
10
  async function attachMailbox(options) {
@@ -50,4 +50,4 @@ async function attachMailbox(options) {
50
50
  export {
51
51
  attachMailbox
52
52
  };
53
- //# sourceMappingURL=chunk-JZKAJUVT.js.map
53
+ //# sourceMappingURL=chunk-KESQUAKO.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runHeavy,
3
3
  userManager
4
- } from "./chunk-OIYZT4BG.js";
4
+ } from "./chunk-DGVXKZHP.js";
5
5
  import {
6
6
  MODEL_KEYS,
7
7
  RESULT,
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-Y6NFETNG.js";
19
19
  import {
20
20
  leaseSettingsFor
21
- } from "./chunk-QZY36KNT.js";
21
+ } from "./chunk-MIOKNRMY.js";
22
22
  import {
23
23
  ConfigError,
24
24
  findConfig
@@ -151,4 +151,4 @@ export {
151
151
  probeDir,
152
152
  underLease
153
153
  };
154
- //# sourceMappingURL=chunk-OS5CYV27.js.map
154
+ //# sourceMappingURL=chunk-KR3D7TQO.js.map