@wirecat/drive-cli 0.53.0 → 0.54.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 (126) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-WRN35CUF.js → all-profiles-LFIPUPZI.js} +9 -9
  3. package/dist/bundle/{anthropic-DZASXWG3.js → anthropic-G5ZRRWG4.js} +5 -5
  4. package/dist/bundle/{app-server-4VHT7QZN.js → app-server-UVWATOQC.js} +46 -46
  5. package/dist/bundle/{bun-7SYKSCLA.js → bun-DNEFTPTR.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-2GOM5PM3.js → bun-sqlite-FWBYHIXB.js} +4 -4
  7. package/dist/bundle/{chunk-PC4UA6UN.js → chunk-2CQT2WWN.js} +5 -5
  8. package/dist/bundle/{chunk-DZMK255Y.js → chunk-2D6AAGBP.js} +41 -31
  9. package/dist/bundle/{chunk-FG4XXZZE.js → chunk-2FFXRWI2.js} +2 -2
  10. package/dist/bundle/{chunk-MK3N7WX7.js → chunk-2HQPJ366.js} +3 -3
  11. package/dist/bundle/{chunk-54BYJQ77.js → chunk-2HWOGSTA.js} +25 -25
  12. package/dist/bundle/{chunk-7XKAVMCF.js → chunk-2MSJVFAS.js} +8 -8
  13. package/dist/bundle/{chunk-NSIFQ5OP.js → chunk-2NWFZ43Q.js} +1 -1
  14. package/dist/bundle/{chunk-6XYGTRMQ.js → chunk-2Q3S47BC.js} +523 -268
  15. package/dist/bundle/{chunk-KPBCGUJC.js → chunk-47MEPBWG.js} +21 -21
  16. package/dist/bundle/{chunk-3RYX7IB6.js → chunk-4RDXCE45.js} +39 -38
  17. package/dist/bundle/{chunk-7IUMHMTP.js → chunk-5BPOAHVD.js} +2 -2
  18. package/dist/bundle/{chunk-VZ2I62HN.js → chunk-5LNOVPOR.js} +2 -2
  19. package/dist/bundle/{chunk-EKFEY3KP.js → chunk-5WQN2TUM.js} +1 -1
  20. package/dist/bundle/{chunk-ALJWBGD5.js → chunk-6MGSFYGL.js} +1 -1
  21. package/dist/bundle/{chunk-WUX7AUOQ.js → chunk-6RAEXK7Y.js} +26 -26
  22. package/dist/bundle/{chunk-RNIHKIQP.js → chunk-6SOQJRGI.js} +4 -4
  23. package/dist/bundle/{chunk-CKBHR7QO.js → chunk-75DSLCPC.js} +1 -1
  24. package/dist/bundle/{chunk-YLKQSVLI.js → chunk-76JIVDKC.js} +2 -2
  25. package/dist/bundle/{chunk-LSGAJYVN.js → chunk-7WCZ2OZ5.js} +6 -6
  26. package/dist/bundle/{chunk-OQMK6WXQ.js → chunk-7XU3TR7K.js} +2 -2
  27. package/dist/bundle/{chunk-7SH4JHYW.js → chunk-A4FTLORC.js} +12 -12
  28. package/dist/bundle/{chunk-CITFEQ6S.js → chunk-AACQA2CO.js} +1 -1
  29. package/dist/bundle/{chunk-PSNHPFSK.js → chunk-AAHIBA36.js} +1 -1
  30. package/dist/bundle/{chunk-GPJEYW2J.js → chunk-BWBVBW5T.js} +8 -8
  31. package/dist/bundle/{chunk-HM352LJR.js → chunk-CVALO727.js} +24 -24
  32. package/dist/bundle/{chunk-E6XDFMRZ.js → chunk-FHW4ENRF.js} +32 -32
  33. package/dist/bundle/{chunk-2HHOMN2G.js → chunk-HAHARAJD.js} +23 -23
  34. package/dist/bundle/{chunk-SQHPJBNO.js → chunk-IBRXVPBI.js} +95 -95
  35. package/dist/bundle/{chunk-YQOVVCIA.js → chunk-IKODUUQG.js} +17 -16
  36. package/dist/bundle/{chunk-IJFZKQC4.js → chunk-IOMSC4ZG.js} +3 -3
  37. package/dist/bundle/{chunk-YKZ4IPLB.js → chunk-JKEAZBEZ.js} +7 -7
  38. package/dist/bundle/{chunk-VTWADVEQ.js → chunk-KIQIF5M7.js} +2 -2
  39. package/dist/bundle/{chunk-IAQ4L6SM.js → chunk-KT5G3KVS.js} +3 -3
  40. package/dist/bundle/{chunk-BEL4XZ3M.js → chunk-L3RV42O3.js} +16 -16
  41. package/dist/bundle/{chunk-NHBUTCNR.js → chunk-LQXLWHKM.js} +9 -9
  42. package/dist/bundle/{chunk-PR3DA7KA.js → chunk-MATUQFYL.js} +11 -11
  43. package/dist/bundle/{chunk-F3KHUJEE.js → chunk-MULPNGM2.js} +10 -10
  44. package/dist/bundle/{chunk-FJW3DDCF.js → chunk-N4OO3SPQ.js} +5 -5
  45. package/dist/bundle/{chunk-6DHQTUB2.js → chunk-NDWWGBSM.js} +1 -1
  46. package/dist/bundle/{chunk-DLAFGSTN.js → chunk-NHDSJMAR.js} +1 -1
  47. package/dist/bundle/{chunk-CNKILAWA.js → chunk-O6YYFVDD.js} +30 -23
  48. package/dist/bundle/{chunk-FXWBUTR7.js → chunk-OYGEBFFO.js} +7 -7
  49. package/dist/bundle/{chunk-DOZOLBXE.js → chunk-P7E7K467.js} +3 -3
  50. package/dist/bundle/{chunk-GE4DP24O.js → chunk-PKNTBZXN.js} +51 -51
  51. package/dist/bundle/{chunk-PIMMF67N.js → chunk-PU4GANCD.js} +2 -2
  52. package/dist/bundle/{chunk-UFWK3L5Z.js → chunk-Q46JLJ5O.js} +6 -6
  53. package/dist/bundle/{chunk-R276546S.js → chunk-QKHFQHE7.js} +1 -1
  54. package/dist/bundle/{chunk-6BNALDGA.js → chunk-QUJCD5U7.js} +4 -4
  55. package/dist/bundle/{chunk-CL4GVCXS.js → chunk-RIYXQFKU.js} +46 -46
  56. package/dist/bundle/{chunk-DT2YCB2V.js → chunk-RWEFKLXJ.js} +24 -22
  57. package/dist/bundle/{chunk-R4TE4ZSD.js → chunk-SBOTSSYV.js} +342 -296
  58. package/dist/bundle/{chunk-SIWBUGBU.js → chunk-U3BOQ63L.js} +8 -8
  59. package/dist/bundle/{chunk-QXYGK6G5.js → chunk-UBJX5D2O.js} +2 -2
  60. package/dist/bundle/{chunk-WJRJBQIM.js → chunk-VCGQMTHW.js} +549 -288
  61. package/dist/bundle/{chunk-ZG6X24ON.js → chunk-VKYCMXEQ.js} +5 -5
  62. package/dist/bundle/{chunk-ZSXRDF6I.js → chunk-VX4RAT3A.js} +1 -1
  63. package/dist/bundle/{chunk-2PVDFLJJ.js → chunk-W5SYBHRX.js} +2 -2
  64. package/dist/bundle/{chunk-KXMJE3XC.js → chunk-WGSTTWM5.js} +6 -6
  65. package/dist/bundle/{chunk-T334CFU4.js → chunk-WJRE45Z6.js} +4 -4
  66. package/dist/bundle/{chunk-TZLO3ZZF.js → chunk-WQPTZHHR.js} +17 -26
  67. package/dist/bundle/{chunk-JEOYFKUK.js → chunk-WSX5UQNT.js} +2 -2
  68. package/dist/bundle/{chunk-LJAX6YCF.js → chunk-WYDYSQ7T.js} +2 -2
  69. package/dist/bundle/{chunk-C6Z25IBJ.js → chunk-XCUUYQN7.js} +4 -4
  70. package/dist/bundle/{chunk-GVCN3GLZ.js → chunk-YOHOQ6ZR.js} +4 -4
  71. package/dist/bundle/{chunk-SVTYS36O.js → chunk-YZ5VMR2S.js} +3 -3
  72. package/dist/bundle/{chunk-ZDLIO76S.js → chunk-ZMMOVTUB.js} +2 -2
  73. package/dist/bundle/command-contract-VZ3ZJLEF.js +35 -0
  74. package/dist/bundle/{decode-WAPM2VBH.js → decode-DN2DDFET.js} +4 -4
  75. package/dist/bundle/drive.js +6 -6
  76. package/dist/bundle/{echarts-GXY34GHA.js → echarts-VMHZ2UYP.js} +2 -2
  77. package/dist/bundle/{embed-HW3N3KNP.js → embed-MDN7R7BA.js} +5 -5
  78. package/dist/bundle/{embedder-7WNFXYYP.js → embedder-KEVEDNDJ.js} +8 -8
  79. package/dist/bundle/{entry-J7YIRDPD.js → entry-HTNK5TJQ.js} +6 -6
  80. package/dist/bundle/{first-run-53CL2IYH.js → first-run-QNMCMP67.js} +9 -9
  81. package/dist/bundle/first-screen-RQBEHUQC.js +33 -0
  82. package/dist/bundle/{google-5NNVARNR.js → google-QAKMV57Q.js} +9 -9
  83. package/dist/bundle/{google-api-EQQH53QD.js → google-api-UJJS7ECO.js} +51 -51
  84. package/dist/bundle/grants-VMPKFEC2.js +98 -0
  85. package/dist/bundle/{identity-LBTXDMTA.js → identity-UODE3QAL.js} +4 -4
  86. package/dist/bundle/{instructions-K5BEQM4C.js → instructions-IWLHCDC7.js} +1 -1
  87. package/dist/bundle/{login-Y6ENYKC3.js → login-GIZXEN7I.js} +58 -60
  88. package/dist/bundle/{mcp-WSGVVZWI.js → mcp-RUYPQVYS.js} +2 -2
  89. package/dist/bundle/{node-ZYWB7IET.js → node-25IJLDBZ.js} +2 -2
  90. package/dist/bundle/{node-sqlite-FSQIKGED.js → node-sqlite-DYR4FEI4.js} +4 -4
  91. package/dist/bundle/{oauth-HF5USWXY.js → oauth-FLHXEDDY.js} +6 -6
  92. package/dist/bundle/{open-NHGJENCX.js → open-FWDZB7KX.js} +3 -3
  93. package/dist/bundle/{openai-3JCJYKNX.js → openai-HB7UGKPW.js} +13 -13
  94. package/dist/bundle/{process-ZXO2MWRJ.js → process-P6TW37HQ.js} +1 -1
  95. package/dist/bundle/{program-QAJ66K3Z.js → program-DVUNLXXS.js} +73 -73
  96. package/dist/bundle/{prompt-LQJBCCUF.js → prompt-MKWMYO3B.js} +4 -4
  97. package/dist/bundle/{reasons-J57GSRWN.js → reasons-25BEO2NE.js} +3 -3
  98. package/dist/bundle/{recognize-QM3LN4ZF.js → recognize-VXGNPROM.js} +3 -3
  99. package/dist/bundle/{remote-WREGEZJQ.js → remote-H5ZWLJHR.js} +6 -6
  100. package/dist/bundle/{rerank-YFUB6J6M.js → rerank-5A3JDK7O.js} +6 -6
  101. package/dist/bundle/{serve-7NFEZ564.js → serve-QNPNEZVR.js} +8 -8
  102. package/dist/bundle/{server-KBCFZ2AU.js → server-GWBVIRLY.js} +38 -38
  103. package/dist/bundle/server-QJU3HEGM.js +63 -0
  104. package/dist/bundle/{services-C3XWRA2W.js → services-PFXEWHJG.js} +29 -25
  105. package/dist/bundle/{sqlite-runtime-H3TSAMIN.js → sqlite-runtime-RGFISYXM.js} +4 -4
  106. package/dist/bundle/{state-S2Q53L6L.js → state-BUSX5BXF.js} +5 -5
  107. package/dist/bundle/{store-I27LAJPU.js → store-FIEE5HHG.js} +14 -14
  108. package/dist/bundle/{store-H345VQHP.js → store-HFF5KQ44.js} +12 -12
  109. package/dist/bundle/store-maintenance-command-Z4SPEQUM.js +52 -0
  110. package/dist/bundle/tokens-B6MUZRFM.js +96 -0
  111. package/dist/login.d.ts.map +1 -1
  112. package/dist/login.js +2 -4
  113. package/dist/login.js.map +1 -1
  114. package/dist/tokens.d.ts.map +1 -1
  115. package/dist/tokens.js +0 -9
  116. package/dist/tokens.js.map +1 -1
  117. package/dist/version.d.ts +1 -1
  118. package/dist/version.js +1 -1
  119. package/package.json +3 -3
  120. package/dist/bundle/command-contract-D4UG3D33.js +0 -35
  121. package/dist/bundle/first-screen-2KT7HM2K.js +0 -33
  122. package/dist/bundle/grants-4NETZ4MR.js +0 -98
  123. package/dist/bundle/server-UYVL2CFI.js +0 -63
  124. package/dist/bundle/store-maintenance-command-3XA73XMC.js +0 -52
  125. package/dist/bundle/tokens-7MUGKFEM.js +0 -96
  126. /package/dist/bundle/{chunk-62EDJKGP.js → chunk-HEA3XVAJ.js} +0 -0
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  walkQuery
5
- } from "./chunk-NHBUTCNR.js";
5
+ } from "./chunk-LQXLWHKM.js";
6
6
  import {
7
7
  writeSecurely
8
- } from "./chunk-DZMK255Y.js";
8
+ } from "./chunk-2D6AAGBP.js";
9
9
  import {
10
10
  CliError,
11
11
  array,
@@ -23,12 +23,12 @@ import {
23
23
  safeParse,
24
24
  string,
25
25
  trim
26
- } from "./chunk-YKZ4IPLB.js";
26
+ } from "./chunk-JKEAZBEZ.js";
27
27
  import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
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/documents/blocks.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/documents/blocks.js
32
32
  var MARKS = ["bold", "italic", "strike", "code", "link"];
