@modootoday/pmcp 0.19.8 → 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 (133) 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-6OEABVQT.js → apply-QJ6MGLBX.js} +17 -17
  6. package/dist/{attachment-D84OGI6n.d.ts → attachment-ms6s8Aow.d.ts} +1 -1
  7. package/dist/{available-GFMTJW4E.js → available-HYSDAFYH.js} +4 -4
  8. package/dist/{broadcast-56NPEJWM.js → broadcast-LYOA6BEW.js} +5 -5
  9. package/dist/{chunk-44YE6B63.js → chunk-4VK5G3SV.js} +3 -3
  10. package/dist/{chunk-7B2KRL2H.js → chunk-5JPD6VIH.js} +74 -7
  11. package/dist/{chunk-42RFOVU3.js → chunk-66F3HLW4.js} +17 -5
  12. package/dist/{chunk-CVZEVTTX.js → chunk-7SDOSTW7.js} +3 -3
  13. package/dist/{chunk-6U623E6Y.js → chunk-AWZF72SH.js} +6 -6
  14. package/dist/{chunk-J5ZS7GLA.js → chunk-C3G75JH7.js} +2 -2
  15. package/dist/{chunk-PTDMSVKS.js → chunk-CQZYQAAV.js} +3 -3
  16. package/dist/{chunk-SRX2ONSZ.js → chunk-EKPMVEIA.js} +2 -2
  17. package/dist/{chunk-GXACIGVS.js → chunk-FD6VGFYZ.js} +5 -5
  18. package/dist/chunk-FGYFA6JY.js +7 -0
  19. package/dist/{chunk-RXKX33WU.js → chunk-FQAJSNNU.js} +3 -3
  20. package/dist/{chunk-QPL7E2HW.js → chunk-GJXOFDJT.js} +9 -2
  21. package/dist/{chunk-JZK7ZO7K.js → chunk-I4U2A6HP.js} +2 -2
  22. package/dist/{chunk-UGODVKBJ.js → chunk-IQD4W53M.js} +2 -2
  23. package/dist/{chunk-TFZLX66B.js → chunk-IZABPDAO.js} +2 -2
  24. package/dist/{chunk-VHTRCE5G.js → chunk-J6HNP6HA.js} +3 -3
  25. package/dist/{chunk-QXDD75DY.js → chunk-JBHGJKSL.js} +3 -3
  26. package/dist/{chunk-NWOV2E26.js → chunk-JZKAJUVT.js} +2 -2
  27. package/dist/{chunk-VUSA7POL.js → chunk-K2C3KFGB.js} +9 -9
  28. package/dist/{chunk-TLIOBOZ2.js → chunk-L4MFGGSI.js} +2 -2
  29. package/dist/{chunk-XP2U3LO3.js → chunk-M2RYXWX2.js} +2 -2
  30. package/dist/{chunk-LJL4L73I.js → chunk-MZEMLFFD.js} +3 -3
  31. package/dist/{chunk-6QM5OWGZ.js → chunk-O2JWF7ZM.js} +2 -2
  32. package/dist/{chunk-SHZPE6FD.js → chunk-OAIQ7A3R.js} +5 -5
  33. package/dist/{chunk-3PW4FI7U.js → chunk-ONP6JRFZ.js} +2 -2
  34. package/dist/{chunk-HEBCQTOD.js → chunk-PEMMV5YQ.js} +2 -2
  35. package/dist/{chunk-DHAPQUEF.js → chunk-PQTM27GU.js} +32 -15
  36. package/dist/{chunk-7B6IC3F7.js → chunk-PUIWESU3.js} +3 -3
  37. package/dist/{chunk-P4424VLT.js → chunk-QDY6BWE6.js} +2 -2
  38. package/dist/{chunk-3CYQWRGM.js → chunk-QOFSPFJ6.js} +351 -86
  39. package/dist/{chunk-C4NHQGHL.js → chunk-QSIADSMQ.js} +13 -2
  40. package/dist/{chunk-E4FJOLPJ.js → chunk-QYH2NR6G.js} +3 -3
  41. package/dist/{chunk-XLXDXJY2.js → chunk-RBNMNKNN.js} +5 -5
  42. package/dist/{chunk-ZYSALKKW.js → chunk-RMHZFWHF.js} +21 -21
  43. package/dist/{chunk-7DLZC73N.js → chunk-RPCIROW7.js} +2 -2
  44. package/dist/{chunk-CTA7255D.js → chunk-YDICIB2A.js} +2 -2
  45. package/dist/{chunk-HEWZ6INU.js → chunk-YOWIYFIV.js} +27 -41
  46. package/dist/{claude-U2JC2DNQ.js → claude-GT2BPXEL.js} +3 -3
  47. package/dist/{cli-UFCFDIVI.js → cli-6HTAJ54L.js} +5 -5
  48. package/dist/{cli-BTPTJWCC.js → cli-IV5DJCXU.js} +8 -8
  49. package/dist/cli.js +3 -3
  50. package/dist/{completion-UI4IOYXY.js → completion-PPM7MEI2.js} +2 -2
  51. package/dist/{config-DnpLL2kT.d.ts → config-DzHB75Jz.d.ts} +2 -0
  52. package/dist/{diagnostics-QSQDE2KO.js → diagnostics-EWU2ROTG.js} +7 -7
  53. package/dist/{doctor-EOBNGAAB.js → doctor-ZWZQMDKZ.js} +20 -20
  54. package/dist/{entry-HBROO3YP.js → entry-NDICBQ2F.js} +12 -12
  55. package/dist/{exec-mcp-DZU2DEPD.js → exec-mcp-AG4G7SG7.js} +13 -13
  56. package/dist/{harness-H4OKGO6F.js → harness-JABSZCAA.js} +3 -3
  57. package/dist/harness-launch-gate.js +5 -5
  58. package/dist/harness-worker.js +7 -7
  59. package/dist/hook-body.js +361 -81
  60. package/dist/{hooks-T5JAK3VQ.js → hooks-YVQSDQV3.js} +3 -3
  61. package/dist/{host-5JOCZURV.js → host-2SZRMHZX.js} +8 -8
  62. package/dist/{host-IRPBT5AL.js → host-BWZ5LA4Q.js} +16 -16
  63. package/dist/{host-run-KPH5ZNYU.js → host-run-SXLV4LHI.js} +21 -13
  64. package/dist/http.d.ts +1 -1
  65. package/dist/http.js +1 -1
  66. package/dist/{import-mcp-24QRNZBJ.js → import-mcp-2M7SZRVQ.js} +11 -11
  67. package/dist/index.d.ts +6 -4
  68. package/dist/index.js +19 -19
  69. package/dist/{init-EPIJY23S.js → init-HOOIFBAD.js} +2 -2
  70. package/dist/{install-MQ7QSJQ7.js → install-HF6CROQP.js} +19 -9
  71. package/dist/{invoke-2SXY6G3P.js → invoke-JP4MILYY.js} +9 -9
  72. package/dist/{list-C3WEYY3N.js → list-UBSBUZKS.js} +13 -13
  73. package/dist/{list-FB6RNYYB.js → list-WK2IYUK7.js} +4 -4
  74. package/dist/{logout-J4SFSWMA.js → logout-OO3DERRK.js} +12 -12
  75. package/dist/{logs-H3RPKNTE.js → logs-K3QXKRD4.js} +6 -6
  76. package/dist/mailbox/index.d.ts +4 -4
  77. package/dist/mailbox/index.js +3 -3
  78. package/dist/{mailbox-UECKDZ3Q.js → mailbox-DAJV6VAI.js} +10 -10
  79. package/dist/{mailbox-5DWLH4W2.js → mailbox-YN6PG66A.js} +4 -4
  80. package/dist/{mainline-FPK4HWFF.js → mainline-6K5BA3WX.js} +55 -33
  81. package/dist/{mcp-W6OADCKB.js → mcp-JXNTKRJG.js} +2 -2
  82. package/dist/{pause-2HQ7CKMR.js → pause-GRVTSKOK.js} +5 -5
  83. package/dist/{project-TZAYGUHM.js → project-M672MKQH.js} +4 -4
  84. package/dist/{pty-XTJ4MIWK.js → pty-LHKJKY2E.js} +3 -3
  85. package/dist/{recovery-54KHNJX4.js → recovery-HB2YFQSQ.js} +3 -3
  86. package/dist/{reindex-ZULHSQWY.js → reindex-I7RYWCUR.js} +5 -5
  87. package/dist/{resume-ETFTR5V3.js → resume-6DMPGG3N.js} +5 -5
  88. package/dist/{run-QQB74HRI.js → run-5W566T3V.js} +14 -14
  89. package/dist/{run-XZ75CAFL.js → run-ORBIERI3.js} +4 -4
  90. package/dist/{serve-TILM4DH5.js → serve-73SRPAV4.js} +9 -9
  91. package/dist/{setup-63E3TVJK.js → setup-ULKDPF5B.js} +5 -6
  92. package/dist/{start-login-C2BWQNO5.js → start-login-BGFAMCZL.js} +12 -12
  93. package/dist/{status-3AU65SCN.js → status-73FEFQUQ.js} +12 -12
  94. package/dist/{status-JMXH6XG4.js → status-YCW6YJ3S.js} +23 -23
  95. package/dist/{status-CM753VKY.js → status-YHXEAJ7U.js} +8 -8
  96. package/dist/stdio.d.ts +2 -2
  97. package/dist/stdio.js +5 -5
  98. package/dist/{sweep-VY2TNOO5.js → sweep-XF2HG3EO.js} +5 -5
  99. package/dist/{test-MCM44GOL.js → test-IMNBXOYW.js} +15 -17
  100. package/dist/{tui-BL4OSDW4.js → tui-5GDA22TB.js} +6 -6
  101. package/dist/{unbroadcast-RKTBP57G.js → unbroadcast-XP3OCVN3.js} +5 -5
  102. package/dist/{validate-AVM2VHMM.js → validate-KFBCUFI4.js} +5 -5
  103. package/dist/{worker-GHQKC5XU.js → worker-RV6NGSXT.js} +10 -10
  104. package/dist/{worktree-list-NEIDD66X.js → worktree-list-4PLE7K6L.js} +4 -4
  105. package/docs/git-workflow.md +48 -12
  106. package/docs/hooks.md +23 -14
  107. package/docs/project-configuration.md +21 -12
  108. package/docs/upgrading.md +52 -0
  109. package/gemini-extension.json +2 -2
  110. package/mcp.json +1 -1
  111. package/package.json +5 -5
  112. package/plugin.json +1 -1
  113. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  114. package/plugins/pmcp/.mcp.json +1 -1
  115. package/plugins/pmcp/gemini-extension.json +2 -2
  116. package/plugins/pmcp/mcp.json +1 -1
  117. package/plugins/pmcp/mod/draw.tsx +9 -2
  118. package/plugins/pmcp/mod/guard.ts +3 -3
  119. package/plugins/pmcp/mod/model.ts +15 -4
  120. package/plugins/pmcp/mod/reader/read.ts +33 -8
  121. package/plugins/pmcp/mod/reader/settings.ts +7 -0
  122. package/plugins/pmcp/mod/reader/types.ts +2 -0
  123. package/plugins/pmcp/mod/sessions/format.ts +25 -2
  124. package/plugins/pmcp/mod/sessions/types.ts +1 -1
  125. package/plugins/pmcp/plugin.json +1 -1
  126. package/schema/catalog-v1.json +4 -15
  127. package/schema/library.json +3 -8
  128. package/schema/marketplace-manifest.json +2 -6
  129. package/schema/skill-frontmatter.json +3 -8
  130. package/schema/skill-metadata-core.json +3 -8
  131. package/dist/chunk-DXJZ2ZCX.js +0 -56
  132. package/dist/chunk-QHH3TXOA.js +0 -7
  133. package/dist/{core-C1LPjxK6.d.ts → core-Sug_rZrx.d.ts} +1 -1
@@ -612,7 +612,7 @@
612
612
  },
613
613
  {
614
614
  "name": "pmcp",
615
- "version": "0.19.8",
615
+ "version": "0.20.0",
616
616
  "description": "Find package skills and use native runtime project configuration.",
617
617
  "source": { "source": "local", "path": "./plugins/pmcp" },
618
618
  "policy": { "installation": "AVAILABLE", "authentication": "ON_USE" },
@@ -445,7 +445,7 @@
445
445
  },
446
446
  {
447
447
  "name": "pmcp",
448
- "version": "0.19.8",
448
+ "version": "0.20.0",
449
449
  "description": "Find package skills and use native runtime project configuration.",
450
450
  "source": "./plugins/pmcp"
451
451
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.19.8",
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",
package/.mcp.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "pmcp": {
4
4
  "type": "stdio",
5
5
  "command": "npx",
6
- "args": ["-y", "@modootoday/pmcp@0.19.8", "serve"]
6
+ "args": ["-y", "@modootoday/pmcp@0.20.0", "serve"]
7
7
  }
8
8
  }
9
9
  }
@@ -1,26 +1,24 @@
1
1
  import {
2
2
  catalogFrom
3
- } from "./chunk-HEBCQTOD.js";
3
+ } from "./chunk-PEMMV5YQ.js";
4
4
  import {
5
5
  specFrom
6
- } from "./chunk-QXDD75DY.js";
7
- import "./chunk-7DLZC73N.js";
6
+ } from "./chunk-JBHGJKSL.js";
7
+ import "./chunk-RPCIROW7.js";
8
8
  import {
9
9
  project
10
- } from "./chunk-GXACIGVS.js";
10
+ } from "./chunk-FD6VGFYZ.js";
11
11
  import "./chunk-P4N7DBD5.js";
