@wirecat/drive-cli 0.64.0 → 0.66.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 (228) hide show
  1. package/contracts/wirecat.json +2871 -0
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bin/drive.js.map +1 -1
  4. package/dist/browse.d.ts +1 -1
  5. package/dist/browse.d.ts.map +1 -1
  6. package/dist/browse.js +1 -1
  7. package/dist/bundle/{all-profiles-BPPT2AK5.js → all-profiles-WCQLIHUG.js} +14 -13
  8. package/dist/bundle/{anthropic-JW6GOJUD.js → anthropic-5RJMB6O7.js} +32 -16
  9. package/dist/bundle/{app-server-KAQIOJMZ.js → app-server-3RGYXPKG.js} +72 -58
  10. package/dist/bundle/{bun-UT7GNTPV.js → bun-L34VEKGG.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-2OIVV3LS.js → bun-sqlite-H6IAXQXI.js} +12 -8
  12. package/dist/bundle/chunk-2AF77WMH.js +13 -0
  13. package/dist/bundle/{chunk-KVW4XNKB.js → chunk-2S3E2HVV.js} +107 -48
  14. package/dist/bundle/{chunk-IX7NQJLY.js → chunk-3NYH756U.js} +49 -116
  15. package/dist/bundle/chunk-3QFUDXMQ.js +53 -0
  16. package/dist/bundle/{chunk-5ZBR55US.js → chunk-3SDJIMZB.js} +1 -1
  17. package/dist/bundle/{chunk-AHB4OJCI.js → chunk-4UHBJSMI.js} +21735 -27143
  18. package/dist/bundle/chunk-5HVJK3ZJ.js +101 -0
  19. package/dist/bundle/{chunk-GSMYXGFR.js → chunk-5K54RZBK.js} +13 -5
  20. package/dist/bundle/{chunk-LOMW6F2E.js → chunk-5PLINHEY.js} +5403 -4847
  21. package/dist/bundle/{chunk-J62DI53V.js → chunk-5VDVGDOC.js} +1 -1
  22. package/dist/bundle/{chunk-66AF4FBW.js → chunk-5XLU4NN6.js} +4 -4
  23. package/dist/bundle/{chunk-4CNTID2X.js → chunk-6UJCCOZC.js} +4 -4
  24. package/dist/bundle/{chunk-G4KEKKDE.js → chunk-6X3KUFRQ.js} +60 -29
  25. package/dist/bundle/{chunk-QEAD2LF4.js → chunk-7EP4AU6A.js} +3 -3
  26. package/dist/bundle/{chunk-ZRZ4HTCK.js → chunk-7LT2G5BC.js} +171 -174
  27. package/dist/bundle/{chunk-2W464HAE.js → chunk-7ZGJRVBH.js} +7 -5
  28. package/dist/bundle/{chunk-FXBHOCJK.js → chunk-ADLS6FVG.js} +1 -1
  29. package/dist/bundle/{chunk-KG2XKEHL.js → chunk-ALE67WRR.js} +5 -5
  30. package/dist/bundle/{chunk-ZSZJLJIA.js → chunk-AP4MX247.js} +38 -28
  31. package/dist/bundle/{chunk-EWGVDFPT.js → chunk-BIJW6AYA.js} +41873 -36466
  32. package/dist/bundle/{chunk-B7XBIOMR.js → chunk-BQXSE645.js} +16 -16
  33. package/dist/bundle/{chunk-F2VDAG32.js → chunk-COGWKO2T.js} +3 -3
  34. package/dist/bundle/{chunk-EZ6O3ST3.js → chunk-D4MIMH2N.js} +12 -6
  35. package/dist/bundle/{chunk-4YRENUB5.js → chunk-D7KOAPG6.js} +2 -2
  36. package/dist/bundle/chunk-E2F2XIX6.js +224 -0
  37. package/dist/bundle/{chunk-36GPBPWM.js → chunk-FA2TNA5X.js} +3 -1
  38. package/dist/bundle/{chunk-SIOIMO62.js → chunk-FHBTQPA3.js} +69 -63
  39. package/dist/bundle/{chunk-34BIDKF4.js → chunk-FKKPVPZR.js} +649 -212
  40. package/dist/bundle/chunk-G4TNKBDX.js +185 -0
  41. package/dist/bundle/{chunk-2FEZ24DK.js → chunk-GVA3KTCD.js} +20 -20
  42. package/dist/bundle/chunk-GY4DAJSK.js +167 -0
  43. package/dist/bundle/{chunk-5OFA5EXE.js → chunk-H7XL6WTW.js} +2 -2
  44. package/dist/bundle/{chunk-K6BSB53R.js → chunk-HHRJPLFO.js} +1 -1
  45. package/dist/bundle/{chunk-P7DEGRZA.js → chunk-HPKE2GDP.js} +49 -28
  46. package/dist/bundle/{chunk-QXCKJUZY.js → chunk-HPSHQVJU.js} +633 -465
  47. package/dist/bundle/{chunk-BEZJA44H.js → chunk-HQBLJLYH.js} +7 -7
  48. package/dist/bundle/{chunk-JRXFW7HE.js → chunk-I5R5CMQR.js} +5 -5
  49. package/dist/bundle/{chunk-EJ4PNHPP.js → chunk-IIHZTV6V.js} +1 -1
  50. package/dist/bundle/{chunk-G3NULXOM.js → chunk-IRNDYNQX.js} +4 -4
  51. package/dist/bundle/{chunk-N622LRPM.js → chunk-JCHF7LZT.js} +4 -4
  52. package/dist/bundle/{chunk-WWCYTMAV.js → chunk-JHMEETXI.js} +2 -2
  53. package/dist/bundle/{chunk-ZF6GUZCE.js → chunk-JLCR24UM.js} +1 -1
  54. package/dist/bundle/{chunk-IDAK4DDK.js → chunk-JQXK3M5M.js} +1 -1
  55. package/dist/bundle/{chunk-KIN6PDFE.js → chunk-KOY5HUBY.js} +14 -5
  56. package/dist/bundle/{chunk-5HSRQ53R.js → chunk-KRG5X5PH.js} +2 -2
  57. package/dist/bundle/{chunk-VIJ6ACYB.js → chunk-LVAPSAHF.js} +8 -8
  58. package/dist/bundle/{chunk-OEVHZOHC.js → chunk-M7543RUJ.js} +50 -18
  59. package/dist/bundle/{chunk-BZ2ZKILM.js → chunk-MZWXTJ4O.js} +3 -3
  60. package/dist/bundle/{chunk-EC2XGDKJ.js → chunk-NK4GVFJH.js} +4 -4
  61. package/dist/bundle/chunk-NYECVHFH.js +10283 -0
  62. package/dist/bundle/{chunk-HW4UPST2.js → chunk-NYZS2LKF.js} +2 -2
  63. package/dist/bundle/chunk-O53WLYX3.js +72 -0
  64. package/dist/bundle/{chunk-IK6KH3RE.js → chunk-OIF4B526.js} +1 -1
  65. package/dist/bundle/{chunk-UJR272CP.js → chunk-OT7SQQJK.js} +359 -903
  66. package/dist/bundle/chunk-OZOQLAWK.js +72 -0
  67. package/dist/bundle/{chunk-VT2UFYPJ.js → chunk-P7HQFII6.js} +22 -15
  68. package/dist/bundle/{chunk-6G53ZFUT.js → chunk-PJGOQSE5.js} +1 -1
  69. package/dist/bundle/{chunk-OH3K2E7X.js → chunk-PKM55ZRR.js} +704 -1214
  70. package/dist/bundle/{chunk-GW3U6OLD.js → chunk-PUMDOCAF.js} +1 -1
  71. package/dist/bundle/{chunk-EQEGJVO2.js → chunk-QF7VL4C3.js} +1 -1
  72. package/dist/bundle/{chunk-CPMRM3GQ.js → chunk-QJ57PV55.js} +1941 -662
  73. package/dist/bundle/{chunk-O2QO5UZC.js → chunk-QSELSDWE.js} +13 -13
  74. package/dist/bundle/{chunk-BEUAICUD.js → chunk-SOOU5WO6.js} +2 -2
  75. package/dist/bundle/{chunk-46CD64J2.js → chunk-SZ6JFOL4.js} +269 -64
  76. package/dist/bundle/{chunk-UD55VB2N.js → chunk-T3ULDA7C.js} +3 -3
  77. package/dist/bundle/{chunk-E2LBCCTG.js → chunk-TAHISPDE.js} +5 -5
  78. package/dist/bundle/{chunk-6B37XO6B.js → chunk-TYLEICTX.js} +3 -3
  79. package/dist/bundle/{chunk-TNV2FXVK.js → chunk-UAKX6DP4.js} +5 -5
  80. package/dist/bundle/{chunk-VPLFD5RJ.js → chunk-UG3GHFGY.js} +4 -4
  81. package/dist/bundle/{chunk-B67BLRAI.js → chunk-ULXEW6FT.js} +3 -60
  82. package/dist/bundle/{chunk-C7WBNOYW.js → chunk-UNTIVT47.js} +26 -2
  83. package/dist/bundle/chunk-UQPW42HF.js +18 -0
  84. package/dist/bundle/{chunk-USLZE36C.js → chunk-V2WXTILT.js} +6 -6
  85. package/dist/bundle/{chunk-BDYWZ7JE.js → chunk-VQKNKJYL.js} +46 -7
  86. package/dist/bundle/{chunk-XPXKD63J.js → chunk-VR3YKXHL.js} +93 -31
  87. package/dist/bundle/{chunk-UIEA6FIV.js → chunk-VUUPFDRU.js} +27 -28
  88. package/dist/bundle/{chunk-KE4XPPRQ.js → chunk-WYTYHUFH.js} +1750 -138
  89. package/dist/bundle/{chunk-PBMSBCVB.js → chunk-XLGDNI4S.js} +1 -1
  90. package/dist/bundle/{chunk-3J5KAFNA.js → chunk-XVZNFA2P.js} +4935 -3623
  91. package/dist/bundle/chunk-Y5U4HIZS.js +71 -0
  92. package/dist/bundle/chunk-YTIPTHEE.js +47 -0
  93. package/dist/bundle/cli-KW6QQVS5.js +1101 -0
  94. package/dist/bundle/command-contract-CE543JBN.js +41 -0
  95. package/dist/bundle/command-server-entry-OC4E4DED.js +171 -0
  96. package/dist/bundle/{decode-HTOQ6S3V.js → decode-AH5ZLLDK.js} +8 -8
  97. package/dist/bundle/{dispatch-SH5SP6LA.js → dispatch-CDWZZ54Q.js} +9 -9
  98. package/dist/bundle/drive.js +13 -13
  99. package/dist/bundle/{echarts-KFHB6SLX.js → echarts-VC7MTXWY.js} +2 -2
  100. package/dist/bundle/{embed-YATFB2PN.js → embed-EPSQY6QG.js} +9 -9
  101. package/dist/bundle/{embedder-MQPDFGTJ.js → embedder-TK4U4TJR.js} +12 -12
  102. package/dist/bundle/entry-3VN23M7M.js +25 -0
  103. package/dist/bundle/{failure-4FQL4XJI.js → failure-WSVZOPFE.js} +4 -4
  104. package/dist/bundle/first-run-7ZYJ7EB3.js +30 -0
  105. package/dist/bundle/first-screen-CZDH7QY3.js +39 -0
  106. package/dist/bundle/google-OBZMWA7J.js +45 -0
  107. package/dist/bundle/{google-api-QMFGCXBM.js → google-api-AV4X2JH3.js} +68 -57
  108. package/dist/bundle/grants-WTRLN4ZI.js +111 -0
  109. package/dist/bundle/{identity-FYVDK4M2.js → identity-CGHHF7AK.js} +8 -6
  110. package/dist/bundle/{instructions-D3GF3B7M.js → instructions-24PHDBBE.js} +1 -1
  111. package/dist/bundle/{login-COFZ2IWP.js → login-XHFESAFM.js} +73 -64
  112. package/dist/bundle/{mcp-RKJG22KM.js → mcp-M5YCSWJJ.js} +2 -2
  113. package/dist/bundle/{node-OFICOKX3.js → node-GIDULTV5.js} +2 -2
  114. package/dist/bundle/{node-KM3CUABH.js → node-P4E63KXA.js} +9 -9
  115. package/dist/bundle/{node-sqlite-DNBTDOXD.js → node-sqlite-LINBOAWK.js} +13 -9
  116. package/dist/bundle/oauth-JHUX3KE3.js +22 -0
  117. package/dist/bundle/{open-PTPR2YWX.js → open-RYFKPNCJ.js} +8 -8
  118. package/dist/bundle/{openai-2KV5LUW4.js → openai-Q7YYUHJF.js} +28 -42
  119. package/dist/bundle/{process-EAW6NST2.js → process-VPIZTIJR.js} +1 -1
  120. package/dist/bundle/{program-6UV5Q5YN.js → program-IUXFRBZA.js} +419 -604
  121. package/dist/bundle/{prompt-634TPMJK.js → prompt-LF4KX3XL.js} +8 -8
  122. package/dist/bundle/{reasons-DDWCEYSQ.js → reasons-JPYOU5GV.js} +5 -5
  123. package/dist/bundle/{recognize-SJO6QUDW.js → recognize-KEWTJXFH.js} +7 -7
  124. package/dist/bundle/{remote-6JXZITKF.js → remote-HGGLB76S.js} +13 -10
  125. package/dist/bundle/{rerank-MD5VOPQ6.js → rerank-TDUKETFT.js} +10 -10
  126. package/dist/bundle/{serve-LZTROA2M.js → serve-XFYMKW5W.js} +12 -12
  127. package/dist/bundle/server-BDEV3CZJ.js +74 -0
  128. package/dist/bundle/{server-NSA3UAFY.js → server-PXIPSGFP.js} +48 -44
  129. package/dist/bundle/{services-F5A6XQCV.js → services-2BOCGMJU.js} +111 -41
  130. package/dist/bundle/{sqlite-runtime-7YF6REKS.js → sqlite-runtime-R7M5XUMW.js} +9 -9
  131. package/dist/bundle/{start-MUFLE6FA.js → start-YRLT4MQZ.js} +7 -7
  132. package/dist/bundle/{state-UC54F3YZ.js → state-NZ7WRJWH.js} +9 -9
  133. package/dist/bundle/{store-F5FJGWMR.js → store-7LCVDO7G.js} +63 -28
  134. package/dist/bundle/{store-J53YNAH6.js → store-ICDGPSEN.js} +27 -18
  135. package/dist/bundle/store-maintenance-command-SJPLY6IH.js +65 -0
  136. package/dist/bundle/tokens-FGTBE7VW.js +111 -0
  137. package/dist/commands/config.d.ts.map +1 -1
  138. package/dist/commands/config.js +6 -5
  139. package/dist/commands/config.js.map +1 -1
  140. package/dist/commands/context.d.ts +4 -2
  141. package/dist/commands/context.d.ts.map +1 -1
  142. package/dist/commands/context.js.map +1 -1
  143. package/dist/commands/discovery.d.ts +0 -1
  144. package/dist/commands/discovery.d.ts.map +1 -1
  145. package/dist/commands/discovery.js +6 -26
  146. package/dist/commands/discovery.js.map +1 -1
  147. package/dist/commands/documents.d.ts +2 -0
  148. package/dist/commands/documents.d.ts.map +1 -1
  149. package/dist/commands/documents.js +39 -3
  150. package/dist/commands/documents.js.map +1 -1
  151. package/dist/commands/knowledge.d.ts.map +1 -1
  152. package/dist/commands/knowledge.js +7 -6
  153. package/dist/commands/knowledge.js.map +1 -1
  154. package/dist/commands/search.d.ts.map +1 -1
  155. package/dist/commands/search.js +11 -8
  156. package/dist/commands/search.js.map +1 -1
  157. package/dist/config.d.ts +14 -0
  158. package/dist/config.d.ts.map +1 -1
  159. package/dist/config.js +35 -4
  160. package/dist/config.js.map +1 -1
  161. package/dist/contract-overrides.d.ts +16 -4
  162. package/dist/contract-overrides.d.ts.map +1 -1
  163. package/dist/contract-overrides.js +86 -410
  164. package/dist/contract-overrides.js.map +1 -1
  165. package/dist/documents-add.d.ts +49 -0
  166. package/dist/documents-add.d.ts.map +1 -0
  167. package/dist/documents-add.js +122 -0
  168. package/dist/documents-add.js.map +1 -0
  169. package/dist/errors.d.ts +1 -0
  170. package/dist/errors.d.ts.map +1 -1
  171. package/dist/errors.js +13 -1
  172. package/dist/errors.js.map +1 -1
  173. package/dist/google-api.d.ts.map +1 -1
  174. package/dist/google-api.js +4 -1
  175. package/dist/google-api.js.map +1 -1
  176. package/dist/identity.d.ts +4 -0
  177. package/dist/identity.d.ts.map +1 -1
  178. package/dist/identity.js +22 -0
  179. package/dist/identity.js.map +1 -1
  180. package/dist/knowledge.d.ts +1 -1
  181. package/dist/knowledge.d.ts.map +1 -1
  182. package/dist/knowledge.js +17 -19
  183. package/dist/knowledge.js.map +1 -1
  184. package/dist/login.d.ts.map +1 -1
  185. package/dist/login.js +2 -2
  186. package/dist/login.js.map +1 -1
  187. package/dist/model.d.ts +3 -0
  188. package/dist/model.d.ts.map +1 -1
  189. package/dist/model.js.map +1 -1
  190. package/dist/program.d.ts.map +1 -1
  191. package/dist/program.js +30 -21
  192. package/dist/program.js.map +1 -1
  193. package/dist/reasons.d.ts.map +1 -1
  194. package/dist/reasons.js +25 -1
  195. package/dist/reasons.js.map +1 -1
  196. package/dist/store-transition.js +2 -2
  197. package/dist/store-transition.js.map +1 -1
  198. package/dist/store.d.ts.map +1 -1
  199. package/dist/store.js +27 -7
  200. package/dist/store.js.map +1 -1
  201. package/dist/tokens.d.ts +9 -2
  202. package/dist/tokens.d.ts.map +1 -1
  203. package/dist/tokens.js +18 -15
  204. package/dist/tokens.js.map +1 -1
  205. package/dist/version.d.ts +1 -1
  206. package/dist/version.js +1 -1
  207. package/dist/wcat.d.ts +3 -0
  208. package/dist/wcat.d.ts.map +1 -0
  209. package/dist/wcat.js +4 -0
  210. package/dist/wcat.js.map +1 -0
  211. package/package.json +8 -8
  212. package/dist/bundle/chunk-3NULZGQU.js +0 -27
  213. package/dist/bundle/chunk-DD7EFG6B.js +0 -35
  214. package/dist/bundle/chunk-M73NNJ3X.js +0 -26
  215. package/dist/bundle/chunk-SBZB7HMU.js +0 -1055
  216. package/dist/bundle/command-contract-H5OYJOPF.js +0 -38
  217. package/dist/bundle/dist-PY3MVR3G.js +0 -21
  218. package/dist/bundle/entry-YZBB647C.js +0 -22
  219. package/dist/bundle/first-run-5JT3UQZB.js +0 -30
  220. package/dist/bundle/first-screen-BEMDEWO7.js +0 -36
  221. package/dist/bundle/google-DVADVICN.js +0 -36
  222. package/dist/bundle/grants-WKB2E4TA.js +0 -103
  223. package/dist/bundle/oauth-PDQHWFBF.js +0 -22
  224. package/dist/bundle/server-GT7X666D.js +0 -69
  225. package/dist/bundle/store-maintenance-command-GJVXLBAB.js +0 -58
  226. package/dist/bundle/tokens-H2EJKGA5.js +0 -101
  227. package/dist/bundle/{chunk-SW6C6WH5.js → chunk-HVJJWJYQ.js} +0 -0
  228. 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-QXCKJUZY.js";
