@wirecat/mail-cli 0.24.0 → 0.26.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 (157) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +3 -0
  3. package/contracts/wirecat.json +1325 -0
  4. package/dist/bin/mail.js +2 -2
  5. package/dist/bin/mail.js.map +1 -1
  6. package/dist/bundle/{all-profiles-VS7P6DJY.js → all-profiles-6NXVQLUQ.js} +11 -11
  7. package/dist/bundle/{anthropic-C5JXKGBS.js → anthropic-OLNFE2CL.js} +17 -10
  8. package/dist/bundle/{app-server-HU3LVU42.js → app-server-J76N6XIK.js} +60 -49
  9. package/dist/bundle/{bun-QLFX47WZ.js → bun-6PYDHXNR.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-W4PGAKVY.js → bun-sqlite-QD5PFHPS.js} +9 -5
  11. package/dist/bundle/{chunk-WOX7FZJP.js → chunk-2E2EV4HD.js} +130 -77
  12. package/dist/bundle/{chunk-A6J4MPTI.js → chunk-2TCS4PLJ.js} +1 -1
  13. package/dist/bundle/{chunk-QI3PXUOJ.js → chunk-3J2UJFBJ.js} +39 -32
  14. package/dist/bundle/{chunk-LVGX7VTD.js → chunk-3RY4HC4V.js} +63 -5
  15. package/dist/bundle/chunk-3XTKQ5EM.js +54 -0
  16. package/dist/bundle/{chunk-ZO4MQWIK.js → chunk-4Q6KAV4O.js} +8 -8
  17. package/dist/bundle/{chunk-JOQGJUFT.js → chunk-52M5BAEG.js} +1 -1
  18. package/dist/bundle/{chunk-Q4OKEN3B.js → chunk-5WROIMUV.js} +12 -7
  19. package/dist/bundle/{chunk-VVL4MKYH.js → chunk-66C66FNK.js} +1 -1
  20. package/dist/bundle/{chunk-O373QEAJ.js → chunk-76EKZSDK.js} +27 -27
  21. package/dist/bundle/{chunk-AUTX2MLF.js → chunk-76VSHS5Y.js} +15 -10
  22. package/dist/bundle/{chunk-HBZAJINU.js → chunk-7C6FGWDH.js} +4 -4
  23. package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
  24. package/dist/bundle/{chunk-FNLUKODV.js → chunk-7MEVD5PI.js} +57 -28
  25. package/dist/bundle/chunk-A3EBRXOQ.js +16 -0
  26. package/dist/bundle/{chunk-C3NYJW6B.js → chunk-A6XETABW.js} +852 -278
  27. package/dist/bundle/{chunk-VNKWSCN7.js → chunk-AJ5K74X6.js} +17 -17
  28. package/dist/bundle/{chunk-BFQQV22T.js → chunk-BDYQQ6G2.js} +1 -1
  29. package/dist/bundle/{chunk-ZR2BDNGG.js → chunk-BMGRDZM3.js} +1 -1
  30. package/dist/bundle/{chunk-TLEBSMC7.js → chunk-CFBIPM7T.js} +4109 -3575
  31. package/dist/bundle/{chunk-IRUN4XOV.js → chunk-CZI45AQM.js} +2 -2
  32. package/dist/bundle/{chunk-QVMOEB3I.js → chunk-DKIVYAXW.js} +18 -17
  33. package/dist/bundle/{chunk-X7J3TTDO.js → chunk-ECZSYLSL.js} +48 -9
  34. package/dist/bundle/{chunk-EKGRNFYQ.js → chunk-EDWJ7IYH.js} +1 -1
  35. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
  36. package/dist/bundle/{chunk-5X3GU5LI.js → chunk-GIG7F6UW.js} +6 -6
  37. package/dist/bundle/{chunk-RN7OI5KL.js → chunk-H2IJQH5X.js} +20 -112
  38. package/dist/bundle/{chunk-NWKKPDZV.js → chunk-HI5XUETY.js} +2 -2
  39. package/dist/bundle/{chunk-YBQ5AYLZ.js → chunk-HNSBXC6U.js} +3 -3
  40. package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
  41. package/dist/bundle/{chunk-PT6MF2VU.js → chunk-JNKXU7AE.js} +340 -108
  42. package/dist/bundle/{chunk-64ZG5ERD.js → chunk-JVJG54QK.js} +40 -2
  43. package/dist/bundle/{chunk-KGOVFEWZ.js → chunk-KXASCNOV.js} +3 -3
  44. package/dist/bundle/{chunk-5NLHDK7P.js → chunk-LMTQMYUF.js} +31 -31
  45. package/dist/bundle/{chunk-Q6K2XUGU.js → chunk-LTZGLOKE.js} +3 -2
  46. package/dist/bundle/{chunk-RLQZFZLK.js → chunk-M2LATBP2.js} +84 -10
  47. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
  48. package/dist/bundle/{chunk-H5FJTHVA.js → chunk-M4Y33SJJ.js} +2 -2
  49. package/dist/bundle/{chunk-SWKQ6IAR.js → chunk-M7ECSGSN.js} +3 -3
  50. package/dist/bundle/{chunk-MTO6YVMN.js → chunk-M7RHPCXM.js} +3 -3
  51. package/dist/bundle/{chunk-PRQ2U7HF.js → chunk-MIWSCTLG.js} +2 -2
  52. package/dist/bundle/{chunk-NSIN5IM4.js → chunk-NBJU6MBU.js} +10 -15
  53. package/dist/bundle/{chunk-JWMLMAHP.js → chunk-NMFPK3MU.js} +14 -5
  54. package/dist/bundle/{chunk-4QNHAM3J.js → chunk-OGE7YG4J.js} +2 -2
  55. package/dist/bundle/{chunk-XBEO472U.js → chunk-PJ6YMNJG.js} +26515 -24466
  56. package/dist/bundle/{chunk-RUASZW3M.js → chunk-PY2IOVUN.js} +5 -5
  57. package/dist/bundle/{chunk-OQW6GHUA.js → chunk-QI6EXKSH.js} +1 -1
  58. package/dist/bundle/{chunk-KV4VTKF3.js → chunk-QJGG6QYV.js} +69 -6
  59. package/dist/bundle/{chunk-JMLIKXFO.js → chunk-RXKIP2ML.js} +2 -2
  60. package/dist/bundle/{chunk-6VV7J2TN.js → chunk-T7SHPALQ.js} +35 -28
  61. package/dist/bundle/{chunk-YI544LHI.js → chunk-UE2NKPA4.js} +9 -9
  62. package/dist/bundle/{chunk-X47BL4M5.js → chunk-UNJUCK5R.js} +13 -13
  63. package/dist/bundle/{chunk-C5BMCLCQ.js → chunk-V32L23NN.js} +4 -4
  64. package/dist/bundle/{chunk-DW3F6DUW.js → chunk-V4PFD25P.js} +1 -1
  65. package/dist/bundle/{chunk-U6MMQNNK.js → chunk-VA4V73SL.js} +6 -6
  66. package/dist/bundle/{chunk-3KSK5BBB.js → chunk-VJPLIXV4.js} +8 -2
  67. package/dist/bundle/{chunk-YA45XV6G.js → chunk-VWRT57QU.js} +4 -4
  68. package/dist/bundle/{chunk-FKWUUCX2.js → chunk-XELZCDWE.js} +427 -189
  69. package/dist/bundle/{chunk-3FD3IATT.js → chunk-XUJEZ5YF.js} +6 -6
  70. package/dist/bundle/{chunk-TI7ZIPA2.js → chunk-XZ7CQ6NA.js} +4 -4
  71. package/dist/bundle/{chunk-NCRSE647.js → chunk-YM345236.js} +159 -46
  72. package/dist/bundle/{chunk-6PWCQKMD.js → chunk-YXGHC3NP.js} +14 -14
  73. package/dist/bundle/{chunk-RNZKQMFY.js → chunk-ZZSZN4CJ.js} +22 -15
  74. package/dist/bundle/command-contract-NNEXHZW5.js +36 -0
  75. package/dist/bundle/{command-server-entry-5E3PPDE5.js → command-server-entry-AIBWNC5D.js} +25 -24
  76. package/dist/bundle/{decode-AVWV7SVZ.js → decode-H7KLRD33.js} +5 -5
  77. package/dist/bundle/{dispatch-BXPHSNK5.js → dispatch-DSVN7MNG.js} +8 -8
  78. package/dist/bundle/{dist-PIOOKBWT.js → dist-YYSP43J3.js} +29 -18
  79. package/dist/bundle/{echarts-7K6YQV52.js → echarts-VSD3LS6D.js} +2 -2
  80. package/dist/bundle/{embed-4NT76GJK.js → embed-UENZ5HN3.js} +6 -6
  81. package/dist/bundle/{embedder-ITQFF7EN.js → embedder-MJMGOJT7.js} +9 -9
  82. package/dist/bundle/{failure-3Q65JOPD.js → failure-COTPFUP4.js} +2 -2
  83. package/dist/bundle/{first-run-PM74YU4X.js → first-run-HYALREFN.js} +12 -11
  84. package/dist/bundle/first-screen-GPF5RHBX.js +34 -0
  85. package/dist/bundle/{instructions-JDSITYHV.js → instructions-WOHRYOLN.js} +1 -1
  86. package/dist/bundle/mail.js +15 -20
  87. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
  88. package/dist/bundle/{node-D6YIJOJI.js → node-4BRWJJCE.js} +2 -2
  89. package/dist/bundle/{node-sqlite-PJOHHB4X.js → node-sqlite-D3QESEYQ.js} +10 -6
  90. package/dist/bundle/{oauth-BOWJ3IBT.js → oauth-T7TTOBIZ.js} +7 -7
  91. package/dist/bundle/{open-FIAKKZMW.js → open-6P6627QB.js} +5 -5
  92. package/dist/bundle/{openai-QL54VVLC.js → openai-FIMCJGAP.js} +24 -19
  93. package/dist/bundle/{process-AYHK7WRC.js → process-35IH3WHC.js} +1 -1
  94. package/dist/bundle/{program-6FKWOTBK.js → program-IEXB72IK.js} +6685 -5463
  95. package/dist/bundle/{prompt-XJZCBELC.js → prompt-HFBCPMVL.js} +5 -5
  96. package/dist/bundle/{recognize-OQKWAHBY.js → recognize-CNL4HJ7Z.js} +4 -4
  97. package/dist/bundle/{remote-NLVUZ5WK.js → remote-AYGZI7HT.js} +9 -7
  98. package/dist/bundle/{rerank-NRPZDTJ7.js → rerank-5C2OZZXD.js} +7 -7
  99. package/dist/bundle/{serve-O4YUI7F6.js → serve-S6OYBDIB.js} +9 -9
  100. package/dist/bundle/{server-WAL3M4OO.js → server-VKO6E6PI.js} +42 -40
  101. package/dist/bundle/server-WXSHVDME.js +68 -0
  102. package/dist/bundle/{sqlite-runtime-5YHGI4D4.js → sqlite-runtime-DBTGNTVE.js} +6 -6
  103. package/dist/bundle/{state-WYYOJ7KK.js → state-ZQG6AL2Y.js} +6 -6
  104. package/dist/bundle/{store-X72GOJHD.js → store-B7BXWILZ.js} +25 -18
  105. package/dist/bundle/{store-6BJO3F2J.js → store-LY4QKTOO.js} +19 -16
  106. package/dist/bundle/store-maintenance-command-UR6NQDVV.js +58 -0
  107. package/dist/commands/rules.d.ts.map +1 -1
  108. package/dist/commands/rules.js +57 -19
  109. package/dist/commands/rules.js.map +1 -1
  110. package/dist/commands/session-start.d.ts.map +1 -1
  111. package/dist/commands/session-start.js +1 -1
  112. package/dist/commands/session-start.js.map +1 -1
  113. package/dist/config.d.ts +1 -0
  114. package/dist/config.d.ts.map +1 -1
  115. package/dist/config.js +13 -12
  116. package/dist/config.js.map +1 -1
  117. package/dist/discovery.d.ts.map +1 -1
  118. package/dist/discovery.js +7 -2
  119. package/dist/discovery.js.map +1 -1
  120. package/dist/identity.d.ts +2 -0
  121. package/dist/identity.d.ts.map +1 -1
  122. package/dist/identity.js +34 -0
  123. package/dist/identity.js.map +1 -1
  124. package/dist/mail/domain-age.d.ts +1 -1
  125. package/dist/mail/domain-age.d.ts.map +1 -1
  126. package/dist/mail/domain-age.js +9 -3
  127. package/dist/mail/domain-age.js.map +1 -1
  128. package/dist/mail/rules/file.d.ts.map +1 -1
  129. package/dist/mail/rules/file.js +4 -1
  130. package/dist/mail/rules/file.js.map +1 -1
  131. package/dist/mail/rules/query.d.ts +2 -1
  132. package/dist/mail/rules/query.d.ts.map +1 -1
  133. package/dist/mail/rules/query.js +16 -3
  134. package/dist/mail/rules/query.js.map +1 -1
  135. package/dist/oauth.d.ts +3 -1
  136. package/dist/oauth.d.ts.map +1 -1
  137. package/dist/oauth.js +48 -34
  138. package/dist/oauth.js.map +1 -1
  139. package/dist/reasons.d.ts.map +1 -1
  140. package/dist/reasons.js +5 -0
  141. package/dist/reasons.js.map +1 -1
  142. package/dist/store.d.ts.map +1 -1
  143. package/dist/store.js +2 -21
  144. package/dist/store.js.map +1 -1
  145. package/dist/version.d.ts +1 -1
  146. package/dist/version.js +1 -1
  147. package/dist/wcat.d.ts +3 -0
  148. package/dist/wcat.d.ts.map +1 -0
  149. package/dist/wcat.js +4 -0
  150. package/dist/wcat.js.map +1 -0
  151. package/package.json +10 -9
  152. package/dist/bundle/chunk-B72343TK.js +0 -35
  153. package/dist/bundle/command-contract-ERYYPAD2.js +0 -35
  154. package/dist/bundle/first-screen-WBVGVSMY.js +0 -33
  155. package/dist/bundle/server-6OT5ZEWL.js +0 -66
  156. package/dist/bundle/store-maintenance-command-ASS7RBYC.js +0 -54
  157. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-U6MMQNNK.js";
6
+ } from "./chunk-VA4V73SL.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.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/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";
@@ -2,34 +2,34 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateFormattedText
5
- } from "./chunk-YI544LHI.js";
5
+ } from "./chunk-UE2NKPA4.js";
6
6
  import {
7
7
  inputPolicy
8
- } from "./chunk-NWKKPDZV.js";
8
+ } from "./chunk-HI5XUETY.js";
9
9
  import {
10
10
  RECORDS_SCHEMA_VERSION,
11
11
  RECORD_TYPES,
12
12
  pointerOf
13
- } from "./chunk-C3NYJW6B.js";
13
+ } from "./chunk-A6XETABW.js";
14
14
  import {
15
15
  parseReference
16
- } from "./chunk-WOX7FZJP.js";
16
+ } from "./chunk-2E2EV4HD.js";
17
17
  import {
18
18
  indent
19
- } from "./chunk-FNLUKODV.js";
19
+ } from "./chunk-7MEVD5PI.js";
20
20
  import {
21
21
  CliError
22
- } from "./chunk-VUBZFMGP.js";
22
+ } from "./chunk-7KCBPAQS.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/checks.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/checks.js
28
28
  var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
29
29
  var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
30
30
  var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/links.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/links.js
33
33
  var LINK_VERSION = "v1";
34
34
  var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
35
35
  var APP_PREFIX = "wirecat://open";
@@ -146,7 +146,7 @@ var linkFor = /* @__PURE__ */ __name((ref, { form, config = DEFAULT_LINK_CONFIG,
146
146
  return form === "app" ? `${APP_PREFIX}${path}` : `${config.base}#${path}`;
147
147
  }, "linkFor");
148
148
 
149
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/markdown.js
149
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/markdown.js
150
150
  var MARKERS = [
151
151
  ["**", "bold"],
152
152
  ["~~", "strike"],
@@ -192,7 +192,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
192
192
  return end;
193
193
  }, "closing");
194
194
 
195
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
195
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
196
196
  var STYLES = [
197
197
  ["**", "bold"],
198
198
  ["__", "underline"],
@@ -352,7 +352,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
352
352
  return validateFormattedText(result);
353
353
  }, "parseMarkdownSpans");
354
354
 
355
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/polls.js
355
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/polls.js
356
356
  var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
357
357
  const cast = votes.filter((vote) => vote.answers.length > 0);
358
358
  const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
@@ -367,8 +367,8 @@ var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
367
367
  };
368
368
  }, "countedPoll");
369
369
 
370
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/records-table.js
371
- var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => !RECORD_TYPES[type].importOnly);
370
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/records-table.js
371
+ var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => RECORD_TYPES[type].sheet !== false);
372
372
  var TableError = class extends Error {
373
373
  static {
374
374
  __name(this, "TableError");
@@ -430,7 +430,7 @@ var roleColumn = /* @__PURE__ */ __name((name, role) => ({
430
430
  }), "roleColumn");
431
431
  var recordColumns = /* @__PURE__ */ __name((type) => {
432
432
  const spec = specOf(type);
433
- if (!spec || spec.importOnly)
433
+ if (!spec || spec.sheet === false)
434
434
  return [];
435
435
  const fields = spec.fields.properties ?? {};
436
436
  const required = spec.fields.required ?? [];
@@ -494,7 +494,8 @@ var recordTemplate = /* @__PURE__ */ __name((type, format, { source, separator =
494
494
  const envelope = {
495
495
  schema_version: RECORDS_SCHEMA_VERSION,
496
496
  source: {
497
- provider: source?.provider ?? "sheet",
497
+ // An import-only type is refused under a sheet's provider: `import` is the one any folder or export may use.
498
+ provider: source?.provider ?? (specOf(type)?.importOnly ? "import" : "sheet"),
498
499
  account: source?.account ?? "main",
499
500
  batch_id: source?.batch_id ?? "first-import"
500
501
  },
@@ -2356,7 +2357,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
2356
2357
  var qrcode_default = qrcode;
2357
2358
  var stringToBytes = qrcode.stringToBytes;
2358
2359
 
2359
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/terminal/qr.js
2360
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/terminal/qr.js
2360
2361
  var QUIET_ZONE = 4;
2361
2362
  var BLACK_ON_WHITE = "\x1B[30;107m";
2362
2363
  var RESET = "\x1B[0m";
@@ -2403,7 +2404,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
2403
2404
  return lines.join("\n");
2404
2405
  }, "plainQr");
2405
2406
 
2406
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
2407
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
2407
2408
  var MARGIN = 2;
2408
2409
  var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
2409
2410
  var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
@@ -4,12 +4,12 @@ import {
4
4
  errorCodes,
5
5
  isCliError,
6
6
  visibleControls
7
- } from "./chunk-VUBZFMGP.js";
7
+ } from "./chunk-7KCBPAQS.js";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-ZVVMGPBJ.js";
11
11
 
12
- // node_modules/.pnpm/@wirecat+cli-base@0.93.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.99.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
13
13
  var EXIT_CODES = {
14
14
  validation_error: 2,
15
15
  configuration_error: 3,
@@ -704,6 +704,29 @@ function nullable(wrapped, default_) {
704
704
  }
705
705
  __name(nullable, "nullable");
706
706
  // @__NO_SIDE_EFFECTS__
707
+ function nullish(wrapped, default_) {
708
+ return _standardSchema({
709
+ kind: "schema",
710
+ type: "nullish",
711
+ reference: nullish,
712
+ expects: `(${wrapped.expects} | null | undefined)`,
713
+ async: false,
714
+ wrapped,
715
+ default: default_,
716
+ "~run"(dataset, config$1) {
717
+ if (dataset.value === null || dataset.value === void 0) {
718
+ if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
719
+ if (dataset.value === null || dataset.value === void 0) {
720
+ dataset.typed = true;
721
+ return dataset;
722
+ }
723
+ }
724
+ return this.wrapped["~run"](dataset, config$1);
725
+ }
726
+ });
727
+ }
728
+ __name(nullish, "nullish");
729
+ // @__NO_SIDE_EFFECTS__
707
730
  function number(message$1) {
708
731
  return _standardSchema({
709
732
  kind: "schema",
@@ -1334,7 +1357,7 @@ function unwrap(schema) {
1334
1357
  }
1335
1358
  __name(unwrap, "unwrap");
1336
1359
 
1337
- // node_modules/.pnpm/@wirecat+cli-base@0.93.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
1360
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.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
1338
1361
  var EFFECT_LEVELS = ["none", "read", "write"];
1339
1362
  var effectsSchema = strictObject({
1340
1363
  remote: picklist(EFFECT_LEVELS),
@@ -1971,7 +1994,7 @@ function toStandardJsonSchema(schema) {
1971
1994
  }
1972
1995
  __name(toStandardJsonSchema, "toStandardJsonSchema");
1973
1996
 
1974
- // node_modules/.pnpm/@wirecat+cli-base@0.93.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
1997
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.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
1975
1998
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
1976
1999
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
1977
2000
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -2013,7 +2036,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
2013
2036
  return String(value);
2014
2037
  }), "fill");
2015
2038
 
2016
- // node_modules/.pnpm/@wirecat+cli-base@0.93.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
2039
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.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
2017
2040
  var MAX_NEXT_STEPS = 2;
2018
2041
  var COMPACT_FLAG = "--compact";
2019
2042
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
@@ -2076,6 +2099,20 @@ var issueSchema = strictObject({
2076
2099
  /** The account, provider or source that is missing from the answer. */
2077
2100
  source: text
2078
2101
  });
2102
+ var rankingSchema = strictObject({
2103
+ applied: boolean(),
2104
+ reason_id: optional(dottedId),
2105
+ provider: text,
2106
+ model: text,
2107
+ endpoint: text,
2108
+ sent: pipe(number(), integer(), minValue(0)),
2109
+ cost_usd: nullable(pipe(number(), minValue(0))),
2110
+ usage: optional(strictObject({
2111
+ input: pipe(number(), integer(), minValue(0)),
2112
+ output: pipe(number(), integer(), minValue(0))
2113
+ })),
2114
+ ms: pipe(number(), integer(), minValue(0))
2115
+ });
2079
2116
  var metaSchema = strictObject({
2080
2117
  run_id: text,
2081
2118
  duration_ms: pipe(number(), integer(), minValue(0)),
@@ -2087,7 +2124,8 @@ var metaSchema = strictObject({
2087
2124
  /** When the command answered, for an agent that plans from "now" (WC-TIME-7); `timezone` names the zone of `now_local`. */
2088
2125
  now: optional(isoTime),
2089
2126
  now_local: optional(localTime),
2090
- window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) }))
2127
+ window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) })),
2128
+ ranking: optional(rankingSchema)
2091
2129
  });
2092
2130
  var offsetOf = /* @__PURE__ */ __name((at, zone) => {
2093
2131
  const name = new Intl.DateTimeFormat("en-US", { timeZone: zone, timeZoneName: "longOffset" }).formatToParts(at).find((part) => part.type === "timeZoneName")?.value ?? "GMT";
@@ -2125,7 +2163,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
2125
2163
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
2126
2164
  ].join("\n"), "jsonlOf");
2127
2165
 
2128
- // node_modules/.pnpm/@wirecat+cli-base@0.93.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
2166
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.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
2129
2167
  var CRASH_CODE = "internal_error";
2130
2168
  var CRASH_REASON = "command.crashed";
2131
2169
  var errorObjectSchema = strictObject({
@@ -2218,7 +2256,7 @@ var BASE_REASONS = defineReasons([
2218
2256
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
2219
2257
  ]);
2220
2258
 
2221
- // node_modules/.pnpm/@wirecat+cli-base@0.93.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
2259
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.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
2222
2260
  var SAME_COMMAND = "*";
2223
2261
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
2224
2262
  var stepSchema = union([
@@ -2297,7 +2335,7 @@ var STEPS = defineSteps([
2297
2335
  }
2298
2336
  ]);
2299
2337
 
2300
- // node_modules/.pnpm/@wirecat+cli-base@0.93.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
2338
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.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
2301
2339
  var recognise = /* @__PURE__ */ __name((failure) => {
2302
2340
  if (isCliError(failure))
2303
2341
  return failure;
@@ -2474,6 +2512,7 @@ export {
2474
2512
  looseObject,
2475
2513
  null_,
2476
2514
  nullable,
2515
+ nullish,
2477
2516
  number,
2478
2517
  object,
2479
2518
  objectWithRest,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
8
8
  var fields = /* @__PURE__ */ new WeakMap();
9
9
  var readsStdin = /* @__PURE__ */ __name((command, field) => {
10
10
  fields.set(command, field);
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
8
8
  import { existsSync } from "node:fs";
9
9
  import { win32 } from "node:path";
10
10
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
@@ -5,23 +5,23 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-TI7ZIPA2.js";
8
+ } from "./chunk-XZ7CQ6NA.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-VUBZFMGP.js";
14
+ } from "./chunk-7KCBPAQS.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
20
20
  import { readFileSync as readFileSync2 } from "node:fs";
21
21
  import { availableParallelism } from "node:os";
22
22
  import { basename, join as join2 } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
25
25
  import { createHash } from "node:crypto";
26
26
  import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
27
27
  import { join } from "node:path";
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
678
678
  return Unzip2;
679
679
  })();
680
680
 
681
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
682
682
  var ONNX_RUNTIME_VERSION = "1.30.0";
683
683
  var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
684
684
  name,
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
858
858
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
859
859
  }, "openSession");
860
860
 
861
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
861
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
862
862
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
863
863
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
864
864
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
@@ -2,9 +2,8 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  commandPathOf,
5
- findCommand,
6
5
  outputOf
7
- } from "./chunk-RUASZW3M.js";
6
+ } from "./chunk-PY2IOVUN.js";
8
7
  import {
9
8
  wrapAnsi
10
9
  } from "./chunk-HTQTIKWP.js";
@@ -18,119 +17,18 @@ import {
18
17
  environmentOf,
19
18
  metaOf,
20
19
  takesProfile
21
- } from "./chunk-FKWUUCX2.js";
20
+ } from "./chunk-XELZCDWE.js";
22
21
  import {
23
22
  writes
24
- } from "./chunk-X7J3TTDO.js";
23
+ } from "./chunk-ECZSYLSL.js";
25
24
  import {
26
25
  CliError
27
- } from "./chunk-VUBZFMGP.js";
26
+ } from "./chunk-7KCBPAQS.js";
28
27
  import {
29
28
  __name
30
29
  } from "./chunk-ZVVMGPBJ.js";
31
30
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
- var SECTIONS = {
34
- read: "Read",
35
- write: "Write",
36
- organise: "Organise",
37
- automate: "Automate",
38
- setup: "Set up",
39
- other: "Other"
40
- };
41
- var sections = /* @__PURE__ */ new WeakMap();
42
- var sectionOf = /* @__PURE__ */ __name((command) => {
43
- for (let at = command; at; at = at.parent) {
44
- const section = sections.get(at) ?? (at.parent && !at.parent.parent ? CORE_SECTIONS[at.name()] : void 0);
45
- if (section)
46
- return section;
47
- }
48
- return "other";
49
- }, "sectionOf");
50
- var CORE_SECTIONS = {
51
- attachments: "read",
52
- chats: "read",
53
- contacts: "read",
54
- conversations: "read",
55
- images: "read",
56
- inbox: "read",
57
- meetings: "read",
58
- mentions: "read",
59
- messages: "read",
60
- review: "read",
61
- search: "read",
62
- stats: "read",
63
- topics: "read",
64
- watch: "read",
65
- flood: "write",
66
- polls: "write",
67
- reactions: "write",
68
- recipients: "write",
69
- sends: "write",
70
- metadata: "organise",
71
- searches: "organise",
72
- tags: "organise",
73
- tasks: "organise",
74
- bot: "automate",
75
- mcp: "automate",
76
- replies: "automate",
77
- runs: "automate",
78
- schedule: "automate",
79
- templates: "automate",
80
- serve: "automate",
81
- server: "automate",
82
- account: "setup",
83
- commands: "setup",
84
- complete: "setup",
85
- config: "setup",
86
- doctor: "setup",
87
- guide: "setup",
88
- models: "setup",
89
- skill: "setup",
90
- store: "setup",
91
- upgrade: "setup"
92
- };
93
-
94
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
95
- var DESCRIPTION = 90;
96
- var COLUMN = 52;
97
- var short = /* @__PURE__ */ __name((text) => {
98
- const line = text.replace(/\s+/g, " ").trim();
99
- if (line.length <= DESCRIPTION)
100
- return line;
101
- const cut = line.slice(0, DESCRIPTION);
102
- return `${cut.slice(0, Math.max(cut.lastIndexOf(" "), DESCRIPTION / 2))}\u2026`;
103
- }, "short");
104
- var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
105
- const cli = root.name();
106
- const runs = /* @__PURE__ */ __name((info) => [
107
- ...info.commands.length === 0 || info.runnable ? [info] : [],
108
- ...info.commands.flatMap(runs)
109
- ], "runs");
110
- const bySection = new Map(Object.keys(SECTIONS).map((key) => [key, []]));
111
- for (const info of commands.flatMap(runs))
112
- bySection.get(sectionOf(findCommand(root, info.path)))?.push(info);
113
- const where = scope ? `${cli} ${scope.join(" ")}` : cli;
114
- const lines = [
115
- `${where} commands, by section. One command's arguments and options: ${cli} <command> --help.`,
116
- `As JSON: ${cli} commands${scope ? ` ${scope.join(" ")}` : ""} --json. (writes) marks a command that changes something.`
117
- ];
118
- for (const [section, infos] of bySection) {
119
- if (infos.length === 0)
120
- continue;
121
- lines.push("", SECTIONS[section]);
122
- for (const { usage, summary, description, effects, availability } of infos) {
123
- const what = short(summary ?? description);
124
- const mark = effects === void 0 || writes(effects) ? " (writes)" : "";
125
- const access = availability?.available === false ? ` [unavailable: ${availability.reason}]` : "";
126
- lines.push(` ${usage.padEnd(COLUMN)} ${what}${mark}${access}`.trimEnd());
127
- }
128
- }
129
- return `${lines.join("\n")}
130
- `;
131
- }, "commandsText");
132
-
133
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
134
32
  var ARGUMENT_KINDS = {
135
33
  chat: "chat",
136
34
  chats: "chat",
@@ -204,7 +102,8 @@ var SAMPLES = {
204
102
  var MAX_NEXT = 3;
205
103
  var choices = /* @__PURE__ */ new WeakMap();
206
104
  var kindOfArgument = /* @__PURE__ */ __name((argument) => ARGUMENT_KINDS[argument.name()], "kindOfArgument");
207
- var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child._hidden).flatMap((child) => child.commands.length === 0 ? [child] : leaves(child)), "leaves");
105
+ var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || Boolean(command._actionHandler), "runs");
106
+ var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child._hidden).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
208
107
  var rootOf = /* @__PURE__ */ __name((command) => {
209
108
  let at = command;
210
109
  while (at.parent)
@@ -227,7 +126,7 @@ var returnsOf = /* @__PURE__ */ __name((command) => {
227
126
  const output = metaOf(command).output;
228
127
  const { item, coverage } = outputOf(command);
229
128
  if (!output || coverage !== "declared-entity")
230
- return short(command.summary() || command.description()) || "not declared";
129
+ return "";
231
130
  const fields = [...new Set(fieldsOf(item))];
232
131
  const noun = (output.view ? `${output.entity} ${output.view}` : output.entity).replaceAll("_", " ");
233
132
  const more = fields.length > 8 ? `, and ${fields.length - 8} more` : "";
@@ -309,7 +208,7 @@ var commandHelpText = /* @__PURE__ */ __name((command) => {
309
208
  return [
310
209
  "",
311
210
  ...access,
312
- ...rows("Returns:", [returns]),
211
+ ...rows("Returns:", returns ? [returns] : []),
313
212
  ...rows("Next usually:", next),
314
213
  ...rows("Example:", examples),
315
214
  ""
@@ -322,7 +221,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
322
221
  command.addHelpText("after", () => commandHelpText(command));
323
222
  }, "installCommandHelp");
324
223
 
325
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
224
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
326
225
  var WIRECAT_TOOLS = [
327
226
  {
328
227
  command: "tg",
@@ -364,6 +263,16 @@ var WIRECAT_TOOLS = [
364
263
  command: "mail",
365
264
  package: "@wirecat/mail-cli",
366
265
  does: "IMAP mail in the same local store: search your mailbox offline, next to your other WireCat data"
266
+ },
267
+ {
268
+ command: "b24",
269
+ package: "@wirecat/bitrix24-cli",
270
+ does: "Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data"
271
+ },
272
+ {
273
+ command: "pbx",
274
+ package: "@wirecat/asterisk-cli",
275
+ does: "Asterisk PBX calls and recordings, searchable with your other WireCat data"
367
276
  }
368
277
  ];
369
278
  var WIDTH = 100;
@@ -455,7 +364,6 @@ var installHelp = /* @__PURE__ */ __name((program, screen = {}) => {
455
364
  }, "installHelp");
456
365
 
457
366
  export {
458
- commandsText,
459
367
  WIRECAT_TOOLS,
460
368
  firstScreen,
461
369
  installHelp
@@ -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-VUBZFMGP.js";
5
+ } from "./chunk-7KCBPAQS.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-DW3F6DUW.js";
5
+ } from "./chunk-V4PFD25P.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-FNLUKODV.js";
9
+ } from "./chunk-7MEVD5PI.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine
5
- } from "./chunk-VUBZFMGP.js";
5
+ } from "./chunk-7KCBPAQS.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
10
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
11
11
  var FIRST_PARTY_TOOLS = [
12
12
  { name: "tg", package: "@wirecat/tg-cli" },
13
13
  { name: "max", package: "@wirecat/max-cli" },
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
31
31
  var DESCRIBE_MAX_BYTES = 64 * 1024;
32
32
  var DISPATCH_FLAG = "--wcat-dispatch";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
34
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
35
35
  var DESCRIBE_FORMAT = 1;
36
36
  var DESCRIBE_MANIFEST_FORMAT = 2;
37
37
  var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
74
74
  };
75
75
  }, "parseDescribe");
76
76
 
77
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
77
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
78
78
  import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
79
79
  import { join } from "node:path";
80
80
  var SHIM_FORMAT = 2;