@wirecat/drive-cli 0.51.0 → 0.52.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 (144) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-H3APJWSO.js → all-profiles-CYW6XBBS.js} +8 -8
  3. package/dist/bundle/{anthropic-P7DXFYFE.js → anthropic-KW6KU36Y.js} +5 -5
  4. package/dist/bundle/{app-server-IQUR7ZC2.js → app-server-TCJZ333E.js} +53 -52
  5. package/dist/bundle/{bun-LZUEW2ML.js → bun-7SYKSCLA.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-6LUE7UA6.js → bun-sqlite-RI7DR6RZ.js} +4 -4
  7. package/dist/bundle/{chunk-7ZNM6KXP.js → chunk-234MHU76.js} +7 -7
  8. package/dist/bundle/{chunk-U7DPS46V.js → chunk-2623YE5I.js} +107 -96
  9. package/dist/bundle/{chunk-UW7VXKKZ.js → chunk-2AUXBJRX.js} +19 -19
  10. package/dist/bundle/{chunk-OQVJQSEH.js → chunk-2UIMEMWU.js} +3 -3
  11. package/dist/bundle/{chunk-NO34DAIB.js → chunk-33NVQGUY.js} +6 -6
  12. package/dist/bundle/{chunk-D3UFQC7K.js → chunk-43QVYW3K.js} +49 -49
  13. package/dist/bundle/{chunk-WX2NQO2D.js → chunk-4A2PIGC6.js} +1 -1
  14. package/dist/bundle/{chunk-D222O57O.js → chunk-4CPLOMRK.js} +6 -6
  15. package/dist/bundle/{chunk-U3OS6V6S.js → chunk-4Z6TCU5T.js} +1 -1
  16. package/dist/bundle/{chunk-POFLDSTX.js → chunk-54O62JWP.js} +10 -10
  17. package/dist/bundle/{chunk-HBRTKJ3J.js → chunk-5PLJKSG4.js} +7 -7
  18. package/dist/bundle/{chunk-PRBPVOW4.js → chunk-6DHQTUB2.js} +1 -1
  19. package/dist/bundle/{chunk-BVDAP3FQ.js → chunk-725OHXKR.js} +9 -9
  20. package/dist/bundle/chunk-7SH4JHYW.js +379 -0
  21. package/dist/bundle/{chunk-FCZ762RV.js → chunk-7XKAVMCF.js} +8 -8
  22. package/dist/bundle/{chunk-PNUS224S.js → chunk-7YMDL4JQ.js} +8 -6
  23. package/dist/bundle/{chunk-FV5WG4WU.js → chunk-A4UNTWAX.js} +29 -25
  24. package/dist/bundle/{chunk-I7EP3VPJ.js → chunk-ALJWBGD5.js} +1 -1
  25. package/dist/bundle/{chunk-CX7HQ6KK.js → chunk-BSSCTWWK.js} +12 -12
  26. package/dist/bundle/{chunk-HYT3FJVB.js → chunk-C6Z25IBJ.js} +49 -24
  27. package/dist/bundle/{chunk-XCXUP76D.js → chunk-CB7SBYLO.js} +27 -27
  28. package/dist/bundle/{chunk-YXHMEFL7.js → chunk-CITFEQ6S.js} +1 -1
  29. package/dist/bundle/{chunk-Y73IZWRI.js → chunk-CKBHR7QO.js} +1 -1
  30. package/dist/bundle/{chunk-AKW5MNQP.js → chunk-CM7GAXGD.js} +5 -5
  31. package/dist/bundle/{chunk-OKSS7YUN.js → chunk-DLAFGSTN.js} +1 -1
  32. package/dist/bundle/{chunk-MPTD5P53.js → chunk-DO4PDQY5.js} +2 -2
  33. package/dist/bundle/{chunk-P3T2SZW2.js → chunk-DW46P2DY.js} +1 -1
  34. package/dist/bundle/{chunk-ZKAAFY4C.js → chunk-F7UUZATI.js} +11 -11
  35. package/dist/bundle/{chunk-XBENRRBS.js → chunk-FCJAHD4R.js} +2 -2
  36. package/dist/bundle/{chunk-5C7RKU7O.js → chunk-FDWYPONW.js} +46 -34
  37. package/dist/bundle/{chunk-TVJU245P.js → chunk-FG4XXZZE.js} +2 -2
  38. package/dist/bundle/{chunk-BMI5VCR4.js → chunk-FJW3DDCF.js} +5 -5
  39. package/dist/bundle/{chunk-LZKPT7GY.js → chunk-G6QF5KWF.js} +35 -35
  40. package/dist/bundle/{chunk-K6JSVXDN.js → chunk-G7DCVJ4F.js} +5 -5
  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-6FXFYXTR.js → chunk-IWFBAWZK.js} +15 -15
  49. package/dist/bundle/{chunk-3KTDFSSK.js → chunk-JEOYFKUK.js} +2 -2
  50. package/dist/bundle/{chunk-4GFAOETW.js → chunk-KYVXMEBC.js} +3 -3
  51. package/dist/bundle/{chunk-PT6XDCOY.js → chunk-LJAX6YCF.js} +2 -2
  52. package/dist/bundle/{chunk-XXLTVVMT.js → chunk-LONV6HIK.js} +20 -20
  53. package/dist/bundle/{chunk-G75FZQAZ.js → chunk-NHBUTCNR.js} +10 -10
  54. package/dist/bundle/{chunk-OASIFIXM.js → chunk-NPSZPUK6.js} +2 -2
  55. package/dist/bundle/{chunk-Z3GWVRW3.js → chunk-NSIFQ5OP.js} +1 -1
  56. package/dist/bundle/{chunk-TSZJXI4N.js → chunk-O6IOL6RX.js} +21 -21
  57. package/dist/bundle/{chunk-YLC4JVQZ.js → chunk-PAXKALHV.js} +5 -5
  58. package/dist/bundle/{chunk-AUW45JPI.js → chunk-PDGECM5D.js} +7 -7
  59. package/dist/bundle/{chunk-NRWDEBJB.js → chunk-PEOCBV2Z.js} +8 -8
  60. package/dist/bundle/{chunk-VCPS7Q2W.js → chunk-PQJYM5ES.js} +3 -3
  61. package/dist/bundle/{chunk-TEH76MZK.js → chunk-PQYVPCJ2.js} +26 -26
  62. package/dist/bundle/{chunk-WYWXOIGT.js → chunk-PSNHPFSK.js} +1 -1
  63. package/dist/bundle/{chunk-Y4YBW5S4.js → chunk-Q765VPZY.js} +2 -2
  64. package/dist/bundle/{chunk-YOABRW2M.js → chunk-R276546S.js} +1 -1
  65. package/dist/bundle/{chunk-SRIPLP7N.js → chunk-RNSP57TC.js} +4 -4
  66. package/dist/bundle/{chunk-WACVI3CS.js → chunk-UC22Q5KU.js} +11 -11
  67. package/dist/bundle/{chunk-VH4GVA2N.js → chunk-UR32UWTQ.js} +2 -2
  68. package/dist/bundle/{chunk-Z6KTSXE3.js → chunk-VJZST5RD.js} +2 -2
  69. package/dist/bundle/{chunk-LLMHJE5Q.js → chunk-VSOLLTYT.js} +2 -2
  70. package/dist/bundle/{chunk-PQGIV36R.js → chunk-VZ2I62HN.js} +2 -2
  71. package/dist/bundle/{chunk-DEVPGI27.js → chunk-W7IK7E4B.js} +17 -17
  72. package/dist/bundle/{chunk-NVHPYKYC.js → chunk-WBTVGFXI.js} +11 -11
  73. package/dist/bundle/{chunk-2TPENYCK.js → chunk-WLFUBNFX.js} +4 -4
  74. package/dist/bundle/{chunk-SRONUWOM.js → chunk-WQJBAWQP.js} +515 -344
  75. package/dist/bundle/{chunk-K3EK4MTU.js → chunk-WQRGA75U.js} +15 -3
  76. package/dist/bundle/{chunk-XE2GEE3E.js → chunk-WUX7AUOQ.js} +26 -26
  77. package/dist/bundle/{chunk-J2S7QDOP.js → chunk-X6ID5EAR.js} +16 -16
  78. package/dist/bundle/{chunk-JI5KFKTL.js → chunk-XOLQSCMF.js} +6 -6
  79. package/dist/bundle/{chunk-EY4CUQW2.js → chunk-YKZ4IPLB.js} +26 -9
  80. package/dist/bundle/{chunk-GK2VUKQY.js → chunk-YNFELLNQ.js} +2 -2
  81. package/dist/bundle/{chunk-F3PPSIKI.js → chunk-YVPHJHIL.js} +3 -3
  82. package/dist/bundle/{chunk-4YG2FZ53.js → chunk-Z47LOJUS.js} +7 -7
  83. package/dist/bundle/{chunk-DDD3FS6G.js → chunk-ZDLIO76S.js} +2 -2
  84. package/dist/bundle/{chunk-UMY4IQE2.js → chunk-ZNZUZGSV.js} +54 -47
  85. package/dist/bundle/{chunk-UM4E2OFL.js → chunk-ZSXRDF6I.js} +1 -1
  86. package/dist/bundle/{chunk-N33EOINW.js → chunk-ZWSG7OCA.js} +4 -4
  87. package/dist/bundle/command-contract-I2YB5IXI.js +38 -0
  88. package/dist/bundle/{decode-4EENADOV.js → decode-EDN2ARXZ.js} +19 -17
  89. package/dist/bundle/drive.js +7 -7
  90. package/dist/bundle/{echarts-ZFC37XW7.js → echarts-GXY34GHA.js} +2 -2
  91. package/dist/bundle/{embed-UZMNP26C.js → embed-3GSQIQXE.js} +5 -5
  92. package/dist/bundle/{embedder-7VDWDBKF.js → embedder-6ULWRG3R.js} +8 -8
  93. package/dist/bundle/{entry-JJKCHVIK.js → entry-IPRJLFHO.js} +6 -6
  94. package/dist/bundle/failure-4CVEVY45.js +37 -0
  95. package/dist/bundle/{first-run-FJTEUJBF.js → first-run-FGHGWHC2.js} +9 -9
  96. package/dist/bundle/first-screen-M62KTPZG.js +36 -0
  97. package/dist/bundle/{google-JBJASYKY.js → google-BD3ZNFVJ.js} +9 -9
  98. package/dist/bundle/google-api-BDUWZMRV.js +83 -0
  99. package/dist/bundle/{identity-XE73ALJH.js → identity-QLBSASO5.js} +2 -2
  100. package/dist/bundle/{instructions-Q4ASITKO.js → instructions-K5BEQM4C.js} +1 -1
  101. package/dist/bundle/{login-BD2WQT5F.js → login-VNZKRSAD.js} +65 -64
  102. package/dist/bundle/{mcp-G6U2Q63E.js → mcp-5SNSMI2M.js} +82 -81
  103. package/dist/bundle/mcp-JZSYPQA4.js +96 -0
  104. package/dist/bundle/{mcp-ZYZ4DFW2.js → mcp-WSGVVZWI.js} +2 -2
  105. package/dist/bundle/{node-CYM7VXFR.js → node-ZYWB7IET.js} +2 -2
  106. package/dist/bundle/{node-sqlite-RK4MHW57.js → node-sqlite-J3OODPYK.js} +4 -4
  107. package/dist/bundle/{oauth-CQXQRHJR.js → oauth-L4VTCBLF.js} +6 -6
  108. package/dist/bundle/{open-WSE4NBD2.js → open-SGUN7ZVF.js} +3 -3
  109. package/dist/bundle/openai-RLVISEDH.js +251 -0
  110. package/dist/bundle/{process-7HHZZZLA.js → process-ZXO2MWRJ.js} +1 -1
  111. package/dist/bundle/{program-ZMQYZNV5.js → program-6S5EH7BS.js} +103 -101
  112. package/dist/bundle/{prompt-YSBBQJGF.js → prompt-AUWTBLO7.js} +4 -4
  113. package/dist/bundle/{reasons-366PI7OV.js → reasons-M5AKCNCU.js} +3 -3
  114. package/dist/bundle/{recognize-AZKGPCAS.js → recognize-ORX2UBQW.js} +5 -3
  115. package/dist/bundle/{remote-EYSK3XKD.js → remote-AGIJY73X.js} +6 -6
  116. package/dist/bundle/{rerank-LOW6VIDF.js → rerank-R6PE44M5.js} +6 -6
  117. package/dist/bundle/{serve-UJ52HGA7.js → serve-VOBAQHAQ.js} +8 -8
  118. package/dist/bundle/server-24PS4M7U.js +70 -0
  119. package/dist/bundle/server-G6HFZ2CK.js +57 -0
  120. package/dist/bundle/{services-B4QUSCFN.js → services-HZFTTZSF.js} +35 -28
  121. package/dist/bundle/{sqlite-runtime-GEURBVK5.js → sqlite-runtime-DTGPR2T2.js} +4 -4
  122. package/dist/bundle/{state-OJNSKOXO.js → state-WG3JKJM3.js} +5 -5
  123. package/dist/bundle/{store-62SBP45X.js → store-33VHIMEO.js} +14 -14
  124. package/dist/bundle/{store-FTS2HVVB.js → store-EV72MT5U.js} +16 -16
  125. package/dist/bundle/store-maintenance-command-ZTUEI4EC.js +58 -0
  126. package/dist/bundle/tokens-XDQXUFDQ.js +104 -0
  127. package/dist/knowledge-query.d.ts +1 -1
  128. package/dist/store.d.ts.map +1 -1
  129. package/dist/store.js +1 -0
  130. package/dist/store.js.map +1 -1
  131. package/dist/version.d.ts +1 -1
  132. package/dist/version.js +1 -1
  133. package/package.json +3 -3
  134. package/dist/bundle/command-contract-R6CGYG7L.js +0 -38
  135. package/dist/bundle/failure-VBQBKCD5.js +0 -37
  136. package/dist/bundle/first-screen-NSPQWNMQ.js +0 -36
  137. package/dist/bundle/google-api-2FKF4UUN.js +0 -82
  138. package/dist/bundle/mcp-H3XD47NW.js +0 -95
  139. package/dist/bundle/server-CA2VLY25.js +0 -56
  140. package/dist/bundle/server-TW75RDEP.js +0 -69
  141. package/dist/bundle/store-maintenance-command-FQMB3R4E.js +0 -57
  142. package/dist/bundle/tokens-JALZUGEM.js +0 -103
  143. /package/dist/bundle/{chunk-2WNDZFGG.js → chunk-62EDJKGP.js} +0 -0
  144. /package/dist/bundle/{chunk-UO5O3665.js → chunk-FQRJWVEB.js} +0 -0
@@ -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";
@@ -12,13 +12,13 @@ import {
12
12
  registerPrompts,
13
13
  stdinFieldOf,
14
14
  syncsFirst
15
- } from "./chunk-FV5WG4WU.js";
15
+ } from "./chunk-A4UNTWAX.js";
16
16
  import {
17
17
  mcpUrlOf
18
- } from "./chunk-MPTD5P53.js";
18
+ } from "./chunk-DO4PDQY5.js";
19
19
  import {
20
20
  answeredWire
21
- } from "./chunk-YXHMEFL7.js";
21
+ } from "./chunk-CITFEQ6S.js";
22
22
  import {
23
23
  BinaryResource,
24
24
  Picture,
@@ -39,44 +39,44 @@ import {
39
39
  tool,
40
40
  toolKey,
41
41
  toolsFromCommands
42
- } from "./chunk-TEH76MZK.js";
42
+ } from "./chunk-PQYVPCJ2.js";
43
43
  import {
44
44
  agentJson,
45
45
  skillResource
46
- } from "./chunk-6FXFYXTR.js";
46
+ } from "./chunk-IWFBAWZK.js";
47
47
  import {
48
48
  StdioServerTransport,
49
49
  callerOf,
50
50
  serveStdio
51
- } from "./chunk-XBENRRBS.js";
51
+ } from "./chunk-FCJAHD4R.js";
52
52
  import {
53
53
  instructions
54
- } from "./chunk-UM4E2OFL.js";
54
+ } from "./chunk-ZSXRDF6I.js";
55
55
  import {
56
56
  McpServer,
57
57
  ResourceTemplate
58
58
  } from "./chunk-5FONRUG6.js";
59
59
  import {
60
60
  mcpHttpMarker
61
- } from "./chunk-SRIPLP7N.js";
61
+ } from "./chunk-RNSP57TC.js";
62
62
  import {
63
63
  connectedFor,
64
64
  guardFor
65
- } from "./chunk-XCXUP76D.js";
65
+ } from "./chunk-CB7SBYLO.js";
66
66
  import {
67
67
  lackedNeed,
68
68
  wholeList
69
- } from "./chunk-UW7VXKKZ.js";
69
+ } from "./chunk-2AUXBJRX.js";
70
70
  import {
71
71
  capability,
72
72
  dateWindow,
73
73
  imageSize,
74
74
  servicesFor,
75
75
  storedDeps
76
- } from "./chunk-CT6Z6Z64.js";
76
+ } from "./chunk-H47W2J6S.js";
77
77
  import {
78
78
  findCommand
79
- } from "./chunk-HBRTKJ3J.js";
79
+ } from "./chunk-5PLJKSG4.js";
80
80
  import {
81
81
  DEFAULT_OUTPUT_BYTES,
82
82
  changesAuthorityAt,
@@ -88,42 +88,42 @@ import {
88
88
  rootOf2 as rootOf,
89
89
  sealed,
90
90
  snakeKeys
91
- } from "./chunk-5C7RKU7O.js";
91
+ } from "./chunk-FDWYPONW.js";
92
92
  import {
93
93
  withCaller
94
- } from "./chunk-NRWDEBJB.js";
94
+ } from "./chunk-PEOCBV2Z.js";
95
95
  import {
96
96
  describeProgram
97
- } from "./chunk-BVDAP3FQ.js";
97
+ } from "./chunk-725OHXKR.js";
98
98
  import {
99
99
  typedCommand
100
- } from "./chunk-XXLTVVMT.js";
100
+ } from "./chunk-LONV6HIK.js";
101
101
  import {
102
102
  isCliFailure
103
- } from "./chunk-LLMHJE5Q.js";
103
+ } from "./chunk-VSOLLTYT.js";
104
104
  import {
105
105
  levelFor,
106
106
  readKeysForCommand
107
- } from "./chunk-Y4YBW5S4.js";
107
+ } from "./chunk-Q765VPZY.js";
108
108
  import {
109
109
  readOnlyLockOf
110
- } from "./chunk-DDD3FS6G.js";
110
+ } from "./chunk-ZDLIO76S.js";
111
111
  import {
112
112
  warmEmbedders
113
- } from "./chunk-AKW5MNQP.js";
113
+ } from "./chunk-CM7GAXGD.js";
114
114
  import {
115
115
  openStore
116
- } from "./chunk-SRONUWOM.js";
116
+ } from "./chunk-WQJBAWQP.js";
117
117
  import {
118
118
  pdfPreviewLimits
119
- } from "./chunk-3KTDFSSK.js";
119
+ } from "./chunk-JEOYFKUK.js";
120
120
  import {
121
121
  timezoneOf
122
- } from "./chunk-G75FZQAZ.js";
122
+ } from "./chunk-NHBUTCNR.js";
123
123
  import {
124
124
  mcpErrorResult,
125
125
  visibleControls
126
- } from "./chunk-HGWMX7BM.js";
126
+ } from "./chunk-HQVJK5E7.js";
127
127
  import {
128
128
  CliError,
129
129
  description,
@@ -139,15 +139,15 @@ import {
139
139
  regex,
140
140
  strictObject,
141
141
  string
142
- } from "./chunk-EY4CUQW2.js";
142
+ } from "./chunk-YKZ4IPLB.js";
143
143
  import {
144
144
  __name
145
145
  } from "./chunk-ZVVMGPBJ.js";
146
146
 
147
- // 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/server.js
147
+ // 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/server.js
148
148
  import { randomUUID } from "node:crypto";
149
149
 
150
- // 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/agent-log.js
150
+ // 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/agent-log.js
151
151
  var agentLog = /* @__PURE__ */ __name((open) => {
152
152
  let held;
153
153
  return {
@@ -166,7 +166,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
166
166
  };
167
167
  }, "agentLog");
168
168
 
169
- // 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/resources.js
169
+ // 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/resources.js
170
170
  var LISTED = 100;
171
171
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
172
172
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -204,7 +204,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
204
204
  });
205
205
  }, "registerResources");
206
206
 
207
- // 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/session.js
207
+ // 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/session.js
208
208
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
209
209
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
210
210
  var MessengerSession = class {
@@ -279,7 +279,7 @@ var MessengerSession = class {
279
279
  }
280
280
  };
281
281
 
282
- // 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/tools/attachments.js
282
+ // 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/tools/attachments.js
283
283
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
284
284
  const _command = messenger.app.command;
285
285
  return {
@@ -333,7 +333,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
333
333
  };
334
334
  }, "attachmentsTools");
335
335
 
336
- // 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/tools/messages-photo.js
336
+ // 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/tools/messages-photo.js
337
337
  var PHOTO_LIMIT = 512 * 1024;
338
338
  var IMAGE_TYPES = [
339
339
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -387,7 +387,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
387
387
  return new Uint8Array(Buffer.concat(chunks));
388
388
  }, "readUpTo");
389
389
 
390
- // 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/tools/stats.js
390
+ // 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/tools/stats.js
391
391
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
392
392
  stats_charts: tool({
393
393
  title: "A chart from a chat's statistics",
@@ -424,14 +424,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
424
424
  })
425
425
  }), "statsTools");
426
426
 
427
- // 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/tools.js
427
+ // 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/tools.js
428
428
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
429
429
  ...messagesPhotoTools(messenger),
430
430
  ...attachmentsTools(messenger),
431
431
  ...statsTools(messenger)
432
432
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
433
433
 
434
- // 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/server.js
434
+ // 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/server.js
435
435
  var PER_RUN = /* @__PURE__ */ new Set([
436
436
  "streams",
437
437
  "stdin",
@@ -755,7 +755,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
755
755
  }, "serveOverStdio");
756
756
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
757
757
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
758
- const { serveOverHttp } = await import("./serve-UJ52HGA7.js");
758
+ const { serveOverHttp } = await import("./serve-VOBAQHAQ.js");
759
759
  const appName = messenger.app.command;
760
760
  const appEnvPrefix = messenger.app.envPrefix;
761
761
  const listening = await serveOverHttp(build, {
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  listen
5
- } from "./chunk-PRBPVOW4.js";
5
+ } from "./chunk-6DHQTUB2.js";
6
6
  import {
7
7
  ownerLogin
8
- } from "./chunk-GK2VUKQY.js";
8
+ } from "./chunk-YNFELLNQ.js";
9
9
  import {
10
10
  WebStandardStreamableHTTPServerTransport,
11
11
  createMcpHandler,
@@ -20,15 +20,15 @@ import {
20
20
  calledTools,
21
21
  httpActivityFile,
22
22
  httpLock
23
- } from "./chunk-SRIPLP7N.js";
23
+ } from "./chunk-RNSP57TC.js";
24
24
  import {
25
25
  CliError
26
- } from "./chunk-EY4CUQW2.js";
26
+ } from "./chunk-YKZ4IPLB.js";
27
27
  import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
31
- // 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/http/serve.js
31
+ // 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/http/serve.js
32
32
  import { randomUUID } from "node:crypto";
33
33
  var MCP_PATH = "/mcp";
34
34
  var AS_METADATA = "/.well-known/oauth-authorization-server";
@@ -5,13 +5,13 @@ import {
5
5
  operations,
6
6
  validateApiParams,
7
7
  validateRequest
8
- } from "./chunk-F3PPSIKI.js";
8
+ } from "./chunk-YVPHJHIL.js";
9
9
  import {
10
10
  googleError
11
- } from "./chunk-YOABRW2M.js";
11
+ } from "./chunk-R276546S.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-EY4CUQW2.js";
14
+ } from "./chunk-YKZ4IPLB.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,6 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  array,
5
+ boolean,
5
6
  integer,
6
7
  isoTime,
7
8
  isoTimestamp,
@@ -17,9 +18,9 @@ import {
17
18
  strictObject,
18
19
  string,
19
20
  unknown
20
- } from "./chunk-EY4CUQW2.js";
21
+ } from "./chunk-YKZ4IPLB.js";
21
22
 
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/entities/fields.js
23
+ // 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/fields.js
23
24
  var text = string();
24
25
  var id = pipe(string(), minLength(1));
25
26
  var time = isoTime;
@@ -27,13 +28,23 @@ var zonedTime = pipe(string(), isoTimestamp("an ISO 8601 time with a zone"));
27
28
  var count = pipe(number(), integer(), minValue(0));
28
29
  var untrusted = optional(array(text));
29
30
  var providerMetadata = optional(record(string(), unknown()));
31
+ var evidenceSource = strictObject({
32
+ ref: nullable(reference),
33
+ kind: text,
34
+ title: nullable(text),
35
+ sender: nullable(text),
36
+ at: nullable(time),
37
+ excerpt: nullable(text),
38
+ tool: nullable(text),
39
+ missing: boolean()
40
+ });
30
41
  var author = strictObject({
31
42
  type: picklist(["person", "bot"]),
32
43
  id,
33
44
  name: nullable(text)
34
45
  });
35
46
 
36
- // 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/note.js
47
+ // 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/note.js
37
48
  var link = {
38
49
  target_text: nullable(text),
39
50
  kind: text,
@@ -74,7 +85,7 @@ var note = strictObject({
74
85
  backlinks: optional(array(strictObject({ from: reference, ...link })))
75
86
  });
76
87
 
77
- // 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/knowledge-lists.js
88
+ // 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/knowledge-lists.js
78
89
  var organization = strictObject({
79
90
  id,
80
91
  ref: reference,
@@ -112,6 +123,7 @@ export {
112
123
  count,
113
124
  untrusted,
114
125
  providerMetadata,
126
+ evidenceSource,
115
127
  author,
116
128
  note,
117
129
  organization,