10
+ } from "./chunk-HPSHQVJU.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-4YRENUB5.js";
13
+ } from "./chunk-D7KOAPG6.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
17
17
  refuseLacking
18
- } from "./chunk-P7DEGRZA.js";
18
+ } from "./chunk-HPKE2GDP.js";
19
+ import {
20
+ onlineDeps,
21
+ servicesFor,
22
+ storeModeDeps
23
+ } from "./chunk-XVZNFA2P.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-LOMW6F2E.js";
38
+ } from "./chunk-5PLINHEY.js";
34
39
  import {
35
40
  currentCaller,
36
41
  keepsSuccess,
37
42
  runContextOf,
38
43
  withCaller
39
- } from "./chunk-VT2UFYPJ.js";
40
- import {
41
- onlineDeps,
42
- servicesFor,
43
- storeModeDeps
44
- } from "./chunk-3J5KAFNA.js";
44
+ } from "./chunk-P7HQFII6.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-PKM55ZRR.js";
52
+ import {
53
+ MAX_BUFFERED_INPUT
54
+ } from "./chunk-H7XL6WTW.js";
55
+ import {
56
+ enclosingTraceId,
57
+ inRun,
52
58
  newRunId,
53
- readKeysForCommand,
54
59
  traceOf
55
- } from "./chunk-OH3K2E7X.js";
60
+ } from "./chunk-QJ57PV55.js";
56
61
  import {
57
62
  queryDescription
58
- } from "./chunk-2FEZ24DK.js";
63
+ } from "./chunk-GVA3KTCD.js";
59
64
  import {
60
65
  storeDamaged
61
- } from "./chunk-B67BLRAI.js";
62
- import {
63
- MAX_BUFFERED_INPUT
64
- } from "./chunk-5OFA5EXE.js";
66
+ } from "./chunk-O53WLYX3.js";
65
67
  import {
66
68
  captureStreams
67
- } from "./chunk-G4KEKKDE.js";
69
+ } from "./chunk-6X3KUFRQ.js";
68
70
  import {
69
71
  errorObjectOf,
70
72
  mcpErrorResult
71
- } from "./chunk-KG2XKEHL.js";
73
+ } from "./chunk-ALE67WRR.js";
72
74
  import {
73
75
  traceIdOf
74
- } from "./chunk-HW4UPST2.js";
76
+ } from "./chunk-NYZS2LKF.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-BDYWZ7JE.js";
113
+ } from "./chunk-VQKNKJYL.js";
112
114
  import {
113
115
  CliError,
114
116
  errorCodes
115
- } from "./chunk-EJ4PNHPP.js";
117
+ } from "./chunk-IIHZTV6V.js";
116
118
  import {
117
119
  __name
118
120
  } from "./chunk-ZVVMGPBJ.js";
119
121
 
120
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/agent.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/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.82.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
125
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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", "type"]),
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");
@@ -164,7 +166,7 @@ var LINT_RULES = defineLintRules([
164
166
  },
165
167
  {
166
168
  id: "command-example-count",
167
- severity: "medium",
169
+ severity: "low",
168
170
  scope: "command",
169
171
  summary: "a leaf command has one to three examples; generated commands are exempt"
170
172
  },
@@ -235,6 +237,24 @@ 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`"
252
+ },
253
+ {
254
+ id: "result-shape",
255
+ severity: "medium",
256
+ scope: "type",
257
+ summary: "a list or search in the published TypeScript API returns `{ items, hasMore, nextOffset?, total? }`: no bare array, no `hits` or `has_more`"
238
258
  }
239
259
  ]);
240
260
  var baselineSchema = array(text);
@@ -248,7 +268,7 @@ var overrideSchema = strictObject({
248
268
  });
249
269
  var overridesSchema = array(overrideSchema);
250
270
 
251
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
271
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
272
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
253
273
  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
274
  var AUDIT_RULES = defineAuditRules([
@@ -300,7 +320,9 @@ var parityGroupSchema = strictObject({
300
320
  absent: optional(word),
301
321
  /** The one CLI that has the path or flag by design; every other CLI compared must lack it. */
302
322
  only: optional(word),
303
- reason: pipe(text, minLength(10, "say why, in a sentence"))
323
+ reason: pipe(text, minLength(10, "say why, in a sentence")),
324
+ /** Warns from 14 days before and fails 14 days after, as a lint override does. */
325
+ review_after: optional(pipe(string(), isoDate("a date, YYYY-MM-DD")))
304
326
  }))
305
327
  });
306
328
  var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity groups", array(parityGroupSchema), input, (groups) => [
@@ -374,7 +396,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
374
396
  { path: ["upgrade"], meaning: "updates the CLI" }
375
397
  ]);
376
398
 
377
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
399
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
400
  var fieldRuleSchema = strictObject({ id: word, rule: text });
379
401
  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
402
  var FIELD_RULES = defineFieldRules([
@@ -390,7 +412,7 @@ var FIELD_RULES = defineFieldRules([
390
412
  }
391
413
  ]);
392
414
 
393
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
415
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
416
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
395
417
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
396
418
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -412,7 +434,44 @@ var IDENTIFIERS = defineIdentifiers([
412
434
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
413
435
  ]);
414
436
 
415
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
437
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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-account.js
438
+ var ACCOUNT_FLAGS = [
439
+ {
440
+ name: "--client-id",
441
+ value: "<id>",
442
+ role: "mode",
443
+ type: "id",
444
+ meaning: "sign in through the owner's own OAuth app with this client ID instead of WireCat's (WC-SECR-25)"
445
+ },
446
+ {
447
+ name: "--client-file",
448
+ value: "<file>",
449
+ role: "mode",
450
+ type: "path",
451
+ meaning: "sign in through the owner's own OAuth app read from this client JSON instead of WireCat's (WC-SECR-25)"
452
+ },
453
+ {
454
+ name: "--keep-data",
455
+ role: "mode",
456
+ type: "switch",
457
+ meaning: "remove the account but leave what the store holds of it, still searchable"
458
+ },
459
+ {
460
+ name: "--delete-data",
461
+ role: "mode",
462
+ type: "switch",
463
+ meaning: "remove the account and delete what the store and the tool's files hold of it"
464
+ },
465
+ {
466
+ name: "--answer-stdin",
467
+ role: "mode",
468
+ type: "switch",
469
+ meaning: "a sign-in step asks its question as a JSON line and reads the answer from stdin"
470
+ },
471
+ { name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
472
+ ];
473
+
474
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
475
  var CALENDAR_FLAGS = [
417
476
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
418
477
  {
@@ -486,7 +545,7 @@ var CALENDAR_FLAGS = [
486
545
  }
487
546
  ];
488
547
 
489
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
548
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
549
  var CRM_FLAGS = [
491
550
  {
492
551
  name: "--pipeline",
@@ -517,6 +576,13 @@ var CRM_FLAGS = [
517
576
  type: "time",
518
577
  meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
519
578
  },
579
+ {
580
+ name: "--position",
581
+ value: "<title>",
582
+ role: "value",
583
+ type: "string",
584
+ meaning: "a person's job title on a relationship, stored as position; never the role"
585
+ },
520
586
  {
521
587
  name: "--owner",
522
588
  value: "<user>",
@@ -584,6 +650,13 @@ var CRM_FLAGS = [
584
650
  type: "choice",
585
651
  meaning: "it renews by itself at its end, or it does not"
586
652
  },
653
+ {
654
+ name: "--period",
655
+ value: "<count-unit>",
656
+ role: "value",
657
+ type: "duration",
658
+ meaning: "how often a charge repeats: a count and a calendar unit, such as 1-month"
659
+ },
587
660
  {
588
661
  name: "--opening-balance",
589
662
  value: "<decimal>",
@@ -622,7 +695,7 @@ var CRM_FLAGS = [
622
695
  }
623
696
  ];
624
697
 
625
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
698
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
626
699
  var HOW_FLAGS = [
627
700
  {
628
701
  name: "--limit",
@@ -849,7 +922,6 @@ var HOW_FLAGS = [
849
922
  meaning: "expose meeting preparation tools, including their remote schedule reads"
850
923
  },
851
924
  { name: "--dry-run", role: "mode", type: "switch", meaning: "judge and plan; do nothing", replaces: ["--estimate"] },
852
- { name: "--accept-terms", role: "mode", type: "switch", meaning: "accept the model's licence terms" },
853
925
  {
854
926
  name: "--as-owner",
855
927
  role: "mode",
@@ -908,6 +980,7 @@ var HOW_FLAGS = [
908
980
  replaces: ["--expected"]
909
981
  },
910
982
  { name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
983
+ { name: "--with-muted", role: "mode", type: "switch", meaning: "also read the chats the owner muted" },
911
984
  {
912
985
  name: "--for-everyone",
913
986
  role: "mode",
@@ -1200,6 +1273,7 @@ var HOW_FLAGS = [
1200
1273
  { name: "--retract", role: "action", type: "switch", meaning: "take the owner's vote back" },
1201
1274
  { name: "--revoke", role: "action", type: "switch", meaning: "forget every login given to a browser app" },
1202
1275
  { name: "--track", role: "action", type: "switch", meaning: "also do it daily while serve runs" },
1276
+ { name: "--undo", role: "mode", type: "switch", meaning: "put back what the last change replaced, not a new value" },
1203
1277
  {
1204
1278
  name: "--transcribe",
1205
1279
  role: "action",
@@ -1618,7 +1692,45 @@ var HOW_FLAGS = [
1618
1692
  }
1619
1693
  ];
1620
1694
 
1621
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
1695
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
1696
+ var KNOWLEDGE_FLAGS = [
1697
+ {
1698
+ name: "--accept-terms",
1699
+ role: "mode",
1700
+ type: "switch",
1701
+ meaning: "no longer needed; kept so older scripts still run"
1702
+ },
1703
+ {
1704
+ name: "--quote",
1705
+ value: "<ref=words...>",
1706
+ role: "value",
1707
+ type: "list",
1708
+ meaning: "the words an --evidence reference says that a record rests on, as <ref>=<words>, one per reference"
1709
+ },
1710
+ {
1711
+ name: "--suggest",
1712
+ value: "<text>",
1713
+ role: "value",
1714
+ type: "string",
1715
+ meaning: "wording offered for the owner to take or leave; it decides nothing"
1716
+ },
1717
+ {
1718
+ name: "--keep-copy",
1719
+ role: "mode",
1720
+ type: "switch",
1721
+ meaning: "keep a copy of the original file as well as its text"
1722
+ },
1723
+ {
1724
+ name: "--max-chars",
1725
+ value: "<n>",
1726
+ role: "budget",
1727
+ type: "count",
1728
+ meaning: "at most this many characters read",
1729
+ unit: "characters"
1730
+ }
1731
+ ];
1732
+
1733
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
1622
1734
  var MAIL_FLAGS = [
1623
1735
  {
1624
1736
  name: "--cc",
@@ -1648,7 +1760,7 @@ var MAIL_FLAGS = [
1648
1760
  }
1649
1761
  ];
1650
1762
 
1651
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
1763
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
1652
1764
  var PRIVACY_FLAGS = [
1653
1765
  {
1654
1766
  name: "--about-text",
@@ -1709,8 +1821,15 @@ var PRIVACY_FLAGS = [
1709
1821
  { name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
1710
1822
  ];
1711
1823
 
1712
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
1824
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
1713
1825
  var SCHEDULE_FLAGS = [
1826
+ {
1827
+ name: "--locale",
1828
+ value: "<code>",
1829
+ role: "target",
1830
+ type: "string",
1831
+ meaning: "a human language, as an ISO 639-1 code such as en or ru: which language's version it acts on"
1832
+ },
1714
1833
  {
1715
1834
  name: "--notify-on",
1716
1835
  value: "<when>",
@@ -1735,7 +1854,7 @@ var SCHEDULE_FLAGS = [
1735
1854
  }
1736
1855
  ];
1737
1856
 
1738
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
1857
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
1739
1858
  var WHAT_FLAGS = [
1740
1859
  {
1741
1860
  name: "--analysis-provider",
@@ -1751,6 +1870,13 @@ var WHAT_FLAGS = [
1751
1870
  type: "choice",
1752
1871
  meaning: "who computes embeddings: a local model or a configured remote model service"
1753
1872
  },
1873
+ {
1874
+ name: "--region",
1875
+ value: "<country>",
1876
+ role: "mode",
1877
+ type: "string",
1878
+ meaning: "the two-letter country code, such as ru, that phone numbers written without + are read in"
1879
+ },
1754
1880
  {
1755
1881
  name: "--consent-provider",
1756
1882
  value: "<identity>",
@@ -2044,6 +2170,13 @@ var WHAT_FLAGS = [
2044
2170
  type: "list",
2045
2171
  meaning: "the agents to install for, comma-separated"
2046
2172
  },
2173
+ {
2174
+ name: "--from",
2175
+ value: "<person>",
2176
+ role: "target",
2177
+ type: "id",
2178
+ meaning: "a person: the one identities leave, or the one who sent it; a search takes it repeated for any of several"
2179
+ },
2047
2180
  {
2048
2181
  name: "--from-dir",
2049
2182
  value: "<dir>",
@@ -2279,7 +2412,13 @@ var WHAT_FLAGS = [
2279
2412
  meaning: "who joins by the link asks first, and an admin lets them in"
2280
2413
  },
2281
2414
  { name: "--can", value: "<rights>", role: "value", type: "list", meaning: "what an admin may do, comma-separated" },
2282
- { name: "--channel", role: "value", type: "switch", meaning: "a channel instead of a group" },
2415
+ {
2416
+ name: "--channel",
2417
+ role: "value",
2418
+ type: "switch",
2419
+ otherValues: ["channel"],
2420
+ meaning: "a channel instead of a group (a switch), or what a message is written for (<channel>), such as email"
2421
+ },
2283
2422
  {
2284
2423
  name: "--certainty",
2285
2424
  value: "<n>",
@@ -2461,14 +2600,7 @@ var WHAT_FLAGS = [
2461
2600
  type: "id",
2462
2601
  meaning: "the stored calendar event it is linked to, or none to unlink"
2463
2602
  },
2464
- {
2465
- name: "--every",
2466
- value: "<duration>",
2467
- role: "value",
2468
- type: "duration",
2469
- otherValues: ["count-unit"],
2470
- meaning: "repeat this often: a length of time for a timer (<duration>), a count and a calendar unit for a charge, such as 1-month (<count-unit>)"
2471
- },
2603
+ { name: "--every", value: "<duration>", role: "value", type: "duration", meaning: "repeat this often" },
2472
2604
  {
2473
2605
  name: "--evidence",
2474
2606
  value: "<ref...>",
@@ -2495,7 +2627,7 @@ var WHAT_FLAGS = [
2495
2627
  value: "<file>",
2496
2628
  role: "value",
2497
2629
  type: "path",
2498
- meaning: "a file to send with the message; the text becomes its caption"
2630
+ meaning: "a file it reads: one to send with a message, the text its caption, or the new text of a write"
2499
2631
  },
2500
2632
  {
2501
2633
  name: "--filename",
@@ -2539,7 +2671,15 @@ var WHAT_FLAGS = [
2539
2671
  meaning: "what kind of thing it is; the command lists the kinds"
2540
2672
  },
2541
2673
  { name: "--name", value: "<name>", role: "value", type: "string", meaning: "the name to give it" },
2674
+ {
2675
+ name: "--button",
2676
+ value: "<text=data>",
2677
+ role: "value",
2678
+ type: "string",
2679
+ meaning: "an inline button under a message: its text, then the data a press sends back; repeat for more in one row"
2680
+ },
2542
2681
  { name: "--no-approval", role: "value", type: "switch", meaning: "anyone with the link joins at once" },
2682
+ { name: "--no-buttons", role: "value", type: "switch", meaning: "take the buttons off the message" },
2543
2683
  {
2544
2684
  name: "--notification",
2545
2685
  value: "<text>",
@@ -2574,6 +2714,13 @@ var WHAT_FLAGS = [
2574
2714
  },
2575
2715
  { name: "--remind-time", value: "<time>", role: "value", type: "time", meaning: "when to look at it again" },
2576
2716
  { name: "--role", value: "<role>", role: "value", type: "string", meaning: "the part it plays, in a word or two" },
2717
+ {
2718
+ name: "--label",
2719
+ value: "<label>",
2720
+ role: "value",
2721
+ type: "string",
2722
+ meaning: "a human-readable label for an id, such as the name shown for a custom relationship role"
2723
+ },
2577
2724
  {
2578
2725
  name: "--scope",
2579
2726
  value: "<scope>",
@@ -2704,7 +2851,7 @@ var WHAT_FLAGS = [
2704
2851
  }
2705
2852
  ];
2706
2853
 
2707
- // node_modules/.pnpm/@wirecat+cli-base@0.82.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
2854
+ // node_modules/.pnpm/@wirecat+cli-base@0.98.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
2708
2855
  var FLAG_TYPES = [
2709
2856
  "switch",
2710
2857
  "count",
@@ -2800,6 +2947,7 @@ var verbs = [
2800
2947
  ["status", "how a thing stands right now"],
2801
2948
  ["check", "verify, and change nothing; the answer says what is wrong and how to fix it"],
2802
2949
  ["test", "run rules over what is already stored and say what they would have done, doing none of it"],
2950
+ ["preview", "render what would be sent or written, from what is stored or a draft; sends and saves nothing"],
2803
2951
  ["apply", "run the owner's saved rules over what is already stored and change what they match; dry run unless --yes"],
2804
2952
  ["scan", "read stored messages for what a rule finds, such as tasks, and list it; records it only with --yes"],
2805
2953
  ["pause", "stop what a running process does for a profile, without stopping the process"],
@@ -2857,6 +3005,7 @@ var verbs = [
2857
3005
  "look at a source before taking anything from it: a chat link without joining, a mailbox without importing"
2858
3006
  ],
2859
3007
  ["send", "send a message"],
3008
+ ["call", "call one provider API method by its own name, generated from the provider's method list"],
2860
3009
  ["edit", "change a sent message"],
2861
3010
  ["forward", "send an existing message on to another chat"],
2862
3011
  ["pin", "pin a message or chat"],
@@ -2886,6 +3035,7 @@ var verbs = [
2886
3035
  ["assign", "name the person responsible for work, with their task role"],
2887
3036
  ["reverse", "record that an accepted decision no longer holds, without replacing it"],
2888
3037
  ["invalidate", "mark a derived record whose supporting evidence no longer holds"],
3038
+ ["challenge", "say a record no longer holds, citing what contradicts it; it only proposes, and the owner decides"],
2889
3039
  ["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
2890
3040
  ["confirm", "the owner accepts what an agent proposed"],
2891
3041
  ["reject", "the owner refuses what an agent proposed"],
@@ -2935,6 +3085,7 @@ var collections = [
2935
3085
  ["topics", "forum topics in a group"],
2936
3086
  ["models", "local or remote models"],
2937
3087
  ["tags", "labels the owner puts on things"],
3088
+ ["groups", "account groups: the accounts a run in a group reads, such as work and personal (WC-ACCT-13)"],
2938
3089
  ["searches", "the owner's saved searches"],
2939
3090
  ["copies", "tables kept aside by a repair"],
2940
3091
  ["tables", "the tables of the local store, with their kind, row count and size"],
@@ -2945,6 +3096,7 @@ var collections = [
2945
3096
  ["tracking", "the chats whose member lists are fetched daily"],
2946
3097
  ["documents", "files imported from Google Drive or Docs, or linked in a chat"],
2947
3098
  ["notes", "text the owner writes, or files from a notes folder"],
3099
+ ["sources", "what the owner adds by hand to read from: a file, a web page or a pasted text, kept as its text"],
2948
3100
  ["projects", "the owner's work units with a task key"],
2949
3101
  [
2950
3102
  "annotations",
@@ -2979,6 +3131,7 @@ var collections = [
2979
3131
  ["facts", "what happened, with evidence"],
2980
3132
  ["memories", "what an agent concluded, with evidence and scope"],
2981
3133
  ["relationships", "confirmed or suggested links between people, organizations and projects"],
3134
+ ["roles", "the parts a person plays in a relationship, built in or the owner's own"],
2982
3135
  ["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
2983
3136
  ["files", "files in the source, such as Google Drive, read and changed there"],
2984
3137
  ["comments", "comments people left on a thing in the source: a channel post or a file"],
@@ -3059,6 +3212,7 @@ var views = [
3059
3212
  ["categories", "the categories a thing takes, with what each means"],
3060
3213
  ["domains", "the internet domains links point to, most linked first"],
3061
3214
  ["places", "the street addresses confirmed as places, most mentioned first"],
3215
+ ["mentions", "the people and organizations named in a selected thing's text"],
3062
3216
  ["comments", "replies attached to a selected source item"],
3063
3217
  ["links", "links held for a selected thing"],
3064
3218
  ["voters", "people whose recorded votes are visible for a selected poll"],
@@ -3107,14 +3261,16 @@ var VOCABULARY = defineVocabulary({
3107
3261
  ...HOW_FLAGS,
3108
3262
  ...WHAT_FLAGS,
3109
3263
  ...PRIVACY_FLAGS,
3264
+ ...ACCOUNT_FLAGS,
3110
3265
  ...CALENDAR_FLAGS,
3111
3266
  ...MAIL_FLAGS,
3267
+ ...KNOWLEDGE_FLAGS,
3112
3268
  ...CRM_FLAGS,
3113
3269
  ...SCHEDULE_FLAGS
3114
3270
  ]
3115
3271
  });
3116
3272
 
3117
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3273
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3118
3274
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
3119
3275
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
3120
3276
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3224,6 +3380,9 @@ var fieldsOf = /* @__PURE__ */ __name((info, { omit = [], offline = false, stdin
3224
3380
  }, "fieldsOf");
3225
3381
  var schemaOf = /* @__PURE__ */ __name((fields) => object(Object.fromEntries(fields.map((field) => [field.name, field.required ? field.schema : optional(field.schema)]))), "schemaOf");
3226
3382
  var startsWith = /* @__PURE__ */ __name((path, prefix) => prefix.every((word2, at) => path[at] === word2), "startsWith");
3383
+ var keywordsOf = /* @__PURE__ */ __name((examples) => [
3384
+ ...new Set(examples.flatMap((example) => example.split(/\s+/u).filter((word2) => word2 !== "" && !word2.startsWith("-"))))
3385
+ ], "keywordsOf");
3227
3386
  var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
3228
3387
  const { root = [], exclude = [], levels, keyOf, authority, readOnly = false, permissions } = options;
3229
3388
  return flatten(commands).filter((info) => (
@@ -3235,6 +3394,7 @@ var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
3235
3394
  path: info.path,
3236
3395
  title: info.summary ?? info.description,
3237
3396
  description: info.description,
3397
+ ...info.examples?.length ? { keywords: keywordsOf(info.examples) } : {},
3238
3398
  writes: writes(info.effects) && options.fetchOnly?.(info.path) !== true,
3239
3399
  input: schemaOf(fieldsOf(info, options)),
3240
3400
  ...info.output ? { output: info.output } : {}
@@ -3337,7 +3497,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3337
3497
  }
3338
3498
  }, "runCommandForAgent");
3339
3499
 
3340
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3500
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3341
3501
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3342
3502
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3343
3503
  var message = pipe(
@@ -3596,20 +3756,65 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3596
3756
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3597
3757
  }, "failed");
3598
3758
 
3599
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3759
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3600
3760
  import { randomUUID } from "node:crypto";
3601
3761
  var MATCHES = 8;
3602
3762
  var ANSWER = answerSchema();
3763
+ var agentAnswer = /* @__PURE__ */ __name((prefix, writes2) => {
3764
+ const meta = pipe(looseObject({}), description(`run facts; ${prefix}_tools_search shows the full answer`));
3765
+ const next = optional(pipe(array(looseObject({})), description("steps to run next: command and args")));
3766
+ return looseObject(writes2 ? { item: optional(unknown()), next, meta } : {
3767
+ items: optional(array(unknown())),
3768
+ item: optional(unknown()),
3769
+ page: optional(looseObject({ has_more: boolean() })),
3770
+ next,
3771
+ missing: optional(array(looseObject({ field: string(), why: string() }))),
3772
+ meta
3773
+ });
3774
+ }, "agentAnswer");
3775
+ var listedAs = /* @__PURE__ */ __name((prefix, writes2) => {
3776
+ const checked = toStandardJsonSchema(ANSWER);
3777
+ const shown = toStandardJsonSchema(agentAnswer(prefix, writes2))["~standard"].jsonSchema;
3778
+ return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
3779
+ }, "listedAs");
3603
3780
  var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
3604
- var haystack = /* @__PURE__ */ __name((command, one) => [command, one.title, one.description, ...Object.keys(one.input.entries)].join(" ").toLowerCase(), "haystack");
3781
+ var STOP_WORDS = new Set("a an the to of in on at by for from with into out about and or but is are be been was were it its this that these those which who whom whose what when where how do does did can could should would will my our your their his her them they we you i one some any all each every another other".split(" "));
3782
+ var wordsOf = /* @__PURE__ */ __name((text3) => text3.toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), "wordsOf");
3783
+ var stem = /* @__PURE__ */ __name((word2) => {
3784
+ const bare = word2.replace(/'s$/u, "");
3785
+ if (bare.length > 4 && bare.endsWith("ies"))
3786
+ return `${bare.slice(0, -3)}y`;
3787
+ for (const ending of ["ing", "ed", "es", "s"])
3788
+ if (bare.length - ending.length >= 3 && bare.endsWith(ending))
3789
+ return bare.slice(0, -ending.length);
3790
+ return bare;
3791
+ }, "stem");
3792
+ var sameWord = /* @__PURE__ */ __name((asked, known) => {
3793
+ if (asked === known)
3794
+ return true;
3795
+ const [short, long] = asked.length <= known.length ? [asked, known] : [known, asked];
3796
+ return short.length >= 3 && long.startsWith(short);
3797
+ }, "sameWord");
3798
+ var fieldsOf2 = /* @__PURE__ */ __name((command, one) => [
3799
+ [4, [...wordsOf(command), ...(one.aliases ?? []).flatMap(wordsOf)]],
3800
+ [2, wordsOf(one.title)],
3801
+ [1, [...wordsOf(one.description), ...(one.keywords ?? []).flatMap(wordsOf), ...Object.keys(one.input.entries)]]
3802
+ ].map(([weight, words]) => [weight, [...new Set(words.map(stem))]]), "fieldsOf");
3605
3803
  var search = /* @__PURE__ */ __name((commands, query) => {
3606
- const words = query.toLowerCase().split(/\s+/).filter(Boolean);
3607
- return Object.entries(commands).filter(([command, one]) => words.every((word2) => haystack(command, one).includes(word2))).map((entry) => {
3608
- const parts = entry[0].split(/[\s-]/);
3609
- const exact = entry[0] === words.join(" ") ? 100 : 0;
3610
- const whole = words.filter((word2) => parts.includes(word2)).length * 10;
3611
- return { entry, rank: exact + whole + words.filter((word2) => entry[0].includes(word2)).length };
3612
- }).sort((a, b) => b.rank - a.rank || a.entry[0].localeCompare(b.entry[0])).map(({ entry }) => entry);
3804
+ const named = normal(query);
3805
+ const all = Object.entries(commands);
3806
+ if (!named)
3807
+ return all.map((entry) => entry).sort((a, b) => a[0].localeCompare(b[0]));
3808
+ const words = [
3809
+ ...new Set(wordsOf(query).filter((word2) => word2.length > 1 && !STOP_WORDS.has(word2)).map(stem))
3810
+ ];
3811
+ return all.map((entry) => {
3812
+ const fields = fieldsOf2(entry[0], entry[1]);
3813
+ const weights = words.map((word2) => fields.reduce((best, [weight, known]) => known.some((one) => sameWord(word2, one)) ? Math.max(best, weight) : best, 0));
3814
+ const matched = weights.filter((weight) => weight > 0).length;
3815
+ const exact = normal(entry[0]) === named || (entry[1].aliases ?? []).some((alias) => normal(alias) === named);
3816
+ return { entry, matched, rank: (exact ? 1e3 : 0) + matched * 10 + weights.reduce((a, b) => a + b, 0) };
3817
+ }).filter(({ matched, rank }) => matched > 0 || rank >= 1e3).sort((a, b) => b.rank - a.rank || a.entry[0].localeCompare(b.entry[0])).map(({ entry }) => entry);
3613
3818
  }, "search");
3614
3819
  var nearest = /* @__PURE__ */ __name((commands, asked) => {
3615
3820
  const words = normal(asked).split(" ");
@@ -3704,7 +3909,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
3704
3909
  arguments: optional(pipe(record(string(), unknown()), description("that command's arguments")))
3705
3910
  });
3706
3911
  server.registerTool(`${prefix}_read`, {
3707
- outputSchema: toStandardJsonSchema(ANSWER),
3912
+ outputSchema: listedAs(prefix, false),
3708
3913
  title: "Run a reading command",
3709
3914
  description: `Run one command that only reads, with the arguments ${prefix}_tools_search showed. ${untrusted}`,
3710
3915
  inputSchema: toStandardJsonSchema(call),
@@ -3712,7 +3917,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
3712
3917
  }, runner(false));
3713
3918
  if (Object.values(commands).some((one) => one.writes))
3714
3919
  server.registerTool(`${prefix}_write`, {
3715
- outputSchema: toStandardJsonSchema(ANSWER),
3920
+ outputSchema: listedAs(prefix, true),
3716
3921
  title: "Run a writing command",
3717
3922
  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}`,
3718
3923
  inputSchema: toStandardJsonSchema(call),