@wirecat/drive-cli 0.69.0 → 0.70.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 (217) hide show
  1. package/contracts/wirecat.json +14 -13
  2. package/dist/age.d.ts +0 -36
  3. package/dist/age.d.ts.map +1 -1
  4. package/dist/age.js +0 -22
  5. package/dist/age.js.map +1 -1
  6. package/dist/bin/drive.js +2 -2
  7. package/dist/bundle/{all-profiles-B4A737YW.js → all-profiles-FW3GK3QO.js} +13 -13
  8. package/dist/bundle/{anthropic-RZGPDESM.js → anthropic-QVKJT3II.js} +8 -8
  9. package/dist/bundle/{app-server-OWEW7DY5.js → app-server-QU73RD5R.js} +66 -58
  10. package/dist/bundle/{bun-V5QLYBZU.js → bun-5XCD5CBB.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-KHLHXXGH.js → bun-sqlite-TIGSVNSV.js} +9 -9
  12. package/dist/bundle/{chunk-GK6KXBL6.js → chunk-2SBC4DVV.js} +4 -4
  13. package/dist/bundle/{chunk-E7URRFBB.js → chunk-3AHBZP33.js} +10 -15
  14. package/dist/bundle/{chunk-V4FMN5A6.js → chunk-3CHW7JGR.js} +17 -17
  15. package/dist/bundle/chunk-3TCMANIM.js +387 -0
  16. package/dist/bundle/{chunk-6EL5AVXX.js → chunk-3UWRAIWA.js} +4 -4
  17. package/dist/bundle/{chunk-2DS2TDGW.js → chunk-3UZ4OH22.js} +18 -18
  18. package/dist/bundle/{chunk-WQOGHND4.js → chunk-4WK26MPY.js} +1 -1
  19. package/dist/bundle/{chunk-AD7VI3XU.js → chunk-54BQWRJL.js} +7 -7
  20. package/dist/bundle/{chunk-EA2OB75T.js → chunk-54NDYVZA.js} +1 -1
  21. package/dist/bundle/{chunk-4YECZ6CN.js → chunk-5JTB4URG.js} +12 -12
  22. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
  23. package/dist/bundle/{chunk-BVVXYZSU.js → chunk-6BMTW5A6.js} +9 -9
  24. package/dist/bundle/{chunk-6D44YQ5X.js → chunk-6DPOWBKA.js} +6 -6
  25. package/dist/bundle/{chunk-AMQGKMLZ.js → chunk-7C5KENNU.js} +3 -3
  26. package/dist/bundle/chunk-7DJNURKV.js +823 -0
  27. package/dist/bundle/{chunk-5TK2YQCO.js → chunk-7IBENBCK.js} +2 -2
  28. package/dist/bundle/chunk-7QSRODXM.js +259 -0
  29. package/dist/bundle/{chunk-HCZYJMBP.js → chunk-ABZ2NYDT.js} +1 -1
  30. package/dist/bundle/{chunk-RLGQMMYE.js → chunk-AV5UKJZM.js} +35 -13
  31. package/dist/bundle/{chunk-533XOW74.js → chunk-BBFXQPKD.js} +3 -3
  32. package/dist/bundle/{chunk-ZUG67442.js → chunk-BBRMDMIR.js} +3 -3
  33. package/dist/bundle/{chunk-LRCSDAYK.js → chunk-BD2K2ONK.js} +4 -4
  34. package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-BFKFKDPC.js} +1 -1
  35. package/dist/bundle/{chunk-OOIAJRKQ.js → chunk-BXPC5TFG.js} +2 -2
  36. package/dist/bundle/chunk-DHX27E5M.js +31 -0
  37. package/dist/bundle/{chunk-L342KHIZ.js → chunk-DR57KDAY.js} +6 -6
  38. package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-DVI72ZQG.js} +1 -1
  39. package/dist/bundle/{chunk-N4ACIIQB.js → chunk-DVVUJ254.js} +2 -2
  40. package/dist/bundle/{chunk-MHXZ62CU.js → chunk-EDO5LZVF.js} +1 -1
  41. package/dist/bundle/{chunk-LUZRVBQR.js → chunk-EG62WVR2.js} +6 -6
  42. package/dist/bundle/{chunk-WNMPIRRF.js → chunk-F5KJWRF5.js} +3 -3
  43. package/dist/bundle/{chunk-U3RXH6RY.js → chunk-FADAOLGB.js} +4 -4
  44. package/dist/bundle/{chunk-4ZFO2CVH.js → chunk-FCSHWUMW.js} +5 -5
  45. package/dist/bundle/{chunk-GHFBT2ZM.js → chunk-FN3RXBO7.js} +6 -6
  46. package/dist/bundle/{chunk-GTDCP5OG.js → chunk-FONIFRYI.js} +4 -4
  47. package/dist/bundle/{chunk-IQ2QU2X6.js → chunk-FVTKFIQH.js} +981 -589
  48. package/dist/bundle/{chunk-F5UUJU6R.js → chunk-FYPW7NMH.js} +4 -4
  49. package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
  50. package/dist/bundle/{chunk-HEBZCKMU.js → chunk-GAHIHE4K.js} +1778 -2232
  51. package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-GJZSVSV3.js} +2 -2
  52. package/dist/bundle/{chunk-VUPWDCYV.js → chunk-GK3BJMGK.js} +1 -1
  53. package/dist/bundle/{chunk-6XNTELM5.js → chunk-GPDPEHYX.js} +1 -1
  54. package/dist/bundle/{chunk-CU6RATZH.js → chunk-GV5DGHSA.js} +4 -4
  55. package/dist/bundle/{chunk-JRFKCYMW.js → chunk-HHAZ6DCY.js} +23 -6
  56. package/dist/bundle/{chunk-OUM4ZO53.js → chunk-HK225DAG.js} +1 -1
  57. package/dist/bundle/{chunk-5SJZDEIO.js → chunk-HRATXUFH.js} +20 -20
  58. package/dist/bundle/{chunk-TZ75K6R7.js → chunk-HWUPU6WX.js} +8 -8
  59. package/dist/bundle/{chunk-3RLRJHAI.js → chunk-HYXXMSVD.js} +7688 -8301
  60. package/dist/bundle/{chunk-EL2E3ABX.js → chunk-I7YSHUPW.js} +13 -13
  61. package/dist/bundle/{chunk-EWUQIUTB.js → chunk-IFTX7AQU.js} +5 -5
  62. package/dist/bundle/{chunk-BBJVV4E2.js → chunk-IGNIUDI3.js} +61 -38
  63. package/dist/bundle/{chunk-7JKECODO.js → chunk-ILAQIBEO.js} +1 -11
  64. package/dist/bundle/{chunk-SY2HLH5R.js → chunk-KSJAFMU5.js} +57 -23
  65. package/dist/bundle/{chunk-PB6NWKH3.js → chunk-LINBDWJK.js} +2 -2
  66. package/dist/bundle/{chunk-CZ4UEXCE.js → chunk-LMJBQFW6.js} +6 -6
  67. package/dist/bundle/{chunk-IJCUAKR5.js → chunk-ML3R2UHV.js} +4 -4
  68. package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-MXNQZAJQ.js} +2 -2
  69. package/dist/bundle/{chunk-WOUIHZRI.js → chunk-NP7LJATI.js} +15 -67
  70. package/dist/bundle/chunk-OY7TNUEC.js +16 -0
  71. package/dist/bundle/{chunk-2VFAXC6O.js → chunk-P77FL6RY.js} +18 -18
  72. package/dist/bundle/{chunk-I55XYREN.js → chunk-P7PLKNPX.js} +993 -2512
  73. package/dist/bundle/{chunk-3URYKAJP.js → chunk-PAPY6Q6H.js} +1 -1
  74. package/dist/bundle/{chunk-5B5NOAIA.js → chunk-PN4JYURZ.js} +45 -45
  75. package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-PR7XD2DI.js} +2 -2
  76. package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-Q5C6YKAY.js} +21 -16
  77. package/dist/bundle/{chunk-SEJBS7SI.js → chunk-QBAOIMVB.js} +1 -1
  78. package/dist/bundle/{chunk-KUQDBWPU.js → chunk-RCTOWLCD.js} +31 -32
  79. package/dist/bundle/{chunk-22SH77TG.js → chunk-REM5WHHQ.js} +64 -64
  80. package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-RHSBXOQM.js} +1 -1
  81. package/dist/bundle/{chunk-3YKAFLXY.js → chunk-RLNZ7NX5.js} +2 -2
  82. package/dist/bundle/chunk-RQNRYF6D.js +170 -0
  83. package/dist/bundle/{chunk-PV3AWPHR.js → chunk-SONPLYV7.js} +5 -5
  84. package/dist/bundle/{chunk-RWQ7T4Y5.js → chunk-T5D4OGDC.js} +2 -2
  85. package/dist/bundle/{chunk-25FT44S3.js → chunk-TGS5VPJD.js} +282 -525
  86. package/dist/bundle/chunk-TNKQDS5A.js +335 -0
  87. package/dist/bundle/{chunk-NVDR72GP.js → chunk-VVN6GHAZ.js} +60 -81
  88. package/dist/bundle/{chunk-CDSB7WVG.js → chunk-WJK6KTCS.js} +8 -8
  89. package/dist/bundle/{chunk-T6X6EZ5N.js → chunk-WWE5GO6G.js} +3 -3
  90. package/dist/bundle/{chunk-SYUXKV2E.js → chunk-XOL346TJ.js} +2 -2
  91. package/dist/bundle/{chunk-T4FMXDDV.js → chunk-XZBA6FVH.js} +3 -3
  92. package/dist/bundle/chunk-YCL3SK4T.js +1978 -0
  93. package/dist/bundle/{chunk-XVH3WZSZ.js → chunk-YRUR3E3E.js} +53 -53
  94. package/dist/bundle/{chunk-QJGFQRTL.js → chunk-YZPE72GE.js} +12 -12
  95. package/dist/bundle/{chunk-O6PD7RZY.js → chunk-ZCXWV4XO.js} +4 -4
  96. package/dist/bundle/{chunk-376ZGVUZ.js → chunk-ZHZYGY5R.js} +4 -4
  97. package/dist/bundle/{cli-BS4L3HAP.js → cli-K4D4DIGQ.js} +88 -69
  98. package/dist/bundle/command-contract-V3F452QI.js +43 -0
  99. package/dist/bundle/{command-server-entry-CJ2CV7ZV.js → command-server-entry-WREK3QBB.js} +33 -30
  100. package/dist/bundle/decode-SEETPKBH.js +299 -0
  101. package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-SQCEURVK.js} +9 -9
  102. package/dist/bundle/drive.js +11 -11
  103. package/dist/bundle/{echarts-QIXLXS3G.js → echarts-WZ5RKFCX.js} +2 -2
  104. package/dist/bundle/{embed-YNZW5X6M.js → embed-B2UCRZZR.js} +9 -9
  105. package/dist/bundle/{embedder-LRC2PKTS.js → embedder-4R6Z7G7L.js} +12 -12
  106. package/dist/bundle/entry-ORZYRJ5N.js +25 -0
  107. package/dist/bundle/{failure-X6PSLVSO.js → failure-CYNXH3RQ.js} +4 -4
  108. package/dist/bundle/first-run-KAKA6KBY.js +31 -0
  109. package/dist/bundle/first-screen-R645UHRH.js +41 -0
  110. package/dist/bundle/google-BSO3YB7N.js +45 -0
  111. package/dist/bundle/{google-api-7JDZDCWE.js → google-api-SAND2F7L.js} +70 -62
  112. package/dist/bundle/grants-PLNFYARD.js +118 -0
  113. package/dist/bundle/{identity-E43WKN5F.js → identity-JVVGS4U6.js} +6 -6
  114. package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-JSMTSB22.js} +1 -1
  115. package/dist/bundle/{login-RBDJPQAG.js → login-6WG3YBDU.js} +78 -70
  116. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
  117. package/dist/bundle/meeting-combined-SUKMFK3F.js +27 -0
  118. package/dist/bundle/meeting-model-S4YGKIFI.js +29 -0
  119. package/dist/bundle/meeting-semantic-5U7JQCFF.js +25 -0
  120. package/dist/bundle/{node-IEVT2FSJ.js → node-VJMVHOWD.js} +2 -2
  121. package/dist/bundle/{node-sqlite-IENH4TRX.js → node-sqlite-DCNT3HVE.js} +10 -10
  122. package/dist/bundle/oauth-KCMNQ3ZP.js +22 -0
  123. package/dist/bundle/{open-TZ5H7NYM.js → open-NFOEHVW7.js} +8 -8
  124. package/dist/bundle/{openai-XF2KB7W2.js → openai-D47WY7EC.js} +32 -30
  125. package/dist/bundle/{process-6Q23D3TO.js → process-Q2FRU5VA.js} +1 -1
  126. package/dist/bundle/{program-D5XWOHV5.js → program-T2AJJQEM.js} +1332 -1331
  127. package/dist/bundle/{prompt-KUC5D4GX.js → prompt-YJSDABXN.js} +8 -8
  128. package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-WEHPCSJX.js} +5 -5
  129. package/dist/bundle/{recognize-DPFW7HO3.js → recognize-6OBEIEB3.js} +7 -7
  130. package/dist/bundle/{remote-MODTSUNH.js → remote-3SL2QJ7T.js} +13 -13
  131. package/dist/bundle/{rerank-JK7SERLE.js → rerank-L6F5SLIB.js} +10 -10
  132. package/dist/bundle/{serve-BV2WHZLW.js → serve-GYSWIWH4.js} +12 -12
  133. package/dist/bundle/server-BI46BSRE.js +80 -0
  134. package/dist/bundle/{server-N3WPEU7Z.js → server-GWWP3RIT.js} +54 -46
  135. package/dist/bundle/{services-SV6CFUCS.js → services-BDQBRXT5.js} +79 -54
  136. package/dist/bundle/{sqlite-runtime-RZ5PLZVQ.js → sqlite-runtime-ZSZGAUYB.js} +9 -9
  137. package/dist/bundle/{start-C6EXYXAL.js → start-BJ275RUK.js} +7 -7
  138. package/dist/bundle/{state-RAZIREVG.js → state-HLNGFI2T.js} +9 -9
  139. package/dist/bundle/{store-2DLGLYS6.js → store-I43KZNJW.js} +31 -26
  140. package/dist/bundle/{store-DQKJKX2G.js → store-OSRTGYGI.js} +23 -19
  141. package/dist/bundle/store-maintenance-command-FO7LEVSL.js +72 -0
  142. package/dist/bundle/tokens-DB7O7QNB.js +118 -0
  143. package/dist/catalog.d.ts +0 -28
  144. package/dist/catalog.d.ts.map +1 -1
  145. package/dist/catalog.js +0 -82
  146. package/dist/catalog.js.map +1 -1
  147. package/dist/commands/catalog.d.ts +3 -8
  148. package/dist/commands/catalog.d.ts.map +1 -1
  149. package/dist/commands/catalog.js +36 -109
  150. package/dist/commands/catalog.js.map +1 -1
  151. package/dist/commands/context.d.ts +3 -0
  152. package/dist/commands/context.d.ts.map +1 -1
  153. package/dist/commands/context.js +20 -0
  154. package/dist/commands/context.js.map +1 -1
  155. package/dist/commands/documents.d.ts.map +1 -1
  156. package/dist/commands/documents.js +30 -72
  157. package/dist/commands/documents.js.map +1 -1
  158. package/dist/commands/folders.d.ts +1 -1
  159. package/dist/commands/folders.d.ts.map +1 -1
  160. package/dist/commands/folders.js +45 -48
  161. package/dist/commands/folders.js.map +1 -1
  162. package/dist/commands/knowledge.d.ts +4 -21
  163. package/dist/commands/knowledge.d.ts.map +1 -1
  164. package/dist/commands/knowledge.js +3 -241
  165. package/dist/commands/knowledge.js.map +1 -1
  166. package/dist/commands/mirrors.d.ts +2 -2
  167. package/dist/commands/mirrors.d.ts.map +1 -1
  168. package/dist/commands/mirrors.js +46 -202
  169. package/dist/commands/mirrors.js.map +1 -1
  170. package/dist/commands/search.d.ts +1 -3
  171. package/dist/commands/search.d.ts.map +1 -1
  172. package/dist/commands/search.js +20 -42
  173. package/dist/commands/search.js.map +1 -1
  174. package/dist/commands/sync.d.ts.map +1 -1
  175. package/dist/commands/sync.js +36 -53
  176. package/dist/commands/sync.js.map +1 -1
  177. package/dist/contract-overrides.d.ts +0 -2
  178. package/dist/contract-overrides.d.ts.map +1 -1
  179. package/dist/contract-overrides.js +0 -317
  180. package/dist/contract-overrides.js.map +1 -1
  181. package/dist/knowledge.d.ts +1 -1
  182. package/dist/knowledge.d.ts.map +1 -1
  183. package/dist/knowledge.js +4 -3
  184. package/dist/knowledge.js.map +1 -1
  185. package/dist/list-queries.d.ts +0 -31
  186. package/dist/list-queries.d.ts.map +1 -1
  187. package/dist/list-queries.js +0 -36
  188. package/dist/list-queries.js.map +1 -1
  189. package/dist/program.d.ts.map +1 -1
  190. package/dist/program.js +2 -3
  191. package/dist/program.js.map +1 -1
  192. package/dist/provider-json.d.ts.map +1 -1
  193. package/dist/provider-json.js +5 -5
  194. package/dist/provider-json.js.map +1 -1
  195. package/dist/reasons.d.ts.map +1 -1
  196. package/dist/reasons.js +0 -10
  197. package/dist/reasons.js.map +1 -1
  198. package/dist/version.d.ts +1 -1
  199. package/dist/version.js +1 -1
  200. package/package.json +3 -3
  201. package/dist/bundle/command-contract-HYURWSD6.js +0 -40
  202. package/dist/bundle/decode-E2NM5SSM.js +0 -165
  203. package/dist/bundle/entry-2IMSWRJU.js +0 -25
  204. package/dist/bundle/first-run-7CPHQDM5.js +0 -30
  205. package/dist/bundle/first-screen-OKZ7GMFR.js +0 -38
  206. package/dist/bundle/google-WDKDBDD4.js +0 -45
  207. package/dist/bundle/grants-AU25GWKF.js +0 -110
  208. package/dist/bundle/oauth-3JGSN47Z.js +0 -22
  209. package/dist/bundle/server-6YDI4Y36.js +0 -72
  210. package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +0 -64
  211. package/dist/bundle/tokens-LY3WML55.js +0 -110
  212. package/dist/knowledge-query.d.ts +0 -77
  213. package/dist/knowledge-query.d.ts.map +0 -1
  214. package/dist/knowledge-query.js +0 -104
  215. package/dist/knowledge-query.js.map +0 -1
  216. package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
  217. package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-5XR7K42U.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -8,45 +8,45 @@ import {
8
8
  range,
9
9
  systemFor,
10
10
  validateImages
11
- } from "./chunk-O6PD7RZY.js";
11
+ } from "./chunk-ZCXWV4XO.js";
12
12
  import {
13
13
  refuseOffComputer
14
- } from "./chunk-GHFBT2ZM.js";
14
+ } from "./chunk-FN3RXBO7.js";
15
15
  import {
16
16
  Unzip,
17
17
  UnzipInflate
18
18
  } from "./chunk-5DPV7X27.js";
19
19
  import {
20
20
  envName
21
- } from "./chunk-ZBYKCVSV.js";
21
+ } from "./chunk-PR7XD2DI.js";
22
22
  import {
23
23
  PLAIN_HTTP_REFUSED,
24
24
  endpoint,
25
25
  endpointFetch,
26
26
  modelAddressAllowed,
27
27
  onThisComputer
28
- } from "./chunk-L342KHIZ.js";
28
+ } from "./chunk-DR57KDAY.js";
29
29
  import {
30
30
  MAX_FILE_BYTES,
31
31
  MAX_TEXT_CHARS,
32
32
  attachmentMaxBytes
33
- } from "./chunk-ZUG67442.js";
33
+ } from "./chunk-BBRMDMIR.js";
34
34
  import {
35
35
  isCliFailure
36
- } from "./chunk-3YKAFLXY.js";
36
+ } from "./chunk-RLNZ7NX5.js";
37
37
  import {
38
38
  readSharedSection,
39
39
  sharedConfigPath,
40
40
  writeSharedSection
41
- } from "./chunk-CDSB7WVG.js";
41
+ } from "./chunk-WJK6KTCS.js";
42
42
  import {
43
43
  storePath
44
- } from "./chunk-RWQ7T4Y5.js";
44
+ } from "./chunk-T5D4OGDC.js";
45
45
  import {
46
46
  Credentials,
47
47
  pathsAreOverridden,
48
48
  resolvePaths
49
- } from "./chunk-5SJZDEIO.js";
49
+ } from "./chunk-HRATXUFH.js";
50
50
  import {
51
51
  importFrom,
52
52
  resolveFrom
@@ -64,11 +64,11 @@ import {
64
64
  strictObject,
65
65
  string,
66
66
  union
67
- } from "./chunk-JRFKCYMW.js";
67
+ } from "./chunk-HHAZ6DCY.js";
68
68
  import {
69
69
  CliError,
70
70
  isCliError
71
- } from "./chunk-EA2OB75T.js";
71
+ } from "./chunk-54NDYVZA.js";
72
72
  import {
73
73
  __commonJS,
74
74
  __name,
@@ -16684,20 +16684,20 @@ var require_lib3 = __commonJS({
16684
16684
  }
16685
16685
  });