33
33
  var sameMarks = /* @__PURE__ */ __name((a, b) => MARKS.every((mark) => a[mark] === b[mark]), "sameMarks");
34
34
  var normalizeInlines = /* @__PURE__ */ __name((inlines) => {
@@ -76,7 +76,7 @@ var key = /* @__PURE__ */ __name((block, withChecked) => {
76
76
  var blockKey = /* @__PURE__ */ __name((block) => JSON.stringify(key(block, true)), "blockKey");
77
77
  var blockShape = /* @__PURE__ */ __name((block) => JSON.stringify(key(block, false)), "blockShape");
78
78
 
79
- // 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/services/documents/block-diff.js
79
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/block-diff.js
80
80
  var MAX_CELLS = 4e6;
81
81
  var matches = /* @__PURE__ */ __name((a, b, keyOf) => {
82
82
  const ka = a.map(keyOf);
@@ -222,7 +222,7 @@ var mergeBlocks = /* @__PURE__ */ __name((baseLocal, baseRemote, local, remote,
222
222
  return { status: "clean", blocks, conflicts };
223
223
  }, "mergeBlocks");
224
224
 
225
- // 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/services/documents/extraction.js
225
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
226
226
  var Proposal = object({
227
227
  kind: picklist(["summary", "digest", "fact", "preference"]),
228
228
  body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
@@ -257,7 +257,7 @@ var extractMemories = /* @__PURE__ */ __name(async (text, complete) => {
257
257
  return { ...proposals, provider: answer.provider, model: answer.model, tokens: answer.tokens };
258
258
  }, "extractMemories");
259
259
 
260
- // 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/services/documents/ingestion.js
260
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/ingestion.js
261
261
  var documentIngestion = /* @__PURE__ */ __name((store, options) => {
262
262
  const folder = /* @__PURE__ */ __name(async (principal, create) => {
263
263
  if (options.provider)
@@ -384,7 +384,7 @@ var documentIngestion = /* @__PURE__ */ __name((store, options) => {
384
384
  };
385
385
  }, "documentIngestion");
386
386
 
387
- // 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/services/documents/knowledge.js
387
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/knowledge.js
388
388
  var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
389
389
  const document = /* @__PURE__ */ __name(async (principal, ref) => {
390
390
  const note = await store.notes.resolveNote(ref);
@@ -526,7 +526,7 @@ var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
526
526
  return port;
527
527
  }, "documentKnowledge");
528
528
 
529
- // 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/documents/markdown-blocks.js
529
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/documents/markdown-blocks.js
530
530
  var parser;
531
531
  var loadParser = /* @__PURE__ */ __name(() => parser ??= Promise.all([
532
532
  import("./mdast-util-from-markdown-FXEPSNER.js"),
@@ -651,7 +651,7 @@ var placedMarkdownBlocks = /* @__PURE__ */ __name(async (markdown) => {
651
651
  return blocks(tree.children);
652
652
  }, "placedMarkdownBlocks");
653
653
 
654
- // 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/services/documents/markdown-splice.js
654
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/markdown-splice.js
655
655
  var escapeText = /* @__PURE__ */ __name((text) => text.replace(/[\\`*_[\]<>~|]/g, "\\$&"), "escapeText");
656
656
  var codeSpan = /* @__PURE__ */ __name((text) => {
657
657
  const longest = (text.match(/`+/g) ?? []).reduce((most, run) => Math.max(most, run.length), 0);
@@ -837,15 +837,15 @@ var columnsBefore = /* @__PURE__ */ __name((placed, index) => {
837
837
  return columns;
838
838
  }, "columnsBefore");
839
839
 
840
- // 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/services/documents/mirror-watch.js
840
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
841
841
  import { watch } from "node:fs";
842
842
 
843
- // 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/services/documents/mirrors.js
843
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
844
844
  import { createHash as createHash2 } from "node:crypto";
845
845
  import { mkdirSync, readFileSync } from "node:fs";
846
846
  import { join as join2 } from "node:path";
847
847
 
848
- // 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/services/documents/push.js
848
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/push.js
849
849
  import { createHash, randomUUID } from "node:crypto";
850
850
  import { createReadStream } from "node:fs";
851
851
  import { chmod, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
@@ -1097,7 +1097,7 @@ var pushDocuments = /* @__PURE__ */ __name(async (options) => {
1097
1097
  return result;
1098
1098
  }, "pushDocuments");
1099
1099
 
1100
- // 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/services/documents/mirrors.js
1100
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
1101
1101
  var mirrorId = /* @__PURE__ */ __name((root, folder) => createHash2("sha256").update(JSON.stringify([root, folder])).digest("hex").slice(0, 8), "mirrorId");
1102
1102
  var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
1103
1103
  var stateSchema = /* @__PURE__ */ __name((kinds) => object({
@@ -1219,7 +1219,7 @@ var syncMirrors = /* @__PURE__ */ __name(async (options) => {
1219
1219
  };
1220
1220
  }, "syncMirrors");
1221
1221
 
1222
- // 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/services/documents/mirror-watch.js
1222
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
1223
1223
  var sleep = /* @__PURE__ */ __name((milliseconds, signal) => new Promise((resolve) => {
1224
1224
  const finish = /* @__PURE__ */ __name(() => {
1225
1225
  clearTimeout(timer);
@@ -1358,7 +1358,7 @@ async function* watchMirrors(sync, options) {
1358
1358
  }
1359
1359
  __name(watchMirrors, "watchMirrors");
1360
1360
 
1361
- // 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/services/documents/proposals.js
1361
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/proposals.js
1362
1362
  var extractDocumentMemories = /* @__PURE__ */ __name(async (options) => {
1363
1363
  const source = options.read();
1364
1364
  const text = options.tab ? source.snapshot.tabs.find((tab) => tab.id === options.tab)?.text : source.snapshot.text;
@@ -1408,10 +1408,10 @@ Snapshot: ${source.hash}`;
1408
1408
  };
1409
1409
  }, "extractDocumentMemories");
1410
1410
 
1411
- // 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/services/documents/sync.js
1411
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1412
1412
  import { createHash as createHash4 } from "node:crypto";
1413
1413
 
1414
- // 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/documents/scope.js
1414
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/documents/scope.js
1415
1415
  var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ */ new Set()) => {
1416
1416
  if (file.trashed)
1417
1417
  return false;
@@ -1426,7 +1426,7 @@ var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ *
1426
1426
  });
1427
1427
  }, "within");
1428
1428
 
1429
- // 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/documents/catalog.js
1429
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/documents/catalog.js
1430
1430
  var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
1431
1431
  const folders = state.pending?.folders ?? state.folders;
1432
1432
  const files = new Map(Object.values(state.documents).map((doc) => [doc.metadata.id, doc.metadata]));
@@ -1444,7 +1444,7 @@ var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
1444
1444
  return [...files.values()].filter((file) => within(file, roots, folders));
1445
1445
  }, "catalogFiles");
1446
1446
 
1447
- // 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/services/documents/plan.js
1447
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/plan.js
1448
1448
  import { createHash as createHash3 } from "node:crypto";
1449
1449
  var scopeHash = /* @__PURE__ */ __name((roots) => createHash3("sha256").update(JSON.stringify([...roots].sort())).digest("hex"), "scopeHash");
1450
1450
  var changedSince = /* @__PURE__ */ __name((previous, file) => previous.version !== file.version || previous.modifiedAt !== file.modifiedAt || previous.name !== file.name || previous.canDownload !== file.canDownload || JSON.stringify(previous.parents) !== JSON.stringify(file.parents), "changedSince");
@@ -1628,7 +1628,7 @@ var planDocuments = /* @__PURE__ */ __name(async (options, source, state, roots,
1628
1628
  return { scope, cursor: finalCursor, folders: scopedFolders, jobs, skipped };
1629
1629
  }, "planDocuments");
1630
1630
 
1631
- // 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/services/documents/sync.js
1631
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1632
1632
  var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
1633
1633
  var SAVE_EVERY_MS2 = 2e3;
1634
1634
  var SAVE_EVERY_ITEMS = 25;
@@ -9,7 +9,7 @@ import {
9
9
  providerErrorKey,
10
10
  renderEvent,
11
11
  runContextOf
12
- } from "./chunk-GPJEYW2J.js";
12
+ } from "./chunk-BWBVBW5T.js";
13
13
  import {
14
14
  CEILING_KEY,
15
15
  COMMAND_PATH_KEY,
@@ -40,33 +40,33 @@ import {
40
40
  typedCommand,
41
41
  useAsProcessRun,
42
42
  withWriteScope
43
- } from "./chunk-2HHOMN2G.js";
43
+ } from "./chunk-HAHARAJD.js";
44
44
  import {
45
45
  isCliFailure
46
- } from "./chunk-YLKQSVLI.js";
46
+ } from "./chunk-76JIVDKC.js";
47
47
  import {
48
48
  count,
49
49
  text
50
- } from "./chunk-GVCN3GLZ.js";
50
+ } from "./chunk-YOHOQ6ZR.js";
51
51
  import {
52
52
  permissionCeiling
53
- } from "./chunk-T334CFU4.js";
53
+ } from "./chunk-WJRE45Z6.js";
54
54
  import {
55
55
  envName,
56
56
  readOnlyLockOf,
57
57
  readOnlyRefusal
58
- } from "./chunk-ZDLIO76S.js";
58
+ } from "./chunk-ZMMOVTUB.js";
59
59
  import {
60
60
  FIELD_TYPES,
61
61
  QUERY_BACKENDS,
62
62
  describeQuery
63
- } from "./chunk-NHBUTCNR.js";
63
+ } from "./chunk-LQXLWHKM.js";
64
64
  import {
65
65
  sharedConfigPath
66
- } from "./chunk-KXMJE3XC.js";
66
+ } from "./chunk-WGSTTWM5.js";
67
67
  import {
68
68
  storePath
69
- } from "./chunk-QXYGK6G5.js";
69
+ } from "./chunk-UBJX5D2O.js";
70
70
  import {
71
71
  EXIT_CODES,
72
72
  GENERIC_FAILURE,
@@ -81,7 +81,7 @@ import {
81
81
  saveConfigFile,
82
82
  singleLine,
83
83
  writeSecurely
84
- } from "./chunk-DZMK255Y.js";
84
+ } from "./chunk-2D6AAGBP.js";
85
85
  import {
86
86
  CliError,
87
87
  MAX_NEXT_STEPS,
@@ -120,12 +120,12 @@ import {
120
120
  union,
121
121
  unknown,
122
122
  writes
123
- } from "./chunk-YKZ4IPLB.js";
123
+ } from "./chunk-JKEAZBEZ.js";
124
124
  import {
125
125
  __name
126
126
  } from "./chunk-ZVVMGPBJ.js";
127
127
 
128
- // 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/commands/registry.js
128
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
129
129
  var labels = /* @__PURE__ */ new WeakMap();
130
130
  var annotate = /* @__PURE__ */ __name((command, meta) => {
131
131
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3626,7 +3626,7 @@ __name(useColor, "useColor");
3626
3626
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3627
3627
  var program = new Command();
3628
3628
 
3629
- // 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/commands/contracts.js
3629
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3630
3630
  import { isDeepStrictEqual } from "node:util";
3631
3631
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3632
3632
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3828,7 +3828,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference, reason, build, e
3828
3828
  return command;
3829
3829
  }, "customizeSharedCommand");
3830
3830
 
3831
- // 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/commands/document.js
3831
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3832
3832
  var argumentInfoSchema = object({
3833
3833
  name: string(),
3834
3834
  required: boolean(),
@@ -3910,7 +3910,7 @@ var commandsDocument = /* @__PURE__ */ __name((root, about) => ({
3910
3910
  exit_codes: { ok: 0, internal_error: GENERIC_FAILURE, ...EXIT_CODES }
3911
3911
  }), "commandsDocument");
3912
3912
 
3913
- // 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/commands/index.js
3913
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3914
3914
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3915
3915
  let command = root;
3916
3916
  const path2 = [];
@@ -3928,7 +3928,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3928
3928
  }
3929
3929
  }, "refuseJoinedPath");
3930
3930
 
3931
- // 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/result-fields.js
3931
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
3932
3932
  var named = /* @__PURE__ */ __name((work) => {
3933
3933
  try {
3934
3934
  return work();
@@ -3955,7 +3955,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
3955
3955
  return projectFields(value, fields);
3956
3956
  }), "projectFields");
3957
3957
 
3958
- // 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
3958
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/execution.js
3959
3959
  var DEFAULT_COMMAND_MS = 3e4;
3960
3960
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
3961
3961
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4137,7 +4137,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4137
4137
  }
4138
4138
  }, "withAbort");
4139
4139
 
4140
- // 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
4140
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/profile.js
4141
4141
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4142
4142
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4143
4143
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4206,7 +4206,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4206
4206
  return void 0;
4207
4207
  }, "sampleCommand");
4208
4208
 
4209
- // 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
4209
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4210
4210
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4211
4211
  import { join } from "node:path";
4212
4212
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4228,7 +4228,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4228
4228
  }, "profilesWithAccounts");
4229
4229
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4230
4230
 
4231
- // 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/output-detail.js
4231
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/output-detail.js
4232
4232
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
4233
4233
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
4234
4234
  var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
@@ -4258,7 +4258,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
4258
4258
  return value;
4259
4259
  }, "atDetail");
4260
4260
 
4261
- // 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/output.js
4261
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/output.js
4262
4262
  var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
4263
4263
  const interactive = tty ?? process.stdout.isTTY === true;
4264
4264
  const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
@@ -4306,7 +4306,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
4306
4306
  }, "warn")
4307
4307
  }), "silence");
4308
4308
 
4309
- // 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
4309
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4310
4310
  var CORE_LOG_EVENTS = defineLogEvents([
4311
4311
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4312
4312
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4340,7 +4340,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4340
4340
  cache: "cache.answered"
4341
4341
  };
4342
4342
 
4343
- // 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
4343
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/runs/recording.js
4344
4344
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4345
4345
  const recording = startRecording(options);
4346
4346
  try {
@@ -4525,7 +4525,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4525
4525
  return void 0;
4526
4526
  }, "partialOutcome");
4527
4527
 
4528
- // 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
4528
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4529
4529
  var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4530
4530
  if (ms === void 0)
4531
4531
  return body();
@@ -4551,10 +4551,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4551
4551
  }
4552
4552
  }, "withDeadline");
4553
4553
 
4554
- // 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
4554
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/settings.js
4555
4555
  import { existsSync as existsSync3 } from "node:fs";
4556
4556
 
4557
- // 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
4557
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4558
4558
  var endpoint = /* @__PURE__ */ __name((value) => {
4559
4559
  try {
4560
4560
  const url2 = new URL(value);
@@ -4564,7 +4564,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
4564
4564
  }
4565
4565
  }, "endpoint");
4566
4566
 
4567
- // 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
4567
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/models/settings.js
4568
4568
  var MODEL_FIELDS = ["provider", "model", "base_url"];
4569
4569
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4570
4570
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -4633,7 +4633,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
4633
4633
  };
4634
4634
  }, "modelTarget");
4635
4635
 
4636
- // 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
4636
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4637
4637
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4638
4638
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4639
4639
  var AI_FIELDS = {
@@ -4677,7 +4677,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4677
4677
  };
4678
4678
  }, "resolveAISettings");
4679
4679
 
4680
- // 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
4680
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4681
4681
  import { readFileSync as readFileSync2 } from "node:fs";
4682
4682
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
4683
4683
  var SECTIONS = ["personal", "bot"];
@@ -4967,7 +4967,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
4967
4967
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
4968
4968
  }, "readConfigFile");
4969
4969
 
4970
- // 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
4970
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/default-config.js
4971
4971
  import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
4972
4972
  import { dirname, join as join2 } from "node:path";
4973
4973
  var DEFAULT_CONFIG = {
@@ -4996,7 +4996,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
4996
4996
  }
4997
4997
  __name(ensureDefaultConfig, "ensureDefaultConfig");
4998
4998
 
4999
- // 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
4999
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/settings.js
5000
5000
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5001
5001
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5002
5002
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -5386,7 +5386,7 @@ var given = /* @__PURE__ */ __name((value) => {
5386
5386
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
5387
5387
  }, "given");
5388
5388
 
5389
- // 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
5389
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/context.js
5390
5390
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
5391
5391
  const slot = environmentOf(command).exit;
5392
5392
  if (slot)
@@ -5493,7 +5493,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
5493
5493
  return words.join(" ");
5494
5494
  }, "commandPath");
5495
5495
 
5496
- // 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
5496
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/effects.js
5497
5497
  var REMOTE_READ = { remote: "read", local: "read" };
5498
5498
  var FETCH = { remote: "read", local: "write" };
5499
5499
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -5591,7 +5591,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
5591
5591
  throw readOnlyRefusal(lock, what);
5592
5592
  }, "refuseUnderReadOnly");
5593
5593
 
5594
- // 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
5594
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/steps.js
5595
5595
  var STEPS2 = defineSteps([
5596
5596
  ...STEPS,
5597
5597
  {
@@ -5858,7 +5858,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
5858
5858
  ].join(" ");
5859
5859
  }, "stepLine");
5860
5860
 
5861
- // 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
5861
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
5862
5862
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
5863
5863
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
5864
5864
  var strip = /* @__PURE__ */ __name((value) => {
@@ -5872,7 +5872,7 @@ var strip = /* @__PURE__ */ __name((value) => {
5872
5872
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
5873
5873
  }, "strip");
5874
5874
 
5875
- // 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
5875
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/envelope.js
5876
5876
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
5877
5877
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
5878
5878
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -6006,7 +6006,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
6006
6006
  renderer.result(item);
6007
6007
  }, "printItem");
6008
6008
 
6009
- // 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
6009
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/entities/store-table.js
6010
6010
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
6011
6011
  var storeTable = strictObject({
6012
6012
  name: text,
@@ -6015,7 +6015,7 @@ var storeTable = strictObject({
6015
6015
  bytes: optional(nullable(count))
6016
6016
  });
6017
6017
 
6018
- // 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
6018
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6019
6019
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
6020
6020
  const run = currentRun();
6021
6021
  const trace = traceId ?? run.traceId;
@@ -6032,6 +6032,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
6032
6032
  export {
6033
6033
  annotate,
6034
6034
  metaOf,
6035
+ annotateOption,
6035
6036
  describeProgram,
6036
6037
  describeOptions,
6037
6038
  flatten,
@@ -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-YKZ4IPLB.js";
5
+ } from "./chunk-JKEAZBEZ.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
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/cli/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();
@@ -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-YKZ4IPLB.js";
5
+ } from "./chunk-JKEAZBEZ.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
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/models/types.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/models/types.js
11
11
  var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
12
12
  var validateImages = /* @__PURE__ */ __name((images) => {
13
13
  if (images === void 0)
@@ -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-YKZ4IPLB.js";
5
+ } from "./chunk-JKEAZBEZ.js";
6
6
 
7
7
  // dist/reasons.js
8
8
  var ENTRIES = [
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
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/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {