@wirecat/drive-cli 0.49.0 → 0.50.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-WK2XXGPU.js → all-profiles-WQTVOCIS.js} +8 -8
  3. package/dist/bundle/{anthropic-R354D7GT.js → anthropic-YCA2AWIJ.js} +5 -5
  4. package/dist/bundle/{app-server-3YHJ757G.js → app-server-ZQOYUQJH.js} +52 -52
  5. package/dist/bundle/{bun-JVDJVDHL.js → bun-5NFIDHGM.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-KZCZWSRZ.js → bun-sqlite-OAQE4M2E.js} +4 -4
  7. package/dist/bundle/{chunk-2BADVV4A.js → chunk-24TOKSZE.js} +2 -2
  8. package/dist/bundle/{chunk-CCLDCM7J.js → chunk-2M5XEGVE.js} +290 -208
  9. package/dist/bundle/{chunk-HBYE4EP2.js → chunk-3CQNJKJT.js} +1 -1
  10. package/dist/bundle/{chunk-MC77UZVA.js → chunk-3HNUH632.js} +6 -6
  11. package/dist/bundle/{chunk-U77RLMOK.js → chunk-3XX52F42.js} +2 -2
  12. package/dist/bundle/{chunk-5KR7BKDV.js → chunk-4J7UGHPK.js} +5 -5
  13. package/dist/bundle/{chunk-IRDGH7DV.js → chunk-4OLWMHS6.js} +3 -3
  14. package/dist/bundle/{chunk-7WEISHFA.js → chunk-4SSUKRO4.js} +2 -2
  15. package/dist/bundle/{chunk-EF2RCQ3L.js → chunk-4VLUX3V5.js} +1 -1
  16. package/dist/bundle/{chunk-W5EUHV3J.js → chunk-53UWCVSU.js} +1 -1
  17. package/dist/bundle/{chunk-PPXNEHYX.js → chunk-5OMLYNYB.js} +8 -8
  18. package/dist/bundle/{chunk-NXFEZQDL.js → chunk-5WN7JHQE.js} +26 -26
  19. package/dist/bundle/{chunk-FB7I5JWC.js → chunk-5Z63NTC7.js} +6 -6
  20. package/dist/bundle/{chunk-2ZFR67KY.js → chunk-5ZJHQ4TN.js} +2 -2
  21. package/dist/bundle/{chunk-75VCGSNB.js → chunk-652YTDT5.js} +15 -15
  22. package/dist/bundle/{chunk-YYMHFXHK.js → chunk-6DDXB5WB.js} +2 -2
  23. package/dist/bundle/{chunk-XLJV3ZOH.js → chunk-6E4PFCQ4.js} +1 -1
  24. package/dist/bundle/{chunk-P4NOTS3U.js → chunk-7SYSC7KX.js} +2 -2
  25. package/dist/bundle/{chunk-6Z3W7LTD.js → chunk-AO3NCZNT.js} +8 -8
  26. package/dist/bundle/{chunk-LF7ACSTK.js → chunk-BUALWXBT.js} +1 -1
  27. package/dist/bundle/{chunk-FZQSGLHU.js → chunk-C4PNAHI4.js} +11 -11
  28. package/dist/bundle/{chunk-XVXXWNAA.js → chunk-CCEVICWU.js} +4 -4
  29. package/dist/bundle/{chunk-Y2AUB4TJ.js → chunk-CEUEXMIR.js} +80 -33
  30. package/dist/bundle/{chunk-254VYUWN.js → chunk-CTIQ77AB.js} +17 -17
  31. package/dist/bundle/{chunk-JZ3SUK2M.js → chunk-DTHWL5YU.js} +5 -5
  32. package/dist/bundle/{chunk-JMOX454R.js → chunk-E656DAZT.js} +1 -1
  33. package/dist/bundle/{chunk-KKZYZ32J.js → chunk-EXYEDKTX.js} +2 -2
  34. package/dist/bundle/{chunk-BJ3JRO34.js → chunk-EY4CUQW2.js} +7 -7
  35. package/dist/bundle/{chunk-YOF5BC4G.js → chunk-FABKIQ24.js} +2 -2
  36. package/dist/bundle/{chunk-QEM3MOSB.js → chunk-FSAM4Y2S.js} +8 -8
  37. package/dist/bundle/{chunk-R2QRP7EJ.js → chunk-G75FZQAZ.js} +13 -9
  38. package/dist/bundle/{chunk-VHT2WI4I.js → chunk-HGWMX7BM.js} +101 -73
  39. package/dist/bundle/{chunk-45TPBTR3.js → chunk-HURI56SB.js} +21 -21
  40. package/dist/bundle/{chunk-624B6G64.js → chunk-IA6LNKCF.js} +5 -5
  41. package/dist/bundle/{chunk-ITZI7T2X.js → chunk-IFM2APQB.js} +2 -2
  42. package/dist/bundle/{chunk-AN7HENGZ.js → chunk-IGG4RBIZ.js} +108 -96
  43. package/dist/bundle/{chunk-FUJZ5S2Q.js → chunk-INVF3GXW.js} +10 -10
  44. package/dist/bundle/{chunk-R235IRSJ.js → chunk-IUZ4PT2V.js} +2 -2
  45. package/dist/bundle/{chunk-3UHJC6HH.js → chunk-JA2YY7D4.js} +7 -7
  46. package/dist/bundle/{chunk-7BA3HL7N.js → chunk-JHBX53SK.js} +35 -35
  47. package/dist/bundle/{chunk-RAAI3JLI.js → chunk-JSMPSOEM.js} +3 -3
  48. package/dist/bundle/{chunk-HVM5LS5Z.js → chunk-KEQ35HQQ.js} +3 -3
  49. package/dist/bundle/{chunk-HIAO4MPA.js → chunk-KYMGVMOS.js} +1 -1
  50. package/dist/bundle/{chunk-467AQO7E.js → chunk-KZEOWOZV.js} +7 -7
  51. package/dist/bundle/{chunk-KYJYOZYG.js → chunk-LNWRRK2H.js} +6 -6
  52. package/dist/bundle/{chunk-P7INAZIT.js → chunk-M2D4FXKY.js} +5 -5
  53. package/dist/bundle/{chunk-SSD2V4HR.js → chunk-M6FQOGUW.js} +279 -258
  54. package/dist/bundle/{chunk-5ISHP4TK.js → chunk-MMOG7ZVF.js} +2 -2
  55. package/dist/bundle/{chunk-KK3BA4IS.js → chunk-NHRJW3PH.js} +2 -2
  56. package/dist/bundle/{chunk-MFS52LTZ.js → chunk-OKSS7YUN.js} +1 -1
  57. package/dist/bundle/{chunk-E2Y6GJZX.js → chunk-OL22OOIW.js} +4 -4
  58. package/dist/bundle/{chunk-DKJGYYCP.js → chunk-OQEBGY74.js} +46 -46
  59. package/dist/bundle/{chunk-MAXN7COO.js → chunk-P3T2SZW2.js} +1 -1
  60. package/dist/bundle/{chunk-NFU3OBCC.js → chunk-P6VN5UB4.js} +4 -4
  61. package/dist/bundle/{chunk-A3FU4RR6.js → chunk-PNUS224S.js} +4 -4
  62. package/dist/bundle/{chunk-L5RZI2M5.js → chunk-POD2GHQB.js} +19 -19
  63. package/dist/bundle/{chunk-46X7Z4FD.js → chunk-Q27HCATD.js} +324 -278
  64. package/dist/bundle/{chunk-HQ2PGEOK.js → chunk-Q3VG3UYV.js} +11 -11
  65. package/dist/bundle/{chunk-JMRHDZMV.js → chunk-QBECV7NO.js} +33 -32
  66. package/dist/bundle/{chunk-EOZPMJJP.js → chunk-QNLD7Y6Z.js} +7 -7
  67. package/dist/bundle/{chunk-NVHB2MHX.js → chunk-QSDXVUJG.js} +4 -4
  68. package/dist/bundle/{chunk-ABVFH76X.js → chunk-QY3LK3OT.js} +5 -5
  69. package/dist/bundle/{chunk-BQV3WYXW.js → chunk-R7XMCREL.js} +31 -21
  70. package/dist/bundle/{chunk-463NMG57.js → chunk-RTIMGPLN.js} +3 -3
  71. package/dist/bundle/{chunk-CB5NGX6E.js → chunk-T7UZHKAS.js} +2 -2
  72. package/dist/bundle/{chunk-4ORK4UAY.js → chunk-TATRMMOG.js} +3 -3
  73. package/dist/bundle/{chunk-MP2UCK3Z.js → chunk-UVPKSZSC.js} +4 -4
  74. package/dist/bundle/{chunk-IEAZAPC3.js → chunk-VAETCXRI.js} +42 -17
  75. package/dist/bundle/{chunk-P4OU3OVF.js → chunk-VAK2Q2XG.js} +14 -14
  76. package/dist/bundle/{chunk-ZK7Y5K63.js → chunk-XEETGCOC.js} +1 -1
  77. package/dist/bundle/{chunk-IRNX4CO5.js → chunk-XGJUEH5C.js} +27 -27
  78. package/dist/bundle/{chunk-VAGF723Z.js → chunk-Y73IZWRI.js} +1 -1
  79. package/dist/bundle/{chunk-2DLAJGRN.js → chunk-YOABRW2M.js} +1 -1
  80. package/dist/bundle/{chunk-65AW2AEQ.js → chunk-YROVFHPJ.js} +2 -2
  81. package/dist/bundle/{chunk-HD3TFIT4.js → chunk-Z54E5LKF.js} +6 -6
  82. package/dist/bundle/{chunk-W5IDHD6C.js → chunk-ZJBRKR42.js} +27 -27
  83. package/dist/bundle/{chunk-22LTNYO2.js → chunk-ZKGYW63J.js} +9 -9
  84. package/dist/bundle/{chunk-2CKGGIWF.js → chunk-ZP735UUT.js} +3 -3
  85. package/dist/bundle/{chunk-HF2T7E67.js → chunk-ZXD2I5ZQ.js} +49 -49
  86. package/dist/bundle/command-contract-TAWVO2G3.js +38 -0
  87. package/dist/bundle/{decode-BE3VDYTJ.js → decode-YZRTP54O.js} +4 -4
  88. package/dist/bundle/drive.js +7 -7
  89. package/dist/bundle/{echarts-4OQHS575.js → echarts-C6HUK2FL.js} +2 -2
  90. package/dist/bundle/{embed-QR76SJDI.js → embed-QRQ7ITFC.js} +5 -5
  91. package/dist/bundle/{embedder-EMIDKBYV.js → embedder-EZDB3JPA.js} +8 -8
  92. package/dist/bundle/{entry-FE4REJDO.js → entry-4WQQKSYG.js} +6 -6
  93. package/dist/bundle/failure-EEJGMWEP.js +37 -0
  94. package/dist/bundle/{first-run-ALPI62PX.js → first-run-ZAS4OV3T.js} +9 -9
  95. package/dist/bundle/first-screen-6ICWD2N3.js +36 -0
  96. package/dist/bundle/{google-NV75VSCD.js → google-KNILTIDW.js} +9 -9
  97. package/dist/bundle/google-api-CZACYX5T.js +82 -0
  98. package/dist/bundle/{identity-NZ7SP6OL.js → identity-VBCGUXT5.js} +2 -2
  99. package/dist/bundle/{instructions-3QZBKKPF.js → instructions-II4M2WL3.js} +1 -1
  100. package/dist/bundle/{login-KNBM6XUX.js → login-4JACQVMD.js} +62 -62
  101. package/dist/bundle/mcp-2BR2EX7L.js +95 -0
  102. package/dist/bundle/{mcp-XY2FGGUM.js → mcp-6ZIAWU3N.js} +76 -76
  103. package/dist/bundle/{mcp-OQBZXELQ.js → mcp-ZYZ4DFW2.js} +2 -2
  104. package/dist/bundle/{node-R2BLYUSB.js → node-LIN7L4VQ.js} +2 -2
  105. package/dist/bundle/{node-sqlite-PMRVP442.js → node-sqlite-VAH4KZN3.js} +4 -4
  106. package/dist/bundle/{oauth-NM2AKRRT.js → oauth-QUE3VCTU.js} +6 -6
  107. package/dist/bundle/{open-XZH5ZNDA.js → open-DQ3EVYPB.js} +3 -3
  108. package/dist/bundle/{process-IX5YWGDP.js → process-46XDWPVW.js} +1 -1
  109. package/dist/bundle/{program-MDWQHGBY.js → program-X3CZ4XDN.js} +93 -86
  110. package/dist/bundle/{prompt-5K6XGWSK.js → prompt-SAZYCZV3.js} +4 -4
  111. package/dist/bundle/{reasons-GF2TYGX6.js → reasons-366PI7OV.js} +3 -3
  112. package/dist/bundle/{recognize-U7GDD6T2.js → recognize-SSBOHOTW.js} +3 -3
  113. package/dist/bundle/{remote-ZWXOGNQX.js → remote-EL3FWCQE.js} +6 -6
  114. package/dist/bundle/{rerank-YRQBCS63.js → rerank-RPIQRJIW.js} +6 -6
  115. package/dist/bundle/{serve-6PQ7K5RK.js → serve-AX44DIKK.js} +8 -8
  116. package/dist/bundle/server-DCJIGUW2.js +56 -0
  117. package/dist/bundle/server-WWQSQBFT.js +69 -0
  118. package/dist/bundle/{services-QBIQX236.js → services-K4UOEMQD.js} +28 -28
  119. package/dist/bundle/{sqlite-runtime-7Q5UD2VR.js → sqlite-runtime-N7N3EYGH.js} +4 -4
  120. package/dist/bundle/{state-U72TC26L.js → state-C3S5FD7V.js} +5 -5
  121. package/dist/bundle/{store-B4RAJ63G.js → store-4N3NBUGX.js} +14 -14
  122. package/dist/bundle/{store-FYABCSIH.js → store-QV4ZNEQ3.js} +16 -16
  123. package/dist/bundle/store-maintenance-command-QL4AECBD.js +57 -0
  124. package/dist/bundle/tokens-Y7HCOXOA.js +103 -0
  125. package/dist/commands/session.d.ts.map +1 -1
  126. package/dist/commands/session.js +10 -2
  127. package/dist/commands/session.js.map +1 -1
  128. package/dist/tokens.d.ts.map +1 -1
  129. package/dist/tokens.js +2 -2
  130. package/dist/tokens.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-AEA45IX7.js +0 -38
  135. package/dist/bundle/failure-GYOTW6NN.js +0 -37
  136. package/dist/bundle/first-screen-JLS57PIT.js +0 -36
  137. package/dist/bundle/google-api-6623OUF2.js +0 -82
  138. package/dist/bundle/mcp-4NPK6BM3.js +0 -95
  139. package/dist/bundle/server-O7SS6NAY.js +0 -56
  140. package/dist/bundle/server-WT57TF6S.js +0 -69
  141. package/dist/bundle/store-maintenance-command-DAF5NI3T.js +0 -57
  142. package/dist/bundle/tokens-DISQJKDM.js +0 -103
  143. /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-2WNDZFGG.js} +0 -0
  144. /package/dist/bundle/{chunk-YLBNPI7H.js → chunk-VDZZ46RT.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-R2QRP7EJ.js";
5
+ } from "./chunk-G75FZQAZ.js";
6
6
  import {
7
7
  writeSecurely
8
- } from "./chunk-VHT2WI4I.js";
8
+ } from "./chunk-HGWMX7BM.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-BJ3JRO34.js";
26
+ } from "./chunk-EY4CUQW2.js";
27
27
  import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/documents/blocks.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/block-diff.js
79
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
225
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/ingestion.js
260
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/knowledge.js
387
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/documents/markdown-blocks.js
529
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/markdown-splice.js
654
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
840
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
843
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/push.js
848
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
1100
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
1222
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/proposals.js
1361
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1411
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/documents/scope.js
1414
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/documents/catalog.js
1429
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/plan.js
1447
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1631
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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;
@@ -5,17 +5,17 @@ import {
5
5
  checkConfigText,
6
6
  issueMessage,
7
7
  usableProfileName
8
- } from "./chunk-JMRHDZMV.js";
8
+ } from "./chunk-QBECV7NO.js";
9
9
  import {
10
10
  LEVELS
11
- } from "./chunk-YYMHFXHK.js";
11
+ } from "./chunk-6DDXB5WB.js";
12
12
  import {
13
13
  MAX_TEXT_CHARS
14
- } from "./chunk-U77RLMOK.js";
14
+ } from "./chunk-3XX52F42.js";
15
15
  import {
16
16
  resolvePaths,
17
17
  saveConfigFile
18
- } from "./chunk-VHT2WI4I.js";
18
+ } from "./chunk-HGWMX7BM.js";
19
19
  import {
20
20
  CliError,
21
21
  array,
@@ -36,7 +36,7 @@ import {
36
36
  strictObject,
37
37
  string,
38
38
  union
39
- } from "./chunk-BJ3JRO34.js";
39
+ } from "./chunk-EY4CUQW2.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
@@ -10,12 +10,12 @@ import {
10
10
  optional,
11
11
  pipe,
12
12
  safeParse
13
- } from "./chunk-BJ3JRO34.js";
13
+ } from "./chunk-EY4CUQW2.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/models/options.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/models/options.js
19
19
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
20
20
  const parsed = safeParse(schema, options);
21
21
  if (!parsed.success) {