16686
16686
 
16687
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/extract.js
16687
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/extract.js
16688
16688
  import { extname as extname2 } from "node:path";
16689
16689
 
16690
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/engine.js
16690
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/engine.js
16691
16691
  import { readFileSync } from "node:fs";
16692
16692
  import { dirname, extname, join } from "node:path";
16693
16693
  import { fileURLToPath } from "node:url";
16694
16694
 
16695
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/container.js
16695
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/container.js
16696
16696
  import { setImmediate as tick } from "node:timers/promises";
16697
16697
  import { crc32 } from "node:zlib";
16698
16698
  var import_xmldom = __toESM(require_lib(), 1);
16699
16699
 
16700
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
16700
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
16701
16701
  var import_chardet = __toESM(require_lib2(), 1);
16702
16702
  var import_iconv_lite = __toESM(require_lib3(), 1);
16703
16703
  var SAMPLE = 65536;
@@ -16799,7 +16799,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes) => {
16799
16799
  return result.text;
16800
16800
  }, "decodeXml");
16801
16801
 
16802
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/container.js
16802
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/container.js
16803
16803
  var MAX_PART = 10 * 1024 * 1024;
16804
16804
  var MAX_ENTRIES = 1e3;
16805
16805
  var decoder = new TextDecoder("utf-8", { fatal: true });
