@wirecat/drive-cli 0.51.0 → 0.52.1

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 (157) hide show
  1. package/README.md +2 -2
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bundle/{all-profiles-H3APJWSO.js → all-profiles-CYW6XBBS.js} +8 -8
  4. package/dist/bundle/{anthropic-P7DXFYFE.js → anthropic-KW6KU36Y.js} +5 -5
  5. package/dist/bundle/{app-server-IQUR7ZC2.js → app-server-TCJZ333E.js} +53 -52
  6. package/dist/bundle/{bun-LZUEW2ML.js → bun-7SYKSCLA.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-6LUE7UA6.js → bun-sqlite-RI7DR6RZ.js} +4 -4
  8. package/dist/bundle/{chunk-7ZNM6KXP.js → chunk-234MHU76.js} +7 -7
  9. package/dist/bundle/{chunk-U7DPS46V.js → chunk-2623YE5I.js} +107 -96
  10. package/dist/bundle/{chunk-UW7VXKKZ.js → chunk-2AUXBJRX.js} +19 -19
  11. package/dist/bundle/{chunk-OQVJQSEH.js → chunk-2UIMEMWU.js} +3 -3
  12. package/dist/bundle/{chunk-NO34DAIB.js → chunk-33NVQGUY.js} +6 -6
  13. package/dist/bundle/{chunk-D3UFQC7K.js → chunk-43QVYW3K.js} +49 -49
  14. package/dist/bundle/{chunk-POFLDSTX.js → chunk-54O62JWP.js} +10 -10
  15. package/dist/bundle/{chunk-HBRTKJ3J.js → chunk-5PLJKSG4.js} +7 -7
  16. package/dist/bundle/{chunk-PRBPVOW4.js → chunk-6DHQTUB2.js} +1 -1
  17. package/dist/bundle/{chunk-BVDAP3FQ.js → chunk-725OHXKR.js} +9 -9
  18. package/dist/bundle/chunk-7SH4JHYW.js +379 -0
  19. package/dist/bundle/{chunk-FCZ762RV.js → chunk-7XKAVMCF.js} +8 -8
  20. package/dist/bundle/{chunk-PNUS224S.js → chunk-7YMDL4JQ.js} +8 -6
  21. package/dist/bundle/{chunk-FV5WG4WU.js → chunk-A4UNTWAX.js} +29 -25
  22. package/dist/bundle/{chunk-I7EP3VPJ.js → chunk-ALJWBGD5.js} +1 -1
  23. package/dist/bundle/{chunk-U3OS6V6S.js → chunk-BBYD2FA3.js} +1 -1
  24. package/dist/bundle/{chunk-CX7HQ6KK.js → chunk-BSSCTWWK.js} +12 -12
  25. package/dist/bundle/{chunk-HYT3FJVB.js → chunk-C6Z25IBJ.js} +49 -24
  26. package/dist/bundle/{chunk-XCXUP76D.js → chunk-CB7SBYLO.js} +27 -27
  27. package/dist/bundle/{chunk-YXHMEFL7.js → chunk-CITFEQ6S.js} +1 -1
  28. package/dist/bundle/{chunk-Y73IZWRI.js → chunk-CKBHR7QO.js} +1 -1
  29. package/dist/bundle/{chunk-AKW5MNQP.js → chunk-CM7GAXGD.js} +5 -5
  30. package/dist/bundle/{chunk-OKSS7YUN.js → chunk-DLAFGSTN.js} +1 -1
  31. package/dist/bundle/{chunk-MPTD5P53.js → chunk-DO4PDQY5.js} +2 -2
  32. package/dist/bundle/{chunk-P3T2SZW2.js → chunk-EKFEY3KP.js} +2 -2
  33. package/dist/bundle/{chunk-ZKAAFY4C.js → chunk-F7UUZATI.js} +11 -11
  34. package/dist/bundle/{chunk-XBENRRBS.js → chunk-FCJAHD4R.js} +2 -2
  35. package/dist/bundle/{chunk-5C7RKU7O.js → chunk-FDWYPONW.js} +46 -34
  36. package/dist/bundle/{chunk-TVJU245P.js → chunk-FG4XXZZE.js} +2 -2
  37. package/dist/bundle/{chunk-BMI5VCR4.js → chunk-FJW3DDCF.js} +5 -5
  38. package/dist/bundle/{chunk-LZKPT7GY.js → chunk-G6QF5KWF.js} +35 -35
  39. package/dist/bundle/{chunk-K6JSVXDN.js → chunk-G7DCVJ4F.js} +5 -5
  40. package/dist/bundle/{chunk-J2S7QDOP.js → chunk-GJN5B5JK.js} +16 -16
  41. package/dist/bundle/{chunk-Q5CLTK5R.js → chunk-GR5GGZKH.js} +3 -3
  42. package/dist/bundle/{chunk-SZWQFR5X.js → chunk-GVCN3GLZ.js} +16 -4
  43. package/dist/bundle/{chunk-CT6Z6Z64.js → chunk-H47W2J6S.js} +523 -778
  44. package/dist/bundle/{chunk-HGWMX7BM.js → chunk-HQVJK5E7.js} +44 -22
  45. package/dist/bundle/{chunk-35IHF562.js → chunk-HX7Y2ASG.js} +350 -281
  46. package/dist/bundle/{chunk-7LYVWMKD.js → chunk-I7UH5CTA.js} +8 -8
  47. package/dist/bundle/{chunk-YVQJPLPU.js → chunk-IDUNJCFO.js} +2 -2
  48. package/dist/bundle/{chunk-WACVI3CS.js → chunk-IEXPOEEO.js} +24 -24
  49. package/dist/bundle/{chunk-6FXFYXTR.js → chunk-IWFBAWZK.js} +15 -15
  50. package/dist/bundle/{chunk-3KTDFSSK.js → chunk-JEOYFKUK.js} +2 -2
  51. package/dist/bundle/{chunk-4GFAOETW.js → chunk-KYVXMEBC.js} +3 -3
  52. package/dist/bundle/{chunk-PT6XDCOY.js → chunk-LJAX6YCF.js} +2 -2
  53. package/dist/bundle/{chunk-XXLTVVMT.js → chunk-LONV6HIK.js} +20 -20
  54. package/dist/bundle/{chunk-G75FZQAZ.js → chunk-NHBUTCNR.js} +10 -10
  55. package/dist/bundle/{chunk-OASIFIXM.js → chunk-NPSZPUK6.js} +2 -2
  56. package/dist/bundle/{chunk-Z3GWVRW3.js → chunk-NSIFQ5OP.js} +1 -1
  57. package/dist/bundle/{chunk-WX2NQO2D.js → chunk-NYOPEHEU.js} +1 -1
  58. package/dist/bundle/{chunk-TSZJXI4N.js → chunk-O6IOL6RX.js} +21 -21
  59. package/dist/bundle/{chunk-YLC4JVQZ.js → chunk-PAXKALHV.js} +5 -5
  60. package/dist/bundle/{chunk-AUW45JPI.js → chunk-PDGECM5D.js} +7 -7
  61. package/dist/bundle/{chunk-NRWDEBJB.js → chunk-PEOCBV2Z.js} +8 -8
  62. package/dist/bundle/{chunk-VCPS7Q2W.js → chunk-PQJYM5ES.js} +3 -3
  63. package/dist/bundle/{chunk-TEH76MZK.js → chunk-PQYVPCJ2.js} +26 -26
  64. package/dist/bundle/{chunk-WYWXOIGT.js → chunk-PSNHPFSK.js} +1 -1
  65. package/dist/bundle/{chunk-Y4YBW5S4.js → chunk-Q765VPZY.js} +2 -2
  66. package/dist/bundle/{chunk-D222O57O.js → chunk-QYUHS6DE.js} +6 -6
  67. package/dist/bundle/{chunk-YOABRW2M.js → chunk-R276546S.js} +1 -1
  68. package/dist/bundle/{chunk-SRIPLP7N.js → chunk-RNSP57TC.js} +4 -4
  69. package/dist/bundle/{chunk-VH4GVA2N.js → chunk-UR32UWTQ.js} +2 -2
  70. package/dist/bundle/{chunk-Z6KTSXE3.js → chunk-VJZST5RD.js} +2 -2
  71. package/dist/bundle/{chunk-LLMHJE5Q.js → chunk-VSOLLTYT.js} +2 -2
  72. package/dist/bundle/{chunk-PQGIV36R.js → chunk-VZ2I62HN.js} +2 -2
  73. package/dist/bundle/{chunk-DEVPGI27.js → chunk-W7IK7E4B.js} +17 -17
  74. package/dist/bundle/{chunk-NVHPYKYC.js → chunk-WBTVGFXI.js} +11 -11
  75. package/dist/bundle/{chunk-2TPENYCK.js → chunk-WLFUBNFX.js} +4 -4
  76. package/dist/bundle/{chunk-SRONUWOM.js → chunk-WQJBAWQP.js} +515 -344
  77. package/dist/bundle/{chunk-K3EK4MTU.js → chunk-WQRGA75U.js} +15 -3
  78. package/dist/bundle/{chunk-XE2GEE3E.js → chunk-WUX7AUOQ.js} +26 -26
  79. package/dist/bundle/{chunk-JI5KFKTL.js → chunk-XOLQSCMF.js} +6 -6
  80. package/dist/bundle/{chunk-EY4CUQW2.js → chunk-YKZ4IPLB.js} +26 -9
  81. package/dist/bundle/{chunk-GK2VUKQY.js → chunk-YNFELLNQ.js} +2 -2
  82. package/dist/bundle/{chunk-F3PPSIKI.js → chunk-YVPHJHIL.js} +3 -3
  83. package/dist/bundle/{chunk-4YG2FZ53.js → chunk-Z47LOJUS.js} +7 -7
  84. package/dist/bundle/{chunk-DDD3FS6G.js → chunk-ZDLIO76S.js} +2 -2
  85. package/dist/bundle/{chunk-UMY4IQE2.js → chunk-ZNZUZGSV.js} +54 -47
  86. package/dist/bundle/{chunk-UM4E2OFL.js → chunk-ZSXRDF6I.js} +1 -1
  87. package/dist/bundle/{chunk-N33EOINW.js → chunk-ZWSG7OCA.js} +4 -4
  88. package/dist/bundle/command-contract-I2YB5IXI.js +38 -0
  89. package/dist/bundle/{decode-4EENADOV.js → decode-EDN2ARXZ.js} +19 -17
  90. package/dist/bundle/drive.js +7 -7
  91. package/dist/bundle/{echarts-ZFC37XW7.js → echarts-GXY34GHA.js} +2 -2
  92. package/dist/bundle/{embed-UZMNP26C.js → embed-3GSQIQXE.js} +5 -5
  93. package/dist/bundle/{embedder-7VDWDBKF.js → embedder-6ULWRG3R.js} +8 -8
  94. package/dist/bundle/{entry-JJKCHVIK.js → entry-IPRJLFHO.js} +6 -6
  95. package/dist/bundle/failure-IXS2ZHA5.js +37 -0
  96. package/dist/bundle/{first-run-FJTEUJBF.js → first-run-FGHGWHC2.js} +9 -9
  97. package/dist/bundle/first-screen-M62KTPZG.js +36 -0
  98. package/dist/bundle/{google-JBJASYKY.js → google-BD3ZNFVJ.js} +9 -9
  99. package/dist/bundle/google-api-BDUWZMRV.js +83 -0
  100. package/dist/bundle/{identity-XE73ALJH.js → identity-U7IHZEMR.js} +2 -2
  101. package/dist/bundle/{instructions-Q4ASITKO.js → instructions-K5BEQM4C.js} +1 -1
  102. package/dist/bundle/{login-BD2WQT5F.js → login-7HRYPZMM.js} +71 -66
  103. package/dist/bundle/{mcp-G6U2Q63E.js → mcp-F67RATLF.js} +82 -81
  104. package/dist/bundle/mcp-JZSYPQA4.js +96 -0
  105. package/dist/bundle/{mcp-ZYZ4DFW2.js → mcp-WSGVVZWI.js} +2 -2
  106. package/dist/bundle/{node-CYM7VXFR.js → node-ZYWB7IET.js} +2 -2
  107. package/dist/bundle/{node-sqlite-RK4MHW57.js → node-sqlite-J3OODPYK.js} +4 -4
  108. package/dist/bundle/{oauth-CQXQRHJR.js → oauth-L4VTCBLF.js} +6 -6
  109. package/dist/bundle/{open-WSE4NBD2.js → open-SGUN7ZVF.js} +3 -3
  110. package/dist/bundle/openai-RLVISEDH.js +251 -0
  111. package/dist/bundle/{process-7HHZZZLA.js → process-ZXO2MWRJ.js} +1 -1
  112. package/dist/bundle/{program-ZMQYZNV5.js → program-YVLXSKZV.js} +104 -102
  113. package/dist/bundle/{prompt-YSBBQJGF.js → prompt-AUWTBLO7.js} +4 -4
  114. package/dist/bundle/{reasons-366PI7OV.js → reasons-J57GSRWN.js} +3 -3
  115. package/dist/bundle/{recognize-AZKGPCAS.js → recognize-ORX2UBQW.js} +5 -3
  116. package/dist/bundle/{remote-EYSK3XKD.js → remote-AGIJY73X.js} +6 -6
  117. package/dist/bundle/{rerank-LOW6VIDF.js → rerank-R6PE44M5.js} +6 -6
  118. package/dist/bundle/{serve-UJ52HGA7.js → serve-VOBAQHAQ.js} +8 -8
  119. package/dist/bundle/server-24PS4M7U.js +70 -0
  120. package/dist/bundle/server-G6HFZ2CK.js +57 -0
  121. package/dist/bundle/{services-B4QUSCFN.js → services-HZFTTZSF.js} +35 -28
  122. package/dist/bundle/{sqlite-runtime-GEURBVK5.js → sqlite-runtime-DTGPR2T2.js} +4 -4
  123. package/dist/bundle/{state-OJNSKOXO.js → state-WG3JKJM3.js} +5 -5
  124. package/dist/bundle/{store-62SBP45X.js → store-33VHIMEO.js} +14 -14
  125. package/dist/bundle/{store-FTS2HVVB.js → store-EV72MT5U.js} +16 -16
  126. package/dist/bundle/store-maintenance-command-ZTUEI4EC.js +58 -0
  127. package/dist/bundle/tokens-XMOGQFI6.js +102 -0
  128. package/dist/commands/session.d.ts.map +1 -1
  129. package/dist/commands/session.js +2 -1
  130. package/dist/commands/session.js.map +1 -1
  131. package/dist/knowledge-query.d.ts +1 -1
  132. package/dist/login.d.ts.map +1 -1
  133. package/dist/login.js +7 -3
  134. package/dist/login.js.map +1 -1
  135. package/dist/reasons.js +1 -1
  136. package/dist/reasons.js.map +1 -1
  137. package/dist/store.d.ts.map +1 -1
  138. package/dist/store.js +1 -0
  139. package/dist/store.js.map +1 -1
  140. package/dist/tokens.d.ts +0 -2
  141. package/dist/tokens.d.ts.map +1 -1
  142. package/dist/tokens.js +12 -13
  143. package/dist/tokens.js.map +1 -1
  144. package/dist/version.d.ts +1 -1
  145. package/dist/version.js +1 -1
  146. package/package.json +3 -3
  147. package/dist/bundle/command-contract-R6CGYG7L.js +0 -38
  148. package/dist/bundle/failure-VBQBKCD5.js +0 -37
  149. package/dist/bundle/first-screen-NSPQWNMQ.js +0 -36
  150. package/dist/bundle/google-api-2FKF4UUN.js +0 -82
  151. package/dist/bundle/mcp-H3XD47NW.js +0 -95
  152. package/dist/bundle/server-CA2VLY25.js +0 -56
  153. package/dist/bundle/server-TW75RDEP.js +0 -69
  154. package/dist/bundle/store-maintenance-command-FQMB3R4E.js +0 -57
  155. package/dist/bundle/tokens-JALZUGEM.js +0 -103
  156. /package/dist/bundle/{chunk-2WNDZFGG.js → chunk-62EDJKGP.js} +0 -0
  157. /package/dist/bundle/{chunk-UO5O3665.js → chunk-FQRJWVEB.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
8
8
  import { PassThrough, Writable } from "node:stream";
9
9
  var lineReader = /* @__PURE__ */ __name((onMessage) => {
10
10
  let rest = "";
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-EY4CUQW2.js";
5
+ } from "./chunk-YKZ4IPLB.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
@@ -8,10 +8,10 @@ import {
8
8
  installFiles,
9
9
  megabytes,
10
10
  sharedModelsDirectory
11
- } from "./chunk-CX7HQ6KK.js";
11
+ } from "./chunk-BSSCTWWK.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-EY4CUQW2.js";
14
+ } from "./chunk-YKZ4IPLB.js";
15
15
  import {
16
16
  importFrom
17
17
  } from "./chunk-Y5E2WNWB.js";
