@wirecat/drive-cli 0.63.0 → 0.65.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 (193) hide show
  1. package/README.md +2 -1
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bundle/{all-profiles-GZJS3UKC.js → all-profiles-PD7GJHFA.js} +14 -13
  4. package/dist/bundle/{anthropic-RGV3WXX5.js → anthropic-PJKFON5H.js} +25 -14
  5. package/dist/bundle/{app-server-AA2PJ7PV.js → app-server-6ELQA6FJ.js} +59 -56
  6. package/dist/bundle/{bun-OXZYIA3R.js → bun-P54TGES2.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-D45NSDM3.js → bun-sqlite-TND5ZRJH.js} +12 -8
  8. package/dist/bundle/chunk-2AFI4KGI.js +185 -0
  9. package/dist/bundle/{chunk-Q5DJTRKV.js → chunk-3HXNDF6Q.js} +2 -2
  10. package/dist/bundle/{chunk-DJHLVUL6.js → chunk-3ONWN3IA.js} +278 -49
  11. package/dist/bundle/{chunk-WYGWWHZP.js → chunk-42G2XNPN.js} +2 -2
  12. package/dist/bundle/chunk-4AOINPN2.js +66 -0
  13. package/dist/bundle/{chunk-J4DIHPZ6.js → chunk-4EDWLR22.js} +1 -1
  14. package/dist/bundle/{chunk-ABYGSJZ4.js → chunk-4Y5YBFMS.js} +7 -7
  15. package/dist/bundle/{chunk-YGU6ULU5.js → chunk-54V4H6PM.js} +16 -16
  16. package/dist/bundle/{chunk-2TFXK3R4.js → chunk-5XSBCMAF.js} +4 -4
  17. package/dist/bundle/{chunk-2HF2MRXI.js → chunk-6DCLZLGX.js} +1 -1
  18. package/dist/bundle/{chunk-OD4U7GUY.js → chunk-7AQGVX5O.js} +20 -20
  19. package/dist/bundle/{chunk-YIP7ELON.js → chunk-7TAP7Y2E.js} +727 -518
  20. package/dist/bundle/{chunk-TF23BZW5.js → chunk-A27UVLPK.js} +3 -3
  21. package/dist/bundle/{chunk-LZEOQW7S.js → chunk-A4QNADEX.js} +58 -52
  22. package/dist/bundle/{chunk-FXBHOCJK.js → chunk-ADLS6FVG.js} +1 -1
  23. package/dist/bundle/{chunk-LMAVCYLQ.js → chunk-B2LPCHQN.js} +4 -4
  24. package/dist/bundle/{chunk-5PPL7JDM.js → chunk-CGQRZRTH.js} +2 -2
  25. package/dist/bundle/{chunk-VAUMOZU5.js → chunk-CWLL63JD.js} +107 -48
  26. package/dist/bundle/{chunk-V3NVXIQR.js → chunk-D6Z43SOG.js} +1563 -266
  27. package/dist/bundle/{chunk-OXY6SSZG.js → chunk-D7WB54P7.js} +127 -28
  28. package/dist/bundle/{chunk-VJEOGKAN.js → chunk-DA63E2UM.js} +13 -9
  29. package/dist/bundle/{chunk-EOOGWUTP.js → chunk-ECEP4SO3.js} +20 -20
  30. package/dist/bundle/{chunk-NEFSGCVA.js → chunk-EHU6EYGO.js} +38 -28
  31. package/dist/bundle/{chunk-4OSSOWDM.js → chunk-ELJUBPY4.js} +1 -1
  32. package/dist/bundle/{chunk-FRIJUILO.js → chunk-EM7NL5ES.js} +3 -3
  33. package/dist/bundle/{chunk-3BZRKLJ6.js → chunk-EU5MD24W.js} +13 -13
  34. package/dist/bundle/{chunk-MOTRI3SY.js → chunk-EZ2OLYEK.js} +24 -2
  35. package/dist/bundle/{chunk-6MQSQ4LX.js → chunk-F56DRBGY.js} +370 -717
  36. package/dist/bundle/{chunk-ZOJU7ZFI.js → chunk-FA6JNXCC.js} +8 -8
  37. package/dist/bundle/{chunk-ND6LLYGF.js → chunk-FBHSWQU7.js} +1531 -136
  38. package/dist/bundle/{chunk-Z42YYLTS.js → chunk-GW3LBY3T.js} +74 -72
  39. package/dist/bundle/{chunk-Y6GNA7HE.js → chunk-HP3NT6JJ.js} +23 -5
  40. package/dist/bundle/{chunk-DJ3SDJZY.js → chunk-I272E6UR.js} +9 -8
  41. package/dist/bundle/{chunk-L37LMMRJ.js → chunk-IBO23OID.js} +2 -2
  42. package/dist/bundle/{chunk-CE2TJBLP.js → chunk-II4S2DBJ.js} +3 -3
  43. package/dist/bundle/{chunk-ZM5J6ZMB.js → chunk-IKHOIXJR.js} +2 -2
  44. package/dist/bundle/{chunk-PO5RQQIG.js → chunk-IMHW7VIV.js} +5 -5
  45. package/dist/bundle/{chunk-3HK5WMI5.js → chunk-JMJIH6JH.js} +6 -6
  46. package/dist/bundle/{chunk-FUITWY7O.js → chunk-JPPPLKAO.js} +26 -1
  47. package/dist/bundle/{chunk-4S4JMW6I.js → chunk-LMKPP2JP.js} +1 -1
  48. package/dist/bundle/{chunk-HZZCEQTH.js → chunk-M7ELUGU6.js} +4 -4
  49. package/dist/bundle/{chunk-ZMOUUOT2.js → chunk-MCPOZNWG.js} +1 -1
  50. package/dist/bundle/{chunk-XNVFKMVR.js → chunk-NI5PD5KM.js} +39485 -35729
  51. package/dist/bundle/{chunk-2TDUGC5D.js → chunk-NQ5XMSLA.js} +4927 -1978
  52. package/dist/bundle/chunk-NQRTKYJB.js +257 -0
  53. package/dist/bundle/{chunk-44SBK6KB.js → chunk-O6K2E7OA.js} +4201 -2565
  54. package/dist/bundle/{chunk-534OBX5Y.js → chunk-O7ZDCOZE.js} +1 -1
  55. package/dist/bundle/{chunk-7EMQ26BA.js → chunk-OFJXHEFT.js} +13 -13
  56. package/dist/bundle/chunk-OWMZUWCM.js +109 -0
  57. package/dist/bundle/chunk-PHOL2DZM.js +138 -0
  58. package/dist/bundle/{chunk-UQLWMGSD.js → chunk-PLP5527C.js} +5 -5
  59. package/dist/bundle/{chunk-3QINVLZI.js → chunk-RNHGQ35R.js} +1 -1
  60. package/dist/bundle/{chunk-27YUUGXQ.js → chunk-RX5CJ55S.js} +1 -1
  61. package/dist/bundle/{chunk-XIUDS3OK.js → chunk-SE352DBY.js} +1 -1
  62. package/dist/bundle/chunk-SEQWBZYH.js +18 -0
  63. package/dist/bundle/{chunk-33MGFUED.js → chunk-SIWXYB4E.js} +3789 -3538
  64. package/dist/bundle/{chunk-4CIZWCXV.js → chunk-SNLSEYJO.js} +1 -1
  65. package/dist/bundle/{chunk-XDC3TWTL.js → chunk-SS4LKLD7.js} +52 -605
  66. package/dist/bundle/{chunk-BKYMKVHT.js → chunk-TMHF4BCL.js} +2 -2
  67. package/dist/bundle/{chunk-FEZF3TII.js → chunk-TOVWMURV.js} +74 -6
  68. package/dist/bundle/{chunk-QCKZ3GAA.js → chunk-TTP4NOP3.js} +4 -4
  69. package/dist/bundle/chunk-UTNRBOEN.js +53 -0
  70. package/dist/bundle/{chunk-2NIC72HH.js → chunk-VDZY3L7U.js} +3 -1
  71. package/dist/bundle/chunk-VHQYWFWV.js +13 -0
  72. package/dist/bundle/{chunk-VKPCONDQ.js → chunk-VLXWAH5E.js} +4 -4
  73. package/dist/bundle/{chunk-6KQJSFYF.js → chunk-VMAMRFFC.js} +23 -23
  74. package/dist/bundle/{chunk-6EY46GAN.js → chunk-W2XY6C5S.js} +2 -2
  75. package/dist/bundle/{chunk-J24ZFCWM.js → chunk-WRAUO5EJ.js} +22 -24
  76. package/dist/bundle/{chunk-S4RXABDR.js → chunk-WRMJN6UQ.js} +3 -3
  77. package/dist/bundle/{chunk-UPOSDTPT.js → chunk-WVJHZIDH.js} +3 -3
  78. package/dist/bundle/{chunk-E4SDKMBJ.js → chunk-X7YGGWXI.js} +1 -59
  79. package/dist/bundle/{chunk-O2XOX4HB.js → chunk-XPWZSW6Y.js} +50 -34
  80. package/dist/bundle/{chunk-PDCCYHCH.js → chunk-XYE7XZPB.js} +5 -5
  81. package/dist/bundle/{chunk-RKELRWH7.js → chunk-Y5PKRITX.js} +5 -5
  82. package/dist/bundle/{chunk-XR6ESRU6.js → chunk-Z2ADO6UA.js} +2 -2
  83. package/dist/bundle/{chunk-YUWPNG7B.js → chunk-ZD4MB7NH.js} +1 -1
  84. package/dist/bundle/{chunk-TWUH22Z5.js → chunk-ZILALBYQ.js} +4 -4
  85. package/dist/bundle/{chunk-SXM6MHRR.js → chunk-ZR2EJPMQ.js} +44 -15
  86. package/dist/bundle/command-contract-25E4PYMD.js +40 -0
  87. package/dist/bundle/command-server-entry-36JXYIJB.js +170 -0
  88. package/dist/bundle/{decode-G5YEIPNC.js → decode-T5ZW57WZ.js} +8 -8
  89. package/dist/bundle/{dispatch-GEFIXA6X.js → dispatch-RMA2XFYA.js} +11 -11
  90. package/dist/bundle/drive.js +11 -11
  91. package/dist/bundle/{echarts-W2CWHNXR.js → echarts-KQ44LPSF.js} +2 -2
  92. package/dist/bundle/{embed-OBFFPVF4.js → embed-Q7XST53J.js} +9 -9
  93. package/dist/bundle/{embedder-NGCBQHIG.js → embedder-RWZSBVW2.js} +12 -12
  94. package/dist/bundle/entry-HPLW4QL2.js +25 -0
  95. package/dist/bundle/{failure-GV77W3CD.js → failure-7NP4QPIN.js} +4 -4
  96. package/dist/bundle/first-run-RL3RKYZW.js +30 -0
  97. package/dist/bundle/first-screen-NX3TM2VJ.js +38 -0
  98. package/dist/bundle/google-DPD5N6AQ.js +42 -0
  99. package/dist/bundle/{google-api-Z3NSTBBR.js → google-api-P5DRHD7L.js} +61 -56
  100. package/dist/bundle/grants-TX4MHLI4.js +109 -0
  101. package/dist/bundle/{identity-OM6GFZ7T.js → identity-VDV6CHRW.js} +6 -6
  102. package/dist/bundle/{instructions-YQBQSYSS.js → instructions-Q45FVY6H.js} +1 -1
  103. package/dist/bundle/{login-7RYSDVN3.js → login-XKN3NI6X.js} +67 -62
  104. package/dist/bundle/{mcp-GWDA3HOA.js → mcp-7KQUJNFN.js} +2 -2
  105. package/dist/bundle/{node-IVU33RL7.js → node-MSW565D3.js} +2 -2
  106. package/dist/bundle/{node-KM3CUABH.js → node-P4E63KXA.js} +9 -9
  107. package/dist/bundle/{node-sqlite-SIH5BEW2.js → node-sqlite-S74XVVHL.js} +13 -9
  108. package/dist/bundle/oauth-6R7AWAES.js +22 -0
  109. package/dist/bundle/{open-IAO2SNII.js → open-P7UQG7XJ.js} +8 -8
  110. package/dist/bundle/{openai-SGOUBHXP.js → openai-DDHJ57KZ.js} +19 -40
  111. package/dist/bundle/{process-BPBMV3AT.js → process-NMUB5SHK.js} +1 -1
  112. package/dist/bundle/{program-MYKKJ4F6.js → program-PJNWP6JW.js} +517 -330
  113. package/dist/bundle/prompt-VOSMK4C2.js +19 -0
  114. package/dist/bundle/{reasons-57J2D77K.js → reasons-KDAXOC5S.js} +5 -5
  115. package/dist/bundle/{recognize-A5C5RPB3.js → recognize-GZIY63HS.js} +7 -7
  116. package/dist/bundle/{remote-VWYFLRGO.js → remote-V3YGN7LN.js} +10 -10
  117. package/dist/bundle/{rerank-4NGQWREA.js → rerank-XRU6AVN7.js} +10 -10
  118. package/dist/bundle/{serve-Y6LQTFH5.js → serve-NDOAFA57.js} +12 -12
  119. package/dist/bundle/{server-6AUHIIUA.js → server-BKGWJYMC.js} +46 -44
  120. package/dist/bundle/server-QD2MUJJZ.js +72 -0
  121. package/dist/bundle/{services-2W4J7EMW.js → services-TYDMFQCA.js} +129 -39
  122. package/dist/bundle/{sqlite-runtime-P6BBDX2H.js → sqlite-runtime-UAFJKSJR.js} +9 -9
  123. package/dist/bundle/{start-AFFA3LKM.js → start-2ZLDP2OE.js} +30 -8
  124. package/dist/bundle/{state-PXKKXR3R.js → state-6SP27J2K.js} +9 -9
  125. package/dist/bundle/{store-CN6JEUC4.js → store-4UUY545Q.js} +42 -18
  126. package/dist/bundle/{store-IVV2BAGZ.js → store-EJN27MXI.js} +69 -28
  127. package/dist/bundle/store-maintenance-command-LETURZDC.js +60 -0
  128. package/dist/bundle/tokens-MTFJPTYT.js +107 -0
  129. package/dist/commands/account.d.ts +4 -0
  130. package/dist/commands/account.d.ts.map +1 -0
  131. package/dist/commands/account.js +33 -0
  132. package/dist/commands/account.js.map +1 -0
  133. package/dist/commands/config.d.ts.map +1 -1
  134. package/dist/commands/config.js +6 -5
  135. package/dist/commands/config.js.map +1 -1
  136. package/dist/commands/context.d.ts +4 -2
  137. package/dist/commands/context.d.ts.map +1 -1
  138. package/dist/commands/context.js.map +1 -1
  139. package/dist/commands/documents.d.ts +2 -0
  140. package/dist/commands/documents.d.ts.map +1 -1
  141. package/dist/commands/documents.js +39 -3
  142. package/dist/commands/documents.js.map +1 -1
  143. package/dist/config.d.ts +13 -0
  144. package/dist/config.d.ts.map +1 -1
  145. package/dist/config.js +32 -2
  146. package/dist/config.js.map +1 -1
  147. package/dist/documents-add.d.ts +49 -0
  148. package/dist/documents-add.d.ts.map +1 -0
  149. package/dist/documents-add.js +122 -0
  150. package/dist/documents-add.js.map +1 -0
  151. package/dist/errors.d.ts +1 -0
  152. package/dist/errors.d.ts.map +1 -1
  153. package/dist/errors.js +9 -1
  154. package/dist/errors.js.map +1 -1
  155. package/dist/knowledge.d.ts +1 -1
  156. package/dist/knowledge.d.ts.map +1 -1
  157. package/dist/knowledge.js +15 -17
  158. package/dist/knowledge.js.map +1 -1
  159. package/dist/model.d.ts +3 -0
  160. package/dist/model.d.ts.map +1 -1
  161. package/dist/model.js.map +1 -1
  162. package/dist/profile-lock.d.ts +1 -0
  163. package/dist/profile-lock.d.ts.map +1 -1
  164. package/dist/profile-lock.js +1 -0
  165. package/dist/profile-lock.js.map +1 -1
  166. package/dist/program.d.ts.map +1 -1
  167. package/dist/program.js +24 -15
  168. package/dist/program.js.map +1 -1
  169. package/dist/reasons.d.ts.map +1 -1
  170. package/dist/reasons.js +25 -0
  171. package/dist/reasons.js.map +1 -1
  172. package/dist/store.d.ts.map +1 -1
  173. package/dist/store.js +20 -0
  174. package/dist/store.js.map +1 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +4 -4
  178. package/dist/bundle/chunk-AEX37ETW.js +0 -35
  179. package/dist/bundle/chunk-OTROVC4E.js +0 -62
  180. package/dist/bundle/chunk-Z5KC7XBR.js +0 -33
  181. package/dist/bundle/command-contract-BRW3AP44.js +0 -38
  182. package/dist/bundle/entry-ET6HGM7A.js +0 -22
  183. package/dist/bundle/first-run-JG52UZVO.js +0 -30
  184. package/dist/bundle/first-screen-CIL3GFAA.js +0 -36
  185. package/dist/bundle/google-CIWUVJ5C.js +0 -36
  186. package/dist/bundle/grants-3S4RL3WB.js +0 -104
  187. package/dist/bundle/oauth-PT4JEHLL.js +0 -22
  188. package/dist/bundle/prompt-3ZM64DCB.js +0 -17
  189. package/dist/bundle/server-PFHI35HA.js +0 -69
  190. package/dist/bundle/store-maintenance-command-MSY2QNEH.js +0 -59
  191. package/dist/bundle/tokens-P4LPNUFW.js +0 -102
  192. package/dist/bundle/{chunk-ZQ3GWKDQ.js → chunk-YVNHQFLC.js} +0 -0
  193. package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-CE73EWJ2.js} +3 -3