@@ -17014,7 +17014,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
17014
17014
  return found;
17015
17015
  }, "elements");
17016
17016
 
17017
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/engine.js
17017
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/engine.js
17018
17018
  var BUILT_IN = ["unpdf", "mammoth", "word-extractor", "linkedom", "defuddle/node"];
17019
17019
  var ENGINES = [...BUILT_IN, "@napi-rs/canvas"];
17020
17020
  var isMissing = /* @__PURE__ */ __name((error, name) => error?.code === "ERR_MODULE_NOT_FOUND" && String(error.message).includes(name), "isMissing");
@@ -17072,7 +17072,7 @@ var derived = /* @__PURE__ */ __name((bytes, extractor, read) => {
17072
17072
  }
17073
17073
  }, "derived");
17074
17074
 
17075
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/image/index.js
17075
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/image/index.js
17076
17076
  var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
17077
17077
  var image = {
17078
17078
  id: "image",
@@ -17081,7 +17081,7 @@ var image = {
17081
17081
  read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
17082
17082
  };
17083
17083
 
17084
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
17084
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
17085
17085
  var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
17086
17086
  var doc = {
17087
17087
  id: "doc",
@@ -17093,7 +17093,7 @@ var doc = {
17093
17093
  }), "read")
17094
17094
  };