@@ -19,12 +19,12 @@ import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
23
23
  import { readFileSync as readFileSync2 } from "node:fs";
24
24
  import { availableParallelism } from "node:os";
25
25
  import { basename, join as join2 } from "node:path";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
28
28
  import { createHash } from "node:crypto";
29
29
  import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
30
30
  import { join } from "node:path";
@@ -207,7 +207,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
207
207
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
208
208
  }, "openSession");
209
209
 
210
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
210
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
211
211
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
212
212
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
213
213
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
527
527
  }
528
528
  });
529
529
 
530
- // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
530
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
531
531
  import { existsSync } from "node:fs";
532
532
  import { win32 } from "node:path";
533
533
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
@@ -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-EY4CUQW2.js";
5
+ } from "./chunk-YKZ4IPLB.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/http/public-url.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/http/public-url.js
11
11
  var EXAMPLE = "--public-url https://<name>.ts.net";
12
12
  var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
13
13
  if (!given)
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  defineReasons
5
- } from "./chunk-EY4CUQW2.js";
5
+ } from "./chunk-YKZ4IPLB.js";
6
6
 
7
7
  // dist/reasons.js
8
8
  var ENTRIES = [
@@ -59,7 +59,7 @@ var ENTRIES = [
59
59
  "owner.sign-in"
60
60
  ],
61
61
  ["sign-in.failed", "authentication_error", "the Google sign-in did not finish; run drive <profile> session start"],
62
- ["sign-in.not-saved", "configuration_error", "the sign-in could not be saved in the keyring"],
62
+ ["sign-in.not-saved", "configuration_error", "the sign-in could not be saved: its private file cannot be read"],
63
63
  ["sign-in.scope-missing", "permission_error", "the sign-in lacks the Google permission this command needs"],
64
64
  ["source.changed", "provider_error", "the document changed during export; retry the sync"],
65
65
  [
@@ -2,51 +2,51 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  botInstructions
5
- } from "./chunk-WYWXOIGT.js";
5
+ } from "./chunk-PSNHPFSK.js";
6
6
  import {
7
7
  answered,
8
8
  normal,
9
9
  registerCommands,
10
10
  runCommandForAgent,
11
11
  toolsFromCommands
12
- } from "./chunk-TEH76MZK.js";
12
+ } from "./chunk-PQYVPCJ2.js";
13
13
  import {
14
14
  agentJson,
15
15
  skillResource
16
- } from "./chunk-6FXFYXTR.js";
16
+ } from "./chunk-IWFBAWZK.js";
17
17
  import {
18
18
  callerOf,
19
19
  serveStdio
20
- } from "./chunk-XBENRRBS.js";
20
+ } from "./chunk-FCJAHD4R.js";
21
21
  import {
22
22
  McpServer
23
23
  } from "./chunk-5FONRUG6.js";