@@ -7,15 +7,20 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-OXY6SSZG.js";
10
+ } from "./chunk-D7WB54P7.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-WYGWWHZP.js";
13
+ } from "./chunk-42G2XNPN.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
17
17
  refuseLacking
18
- } from "./chunk-J24ZFCWM.js";
18
+ } from "./chunk-WRAUO5EJ.js";
19
+ import {
20
+ onlineDeps,
21
+ servicesFor,
22
+ storeModeDeps
23
+ } from "./chunk-O6K2E7OA.js";
19
24
  import {
20
25
  DEFAULT_OUTPUT_BYTES,
21
26
  ENTITIES,
@@ -30,48 +35,45 @@ import {
30
35
  refuseStoreChange,
31
36
  sealed,
32
37
  startRecording
33
- } from "./chunk-33MGFUED.js";
38
+ } from "./chunk-SIWXYB4E.js";
34
39
  import {
35
40
  currentCaller,
36
41
  keepsSuccess,
37
42
  runContextOf,
38
43
  withCaller
39
- } from "./chunk-VJEOGKAN.js";
40
- import {
41
- onlineDeps,
42
- servicesFor,
43
- storeModeDeps
44
- } from "./chunk-44SBK6KB.js";
44
+ } from "./chunk-DA63E2UM.js";
45
45
  import {
46
46
  authorityAllowed,
47
47
  botApiAllowed,
48
- enclosingTraceId,
49
- inRun,
50
48
  keyForCommand,
51
49
  levelFor,
50
+ readKeysForCommand
51
+ } from "./chunk-F56DRBGY.js";
52
+ import {
53
+ MAX_BUFFERED_INPUT
54
+ } from "./chunk-Z2ADO6UA.js";
55
+ import {
56
+ enclosingTraceId,
57
+ inRun,
52
58
  newRunId,
53
- readKeysForCommand,
54
59
  traceOf
55
- } from "./chunk-6MQSQ4LX.js";
60
+ } from "./chunk-D6Z43SOG.js";
56
61
  import {
57
62
  queryDescription
58
- } from "./chunk-EOOGWUTP.js";
63
+ } from "./chunk-ECEP4SO3.js";
59
64
  import {
60
65
  storeDamaged
61
- } from "./chunk-E4SDKMBJ.js";
62
- import {
63
- MAX_BUFFERED_INPUT
64
- } from "./chunk-XR6ESRU6.js";
66
+ } from "./chunk-4AOINPN2.js";
65
67
  import {
66
68
  captureStreams
67
- } from "./chunk-OD4U7GUY.js";
69
+ } from "./chunk-7AQGVX5O.js";
68
70
  import {
69
71
  errorObjectOf,
70
72
  mcpErrorResult
71
- } from "./chunk-UQLWMGSD.js";
73
+ } from "./chunk-PLP5527C.js";
72
74
  import {
73
75
  traceIdOf
74
- } from "./chunk-6EY46GAN.js";
76
+ } from "./chunk-W2XY6C5S.js";
75
77
  import {
76
78
  COMPACT_FLAG,
77
79
  SNAKE_CASE,
@@ -108,25 +110,25 @@ import {
108
110
  unknown,
109
111
  word,
110
112
  writes
111
- } from "./chunk-FEZF3TII.js";
113
+ } from "./chunk-TOVWMURV.js";
112
114
  import {
113
115
  CliError,
114
116
  errorCodes
115
- } from "./chunk-4OSSOWDM.js";
117
+ } from "./chunk-ELJUBPY4.js";
116
118
  import {
117
119
  __name
118
120
  } from "./chunk-ZVVMGPBJ.js";