12
12
  import {
13
13
  renderFrontmatter,
14
14
  splitFrontmatter
15
- } from "./chunk-6U623E6Y.js";
16
- import "./chunk-P4424VLT.js";
15
+ } from "./chunk-AWZF72SH.js";
16
+ import "./chunk-QDY6BWE6.js";
17
17
  import "./chunk-73AKO4UL.js";
18
18
  import {
19
19
  RUNTIMES
20
- } from "./chunk-3CYQWRGM.js";
20
+ } from "./chunk-QOFSPFJ6.js";
21
21
  import "./chunk-HQOB7OQS.js";
22
- import "./chunk-7B2KRL2H.js";
23
- import "./chunk-2Q6MNGU5.js";
24
22
  import "./chunk-ICF2JZSN.js";
25
23
  import "./chunk-UD3BEEBQ.js";
26
24
  import "./chunk-ISNRDHSD.js";
@@ -28,10 +26,12 @@ import "./chunk-EATCUWGG.js";
28
26
  import {
29
27
  ProjectError
30
28
  } from "./chunk-NRBQK6UX.js";
31
- import "./chunk-3PW4FI7U.js";
32
- import "./chunk-DHAPQUEF.js";
33
- import "./chunk-C4NHQGHL.js";
29
+ import "./chunk-ONP6JRFZ.js";
34
30
  import "./chunk-P6LNYYYH.js";
