@modootoday/pmcp 0.22.12 → 0.22.13

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 (121) 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-ZWO2F5EM.js +836 -0
  6. package/dist/{apply-LPKZZ6EL.js → apply-OIKQ5SIY.js} +19 -15
  7. package/dist/{available-BFXLII4A.js → available-Z5MIDFPH.js} +3 -3
  8. package/dist/{broadcast-DZGMSZRG.js → broadcast-BF2QL3O7.js} +6 -5
  9. package/dist/{chunk-DYZVHO2L.js → chunk-24L4MO7H.js} +2 -2
  10. package/dist/{chunk-7I7O7ZNT.js → chunk-3V37OZQH.js} +5 -3
  11. package/dist/{chunk-PEMMV5YQ.js → chunk-4O4ZOSBQ.js} +3 -3
  12. package/dist/{chunk-FODUHLZM.js → chunk-5IZFEVPW.js} +2 -2
  13. package/dist/{chunk-D5MIZM6L.js → chunk-5KWDQFVY.js} +4 -4
  14. package/dist/{chunk-R5MT42JS.js → chunk-5OFQVW2K.js} +2 -2
  15. package/dist/{chunk-OAX6MIOZ.js → chunk-5PNS6V5C.js} +2 -2
  16. package/dist/chunk-65BW7Y6O.js +40 -0
  17. package/dist/{chunk-SPZQRLL5.js → chunk-733WVP2R.js} +18 -6
  18. package/dist/{chunk-HUBJWC7T.js → chunk-737BENAU.js} +7 -7
  19. package/dist/{chunk-GFOQDLPL.js → chunk-74O7KZUH.js} +13 -3
  20. package/dist/{chunk-2OOWAGBE.js → chunk-7ZOQELXR.js} +3 -3
  21. package/dist/{chunk-ITOTOC6Y.js → chunk-A6DARDQ4.js} +3 -3
  22. package/dist/{chunk-PUIWESU3.js → chunk-A7XCUR2C.js} +4 -4
  23. package/dist/chunk-BN4XAXMQ.js +65 -0
  24. package/dist/chunk-FOLA4EUJ.js +261 -0
  25. package/dist/chunk-FQLCD4HU.js +24 -0
  26. package/dist/chunk-G4ATQPQI.js +35 -0
  27. package/dist/{chunk-DP326AER.js → chunk-GNVME5AD.js} +2 -2
  28. package/dist/{chunk-OEH47H6A.js → chunk-GUHOEIHP.js} +3 -20
  29. package/dist/{chunk-UMQLIRSU.js → chunk-ISGBOJT7.js} +3 -3
  30. package/dist/{chunk-RPCIROW7.js → chunk-J3QUG6O5.js} +2 -2
  31. package/dist/{chunk-B2WRYGHJ.js → chunk-JW5NMQTU.js} +3 -3
  32. package/dist/{chunk-63RZGEVI.js → chunk-K2VU3B4W.js} +98 -26
  33. package/dist/{chunk-5QKXEWDB.js → chunk-MHKY6TNF.js} +6 -4
  34. package/dist/chunk-N7ANFMA5.js +171 -0
  35. package/dist/{chunk-EX4YXPVW.js → chunk-NNGGNXF2.js} +2 -2
  36. package/dist/{chunk-7CSUKCU7.js → chunk-P5D6RKMT.js} +13 -94
  37. package/dist/{chunk-SMZPYJQI.js → chunk-QBSJL3SP.js} +42 -31
  38. package/dist/chunk-SGFTHKKS.js +86 -0
  39. package/dist/{chunk-N63QCJHX.js → chunk-T4GVN7XO.js} +5 -5
  40. package/dist/chunk-T6C3TSTO.js +99 -0
  41. package/dist/{chunk-UDVYVRGJ.js → chunk-UED3RH53.js} +2 -2
  42. package/dist/{chunk-SUJCVEBM.js → chunk-VNZTULFD.js} +3 -3
  43. package/dist/chunk-VSTUKACC.js +7 -0
  44. package/dist/{chunk-A4PKLESO.js → chunk-WFY7ATSZ.js} +8 -4
  45. package/dist/{chunk-KPKMEUUH.js → chunk-XSWF7APE.js} +3 -3
  46. package/dist/{chunk-MIFPPUWY.js → chunk-ZKB7ZNKY.js} +4 -4
  47. package/dist/{chunk-2GRECE6B.js → chunk-ZS5IDQFJ.js} +4 -4
  48. package/dist/{cli-JXPJFHUA.js → cli-FSSYFCV3.js} +15 -9
  49. package/dist/{cli-34EDFXJA.js → cli-IHVNE3WL.js} +9 -9
  50. package/dist/cli.js +19 -13
  51. package/dist/{completion-KTECNPVY.js → completion-ZTTJVV4C.js} +8 -6
  52. package/dist/{diagnostics-I5VZHK42.js → diagnostics-XC5L6Z3E.js} +10 -6
  53. package/dist/{doctor-JJ2VUNHT.js → doctor-FGDSUBR3.js} +19 -15
  54. package/dist/{entry-OT7BN3ID.js → entry-NNB2CQLZ.js} +19 -15
  55. package/dist/{exec-mcp-3E4SRJUY.js → exec-mcp-ZU3Z3XT6.js} +15 -11
  56. package/dist/{harness-Q236VJSU.js → harness-B7ANLH5M.js} +5 -5
  57. package/dist/harness-launch-gate.js +8 -4
  58. package/dist/harness-worker.js +10 -6
  59. package/dist/heavy-IIZBO4YM.js +1909 -0
  60. package/dist/hook-body.js +69 -21
  61. package/dist/{hooks-PABOEQO6.js → hooks-IEJTW7BV.js} +5 -5
  62. package/dist/{host-UDC4HVX3.js → host-5P4D7GSE.js} +17 -13
  63. package/dist/{host-LT5JMUFJ.js → host-XXWQ23LD.js} +11 -7
  64. package/dist/{host-run-LD63JGN7.js → host-run-AEWHFVQL.js} +10 -6
  65. package/dist/http.js +1 -1
  66. package/dist/{import-mcp-URVONIZ3.js → import-mcp-BQM5DKYH.js} +14 -10
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +16 -12
  69. package/dist/{init-4O24ZNUQ.js → init-L6GUO3PW.js} +2 -2
  70. package/dist/{install-7V6NIA7W.js → install-OFVLR7TI.js} +3 -3
  71. package/dist/{invoke-JW5OC2HO.js → invoke-3BQ5NG3P.js} +12 -8
  72. package/dist/{list-UM4DYJRL.js → list-EU4MJOXA.js} +16 -12
  73. package/dist/{list-WK2IYUK7.js → list-WWYCGD3X.js} +4 -4
  74. package/dist/{logout-H5X4D26I.js → logout-6DFDYJUI.js} +15 -11
  75. package/dist/{logs-UHJM7ZCL.js → logs-BRF6DBKG.js} +7 -6
  76. package/dist/{mailbox-YN6PG66A.js → mailbox-AQCTXO3H.js} +3 -3
  77. package/dist/{mailbox-NIMBOQPA.js → mailbox-QYA2LQSE.js} +9 -41
  78. package/dist/{mainline-74WCH4T4.js → mainline-O5AEHG3J.js} +69 -121
  79. package/dist/{marketplace-G4VQET5W.js → marketplace-TI5HFAHB.js} +2 -2
  80. package/dist/{mcp-AXHV547W.js → mcp-4R53HSGY.js} +2 -2
  81. package/dist/{mcp-6P3MVT4V.js → mcp-HR5JFUW7.js} +2 -2
  82. package/dist/{models-ISU4DCMA.js → models-63NQBSV3.js} +2 -2
  83. package/dist/{pause-CBZ3BTJL.js → pause-UF7FQDJX.js} +6 -5
  84. package/dist/{preview-DT7DWG5F.js → preview-WSESS2UN.js} +3 -3
  85. package/dist/{project-6QUIC73W.js → project-JXXL24WN.js} +5 -5
  86. package/dist/{reindex-I7RYWCUR.js → reindex-3GPKAFBW.js} +5 -5
  87. package/dist/{report-ZHOHQ4PZ.js → report-JUSKQPAC.js} +7 -6
  88. package/dist/{resume-UJEWQ66P.js → resume-3WAROOQ3.js} +6 -5
  89. package/dist/{run-GZK3XJ62.js → run-VUUQS4WY.js} +5 -5
  90. package/dist/{run-HQTB7N2R.js → run-XRWU4L73.js} +13 -9
  91. package/dist/{serve-APEVIJD2.js → serve-OEX5V5CD.js} +7 -7
  92. package/dist/{setup-SOUBEZ3H.js → setup-SWNAC2C7.js} +6 -4
  93. package/dist/{smoke-2FI5D74B.js → smoke-5BGJXAHX.js} +4 -4
  94. package/dist/{start-login-ER7DEGYN.js → start-login-MG26NDE3.js} +15 -11
  95. package/dist/{status-7NYXRZ3R.js → status-APADL7O2.js} +15 -11
  96. package/dist/{status-KN2ZE64O.js → status-GKCIVAAR.js} +6 -5
  97. package/dist/{status-OGABWCPO.js → status-LH7Q255G.js} +17 -13
  98. package/dist/stdio.js +2 -2
  99. package/dist/{sweep-EPZCW63Q.js → sweep-VTVPDAPY.js} +6 -5
  100. package/dist/{test-WRZQERYC.js → test-TK2J3IB7.js} +16 -12
  101. package/dist/{tui-YUHQ36FC.js → tui-YTPHHKCW.js} +5 -5
  102. package/dist/{unbroadcast-N6LXHAMT.js → unbroadcast-CH7BAQ2G.js} +6 -5
  103. package/dist/{validate-KFBCUFI4.js → validate-5QVZBE6W.js} +4 -4
  104. package/dist/wait-4HYJJAWO.js +141 -0
  105. package/dist/{worker-OKBJNDEI.js → worker-RBXYAMR4.js} +12 -8
  106. package/dist/{worktree-create-KMXPQXIQ.js → worktree-create-FEZNQUQ6.js} +2 -2
  107. package/docs/commands.md +48 -12
  108. package/docs/git-workflow.md +51 -0
  109. package/docs/hooks.md +8 -1
  110. package/docs/project-configuration.md +134 -18
  111. package/docs/upgrading.md +11 -0
  112. package/gemini-extension.json +2 -2
  113. package/mcp.json +1 -1
  114. package/package.json +5 -5
  115. package/plugin.json +1 -1
  116. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  117. package/plugins/pmcp/.mcp.json +1 -1
  118. package/plugins/pmcp/gemini-extension.json +2 -2
  119. package/plugins/pmcp/mcp.json +1 -1
  120. package/plugins/pmcp/plugin.json +1 -1
  121. package/dist/chunk-3C5FVHQ3.js +0 -7
@@ -1,19 +1,25 @@
1
+ import {
2
+ harnessSpec,
3
+ tuiSpec
4
+ } from "./chunk-3Y3HDMHA.js";
1
5
  import {
2
6
  marketplaceSpec
3
7
  } from "./chunk-2P4Z2NUX.js";
8
+ import {
9
+ mcpSpec
10
+ } from "./chunk-E3DQB5LS.js";
4
11
  import {
5
12
  mailboxSpec
6
13
  } from "./chunk-JWRZDYB5.js";
7
- import {
8
- harnessSpec,
9
- tuiSpec
10
- } from "./chunk-3Y3HDMHA.js";
11
14
  import {
12
15
  gitSpec
13
- } from "./chunk-GFOQDLPL.js";
16
+ } from "./chunk-74O7KZUH.js";
14
17
  import {
15
- mcpSpec
16
- } from "./chunk-E3DQB5LS.js";
18
+ heavySpec
19
+ } from "./chunk-BN4XAXMQ.js";
20
+ import {
21
+ waitSpec
22
+ } from "./chunk-G4ATQPQI.js";
17
23
  import {
18
24
  sessionsSpec
19
25
  } from "./chunk-LMUBBIE2.js";
@@ -61,19 +67,19 @@ var completionSpec = {
61
67
  var COMMANDS = [
62
68
  {
63
69
  ...statusSpec,
64
- load: async () => (await import("./status-OGABWCPO.js")).statusCommand
70
+ load: async () => (await import("./status-LH7Q255G.js")).statusCommand
65
71
  },
66
- { ...initSpec, load: async () => (await import("./init-4O24ZNUQ.js")).initCommand },
67
- { ...hooksSpec, load: async () => (await import("./hooks-PABOEQO6.js")).hooksCommand },
68
- { ...serveSpec, load: async () => (await import("./serve-APEVIJD2.js")).serveCommand },
69
- { ...listSpec, load: async () => (await import("./list-WK2IYUK7.js")).listCommand },
72
+ { ...initSpec, load: async () => (await import("./init-L6GUO3PW.js")).initCommand },
73
+ { ...hooksSpec, load: async () => (await import("./hooks-IEJTW7BV.js")).hooksCommand },
74
+ { ...serveSpec, load: async () => (await import("./serve-OEX5V5CD.js")).serveCommand },
75
+ { ...listSpec, load: async () => (await import("./list-WWYCGD3X.js")).listCommand },
70
76
  {
71
77
  ...indexSpec,
72
- load: async () => (await import("./reindex-I7RYWCUR.js")).indexCommand
78
+ load: async () => (await import("./reindex-3GPKAFBW.js")).indexCommand
73
79
  },
74
80
  {
75
81
  ...modelsSpec,
76
- load: async () => (await import("./models-ISU4DCMA.js")).modelsCommand
82
+ load: async () => (await import("./models-63NQBSV3.js")).modelsCommand
77
83
  },
78
84
  {
79
85
  ...loginSpec,
@@ -89,52 +95,57 @@ var COMMANDS = [
89
95
  },
90
96
  {
91
97
  ...availableSpec,
92
- load: async () => (await import("./available-BFXLII4A.js")).availableCommand
98
+ load: async () => (await import("./available-Z5MIDFPH.js")).availableCommand
93
99
  },
94
100
  {
95
101
  ...previewSpec,
96
- load: async () => (await import("./preview-DT7DWG5F.js")).previewCommand
102
+ load: async () => (await import("./preview-WSESS2UN.js")).previewCommand
97
103
  },
98
104
  {
99
105
  ...installSpec,
100
- load: async () => (await import("./install-7V6NIA7W.js")).installCommand
106
+ load: async () => (await import("./install-OFVLR7TI.js")).installCommand
101
107
  },
102
- { ...syncSpec, load: async () => (await import("./install-7V6NIA7W.js")).syncCommand },
108
+ { ...syncSpec, load: async () => (await import("./install-OFVLR7TI.js")).syncCommand },
103
109
  {
104
110
  ...projectSpec,
105
- load: async () => (await import("./project-6QUIC73W.js")).projectCommand
111
+ load: async () => (await import("./project-JXXL24WN.js")).projectCommand
106
112
  },
107
113
  {
108
114
  ...doctorSpec,
109
- load: async () => (await import("./doctor-JJ2VUNHT.js")).doctorCommand
115
+ load: async () => (await import("./doctor-FGDSUBR3.js")).doctorCommand
110
116
  },
111
117
  {
112
118
  ...sessionsSpec,
113
- load: async () => (await import("./cli-34EDFXJA.js")).sessionsCommand
119
+ load: async () => (await import("./cli-IHVNE3WL.js")).sessionsCommand
120
+ },
121
+ { ...logsSpec, load: async () => (await import("./logs-BRF6DBKG.js")).logsCommand },
122
+ { ...gitSpec, load: async () => (await import("./cli-FSSYFCV3.js")).gitCommand },
123
+ {
124
+ ...heavySpec,
125
+ load: async () => (await import("./heavy-IIZBO4YM.js")).heavyCommand
114
126
  },
115
- { ...logsSpec, load: async () => (await import("./logs-UHJM7ZCL.js")).logsCommand },
116
- { ...gitSpec, load: async () => (await import("./cli-JXPJFHUA.js")).gitCommand },
117
- { ...mcpSpec, load: async () => (await import("./mcp-6P3MVT4V.js")).mcpCommand },
127
+ { ...waitSpec, load: async () => (await import("./wait-4HYJJAWO.js")).waitCommand },
128
+ { ...mcpSpec, load: async () => (await import("./mcp-HR5JFUW7.js")).mcpCommand },
118
129
  {
119
130
  ...validateSpec,
120
- load: async () => (await import("./validate-KFBCUFI4.js")).validateCommand
131
+ load: async () => (await import("./validate-5QVZBE6W.js")).validateCommand
121
132
  },
122
133
  {
123
134
  ...mailboxSpec,
124
- load: async () => (await import("./mailbox-YN6PG66A.js")).mailboxCommand
135
+ load: async () => (await import("./mailbox-AQCTXO3H.js")).mailboxCommand
125
136
  },
126
137
  {
127
138
  ...harnessSpec,
128
- load: async () => (await import("./harness-Q236VJSU.js")).harnessCommand
139
+ load: async () => (await import("./harness-B7ANLH5M.js")).harnessCommand
129
140
  },
130
- { ...tuiSpec, load: async () => (await import("./tui-YUHQ36FC.js")).tuiCommand },
141
+ { ...tuiSpec, load: async () => (await import("./tui-YTPHHKCW.js")).tuiCommand },
131
142
  {
132
143
  ...marketplaceSpec,
133
- load: async () => (await import("./marketplace-G4VQET5W.js")).marketplaceCommand
144
+ load: async () => (await import("./marketplace-TI5HFAHB.js")).marketplaceCommand
134
145
  },
135
146
  {
136
147
  ...completionSpec,
137
- load: async () => (await import("./completion-KTECNPVY.js")).completionCommand
148
+ load: async () => (await import("./completion-ZTTJVV4C.js")).completionCommand
138
149
  }
139
150
  ];
140
151
  var PLANNED = [];
@@ -148,4 +159,4 @@ export {
148
159
  PLANNED,
149
160
  commandNamed
150
161
  };
151
- //# sourceMappingURL=chunk-SMZPYJQI.js.map
162
+ //# sourceMappingURL=chunk-QBSJL3SP.js.map
@@ -0,0 +1,86 @@
1
+ import {
2
+ flockAvailable,
3
+ lockFile
4
+ } from "./chunk-DZ2MRTYT.js";
5
+
6
+ // src/git/mainline/lock.ts
7
+ import { spawnSync } from "child_process";
8
+ import {
9
+ closeSync,
10
+ mkdirSync,
11
+ openSync,
12
+ readFileSync,
13
+ rmSync,
14
+ writeFileSync
15
+ } from "fs";
16
+ import { dirname, join } from "path";
17
+ function flock(fd, args) {
18
+ const run = spawnSync("flock", [...args, "3"], {
19
+ stdio: ["ignore", "ignore", "pipe", fd]
20
+ });
21
+ if (run.error !== void 0)
22
+ throw new Error(`flock (util-linux) is required: ${run.error.message}`);
23
+ return run.status ?? 1;
24
+ }
25
+ function acquireHostLock(path, waitSeconds, onWait) {
26
+ mkdirSync(dirname(path), { recursive: true });
27
+ if (!flockAvailable()) {
28
+ const now = lockFile(path, 0);
29
+ if (now) return now;
30
+ onWait?.();
31
+ return lockFile(path, waitSeconds * 1e3);
32
+ }
33
+ const fd = openSync(path, "a");
34
+ try {
35
+ if (flock(fd, ["-n"]) !== 0) {
36
+ onWait?.();
37
+ if (flock(fd, ["-w", String(waitSeconds)]) !== 0) {
38
+ closeSync(fd);
39
+ return null;
40
+ }
41
+ }
42
+ } catch (error) {
43
+ closeSync(fd);
44
+ throw error;
45
+ }
46
+ let open = true;
47
+ return {
48
+ release: () => {
49
+ if (!open) return;
50
+ open = false;
51
+ closeSync(fd);
52
+ }
53
+ };
54
+ }
55
+ function holderFile(lockPath) {
56
+ return join(dirname(lockPath), "holder.json");
57
+ }
58
+ function writeHolder(lockPath, holder) {
59
+ const record = {
60
+ ...holder,
61
+ pid: process.pid,
62
+ startedAt: (/* @__PURE__ */ new Date()).toISOString()
63
+ };
64
+ writeFileSync(holderFile(lockPath), `${JSON.stringify(record)}
65
+ `);
66
+ }
67
+ function removeHolder(lockPath) {
68
+ if (readHolder(lockPath)?.pid === process.pid)
69
+ rmSync(holderFile(lockPath), { force: true });
70
+ }
71
+ function readHolder(lockPath) {
72
+ try {
73
+ return JSON.parse(readFileSync(holderFile(lockPath), "utf8"));
74
+ } catch {
75
+ return null;
76
+ }
77
+ }
78
+
79
+ export {
80
+ flock,
81
+ acquireHostLock,
82
+ writeHolder,
83
+ removeHolder,
84
+ readHolder
85
+ };
86
+ //# sourceMappingURL=chunk-SGFTHKKS.js.map
@@ -7,20 +7,20 @@ import {
7
7
  observeSession,
8
8
  openGroup,
9
9
  runOperation
10
- } from "./chunk-UMQLIRSU.js";
10
+ } from "./chunk-ISGBOJT7.js";
11
11
  import {
12
12
  nativeHostTools
13
- } from "./chunk-FODUHLZM.js";
13
+ } from "./chunk-5IZFEVPW.js";
14
14
  import {
15
15
  locateExecutable
16
16
  } from "./chunk-R2GPCZUX.js";
17
17
  import {
18
18
  artifact,
19
19
  stateDirectory
20
- } from "./chunk-DP326AER.js";
20
+ } from "./chunk-GNVME5AD.js";
21
21
  import {
22
22
  ptyBinary
23
- } from "./chunk-SPZQRLL5.js";
23
+ } from "./chunk-733WVP2R.js";
24
24
  import {
25
25
  GroupStore,
26
26
  privateJson
@@ -249,4 +249,4 @@ async function invoke(operation) {
249
249
  export {
250
250
  invoke
251
251
  };
252
- //# sourceMappingURL=chunk-N63QCJHX.js.map
252
+ //# sourceMappingURL=chunk-T4GVN7XO.js.map
@@ -0,0 +1,99 @@
1
+ import {
2
+ ConfigError
3
+ } from "./chunk-GJXOFDJT.js";
4
+
5
+ // src/git/config/reader.ts
6
+ var Reader = class {
7
+ constructor(path, name, table2, keys) {
8
+ this.path = path;
9
+ this.name = name;
10
+ this.table = table2;
11
+ for (const key of Object.keys(table2)) {
12
+ if (!keys.includes(key))
13
+ throw new ConfigError(path, `unknown key [${name}] ${key}`);
14
+ }
15
+ }
16
+ path;
17
+ name;
18
+ table;
19
+ fail(key, expected) {
20
+ throw new ConfigError(
21
+ this.path,
22
+ `[${this.name}] ${key} must be ${expected}`
23
+ );
24
+ }
25
+ string(key) {
26
+ const value = this.table[key];
27
+ if (value === void 0) return void 0;
28
+ if (typeof value !== "string" || !value.trim())
29
+ this.fail(key, "a non-empty string");
30
+ return value;
31
+ }
32
+ envName(key) {
33
+ const value = this.string(key);
34
+ if (value !== void 0 && !/^[A-Z_][A-Z0-9_]{0,127}$/u.test(value))
35
+ this.fail(key, "an environment variable name (A-Z, 0-9, _)");
36
+ return value;
37
+ }
38
+ oneOf(key, values, fallback) {
39
+ const value = this.table[key] ?? fallback;
40
+ if (!values.includes(value)) this.fail(key, values.join(" | "));
41
+ return value;
42
+ }
43
+ bool(key, fallback) {
44
+ const value = this.table[key] ?? fallback;
45
+ if (typeof value !== "boolean") this.fail(key, "a boolean");
46
+ return value;
47
+ }
48
+ int(key, fallback) {
49
+ const value = this.table[key] ?? fallback;
50
+ if (!Number.isInteger(value) || value < 1)
51
+ this.fail(key, "a positive integer");
52
+ return value;
53
+ }
54
+ positive(key) {
55
+ const value = this.table[key];
56
+ if (value === void 0) return void 0;
57
+ if (typeof value !== "number" || !(value > 0))
58
+ this.fail(key, "a positive number");
59
+ return value;
60
+ }
61
+ list(key) {
62
+ const value = this.table[key] ?? [];
63
+ if (!Array.isArray(value) || !value.every((v) => typeof v === "string"))
64
+ this.fail(key, "a list of strings");
65
+ return value;
66
+ }
67
+ argv(key) {
68
+ const value = this.list(key);
69
+ if (value.length === 0) return void 0;
70
+ return value;
71
+ }
72
+ // A table of environment variable names to string values.
73
+ envMap(key) {
74
+ const value = this.table[key] ?? {};
75
+ if (value === null || typeof value !== "object" || Array.isArray(value))
76
+ this.fail(key, "a table of variable names to strings");
77
+ for (const [name, text] of Object.entries(value)) {
78
+ if (!/^[A-Z_][A-Z0-9_]{0,127}$/u.test(name) || typeof text !== "string")
79
+ this.fail(key, "a table of variable names (A-Z, 0-9, _) to strings");
80
+ }
81
+ return value;
82
+ }
83
+ };
84
+ function table(path, name, value) {
85
+ if (value === void 0) return void 0;
86
+ if (value === null || typeof value !== "object" || Array.isArray(value))
87
+ throw new ConfigError(path, `[${name}] must be a table`);
88
+ return value;
89
+ }
90
+ function child(path, parent, name, key) {
91
+ return table(path, `${name}.${key}`, parent?.[key]);
92
+ }
93
+
94
+ export {
95
+ Reader,
96
+ table,
97
+ child
98
+ };
99
+ //# sourceMappingURL=chunk-T6C3TSTO.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSkillServer
3
- } from "./chunk-OAX6MIOZ.js";
3
+ } from "./chunk-5PNS6V5C.js";
4
4
  import {
5
5
  attachMailbox
6
6
  } from "./chunk-JZKAJUVT.js";