17095
17095
 
17096
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
17096
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
17097
17097
  var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
17098
17098
  var docx = {
17099
17099
  id: "docx",
@@ -17106,10 +17106,10 @@ var docx = {
17106
17106
  }), "read")
17107
17107
  };
17108
17108
 
17109
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/markup.js
17109
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/markup.js
17110
17110
  var import_iconv_lite2 = __toESM(require_lib3(), 1);
17111
17111
 
17112
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
17112
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
17113
17113
  var NAMED = {
17114
17114
  amp: "&",
17115
17115
  lt: "<",
@@ -17161,7 +17161,7 @@ var decodeEntities = /* @__PURE__ */ __name((text) => text.replace(/&(#x[0-9a-f]
17161
17161
  return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
17162
17162
  }), "decodeEntities");
17163
17163
 
17164
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/markup.js
17164
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/markup.js
17165
17165
  var RTF_SKIPPED = /* @__PURE__ */ new Set([
17166
17166
  "fonttbl",
17167
17167
  "colortbl",
@@ -17327,7 +17327,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
17327
17327
  return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
17328
17328
  }, "htmlText");
17329
17329
 
17330
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/html/page.js
17330
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/html/page.js
17331
17331
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
17332
17332
  var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
17333
17333
  var jsonLdNodes = /* @__PURE__ */ __name((document) => {
@@ -17383,7 +17383,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
17383
17383
  return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
17384
17384
  }, "markdownSections");
17385
17385
 
17386
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/html/index.js
17386
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/html/index.js
17387
17387
  var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
17388
17388
  var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
17389
17389
  var loaded = /* @__PURE__ */ __name(async (load, name) => {
@@ -17454,10 +17454,10 @@ var html = {
17454
17454
  }, "read")
17455
17455
  };
17456
17456
 
17457
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17457
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17458
17458
  import { posix } from "node:path";
17459
17459
 
17460
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
17460
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
17461
17461
  var columnName = /* @__PURE__ */ __name((column) => {
17462
17462
  let name = "";
17463
17463
  for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
@@ -17512,7 +17512,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
17512
17512
  return { text: parts.join("").trim(), truncated: false };
17513
17513
  }, "sheetText");
17514
17514
 
17515
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17515
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17516
17516
  var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
17517
17517
  var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
17518
17518
  var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
@@ -17927,7 +17927,7 @@ var readDocument = /* @__PURE__ */ __name(async (bytes, kind, signal) => {
17927
17927
  }
17928
17928
  }, "readDocument");
17929
17929
 
17930
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/office/index.js
17930
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/office/index.js
17931
17931
  var office = {
17932
17932
  id: "office",
17933
17933
  version: documentExtractor("odt"),
@@ -17938,7 +17938,7 @@ var office = {
17938
17938
  }, "read")
17939
17939
  };
17940
17940
 
17941
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
17941
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
17942
17942
  var pdf = {
17943
17943
  id: "pdf",
17944
17944
  version: "unpdf",
@@ -18005,7 +18005,7 @@ var pdf = {
18005
18005
  }), "read")
18006
18006
  };
18007
18007
 
18008
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
18008
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
18009
18009
  var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
18010
18010
  var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
18011
18011
  var readPlain = /* @__PURE__ */ __name((bytes) => {
@@ -18025,7 +18025,7 @@ var plain = {
18025
18025
  read: /* @__PURE__ */ __name(async (bytes) => readPlain(bytes), "read")
18026
18026
  };
18027
18027
 
18028
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
18028
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
18029
18029
  var rtf = {
18030
18030
  id: "rtf",
18031
18031
  version: "v1",
@@ -18033,10 +18033,10 @@ var rtf = {
18033
18033
  read: /* @__PURE__ */ __name(async (bytes) => derived(bytes, "rtf:v1", rtfText), "read")
18034
18034
  };
18035
18035
 
18036
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
18036
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
18037
18037
  import { basename } from "node:path";
18038
18038
 
18039
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
18039
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
18040
18040
  var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
18041
18041
  const cells = [];
18042
18042
  let row = 1, column = 1, start = 0, quoted = false, truncated = false;
@@ -18074,7 +18074,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
18074
18074
  return { cells, truncated };
18075
18075
  }, "delimitedSpans");
18076
18076
 
18077
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
18077
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
18078
18078
  var DELIMITED = {
18079
18079
  ".csv": ",",
18080
18080
  ".tsv": " ",
@@ -18113,7 +18113,7 @@ var sheets = {
18113
18113
  }, "read")
18114
18114
  };
18115
18115
 
18116
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/registry.js
18116
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/readers/registry.js
18117
18117
  var BUILT_INS = [office, pdf, docx, doc, rtf, html, sheets, plain, image];
18118
18118
  var HEAD_BYTES = 1024;
18119
18119
  var readers = [...BUILT_INS];
@@ -18123,7 +18123,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes, hint, context) => {
18123
18123
  return reader ? reader.read(bytes, hint, context) : { status: "unsupported" };
18124
18124
  }, "readWithRegistry");
18125
18125
 
18126
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/extract.js
18126
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/extract.js
18127
18127
  var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
18128
18128
  var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname2(name ?? path).toLowerCase(), "extensionOf");
18129
18129
  var extractText = /* @__PURE__ */ __name(async (bytes, hint, load, signal, env = process.env) => {
@@ -18161,7 +18161,7 @@ var engineStates = /* @__PURE__ */ __name((resolve = (name) => resolveFrom(new U
18161
18161
  }
18162
18162
  })), "engineStates");
18163
18163
 
18164
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/http/time-limit.js
18164
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/http/time-limit.js
18165
18165
  var timeLimit = /* @__PURE__ */ __name((ms) => {
18166
18166
  const controller = new AbortController();
18167
18167
  const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
@@ -18177,7 +18177,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
18177
18177
  }
18178
18178
  }, "withTimeLimit");
18179
18179
 
18180
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/openai.js
18180
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/models/openai.js
18181
18181
  var options = strictObject({
18182
18182
  temperature: range(0, 2),
18183
18183
  top_p: range(0, 1),
@@ -18244,7 +18244,7 @@ var openai = {
18244
18244
  }), "complete")
18245
18245
  };
18246
18246
 
18247
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/index.js
18247
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/models/index.js
18248
18248
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
18249
18249
  complete: /* @__PURE__ */ __name(async (request) => {
18250
18250
  if (deps.signal?.aborted)
@@ -18259,7 +18259,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
18259
18259
  if (!adapter && target2.provider === "openai")
18260
18260
  adapter = openai;
18261
18261
  if (!adapter && target2.provider === "anthropic")
18262
- adapter = (await import("./anthropic-RZGPDESM.js")).anthropic;
18262
+ adapter = (await import("./anthropic-QVKJT3II.js")).anthropic;
18263
18263
  if (!adapter)
18264
18264
  throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
18265
18265
  if (request.images !== void 0 && adapter.images !== true)
@@ -18319,7 +18319,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
18319
18319
  }, "complete")
18320
18320
  }), "modelGateway");
18321
18321
 
18322
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
18322
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
18323
18323
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
18324
18324
  const host = new URL(baseUrl).host;
18325
18325
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -18352,7 +18352,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
18352
18352
  };
18353
18353
  }, "embeddingKeys");
18354
18354
 
18355
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/recovery.js
18355
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/domain/recovery.js
18356
18356
  var withRecovery = /* @__PURE__ */ __name((error) => ({
18357
18357
  ...error,
18358
18358
  retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
@@ -19399,7 +19399,7 @@ function imageSize(input) {
19399
19399
  }
19400
19400
  __name(imageSize, "imageSize");
19401
19401
 
19402
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
19402
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
19403
19403
  var MAX_PAGES = 20;
19404
19404
  var MAX_PIXELS = 2e7;
19405
19405
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
@@ -19559,7 +19559,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes, pipeline, load, signal) => {
19559
19559
  }
19560
19560
  }, "ocrPdf");
19561
19561
 
19562
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
19562
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
19563
19563
  import { spawn } from "node:child_process";
19564
19564
  import { mkdtempSync, readFileSync as readFileSync2, rmSync, writeFileSync } from "node:fs";
19565
19565
  import { tmpdir } from "node:os";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-EA2OB75T.js";
5
+ } from "./chunk-54NDYVZA.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/ports/app.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/ports/app.js
11
11
  import { readFileSync } from "node:fs";
12
12
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
13
13
  var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
@@ -19,16 +19,16 @@ import {
19
19
  reference,
20
20
  string,
21
21
  variant
22
- } from "./chunk-JRFKCYMW.js";
22
+ } from "./chunk-HHAZ6DCY.js";
23
23
  import {
24
24
  CliError,
25
25
  isCliError
26
- } from "./chunk-EA2OB75T.js";
26
+ } from "./chunk-54NDYVZA.js";
27
27
  import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
31
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
32
32
  var QUERY_LIMITS = {
33
33
  bytes: 8192,
34
34
  depth: 32,
@@ -72,7 +72,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
72
72
  __name(queryError, "queryError");
73
73
  var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
74
74
 
75
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
75
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
76
76
  var timezoneOf = /* @__PURE__ */ __name((given) => {
77
77
  const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
78
78
  try {
@@ -84,7 +84,7 @@ var timezoneOf = /* @__PURE__ */ __name((given) => {
84
84
  }, "timezoneOf");
85
85
  var calendar = /* @__PURE__ */ __name((value, span) => {
86
86
  if (!/^\d{4}-\d{2}-\d{2}$/u.test(value))
87
- queryError("query.invalid-date", span, "use an ISO date or a quoted timestamp with offset");
87
+ queryError("query.invalid-date", span, "use an ISO date such as 2026-10-01");
88
88
  const year = Number(value.slice(0, 4)), month = Number(value.slice(5, 7)), day = Number(value.slice(8, 10));
89
89
  const date = /* @__PURE__ */ new Date(0);
90
90
  date.setUTCFullYear(year, month - 1, day);
@@ -169,6 +169,7 @@ var zonedMoment = /* @__PURE__ */ __name((value, zone, span, { end = false } = {
169
169
  return time;
170
170
  }, "zonedMoment");
171
171
  var AGO = /^(\d+)(m|h|d)$/u;
172
+ var MOMENT = /^(\d{4}-\d{2}-\d{2})[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2})?$/u;
172
173
  var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
173
174
  var dayOf = /* @__PURE__ */ __name((word, zone, now, span) => {
174
175
  const today = new Intl.DateTimeFormat("en-CA", {
@@ -197,11 +198,15 @@ var dateEndpoint = /* @__PURE__ */ __name((value, zone, side, inclusive, span, n
197
198
  time: dayBoundary(value, zone, side === "lower" ? !inclusive : inclusive, span),
198
199
  inclusive: side === "lower"
199
200
  };
200
- if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[+-]\d{2}:\d{2})$/u.test(value))
201
- queryError("query.invalid-date", span, "use an ISO date, today, yesterday, 30m/2h/7d ago, or a quoted timestamp with offset");
202
- calendar(value.slice(0, 10), span);
203
- const time = Date.parse(value);
204
- if (!Number.isFinite(time) || Number(value.slice(11, 13)) > 23 || Number(value.slice(14, 16)) > 59 || Number(value.slice(17, 19)) > 59)
201
+ const [, day, hour, minute, second = "0", offset] = MOMENT.exec(value) ?? [];
202
+ if (day === void 0)
203
+ queryError("query.invalid-date", span, "use an ISO date, a date and time such as 2026-10-01T09:00 (optional seconds and offset), today, yesterday or 30m/2h/7d ago");
204
+ const moment = value.replace(" ", "T");
205
+ if (offset === void 0)
206
+ return { time: wallTime(moment, zone, span), inclusive };
207
+ calendar(day, span);
208
+ const time = Date.parse(moment);
209
+ if (!Number.isFinite(time) || Number(hour) > 23 || Number(minute) > 59 || Number(second) > 59)
205
210
  queryError("query.invalid-date", span);
206
211
  return { time, inclusive };
207
212
  }, "dateEndpoint");
@@ -217,7 +222,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
217
222
  };
218
223
  }, "dateRange");
219
224
 
220
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
225
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
221
226
  var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
222
227
  var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
223
228
  var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
@@ -272,7 +277,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
272
277
  }, "matches");
273
278
  var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
274
279
 
275
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
280
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
276
281
  var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
277
282
  var OPERATORS_BY_TYPE = {
278
283
  kw: ["term", "phrase", "wildcard"],
@@ -351,7 +356,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
351
356
  return [...own, ...relations, ...states];
352
357
  }, "queryFieldsOf");
353
358
 
354
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
359
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
355
360
  var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
356
361
  var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
357
362
  var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
@@ -388,7 +393,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
388
393
  return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
389
394
  }, "queryDescription");
390
395
 
391
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
396
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
392
397
  var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
393
398
  var reserved = /* @__PURE__ */ new Set([
394
399
  "+",
@@ -697,7 +702,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
697
702
  return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
698
703
  }, "implicitTextTerms");
699
704
 
700
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
705
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
701
706
  var inContext = /* @__PURE__ */ __name((context, run) => {
702
707
  try {
703
708
  run();
@@ -772,7 +777,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
772
777
  }, "validateQuery");
773
778
  var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
774
779
 
775
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
780
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
776
781
  var describeQuery = /* @__PURE__ */ __name((registry) => ({
777
782
  entity: registry.entity,
778
783
  backend: registry.backend,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",