31
+ import "./chunk-5JPD6VIH.js";
32
+ import "./chunk-2Q6MNGU5.js";
33
+ import "./chunk-PQTM27GU.js";
34
+ import "./chunk-QSIADSMQ.js";
35
35
  import "./chunk-G7JONWL4.js";
36
36
  import "./chunk-Q5H3L6Y4.js";
37
37
  import "./chunk-JEL35P7S.js";
@@ -41,14 +41,14 @@ import {
41
41
  kindOf
42
42
  } from "./chunk-4CRRLDDS.js";
43
43
  import "./chunk-YSAWTGNA.js";
44
- import "./chunk-CVZEVTTX.js";
44
+ import "./chunk-7SDOSTW7.js";
45
45
  import {
46
46
  recordProjector
47
- } from "./chunk-42RFOVU3.js";
47
+ } from "./chunk-66F3HLW4.js";
48
48
  import "./chunk-OEH47H6A.js";
49
49
  import "./chunk-IJBSOWHK.js";
50
- import "./chunk-QHH3TXOA.js";
51
- import "./chunk-QPL7E2HW.js";
50
+ import "./chunk-FGYFA6JY.js";
51
+ import "./chunk-GJXOFDJT.js";
52
52
  import "./chunk-PMJG2CXF.js";
53
53
  import "./chunk-J6KL3COD.js";
54
54
 
@@ -240,4 +240,4 @@ export {
240
240
  projectOrCheck,
241
241
  removeAndProject
242
242
  };
243
- //# sourceMappingURL=apply-6OEABVQT.js.map
243
+ //# sourceMappingURL=apply-QJ6MGLBX.js.map
@@ -1,4 +1,4 @@
1
- import { a as MailboxConfig, M as MailboxService } from './core-C1LPjxK6.js';
1
+ import { a as MailboxConfig, M as MailboxService } from './core-Sug_rZrx.js';
2
2
 
3
3
  interface MailboxAttachmentOptions {
4
4
  readonly config: MailboxConfig;
@@ -1,6 +1,3 @@
1
- import {
2
- sayStanding
3
- } from "./chunk-4NDEP7HU.js";
4
1
  import {
5
2
  matchingSkills,
6
3
  readInstalledDependencies
@@ -8,6 +5,9 @@ import {
8
5
  import {
9
6
  invocation
10
7
  } from "./chunk-J7UYNJCR.js";
8
+ import {
9
+ sayStanding
10
+ } from "./chunk-4NDEP7HU.js";
11
11
  import {
12
12
  projectFrom,
13
13
  remoteCatalog
@@ -70,4 +70,4 @@ var availableCommand = {
70
70
  export {
71
71
  availableCommand
72
72
  };
73
- //# sourceMappingURL=available-GFMTJW4E.js.map
73
+ //# sourceMappingURL=available-HYSDAFYH.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  change
3
- } from "./chunk-E4FJOLPJ.js";
4
- import "./chunk-DHAPQUEF.js";
5
- import "./chunk-C4NHQGHL.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";
9
- import "./chunk-QPL7E2HW.js";
9
+ import "./chunk-GJXOFDJT.js";
10
10
  import "./chunk-PMJG2CXF.js";
11
11
 
12
12
  // src/sessions/cli/broadcast.ts
@@ -14,4 +14,4 @@ var run = (context) => change(context, "broadcast");
14
14
  export {
15
15
  run
16
16
  };
17
- //# sourceMappingURL=broadcast-56NPEJWM.js.map
17
+ //# sourceMappingURL=broadcast-LYOA6BEW.js.map
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-CVZEVTTX.js";
9
+ } from "./chunk-7SDOSTW7.js";
10
10
  import {
11
11
  nativeBinary
12
- } from "./chunk-42RFOVU3.js";
12
+ } from "./chunk-66F3HLW4.js";
13
13
 
14
14
  // src/tui/rust.ts
15
15
  import { spawn } from "child_process";
@@ -64,4 +64,4 @@ export {
64
64
  runTui,
65
65
  dependencies
66
66
  };
67
- //# sourceMappingURL=chunk-44YE6B63.js.map
67
+ //# sourceMappingURL=chunk-4VK5G3SV.js.map
@@ -1,9 +1,22 @@
1
1
  import {
2
- expandPath
2
+ detect
3
+ } from "./chunk-2Q6MNGU5.js";
4
+ import {
5
+ readStoreSettings,
6
+ resolveLeaseFiles
7
+ } from "./chunk-PQTM27GU.js";
8
+ import {
9
+ expandPath,
10
+ projectStateDir
3
11
  } from "./chunk-OEH47H6A.js";
4
12
  import {
5
- ConfigError
6
- } from "./chunk-QPL7E2HW.js";
13
+ ConfigError,
14
+ findConfig,
15
+ readConfig
16
+ } from "./chunk-GJXOFDJT.js";
17
+
18
+ // src/git/setup.ts
19
+ import { dirname, join, resolve } from "path";
7
20
 
8
21
  // src/git/config/reader.ts
9
22
  var Reader = class {
@@ -72,6 +85,17 @@ var Reader = class {
72
85
  if (value.length === 0) return void 0;
73
86
  return value;
74
87
  }
88
+ // A table of environment variable names to string values.
89
+ envMap(key) {
90
+ const value = this.table[key] ?? {};
91
+ if (value === null || typeof value !== "object" || Array.isArray(value))
92
+ this.fail(key, "a table of variable names to strings");
93
+ for (const [name, text] of Object.entries(value)) {
94
+ if (!/^[A-Z_][A-Z0-9_]{0,127}$/u.test(name) || typeof text !== "string")
95
+ this.fail(key, "a table of variable names (A-Z, 0-9, _) to strings");
96
+ }
97
+ return value;
98
+ }
75
99
  };
76
100
  function table(path, name, value) {
77
101
  if (value === void 0) return void 0;
@@ -162,14 +186,18 @@ function deliver(path, source) {
162
186
  "refuse_direct_push",
163
187
  "during_pause",
164
188
  "lease_wait_seconds",
165
- "notify"
189
+ "notify",
190
+ "gate",
191
+ "push_env"
166
192
  ]);
167
193
  return {
168
194
  attempts: read.int("attempts", 3),
169
195
  refuseDirectPush: read.bool("refuse_direct_push", true),
170
196
  duringPause: read.oneOf("during_pause", ["refuse", "allow"], "refuse"),
171
197
  leaseWaitSeconds: read.int("lease_wait_seconds", 3600),
172
- notify: read.argv("notify")
198
+ notify: read.argv("notify"),
199
+ gate: read.oneOf("gate", ["command", "pre-push"], "command"),
200
+ pushEnv: read.envMap("push_env")
173
201
  };
174
202
  }
175
203
  function mainlineSync(path, source) {
@@ -279,6 +307,11 @@ function readGitConfig(config) {
279
307
  const mainSyncTable = child(path, mainline, "git.mainline", "sync");
280
308
  const submoduleTable = child(path, root, "git", "submodules");
281
309
  const stateDir = sessions?.["state_dir"];
310
+ if (deliverTable?.["gate"] === "pre-push" && gateTable?.["command"] !== void 0)
311
+ throw new ConfigError(
312
+ path,
313
+ '[git.mainline.deliver] gate = "pre-push" leaves gating to the pre-push hook; remove [git.mainline.gate] command'
314
+ );
282
315
  return {
283
316
  enabled: on,
284
317
  remote: read.string("remote"),
@@ -295,7 +328,41 @@ function readGitConfig(config) {
295
328
  };
296
329
  }
297
330
 
331
+ // src/git/setup.ts
332
+ function loadGit(cwd, configPath, env) {
333
+ const path = configPath === void 0 ? findConfig(cwd) : resolve(cwd, configPath);
334
+ if (path === null)
335
+ return new Error("no pmcp.toml found; the git workflow is opt-in");
336
+ const project = readConfig(path);
337
+ const config = readGitConfig(project);
338
+ if (config === null)
339
+ return new Error(`[git] is absent or disabled in ${path}`);
340
+ const ctx = detect(cwd, { remote: config.remote, mainline: config.mainline });
341
+ if (ctx === null) return new Error(`${cwd} is not inside a git checkout`);
342
+ const stateDir = projectStateDir(ctx.root, config.stateDir, env);
343
+ const override = config.gate?.treeEnv ? env[config.gate.treeEnv] : void 0;
344
+ const tree = override || (config.gate?.tree ?? join(stateDir, "gate", "tree"));
345
+ const settings = readStoreSettings(
346
+ project.raw["sessions"],
347
+ project.raw["git"]
348
+ );
349
+ const leaseFiles = resolveLeaseFiles(settings.leaseFiles, dirname(tree));
350
+ return { config, ctx, stateDir, gateTree: tree, leaseFiles };
351
+ }
352
+ function gateTreePath(setup) {
353
+ return setup.gateTree;
354
+ }
355
+ function leaseSpecs(config) {
356
+ if (config.leases.length > 0) return config.leases;
357
+ const paths = config.sync?.installWhenChanged ?? [];
358
+ if (paths.length === 0) return [];
359
+ return [{ name: "lockfile", paths }];
360
+ }
361
+
298
362
  export {
299
- readGitConfig
363
+ readGitConfig,
364
+ loadGit,
365
+ gateTreePath,
366
+ leaseSpecs
300
367
  };
301
- //# sourceMappingURL=chunk-7B2KRL2H.js.map
368
+ //# sourceMappingURL=chunk-5JPD6VIH.js.map
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-OEH47H6A.js";
4
4
  import {
5
5
  VERSION
6
- } from "./chunk-QHH3TXOA.js";
6
+ } from "./chunk-FGYFA6JY.js";
7
7
  import {
8
8
  ConfigError
9
- } from "./chunk-QPL7E2HW.js";
9
+ } from "./chunk-GJXOFDJT.js";
10
10
  import {
11
11
  envNames
12
12
  } from "./chunk-J6KL3COD.js";