24
24
  import {
25
25
  wholeList
26
- } from "./chunk-UW7VXKKZ.js";
26
+ } from "./chunk-2AUXBJRX.js";
27
27
  import {
28
28
  changesMessenger,
29
29
  itemOf
30
- } from "./chunk-5C7RKU7O.js";
30
+ } from "./chunk-FDWYPONW.js";
31
31
  import {
32
32
  flatten
33
- } from "./chunk-BVDAP3FQ.js";
33
+ } from "./chunk-725OHXKR.js";
34
34
  import {
35
35
  MESSENGER_CHANGE_REFUSAL,
36
36
  readOnlyLockOf,
37
37
  readOnlyRefusal
38
- } from "./chunk-DDD3FS6G.js";
38
+ } from "./chunk-ZDLIO76S.js";
39
39
  import {
40
40
  mcpErrorResult
41
- } from "./chunk-HGWMX7BM.js";
41
+ } from "./chunk-HQVJK5E7.js";
42
42
  import {
43
43
  object
44
- } from "./chunk-EY4CUQW2.js";
44
+ } from "./chunk-YKZ4IPLB.js";
45
45
  import {
46
46
  __name
47
47
  } from "./chunk-ZVVMGPBJ.js";
48
48
 
49
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
49
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
50
50
  import { randomUUID } from "node:crypto";