@@ -84,4 +84,4 @@ export {
84
84
  serveWithMailbox,
85
85
  main
86
86
  };
87
- //# sourceMappingURL=chunk-UDVYVRGJ.js.map
87
+ //# sourceMappingURL=chunk-UED3RH53.js.map
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-5ZABTVSW.js";
4
4
  import {
5
5
  dependencies
6
- } from "./chunk-EX4YXPVW.js";
6
+ } from "./chunk-NNGGNXF2.js";
7
7
  import {
8
8
  interactiveEntry
9
9
  } from "./chunk-LMT3PPXJ.js";
10
10
  import {
11
11
  assertNativeHost
12
- } from "./chunk-FODUHLZM.js";
12
+ } from "./chunk-5IZFEVPW.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-SUJCVEBM.js.map
45
+ //# sourceMappingURL=chunk-VNZTULFD.js.map
@@ -0,0 +1,7 @@
1
+ // src/commands/version.ts
2
+ var VERSION = "0.22.13";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-VSTUKACC.js.map
@@ -3,7 +3,9 @@ var EXIT = {
3
3
  ok: 0,
4
4
  failure: 1,
5
5
  usage: 2,
6
- missingOptional: 3
6
+ missingOptional: 3,
7
+ // Not run because the host stayed busy; nothing changed, so a retry later is safe (EX_TEMPFAIL).
8
+ busy: 75
7
9
  };
8
10
  var ArgumentError = class extends Error {
9
11
  constructor(message) {
@@ -16,10 +18,12 @@ function parseArgs(argv, specs = []) {
16
18
  const positional = [];
17
19
  const options = /* @__PURE__ */ new Map();
18
20
  const flags = /* @__PURE__ */ new Set();
21
+ let passthrough;
19
22
  for (let i = 0; i < argv.length; i += 1) {
20
23
  const arg = argv[i];
21
24
  if (arg === "--") {
22
- positional.push(...argv.slice(i + 1));
25
+ passthrough = argv.slice(i + 1);
26
+ positional.push(...passthrough);
23
27
  break;
24
28
  }
25
29
  if (!arg.startsWith("--")) {
@@ -49,7 +53,7 @@ function parseArgs(argv, specs = []) {
49
53
  }
50
54
  options.set(name, [...existing ?? [], value]);
51
55
  }
52
- return { positional, options, flags };
56
+ return passthrough === void 0 ? { positional, options, flags } : { positional, options, flags, passthrough };
53
57
  }
54
58
  function one(args, name) {
55
59
  return args.options.get(name)?.[0];
@@ -109,4 +113,4 @@ export {
109
113
  printCommandHelp,
110
114
  printHelp
111
115
  };
112
- //# sourceMappingURL=chunk-A4PKLESO.js.map
116
+ //# sourceMappingURL=chunk-WFY7ATSZ.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  configFrom
3
- } from "./chunk-RPCIROW7.js";
3
+ } from "./chunk-J3QUG6O5.js";
4
4
  import {
5
5
  readFixtures,
6
6
  smoke
7
7
  } from "./chunk-ARXCYFFZ.js";
8
8
  import {
9
9
  ArgumentError
10
- } from "./chunk-A4PKLESO.js";
10
+ } from "./chunk-WFY7ATSZ.js";
11
11
 
12
12
  // src/commands/hooks/smoke.ts
13
13
  import { readFileSync } from "fs";
@@ -50,4 +50,4 @@ export {
50
50
  printSmoke,
51
51
  run
52
52
  };
53
- //# sourceMappingURL=chunk-KPKMEUUH.js.map
53
+ //# sourceMappingURL=chunk-XSWF7APE.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  configFrom
3
- } from "./chunk-RPCIROW7.js";
3
+ } from "./chunk-J3QUG6O5.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-63RZGEVI.js";
6
+ } from "./chunk-K2VU3B4W.js";
7
7
  import {
8
8
  ArgumentError
9
- } from "./chunk-A4PKLESO.js";
9
+ } from "./chunk-WFY7ATSZ.js";
10
10
 
11
11
  // src/commands/mcp/server.ts
12
12
  function serverFrom(context) {
@@ -25,4 +25,4 @@ function serverFrom(context) {
25
25
  export {
26
26
  serverFrom
27
27
  };
28
- //# sourceMappingURL=chunk-MIFPPUWY.js.map
28
+ //# sourceMappingURL=chunk-ZKB7ZNKY.js.map
@@ -7,7 +7,7 @@ import {
7
7
  prepare,
8
8
  present,
9
9
  writeNative
10
- } from "./chunk-2OOWAGBE.js";
10
+ } from "./chunk-7ZOQELXR.js";
11
11
  import {
12
12
  ANTIGRAVITY_MCP_PLUGIN,
13
13
  BUNDLE_NATIVE_FILES,
@@ -21,7 +21,7 @@ import {
21
21
  same,
22
22
  splitKeyed,
23
23
  withoutBlock
24
- } from "./chunk-63RZGEVI.js";
24
+ } from "./chunk-K2VU3B4W.js";
25
25
  import {
26
26
  HOOK_DIRECTORY
27
27
  } from "./chunk-ARXCYFFZ.js";
@@ -30,7 +30,7 @@ import {
30
30
  replaceFile,
31
31
  replaceLink,
32
32
  writeLock
33
- } from "./chunk-SPZQRLL5.js";
33
+ } from "./chunk-733WVP2R.js";
34
34
  import {
35
35
  RULES_DIR,
36
36
  legacyLinks
@@ -400,4 +400,4 @@ export {
400
400
  unmanagedHooks,
401
401
  describeHookProblem
402
402
  };
403
- //# sourceMappingURL=chunk-2GRECE6B.js.map
403
+ //# sourceMappingURL=chunk-ZS5IDQFJ.js.map
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  gitSpec
3
- } from "./chunk-GFOQDLPL.js";
3
+ } from "./chunk-74O7KZUH.js";
4
4
  import "./chunk-XNML2KIC.js";
5
5
  import {
6
6
  ArgumentError,
7
7
  one
8
- } from "./chunk-A4PKLESO.js";
8
+ } from "./chunk-WFY7ATSZ.js";
9
9
 
10
10
  // src/git/cli.ts
11
11
  async function action(positional) {
12
12
  const [verb, sub] = positional;
13
13
  if (verb === "deliver")
14
- return (await import("./mainline-74WCH4T4.js")).mainlineDeliver;
15
- if (verb === "sync") return (await import("./mainline-74WCH4T4.js")).mainlineSync;
14
+ return (await import("./mainline-O5AEHG3J.js")).mainlineDeliver;
15
+ if (verb === "sync") return (await import("./mainline-O5AEHG3J.js")).mainlineSync;
16
16
  if (verb !== "worktree")
17
- throw new ArgumentError("Use worktree, deliver or sync");
17
+ throw new ArgumentError("Use worktree, deliver, sync or affected");
18
18
  if (sub === "create")
19
- return (await import("./worktree-create-KMXPQXIQ.js")).worktreeCreate;
19
+ return (await import("./worktree-create-FEZNQUQ6.js")).worktreeCreate;
20
20
  if (sub === "list")
21
21
  return (await import("./worktree-list-WH6OX6U7.js")).worktreeList;
22
22
  if (sub === "sync")
@@ -25,10 +25,16 @@ async function action(positional) {
25
25
  }
26
26
  async function run(context) {
27
27
  const [verb, sub] = context.args.positional;
28
+ if (verb === "affected")
29
+ return (await import("./affected-ZWO2F5EM.js")).gitAffected(context);
30
+ if (context.args.flags.has("tests-only") || context.args.options.has("head"))
31
+ throw new ArgumentError("--tests-only and --head require git affected");
28
32
  if (context.args.flags.has("json") && !(verb === "worktree" && sub === "list") && verb !== "deliver")
29
- throw new ArgumentError("--json requires git worktree list or git deliver");
33
+ throw new ArgumentError(
34
+ "--json requires git worktree list, git deliver or git affected"
35
+ );
30
36
  const act = await action(context.args.positional);
31
- const { loadGit } = await import("./setup-SOUBEZ3H.js");
37
+ const { loadGit } = await import("./setup-SWNAC2C7.js");
32
38
  const setup = loadGit(context.cwd, one(context.args, "config"), context.env);
33
39
  if (setup instanceof Error) {
34
40
  context.ui.error(setup.message);
@@ -45,4 +51,4 @@ var gitCommand = { ...gitSpec, run };
45
51
  export {
46
52
  gitCommand
47
53
  };
48
- //# sourceMappingURL=cli-JXPJFHUA.js.map
54
+ //# sourceMappingURL=cli-FSSYFCV3.js.map
@@ -6,7 +6,7 @@ import {
6
6
  import "./chunk-XNML2KIC.js";
7
7
  import {
8
8
  ArgumentError
9
- } from "./chunk-A4PKLESO.js";
9
+ } from "./chunk-WFY7ATSZ.js";
10
10
 
11
11
  // src/sessions/cli.ts
12
12
  async function run(context) {
@@ -16,26 +16,26 @@ async function run(context) {
16
16
  `unknown verb ${verb}; use ${SESSION_VERBS.join(", ")}`
17
17
  );
18
18
  if (verb === "status")
19
- return (await import("./status-KN2ZE64O.js")).status(context);
19
+ return (await import("./status-GKCIVAAR.js")).status(context);
20
20
  if (context.args.flags.has("json") && !JSON_VERBS.includes(verb))
21
21
  throw new ArgumentError(`--json works with ${JSON_VERBS.join(", ")}`);
22
22
  if (["send", "inbox", "ack", "reply"].includes(verb)) {
23
- const mailbox = await import("./mailbox-NIMBOQPA.js");
23
+ const mailbox = await import("./mailbox-QYA2LQSE.js");
24
24
  if (verb === "send") return mailbox.send(context);
25
25
  if (verb === "inbox") return mailbox.inbox(context);
26
26
  if (verb === "ack") return mailbox.ack(context);
27
27
  return mailbox.reply(context);
28
28
  }
29
- if (verb === "pause") return (await import("./pause-CBZ3BTJL.js")).run(context);
30
- if (verb === "resume") return (await import("./resume-UJEWQ66P.js")).run(context);
29
+ if (verb === "pause") return (await import("./pause-UF7FQDJX.js")).run(context);
30
+ if (verb === "resume") return (await import("./resume-3WAROOQ3.js")).run(context);
31
31
  if (verb === "broadcast")
32
- return (await import("./broadcast-DZGMSZRG.js")).run(context);
32
+ return (await import("./broadcast-BF2QL3O7.js")).run(context);
33
33
  if (verb === "unbroadcast")
34
- return (await import("./unbroadcast-N6LXHAMT.js")).run(context);
35
- return (await import("./sweep-EPZCW63Q.js")).run(context);
34
+ return (await import("./unbroadcast-CH7BAQ2G.js")).run(context);
35
+ return (await import("./sweep-VTVPDAPY.js")).run(context);
36
36
  }
37
37
  var sessionsCommand = { ...sessionsSpec, run };
38
38
  export {
39
39
  sessionsCommand
40
40
  };
41
- //# sourceMappingURL=cli-34EDFXJA.js.map
41
+ //# sourceMappingURL=cli-IHVNE3WL.js.map