@@ -407,8 +407,12 @@ function readHost(path, raw) {
407
407
  "mcp_write",
408
408
  "roots",
409
409
  "browser",
410
- "desktop"
410
+ "desktop",
411
+ "memory_max"
411
412
  ]);
413
+ const memoryMax = root["memory_max"];
414
+ if (memoryMax !== void 0 && (typeof memoryMax !== "string" || !/^[1-9]\d*[KMGT]$/u.test(memoryMax)))
415
+ fail2(path, '[host] memory_max must be a size such as "4G" or "512M"');
412
416
  const roots = root["roots"] === void 0 ? ["."] : texts(path, "[host] roots", root["roots"]).map(
413
417
  (r, i) => relative(path, `[host] roots[${i}]`, r)
414
418
  );
@@ -432,7 +436,15 @@ function readHost(path, raw) {
432
436
  const answers = list("answers").map((a, i) => answer(path, i, a));
433
437
  const browser = readHostBrowser(path, root["browser"]);
434
438
  const desktop = readHostDesktop(path, root["desktop"]);
435
- return { sessions, answers, mcpWrite, roots, browser, desktop };
439
+ return {
440
+ sessions,
441
+ answers,
442
+ mcpWrite,
443
+ roots,
444
+ browser,
445
+ desktop,
446
+ ...memoryMax !== void 0 ? { memoryMax } : {}
447
+ };
436
448
  }
437
449
 
438
450
  export {
@@ -448,4 +460,4 @@ export {
448
460
  writeLock,
449
461
  readHost
450
462
  };
451
- //# sourceMappingURL=chunk-42RFOVU3.js.map
463
+ //# sourceMappingURL=chunk-66F3HLW4.js.map
@@ -2,10 +2,10 @@ import {
2
2
  missingBinary,
3
3
  nativeBinary,
4
4
  readLock
5
- } from "./chunk-42RFOVU3.js";
5
+ } from "./chunk-66F3HLW4.js";
6
6
  import {
7
7
  VERSION
8
- } from "./chunk-QHH3TXOA.js";
8
+ } from "./chunk-FGYFA6JY.js";
9
9
  import {
10
10
  pickEnv
11
11
  } from "./chunk-J6KL3COD.js";
@@ -127,4 +127,4 @@ export {
127
127
  hostEnvDoctor,
128
128
  hostDoctor
129
129
  };
130
- //# sourceMappingURL=chunk-CVZEVTTX.js.map
130
+ //# sourceMappingURL=chunk-7SDOSTW7.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OPENCODE_CONFIG,
3
3
  mcpOutputs
4
- } from "./chunk-P4424VLT.js";
4
+ } from "./chunk-QDY6BWE6.js";
5
5
  import {
6
6
  publicMarketplaceRoot
7
7
  } from "./chunk-73AKO4UL.js";
@@ -28,7 +28,7 @@ import {
28
28
  splitKeyed,
29
29
  uiClaudeOutputs,
30
30
  withoutBlock
31
- } from "./chunk-3CYQWRGM.js";
31
+ } from "./chunk-QOFSPFJ6.js";
32
32
  import {
33
33
  ProjectError,
34
34
  RULES_DIR,
@@ -37,12 +37,12 @@ import {
37
37
  } from "./chunk-NRBQK6UX.js";
38
38
  import {
39
39
  hostOutputs
40
- } from "./chunk-CVZEVTTX.js";
40
+ } from "./chunk-7SDOSTW7.js";
41
41
  import {
42
42
  lockVersionProblem,
43
43
  readLock,
44
44
  replaceFile
45
- } from "./chunk-42RFOVU3.js";
45
+ } from "./chunk-66F3HLW4.js";
46
46
  import {
47
47
  CODEX_PLUGIN_LIST,
48
48
  claudeSettings,
@@ -50,7 +50,7 @@ import {
50
50
  codexMarketplaceChecks,
51
51
  forRuntime,
52
52
  parseCodexPluginList
53
- } from "./chunk-QPL7E2HW.js";
53
+ } from "./chunk-GJXOFDJT.js";
54
54
 
55
55
  // src/project/plan.ts
56
56
  import { existsSync as existsSync4, readFileSync as readFileSync6, readdirSync } from "fs";
@@ -1022,4 +1022,4 @@ export {
1022
1022
  prepare,
1023
1023
  checkProject
1024
1024
  };
1025
- //# sourceMappingURL=chunk-6U623E6Y.js.map
1025
+ //# sourceMappingURL=chunk-AWZF72SH.js.map
@@ -5,7 +5,7 @@ import {
5
5
  ConfigError,
6
6
  findConfig,
7
7
  readConfig
8
- } from "./chunk-QPL7E2HW.js";
8
+ } from "./chunk-GJXOFDJT.js";
9
9
  import {
10
10
  privateJson,
11
11
  readPrivateJson
@@ -137,4 +137,4 @@ export {
137
137
  readStartup,
138
138
  saveStartup
139
139
  };
140
- //# sourceMappingURL=chunk-J5ZS7GLA.js.map
140
+ //# sourceMappingURL=chunk-C3G75JH7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertNativeHost
3
- } from "./chunk-TLIOBOZ2.js";
3
+ } from "./chunk-L4MFGGSI.js";
4
4
  import {
5
5
  locateExecutable
6
6
  } from "./chunk-R2GPCZUX.js";
@@ -33,7 +33,7 @@ import {
33
33
  resourceClaim,
34
34
  resourceRunning,
35
35
  runtimeUnit
36
- } from "./chunk-CTA7255D.js";
36
+ } from "./chunk-YDICIB2A.js";
37
37
  import {
38
38
  command
39
39
  } from "./chunk-34DECPVC.js";
@@ -1981,4 +1981,4 @@ export {
1981
1981
  isReadOnly,
1982
1982
  runOperation
1983
1983
  };
1984
- //# sourceMappingURL=chunk-PTDMSVKS.js.map
1984
+ //# sourceMappingURL=chunk-CQZYQAAV.js.map
@@ -5,7 +5,7 @@ import {
5
5
  POLICIES,
6
6
  RUNTIMES,
7
7
  customPolicy
8
- } from "./chunk-3CYQWRGM.js";
8
+ } from "./chunk-QOFSPFJ6.js";
9
9
 
10
10
  // src/hooks/inspection/list.ts
11
11
  function policyRows(compiled) {
@@ -39,4 +39,4 @@ function policyRows(compiled) {
39
39
  export {
40
40
  policyRows
41
41
  };
42
- //# sourceMappingURL=chunk-SRX2ONSZ.js.map
42
+ //# sourceMappingURL=chunk-EKPMVEIA.js.map
@@ -8,10 +8,10 @@ import {
8
8
  prepare,
9
9
  present,
10
10
  writeNative
11
- } from "./chunk-6U623E6Y.js";
11
+ } from "./chunk-AWZF72SH.js";
12
12
  import {
13
13
  ANTIGRAVITY_MCP_PLUGIN
14
- } from "./chunk-P4424VLT.js";
14
+ } from "./chunk-QDY6BWE6.js";
15
15
  import {
16
16
  changedSincePlan,
17
17
  exists,
@@ -22,7 +22,7 @@ import {
22
22
  same,
23
23
  splitKeyed,
24
24
  withoutBlock
25
- } from "./chunk-3CYQWRGM.js";
25
+ } from "./chunk-QOFSPFJ6.js";
26
26
  import {
27
27
  RULES_DIR,
28
28
  legacyLinks
@@ -32,7 +32,7 @@ import {
32
32
  replaceFile,
33
33
  replaceLink,
34
34
  writeLock
35
- } from "./chunk-42RFOVU3.js";
35
+ } from "./chunk-66F3HLW4.js";
36
36
 
37
37
  // src/project/apply/files.ts
38
38
  import { mkdirSync } from "fs";
@@ -208,4 +208,4 @@ function project(spec, options) {
208
208
  export {
209
209
  project
210
210
  };
211
- //# sourceMappingURL=chunk-GXACIGVS.js.map
211
+ //# sourceMappingURL=chunk-FD6VGFYZ.js.map
@@ -0,0 +1,7 @@
1
+ // src/commands/version.ts
2
+ var VERSION = "0.20.0";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-FGYFA6JY.js.map
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-5ZABTVSW.js";
4
4
  import {
5
5
  dependencies
6
- } from "./chunk-44YE6B63.js";
6
+ } from "./chunk-4VK5G3SV.js";
7
7
  import {
8
8
  interactiveEntry
9
9
  } from "./chunk-LMT3PPXJ.js";
10
10
  import {
11
11
  assertNativeHost
12
- } from "./chunk-TLIOBOZ2.js";
12
+ } from "./chunk-L4MFGGSI.js";
13
13
 
14
14
  // src/tui/startup/host.ts
15
15
  function terminalSupport() {
@@ -42,4 +42,4 @@ export {
42
42
  terminalSupport,
43
43
  requireTerminal
44
44
  };
45
- //# sourceMappingURL=chunk-RXKX33WU.js.map
45
+ //# sourceMappingURL=chunk-FQAJSNNU.js.map
@@ -266,7 +266,8 @@ import { resolve as resolve2 } from "path";
266
266
  var PROFILES = ["catalog-v1", "library"];
267
267
 
268
268
  // src/validate/settings.ts
269
- var KEYS2 = ["profile", "deny_list"];
269
+ var KEYS2 = ["profile", "deny_list", "tiers"];
270
+ var KEBAB = /^[a-z0-9]+(-[a-z0-9]+)*$/u;
270
271
  function readValidation(raw, dir, fail) {
271
272
  if (raw === null || typeof raw !== "object" || Array.isArray(raw))
272
273
  fail("[catalog.validation] must be a table");
@@ -280,7 +281,13 @@ function readValidation(raw, dir, fail) {
280
281
  fail(`[catalog.validation] profile must be ${PROFILES.join(" or ")}`);
281
282
  if (denyList !== void 0 && (typeof denyList !== "string" || !denyList))
282
283
  fail("[catalog.validation] deny_list must be a path");
284
+ const tiers = table2["tiers"];
285
+ if (tiers !== void 0 && (!Array.isArray(tiers) || tiers.length === 0 || !tiers.every((name) => typeof name === "string" && KEBAB.test(name)) || new Set(tiers).size !== tiers.length))
286
+ fail(
287
+ "[catalog.validation] tiers must be a list of distinct kebab-case names"
288
+ );
283
289
  return {
290
+ ...tiers === void 0 ? {} : { tiers },
284
291
  ...profile === void 0 ? {} : { profile },
285
292
  ...denyList === void 0 ? {} : { denyList: resolve2(dir, denyList) }
286
293
  };
@@ -461,4 +468,4 @@ export {
461
468
  findConfig,
462
469
  readConfig
463
470
  };
464
- //# sourceMappingURL=chunk-QPL7E2HW.js.map
471
+ //# sourceMappingURL=chunk-GJXOFDJT.js.map
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-6STKGOCW.js";
16
16
  import {
17
17
  readConfig
18
- } from "./chunk-QPL7E2HW.js";
18
+ } from "./chunk-GJXOFDJT.js";
19
19
 
20
20
  // src/mailbox/types.ts
21
21
  var MailboxError = class extends Error {
@@ -1210,4 +1210,4 @@ export {
1210
1210
  restoreBackup,
1211
1211
  MailboxService
1212
1212
  };
1213
- //# sourceMappingURL=chunk-JZK7ZO7K.js.map
1213
+ //# sourceMappingURL=chunk-I4U2A6HP.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-HQOB7OQS.js";
6
6
  import {
7
7
  readStoreSettings
8
- } from "./chunk-DHAPQUEF.js";
8
+ } from "./chunk-PQTM27GU.js";
9
9
  import {
10
10
  expandPath,
11
11
  projectStateDir
@@ -152,4 +152,4 @@ export {
152
152
  tail,
153
153
  logLocation
154
154
  };
155
- //# sourceMappingURL=chunk-UGODVKBJ.js.map
155
+ //# sourceMappingURL=chunk-IQD4W53M.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOST_MANIFEST,
3
3
  HOST_POLICY
4
- } from "./chunk-CVZEVTTX.js";
4
+ } from "./chunk-7SDOSTW7.js";
5
5
  import {
6
6
  projectStateDir
7
7
  } from "./chunk-OEH47H6A.js";
@@ -99,4 +99,4 @@ export {
99
99
  hostApprovalDoctor,
100
100
  writeApproval
101
101
  };
102
- //# sourceMappingURL=chunk-TFZLX66B.js.map
102
+ //# sourceMappingURL=chunk-IZABPDAO.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFrom
3
- } from "./chunk-7DLZC73N.js";
3
+ } from "./chunk-RPCIROW7.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-3CYQWRGM.js";
6
+ } from "./chunk-QOFSPFJ6.js";
7
7
  import {
8
8
  ArgumentError
9
9
  } from "./chunk-A4PKLESO.js";
@@ -25,4 +25,4 @@ function serverFrom(context) {
25
25
  export {
26
26
  serverFrom
27
27
  };
28
- //# sourceMappingURL=chunk-VHTRCE5G.js.map
28
+ //# sourceMappingURL=chunk-J6HNP6HA.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFrom
3
- } from "./chunk-7DLZC73N.js";
3
+ } from "./chunk-RPCIROW7.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-3CYQWRGM.js";
6
+ } from "./chunk-QOFSPFJ6.js";
7
7
  import {
8
8
  ArgumentError
9
9
  } from "./chunk-A4PKLESO.js";
@@ -28,4 +28,4 @@ function specFrom(context) {
28
28
  export {
29
29
  specFrom
30
30
  };
31
- //# sourceMappingURL=chunk-QXDD75DY.js.map
31
+ //# sourceMappingURL=chunk-JBHGJKSL.js.map
@@ -4,7 +4,7 @@ import {
4
4
  MailboxStore,
5
5
  readCredential,
6
6
  writeBindingFile
7
- } from "./chunk-JZK7ZO7K.js";
7
+ } from "./chunk-I4U2A6HP.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-NWOV2E26.js.map
53
+ //# sourceMappingURL=chunk-JZKAJUVT.js.map