119
121
 
120
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/agent.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/agent.js
121
123
  import { Readable } from "node:stream";
122
124
 
123
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
125
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
124
126
  var LINT_SEVERITIES = ["high", "medium", "low"];
125
127
  var lintRuleSchema = strictObject({
126
128
  id: word,
127
129
  severity: picklist(LINT_SEVERITIES),
128
130
  /** What the rule looks at; a violation's target names one of these. */
129
- scope: picklist(["command", "group", "argument", "option", "flag", "key"]),
131
+ scope: picklist(["command", "group", "argument", "option", "flag", "key", "source"]),
130
132
  summary: text
131
133
  });
132
134
  var defineLintRules = /* @__PURE__ */ __name((input) => parseRegistry("lint rules", array(lintRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineLintRules");
@@ -235,6 +237,18 @@ var LINT_RULES = defineLintRules([
235
237
  severity: "high",
236
238
  scope: "group",
237
239
  summary: "the CLI keeps a failed run and reads it back: `runs list`, `runs show`, global `--record` and `--no-record`"
240
+ },
241
+ {
242
+ id: "raw-network",
243
+ severity: "high",
244
+ scope: "source",
245
+ summary: "the CLI's own source reaches the network only through `hostFetch`: no `node:http`, `https`, `net`, `tls`, `undici`, `axios`, `got`, `node-fetch` or `ws`, no global `fetch`"
246
+ },
247
+ {
248
+ id: "undeclared-host",
249
+ severity: "medium",
250
+ scope: "source",
251
+ summary: "every `http(s)://` host in the CLI's own source is in the manifest's `network.hosts`"
238
252
  }
239
253
  ]);
240
254
  var baselineSchema = array(text);
@@ -248,7 +262,7 @@ var overrideSchema = strictObject({
248
262
  });
249
263
  var overridesSchema = array(overrideSchema);
250
264
 
251
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
265
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
252
266
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
253
267
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
254
268
  var AUDIT_RULES = defineAuditRules([
@@ -374,7 +388,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
374
388
  { path: ["upgrade"], meaning: "updates the CLI" }
375
389
  ]);
376
390
 
377
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
391
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
378
392
  var fieldRuleSchema = strictObject({ id: word, rule: text });
379
393
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
380
394
  var FIELD_RULES = defineFieldRules([
@@ -390,7 +404,7 @@ var FIELD_RULES = defineFieldRules([
390
404
  }
391
405
  ]);
392
406
 
393
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
407
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
394
408
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
395
409
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
396
410
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -412,7 +426,7 @@ var IDENTIFIERS = defineIdentifiers([
412
426
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
413
427
  ]);
414
428
 
415
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
429
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
416
430
  var CALENDAR_FLAGS = [
417
431
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
418
432
  {
@@ -420,14 +434,14 @@ var CALENDAR_FLAGS = [
420
434
  value: "<date>",
421
435
  role: "value",
422
436
  type: "time",
423
- meaning: "the first day of something that lasts whole days, such as an all-day event"
437
+ meaning: "the first day of something that lasts whole days, such as an all-day event or a contract"
424
438
  },
425
439
  {
426
440
  name: "--end-date",
427
441
  value: "<date>",
428
442
  role: "value",
429
443
  type: "time",
430
- meaning: "the last day of something that lasts whole days, such as an all-day event"
444
+ meaning: "the last day of something that lasts whole days, such as an all-day event or a contract"
431
445
  },
432
446
  { name: "--location", value: "<text>", role: "value", type: "string", meaning: "where it takes place" },
433
447
  {
@@ -486,7 +500,7 @@ var CALENDAR_FLAGS = [
486
500
  }
487
501
  ];
488
502
 
489
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
503
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
490
504
  var CRM_FLAGS = [
491
505
  {
492
506
  name: "--pipeline",
@@ -517,16 +531,126 @@ var CRM_FLAGS = [
517
531
  type: "time",
518
532
  meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
519
533
  },
534
+ {
535
+ name: "--position",
536
+ value: "<title>",
537
+ role: "value",
538
+ type: "string",
539
+ meaning: "a person's job title on a relationship, stored as position; never the role"
540
+ },
520
541
  {
521
542
  name: "--owner",
522
543
  value: "<user>",
523
544
  role: "value",
524
545
  type: "id",
525
546
  meaning: "the CRM user a record is assigned to, by the CRM's id"
547
+ },
548
+ {
549
+ name: "--status",
550
+ value: "<state>",
551
+ role: "value",
552
+ type: "choice",
553
+ meaning: "the state to put it in; the command lists the states"
554
+ },
555
+ {
556
+ name: "--product",
557
+ value: "<product>",
558
+ role: "value",
559
+ type: "string",
560
+ meaning: "a product or service the owner sells or buys: product:<id>"
561
+ },
562
+ { name: "--contract", value: "<contract>", role: "value", type: "string", meaning: "a contract: contract:<id>" },
563
+ { name: "--payment", value: "<payment>", role: "value", type: "string", meaning: "a payment: payment:<id>" },
564
+ {
565
+ name: "--refund-of",
566
+ value: "<payment>",
567
+ role: "value",
568
+ type: "string",
569
+ meaning: "the payment this one gives money back for: payment:<id>"
570
+ },
571
+ { name: "--wallet", value: "<wallet>", role: "value", type: "string", meaning: "a wallet: wallet:<id>" },
572
+ {
573
+ name: "--supplier",
574
+ value: "<party>",
575
+ role: "value",
576
+ type: "string",
577
+ meaning: "who supplies it: person:<uid> or organization:<id>"
578
+ },
579
+ {
580
+ name: "--customer",
581
+ value: "<party>",
582
+ role: "value",
583
+ type: "string",
584
+ meaning: "who receives it and pays for it: person:<uid> or organization:<id>"
585
+ },
586
+ {
587
+ name: "--trial-end-date",
588
+ value: "<date>",
589
+ role: "value",
590
+ type: "time",
591
+ meaning: "the day a free trial ends, YYYY-MM-DD"
592
+ },
593
+ {
594
+ name: "--notice-days",
595
+ value: "<days>",
596
+ role: "value",
597
+ type: "count",
598
+ meaning: "how many days before its end a party must say it will not go on",
599
+ unit: "days"
600
+ },
601
+ {
602
+ name: "--auto-renew",
603
+ value: "<on|off>",
604
+ role: "value",
605
+ type: "choice",
606
+ meaning: "it renews by itself at its end, or it does not"
607
+ },
608
+ {
609
+ name: "--period",
610
+ value: "<count-unit>",
611
+ role: "value",
612
+ type: "duration",
613
+ meaning: "how often a charge repeats: a count and a calendar unit, such as 1-month"
614
+ },
615
+ {
616
+ name: "--opening-balance",
617
+ value: "<decimal>",
618
+ role: "value",
619
+ type: "string",
620
+ meaning: "the money it held on --opening-date, as a decimal such as 1500.50; later movements count from it"
621
+ },
622
+ {
623
+ name: "--opening-date",
624
+ value: "<date>",
625
+ role: "value",
626
+ type: "time",
627
+ meaning: "the day of the opening balance, YYYY-MM-DD"
628
+ },
629
+ {
630
+ name: "--institution",
631
+ value: "<text>",
632
+ role: "value",
633
+ type: "string",
634
+ meaning: "the bank or other company that holds it, by name"
635
+ },
636
+ {
637
+ name: "--unit",
638
+ value: "<text>",
639
+ role: "value",
640
+ type: "string",
641
+ meaning: "what one of it is counted in, such as hour or piece"
642
+ },
643
+ { name: "--sku", value: "<code>", role: "value", type: "string", meaning: "the stock code the seller gives it" },
644
+ {
645
+ name: "--archived",
646
+ value: "<on|off>",
647
+ role: "value",
648
+ type: "choice",
649
+ meaning: "set it aside as no longer in use, or bring it back; what points at it keeps pointing at it"
526
650
  }
527
651
  ];
528
652
 
529
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
653
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
530
654
  var HOW_FLAGS = [
531
655
  {
532
656
  name: "--limit",
@@ -760,6 +884,7 @@ var HOW_FLAGS = [
760
884
  type: "switch",
761
885
  meaning: "record the action as the owner's although an agent's terminal runs the tool"
762
886
  },
887
+ { name: "--from-app", role: "mode", type: "switch", meaning: "the owner acted in the app; its word, not a check" },
763
888
  {
764
889
  name: "--allow-any-file",
765
890
  role: "mode",
@@ -811,6 +936,7 @@ var HOW_FLAGS = [
811
936
  replaces: ["--expected"]
812
937
  },
813
938
  { name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
939
+ { name: "--with-muted", role: "mode", type: "switch", meaning: "also read the chats the owner muted" },
814
940
  {
815
941
  name: "--for-everyone",
816
942
  role: "mode",
@@ -1103,6 +1229,7 @@ var HOW_FLAGS = [
1103
1229
  { name: "--retract", role: "action", type: "switch", meaning: "take the owner's vote back" },
1104
1230
  { name: "--revoke", role: "action", type: "switch", meaning: "forget every login given to a browser app" },
1105
1231
  { name: "--track", role: "action", type: "switch", meaning: "also do it daily while serve runs" },
1232
+ { name: "--undo", role: "mode", type: "switch", meaning: "put back what the last change replaced, not a new value" },
1106
1233
  {
1107
1234
  name: "--transcribe",
1108
1235
  role: "action",
@@ -1521,7 +1648,39 @@ var HOW_FLAGS = [
1521
1648
  }
1522
1649
  ];
1523
1650
 
1524
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1651
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
1652
+ var KNOWLEDGE_FLAGS = [
1653
+ {
1654
+ name: "--quote",
1655
+ value: "<ref=words...>",
1656
+ role: "value",
1657
+ type: "list",
1658
+ meaning: "the words an --evidence reference says that a record rests on, as <ref>=<words>, one per reference"
1659
+ },
1660
+ {
1661
+ name: "--suggest",
1662
+ value: "<text>",
1663
+ role: "value",
1664
+ type: "string",
1665
+ meaning: "wording offered for the owner to take or leave; it decides nothing"
1666
+ },
1667
+ {
1668
+ name: "--keep-copy",
1669
+ role: "mode",
1670
+ type: "switch",
1671
+ meaning: "keep a copy of the original file as well as its text"
1672
+ },
1673
+ {
1674
+ name: "--max-chars",
1675
+ value: "<n>",
1676
+ role: "budget",
1677
+ type: "count",
1678
+ meaning: "at most this many characters read",
1679
+ unit: "characters"
1680
+ }
1681
+ ];
1682
+
1683
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1525
1684
  var MAIL_FLAGS = [
1526
1685
  {
1527
1686
  name: "--cc",
@@ -1551,7 +1710,7 @@ var MAIL_FLAGS = [
1551
1710
  }
1552
1711
  ];
1553
1712
 
1554
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
1713
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
1555
1714
  var PRIVACY_FLAGS = [
1556
1715
  {
1557
1716
  name: "--about-text",
@@ -1612,8 +1771,15 @@ var PRIVACY_FLAGS = [
1612
1771
  { name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
1613
1772
  ];
1614
1773
 
1615
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
1774
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
1616
1775
  var SCHEDULE_FLAGS = [
1776
+ {
1777
+ name: "--locale",
1778
+ value: "<code>",
1779
+ role: "target",
1780
+ type: "string",
1781
+ meaning: "a human language, as an ISO 639-1 code such as en or ru: which language's version it acts on"
1782
+ },
1617
1783
  {
1618
1784
  name: "--notify-on",
1619
1785
  value: "<when>",
@@ -1638,7 +1804,7 @@ var SCHEDULE_FLAGS = [
1638
1804
  }
1639
1805
  ];
1640
1806
 
1641
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1807
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1642
1808
  var WHAT_FLAGS = [
1643
1809
  {
1644
1810
  name: "--analysis-provider",
@@ -1654,6 +1820,13 @@ var WHAT_FLAGS = [
1654
1820
  type: "choice",
1655
1821
  meaning: "who computes embeddings: a local model or a configured remote model service"
1656
1822
  },
1823
+ {
1824
+ name: "--region",
1825
+ value: "<country>",
1826
+ role: "mode",
1827
+ type: "string",
1828
+ meaning: "the two-letter country code, such as ru, that phone numbers written without + are read in"
1829
+ },
1657
1830
  {
1658
1831
  name: "--consent-provider",
1659
1832
  value: "<identity>",
@@ -2182,7 +2355,13 @@ var WHAT_FLAGS = [
2182
2355
  meaning: "who joins by the link asks first, and an admin lets them in"
2183
2356
  },
2184
2357
  { name: "--can", value: "<rights>", role: "value", type: "list", meaning: "what an admin may do, comma-separated" },
2185
- { name: "--channel", role: "value", type: "switch", meaning: "a channel instead of a group" },
2358
+ {
2359
+ name: "--channel",
2360
+ role: "value",
2361
+ type: "switch",
2362
+ otherValues: ["channel"],
2363
+ meaning: "a channel instead of a group (a switch), or what a message is written for (<channel>), such as email"
2364
+ },
2186
2365
  {
2187
2366
  name: "--certainty",
2188
2367
  value: "<n>",
@@ -2391,7 +2570,7 @@ var WHAT_FLAGS = [
2391
2570
  value: "<file>",
2392
2571
  role: "value",
2393
2572
  type: "path",
2394
- meaning: "a file to send with the message; the text becomes its caption"
2573
+ meaning: "a file it reads: one to send with a message, the text its caption, or the new text of a write"
2395
2574
  },
2396
2575
  {
2397
2576
  name: "--filename",
@@ -2435,7 +2614,15 @@ var WHAT_FLAGS = [
2435
2614
  meaning: "what kind of thing it is; the command lists the kinds"
2436
2615
  },
2437
2616
  { name: "--name", value: "<name>", role: "value", type: "string", meaning: "the name to give it" },
2617
+ {
2618
+ name: "--button",
2619
+ value: "<text=data>",
2620
+ role: "value",
2621
+ type: "string",
2622
+ meaning: "an inline button under a message: its text, then the data a press sends back; repeat for more in one row"
2623
+ },
2438
2624
  { name: "--no-approval", role: "value", type: "switch", meaning: "anyone with the link joins at once" },
2625
+ { name: "--no-buttons", role: "value", type: "switch", meaning: "take the buttons off the message" },
2439
2626
  {
2440
2627
  name: "--notification",
2441
2628
  value: "<text>",
@@ -2470,6 +2657,13 @@ var WHAT_FLAGS = [
2470
2657
  },
2471
2658
  { name: "--remind-time", value: "<time>", role: "value", type: "time", meaning: "when to look at it again" },
2472
2659
  { name: "--role", value: "<role>", role: "value", type: "string", meaning: "the part it plays, in a word or two" },
2660
+ {
2661
+ name: "--label",
2662
+ value: "<label>",
2663
+ role: "value",
2664
+ type: "string",
2665
+ meaning: "a human-readable label for an id, such as the name shown for a custom relationship role"
2666
+ },
2473
2667
  {
2474
2668
  name: "--scope",
2475
2669
  value: "<scope>",
@@ -2600,7 +2794,7 @@ var WHAT_FLAGS = [
2600
2794
  }
2601
2795
  ];
2602
2796
 
2603
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2797
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2604
2798
  var FLAG_TYPES = [
2605
2799
  "switch",
2606
2800
  "count",
@@ -2688,6 +2882,7 @@ var defineVocabulary = /* @__PURE__ */ __name((input) => parseRegistry("vocabula
2688
2882
  var verbs = [
2689
2883
  ["list", "show many"],
2690
2884
  ["show", "show one"],
2885
+ ["browse", "list one level of a remote hierarchy, such as a provider's folders, to choose from; reads only"],
2691
2886
  ["search", "find by text; the description says where it looks"],
2692
2887
  ["prepare", "assemble bounded cited context for a selected upcoming activity without applying findings"],
2693
2888
  ["related", "what is nearest in meaning to one thing, without a query"],
@@ -2695,6 +2890,7 @@ var verbs = [
2695
2890
  ["status", "how a thing stands right now"],
2696
2891
  ["check", "verify, and change nothing; the answer says what is wrong and how to fix it"],
2697
2892
  ["test", "run rules over what is already stored and say what they would have done, doing none of it"],
2893
+ ["preview", "render what would be sent or written, from what is stored or a draft; sends and saves nothing"],
2698
2894
  ["apply", "run the owner's saved rules over what is already stored and change what they match; dry run unless --yes"],
2699
2895
  ["scan", "read stored messages for what a rule finds, such as tasks, and list it; records it only with --yes"],
2700
2896
  ["pause", "stop what a running process does for a profile, without stopping the process"],
@@ -2718,7 +2914,7 @@ var verbs = [
2718
2914
  ["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
2719
2915
  ["install", "install a system unit"],
2720
2916
  ["uninstall", "remove a system unit"],
2721
- ["cancel", "stop a job or a pending thing"],
2917
+ ["cancel", "stop a job, a pending thing or a subscription"],
2722
2918
  [
2723
2919
  "sync",
2724
2920
  "bring the local store up to date from the source: only what changed, or the whole list where the source cannot say; a mirror syncs both ways"
@@ -2741,6 +2937,10 @@ var verbs = [
2741
2937
  // Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
2742
2938
  ["link", "record that two identities are one person"],
2743
2939
  ["unlink", "undo a link"],
2940
+ [
2941
+ "match",
2942
+ "link each waiting record to the thing its identifiers name, such as a person by e-mail address; a name alone never matches"
2943
+ ],
2744
2944
  ["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
2745
2945
  ["lookup", "ask the messenger who is behind a phone number"],
2746
2946
  [
@@ -2777,6 +2977,7 @@ var verbs = [
2777
2977
  ["assign", "name the person responsible for work, with their task role"],
2778
2978
  ["reverse", "record that an accepted decision no longer holds, without replacing it"],
2779
2979
  ["invalidate", "mark a derived record whose supporting evidence no longer holds"],
2980
+ ["challenge", "say a record no longer holds, citing what contradicts it; it only proposes, and the owner decides"],
2780
2981
  ["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
2781
2982
  ["confirm", "the owner accepts what an agent proposed"],
2782
2983
  ["reject", "the owner refuses what an agent proposed"],
@@ -2826,6 +3027,7 @@ var collections = [
2826
3027
  ["topics", "forum topics in a group"],
2827
3028
  ["models", "local or remote models"],
2828
3029
  ["tags", "labels the owner puts on things"],
3030
+ ["groups", "account groups: the accounts a run in a group reads, such as work and personal (WC-ACCT-13)"],
2829
3031
  ["searches", "the owner's saved searches"],
2830
3032
  ["copies", "tables kept aside by a repair"],
2831
3033
  ["tables", "the tables of the local store, with their kind, row count and size"],
@@ -2836,6 +3038,7 @@ var collections = [
2836
3038
  ["tracking", "the chats whose member lists are fetched daily"],
2837
3039
  ["documents", "files imported from Google Drive or Docs, or linked in a chat"],
2838
3040
  ["notes", "text the owner writes, or files from a notes folder"],
3041
+ ["sources", "what the owner adds by hand to read from: a file, a web page or a pasted text, kept as its text"],
2839
3042
  ["projects", "the owner's work units with a task key"],
2840
3043
  [
2841
3044
  "annotations",
@@ -2853,7 +3056,14 @@ var collections = [
2853
3056
  ["leads", "possible customers not yet qualified into a deal"],
2854
3057
  ["pipelines", "ordered sets of stages a deal moves through"],
2855
3058
  ["stages", "steps of a pipeline, each open, won or lost"],
2856
- ["products", "goods and services the owner sells, with their prices"],
3059
+ ["products", "goods and services the owner sells or buys, with their prices"],
3060
+ ["lines", "the rows of an order or an invoice: what, how many and at what price"],
3061
+ ["contracts", "agreements the owner is a party to, with their terms, dates and renewal"],
3062
+ ["subscriptions", "charges that repeat on a schedule, which the owner pays or is paid, with their price history"],
3063
+ ["prices", "what a thing costs over time, each price from its start date"],
3064
+ ["wallets", "places that hold the owner's money, such as a bank account, a card or cash"],
3065
+ ["transactions", "money that moved in or out of a wallet, as the bank or the owner recorded it"],
3066
+ ["splits", "parts of one transaction, each with its own amount and category"],
2857
3067
  ["users", "people who work in the owner's account at a service, such as a CRM's employees"],
2858
3068
  ["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
2859
3069
  [
@@ -2863,6 +3073,7 @@ var collections = [
2863
3073
  ["facts", "what happened, with evidence"],
2864
3074
  ["memories", "what an agent concluded, with evidence and scope"],
2865
3075
  ["relationships", "confirmed or suggested links between people, organizations and projects"],
3076
+ ["roles", "the parts a person plays in a relationship, built in or the owner's own"],
2866
3077
  ["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
2867
3078
  ["files", "files in the source, such as Google Drive, read and changed there"],
2868
3079
  ["comments", "comments people left on a thing in the source: a channel post or a file"],
@@ -2993,12 +3204,13 @@ var VOCABULARY = defineVocabulary({
2993
3204
  ...PRIVACY_FLAGS,
2994
3205
  ...CALENDAR_FLAGS,
2995
3206
  ...MAIL_FLAGS,
3207
+ ...KNOWLEDGE_FLAGS,
2996
3208
  ...CRM_FLAGS,
2997
3209
  ...SCHEDULE_FLAGS
2998
3210
  ]
2999
3211
  });
3000
3212
 
3001
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3213
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3002
3214
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
3003
3215
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
3004
3216
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3221,7 +3433,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3221
3433
  }
3222
3434
  }, "runCommandForAgent");
3223
3435
 
3224
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3436
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3225
3437
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3226
3438
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3227
3439
  var message = pipe(
@@ -3480,10 +3692,27 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3480
3692
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3481
3693
  }, "failed");
3482
3694
 
3483
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3695
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3484
3696
  import { randomUUID } from "node:crypto";
3485
3697
  var MATCHES = 8;
3486
3698
  var ANSWER = answerSchema();
3699
+ var agentAnswer = /* @__PURE__ */ __name((prefix, writes2) => {
3700
+ const meta = pipe(looseObject({}), description(`run facts; ${prefix}_tools_search shows the full answer`));
3701
+ const next = optional(pipe(array(looseObject({})), description("steps to run next: command and args")));
3702
+ return looseObject(writes2 ? { item: optional(unknown()), next, meta } : {
3703
+ items: optional(array(unknown())),
3704
+ item: optional(unknown()),
3705
+ page: optional(looseObject({ has_more: boolean() })),
3706
+ next,
3707
+ missing: optional(array(looseObject({ field: string(), why: string() }))),
3708
+ meta
3709
+ });
3710
+ }, "agentAnswer");
3711
+ var listedAs = /* @__PURE__ */ __name((prefix, writes2) => {
3712
+ const checked = toStandardJsonSchema(ANSWER);
3713
+ const shown = toStandardJsonSchema(agentAnswer(prefix, writes2))["~standard"].jsonSchema;
3714
+ return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
3715
+ }, "listedAs");
3487
3716
  var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
3488
3717
  var haystack = /* @__PURE__ */ __name((command, one) => [command, one.title, one.description, ...Object.keys(one.input.entries)].join(" ").toLowerCase(), "haystack");
3489
3718
  var search = /* @__PURE__ */ __name((commands, query) => {
@@ -3588,7 +3817,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
3588
3817
  arguments: optional(pipe(record(string(), unknown()), description("that command's arguments")))
3589
3818
  });
3590
3819
  server.registerTool(`${prefix}_read`, {
3591
- outputSchema: toStandardJsonSchema(ANSWER),
3820
+ outputSchema: listedAs(prefix, false),
3592
3821
  title: "Run a reading command",
3593
3822
  description: `Run one command that only reads, with the arguments ${prefix}_tools_search showed. ${untrusted}`,
3594
3823
  inputSchema: toStandardJsonSchema(call),
@@ -3596,7 +3825,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
3596
3825
  }, runner(false));
3597
3826
  if (Object.values(commands).some((one) => one.writes))
3598
3827
  server.registerTool(`${prefix}_write`, {
3599
- outputSchema: toStandardJsonSchema(ANSWER),
3828
+ outputSchema: listedAs(prefix, true),
3600
3829
  title: "Run a writing command",
3601
3830
  description: `Run one command that changes something \u2014 ${messenger ? "sends, edits, deletes, joins" : "creates, edits, deletes"} \u2014 with the arguments ${prefix}_tools_search showed. ${untrusted}`,
3602
3831
  inputSchema: toStandardJsonSchema(call),
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-VJEOGKAN.js";
32
+ } from "./chunk-DA63E2UM.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")