51
51
  var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
52
52
  var createBotServer = /* @__PURE__ */ __name((options) => {
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  agentOf,
30
30
  clientHash
31
- } from "./chunk-NRWDEBJB.js";
31
+ } from "./chunk-PEOCBV2Z.js";
32
32
  import {
33
33
  __name
34
34
  } from "./chunk-ZVVMGPBJ.js";
@@ -540,7 +540,7 @@ function toError(value) {
540
540
  }
541
541
  __name(toError, "toError");
542
542
 
543
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/caller.js
543
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
544
  var CALLER_META_KEY = "wirecat.dev/caller";
545
545
  var PROXY_CLIENT_NAME = "all-profiles";
546
546
  var NAME = /^[\w .@()/+-]{1,64}$/;
@@ -9,7 +9,7 @@ import {
9
9
  providerErrorKey,
10
10
  renderEvent,
11
11
  runContextOf
12
- } from "./chunk-NRWDEBJB.js";
12
+ } from "./chunk-PEOCBV2Z.js";
13
13
  import {
14
14
  Option,
15
15
  annotate,
@@ -17,7 +17,7 @@ import {
17
17
  metaOf,
18
18
  resolveOutput,
19
19
  stepTargets
20
- } from "./chunk-BVDAP3FQ.js";
20
+ } from "./chunk-725OHXKR.js";
21
21
  import {
22
22
  DEFAULT_RERANK_MODEL,
23
23
  KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
@@ -38,10 +38,10 @@ import {
38
38
  typedCommand,
39
39
  useAsProcessRun,
40
40
  withWriteScope
41
- } from "./chunk-XXLTVVMT.js";
41
+ } from "./chunk-LONV6HIK.js";
42
42
  import {
43
43
  isCliFailure
44
- } from "./chunk-LLMHJE5Q.js";
44
+ } from "./chunk-VSOLLTYT.js";
45
45
  import {
46
46
  CEILING_KEY,
47
47
  COMMAND_PATH_KEY,
@@ -52,25 +52,25 @@ import {
52
52
  keyForCommand,
53
53
  layerPermissions,
54
54
  permissionOverrides
55
- } from "./chunk-Y4YBW5S4.js";
55
+ } from "./chunk-Q765VPZY.js";
56
56
  import {
57
57
  count,
58
58
  text
59
- } from "./chunk-SZWQFR5X.js";
59
+ } from "./chunk-GVCN3GLZ.js";
60
60
  import {
61
61
  permissionCeiling
62
- } from "./chunk-2TPENYCK.js";
62
+ } from "./chunk-WLFUBNFX.js";
63
63
  import {
64
64
  envName,
65
65
  readOnlyLockOf,
66
66
  readOnlyRefusal
67
- } from "./chunk-DDD3FS6G.js";
67
+ } from "./chunk-ZDLIO76S.js";
68
68
  import {
69
69
  sharedConfigPath
70
- } from "./chunk-JI5KFKTL.js";
70
+ } from "./chunk-XOLQSCMF.js";
71
71
  import {
72
72
  storePath
73
- } from "./chunk-Z6KTSXE3.js";
73
+ } from "./chunk-VJZST5RD.js";
74
74
  import {
75
75
  configFilePath,
76
76
  createRecordLog,
@@ -79,7 +79,7 @@ import {
79
79
  resolvePaths,
80
80
  saveConfigFile,
81
81
  writeSecurely
82
- } from "./chunk-HGWMX7BM.js";
82
+ } from "./chunk-HQVJK5E7.js";
83
83
  import {
84
84
  CliError,
85
85
  MAX_NEXT_STEPS,
@@ -114,12 +114,12 @@ import {
114
114
  union,
115
115
  unknown,
116
116
  writes
117
- } from "./chunk-EY4CUQW2.js";
117
+ } from "./chunk-YKZ4IPLB.js";
118
118
  import {
119
119
  __name
120
120
  } from "./chunk-ZVVMGPBJ.js";
121
121
 
122
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/execution.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/execution.js
123
123
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
124
124
  var DEFAULT_SYNC_MS = 15 * 6e4;
125
125
  var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
@@ -141,7 +141,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
141
141
  }
142
142
  }, "withAbort");
143
143
 
144
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/profile.js
144
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/profile.js
145
145
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
146
146
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
147
147
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -188,7 +188,7 @@ var rootOf = /* @__PURE__ */ __name((command) => {
188
188
  return root;
189
189
  }, "rootOf");
190
190
 
191
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
191
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
192
192
  import { existsSync, readdirSync, readFileSync } from "node:fs";
193
193
  import { join } from "node:path";
194
194
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -210,7 +210,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
210
210
  }, "profilesWithAccounts");
211
211
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
212
212
 
213
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/runs/log-events.js
213
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/log-events.js
214
214
  var CORE_LOG_EVENTS = defineLogEvents([
215
215
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
216
216
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -244,7 +244,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
244
244
  cache: "cache.answered"
245
245
  };
246
246
 
247
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/runs/recording.js
247
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/recording.js
248
248
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
249
249
  const recording = startRecording(options);
250
250
  try {
@@ -429,7 +429,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
429
429
  return void 0;
430
430
  }, "partialOutcome");
431
431
 
432
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/deadline.js
432
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/deadline.js
433
433
  var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
434
434
  if (ms === void 0)
435
435
  return body();
@@ -455,10 +455,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
455
455
  }
456
456
  }, "withDeadline");
457
457
 
458
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/settings.js
458
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/settings.js
459
459
  import { existsSync as existsSync3 } from "node:fs";
460
460
 
461
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/models/endpoint.js
461
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/models/endpoint.js
462
462
  var endpoint = /* @__PURE__ */ __name((value) => {
463
463
  try {
464
464
  const url2 = new URL(value);
@@ -468,7 +468,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
468
468
  }
469
469
  }, "endpoint");
470
470
 
471
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/models/settings.js
471
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/models/settings.js
472
472
  var MODEL_FIELDS = ["provider", "model", "base_url"];
473
473
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
474
474
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -537,7 +537,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
537
537
  };
538
538
  }, "modelTarget");
539
539
 
540
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/analysis/settings.js
540
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/analysis/settings.js
541
541
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
542
542
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
543
543
  var AI_FIELDS = {
@@ -581,7 +581,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
581
581
  };
582
582
  }, "resolveAISettings");
583
583
 
584
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
584
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
585
585
  import { readFileSync as readFileSync2 } from "node:fs";
586
586
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
587
587
  var SECTIONS = ["personal", "bot"];
@@ -871,7 +871,7 @@ var readConfigFile = /* @__PURE__ */ __name((path) => {
871
871
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
872
872
  }, "readConfigFile");
873
873
 
874
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/default-config.js
874
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/default-config.js
875
875
  import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
876
876
  import { dirname, join as join2 } from "node:path";
877
877
  var DEFAULT_CONFIG = {
@@ -900,7 +900,7 @@ function ensureDefaultConfig(path, config = DEFAULT_CONFIG) {
900
900
  }
901
901
  __name(ensureDefaultConfig, "ensureDefaultConfig");
902
902
 
903
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/settings.js
903
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/settings.js
904
904
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
905
905
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
906
906
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -1290,7 +1290,7 @@ var given = /* @__PURE__ */ __name((value) => {
1290
1290
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
1291
1291
  }, "given");
1292
1292
 
1293
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/context.js
1293
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/context.js
1294
1294
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
1295
1295
  const slot = environmentOf(command).exit;
1296
1296
  if (slot)
@@ -1397,7 +1397,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
1397
1397
  return words.join(" ");
1398
1398
  }, "commandPath");
1399
1399
 
1400
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/effects.js
1400
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/effects.js
1401
1401
  var REMOTE_READ = { remote: "read", local: "read" };
1402
1402
  var FETCH = { remote: "read", local: "write" };
1403
1403
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -1482,7 +1482,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
1482
1482
  throw readOnlyRefusal(lock, what);
1483
1483
  }, "refuseUnderReadOnly");
1484
1484
 
1485
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/steps.js
1485
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/steps.js
1486
1486
  var STEPS2 = defineSteps([
1487
1487
  ...STEPS,
1488
1488
  {
@@ -1740,7 +1740,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
1740
1740
  ].join(" ");
1741
1741
  }, "stepLine");
1742
1742
 
1743
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
1743
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
1744
1744
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
1745
1745
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
1746
1746
  var strip = /* @__PURE__ */ __name((value) => {
@@ -1754,11 +1754,11 @@ var strip = /* @__PURE__ */ __name((value) => {
1754
1754
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
1755
1755
  }, "strip");
1756
1756
 
1757
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/envelope.js
1757
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/envelope.js
1758
1758
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
1759
1759
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
1760
1760
  var listOf = /* @__PURE__ */ __name((command, input) => {
1761
- const { items, limit, has_more, cursor, paging, page, args = {}, next = [], missing, meta } = input;
1761
+ const { items, limit, has_more, cursor, paging, page, total, args = {}, next = [], missing, meta } = input;
1762
1762
  const byCursor = paging === "cursor" || cursor !== void 0;
1763
1763
  const more = has_more ? [
1764
1764
  nextStep("page.next", {
@@ -1769,7 +1769,19 @@ var listOf = /* @__PURE__ */ __name((command, input) => {
1769
1769
  ] : [];
1770
1770
  const body = {
1771
1771
  items,
1772
- page: byCursor ? { mode: "cursor", limit, has_more, ...has_more && cursor !== void 0 ? { next_cursor: cursor } : {} } : { mode: "page", limit, has_more, ...has_more ? { next_page: (page ?? 1) + 1 } : {} },
1772
+ page: byCursor ? {
1773
+ mode: "cursor",
1774
+ limit,
1775
+ has_more,
1776
+ ...has_more && cursor !== void 0 ? { next_cursor: cursor } : {},
1777
+ ...total ? { total } : {}
1778
+ } : {
1779
+ mode: "page",
1780
+ limit,
1781
+ has_more,
1782
+ ...has_more ? { next_page: (page ?? 1) + 1 } : {},
1783
+ ...total ? { total } : {}
1784
+ },
1773
1785
  ...capped2([...more, ...next]),
1774
1786
  ...missing && missing.length > 0 ? { missing } : {},
1775
1787
  ...meta ? { meta } : {}
@@ -1876,7 +1888,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
1876
1888
  renderer.result(item);
1877
1889
  }, "printItem");
1878
1890
 
1879
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/entities/store-table.js
1891
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/entities/store-table.js
1880
1892
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
1881
1893
  var storeTable = strictObject({
1882
1894
  name: text,
@@ -1885,7 +1897,7 @@ var storeTable = strictObject({
1885
1897
  bytes: optional(nullable(count))
1886
1898
  });
1887
1899
 
1888
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/runs/record-log.js
1900
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/record-log.js
1889
1901
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
1890
1902
  const run = currentRun();
1891
1903
  const trace = traceId ?? run.traceId;
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-EY4CUQW2.js";
5
+ } from "./chunk-YKZ4IPLB.js";
6
6
  import {
7
7
  importFrom
8
8
  } from "./chunk-Y5E2WNWB.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
14
14
  import { readFileSync } from "node:fs";
15
15
  var musl = /* @__PURE__ */ __name(() => {
16
16
  if (process.platform !== "linux")
@@ -8,19 +8,19 @@ import {
8
8
  XLSX,
9
9
  supported,
10
10
  tooManyEntries
11
- } from "./chunk-Y73IZWRI.js";
11
+ } from "./chunk-CKBHR7QO.js";
12
12
  import {
13
13
  googleError
14
- } from "./chunk-YOABRW2M.js";
14
+ } from "./chunk-R276546S.js";
15
15
  import {
16
16
  extractText
17
- } from "./chunk-XE2GEE3E.js";
17
+ } from "./chunk-WUX7AUOQ.js";
18
18
  import {
19
19
  MAX_TEXT_CHARS
20
- } from "./chunk-3KTDFSSK.js";
20
+ } from "./chunk-JEOYFKUK.js";
21
21
  import {
22
22
  CliError
23
- } from "./chunk-EY4CUQW2.js";
23
+ } from "./chunk-YKZ4IPLB.js";
24
24
  import {
25
25
  importFrom
26
26
  } from "./chunk-Y5E2WNWB.js";