@wirecat/zoom-cli 0.81.0 → 0.82.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 (188) hide show
  1. package/dist/answers.d.ts +56 -0
  2. package/dist/answers.d.ts.map +1 -1
  3. package/dist/bin/zm.js +2 -2
  4. package/dist/bundle/agent-F4TRJWWS.js +46 -0
  5. package/dist/bundle/{all-profiles-3ASMN35R.js → all-profiles-RULEKTDQ.js} +12 -12
  6. package/dist/bundle/answer-policy-6XC57AEZ.js +131 -0
  7. package/dist/bundle/{anthropic-XXI53VNI.js → anthropic-4NAQBZFL.js} +6 -6
  8. package/dist/bundle/{app-server-B7WLNZNQ.js → app-server-VLR42U5L.js} +78 -76
  9. package/dist/bundle/{bun-2FLR4IV4.js → bun-OPDGMZZQ.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-3NNHTOGM.js → bun-sqlite-HC6X4AOX.js} +7 -7
  11. package/dist/bundle/{chunk-JKEMW6E4.js → chunk-274SLQNW.js} +2 -2
  12. package/dist/bundle/{chunk-IFM4G4MT.js → chunk-2CI2OEZQ.js} +4 -4
  13. package/dist/bundle/{chunk-4B335BCJ.js → chunk-2DBF2IIC.js} +5 -5
  14. package/dist/bundle/{chunk-437DLSB3.js → chunk-2GP573Q4.js} +14997 -11784
  15. package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-2JHVQMVC.js} +1 -1
  16. package/dist/bundle/{chunk-D7CDHBDX.js → chunk-2SWKQ7C4.js} +1 -1
  17. package/dist/bundle/{chunk-GCAJW4SR.js → chunk-2XBDILVW.js} +1 -1
  18. package/dist/bundle/{chunk-XYQVVW4R.js → chunk-3HC5F3P7.js} +1 -1
  19. package/dist/bundle/{chunk-YUDVRFXN.js → chunk-3YM4B2GT.js} +1 -1
  20. package/dist/bundle/{chunk-AWJQ6FAX.js → chunk-434YFJAE.js} +2 -2
  21. package/dist/bundle/{chunk-G3DWMG7Y.js → chunk-4HLQ2JGK.js} +4 -4
  22. package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-4N7PP76S.js} +1 -1
  23. package/dist/bundle/{chunk-WKNYNK7W.js → chunk-52Y4ETKU.js} +4 -4
  24. package/dist/bundle/{chunk-VXD65V67.js → chunk-5HAUK3I4.js} +1546 -2006
  25. package/dist/bundle/{chunk-2RFWRJFK.js → chunk-5KYQ53EF.js} +13 -9
  26. package/dist/bundle/{chunk-N62P5FY4.js → chunk-5TU7Y5UW.js} +12 -12
  27. package/dist/bundle/{chunk-2ELGSNX3.js → chunk-66ALX4ZI.js} +168 -168
  28. package/dist/bundle/{chunk-SRUAUMBL.js → chunk-676C2LE6.js} +12 -12
  29. package/dist/bundle/{chunk-N5ROXGY4.js → chunk-6CWL5BKG.js} +21 -21
  30. package/dist/bundle/{chunk-77TJ3AJH.js → chunk-6QYZP4E2.js} +3 -3
  31. package/dist/bundle/{chunk-QFK52FG6.js → chunk-6VK332XS.js} +3 -3
  32. package/dist/bundle/{chunk-BQBC2WIG.js → chunk-73MOMNLL.js} +1 -1
  33. package/dist/bundle/{chunk-EEBSKMEA.js → chunk-7QPIUMUG.js} +12 -12
  34. package/dist/bundle/{chunk-RRYHLP3A.js → chunk-7UVDPRFK.js} +6 -6
  35. package/dist/bundle/{chunk-Y7XJA4EW.js → chunk-A6EZK5RG.js} +4 -4
  36. package/dist/bundle/{chunk-IBYGNUO7.js → chunk-AC6VJNMJ.js} +1 -1
  37. package/dist/bundle/{chunk-NX3BLISW.js → chunk-ACI4YIEH.js} +6 -6
  38. package/dist/bundle/{chunk-YJKXCINQ.js → chunk-AIKFOBDO.js} +254 -60
  39. package/dist/bundle/{chunk-PS7HQ5LQ.js → chunk-ASBDFXLS.js} +3 -3
  40. package/dist/bundle/{chunk-MA4UJNUI.js → chunk-B32KZRQM.js} +12 -12
  41. package/dist/bundle/{chunk-2GNGR265.js → chunk-BBGJQMRI.js} +1 -1
  42. package/dist/bundle/{chunk-IVZACJ6X.js → chunk-BDKVOU3I.js} +4 -4
  43. package/dist/bundle/{chunk-4VOCXLMJ.js → chunk-BP4FYANF.js} +6 -6
  44. package/dist/bundle/{chunk-WHXYPLUE.js → chunk-DCYFT3FR.js} +4 -4
  45. package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
  46. package/dist/bundle/{chunk-TI4WJOEX.js → chunk-DSZYABYL.js} +38 -19
  47. package/dist/bundle/{chunk-ZNAX7GUV.js → chunk-E745WZKY.js} +8 -8
  48. package/dist/bundle/{chunk-M7OYEMLI.js → chunk-EGTCQKHV.js} +7 -7
  49. package/dist/bundle/{chunk-GDRFVBCB.js → chunk-EQG3PIH2.js} +2 -2
  50. package/dist/bundle/{chunk-YRDQ54G5.js → chunk-ESN3W2MZ.js} +24 -11
  51. package/dist/bundle/{chunk-NS3JWBDR.js → chunk-G46WJ7YO.js} +6 -6
  52. package/dist/bundle/{chunk-VQTYJ6XH.js → chunk-G6PETRMV.js} +3 -3
  53. package/dist/bundle/{chunk-QNG27PGH.js → chunk-GBHMT2IU.js} +21 -17
  54. package/dist/bundle/{chunk-FMMYBVCH.js → chunk-GGMAIIVE.js} +1 -1
  55. package/dist/bundle/{chunk-ZFRYFDZN.js → chunk-GTKPMYK7.js} +2 -2
  56. package/dist/bundle/{chunk-B2WBWKYN.js → chunk-GWGHH56B.js} +12 -12
  57. package/dist/bundle/{chunk-7JWVPJIP.js → chunk-HC6VN5CO.js} +10 -10
  58. package/dist/bundle/{chunk-F2J2FQUB.js → chunk-HP7A2ZOP.js} +9 -9
  59. package/dist/bundle/{chunk-GW2A2FJH.js → chunk-HZENBDW2.js} +8 -8
  60. package/dist/bundle/{chunk-UHMJSSQO.js → chunk-IANKXHSE.js} +1 -1
  61. package/dist/bundle/{chunk-IDUKCXL7.js → chunk-ICPJT672.js} +13 -9
  62. package/dist/bundle/{chunk-UUVWAVKN.js → chunk-JQ54DYAQ.js} +3 -3
  63. package/dist/bundle/{chunk-337ALCXQ.js → chunk-K5JGJIV2.js} +8 -8
  64. package/dist/bundle/{chunk-V3ZTAAJ6.js → chunk-KJ6USQDZ.js} +8 -8
  65. package/dist/bundle/{chunk-T2BHIC37.js → chunk-KKFY23AK.js} +65 -65
  66. package/dist/bundle/{chunk-J5EHZBO5.js → chunk-KQPUVXKX.js} +19 -3
  67. package/dist/bundle/{chunk-C4BBCSGK.js → chunk-KVJ3I7UL.js} +6 -6
  68. package/dist/bundle/{chunk-BZXHJKKI.js → chunk-KWU46LNK.js} +2 -2
  69. package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
  70. package/dist/bundle/{chunk-R6HP2XKD.js → chunk-L75SMSJR.js} +5 -5
  71. package/dist/bundle/{chunk-KZ3B6HW5.js → chunk-LAYYO4WD.js} +3 -3
  72. package/dist/bundle/{chunk-LGESUPKO.js → chunk-LEKKTJKK.js} +40 -26
  73. package/dist/bundle/{chunk-K7CTCDYX.js → chunk-M7H4MCAX.js} +6 -6
  74. package/dist/bundle/{chunk-L54I45OX.js → chunk-MAJJ4PG3.js} +13 -13
  75. package/dist/bundle/{chunk-ZMAPXIGC.js → chunk-MQLPZBMQ.js} +2 -2
  76. package/dist/bundle/{chunk-HHQROAJQ.js → chunk-N3JLO63O.js} +1 -1
  77. package/dist/bundle/{chunk-XWKUGAG6.js → chunk-N46F72AF.js} +14 -14
  78. package/dist/bundle/{chunk-GPRJXJC7.js → chunk-NB7EOAUZ.js} +22 -1
  79. package/dist/bundle/{chunk-HIFPHARA.js → chunk-NEMX3UNN.js} +4 -4
  80. package/dist/bundle/{chunk-5EWYDHBH.js → chunk-OBXQLFT5.js} +2 -2
  81. package/dist/bundle/{chunk-3M436OO2.js → chunk-OGNO35A2.js} +6 -6
  82. package/dist/bundle/{chunk-VAW7QGJA.js → chunk-OIPYBF43.js} +3 -3
  83. package/dist/bundle/{chunk-DMJLJVD3.js → chunk-OO4TRVPB.js} +7 -7
  84. package/dist/bundle/{chunk-RQFRXUI4.js → chunk-OQFQ77AY.js} +198 -112
  85. package/dist/bundle/{chunk-UPR2S5IE.js → chunk-PMUPN6JW.js} +8 -8
  86. package/dist/bundle/{chunk-4BU3LRTB.js → chunk-PSKTMMCO.js} +17 -17
  87. package/dist/bundle/{chunk-YNWBRDBX.js → chunk-PWVJUIDQ.js} +2 -2
  88. package/dist/bundle/{chunk-LECMHK2F.js → chunk-Q7ICVP25.js} +1 -1
  89. package/dist/bundle/{chunk-4FSH7K6N.js → chunk-QG6PILDO.js} +2 -2
  90. package/dist/bundle/{chunk-NM5XMKWO.js → chunk-QPHBK63S.js} +1 -1
  91. package/dist/bundle/{chunk-MBBR7QHI.js → chunk-QVSL5WJ7.js} +2501 -1062
  92. package/dist/bundle/{chunk-ZLYICF6A.js → chunk-QVYAV7F2.js} +4 -4
  93. package/dist/bundle/{chunk-IYNICUCC.js → chunk-R2B6PUVI.js} +4 -4
  94. package/dist/bundle/{chunk-Q26UFIH4.js → chunk-RQOZBTNI.js} +16 -3
  95. package/dist/bundle/{chunk-T7QPZYRZ.js → chunk-T7IAWEBU.js} +7 -7
  96. package/dist/bundle/{chunk-FXZPAGHT.js → chunk-TKNM22OH.js} +2 -2
  97. package/dist/bundle/{chunk-FXCR4DGU.js → chunk-TKVBFJ5C.js} +1 -1
  98. package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
  99. package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
  100. package/dist/bundle/{chunk-YIIGF643.js → chunk-UAWSINMC.js} +10 -10
  101. package/dist/bundle/{chunk-35FVYRH5.js → chunk-UKAAAOPC.js} +28 -179
  102. package/dist/bundle/{chunk-4ZXJ4AZW.js → chunk-UL2PXLKT.js} +26 -26
  103. package/dist/bundle/{chunk-UMPUY77T.js → chunk-UQCTXZEP.js} +10 -10
  104. package/dist/bundle/{chunk-L2ERFXB7.js → chunk-UR5DBODY.js} +35 -30
  105. package/dist/bundle/{chunk-EPASOAEI.js → chunk-V5EJSF2B.js} +230 -165
  106. package/dist/bundle/{chunk-5SEBLX6B.js → chunk-VB72LTSZ.js} +12 -12
  107. package/dist/bundle/{chunk-OEQNP56V.js → chunk-VB7FZOYX.js} +1 -1
  108. package/dist/bundle/{chunk-YISJJNXT.js → chunk-VS6WURLX.js} +3 -3
  109. package/dist/bundle/{chunk-3UX4VJWD.js → chunk-VZ5PPYDG.js} +3 -4
  110. package/dist/bundle/{chunk-R4CXFYQN.js → chunk-W5QHB53X.js} +180 -38
  111. package/dist/bundle/{chunk-D26K6756.js → chunk-WMANRJR5.js} +6 -6
  112. package/dist/bundle/chunk-WOPVBRPV.js +29 -0
  113. package/dist/bundle/{chunk-4BXLHSXY.js → chunk-XQ2WL3HB.js} +2 -2
  114. package/dist/bundle/{chunk-JK24A3RP.js → chunk-XQQVMECZ.js} +3 -3
  115. package/dist/bundle/{chunk-LVCCZI5A.js → chunk-Y6PVS55U.js} +38 -38
  116. package/dist/bundle/{chunk-NQGGTO3B.js → chunk-YJXJJ2XP.js} +8 -8
  117. package/dist/bundle/{chunk-46EF6P2J.js → chunk-YY7XKHDY.js} +10 -3
  118. package/dist/bundle/{chunk-WIX6BFRF.js → chunk-ZED2CJW5.js} +8 -8
  119. package/dist/bundle/chunk-ZOYOXWJB.js +746 -0
  120. package/dist/bundle/{cli-WTGAGSXV.js → cli-U4O5XB7J.js} +118 -116
  121. package/dist/bundle/command-contract-FBTK6GQX.js +45 -0
  122. package/dist/bundle/{command-server-entry-47CAYN3E.js → command-server-entry-KKH6ZWJV.js} +35 -35
  123. package/dist/bundle/config-FRJSIZNN.js +118 -0
  124. package/dist/bundle/{decode-2G7QS5IQ.js → decode-TPCNXEK4.js} +6 -6
  125. package/dist/bundle/{dispatch-ZAP3KBVJ.js → dispatch-FKMIPCPQ.js} +9 -9
  126. package/dist/bundle/{dist-WY6R3WH7.js → dist-7CLBCYZN.js} +23 -21
  127. package/dist/bundle/{echarts-YRRVLEX3.js → echarts-O3TNDAXJ.js} +2 -2
  128. package/dist/bundle/{embed-B5H3OW2O.js → embed-WCJSFVSK.js} +7 -7
  129. package/dist/bundle/{embedder-3O73SP6Y.js → embedder-TBBUPXBX.js} +10 -10
  130. package/dist/bundle/{failure-EYGW7JMC.js → failure-XTWBYI2A.js} +3 -3
  131. package/dist/bundle/first-run-ELEMFW42.js +29 -0
  132. package/dist/bundle/first-screen-DIOBWMKP.js +46 -0
  133. package/dist/bundle/{folders-4CGFWM6H.js → folders-LXOL4N4S.js} +5 -5
  134. package/dist/bundle/{instructions-AG7SRWTR.js → instructions-AMH5RWVJ.js} +1 -1
  135. package/dist/bundle/{main-DOGY6FJP.js → main-YAA7WQ23.js} +24 -24
  136. package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
  137. package/dist/bundle/meeting-combined-UXCF4SJ3.js +26 -0
  138. package/dist/bundle/meeting-model-3BZJ3EQP.js +26 -0
  139. package/dist/bundle/{meeting-semantic-FOEBWV3P.js → meeting-semantic-3HU7I2SJ.js} +8 -8
  140. package/dist/bundle/{meetings-PVE4C2NF.js → meetings-XWMB6FOH.js} +7 -7
  141. package/dist/bundle/{node-GJQYN4FT.js → node-EGMCBAO7.js} +2 -2
  142. package/dist/bundle/{node-sqlite-MLRYKVCQ.js → node-sqlite-IJBWENFX.js} +8 -8
  143. package/dist/bundle/{oauth-AC55C6SG.js → oauth-SZDDAP7A.js} +8 -8
  144. package/dist/bundle/{open-3LGTYP6M.js → open-NS3TMKZX.js} +6 -6
  145. package/dist/bundle/openai-4DN6WI3B.js +28 -0
  146. package/dist/bundle/{output-file-FXMTTLOI.js → output-file-2UB5JP3R.js} +6 -6
  147. package/dist/bundle/{process-MEKCZMX3.js → process-SGHEN6MQ.js} +1 -1
  148. package/dist/bundle/{program-E5BSSIGY.js → program-GVCGZP27.js} +105 -104
  149. package/dist/bundle/{prompt-AIA6QSZK.js → prompt-HJFMPFVC.js} +6 -6
  150. package/dist/bundle/public-C2ZB2AGQ.js +198 -0
  151. package/dist/bundle/{recognize-M57VNTEV.js → recognize-2SEI5PPM.js} +5 -5
  152. package/dist/bundle/{remote-3OTENZ7Z.js → remote-2DMS74XE.js} +11 -11
  153. package/dist/bundle/{rerank-P5WHDFDU.js → rerank-H6GCYVIA.js} +8 -8
  154. package/dist/bundle/run-log-QU26SUZP.js +145 -0
  155. package/dist/bundle/{serve-BRLC2QVV.js → serve-ODVRPFJO.js} +10 -10
  156. package/dist/bundle/server-NBPF6IDZ.js +95 -0
  157. package/dist/bundle/{server-25NF7DMS.js → server-PCLIO24L.js} +70 -68
  158. package/dist/bundle/{services-MJE43OGD.js → services-4QAPXBLO.js} +60 -56
  159. package/dist/bundle/{speech-4AVCWTQH.js → speech-MA6ZT3WE.js} +25 -25
  160. package/dist/bundle/{sqlite-runtime-U4TQXWMC.js → sqlite-runtime-PVMAUXRN.js} +7 -7
  161. package/dist/bundle/{state-GNUGVMY7.js → state-QFMTYUME.js} +7 -7
  162. package/dist/bundle/{store-KBFZVQWF.js → store-25OTAQC3.js} +25 -25
  163. package/dist/bundle/{store-MHVBFUBB.js → store-F724QIKJ.js} +34 -27
  164. package/dist/bundle/store-connection-OGPXANGB.js +111 -0
  165. package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +83 -0
  166. package/dist/bundle/{streaming-6F7AFEHD.js → streaming-S22C4DG5.js} +7 -7
  167. package/dist/bundle/surface-7PXHWCF6.js +81 -0
  168. package/dist/bundle/{tokens-BB4MQBLH.js → tokens-NLUHA2DW.js} +11 -11
  169. package/dist/bundle/zm.js +9 -9
  170. package/dist/bundle/{zoom-app-YTGOZ2FS.js → zoom-app-YWFB367P.js} +8 -8
  171. package/dist/version.d.ts +1 -1
  172. package/dist/version.js +1 -1
  173. package/package.json +3 -3
  174. package/dist/bundle/agent-VYAJCJLE.js +0 -45
  175. package/dist/bundle/answer-policy-PTH4F2DW.js +0 -129
  176. package/dist/bundle/chunk-EWEQ7AXL.js +0 -719
  177. package/dist/bundle/command-contract-3IKVWPDL.js +0 -45
  178. package/dist/bundle/config-ZOGOKGTU.js +0 -116
  179. package/dist/bundle/first-run-MPKMDEMA.js +0 -29
  180. package/dist/bundle/first-screen-AIAAC3KF.js +0 -45
  181. package/dist/bundle/meeting-combined-YKPKTKGA.js +0 -26
  182. package/dist/bundle/meeting-model-HTXSGHNM.js +0 -26
  183. package/dist/bundle/openai-E2MSLVIX.js +0 -28
  184. package/dist/bundle/run-log-EOQ4EQDS.js +0 -143
  185. package/dist/bundle/server-EW2RL2EL.js +0 -93
  186. package/dist/bundle/store-connection-SKRUAI4L.js +0 -109
  187. package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +0 -81
  188. package/dist/bundle/surface-DWEWB5RG.js +0 -79
@@ -1,17 +1,139 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ readSharedSection,
5
+ sharedConfigPath,
6
+ writeSharedSection
7
+ } from "./chunk-E745WZKY.js";
8
+ import {
9
+ storePath
10
+ } from "./chunk-274SLQNW.js";
3
11
  import {
4
12
  QUERY_REASONS
5
- } from "./chunk-YIIGF643.js";
13
+ } from "./chunk-UAWSINMC.js";
14
+ import {
15
+ defineReasons,
16
+ isoTimestamp,
17
+ picklist,
18
+ pipe,
19
+ safeParse,
20
+ strictObject,
21
+ string
22
+ } from "./chunk-ESN3W2MZ.js";
6
23
  import {
7
- defineReasons
8
- } from "./chunk-YRDQ54G5.js";
24
+ CliError
25
+ } from "./chunk-IANKXHSE.js";
9
26
  import {
10
27
  __name
11
28
  } from "./chunk-ZVVMGPBJ.js";
12
29
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/errors/reasons.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
31
+ var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
32
+ var SECTION = "chat_sending";
33
+ var Setting = strictObject({
34
+ mode: picklist(CHAT_SENDING_MODES),
35
+ at: pipe(string(), isoTimestamp())
36
+ });
37
+ var CHAT_SENDING_ASK_DETAILS = ["emails", "threads", "tokens", "host", "model", "estimated_cost_usd"];
38
+ var pathOf = /* @__PURE__ */ __name((env) => sharedConfigPath(storePath(env), env), "pathOf");
39
+ var readChatSending = /* @__PURE__ */ __name((env) => {
40
+ const section = readSharedSection(pathOf(env), SECTION);
41
+ if (section === void 0 || section === null)
42
+ return void 0;
43
+ const checked = safeParse(Setting, section);
44
+ return checked.success ? checked.output : { mode: "denied", at: (/* @__PURE__ */ new Date(0)).toISOString() };
45
+ }, "readChatSending");
46
+ var chatSendingMode = /* @__PURE__ */ __name((env) => readChatSending(env)?.mode ?? "ask", "chatSendingMode");
47
+ var writeChatSending = /* @__PURE__ */ __name((env, mode) => writeSharedSection(pathOf(env), SECTION, mode === "ask" ? void 0 : { mode, at: (/* @__PURE__ */ new Date()).toISOString() }), "writeChatSending");
48
+ var STRICTNESS = { allowed: 0, ask: 1, denied: 2 };
49
+ var loosens = /* @__PURE__ */ __name((from, to) => STRICTNESS[to] < STRICTNESS[from], "loosens");
50
+ var chatSendingCommand = /* @__PURE__ */ __name((command, mode) => `${command} models chats set ${mode}`, "chatSendingCommand");
51
+ var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
52
+ const mode = chatSendingMode(env);
53
+ if (mode === "denied")
54
+ throw new CliError("permission_error", `sending chat text to a model outside this computer is denied by the setting \`models chats\`; nothing was sent to ${host}, and --yes does not change that. Use a model on this computer, or ask the owner to run \`${chatSendingCommand(command, "ask")}\` (or \`allowed\`)`, { reason: "chat-sending.denied" });
55
+ return mode === "allowed";
56
+ }, "chatSendingAllowed");
57
+ var chatSendingAskRefusal = /* @__PURE__ */ __name((what, command, details = {}) => new CliError("confirmation_required", `${what} \u2014 add --yes to send them (an agent may pass yes), or ask the owner to run \`${chatSendingCommand(command, "allowed")}\` so no yes is needed`, { ...details, reason: "chat-sending.ask" }), "chatSendingAskRefusal");
58
+
59
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/errors/sftp-reasons.js
14
60
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
61
+ var SFTP = [
62
+ ["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
63
+ ["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
64
+ ["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
65
+ ["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
66
+ ["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
67
+ ["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
68
+ validation("sftp.too-large", "the file is larger than the read's byte limit"),
69
+ validation("sftp.closed", "the SFTP connection was closed before the operation"),
70
+ validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
71
+ ["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
72
+ ["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
73
+ ];
74
+
75
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/errors/store-reasons.js
76
+ var STORE = [
77
+ validation("store.refused", "the local store refused the document text"),
78
+ ["store.not-writable", "permission_error", "the message store cannot be written from this process"],
79
+ [
80
+ "store.damaged",
81
+ "configuration_error",
82
+ "the store file is damaged; store recover says what is lost and recovers it"
83
+ ],
84
+ [
85
+ "store.journal-replaced",
86
+ "conflict",
87
+ "another program deleted or replaced the store's journal file while it was open; store recover says what to do"
88
+ ],
89
+ validation("store.file-damaged", "the named store file is damaged or not a database"),
90
+ ["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
91
+ [
92
+ "store.unreadable",
93
+ "configuration_error",
94
+ "the store file's header or schema is damaged, so it cannot be recovered"
95
+ ],
96
+ validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
97
+ [
98
+ "store.sqlite3-missing",
99
+ "configuration_error",
100
+ "recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
101
+ ],
102
+ validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
103
+ validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
104
+ validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
105
+ [
106
+ "store.vector-extension-missing",
107
+ "configuration_error",
108
+ "the install has no sqlite-vec extension for this platform; reinstall the CLI"
109
+ ],
110
+ ["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
111
+ validation("store.vector-invalid", "a vector to store had a non-finite value")
112
+ ];
113
+ var STORE_MIGRATION = [
114
+ [
115
+ "store.unknown-columns",
116
+ "configuration_error",
117
+ "a migration would drop columns this store has and this build does not know; nothing was changed"
118
+ ],
119
+ [
120
+ "store.rows-break-checks",
121
+ "configuration_error",
122
+ "the store holds rows the new schema refuses, so it was not migrated; the rows are named"
123
+ ],
124
+ [
125
+ "store.rows-lost",
126
+ "configuration_error",
127
+ "a migration would change how many rows a table holds, so it was not run; the tables and counts are named"
128
+ ],
129
+ [
130
+ "store.foreign-keys",
131
+ "configuration_error",
132
+ "a migration would break references between rows, so it was not run; the store is whole"
133
+ ]
134
+ ];
135
+
136
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/errors/reasons.js
15
137
  var QUERY = [
16
138
  ["query.aborted", "the search was stopped before it finished"],
17
139
  ["query.conflict", "two parts of the query contradict each other"],
@@ -57,19 +179,42 @@ var SIGN_IN = [
57
179
  validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
58
180
  ["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
59
181
  ["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
182
+ ["account-remove.account-shared", "conflict", "another profile reads the same account, whose copy the store shares"],
183
+ ["session.duplicate", "conflict", "another profile here already signs in to this account as this user"],
184
+ [
185
+ "account-remove.account-unknown",
186
+ "conflict",
187
+ "which account another profile holds could not be read, so --delete-data waits"
188
+ ],
189
+ validation("profile.reserved", "the profile name is a folder every CRM account shares; pick another"),
60
190
  ["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
61
191
  ["account-remove.path-outside", "configuration_error", "the tool named a path outside its own folders"],
62
192
  [
63
193
  "account-remove.folder-outside",
64
194
  "configuration_error",
65
195
  "the tool named a folder of its own outside the home folder"
66
- ]
196
+ ],
197
+ ["account-rename.taken", "conflict", "the new name, or a file or keyring entry under it, already exists"],
198
+ ["account-rename.busy", "conflict", "a serve, a background service, a schedule or a sync uses this profile"],
199
+ ["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
200
+ ["account-rename.unconfirmed", "confirmation_required", "renaming a profile asks first; add --yes"],
201
+ ["account-rename.moved-run", "permission_error", "a run with moved folders never renames a profile"],
202
+ ["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"]
67
203
  ];
68
204
  var PROVIDER_API = [
69
205
  ["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
70
206
  validation("api.unknown-method", "the provider has no method by this name"),
71
207
  ["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
72
208
  ["manifest.invalid", "configuration_error", "the source manifest does not match its shape or the generated API"],
209
+ ["source.no-id", "invalid_response", "a row of the provider's answer has no id where the source manifest says"],
210
+ ["source.no-account", "invalid_response", "the provider's answer does not name the signed-in account"],
211
+ validation("source.token-invalid", "the change token is not one this source gave"),
212
+ [
213
+ "source.changes-too-many",
214
+ "invalid_response",
215
+ "more changed since one sync than a round reads, and the provider does not list changes oldest first"
216
+ ],
217
+ ["source.deletions-unchecked", "permission_error", "the provider refused its deletions; sync --rescan finds them"],
73
218
  ["verify.no-id", "provider_error", "the answer to the sign-in check holds no account id where auth.verify says"],
74
219
  ["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
75
220
  ["access.denied", "permission_error", "the provider refused this account access to the item"],
@@ -77,20 +222,8 @@ var PROVIDER_API = [
77
222
  ["file.not-found", "not_found", "the file named, or its folder, does not exist"],
78
223
  validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
79
224
  ["file.denied", "permission_error", "the file cannot be opened: permission denied"],
80
- validation("file.too-large", "the file is larger than the limit set for this read")
81
- ];
82
- var SFTP = [
83
- ["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
84
- ["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
85
- ["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
86
- ["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
87
- ["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
88
- ["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
89
- validation("sftp.too-large", "the file is larger than the read's byte limit"),
90
- validation("sftp.closed", "the SFTP connection was closed before the operation"),
91
- validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
92
- ["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
93
- ["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
225
+ validation("file.too-large", "the file is larger than the limit set for this read"),
226
+ validation("file.not-plain-text", "the file's text is extracted on a read; writing it back would replace the file")
94
227
  ];
95
228
  var SQL = [
96
229
  validation("sql.bad-identifier", "a table or column name is not a plain identifier"),
@@ -103,7 +236,29 @@ var SQL = [
103
236
  ["db.timeout", "timeout", "the database server did not answer in time"],
104
237
  ["db.failed", "provider_error", "the database server failed the query"]
105
238
  ];
239
+ var OFFICE = [
240
+ ["office.wrong-format", "the file is not the Office format the command edits, or its parts cannot be read"],
241
+ ["office.invalid-cell", "a cell is not an address like B7"],
242
+ ["office.invalid-value", "a value cannot be written: an infinite number, a cell text too long, an unknown style"],
243
+ ["office.no-sheet", "the workbook has no such sheet, or several when none is named"],
244
+ ["office.duplicate-edit", "the same cell or paragraph is changed twice in one call"],
245
+ ["office.formula-cell", "the cell holds a formula; --replace writes the value over it"],
246
+ ["office.shared-formula", "the cell holds a formula other cells share; replacing it would break theirs"],
247
+ ["office.array-formula", "the cell is part of an array formula; change it in Excel"],
248
+ ["office.rich-value", "the cell holds a picture or a linked data type, which the editor does not replace"],
249
+ ["office.table-header", "the cell is a table's header or total, whose part repeats the text; change it in Excel"],
250
+ ["office.implicit-rows", "the sheet has rows without numbers, so a row cannot be added"],
251
+ ["office.implicit-cells", "the row has cells without addresses, so a cell cannot be added"],
252
+ ["office.no-paragraph", "the document has no paragraph at that index"],
253
+ ["office.unsafe-paragraph", "the paragraph cannot be edited safely; documents show gives the reason"],
254
+ ["office.tracked-change", "the paragraph holds a tracked change"],
255
+ ["office.section-break", "the paragraph ends a section; deleting it would merge two sections"],
256
+ ["office.bookmark", "the paragraph holds a bookmark a cross-reference may point at"],
257
+ ["office.last-paragraph", "the delete would leave the document or a table cell without a paragraph"],
258
+ ["office.invalid-sheet-name", "a new sheet's name is empty, too long, repeated or holds a character Excel refuses"]
259
+ ].map(([reason, message]) => validation(reason, message));
106
260
  var OTHERS = [
261
+ ["office.file-exists", "conflict", "a file is there already; create never replaces one, update changes it"],
107
262
  validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
108
263
  validation("usage.unknown-command", "no command by this name; the CLI's help lists them"),
109
264
  validation("usage.unknown-option", "the command takes no option by this name; its help lists them"),
@@ -185,6 +340,11 @@ var OTHERS = [
185
340
  "nothing holds this agent to the CLI's commands, so no schedule starts it"
186
341
  ],
187
342
  ["read-only.output-outside", "permission_error", "a read-only process writes files only inside its working folder"],
343
+ [
344
+ "schedule.outside-folder",
345
+ "permission_error",
346
+ "schedule exec runs only a schedule file in the tool's own schedules folder"
347
+ ],
188
348
  [
189
349
  "agent.refused",
190
350
  "permission_error",
@@ -192,12 +352,26 @@ var OTHERS = [
192
352
  ],
193
353
  validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
194
354
  validation("document.changed", "the document changed while it was read; nothing was saved"),
355
+ validation("document.needs-ocr", "the PDF has no text layer; a documents sync reads it with OCR (read_scans)"),
356
+ validation("document.scan-unread", "OCR could not read the scan or picture; a sync tries again once the file changes"),
357
+ validation("document.scan-later", "OCR stopped at its page limit or a busy model; the next sync goes on"),
358
+ [
359
+ "document.scan-unturned",
360
+ "configuration_error",
361
+ "tesseract has no osd data, so a page on its side is read as it lies; install it to read scans again"
362
+ ],
195
363
  ["document.not-imported", "not_found", "the document is not imported in this source account"],
364
+ ["document.version-missing", "not_found", "the local copy holds no such version of the document"],
196
365
  ["document.not-found", "not_found", "no listed document has that reference"],
197
366
  ["state.unreadable", "configuration_error", "a sync state file cannot be read; move it away and sync again"],
198
367
  ["profile.busy", "provider_unavailable", "another sync or write holds this profile's local copy"],
199
368
  ["profile.account-taken", "conflict", "another profile here already uses this provider account"],
200
369
  ["profile.other-account", "conflict", "this profile's copy was synced from another provider account"],
370
+ [
371
+ "documents.other-account",
372
+ "configuration_error",
373
+ "the documents are signed in as another account than the tracker copy of the same provider"
374
+ ],
201
375
  ["profile.not-synced", "not_found", "the profile has no local copy yet; sync it first"],
202
376
  ["provider.failed", "provider_error", "a read from the provider failed"],
203
377
  ["identity.none", "not_found", "the provider shows no accounts on a document"],
@@ -213,6 +387,8 @@ var OTHERS = [
213
387
  validation("mail.cursor-ahead", "an acknowledge cursor is past the newest stored email"),
214
388
  ["mail.holder-not-yours", "permission_error", "a run moves only the mark of the holder its schedule names"],
215
389
  ["mail.no-mark", "not_found", "the holder has no mark in the mailbox yet; its first review starts it"],
390
+ ["mail.inbox-agent", "permission_error", "an agent sorts mail itself from review; inbox --offline lists"],
391
+ ["mail.inbox-answer-invalid", "invalid_response", "the AI model's answer to inbox is not the JSON it asks for"],
216
392
  ["mail.reset-owner-only", "permission_error", "only the owner moves a holder's mark back"],
217
393
  ["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
218
394
  ["mail.search-refused", "provider_error", "the mail server refused to search a folder"],
@@ -222,6 +398,11 @@ var OTHERS = [
222
398
  "the email could not be read again, so its skipped attachments have no text"
223
399
  ],
224
400
  ["mirror.partial", "provider_error", "some mirrored files were not synced"],
401
+ [
402
+ "mirror.stopped",
403
+ "timeout",
404
+ "the mirror's run reached its deadline before it was done; run it again with more time"
405
+ ],
225
406
  ["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
226
407
  ["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
227
408
  validation("mirror.not-folder", "the path to mirror is not a folder"),
@@ -231,12 +412,22 @@ var OTHERS = [
231
412
  "confirmation_required",
232
413
  "the sync would delete more files than the guard allows; check them with --dry-run and allow them explicitly"
233
414
  ],
415
+ [
416
+ "mirror.too-many-replacements",
417
+ "confirmation_required",
418
+ "the sync would replace more files than the guard allows; check them with --dry-run and allow them explicitly"
419
+ ],
420
+ validation("mirror.no-space", "the sync needs more free space than the local drive has"),
421
+ validation("mirror.bad-exclusion", "the exclusion is not a path pattern inside the mirror"),
234
422
  [
235
423
  "mirror.version-not-kept",
236
424
  "provider_error",
237
425
  "the earlier content could not be kept in the version store, so the sync did not replace it"
238
426
  ],
239
427
  ["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
428
+ ["mirror.local-changed", "conflict", "the local file changed since the conflict was found; nothing was written"],
429
+ ["mirror.no-conflict", "not_found", "the path has no recorded conflict; the last sync settled it or never saw one"],
430
+ ["upload.replace-interrupted", "conflict", "another file took the path during a replace; the new content is kept"],
240
431
  ["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
241
432
  ["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
242
433
  ["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
@@ -249,6 +440,7 @@ var OTHERS = [
249
440
  validation("push.too-many-files", "the folder holds more files than one push takes"),
250
441
  validation("push.unreadable", "the folder to push could not be read"),
251
442
  validation("spreadsheet.unreadable", "the workbook could not be read"),
443
+ ["config.unreadable", "configuration_error", "the config file cannot be read"],
252
444
  [
253
445
  "config.unrepairable",
254
446
  "configuration_error",
@@ -344,46 +536,11 @@ var OTHERS = [
344
536
  "outcome_unknown",
345
537
  "a message the server found was stored without its attachments; the next sync reads it whole"
346
538
  ],
347
- validation("store.refused", "the local store refused the document text"),
348
- ["store.not-writable", "permission_error", "the message store cannot be written from this process"],
349
- [
350
- "store.damaged",
351
- "configuration_error",
352
- "the store file is damaged; store recover says what is lost and recovers it"
353
- ],
354
- [
355
- "store.journal-replaced",
356
- "conflict",
357
- "another program deleted or replaced the store's journal file while it was open; store recover says what to do"
358
- ],
359
- validation("store.file-damaged", "the named store file is damaged or not a database"),
360
- ["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
361
- [
362
- "store.unreadable",
363
- "configuration_error",
364
- "the store file's header or schema is damaged, so it cannot be recovered"
365
- ],
366
- validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
367
- [
368
- "store.sqlite3-missing",
369
- "configuration_error",
370
- "recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
371
- ],
372
- validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
373
539
  [
374
540
  "serve.outdated",
375
541
  "configuration_error",
376
542
  "the store or the installed version is newer than this serve; it stopped so its unit starts the installed one"
377
543
  ],
378
- validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
379
- validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
380
- [
381
- "store.vector-extension-missing",
382
- "configuration_error",
383
- "the install has no sqlite-vec extension for this platform; reinstall the CLI"
384
- ],
385
- ["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
386
- validation("store.vector-invalid", "a vector to store had a non-finite value"),
387
544
  validation("evidence.quote-length", "a quote from the evidence is empty or over 500 characters"),
388
545
  validation("evidence.quote-not-found", "the cited source does not say the quoted words"),
389
546
  validation("evidence.row-too-large", "one evidence row is over its size limit"),
@@ -504,10 +661,21 @@ var OTHERS = [
504
661
  validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
505
662
  validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
506
663
  validation("crm.record-field", "a contact's or company's field is not valid"),
664
+ validation("crm.activity-field", "a comment's or task's field is not valid, or the kind does not take it"),
507
665
  validation("crm.owner-unknown", "owner: names no CRM user: me without a known sign-in user, or not a user id"),
508
666
  validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
509
- validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
510
- validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was, until --rescan"),
667
+ validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted, or the sign-in read only part; nothing was"),
668
+ validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was"),
669
+ validation("tracker.write-unsupported", "the tracker does not take this write, or does not recognise a repeated one"),
670
+ validation("tracker.field", "a field of an issue or a comment the tracker's write does not take as given"),
671
+ validation("tracker.reference", "a team, state, label, project, user or sprint no single row of the copy has by that name"),
672
+ validation("tracker.team-required", "a new issue needs its team: name one, or sync a copy that holds one"),
673
+ ["tracker.no-record", "invalid_response", "the tracker answered a write with no record and no error; sync and look"],
674
+ [
675
+ "tracker.kind-unread",
676
+ "permission_error",
677
+ "the sign-in cannot read this kind of the tracker; the copy has none of it"
678
+ ],
511
679
  validation("content.unlisted-held", "a content id list would mark too much deleted, the sign-in read only part, or the site moved; nothing was"),
512
680
  validation("content.conflict", "the post changed at the source since the last sync; sync, then write again"),
513
681
  validation("content.lossy-body", "the post's text holds blocks or embeds Markdown does not keep; --replace-body"),
@@ -522,6 +690,7 @@ var OTHERS = [
522
690
  validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
523
691
  validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
524
692
  validation("crm.activities-failed", "the activities and tasks could not be read; the deals and leads were synced"),
693
+ validation("crm.activities-unlisted-held", "a full list would mark most activities deleted; held until --rescan"),
525
694
  validation("crm.stage-history-failed", "the CRM's stage history could not be read; stage tasks wait for the next sync"),
526
695
  validation("crm.email-ambiguous", "a CRM contact's email belongs to more than one person; the owner decides"),
527
696
  validation("crm.own-unknown", "no own company of the CRM account is stored, so its users are no one's employees yet"),
@@ -560,11 +729,17 @@ var OTHERS = [
560
729
  validation("order.ref", "the reference names no order, or a shop's number names more than one"),
561
730
  validation("order.status", "a rejected or deleted order's status does not change"),
562
731
  ["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
732
+ [
733
+ "tracker.no-vectors",
734
+ "not_found",
735
+ "no issue, project or comment is embedded with the model yet; sync --embed builds them"
736
+ ],
563
737
  ["person.no-owner", "not_found", "no person is marked as the owner in the store"],
564
738
  ["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
565
739
  ["person.no-doubt", "not_found", "nothing about that person is in doubt; people links check lists who is"],
566
- validation("person.owner", "the owner's own person is not test data"),
740
+ validation("person.owner", "the owner's own person is not test data, and is never deleted"),
567
741
  validation("person.no-identity", "a person with no identity is not test data; there is nothing to hide"),
742
+ validation("person.erase-blocked", "an invoice, order, subscription or a row the person wrote still names them; change those first, nothing was deleted"),
568
743
  validation("person.from-required", "say whom the identity leaves: --from person:<uid>, or person:me for the owner"),
569
744
  [
570
745
  "identity.separated",
@@ -574,7 +749,7 @@ var OTHERS = [
574
749
  [
575
750
  "identity.owner-only",
576
751
  "permission_error",
577
- "only the owner undoes a merge, splits a person, confirms or undoes a link, or links an identity to themselves"
752
+ "only the owner undoes or confirms a merge, a split or a link, links an identity to themselves, or moves a sender"
578
753
  ],
579
754
  [
580
755
  "identity.stale",
@@ -604,11 +779,18 @@ var OTHERS = [
604
779
  validation("identity.agent-unnamed", "an agent's link names the agent, and never as the owner"),
605
780
  validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
606
781
  ["organization.not-found", "not_found", "no stored organization has that id"],
782
+ validation("organization.own", "the organization is one of your own companies and is never deleted"),
783
+ validation("organization.erase-blocked", "an invoice, order, subscription or a row the organization wrote still names it; change those first, nothing was deleted"),
607
784
  validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
608
785
  validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
609
786
  validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
610
787
  validation("identity.common-name", "more than six people have the name, so it proposes no one"),
788
+ validation("identity.not-a-person", "a bot, a program or an organization is never proposed as a person by name"),
611
789
  validation("identity.owner", "one side is the owner's person, and only the owner joins anyone to themselves"),
790
+ ["sender-bot.not-found", "not_found", "no sender bot has that id; people list kind:automated lists them"],
791
+ validation("sender-bot.owner", "the owner's own person is never a bot"),
792
+ validation("sender-bot.not-a-person", "the person named is a sender bot; name a person"),
793
+ validation("sender-bot.assignee", "a sender bot is no one's assignee; move it to a person first"),
612
794
  validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
613
795
  validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
614
796
  validation("identity-split.dedicated-review", "a split of a person is staged and decided through the people review"),
@@ -721,17 +903,22 @@ var INPUT_FIELD_REASONS = defineReasons([
721
903
  details: ["fields"]
722
904
  }
723
905
  ]);
906
+ var DETAILED = {
907
+ "vocabulary.consolidation-over-budget": ["table"],
908
+ "chat-sending.ask": CHAT_SENDING_ASK_DETAILS
909
+ };
724
910
  var REASONS = defineReasons([
725
911
  ...QUERY_REASONS,
726
912
  ...INPUT_FIELD_REASONS,
727
- ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OTHERS].map(([reason, code, message]) => ({
913
+ ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...STORE, ...STORE_MIGRATION, ...SQL, ...OFFICE, ...OTHERS].map(([reason, code, message]) => ({
728
914
  reason,
729
915
  code,
730
916
  message,
731
- details: reason === "vocabulary.consolidation-over-budget" ? ["table"] : []
917
+ details: DETAILED[reason] ?? []
732
918
  }))
733
919
  ]);
734
920
  var DETAILS = [
921
+ "account",
735
922
  "holders",
736
923
  "profile",
737
924
  "contracts",
@@ -823,6 +1010,13 @@ var failureContext = /* @__PURE__ */ __name((errors) => {
823
1010
  }, "failureContext");
824
1011
 
825
1012
  export {
1013
+ CHAT_SENDING_MODES,
1014
+ readChatSending,
1015
+ chatSendingMode,
1016
+ writeChatSending,
1017
+ loosens,
1018
+ chatSendingAllowed,
1019
+ chatSendingAskRefusal,
826
1020
  INPUT_FIELD_REASONS,
827
1021
  REASONS,
828
1022
  DETAILS,
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  decodeOgg
6
- } from "./chunk-WKNYNK7W.js";
6
+ } from "./chunk-52Y4ETKU.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
10
10
  import {
11
11
  CliError
12
- } from "./chunk-UHMJSSQO.js";
12
+ } from "./chunk-IANKXHSE.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/speech/decode.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/speech/decode.js
18
18
  import { spawn } from "node:child_process";
19
19
  import { mkdtemp, open, readFile, rm, writeFile } from "node:fs/promises";
20
20
  import { createRequire } from "node:module";
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateFormattedText
5
- } from "./chunk-7JWVPJIP.js";
5
+ } from "./chunk-HC6VN5CO.js";
6
6
  import {
7
7
  inputPolicy
8
- } from "./chunk-5EWYDHBH.js";
8
+ } from "./chunk-OBXQLFT5.js";
9
9
  import {
10
10
  RECORDS_SCHEMA_VERSION,
11
11
  RECORD_TYPES,
12
12
  pointerOf
13
- } from "./chunk-LGESUPKO.js";
13
+ } from "./chunk-LEKKTJKK.js";
14
14
  import {
15
15
  indent
16
- } from "./chunk-N5ROXGY4.js";
16
+ } from "./chunk-6CWL5BKG.js";
17
17
  import {
18
18
  CliError
19
- } from "./chunk-UHMJSSQO.js";
19
+ } from "./chunk-IANKXHSE.js";
20
20
  import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/checks.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/checks.js
25
25
  var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
26
26
  var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
27
27
  var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/markdown.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/markdown.js
30
30
  var MARKERS = [
31
31
  ["**", "bold"],
32
32
  ["~~", "strike"],
@@ -72,7 +72,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
72
72
  return end;
73
73
  }, "closing");
74
74
 
75
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
75
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
76
76
  var STYLES = [
77
77
  ["**", "bold"],
78
78
  ["__", "underline"],
@@ -232,7 +232,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
232
232
  return validateFormattedText(result);
233
233
  }, "parseMarkdownSpans");
234
234
 
235
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/polls.js
235
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/polls.js
236
236
  var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
237
237
  const cast = votes.filter((vote) => vote.answers.length > 0);
238
238
  const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
@@ -247,7 +247,7 @@ var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
247
247
  };
248
248
  }, "countedPoll");
249
249
 
250
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/records-table.js
250
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/records-table.js
251
251
  var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => RECORD_TYPES[type].sheet !== false);
252
252
  var TableError = class extends Error {
253
253
  static {
@@ -2237,7 +2237,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
2237
2237
  var qrcode_default = qrcode;
2238
2238
  var stringToBytes = qrcode.stringToBytes;
2239
2239
 
2240
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/terminal/qr.js
2240
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/terminal/qr.js
2241
2241
  var QUIET_ZONE = 4;
2242
2242
  var BLACK_ON_WHITE = "\x1B[30;107m";
2243
2243
  var RESET = "\x1B[0m";
@@ -2284,7 +2284,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
2284
2284
  return lines.join("\n");
2285
2285
  }, "plainQr");
2286
2286
 
2287
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
2287
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
2288
2288
  var MARGIN = 2;
2289
2289
  var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
2290
2290
  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,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
8
8
  var CONTROL = (
9
9
  // biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
10
10
  /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu