@wirecat/drive-cli 0.46.0 → 0.49.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 (146) hide show
  1. package/README.md +1 -1
  2. package/dist/age.d.ts +73 -0
  3. package/dist/age.d.ts.map +1 -0
  4. package/dist/age.js +44 -0
  5. package/dist/age.js.map +1 -0
  6. package/dist/bin/drive.js +2 -2
  7. package/dist/bundle/{all-profiles-O7CNQ7FO.js → all-profiles-WK2XXGPU.js} +5 -5
  8. package/dist/bundle/{anthropic-6T67J2CE.js → anthropic-R354D7GT.js} +3 -3
  9. package/dist/bundle/{app-server-BVBZT3UY.js → app-server-3YHJ757G.js} +46 -46
  10. package/dist/bundle/{bun-O6RL6LRQ.js → bun-JVDJVDHL.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-54W7JUY3.js → bun-sqlite-KZCZWSRZ.js} +2 -2
  12. package/dist/bundle/{chunk-LOTQ2HMT.js → chunk-22LTNYO2.js} +3 -3
  13. package/dist/bundle/{chunk-5MGIL5LW.js → chunk-254VYUWN.js} +18 -15
  14. package/dist/bundle/{chunk-NLEB26GA.js → chunk-2BADVV4A.js} +2 -2
  15. package/dist/bundle/{chunk-XEBFFKXO.js → chunk-2CKGGIWF.js} +1 -1
  16. package/dist/bundle/{chunk-D67JGWSC.js → chunk-2ZFR67KY.js} +6 -3
  17. package/dist/bundle/{chunk-K74PQVQZ.js → chunk-3UHJC6HH.js} +6 -6
  18. package/dist/bundle/{chunk-44FV5JAS.js → chunk-45TPBTR3.js} +18 -18
  19. package/dist/bundle/{chunk-NP3XLLN3.js → chunk-463NMG57.js} +2 -2
  20. package/dist/bundle/{chunk-AOOD3RMK.js → chunk-467AQO7E.js} +5 -5
  21. package/dist/bundle/{chunk-FEULDMWM.js → chunk-46X7Z4FD.js} +1903 -1526
  22. package/dist/bundle/{chunk-IKNU5A5Y.js → chunk-4ORK4UAY.js} +2 -2
  23. package/dist/bundle/{chunk-GOR3Z2FR.js → chunk-5ISHP4TK.js} +1 -1
  24. package/dist/bundle/{chunk-R2A3K7ZF.js → chunk-5KR7BKDV.js} +4 -4
  25. package/dist/bundle/{chunk-GWPKIRNQ.js → chunk-624B6G64.js} +3 -3
  26. package/dist/bundle/{chunk-TRMIV3OA.js → chunk-65AW2AEQ.js} +1 -1
  27. package/dist/bundle/{chunk-BQUPOB5H.js → chunk-6Z3W7LTD.js} +7 -7
  28. package/dist/bundle/{chunk-XF5MFUEB.js → chunk-75VCGSNB.js} +10 -10
  29. package/dist/bundle/{chunk-K7FRUB33.js → chunk-7BA3HL7N.js} +32 -32
  30. package/dist/bundle/{chunk-NDNTLUPS.js → chunk-7WEISHFA.js} +1 -1
  31. package/dist/bundle/{chunk-GNFHZZ55.js → chunk-ABVFH76X.js} +4 -4
  32. package/dist/bundle/{chunk-BEXHAGXH.js → chunk-AN7HENGZ.js} +156 -144
  33. package/dist/bundle/{chunk-CFZWPIVC.js → chunk-BQV3WYXW.js} +26 -18
  34. package/dist/bundle/{chunk-SWMMR3FR.js → chunk-CB5NGX6E.js} +1 -1
  35. package/dist/bundle/{chunk-DL7D6Y3B.js → chunk-CCLDCM7J.js} +3320 -3282
  36. package/dist/bundle/{chunk-BHE7ZY2N.js → chunk-DKJGYYCP.js} +71 -43
  37. package/dist/bundle/{chunk-ZBM4GEV2.js → chunk-E2Y6GJZX.js} +3 -3
  38. package/dist/bundle/{chunk-CVIKKIGE.js → chunk-EF2RCQ3L.js} +1 -1
  39. package/dist/bundle/{chunk-DORXXBFC.js → chunk-EOZPMJJP.js} +5 -5
  40. package/dist/bundle/{chunk-GQW4GRYR.js → chunk-FB7I5JWC.js} +4 -4
  41. package/dist/bundle/{chunk-PDBBBUY7.js → chunk-FUJZ5S2Q.js} +8 -8
  42. package/dist/bundle/{chunk-OWXTPXIQ.js → chunk-FZQSGLHU.js} +10 -10
  43. package/dist/bundle/{chunk-4NGLRHWO.js → chunk-HBYE4EP2.js} +1 -1
  44. package/dist/bundle/{chunk-NB2N6L3R.js → chunk-HD3TFIT4.js} +5 -5
  45. package/dist/bundle/{chunk-HEPIOCHN.js → chunk-HF2T7E67.js} +55 -48
  46. package/dist/bundle/{chunk-NW7IMGRR.js → chunk-HIAO4MPA.js} +1 -1
  47. package/dist/bundle/{chunk-4DW6QGEV.js → chunk-HQ2PGEOK.js} +9 -9
  48. package/dist/bundle/{chunk-PH74B2VZ.js → chunk-HVM5LS5Z.js} +2 -2
  49. package/dist/bundle/{chunk-CKR3DVUK.js → chunk-IEAZAPC3.js} +20 -17
  50. package/dist/bundle/{chunk-GHOWRW7E.js → chunk-IRDGH7DV.js} +8 -1
  51. package/dist/bundle/{chunk-XAZQTJXR.js → chunk-IRNX4CO5.js} +16 -16
  52. package/dist/bundle/{chunk-LHIL46I3.js → chunk-ITZI7T2X.js} +1 -1
  53. package/dist/bundle/{chunk-NM26XAS2.js → chunk-JMOX454R.js} +1 -1
  54. package/dist/bundle/{chunk-AUS6TKP5.js → chunk-JMRHDZMV.js} +30 -30
  55. package/dist/bundle/{chunk-VHQNVG3J.js → chunk-JZ3SUK2M.js} +2 -2
  56. package/dist/bundle/{chunk-RJ633GFA.js → chunk-KK3BA4IS.js} +1 -1
  57. package/dist/bundle/{chunk-WUFCYDKB.js → chunk-KKZYZ32J.js} +1 -1
  58. package/dist/bundle/{chunk-VYBOYBLX.js → chunk-KYJYOZYG.js} +5 -5
  59. package/dist/bundle/{chunk-JVTVAZ5X.js → chunk-L5RZI2M5.js} +56 -17
  60. package/dist/bundle/{chunk-ZKXDI45R.js → chunk-LF7ACSTK.js} +1 -1
  61. package/dist/bundle/{chunk-LZ5OTVWH.js → chunk-MC77UZVA.js} +3 -3
  62. package/dist/bundle/{chunk-QWSRPXCJ.js → chunk-MP2UCK3Z.js} +4 -4
  63. package/dist/bundle/{chunk-LJARCTGL.js → chunk-NFU3OBCC.js} +3 -3
  64. package/dist/bundle/{chunk-3HRDEJJW.js → chunk-NVHB2MHX.js} +4 -4
  65. package/dist/bundle/{chunk-VCYFEWPD.js → chunk-NXFEZQDL.js} +25 -25
  66. package/dist/bundle/{chunk-G3FAOS52.js → chunk-P4NOTS3U.js} +2 -2
  67. package/dist/bundle/{chunk-5MYFPQDA.js → chunk-P4OU3OVF.js} +12 -12
  68. package/dist/bundle/{chunk-RCS2SCX5.js → chunk-P7INAZIT.js} +4 -4
  69. package/dist/bundle/{chunk-3Z7WSD2A.js → chunk-PPXNEHYX.js} +7 -7
  70. package/dist/bundle/{chunk-SMHQA5J6.js → chunk-QEM3MOSB.js} +14 -7
  71. package/dist/bundle/{chunk-KADPV4YA.js → chunk-R235IRSJ.js} +1 -1
  72. package/dist/bundle/{chunk-QTJUH3LS.js → chunk-RAAI3JLI.js} +1 -1
  73. package/dist/bundle/{chunk-KJMBV574.js → chunk-SSD2V4HR.js} +356 -304
  74. package/dist/bundle/{chunk-5TC3NCAF.js → chunk-U77RLMOK.js} +1 -1
  75. package/dist/bundle/{chunk-AIXLOMH4.js → chunk-W5EUHV3J.js} +1 -1
  76. package/dist/bundle/{chunk-IAW5A7OR.js → chunk-W5IDHD6C.js} +30 -26
  77. package/dist/bundle/{chunk-DXKVEOSS.js → chunk-XLJV3ZOH.js} +1 -1
  78. package/dist/bundle/{recognize-IFXOJHEA.js → chunk-XVXXWNAA.js} +6 -6
  79. package/dist/bundle/{chunk-IGMRWQP3.js → chunk-Y2AUB4TJ.js} +29 -25
  80. package/dist/bundle/{chunk-QW36EOAM.js → chunk-YOF5BC4G.js} +2 -2
  81. package/dist/bundle/{chunk-PJ7IQVOM.js → chunk-YYMHFXHK.js} +1 -1
  82. package/dist/bundle/{chunk-DDYR6DYL.js → chunk-ZK7Y5K63.js} +1 -1
  83. package/dist/bundle/command-contract-AEA45IX7.js +38 -0
  84. package/dist/bundle/decode-BE3VDYTJ.js +159 -0
  85. package/dist/bundle/drive.js +4 -4
  86. package/dist/bundle/{echarts-LD3AI55P.js → echarts-4OQHS575.js} +2 -2
  87. package/dist/bundle/{embed-FJKIIM43.js → embed-QR76SJDI.js} +3 -3
  88. package/dist/bundle/{embedder-NNQ5ZC25.js → embedder-EMIDKBYV.js} +6 -6
  89. package/dist/bundle/{entry-ZYSNPDSD.js → entry-FE4REJDO.js} +4 -4
  90. package/dist/bundle/{failure-M5HSCCJJ.js → failure-GYOTW6NN.js} +11 -11
  91. package/dist/bundle/{first-run-KA2UPZAU.js → first-run-ALPI62PX.js} +5 -5
  92. package/dist/bundle/first-screen-JLS57PIT.js +36 -0
  93. package/dist/bundle/{google-ZYDFTHLN.js → google-NV75VSCD.js} +4 -4
  94. package/dist/bundle/google-api-6623OUF2.js +82 -0
  95. package/dist/bundle/{identity-R5OKB5O5.js → identity-NZ7SP6OL.js} +2 -2
  96. package/dist/bundle/{instructions-RZMSW3OC.js → instructions-3QZBKKPF.js} +1 -1
  97. package/dist/bundle/{login-JU6NKW5P.js → login-KNBM6XUX.js} +54 -54
  98. package/dist/bundle/mcp-4NPK6BM3.js +95 -0
  99. package/dist/bundle/{mcp-Z362OMZG.js → mcp-XY2FGGUM.js} +68 -68
  100. package/dist/bundle/{node-ZRLYQL7J.js → node-R2BLYUSB.js} +2 -2
  101. package/dist/bundle/node-sqlite-PMRVP442.js +62 -0
  102. package/dist/bundle/{oauth-NAIBKERJ.js → oauth-NM2AKRRT.js} +4 -4
  103. package/dist/bundle/{open-3P5EPXPV.js → open-XZH5ZNDA.js} +1 -1
  104. package/dist/bundle/{process-LL77573L.js → process-IX5YWGDP.js} +1 -1
  105. package/dist/bundle/{program-PA2J6OFM.js → program-MDWQHGBY.js} +166 -96
  106. package/dist/bundle/{prompt-3TX2SWOY.js → prompt-5K6XGWSK.js} +2 -2
  107. package/dist/bundle/recognize-U7GDD6T2.js +22 -0
  108. package/dist/bundle/{remote-663M42Y5.js → remote-ZWXOGNQX.js} +4 -4
  109. package/dist/bundle/{rerank-OT2F2DBV.js → rerank-YRQBCS63.js} +4 -4
  110. package/dist/bundle/{serve-PDNNI6O6.js → serve-6PQ7K5RK.js} +6 -6
  111. package/dist/bundle/server-O7SS6NAY.js +56 -0
  112. package/dist/bundle/server-WT57TF6S.js +69 -0
  113. package/dist/bundle/{services-5MCTECBU.js → services-QBIQX236.js} +22 -22
  114. package/dist/bundle/{sqlite-runtime-BF3KDM7W.js → sqlite-runtime-7Q5UD2VR.js} +2 -2
  115. package/dist/bundle/{state-SZX65E74.js → state-U72TC26L.js} +3 -3
  116. package/dist/bundle/{store-TCWNLA3V.js → store-B4RAJ63G.js} +10 -10
  117. package/dist/bundle/{store-UKPGGAPW.js → store-FYABCSIH.js} +12 -12
  118. package/dist/bundle/store-maintenance-command-DAF5NI3T.js +57 -0
  119. package/dist/bundle/tokens-DISQJKDM.js +103 -0
  120. package/dist/commands/documents.d.ts +5 -1
  121. package/dist/commands/documents.d.ts.map +1 -1
  122. package/dist/commands/documents.js +21 -9
  123. package/dist/commands/documents.js.map +1 -1
  124. package/dist/commands/mcp.d.ts.map +1 -1
  125. package/dist/commands/mcp.js +8 -4
  126. package/dist/commands/mcp.js.map +1 -1
  127. package/dist/commands/remote.d.ts +8 -0
  128. package/dist/commands/remote.d.ts.map +1 -1
  129. package/dist/commands/remote.js +16 -0
  130. package/dist/commands/remote.js.map +1 -1
  131. package/dist/program.d.ts.map +1 -1
  132. package/dist/program.js +4 -1
  133. package/dist/program.js.map +1 -1
  134. package/dist/version.d.ts +1 -1
  135. package/dist/version.js +1 -1
  136. package/package.json +2 -2
  137. package/dist/bundle/command-contract-MXCBV3GJ.js +0 -38
  138. package/dist/bundle/first-screen-VQ3RXDMF.js +0 -36
  139. package/dist/bundle/google-api-2GT5PAW2.js +0 -82
  140. package/dist/bundle/mcp-JOQMFGBC.js +0 -95
  141. package/dist/bundle/node-sqlite-TXPSRROT.js +0 -46
  142. package/dist/bundle/server-BFOEPMR7.js +0 -56
  143. package/dist/bundle/server-K566PJ7H.js +0 -69
  144. package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +0 -57
  145. package/dist/bundle/tokens-DFCFRF7I.js +0 -103
  146. /package/dist/bundle/{chunk-Q2Z3VCM4.js → chunk-YLBNPI7H.js} +0 -0
@@ -2,18 +2,18 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ENTITIES
5
- } from "./chunk-BEXHAGXH.js";
5
+ } from "./chunk-AN7HENGZ.js";
6
6
  import {
7
7
  answerSchema
8
- } from "./chunk-AUS6TKP5.js";
8
+ } from "./chunk-JMRHDZMV.js";
9
9
  import {
10
10
  annotate,
11
11
  describeOptions,
12
12
  metaOf
13
- } from "./chunk-LOTQ2HMT.js";
13
+ } from "./chunk-22LTNYO2.js";
14
14
  import {
15
15
  keyForCommand
16
- } from "./chunk-PJ7IQVOM.js";
16
+ } from "./chunk-YYMHFXHK.js";
17
17
  import {
18
18
  CliError,
19
19
  jsonSchemaOf
@@ -22,7 +22,7 @@ import {
22
22
  __name
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
25
+ // 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/cli/answer-entity.js
26
26
  var schemas = /* @__PURE__ */ new WeakMap();
27
27
  var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
28
28
  if (Object.hasOwn(ENTITIES, name))
@@ -52,7 +52,7 @@ var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
52
52
  return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
53
53
  }, "answerProjectionSchema");
54
54
 
55
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
55
+ // 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/cli/command-contract.js
56
56
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
57
57
  var outputOf = /* @__PURE__ */ __name((command) => {
58
58
  const entity = answerEntitySchema(command);
@@ -28,7 +28,7 @@ import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/documents/blocks.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/block-diff.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/ingestion.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/knowledge.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/documents/markdown-blocks.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/markdown-splice.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
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
841
841
  import { watch } from "node:fs";
842
842
 
843
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/push.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/proposals.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
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
1412
1412
  import { createHash as createHash4 } from "node:crypto";
1413
1413
 
1414
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/documents/scope.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/documents/catalog.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/plan.js
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
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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
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
1632
1632
  var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
1633
1633
  var SAVE_EVERY_MS2 = 2e3;
1634
1634
  var SAVE_EVERY_ITEMS = 25;
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-AIXLOMH4.js";
5
+ } from "./chunk-W5EUHV3J.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // 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/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/providers.js
13
+ // 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/domain/providers.js
14
14
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
15
15
  var PROVIDERS = [
16
16
  { name: "telegram", kind: "messages", aliases: ["tg"] },
@@ -101,7 +101,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
101
101
  var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
102
102
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
103
103
 
104
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/locator.js
104
+ // 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/domain/locator.js
105
105
  var SCHEME = "msg:";
106
106
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
107
107
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
@@ -115,7 +115,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
115
115
  return { provider, account, chat, message };
116
116
  }, "parseLocator");
117
117
 
118
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/references.js
118
+ // 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/domain/references.js
119
119
  var SIMPLE_REFERENCES = [
120
120
  "note",
121
121
  "document",
@@ -187,7 +187,7 @@ var folderPath = /* @__PURE__ */ __name((path) => {
187
187
  }, "folderPath");
188
188
  var canonicalReference = /* @__PURE__ */ __name((text) => formatReference(parseReference(text)), "canonicalReference");
189
189
 
190
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/counters.js
190
+ // 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/domain/counters.js
191
191
  var COUNTER_FIELDS = ["views", "reactions", "comments"];
192
192
  var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
193
193
  var counterObservationTime = /* @__PURE__ */ __name((observation, now) => {
@@ -206,7 +206,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
206
206
  return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
207
207
  }, "counterFreshness");
208
208
 
209
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
209
+ // 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/domain/rankings-options.js
210
210
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
211
211
  var AUTHOR_MEASURES = [
212
212
  "messages",