@wirecat/amo-cli 0.4.0 → 0.6.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 (173) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/contracts/wirecat.json +2 -1
  3. package/dist/amo/allow-list.d.ts +1 -1
  4. package/dist/amo/allow-list.d.ts.map +1 -1
  5. package/dist/amo/oauth.d.ts.map +1 -1
  6. package/dist/amo/oauth.js +3 -4
  7. package/dist/amo/oauth.js.map +1 -1
  8. package/dist/amo/operation.d.ts +1 -1
  9. package/dist/amo/operation.d.ts.map +1 -1
  10. package/dist/amo/transport.d.ts.map +1 -1
  11. package/dist/amo/transport.js +3 -6
  12. package/dist/amo/transport.js.map +1 -1
  13. package/dist/bin/amo.js +2 -2
  14. package/dist/bundle/agent-VVACEKSX.js +42 -0
  15. package/dist/bundle/{all-profiles-PRNXEZRH.js → all-profiles-QNUKL4NA.js} +11 -11
  16. package/dist/bundle/amo.js +28 -28
  17. package/dist/bundle/{anthropic-FDI24DU2.js → anthropic-PQN6MNP7.js} +5 -5
  18. package/dist/bundle/{app-server-WAKJVDLN.js → app-server-Q2QEA7GP.js} +71 -69
  19. package/dist/bundle/areas-27FRPBF3.js +71 -0
  20. package/dist/bundle/{bun-YPXUXMBI.js → bun-F4M4KCNA.js} +2 -2
  21. package/dist/bundle/{bun-sqlite-UBQ5M47X.js → bun-sqlite-P5IDBDVR.js} +6 -6
  22. package/dist/bundle/{chunk-G3LAYJJJ.js → chunk-22KAQPX7.js} +4 -4
  23. package/dist/bundle/{chunk-XEYT2EQT.js → chunk-2JGNMZ55.js} +6 -6
  24. package/dist/bundle/{chunk-PL7TNKAY.js → chunk-2VDHC7QO.js} +2 -2
  25. package/dist/bundle/{chunk-BCIZAUDV.js → chunk-34ZOMVUK.js} +9 -9
  26. package/dist/bundle/{chunk-SHOSFYI7.js → chunk-3J3EDSXF.js} +20 -84
  27. package/dist/bundle/{chunk-ELAKOEIO.js → chunk-3TYER5IK.js} +14 -6
  28. package/dist/bundle/{chunk-NFWD4QX3.js → chunk-5NGLCDYQ.js} +2 -2
  29. package/dist/bundle/{chunk-NKYWQTS2.js → chunk-5SQTHOBI.js} +270 -252
  30. package/dist/bundle/{chunk-Z2B3VNRI.js → chunk-6GE36KUE.js} +11 -11
  31. package/dist/bundle/{chunk-GQKEMBM6.js → chunk-6GZKY3HV.js} +121 -36
  32. package/dist/bundle/{chunk-M54YKD3I.js → chunk-6OV2TRGF.js} +7 -7
  33. package/dist/bundle/{chunk-MW7HUD6R.js → chunk-7CPIZFOE.js} +9 -9
  34. package/dist/bundle/{chunk-TIR3AB35.js → chunk-A5K2NU3K.js} +913 -795
  35. package/dist/bundle/{chunk-5HZMXHRH.js → chunk-AEC4H5WZ.js} +6 -6
  36. package/dist/bundle/{chunk-WAFB3IWJ.js → chunk-APBEDWOE.js} +5 -5
  37. package/dist/bundle/{chunk-V5SETIQK.js → chunk-AQ5RIOUE.js} +1 -1
  38. package/dist/bundle/{chunk-RQPB2BSH.js → chunk-B7L5MSRP.js} +2 -2
  39. package/dist/bundle/{chunk-HZZ56JO7.js → chunk-C7JPYWYQ.js} +1 -1
  40. package/dist/bundle/{chunk-KRD375P7.js → chunk-DIZEHPS6.js} +39 -30
  41. package/dist/bundle/{chunk-TCSVW7BA.js → chunk-DNCLQPOM.js} +1 -1
  42. package/dist/bundle/{chunk-WASBOYI2.js → chunk-DPV53EZC.js} +4 -4
  43. package/dist/bundle/{chunk-HDZNSOV5.js → chunk-DUPCDJ3W.js} +14 -10
  44. package/dist/bundle/{chunk-YHVHDRED.js → chunk-DWT24UVR.js} +6 -6
  45. package/dist/bundle/chunk-DXWJORSY.js +1703 -0
  46. package/dist/bundle/{chunk-E3EWS6DF.js → chunk-DY3PLWIH.js} +6 -6
  47. package/dist/bundle/{chunk-A4W7J6VN.js → chunk-DYWHAJRK.js} +37 -190
  48. package/dist/bundle/{chunk-LAR2DLTI.js → chunk-EXRM3ML4.js} +4 -4
  49. package/dist/bundle/{chunk-ZJC2XJQC.js → chunk-FFER7KJI.js} +13 -13
  50. package/dist/bundle/{chunk-V2QWX6B3.js → chunk-FIP2DG7W.js} +3 -3
  51. package/dist/bundle/{chunk-5II6TAJE.js → chunk-FTH6WGYO.js} +1 -1
  52. package/dist/bundle/{chunk-2AIG2SSJ.js → chunk-FWRLGIF6.js} +1668 -169
  53. package/dist/bundle/{chunk-DWD3KDJA.js → chunk-FYOPPKAN.js} +1 -1
  54. package/dist/bundle/{chunk-ABMPZL2P.js → chunk-G3N2RHGF.js} +19 -15
  55. package/dist/bundle/{chunk-GBQ76X6T.js → chunk-G46PNDWL.js} +2 -2
  56. package/dist/bundle/{chunk-VG26HDKH.js → chunk-G6NY7LFB.js} +4 -4
  57. package/dist/bundle/{chunk-5SJEJYQZ.js → chunk-GOCMJBEE.js} +3 -3
  58. package/dist/bundle/{chunk-3K6T2G52.js → chunk-GRGCZSES.js} +6 -6
  59. package/dist/bundle/{chunk-4PQECIU2.js → chunk-GVSKLZRD.js} +2 -2
  60. package/dist/bundle/{chunk-UEN5NWNW.js → chunk-GZ7WBU5Y.js} +1 -1
  61. package/dist/bundle/{chunk-KQZTX4LM.js → chunk-HN2LCLGT.js} +19 -19
  62. package/dist/bundle/{chunk-SFZVMKB6.js → chunk-HO4JGD4Q.js} +1 -1
  63. package/dist/bundle/{chunk-SZX7EPPY.js → chunk-HOF7GQWW.js} +4 -4
  64. package/dist/bundle/chunk-HUAHLO6N.js +29 -0
  65. package/dist/bundle/chunk-IDCZ4LWS.js +150 -0
  66. package/dist/bundle/{chunk-23AQD7JU.js → chunk-IN3VL7UU.js} +18 -17
  67. package/dist/bundle/{chunk-QGFURWEP.js → chunk-ISQ23VKV.js} +8 -1
  68. package/dist/bundle/{chunk-PLU2IQXC.js → chunk-JVBCQHCS.js} +3 -3
  69. package/dist/bundle/{chunk-VEFAYLKX.js → chunk-K5W7YEHB.js} +187 -114
  70. package/dist/bundle/{chunk-PIOR6PIO.js → chunk-KAFSS35C.js} +2 -2
  71. package/dist/bundle/{chunk-VG2ERHFJ.js → chunk-KLRCTMES.js} +3 -3
  72. package/dist/bundle/{chunk-KORZEYZN.js → chunk-KYRYD4CR.js} +1 -1
  73. package/dist/bundle/{chunk-FEUNZG7U.js → chunk-LBZSURLL.js} +38 -38
  74. package/dist/bundle/{chunk-EAX5RO7S.js → chunk-LC7ZD2RW.js} +1 -1
  75. package/dist/bundle/{chunk-O3WE5IGP.js → chunk-LH6FJYMO.js} +6 -6
  76. package/dist/bundle/{chunk-DWA5TZMP.js → chunk-LJKINNWC.js} +8 -8
  77. package/dist/bundle/{chunk-U46RNOEQ.js → chunk-M36XP74N.js} +3 -3
  78. package/dist/bundle/chunk-MNPGZCKE.js +361 -0
  79. package/dist/bundle/{chunk-WR2FPZTE.js → chunk-MRPMORLH.js} +8 -8
  80. package/dist/bundle/{chunk-CEBX63XY.js → chunk-NNREILWP.js} +8 -8
  81. package/dist/bundle/chunk-NSOY4FMN.js +159 -0
  82. package/dist/bundle/{chunk-SNBYFQHT.js → chunk-OEEWVKJX.js} +1 -1
  83. package/dist/bundle/{chunk-YREKMP24.js → chunk-OGJFDKDL.js} +4 -4
  84. package/dist/bundle/chunk-PATZAYFZ.js +453 -0
  85. package/dist/bundle/chunk-PCR6GFNP.js +1171 -0
  86. package/dist/bundle/{chunk-3PCVQCCV.js → chunk-Q4MH2O5E.js} +2 -2
  87. package/dist/bundle/{chunk-7OVTUADG.js → chunk-QFOP3KUP.js} +8 -8
  88. package/dist/bundle/{chunk-YFRTEJ6V.js → chunk-QQRJEWKB.js} +7 -7
  89. package/dist/bundle/{chunk-GJBOZAUD.js → chunk-RNWUCAJJ.js} +3 -3
  90. package/dist/bundle/{chunk-AP3CWDRK.js → chunk-S6JG4YUH.js} +2 -2
  91. package/dist/bundle/{chunk-KBAOJISR.js → chunk-SDVUGWD7.js} +7 -7
  92. package/dist/bundle/{chunk-WEWJA42Q.js → chunk-SEFE6PGL.js} +12 -12
  93. package/dist/bundle/{chunk-6PILR4AX.js → chunk-SWCJM3YD.js} +2 -2
  94. package/dist/bundle/{chunk-TEGQVVCZ.js → chunk-SYRDEMQE.js} +16709 -13048
  95. package/dist/bundle/{chunk-NXNUCGGO.js → chunk-SYYQZDHJ.js} +6 -6
  96. package/dist/bundle/{chunk-SMM7GS4Q.js → chunk-T3W4V4A6.js} +1 -1
  97. package/dist/bundle/{chunk-EBNCUQLV.js → chunk-TCT5D2X2.js} +1 -1
  98. package/dist/bundle/{chunk-ASU63X5C.js → chunk-TES7MB6I.js} +2 -2
  99. package/dist/bundle/{chunk-745FMNI5.js → chunk-TXDR6YSF.js} +1 -1
  100. package/dist/bundle/{chunk-3WG4MTQI.js → chunk-TY7NDMFY.js} +1 -1
  101. package/dist/bundle/{chunk-AN6IJYH3.js → chunk-U6XPWCWM.js} +5 -5
  102. package/dist/bundle/{chunk-LZ4IWN43.js → chunk-UFKC7TIX.js} +1617 -1990
  103. package/dist/bundle/{chunk-IPNIF5JE.js → chunk-UNWF3TH5.js} +4 -4
  104. package/dist/bundle/{chunk-6QMSKJB4.js → chunk-W3BOR6AT.js} +8 -8
  105. package/dist/bundle/{chunk-SCMB4LI6.js → chunk-WIHN3ELW.js} +19 -19
  106. package/dist/bundle/{chunk-UCM7C773.js → chunk-X76RS6JO.js} +178 -61
  107. package/dist/bundle/{chunk-GMHRPX5M.js → chunk-YF3S26TS.js} +61 -61
  108. package/dist/bundle/{chunk-ZKRWNL4T.js → chunk-ZCQ4H7CA.js} +2 -2
  109. package/dist/bundle/{chunk-CYHIM5SL.js → chunk-ZOZV32IR.js} +3 -3
  110. package/dist/bundle/{chunk-OYMHPQF7.js → chunk-ZTKHXDEU.js} +4 -4
  111. package/dist/bundle/{cli-QDPKC2HJ.js → cli-EAD3WZLR.js} +119 -105
  112. package/dist/bundle/command-contract-SMEJ2ICG.js +40 -0
  113. package/dist/bundle/{command-server-entry-TX7WNN7G.js → command-server-entry-YTZP6I4T.js} +29 -28
  114. package/dist/bundle/{decode-BLPC7OYE.js → decode-57BE5OBT.js} +5 -5
  115. package/dist/bundle/{dispatch-5JUT55CS.js → dispatch-56FECRCU.js} +8 -8
  116. package/dist/bundle/{echarts-54D3FOCL.js → echarts-QMAA7HH5.js} +2 -2
  117. package/dist/bundle/{embed-O7KMDYM7.js → embed-NFGFYUO4.js} +6 -6
  118. package/dist/bundle/{embedder-4PE67CLX.js → embedder-SRBOJMXX.js} +9 -9
  119. package/dist/bundle/{failure-NNQYTB3Z.js → failure-WDSX6H3B.js} +2 -2
  120. package/dist/bundle/{first-run-EAU5SHBI.js → first-run-HWRUL2GR.js} +12 -12
  121. package/dist/bundle/first-screen-ATN4D3FQ.js +41 -0
  122. package/dist/bundle/{instructions-ONXP5DZQ.js → instructions-4H7UREH2.js} +1 -1
  123. package/dist/bundle/{mcp-ZNULRPZ4.js → mcp-5HFPWC3W.js} +2 -2
  124. package/dist/bundle/meeting-combined-BGDEHCWY.js +26 -0
  125. package/dist/bundle/{meeting-model-FWIZRKVN.js → meeting-model-WWGVRXPL.js} +11 -11
  126. package/dist/bundle/{meeting-semantic-M4YVJ57W.js → meeting-semantic-ZQ47BL2Z.js} +6 -6
  127. package/dist/bundle/{node-UTQCYQF5.js → node-P3PUHKYH.js} +2 -2
  128. package/dist/bundle/{node-sqlite-APJG6MGL.js → node-sqlite-JOTSNH3P.js} +7 -7
  129. package/dist/bundle/{oauth-TY7RMIBL.js → oauth-XPSAL6VO.js} +7 -7
  130. package/dist/bundle/{open-WDVEQL75.js → open-PO52FVA5.js} +5 -5
  131. package/dist/bundle/{openai-H5UJHSEZ.js → openai-WITYLMY5.js} +15 -15
  132. package/dist/bundle/{process-MGMXXPMY.js → process-AFIXYXWL.js} +1 -1
  133. package/dist/bundle/{program-IF36C6VR.js → program-JODTZNBZ.js} +331 -196
  134. package/dist/bundle/{prompt-4RLIWLMF.js → prompt-XORLAXHY.js} +5 -5
  135. package/dist/bundle/{recognize-UIRTMWM4.js → recognize-JKMZHDYS.js} +4 -4
  136. package/dist/bundle/{remote-L3MNWZQK.js → remote-3IMEJTEH.js} +9 -9
  137. package/dist/bundle/{rerank-F4KZQTY6.js → rerank-3F2E6NNN.js} +7 -7
  138. package/dist/bundle/{serve-37AUYTWS.js → serve-6BWU3NMB.js} +9 -9
  139. package/dist/bundle/{server-UBG676ZJ.js → server-GPSB5WFG.js} +63 -61
  140. package/dist/bundle/server-HMCC64ZU.js +88 -0
  141. package/dist/bundle/source-E72OS27D.js +47 -0
  142. package/dist/bundle/{sqlite-runtime-CI3RW7VA.js → sqlite-runtime-YHYQDUXE.js} +6 -6
  143. package/dist/bundle/{state-JOHLSLUO.js → state-R7W4U6T4.js} +6 -6
  144. package/dist/bundle/{store-OSOUXBYL.js → store-HTVRL7FB.js} +56 -43
  145. package/dist/bundle/store-IWW6U6QN.js +34 -0
  146. package/dist/bundle/{store-2MBG4IUS.js → store-TBZ3ZS6H.js} +25 -23
  147. package/dist/bundle/store-maintenance-command-CJM2VLMW.js +75 -0
  148. package/dist/bundle/surface-5GBWNYBE.js +74 -0
  149. package/dist/bundle/writer-TW2Q55VJ.js +49 -0
  150. package/dist/commands/crm-shared.js +1 -1
  151. package/dist/commands/crm-shared.js.map +1 -1
  152. package/dist/commands/session.d.ts.map +1 -1
  153. package/dist/commands/session.js +1 -6
  154. package/dist/commands/session.js.map +1 -1
  155. package/dist/version.d.ts +1 -1
  156. package/dist/version.js +1 -1
  157. package/package.json +4 -4
  158. package/skills/amo-cli/SKILL.md +6 -0
  159. package/dist/bundle/agent-43BMVBX2.js +0 -40
  160. package/dist/bundle/chunk-2UJ7ZZZC.js +0 -79
  161. package/dist/bundle/chunk-FQRP6JWX.js +0 -29
  162. package/dist/bundle/chunk-IBEHYGG6.js +0 -721
  163. package/dist/bundle/chunk-M33XHJTM.js +0 -1266
  164. package/dist/bundle/chunk-S6DTLAOB.js +0 -761
  165. package/dist/bundle/command-contract-KWNCP3MQ.js +0 -39
  166. package/dist/bundle/first-screen-APSNGZYZ.js +0 -39
  167. package/dist/bundle/meeting-combined-W2XIYXFU.js +0 -24
  168. package/dist/bundle/server-CRF4QSZR.js +0 -86
  169. package/dist/bundle/source-Z7GH7T4B.js +0 -44
  170. package/dist/bundle/store-SNW6U32Y.js +0 -34
  171. package/dist/bundle/store-maintenance-command-W7V54SLT.js +0 -73
  172. package/dist/bundle/surface-ESJS2FUI.js +0 -72
  173. package/dist/bundle/writer-BJDQMKUV.js +0 -46
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  QUERY_REASONS
5
- } from "./chunk-GMHRPX5M.js";
5
+ } from "./chunk-YF3S26TS.js";
6
6
  import {
7
7
  readSharedSection,
8
8
  sharedConfigPath,
9
9
  writeSharedSection
10
- } from "./chunk-YFRTEJ6V.js";
10
+ } from "./chunk-QQRJEWKB.js";
11
11
  import {
12
12
  storePath
13
- } from "./chunk-ZKRWNL4T.js";
13
+ } from "./chunk-ZCQ4H7CA.js";
14
14
  import {
15
15
  defineReasons,
16
16
  isoTimestamp,
@@ -19,15 +19,15 @@ import {
19
19
  safeParse,
20
20
  strictObject,
21
21
  string
22
- } from "./chunk-7OVTUADG.js";
22
+ } from "./chunk-QFOP3KUP.js";
23
23
  import {
24
24
  CliError
25
- } from "./chunk-AP3CWDRK.js";
25
+ } from "./chunk-S6JG4YUH.js";
26
26
  import {
27
27
  __name
28
28
  } from "./chunk-ZVVMGPBJ.js";
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
31
31
  var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
32
32
  var SECTION = "chat_sending";
33
33
  var Setting = strictObject({
@@ -56,8 +56,85 @@ var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
56
56
  }, "chatSendingAllowed");
57
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
58
 
59
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/errors/reasons.js
59
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/errors/sftp-reasons.js
60
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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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
+ ["store.busy", "conflict", "another process held the store for longer than this command waits; run it again"],
90
+ validation("store.file-damaged", "the named store file is damaged or not a database"),
91
+ ["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
92
+ [
93
+ "store.unreadable",
94
+ "configuration_error",
95
+ "the store file's header or schema is damaged, so it cannot be recovered"
96
+ ],
97
+ validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
98
+ [
99
+ "store.sqlite3-missing",
100
+ "configuration_error",
101
+ "recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
102
+ ],
103
+ validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
104
+ validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
105
+ validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
106
+ [
107
+ "store.vector-extension-missing",
108
+ "configuration_error",
109
+ "the install has no sqlite-vec extension for this platform; reinstall the CLI"
110
+ ],
111
+ ["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
112
+ validation("store.vector-invalid", "a vector to store had a non-finite value")
113
+ ];
114
+ var STORE_MIGRATION = [
115
+ [
116
+ "store.unknown-columns",
117
+ "configuration_error",
118
+ "a migration would drop columns this store has and this build does not know; nothing was changed"
119
+ ],
120
+ [
121
+ "store.rows-break-checks",
122
+ "configuration_error",
123
+ "the store holds rows the new schema refuses, so it was not migrated; the rows are named"
124
+ ],
125
+ [
126
+ "store.rows-lost",
127
+ "configuration_error",
128
+ "a migration would change how many rows a table holds, so it was not run; the tables and counts are named"
129
+ ],
130
+ [
131
+ "store.foreign-keys",
132
+ "configuration_error",
133
+ "a migration would break references between rows, so it was not run; the store is whole"
134
+ ]
135
+ ];
136
+
137
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/errors/reasons.js
61
138
  var QUERY = [
62
139
  ["query.aborted", "the search was stopped before it finished"],
63
140
  ["query.conflict", "two parts of the query contradict each other"],
@@ -123,8 +200,7 @@ var SIGN_IN = [
123
200
  ["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
124
201
  ["account-rename.unconfirmed", "confirmation_required", "renaming a profile asks first; add --yes"],
125
202
  ["account-rename.moved-run", "permission_error", "a run with moved folders never renames a profile"],
126
- ["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"],
127
- ["account-rename.config", "configuration_error", "the config file cannot be read"]
203
+ ["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"]
128
204
  ];
129
205
  var PROVIDER_API = [
130
206
  ["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
@@ -139,6 +215,7 @@ var PROVIDER_API = [
139
215
  "invalid_response",
140
216
  "more changed since one sync than a round reads, and the provider does not list changes oldest first"
141
217
  ],
218
+ ["source.deletions-unchecked", "permission_error", "the provider refused its deletions; sync --rescan finds them"],
142
219
  ["verify.no-id", "provider_error", "the answer to the sign-in check holds no account id where auth.verify says"],
143
220
  ["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
144
221
  ["access.denied", "permission_error", "the provider refused this account access to the item"],
@@ -149,19 +226,6 @@ var PROVIDER_API = [
149
226
  validation("file.too-large", "the file is larger than the limit set for this read"),
150
227
  validation("file.not-plain-text", "the file's text is extracted on a read; writing it back would replace the file")
151
228
  ];
152
- var SFTP = [
153
- ["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
154
- ["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
155
- ["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
156
- ["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
157
- ["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
158
- ["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
159
- validation("sftp.too-large", "the file is larger than the read's byte limit"),
160
- validation("sftp.closed", "the SFTP connection was closed before the operation"),
161
- validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
162
- ["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
163
- ["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
164
- ];
165
229
  var SQL = [
166
230
  validation("sql.bad-identifier", "a table or column name is not a plain identifier"),
167
231
  ["sql.library-missing", "configuration_error", "this database needs the mysql2 or pg package in the CLI"],
@@ -173,7 +237,29 @@ var SQL = [
173
237
  ["db.timeout", "timeout", "the database server did not answer in time"],
174
238
  ["db.failed", "provider_error", "the database server failed the query"]
175
239
  ];
240
+ var OFFICE = [
241
+ ["office.wrong-format", "the file is not the Office format the command edits, or its parts cannot be read"],
242
+ ["office.invalid-cell", "a cell is not an address like B7"],
243
+ ["office.invalid-value", "a value cannot be written: an infinite number, a cell text too long, an unknown style"],
244
+ ["office.no-sheet", "the workbook has no such sheet, or several when none is named"],
245
+ ["office.duplicate-edit", "the same cell or paragraph is changed twice in one call"],
246
+ ["office.formula-cell", "the cell holds a formula; --replace writes the value over it"],
247
+ ["office.shared-formula", "the cell holds a formula other cells share; replacing it would break theirs"],
248
+ ["office.array-formula", "the cell is part of an array formula; change it in Excel"],
249
+ ["office.rich-value", "the cell holds a picture or a linked data type, which the editor does not replace"],
250
+ ["office.table-header", "the cell is a table's header or total, whose part repeats the text; change it in Excel"],
251
+ ["office.implicit-rows", "the sheet has rows without numbers, so a row cannot be added"],
252
+ ["office.implicit-cells", "the row has cells without addresses, so a cell cannot be added"],
253
+ ["office.no-paragraph", "the document has no paragraph at that index"],
254
+ ["office.unsafe-paragraph", "the paragraph cannot be edited safely; documents show gives the reason"],
255
+ ["office.tracked-change", "the paragraph holds a tracked change"],
256
+ ["office.section-break", "the paragraph ends a section; deleting it would merge two sections"],
257
+ ["office.bookmark", "the paragraph holds a bookmark a cross-reference may point at"],
258
+ ["office.last-paragraph", "the delete would leave the document or a table cell without a paragraph"],
259
+ ["office.invalid-sheet-name", "a new sheet's name is empty, too long, repeated or holds a character Excel refuses"]
260
+ ].map(([reason, message]) => validation(reason, message));
176
261
  var OTHERS = [
262
+ ["office.file-exists", "conflict", "a file is there already; create never replaces one, update changes it"],
177
263
  validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
178
264
  validation("usage.unknown-command", "no command by this name; the CLI's help lists them"),
179
265
  validation("usage.unknown-option", "the command takes no option by this name; its help lists them"),
@@ -181,6 +267,7 @@ var OTHERS = [
181
267
  ["enrichment.owner-only", "permission_error", "only the owner turns enrichment on, not an agent"],
182
268
  ["search-harder.owner-only", "permission_error", "only the owner allows search all --harder, not an agent"],
183
269
  ["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
270
+ ["domain-lists.offline", "permission_error", "updating the domain lists needs the network; --offline was requested"],
184
271
  ["model.key-rejected", "invalid_response", "the model provider refused the API key (401 or 403)"],
185
272
  ["model.unreachable", "invalid_response", "the model provider could not be reached over the network"],
186
273
  [
@@ -255,6 +342,11 @@ var OTHERS = [
255
342
  "nothing holds this agent to the CLI's commands, so no schedule starts it"
256
343
  ],
257
344
  ["read-only.output-outside", "permission_error", "a read-only process writes files only inside its working folder"],
345
+ [
346
+ "schedule.outside-folder",
347
+ "permission_error",
348
+ "schedule exec runs only a schedule file in the tool's own schedules folder"
349
+ ],
258
350
  [
259
351
  "agent.refused",
260
352
  "permission_error",
@@ -262,6 +354,14 @@ var OTHERS = [
262
354
  ],
263
355
  validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
264
356
  validation("document.changed", "the document changed while it was read; nothing was saved"),
357
+ validation("document.needs-ocr", "the PDF has no text layer; a documents sync reads it with OCR (read_scans)"),
358
+ validation("document.scan-unread", "OCR could not read the scan or picture; a sync tries again once the file changes"),
359
+ validation("document.scan-later", "OCR stopped at its page limit or a busy model; the next sync goes on"),
360
+ [
361
+ "document.scan-unturned",
362
+ "configuration_error",
363
+ "tesseract has no osd data, so a page on its side is read as it lies; install it to read scans again"
364
+ ],
265
365
  ["document.not-imported", "not_found", "the document is not imported in this source account"],
266
366
  ["document.version-missing", "not_found", "the local copy holds no such version of the document"],
267
367
  ["document.not-found", "not_found", "no listed document has that reference"],
@@ -269,6 +369,11 @@ var OTHERS = [
269
369
  ["profile.busy", "provider_unavailable", "another sync or write holds this profile's local copy"],
270
370
  ["profile.account-taken", "conflict", "another profile here already uses this provider account"],
271
371
  ["profile.other-account", "conflict", "this profile's copy was synced from another provider account"],
372
+ [
373
+ "documents.other-account",
374
+ "configuration_error",
375
+ "the documents are signed in as another account than the tracker copy of the same provider"
376
+ ],
272
377
  ["profile.not-synced", "not_found", "the profile has no local copy yet; sync it first"],
273
378
  ["provider.failed", "provider_error", "a read from the provider failed"],
274
379
  ["identity.none", "not_found", "the provider shows no accounts on a document"],
@@ -295,6 +400,11 @@ var OTHERS = [
295
400
  "the email could not be read again, so its skipped attachments have no text"
296
401
  ],
297
402
  ["mirror.partial", "provider_error", "some mirrored files were not synced"],
403
+ [
404
+ "mirror.stopped",
405
+ "timeout",
406
+ "the mirror's run reached its deadline before it was done; run it again with more time"
407
+ ],
298
408
  ["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
299
409
  ["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
300
410
  validation("mirror.not-folder", "the path to mirror is not a folder"),
@@ -319,6 +429,7 @@ var OTHERS = [
319
429
  ["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
320
430
  ["mirror.local-changed", "conflict", "the local file changed since the conflict was found; nothing was written"],
321
431
  ["mirror.no-conflict", "not_found", "the path has no recorded conflict; the last sync settled it or never saw one"],
432
+ ["upload.replace-interrupted", "conflict", "another file took the path during a replace; the new content is kept"],
322
433
  ["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
323
434
  ["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
324
435
  ["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
@@ -331,6 +442,7 @@ var OTHERS = [
331
442
  validation("push.too-many-files", "the folder holds more files than one push takes"),
332
443
  validation("push.unreadable", "the folder to push could not be read"),
333
444
  validation("spreadsheet.unreadable", "the workbook could not be read"),
445
+ ["config.unreadable", "configuration_error", "the config file cannot be read"],
334
446
  [
335
447
  "config.unrepairable",
336
448
  "configuration_error",
@@ -426,46 +538,11 @@ var OTHERS = [
426
538
  "outcome_unknown",
427
539
  "a message the server found was stored without its attachments; the next sync reads it whole"
428
540
  ],
429
- validation("store.refused", "the local store refused the document text"),
430
- ["store.not-writable", "permission_error", "the message store cannot be written from this process"],
431
- [
432
- "store.damaged",
433
- "configuration_error",
434
- "the store file is damaged; store recover says what is lost and recovers it"
435
- ],
436
- [
437
- "store.journal-replaced",
438
- "conflict",
439
- "another program deleted or replaced the store's journal file while it was open; store recover says what to do"
440
- ],
441
- validation("store.file-damaged", "the named store file is damaged or not a database"),
442
- ["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
443
- [
444
- "store.unreadable",
445
- "configuration_error",
446
- "the store file's header or schema is damaged, so it cannot be recovered"
447
- ],
448
- validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
449
- [
450
- "store.sqlite3-missing",
451
- "configuration_error",
452
- "recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
453
- ],
454
- validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
455
541
  [
456
542
  "serve.outdated",
457
543
  "configuration_error",
458
544
  "the store or the installed version is newer than this serve; it stopped so its unit starts the installed one"
459
545
  ],
460
- validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
461
- validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
462
- [
463
- "store.vector-extension-missing",
464
- "configuration_error",
465
- "the install has no sqlite-vec extension for this platform; reinstall the CLI"
466
- ],
467
- ["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
468
- validation("store.vector-invalid", "a vector to store had a non-finite value"),
469
546
  validation("evidence.quote-length", "a quote from the evidence is empty or over 500 characters"),
470
547
  validation("evidence.quote-not-found", "the cited source does not say the quoted words"),
471
548
  validation("evidence.row-too-large", "one evidence row is over its size limit"),
@@ -586,10 +663,21 @@ var OTHERS = [
586
663
  validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
587
664
  validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
588
665
  validation("crm.record-field", "a contact's or company's field is not valid"),
666
+ validation("crm.activity-field", "a comment's or task's field is not valid, or the kind does not take it"),
589
667
  validation("crm.owner-unknown", "owner: names no CRM user: me without a known sign-in user, or not a user id"),
590
668
  validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
591
- validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
592
- 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"),
669
+ 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"),
670
+ validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was"),
671
+ validation("tracker.write-unsupported", "the tracker does not take this write, or does not recognise a repeated one"),
672
+ validation("tracker.field", "a field of an issue or a comment the tracker's write does not take as given"),
673
+ validation("tracker.reference", "a team, state, label, project, user or sprint no single row of the copy has by that name"),
674
+ validation("tracker.team-required", "a new issue needs its team: name one, or sync a copy that holds one"),
675
+ ["tracker.no-record", "invalid_response", "the tracker answered a write with no record and no error; sync and look"],
676
+ [
677
+ "tracker.kind-unread",
678
+ "permission_error",
679
+ "the sign-in cannot read this kind of the tracker; the copy has none of it"
680
+ ],
593
681
  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"),
594
682
  validation("content.conflict", "the post changed at the source since the last sync; sync, then write again"),
595
683
  validation("content.lossy-body", "the post's text holds blocks or embeds Markdown does not keep; --replace-body"),
@@ -604,6 +692,7 @@ var OTHERS = [
604
692
  validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
605
693
  validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
606
694
  validation("crm.activities-failed", "the activities and tasks could not be read; the deals and leads were synced"),
695
+ validation("crm.activities-unlisted-held", "a full list would mark most activities deleted; held until --rescan"),
607
696
  validation("crm.stage-history-failed", "the CRM's stage history could not be read; stage tasks wait for the next sync"),
608
697
  validation("crm.email-ambiguous", "a CRM contact's email belongs to more than one person; the owner decides"),
609
698
  validation("crm.own-unknown", "no own company of the CRM account is stored, so its users are no one's employees yet"),
@@ -642,6 +731,11 @@ var OTHERS = [
642
731
  validation("order.ref", "the reference names no order, or a shop's number names more than one"),
643
732
  validation("order.status", "a rejected or deleted order's status does not change"),
644
733
  ["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
734
+ [
735
+ "tracker.no-vectors",
736
+ "not_found",
737
+ "no issue, project or comment is embedded with the model yet; sync --embed builds them"
738
+ ],
645
739
  ["person.no-owner", "not_found", "no person is marked as the owner in the store"],
646
740
  ["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
647
741
  ["person.no-doubt", "not_found", "nothing about that person is in doubt; people links check lists who is"],
@@ -657,7 +751,7 @@ var OTHERS = [
657
751
  [
658
752
  "identity.owner-only",
659
753
  "permission_error",
660
- "only the owner undoes a merge, splits a person, confirms or undoes a link, or links an identity to themselves"
754
+ "only the owner undoes or confirms a merge, a split or a link, links an identity to themselves, or moves a sender"
661
755
  ],
662
756
  [
663
757
  "identity.stale",
@@ -693,7 +787,30 @@ var OTHERS = [
693
787
  validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
694
788
  validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
695
789
  validation("identity.common-name", "more than six people have the name, so it proposes no one"),
790
+ validation("identity.not-a-person", "a bot, a program or an organization is never proposed as a person by name"),
696
791
  validation("identity.owner", "one side is the owner's person, and only the owner joins anyone to themselves"),
792
+ ["sender-bot.not-found", "not_found", "no sender bot has that id; the bots list names them"],
793
+ validation("sender-bot.owner", "the owner's own person is never a bot"),
794
+ validation("sender-bot.not-a-person", "the identity named is a sender bot's, not a person's; name a person"),
795
+ validation("sender-bot.empty", "the person or bot named holds no identity to move"),
796
+ validation("sender-bot.assignee", "a sender bot is no one's assignee; move it to a person first"),
797
+ validation("sender-bot.unknown-sends", "a bot list filters by alerts, receipts, newsletters, marketing or messenger"),
798
+ validation("mail-sort.scope", "a sorting rule's scope is mail, list, subject, address or domain"),
799
+ validation("mail-sort.apply-to", "a sorting rule says whether it sorts past mail too: applyTo all or new"),
800
+ validation("mail-sort.value", "the value names no mail, list, subject, address or domain of that scope"),
801
+ validation("mail-sort.mail-type", "the mail type is not one of the known types"),
802
+ validation("mail-sort.sender", "a sorting rule makes a sender a bot or a person"),
803
+ validation("mail-sort.no-action", "a sorting rule sets a mail type, a sender or an organization"),
804
+ validation("mail-sort.owner-only", "only the owner moves or files senders, undoes and resets; a program removes its own rules"),
805
+ validation("mail-sort.sender-scope", "a sorting rule moves or files a sender at address or domain scope only"),
806
+ validation("mail-sort.sender-new", "a sender moves with its whole history, so an address rule that moves one applies to all"),
807
+ validation("mail-sort.over-addresses", "only a domain rule can beat the address rules"),
808
+ validation("mail-sort.free-mail-program", "only the owner sets a sorting rule on a free-mail or throwaway domain"),
809
+ validation("mail-sort.organization", "the organization named is not in the store"),
810
+ validation("mail-sort.confirm", "a free-mail domain rule needs the confirm of a dry run whose counts still hold; run the dry run again"),
811
+ validation("mail-sort.sender-ref", "the sender is named by an address, a person: ref or a bot: ref"),
812
+ ["mail-sort.not-found", "not_found", "no mail sorting rule has that id; the rules list names them"],
813
+ ["mail-sort.email", "not_found", "no incoming email has that id"],
697
814
  validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
698
815
  validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
699
816
  validation("identity-split.dedicated-review", "a split of a person is staged and decided through the people review"),
@@ -813,7 +930,7 @@ var DETAILED = {
813
930
  var REASONS = defineReasons([
814
931
  ...QUERY_REASONS,
815
932
  ...INPUT_FIELD_REASONS,
816
- ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OTHERS].map(([reason, code, message]) => ({
933
+ ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...STORE, ...STORE_MIGRATION, ...SQL, ...OFFICE, ...OTHERS].map(([reason, code, message]) => ({
817
934
  reason,
818
935
  code,
819
936
  message,