@wirecat/amo-cli 0.1.1 → 0.3.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 (182) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +15 -10
  3. package/contracts/wirecat.json +55 -6
  4. package/dist/amo/button.d.ts +53 -0
  5. package/dist/amo/button.d.ts.map +1 -0
  6. package/dist/amo/button.js +234 -0
  7. package/dist/amo/button.js.map +1 -0
  8. package/dist/amo/oauth.d.ts +12 -3
  9. package/dist/amo/oauth.d.ts.map +1 -1
  10. package/dist/amo/oauth.js +19 -6
  11. package/dist/amo/oauth.js.map +1 -1
  12. package/dist/bin/amo.js +2 -2
  13. package/dist/bundle/agent-FDNP27SW.js +40 -0
  14. package/dist/bundle/{all-profiles-3KQVWDV4.js → all-profiles-PPUN52SP.js} +63 -21
  15. package/dist/bundle/amo.js +28 -26
  16. package/dist/bundle/{anthropic-N5NOX7K7.js → anthropic-RDNDT6ZP.js} +5 -5
  17. package/dist/bundle/{app-server-2MST5EZ5.js → app-server-MMALJDBP.js} +79 -68
  18. package/dist/bundle/{bun-4NHWOFX2.js → bun-Y4FRPURU.js} +2 -2
  19. package/dist/bundle/{bun-sqlite-DRSXPWPR.js → bun-sqlite-7NXJGZCO.js} +6 -6
  20. package/dist/bundle/{chunk-GNTJMB6X.js → chunk-2YEDK2XV.js} +4 -4
  21. package/dist/bundle/chunk-3NDMVXGS.js +80 -0
  22. package/dist/bundle/{chunk-Y37A3232.js → chunk-3RP57VDS.js} +114 -7
  23. package/dist/bundle/{chunk-ODNQU7DH.js → chunk-3YOZTGZ6.js} +43 -64
  24. package/dist/bundle/{chunk-ESZSMZKT.js → chunk-4EYPFFTN.js} +2 -2
  25. package/dist/bundle/{chunk-TZSUZGWM.js → chunk-4MVTSMWP.js} +2 -2
  26. package/dist/bundle/{chunk-LJQUYECN.js → chunk-5DPMNYQT.js} +1 -1
  27. package/dist/bundle/{chunk-7PKFYX7V.js → chunk-5POLHHDZ.js} +8 -8
  28. package/dist/bundle/{chunk-A33TIM5D.js → chunk-5RXH35ZA.js} +225 -225
  29. package/dist/bundle/{chunk-BVMNXI53.js → chunk-77FP6AWC.js} +25 -25
  30. package/dist/bundle/{chunk-L6AFE73L.js → chunk-7E6QSIRQ.js} +1 -1
  31. package/dist/bundle/chunk-7SBAHYZW.js +734 -0
  32. package/dist/bundle/{chunk-GQ7VFIYM.js → chunk-7USADF2W.js} +23 -7
  33. package/dist/bundle/{chunk-AHJ4W2IL.js → chunk-7VSYOMEH.js} +2 -2
  34. package/dist/bundle/chunk-7Z6NYSAN.js +52 -0
  35. package/dist/bundle/chunk-AYR6FIXN.js +30 -0
  36. package/dist/bundle/{chunk-ADEWU4P4.js → chunk-B4ITT55D.js} +1 -1
  37. package/dist/bundle/{chunk-AUBB72VF.js → chunk-BKTLAXUK.js} +41 -10
  38. package/dist/bundle/{chunk-63F65DHU.js → chunk-BYVDMPLX.js} +2 -2
  39. package/dist/bundle/{chunk-V77XNPXG.js → chunk-CQ472K6W.js} +11 -11
  40. package/dist/bundle/{chunk-FKR3M62D.js → chunk-CUZISGWH.js} +13 -13
  41. package/dist/bundle/{chunk-LDEBZ3IX.js → chunk-D6UPCAPD.js} +1 -1
  42. package/dist/bundle/{chunk-P3WQRTYZ.js → chunk-E2DLRLJ5.js} +1 -1
  43. package/dist/bundle/{chunk-NJYAL3UW.js → chunk-EHULZEXQ.js} +1 -1
  44. package/dist/bundle/chunk-EKNP326Q.js +108 -0
  45. package/dist/bundle/{chunk-DJD7TBYG.js → chunk-ELJGALVX.js} +76 -74
  46. package/dist/bundle/{chunk-RPWAJYI6.js → chunk-FI2TP6TY.js} +3 -3
  47. package/dist/bundle/{chunk-CDY2NJFE.js → chunk-FPDTIQOK.js} +2 -2
  48. package/dist/bundle/{chunk-NC76INB2.js → chunk-FPIUFSWK.js} +3099 -2266
  49. package/dist/bundle/{chunk-SZ2V62HB.js → chunk-GCUFGDKE.js} +2 -2
  50. package/dist/bundle/{chunk-LRBPT7LQ.js → chunk-GKP7CKW2.js} +6 -6
  51. package/dist/bundle/chunk-H34RBRS3.js +209 -0
  52. package/dist/bundle/{chunk-O2UCU52O.js → chunk-HQH4YPO5.js} +134 -569
  53. package/dist/bundle/{chunk-TNUFLULO.js → chunk-I4QCJZW7.js} +8 -8
  54. package/dist/bundle/{chunk-DXGGCGRP.js → chunk-IDQ7BNCZ.js} +14 -14
  55. package/dist/bundle/{chunk-JMDLPBXK.js → chunk-IEAPNTHT.js} +17 -17
  56. package/dist/bundle/{chunk-XQL7FEF4.js → chunk-ILUREFWJ.js} +9 -9
  57. package/dist/bundle/{chunk-QRQYUHCZ.js → chunk-IYUWVMGP.js} +12 -12
  58. package/dist/bundle/chunk-JTFAG3BX.js +338 -0
  59. package/dist/bundle/{chunk-CHUKWON6.js → chunk-JZ2AITOE.js} +3 -3
  60. package/dist/bundle/{chunk-JR6TSMFX.js → chunk-KEOKH2OZ.js} +103 -70
  61. package/dist/bundle/{chunk-UMVRT7VQ.js → chunk-KKXF6TSS.js} +1 -1
  62. package/dist/bundle/{chunk-5E5R65CA.js → chunk-KTLCQ7GC.js} +2 -2
  63. package/dist/bundle/{chunk-QDMXZZG4.js → chunk-KZDBO2FT.js} +18 -8
  64. package/dist/bundle/{chunk-VX37MPTJ.js → chunk-L2ZQDTDU.js} +1 -1
  65. package/dist/bundle/{chunk-CUZRHF34.js → chunk-L3JDQNBC.js} +4 -4
  66. package/dist/bundle/{chunk-3IRJDH2U.js → chunk-L72UALL5.js} +2 -100
  67. package/dist/bundle/{chunk-XRTD2GCU.js → chunk-LOSOWTAZ.js} +19 -258
  68. package/dist/bundle/{chunk-LGQXGOPJ.js → chunk-LYRICHEK.js} +2 -2
  69. package/dist/bundle/{chunk-UBRREVLJ.js → chunk-MMOEAH5G.js} +2 -2
  70. package/dist/bundle/{chunk-EQ7A6NA6.js → chunk-MPXKBF37.js} +1 -1
  71. package/dist/bundle/{chunk-SMSTGO2G.js → chunk-MYMBPQPQ.js} +4 -4
  72. package/dist/bundle/chunk-N4A6E2LL.js +559 -0
  73. package/dist/bundle/{chunk-5HGGG3QO.js → chunk-NJ2LJKNH.js} +16 -3
  74. package/dist/bundle/{chunk-TGEQNS6G.js → chunk-OMH3WP7F.js} +1 -1
  75. package/dist/bundle/{chunk-ULXQ5MJM.js → chunk-ORFLQGWH.js} +4 -4
  76. package/dist/bundle/{chunk-DQV2IKCF.js → chunk-PFZ7WG2B.js} +10 -3
  77. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  78. package/dist/bundle/{chunk-6RS7OYTD.js → chunk-Q2YVY7IR.js} +3 -3
  79. package/dist/bundle/{chunk-DOSJONCX.js → chunk-QHA33ZS6.js} +7 -7
  80. package/dist/bundle/{chunk-JH3UOHRE.js → chunk-QQT7WUR4.js} +4 -4
  81. package/dist/bundle/{chunk-EROSAUNP.js → chunk-R23DRW2T.js} +5 -5
  82. package/dist/bundle/{chunk-WCYCUTSK.js → chunk-SBQ5MFHM.js} +7 -7
  83. package/dist/bundle/{chunk-DAY6TSPF.js → chunk-SJYVKR54.js} +62 -50
  84. package/dist/bundle/{chunk-T2UDLX76.js → chunk-SJZ52MZE.js} +6 -6
  85. package/dist/bundle/{chunk-ZM7I52EP.js → chunk-T6D34X5S.js} +3 -4
  86. package/dist/bundle/{chunk-P5LYZRKW.js → chunk-TCDER3G7.js} +1586 -749
  87. package/dist/bundle/{chunk-2I5UVMLW.js → chunk-TWZF7VO6.js} +1726 -1159
  88. package/dist/bundle/{chunk-VVHRQ46X.js → chunk-UA7C57IB.js} +2 -2
  89. package/dist/bundle/{chunk-5SBLU7D7.js → chunk-UM6SDFB6.js} +1 -1
  90. package/dist/bundle/{chunk-7U5HJEPZ.js → chunk-UOPP6ORQ.js} +21 -19
  91. package/dist/bundle/{chunk-U7RLVJ34.js → chunk-UT3ODJMI.js} +4 -4
  92. package/dist/bundle/{chunk-7GTUZY7M.js → chunk-UZLT6VSP.js} +3 -3
  93. package/dist/bundle/{chunk-5RLUHTK6.js → chunk-V3ZWYMXT.js} +1 -1
  94. package/dist/bundle/{chunk-LSND5QYI.js → chunk-VD7HD25M.js} +9 -9
  95. package/dist/bundle/{chunk-PFO76YFP.js → chunk-VEGNZPQU.js} +18 -18
  96. package/dist/bundle/{chunk-5Z5PEEKP.js → chunk-VFU25P57.js} +4 -4
  97. package/dist/bundle/{chunk-4ZAK773N.js → chunk-VJHOBOJR.js} +3 -3
  98. package/dist/bundle/{chunk-PM77PRB6.js → chunk-VPBSZ4HQ.js} +185 -162
  99. package/dist/bundle/{chunk-Q2VNBY4Y.js → chunk-VY27K2SH.js} +746 -1205
  100. package/dist/bundle/{chunk-XEFAMLSD.js → chunk-W4KY5JF5.js} +3 -3
  101. package/dist/bundle/{chunk-73CXFE36.js → chunk-WBWVBEHH.js} +29 -1
  102. package/dist/bundle/{chunk-NHXJYS4R.js → chunk-XDT74W5P.js} +32 -28
  103. package/dist/bundle/{chunk-EPOV5UIO.js → chunk-XI75EKLG.js} +11 -11
  104. package/dist/bundle/{chunk-2B24PDH7.js → chunk-XM2G62YF.js} +8 -6
  105. package/dist/bundle/{chunk-5D4Z2B5B.js → chunk-YSOGGUK3.js} +9 -9
  106. package/dist/bundle/chunk-YVO2YGML.js +353 -0
  107. package/dist/bundle/{chunk-EQUKVVHX.js → chunk-ZIFEIJRK.js} +7 -7
  108. package/dist/bundle/{cli-QVWTXADI.js → cli-GAO7LDDA.js} +150 -103
  109. package/dist/bundle/command-contract-RLIBGIDT.js +39 -0
  110. package/dist/bundle/{command-server-entry-5VL5U5EE.js → command-server-entry-BCDJP7XE.js} +28 -28
  111. package/dist/bundle/{decode-SQ5WGNDX.js → decode-OY2GR442.js} +5 -5
  112. package/dist/bundle/{dispatch-LA4DFXJD.js → dispatch-JWEJCBTF.js} +8 -8
  113. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  114. package/dist/bundle/{echarts-25Z3RINX.js → echarts-AHEPEA5P.js} +2 -2
  115. package/dist/bundle/{embed-BNOTNXMA.js → embed-RVSUV54Z.js} +6 -6
  116. package/dist/bundle/{embedder-BCUT7KKV.js → embedder-GRZXZUXR.js} +9 -9
  117. package/dist/bundle/{failure-PKAC6XCT.js → failure-DDCSR54L.js} +2 -2
  118. package/dist/bundle/{first-run-EO5K5GME.js → first-run-G3WI4DH4.js} +12 -12
  119. package/dist/bundle/first-screen-6MLCMW2U.js +39 -0
  120. package/dist/bundle/{instructions-VLM3QAYB.js → instructions-NWQC5IP4.js} +1 -1
  121. package/dist/bundle/{mcp-7ILNMJH5.js → mcp-KGWT6TGO.js} +2 -2
  122. package/dist/bundle/meeting-combined-SVTFVZNJ.js +24 -0
  123. package/dist/bundle/{meeting-model-GHMMUQ34.js → meeting-model-I6T5HIZ5.js} +11 -11
  124. package/dist/bundle/{meeting-semantic-BMP6323L.js → meeting-semantic-47UA5JBF.js} +6 -6
  125. package/dist/bundle/{node-CT3N3TNL.js → node-7VXN7F4B.js} +2 -2
  126. package/dist/bundle/{node-sqlite-MELD2SBX.js → node-sqlite-BSEON57L.js} +7 -7
  127. package/dist/bundle/{oauth-YBH5OKC2.js → oauth-V6UAT4YD.js} +8 -8
  128. package/dist/bundle/{open-WNSBWTAG.js → open-7LVAY7ZU.js} +5 -5
  129. package/dist/bundle/{openai-XSNMNLW6.js → openai-OIEH342H.js} +15 -15
  130. package/dist/bundle/{process-I2QKOMM7.js → process-PTUCNLZ7.js} +1 -1
  131. package/dist/bundle/{program-DV73CIGP.js → program-S5WY5IZP.js} +643 -852
  132. package/dist/bundle/{prompt-SOG4AKPM.js → prompt-7XWTEQ62.js} +5 -5
  133. package/dist/bundle/{recognize-WMQLWMXH.js → recognize-HGIAJXDR.js} +4 -4
  134. package/dist/bundle/{remote-4BTFOLFY.js → remote-X4SVEMHS.js} +9 -9
  135. package/dist/bundle/{rerank-LJ3TWRNV.js → rerank-QWM3DQMU.js} +7 -7
  136. package/dist/bundle/{serve-B6UANKXN.js → serve-VVG3TXYT.js} +10 -10
  137. package/dist/bundle/{server-YRH6GJ5Z.js → server-EHYK62BJ.js} +73 -61
  138. package/dist/bundle/server-WRPTBVNW.js +86 -0
  139. package/dist/bundle/source-YISMYLBQ.js +44 -0
  140. package/dist/bundle/{sqlite-runtime-R7QFWFE7.js → sqlite-runtime-MCKXDNYC.js} +6 -6
  141. package/dist/bundle/{state-DIJ5YUOE.js → state-MYNYQJCT.js} +6 -6
  142. package/dist/bundle/store-A7R2SZVD.js +34 -0
  143. package/dist/bundle/{store-MYTYDV6A.js → store-B7O3F3QB.js} +28 -21
  144. package/dist/bundle/{store-6WFWW7EC.js → store-FPIU2546.js} +24 -23
  145. package/dist/bundle/store-maintenance-command-D55FRTIK.js +73 -0
  146. package/dist/bundle/surface-3EX6IGHW.js +72 -0
  147. package/dist/bundle/writer-XDHZ54JD.js +46 -0
  148. package/dist/commands/session.d.ts +23 -0
  149. package/dist/commands/session.d.ts.map +1 -1
  150. package/dist/commands/session.js +115 -45
  151. package/dist/commands/session.js.map +1 -1
  152. package/dist/identity.js +1 -1
  153. package/dist/identity.js.map +1 -1
  154. package/dist/program.d.ts.map +1 -1
  155. package/dist/program.js +3 -1
  156. package/dist/program.js.map +1 -1
  157. package/dist/reasons.d.ts.map +1 -1
  158. package/dist/reasons.js +2 -0
  159. package/dist/reasons.js.map +1 -1
  160. package/dist/setup/flow.d.ts.map +1 -1
  161. package/dist/setup/flow.js +74 -4
  162. package/dist/setup/flow.js.map +1 -1
  163. package/dist/setup/texts.en.json +22 -1
  164. package/dist/setup/texts.es.json +22 -1
  165. package/dist/setup/texts.ru.json +22 -1
  166. package/dist/version.d.ts +1 -1
  167. package/dist/version.js +1 -1
  168. package/package.json +5 -3
  169. package/scenarios/first-sync.md +23 -0
  170. package/scenarios/keep-in-sync.md +18 -0
  171. package/scenarios/safe-agent-writes.md +21 -0
  172. package/skills/amo-cli/SKILL.md +1 -1
  173. package/skills/amo-cli/references/mcp.md +1 -1
  174. package/skills/amo-cli/references/setup.md +9 -3
  175. package/dist/bundle/command-contract-QBUQBXH7.js +0 -39
  176. package/dist/bundle/first-screen-GMN3T6RW.js +0 -39
  177. package/dist/bundle/meeting-combined-LAMF7S2B.js +0 -24
  178. package/dist/bundle/server-S6XD6V6E.js +0 -77
  179. package/dist/bundle/source-DGFTA2TN.js +0 -42
  180. package/dist/bundle/store-FJCNZULV.js +0 -32
  181. package/dist/bundle/store-maintenance-command-B5TMKFMG.js +0 -68
  182. package/dist/bundle/writer-GP7VIMAU.js +0 -44
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  isCliError
6
- } from "./chunk-SZ2V62HB.js";
6
+ } from "./chunk-GCUFGDKE.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
11
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
12
12
  var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
13
13
  var checked = /* @__PURE__ */ __name((signal) => {
14
14
  if (signal?.aborted)
@@ -93,7 +93,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
93
93
  }
94
94
  }, "readJsonResponse");
95
95
 
96
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
96
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
97
97
  var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
98
98
  var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
99
99
  var hostProblems = /* @__PURE__ */ __name((hosts) => [
@@ -105,7 +105,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
105
105
  return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
106
106
  }, "hostCovered");
107
107
 
108
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
108
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
109
109
  var HOST_FETCH_TIMEOUT_MS = 3e4;
110
110
  var REDIRECTS = 5;
111
111
  var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
@@ -140,6 +140,17 @@ var checked2 = /* @__PURE__ */ __name((url, hosts) => {
140
140
  throw undeclared(url);
141
141
  return url;
142
142
  }, "checked");
143
+ var ENCODED_SLASH = /%2f|%5c/i;
144
+ var scopeOf = /* @__PURE__ */ __name((scope) => {
145
+ if (scope === void 0)
146
+ return void 0;
147
+ if (!URL.canParse(scope))
148
+ throw new CliError("configuration_error", `credentialScope ${scope} is not a URL`);
149
+ const { origin, pathname } = new URL(scope);
150
+ const prefix = pathname.endsWith("/") ? pathname : `${pathname}/`;
151
+ return (url) => url.origin === origin && (url.pathname === pathname || url.pathname.startsWith(prefix)) && !ENCODED_SLASH.test(url.pathname);
152
+ }, "scopeOf");
153
+ var signedHeaders = /* @__PURE__ */ __name((headers) => CREDENTIAL_HEADERS.some((name) => headers.has(name)), "signedHeaders");
143
154
  var NOT_SENT = /* @__PURE__ */ new Set(["EAI_AGAIN", "ENOTFOUND", "ECONNREFUSED"]);
144
155
  var neverSent = /* @__PURE__ */ __name((error) => {
145
156
  for (let at = error, depth = 0; at instanceof Error && depth < 4; at = at.cause, depth++) {
@@ -154,6 +165,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
154
165
  if (problems.length > 0)
155
166
  throw new CliError("configuration_error", problems.join("; "));
156
167
  const { hosts, fetch: send = globalThis.fetch, timeoutMs = HOST_FETCH_TIMEOUT_MS, redirects = REDIRECTS } = options;
168
+ const inScope = scopeOf(options.credentialScope);
157
169
  return async (input, init = {}) => {
158
170
  const request = input instanceof Request ? input : void 0;
159
171
  let url = checked2(new URL(request?.url ?? String(input)), hosts);
@@ -164,6 +176,10 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
164
176
  let method = (init.method ?? request?.method ?? "GET").toUpperCase();
165
177
  let body = init.body ?? request?.body ?? void 0;
166
178
  const headers = new Headers(init.headers ?? request?.headers);
179
+ if (inScope && signedHeaders(headers) && !inScope(url))
180
+ throw new CliError("configuration_error", `the sign-in goes only under ${options.credentialScope}, not ${url.origin}${url.pathname}`, {
181
+ sent: false
182
+ });
167
183
  let answered = false;
168
184
  try {
169
185
  let response = await send(input, { ...init, signal, ...follow ? { redirect: "manual" } : {} });
@@ -184,7 +200,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
184
200
  headers.delete("content-length");
185
201
  } else if (body instanceof ReadableStream)
186
202
  throw new CliError("invalid_response", `${url.hostname} redirected a streamed body, which cannot be sent again`);
187
- if (next.origin !== url.origin)
203
+ if (inScope ? !inScope(next) : next.origin !== url.origin)
188
204
  for (const name of CREDENTIAL_HEADERS)
189
205
  headers.delete(name);
190
206
  url = next;
@@ -207,7 +223,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
207
223
  };
208
224
  }, "hostFetch");
209
225
 
210
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
226
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
211
227
  var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
212
228
  if (!header)
213
229
  return void 0;
@@ -249,7 +265,7 @@ var statusToCode = /* @__PURE__ */ __name((status) => {
249
265
  return "provider_error";
250
266
  }, "statusToCode");
251
267
 
252
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/models/endpoint.js
268
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/models/endpoint.js
253
269
  var endpoint = /* @__PURE__ */ __name((value) => {
254
270
  try {
255
271
  const url = new URL(value);
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-LRBPT7LQ.js";
6
+ } from "./chunk-GKP7CKW2.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";
@@ -0,0 +1,52 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ changesMessenger
5
+ } from "./chunk-VPBSZ4HQ.js";
6
+ import {
7
+ AUTHORITY_KEY,
8
+ BOT_API_KEY,
9
+ authorityAllowed,
10
+ botApiAllowed,
11
+ isBotApi,
12
+ keyForCommand,
13
+ levelFor,
14
+ readKeysForCommand
15
+ } from "./chunk-KZDBO2FT.js";
16
+ import {
17
+ writes
18
+ } from "./chunk-BKTLAXUK.js";
19
+ import {
20
+ __name
21
+ } from "./chunk-ZVVMGPBJ.js";
22
+
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/command-availability.js
24
+ var commandAvailability = /* @__PURE__ */ __name((info, levels, keyOf, authority, readOnly = false, mcp = true, declared, fetches) => {
25
+ const declaredKey = declared?.keyOf(info.path);
26
+ const key = declared ? declaredKey : keyOf?.(info.path) ?? keyForCommand(info.path);
27
+ const { level } = key ? levelFor(levels, key, declared?.defaults) : { level: "allow" };
28
+ const judged = { ...key ? { permission: key } : {}, level };
29
+ const blocked = /* @__PURE__ */ __name((reason, permission) => ({
30
+ available: false,
31
+ reason,
32
+ ...judged,
33
+ ...permission && permission !== judged.permission ? { permission, level: levelFor(levels, permission).level } : {}
34
+ }), "blocked");
35
+ const declaredChange = Boolean(declaredKey) && (info.effects === void 0 || info.effects.remote === "write");
36
+ if (readOnly && (changesMessenger(info) || declaredChange || authority?.(info.path)))
37
+ return blocked("the read-only lock blocks this change");
38
+ if (mcp && authority?.(info.path) && !authorityAllowed(levels))
39
+ return blocked(`the profile keeps ${AUTHORITY_KEY} off`, AUTHORITY_KEY);
40
+ if (mcp && isBotApi(info.path) && !botApiAllowed(levels))
41
+ return blocked(`the profile requires ${BOT_API_KEY}: allow`, BOT_API_KEY);
42
+ if (level === "deny")
43
+ return blocked(`the profile denies ${key}`);
44
+ if (level === "readonly" && writes(info.effects) && fetches?.(info.path) !== true)
45
+ return blocked(`${key} is readonly in this profile`);
46
+ const denied = (declared ? [] : readKeysForCommand(info.path)).find((read) => levelFor(levels, read).level === "deny");
47
+ return denied ? blocked(`the profile denies ${denied}`, denied) : { available: true, ...judged };
48
+ }, "commandAvailability");
49
+
50
+ export {
51
+ commandAvailability
52
+ };
@@ -0,0 +1,30 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ CliError
5
+ } from "./chunk-GCUFGDKE.js";
6
+ import {
7
+ __name
8
+ } from "./chunk-ZVVMGPBJ.js";
9
+
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/ports/messenger.js
11
+ var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
12
+ get: /* @__PURE__ */ __name((own, key) => {
13
+ if (key in own)
14
+ return own[key];
15
+ const value = inner[key];
16
+ return typeof value === "function" ? wrap(String(key), (...args) => value.apply(inner, args)) : value;
17
+ }, "get"),
18
+ has: /* @__PURE__ */ __name((own, key) => key in own || key in inner, "has")
19
+ }), "throughWrapper");
20
+ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
21
+ const found = adapter[method];
22
+ if (typeof found !== "function")
23
+ throw new CliError("validation_error", `this messenger cannot ${what}`);
24
+ return found.bind(adapter);
25
+ }, "capability");
26
+
27
+ export {
28
+ throughWrapper,
29
+ capability
30
+ };
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -4,12 +4,12 @@ import {
4
4
  errorCodes,
5
5
  isCliError,
6
6
  visibleControls
7
- } from "./chunk-SZ2V62HB.js";
7
+ } from "./chunk-GCUFGDKE.js";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-ZVVMGPBJ.js";
11
11
 
12
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
12
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
13
13
  var EXIT_CODES = {
14
14
  validation_error: 2,
15
15
  configuration_error: 3,
@@ -282,8 +282,8 @@ function maxEntries(requirement, message$1) {
282
282
  message: message$1,
283
283
  "~run"(dataset, config$1) {
284
284
  if (!dataset.typed) return dataset;
285
- const count = Object.keys(dataset.value).length;
286
- if (dataset.typed && count > this.requirement) _addIssue(this, "entries", dataset, config$1, { received: `${count}` });
285
+ const count2 = Object.keys(dataset.value).length;
286
+ if (dataset.typed && count2 > this.requirement) _addIssue(this, "entries", dataset, config$1, { received: `${count2}` });
287
287
  return dataset;
288
288
  }
289
289
  };
@@ -600,6 +600,23 @@ function exactOptional(wrapped, default_) {
600
600
  }
601
601
  __name(exactOptional, "exactOptional");
602
602
  // @__NO_SIDE_EFFECTS__
603
+ function function_(message$1) {
604
+ return _standardSchema({
605
+ kind: "schema",
606
+ type: "function",
607
+ reference: function_,
608
+ expects: "Function",
609
+ async: false,
610
+ message: message$1,
611
+ "~run"(dataset, config$1) {
612
+ if (typeof dataset.value === "function") dataset.typed = true;
613
+ else _addIssue(this, "type", dataset, config$1);
614
+ return dataset;
615
+ }
616
+ });
617
+ }
618
+ __name(function_, "function_");
619
+ // @__NO_SIDE_EFFECTS__
603
620
  function lazy(getter) {
604
621
  return _standardSchema({
605
622
  kind: "schema",
@@ -1346,7 +1363,7 @@ function unwrap(schema) {
1346
1363
  }
1347
1364
  __name(unwrap, "unwrap");
1348
1365
 
1349
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1366
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1350
1367
  var EFFECT_LEVELS = ["none", "read", "write"];
1351
1368
  var effectsSchema = strictObject({
1352
1369
  remote: picklist(EFFECT_LEVELS),
@@ -1983,7 +2000,7 @@ function toStandardJsonSchema(schema) {
1983
2000
  }
1984
2001
  __name(toStandardJsonSchema, "toStandardJsonSchema");
1985
2002
 
1986
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
2003
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
1987
2004
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
1988
2005
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
1989
2006
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -2025,7 +2042,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
2025
2042
  return String(value);
2026
2043
  }), "fill");
2027
2044
 
2028
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
2045
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
2029
2046
  var MAX_NEXT_STEPS = 2;
2030
2047
  var COMPACT_FLAG = "--compact";
2031
2048
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
@@ -2102,6 +2119,18 @@ var rankingSchema = strictObject({
2102
2119
  })),
2103
2120
  ms: pipe(number(), integer(), minValue(0))
2104
2121
  });
2122
+ var count = pipe(number(), integer(), minValue(0));
2123
+ var modelRunSchema = strictObject({
2124
+ provider: text,
2125
+ model: text,
2126
+ endpoint: text,
2127
+ sent: count,
2128
+ done: count,
2129
+ left: count,
2130
+ usage: optional(strictObject({ input: count, output: count })),
2131
+ cost_usd: nullable(pipe(number(), minValue(0))),
2132
+ ms: count
2133
+ });
2105
2134
  var querySchema = strictObject({
2106
2135
  chat: optional(strictObject({ word: text, chat_id: text, title: nullable(text) })),
2107
2136
  respelled: optional(array(strictObject({ word: text, tried: pipe(array(text), minLength(1)) })))
@@ -2119,6 +2148,7 @@ var metaSchema = strictObject({
2119
2148
  now_local: optional(localTime),
2120
2149
  window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) })),
2121
2150
  ranking: optional(rankingSchema),
2151
+ model_run: optional(modelRunSchema),
2122
2152
  query: optional(querySchema)
2123
2153
  });
2124
2154
  var offsetOf = /* @__PURE__ */ __name((at, zone) => {
@@ -2157,7 +2187,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
2157
2187
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
2158
2188
  ].join("\n"), "jsonlOf");
2159
2189
 
2160
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2190
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2161
2191
  var CRASH_CODE = "internal_error";
2162
2192
  var CRASH_REASON = "command.crashed";
2163
2193
  var errorObjectSchema = strictObject({
@@ -2256,7 +2286,7 @@ var BASE_REASONS = defineReasons([
2256
2286
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
2257
2287
  ]);
2258
2288
 
2259
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2289
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2260
2290
  var SAME_COMMAND = "*";
2261
2291
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
2262
2292
  var stepSchema = union([
@@ -2335,7 +2365,7 @@ var STEPS = defineSteps([
2335
2365
  }
2336
2366
  ]);
2337
2367
 
2338
- // node_modules/.pnpm/@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
2368
+ // node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
2339
2369
  var recognise = /* @__PURE__ */ __name((failure) => {
2340
2370
  if (isCliError(failure))
2341
2371
  return failure;
@@ -2509,6 +2539,7 @@ export {
2509
2539
  array,
2510
2540
  boolean,
2511
2541
  exactOptional,
2542
+ function_,
2512
2543
  lazy,
2513
2544
  literal,
2514
2545
  looseObject,
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  singleLine
6
- } from "./chunk-SZ2V62HB.js";
6
+ } from "./chunk-GCUFGDKE.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/domain/tags.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/domain/tags.js
12
12
  var TAG_TYPES = ["chat", "contact", "message", "task"];
13
13
  var TAG = /^[a-z0-9-]{1,32}$/;
14
14
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -2,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateVector
5
- } from "./chunk-7GTUZY7M.js";
5
+ } from "./chunk-UZLT6VSP.js";
6
6
  import {
7
7
  meaningFloor
8
- } from "./chunk-5D4Z2B5B.js";
8
+ } from "./chunk-YSOGGUK3.js";
9
9
  import {
10
10
  RRF_K
11
- } from "./chunk-XQL7FEF4.js";
11
+ } from "./chunk-ILUREFWJ.js";
12
12
  import {
13
13
  MESSAGE_PARSING
14
- } from "./chunk-DQV2IKCF.js";
14
+ } from "./chunk-PFZ7WG2B.js";
15
15
  import {
16
16
  normalize
17
- } from "./chunk-TGEQNS6G.js";
17
+ } from "./chunk-OMH3WP7F.js";
18
18
  import {
19
19
  formatMeetingReference,
20
20
  implicitTextTerms,
@@ -23,18 +23,18 @@ import {
23
23
  parseMeetingReference,
24
24
  refreshMeetingIndex,
25
25
  walkQuery
26
- } from "./chunk-A33TIM5D.js";
26
+ } from "./chunk-5RXH35ZA.js";
27
27
  import {
28
28
  CliError
29
- } from "./chunk-SZ2V62HB.js";
29
+ } from "./chunk-GCUFGDKE.js";
30
30
  import {
31
31
  __name
32
32
  } from "./chunk-ZVVMGPBJ.js";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
35
35
  import { createHash } from "node:crypto";
36
36
 
37
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/search/question-plan.js
37
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/search/question-plan.js
38
38
  var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
39
39
  var joinedHyphens = /* @__PURE__ */ __name((text) => (normalize(text).match(new RegExp("(?<![:\\p{L}\\p{N}-])\\p{L}[\\p{L}\\p{N}]*(?:-\\p{L}[\\p{L}\\p{N}]*)+", "gu")) ?? []).map((word) => word.replaceAll("-", "")), "joinedHyphens");
40
40
  var scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
@@ -171,7 +171,7 @@ var questionLookup = /* @__PURE__ */ __name((text) => {
171
171
  return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
172
172
  }, "questionLookup");
173
173
 
174
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
174
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
175
175
  var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
176
176
  const { project, tag, topic, ...input } = request;
177
177
  input.signal?.throwIfAborted();
@@ -209,7 +209,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
209
209
  return { input, selection };
210
210
  }, "resolveMeetingSelection");
211
211
 
212
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
212
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
213
213
  var DEPTH = 200;
214
214
  var cursorOf = /* @__PURE__ */ __name((value, key) => {
215
215
  if (value === void 0)
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-SZ2V62HB.js";
5
+ } from "./chunk-GCUFGDKE.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
11
11
  import { constants } from "node:fs";
12
12
  import { lstat, open } from "node:fs/promises";
13
13
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
73
73
  }
74
74
  }, "syncDirectory");
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { constants as constants2 } from "node:fs";
79
79
  import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
111
111
  }
112
112
  }, "writeFileAtomic");
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
115
115
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
116
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
117
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
140
140
  }
141
141
  }, "readBoundedUtf8File");
142
142
 
143
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/lock.js
144
144
  import { mkdir as mkdir2 } from "node:fs/promises";
145
145
  import { basename as basename2, dirname as dirname2 } from "node:path";
146
146
 
147
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
148
148
  import { randomUUID as randomUUID2 } from "node:crypto";
149
149
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
150
  import { hostname as hostname2 } from "node:os";
151
151
  import { join as join3 } from "node:path";
152
152
 
153
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
154
154
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
155
  import { join as join2 } from "node:path";
156
156
 
157
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
158
158
  import { hostname } from "node:os";
159
159
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
160
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
199
  }
200
200
  }, "leaseOwnerStatus");
201
201
 
202
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
203
203
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
204
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
205
  options.signal?.throwIfAborted();
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
258
  return { inspect, recover };
259
259
  }, "leaseInspection");
260
260
 
261
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
262
262
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
263
263
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
264
  let releasing;
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
283
  };
284
284
  }, "ownedNativeLease");
285
285
 
286
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
287
287
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
288
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  const { markerDirectory, legacyMarker } = layout;
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
354
  };
355
355
  }, "nativeWriterLeaseStore");
356
356
 
357
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/lock.js
358
358
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
359
  const folder = dirname2(path);
360
360
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
369
369
  });
370
370
  }, "acquireLock");
371
371
 
372
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/files/safe-name.js
372
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/files/safe-name.js
373
373
  import { basename as basename3, extname } from "node:path";
374
374
  var MOST_NAME_BYTES = 200;
375
375
  var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  values_exports
5
- } from "./chunk-2I5UVMLW.js";
5
+ } from "./chunk-TWZF7VO6.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/runs/secrets.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/runs/secrets.js
8
8
  var SECRET_WORDS = /* @__PURE__ */ new Set([
9
9
  "authorization",
10
10
  "cookie",