@wirecat/drive-cli 0.45.0 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-LTHNCWQW.js → all-profiles-O7CNQ7FO.js} +8 -8
  3. package/dist/bundle/{anthropic-NOJEF3V2.js → anthropic-6T67J2CE.js} +5 -5
  4. package/dist/bundle/app-server-BVBZT3UY.js +237 -0
  5. package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-GNXLBF2A.js → bun-sqlite-54W7JUY3.js} +4 -4
  7. package/dist/bundle/{chunk-IGB5CJCA.js → chunk-2DLAJGRN.js} +1 -1
  8. package/dist/bundle/{chunk-NQ6LLDDC.js → chunk-3HRDEJJW.js} +4 -4
  9. package/dist/bundle/{chunk-XPEWOPJR.js → chunk-3Z7WSD2A.js} +10 -8
  10. package/dist/bundle/{chunk-WPGCDWPU.js → chunk-44FV5JAS.js} +21 -21
  11. package/dist/bundle/{chunk-GX4WEMAG.js → chunk-4DW6QGEV.js} +11 -11
  12. package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
  13. package/dist/bundle/{chunk-LNB7BIZL.js → chunk-5MGIL5LW.js} +19 -17
  14. package/dist/bundle/{chunk-MWUITL6N.js → chunk-5TC3NCAF.js} +2 -2
  15. package/dist/bundle/{chunk-4UE7AVHZ.js → chunk-A3FU4RR6.js} +4 -4
  16. package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
  17. package/dist/bundle/{chunk-WZUJKUBK.js → chunk-AOOD3RMK.js} +7 -7
  18. package/dist/bundle/{chunk-Z4O6C7WR.js → chunk-AUS6TKP5.js} +35 -33
  19. package/dist/bundle/{chunk-5ZVLM6YR.js → chunk-B2J6FJNL.js} +1 -1
  20. package/dist/bundle/{chunk-OECPFZLP.js → chunk-BEXHAGXH.js} +96 -95
  21. package/dist/bundle/{chunk-3V6NPZY7.js → chunk-BHE7ZY2N.js} +45 -45
  22. package/dist/bundle/{chunk-GKHM6I64.js → chunk-BJ3JRO34.js} +7 -7
  23. package/dist/bundle/{chunk-2FTZBZOB.js → chunk-BQUPOB5H.js} +8 -8
  24. package/dist/bundle/{chunk-CDI67JSB.js → chunk-CFZWPIVC.js} +20 -20
  25. package/dist/bundle/{chunk-EVWXODYV.js → chunk-CKR3DVUK.js} +11 -11
  26. package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
  27. package/dist/bundle/{chunk-7XWUOCGW.js → chunk-D67JGWSC.js} +2 -2
  28. package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
  29. package/dist/bundle/{chunk-C6SMAEED.js → chunk-DL7D6Y3B.js} +199 -199
  30. package/dist/bundle/{chunk-PDH2QQQV.js → chunk-DORXXBFC.js} +7 -7
  31. package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
  32. package/dist/bundle/{chunk-66N2DGGC.js → chunk-DXQEJWI3.js} +21 -14
  33. package/dist/bundle/{chunk-ZQNXKWUY.js → chunk-FEULDMWM.js} +258 -244
  34. package/dist/bundle/{chunk-TDC6JGDA.js → chunk-G3FAOS52.js} +2 -2
  35. package/dist/bundle/{chunk-HOIUIKWS.js → chunk-GHOWRW7E.js} +4 -3
  36. package/dist/bundle/{chunk-C4XP5T73.js → chunk-GNFHZZ55.js} +5 -5
  37. package/dist/bundle/{chunk-K4N2DKE5.js → chunk-GOR3Z2FR.js} +2 -2
  38. package/dist/bundle/{chunk-WQMVSQPP.js → chunk-GQW4GRYR.js} +6 -6
  39. package/dist/bundle/{chunk-Y5EJSZXV.js → chunk-GWPKIRNQ.js} +5 -5
  40. package/dist/bundle/{chunk-4TIC23D2.js → chunk-GYCUY4CL.js} +1 -1
  41. package/dist/bundle/{chunk-HA3WCVGY.js → chunk-HEPIOCHN.js} +51 -49
  42. package/dist/bundle/{chunk-DC4T3FNP.js → chunk-IAW5A7OR.js} +27 -27
  43. package/dist/bundle/{chunk-4TQSNQVV.js → chunk-IGMRWQP3.js} +25 -25
  44. package/dist/bundle/{chunk-65GGKAQ7.js → chunk-IKNU5A5Y.js} +3 -3
  45. package/dist/bundle/{chunk-ZPMLLONT.js → chunk-JVTVAZ5X.js} +19 -19
  46. package/dist/bundle/{chunk-A6ZKTNTZ.js → chunk-K74PQVQZ.js} +7 -7
  47. package/dist/bundle/{server-2UQDEWTS.js → chunk-K7FRUB33.js} +40 -63
  48. package/dist/bundle/{chunk-ZS635F4O.js → chunk-KADPV4YA.js} +2 -2
  49. package/dist/bundle/{chunk-ZIHLE7LG.js → chunk-KJMBV574.js} +3252 -3019
  50. package/dist/bundle/{chunk-ICKNJIGE.js → chunk-LHIL46I3.js} +2 -2
  51. package/dist/bundle/{chunk-LWT55XC5.js → chunk-LJARCTGL.js} +4 -4
  52. package/dist/bundle/{chunk-64WJYT2F.js → chunk-LOTQ2HMT.js} +9 -9
  53. package/dist/bundle/{chunk-V7GN5BI7.js → chunk-MAXN7COO.js} +1 -1
  54. package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
  55. package/dist/bundle/{chunk-MJR2OTO4.js → chunk-MFSIOSUM.js} +6 -6
  56. package/dist/bundle/{chunk-YJX4X564.js → chunk-NB2N6L3R.js} +6 -6
  57. package/dist/bundle/{chunk-GTYY6BIE.js → chunk-NDNTLUPS.js} +2 -2
  58. package/dist/bundle/{chunk-TOYPN2XX.js → chunk-NLEB26GA.js} +2 -2
  59. package/dist/bundle/{chunk-7PVNJAQ2.js → chunk-NP3XLLN3.js} +3 -3
  60. package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
  61. package/dist/bundle/{chunk-NZIHPYY5.js → chunk-OWXTPXIQ.js} +11 -11
  62. package/dist/bundle/{chunk-BPBIBVFH.js → chunk-PDBBBUY7.js} +10 -10
  63. package/dist/bundle/{chunk-ZU732VCC.js → chunk-PH74B2VZ.js} +3 -3
  64. package/dist/bundle/{chunk-PJDO7AFZ.js → chunk-PJ7IQVOM.js} +2 -2
  65. package/dist/bundle/{chunk-CFT7UHF6.js → chunk-QTJUH3LS.js} +3 -3
  66. package/dist/bundle/{chunk-YE3J6DLY.js → chunk-QW36EOAM.js} +2 -2
  67. package/dist/bundle/{chunk-HLONHTSG.js → chunk-QWSRPXCJ.js} +4 -4
  68. package/dist/bundle/{chunk-LVDHWNJF.js → chunk-R2A3K7ZF.js} +5 -5
  69. package/dist/bundle/{chunk-SGOPYPVW.js → chunk-R2QRP7EJ.js} +9 -9
  70. package/dist/bundle/{chunk-35GRI4DI.js → chunk-RCS2SCX5.js} +5 -5
  71. package/dist/bundle/{chunk-CEO5HPRL.js → chunk-RJ633GFA.js} +2 -2
  72. package/dist/bundle/{chunk-N47CYWEM.js → chunk-SMHQA5J6.js} +13 -8
  73. package/dist/bundle/{chunk-YFLKH3NZ.js → chunk-SWMMR3FR.js} +2 -2
  74. package/dist/bundle/{chunk-P5KGFT7U.js → chunk-TRMIV3OA.js} +2 -2
  75. package/dist/bundle/{chunk-7NCG2SHR.js → chunk-VAGF723Z.js} +1 -1
  76. package/dist/bundle/{chunk-PWKXHDBQ.js → chunk-VCYFEWPD.js} +26 -26
  77. package/dist/bundle/{chunk-NKZ6V4JW.js → chunk-VHQNVG3J.js} +5 -5
  78. package/dist/bundle/{chunk-6KFA6HOM.js → chunk-VHT2WI4I.js} +19 -19
  79. package/dist/bundle/{chunk-QLZGLPJL.js → chunk-VYBOYBLX.js} +6 -6
  80. package/dist/bundle/{chunk-YJZBJ2TM.js → chunk-WUFCYDKB.js} +2 -2
  81. package/dist/bundle/{chunk-2YU3CXFD.js → chunk-XAZQTJXR.js} +40 -29
  82. package/dist/bundle/{chunk-I5EJHKNC.js → chunk-XEBFFKXO.js} +3 -3
  83. package/dist/bundle/{chunk-AH3SNVCV.js → chunk-XF5MFUEB.js} +15 -15
  84. package/dist/bundle/{chunk-VO4KOLQZ.js → chunk-ZBM4GEV2.js} +5 -4
  85. package/dist/bundle/command-contract-MXCBV3GJ.js +38 -0
  86. package/dist/bundle/drive.js +7 -7
  87. package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
  88. package/dist/bundle/{embed-5NAGJUMD.js → embed-FJKIIM43.js} +5 -5
  89. package/dist/bundle/{embedder-EWXLIGBY.js → embedder-NNQ5ZC25.js} +8 -8
  90. package/dist/bundle/{entry-YCPJ6H6U.js → entry-ZYSNPDSD.js} +6 -6
  91. package/dist/bundle/failure-MJJXFR63.js +37 -0
  92. package/dist/bundle/{first-run-LNAZDBB4.js → first-run-KA2UPZAU.js} +9 -9
  93. package/dist/bundle/first-screen-VQ3RXDMF.js +36 -0
  94. package/dist/bundle/{google-5FFKRHHC.js → google-ZYDFTHLN.js} +9 -9
  95. package/dist/bundle/google-api-2GT5PAW2.js +82 -0
  96. package/dist/bundle/{identity-53ZMPL2O.js → identity-JQFQXQIR.js} +2 -2
  97. package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
  98. package/dist/bundle/{login-VXXZZR6G.js → login-JU6NKW5P.js} +64 -64
  99. package/dist/bundle/{mcp-F4XZO76F.js → mcp-2PZDI7WE.js} +77 -83
  100. package/dist/bundle/mcp-JOQMFGBC.js +95 -0
  101. package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
  102. package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
  103. package/dist/bundle/{node-sqlite-QJQ5S7KS.js → node-sqlite-TXPSRROT.js} +4 -4
  104. package/dist/bundle/{oauth-TZFDPAFE.js → oauth-NAIBKERJ.js} +6 -6
  105. package/dist/bundle/{open-IYM25QTL.js → open-3P5EPXPV.js} +3 -3
  106. package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
  107. package/dist/bundle/{program-YX7DZMPR.js → program-CZ55L6EW.js} +129 -151
  108. package/dist/bundle/{prompt-TGWTVIEK.js → prompt-3TX2SWOY.js} +4 -4
  109. package/dist/bundle/{reasons-Q5LOQESQ.js → reasons-GF2TYGX6.js} +3 -3
  110. package/dist/bundle/{recognize-AGPMWKIY.js → recognize-IFXOJHEA.js} +5 -5
  111. package/dist/bundle/{remote-QV7QSLAK.js → remote-663M42Y5.js} +6 -6
  112. package/dist/bundle/{rerank-HZKJJCS4.js → rerank-OT2F2DBV.js} +6 -6
  113. package/dist/bundle/{serve-NRJQOVT4.js → serve-PDNNI6O6.js} +8 -8
  114. package/dist/bundle/server-BFOEPMR7.js +56 -0
  115. package/dist/bundle/server-K566PJ7H.js +69 -0
  116. package/dist/bundle/{services-NZQWVMOE.js → services-5MCTECBU.js} +28 -28
  117. package/dist/bundle/{sqlite-runtime-6MXHTYYU.js → sqlite-runtime-BF3KDM7W.js} +4 -4
  118. package/dist/bundle/{state-IF2FLTSY.js → state-SZX65E74.js} +5 -5
  119. package/dist/bundle/{store-HVIBXOXS.js → store-TCWNLA3V.js} +14 -14
  120. package/dist/bundle/{store-HBD54IRL.js → store-UKPGGAPW.js} +16 -16
  121. package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +57 -0
  122. package/dist/bundle/tokens-DFCFRF7I.js +103 -0
  123. package/dist/commands/mcp.d.ts.map +1 -1
  124. package/dist/commands/mcp.js +5 -9
  125. package/dist/commands/mcp.js.map +1 -1
  126. package/dist/contract-overrides.d.ts.map +1 -1
  127. package/dist/contract-overrides.js +13 -32
  128. package/dist/contract-overrides.js.map +1 -1
  129. package/dist/mcp.d.ts +1 -8
  130. package/dist/mcp.d.ts.map +1 -1
  131. package/dist/mcp.js +1 -8
  132. package/dist/mcp.js.map +1 -1
  133. package/dist/state.d.ts +8 -0
  134. package/dist/state.d.ts.map +1 -1
  135. package/dist/state.js +7 -0
  136. package/dist/state.js.map +1 -1
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +2 -2
  140. package/dist/bundle/command-contract-HX35D7KV.js +0 -38
  141. package/dist/bundle/failure-XBWHHBEW.js +0 -37
  142. package/dist/bundle/first-screen-P5NNFJD7.js +0 -36
  143. package/dist/bundle/google-api-TJCFOOAP.js +0 -82
  144. package/dist/bundle/mcp-2CJCJXSW.js +0 -95
  145. package/dist/bundle/server-R4JUHFSW.js +0 -56
  146. package/dist/bundle/store-maintenance-command-U3F4RGJB.js +0 -57
  147. package/dist/bundle/tokens-5D5YUA2Q.js +0 -103
  148. /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
  149. /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.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-SGOPYPVW.js";
5
+ } from "./chunk-R2QRP7EJ.js";
6
6
  import {
7
7
  writeSecurely
8
- } from "./chunk-6KFA6HOM.js";
8
+ } from "./chunk-VHT2WI4I.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-GKHM6I64.js";
26
+ } from "./chunk-BJ3JRO34.js";
27
27
  import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/documents/blocks.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/block-diff.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/ingestion.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/knowledge.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/documents/markdown-blocks.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/markdown-splice.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
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
841
841
  import { watch } from "node:fs";
842
842
 
843
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/push.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/proposals.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
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
1412
1412
  import { createHash as createHash4 } from "node:crypto";
1413
1413
 
1414
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/documents/scope.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/documents/catalog.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/plan.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
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
1632
1632
  var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
1633
1633
  var SAVE_EVERY_MS2 = 2e3;
1634
1634
  var SAVE_EVERY_ITEMS = 25;
@@ -2,51 +2,51 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  botInstructions
5
- } from "./chunk-IP4OK7RQ.js";
5
+ } from "./chunk-4NGLRHWO.js";
6
6
  import {
7
7
  answered,
8
8
  normal,
9
9
  registerCommands,
10
10
  runCommandForAgent,
11
11
  toolsFromCommands
12
- } from "./chunk-2YU3CXFD.js";
12
+ } from "./chunk-XAZQTJXR.js";
13
13
  import {
14
14
  agentJson,
15
15
  skillResource
16
- } from "./chunk-AH3SNVCV.js";
16
+ } from "./chunk-XF5MFUEB.js";
17
17
  import {
18
18
  callerOf,
19
19
  serveStdio
20
- } from "./chunk-TDC6JGDA.js";
20
+ } from "./chunk-G3FAOS52.js";
21
21
  import {
22
22
  McpServer
23
23
  } from "./chunk-5FONRUG6.js";
24
24
  import {
25
25
  wholeList
26
- } from "./chunk-ZPMLLONT.js";
26
+ } from "./chunk-JVTVAZ5X.js";
27
27
  import {
28
28
  changesMessenger,
29
29
  itemOf
30
- } from "./chunk-Z4O6C7WR.js";
30
+ } from "./chunk-AUS6TKP5.js";
31
31
  import {
32
32
  flatten
33
- } from "./chunk-64WJYT2F.js";
33
+ } from "./chunk-LOTQ2HMT.js";
34
34
  import {
35
35
  MESSENGER_CHANGE_REFUSAL,
36
36
  readOnlyLockOf,
37
37
  readOnlyRefusal
38
- } from "./chunk-CEO5HPRL.js";
38
+ } from "./chunk-RJ633GFA.js";
39
39
  import {
40
40
  mcpErrorResult
41
- } from "./chunk-6KFA6HOM.js";
41
+ } from "./chunk-VHT2WI4I.js";
42
42
  import {
43
43
  object
44
- } from "./chunk-GKHM6I64.js";
44
+ } from "./chunk-BJ3JRO34.js";
45
45
  import {
46
46
  __name
47
47
  } from "./chunk-ZVVMGPBJ.js";
48
48
 
49
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
49
+ // 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/mcp/bot/server.js
50
50
  import { randomUUID } from "node:crypto";
51
51
  var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
52
52
  var createBotServer = /* @__PURE__ */ __name((options) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // 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/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -4,7 +4,7 @@ import {
4
4
  organization,
5
5
  project,
6
6
  reminder
7
- } from "./chunk-VO4KOLQZ.js";
7
+ } from "./chunk-ZBM4GEV2.js";
8
8
  import {
9
9
  MIGRATIONS,
10
10
  SnapshotBudget,
@@ -28,28 +28,28 @@ import {
28
28
  tagMemberIds,
29
29
  thingOf,
30
30
  write
31
- } from "./chunk-ZQNXKWUY.js";
31
+ } from "./chunk-FEULDMWM.js";
32
32
  import {
33
33
  filesAccountSql,
34
34
  folderProviderOf,
35
35
  folderProviderSql,
36
36
  isDocumentAccountProvider
37
- } from "./chunk-WZUJKUBK.js";
37
+ } from "./chunk-AOOD3RMK.js";
38
38
  import {
39
39
  queryFieldsOf
40
- } from "./chunk-SGOPYPVW.js";
40
+ } from "./chunk-R2QRP7EJ.js";
41
41
  import {
42
42
  CliError
43
- } from "./chunk-GKHM6I64.js";
43
+ } from "./chunk-BJ3JRO34.js";
44
44
  import {
45
45
  __name
46
46
  } from "./chunk-ZVVMGPBJ.js";
47
47
 
48
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
48
+ // 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/store/document-transfer/index.js
49
49
  import { realpathSync, statSync } from "node:fs";
50
50
  import { resolve } from "node:path";
51
51
 
52
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
52
+ // 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/store/sqlite/document-transfer/people.js
53
53
  var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
54
54
  const creatable = /* @__PURE__ */ new Set();
55
55
  let people = 0, identities = 0;
@@ -112,11 +112,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
112
112
  }
113
113
  }, "copyPeople");
114
114
 
115
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
115
+ // 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/store/document-transfer/digest.js
116
116
  import { createHash } from "node:crypto";
117
117
  var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
118
118
 
119
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
119
+ // 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/store/sqlite/document-transfer/collection.js
120
120
  var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
121
121
  const colon = collection.indexOf(":");
122
122
  const provider = collection.slice(0, colon);
@@ -160,7 +160,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
160
160
  };
161
161
  }, "currentCollection");
162
162
 
163
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
163
+ // 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/store/sqlite/document-transfer/plan.js
164
164
  var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
165
165
  const mappings = /* @__PURE__ */ new Map();
166
166
  const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
@@ -327,7 +327,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
327
327
  };
328
328
  }, "planTransfer");
329
329
 
330
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
330
+ // 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/store/sqlite/document-transfer/snapshot.js
331
331
  var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
332
332
  var MAX_ENTITIES = 1e3;
333
333
  var MAX_AUXILIARY = 1e4;
@@ -489,7 +489,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
489
489
  };
490
490
  }), "transferSnapshot");
491
491
 
492
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
492
+ // 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/store/sqlite/document-transfer/apply.js
493
493
  var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
494
494
  if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
495
495
  return provider ?? null;
@@ -661,7 +661,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
661
661
  database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
662
662
  }, "remapEntity");
663
663
 
664
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
664
+ // 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/store/document-transfer/index.js
665
665
  var locations = /* @__PURE__ */ __name((options) => {
666
666
  for (const value of [options.source, options.destination, options.collection])
667
667
  if (typeof value !== "string" || !value.trim())
@@ -757,7 +757,7 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
757
757
  }
758
758
  }, "applyDocumentTransfer");
759
759
 
760
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
760
+ // 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/store/knowledge-query.js
761
761
  var ORGANIZATIONS_QUERY = {
762
762
  entity: "organization",
763
763
  backend: "sql",
@@ -770,10 +770,12 @@ var PROJECTS_QUERY = {
770
770
  entity: "project",
771
771
  backend: "sql",
772
772
  fields: queryFieldsOf(project, {
773
- native: ["id", "key", "type", "organization_id", "scope", "created_at"],
773
+ native: ["id", "key", "name", "kind", "type", "organization_id", "scope", "created_at"],
774
774
  examples: {
775
775
  id: "id:1",
776
776
  key: "key:SMP",
777
+ name: "name:*tart*",
778
+ kind: "kind:inbox",
777
779
  type: "type:work",
778
780
  organization_id: "organization_id:1",
779
781
  scope: "scope:work",
@@ -790,7 +792,7 @@ var REMINDERS_QUERY = {
790
792
  })
791
793
  };
792
794
 
793
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
795
+ // 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/store/project-transfer/preview.js
794
796
  var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
795
797
  if (!options || typeof options !== "object" || Array.isArray(options))
796
798
  throw new CliError("validation_error", "project preview options are required");
@@ -812,7 +814,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
812
814
  }
813
815
  }, "previewProjectAnnotationSnapshot");
814
816
 
815
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
817
+ // 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/store/project-transfer/snapshot.js
816
818
  var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
817
819
  if (!options || typeof options !== "object" || Array.isArray(options))
818
820
  throw new CliError("validation_error", "snapshot options are required");
@@ -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-GKHM6I64.js";
5
+ } from "./chunk-BJ3JRO34.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/attachments/limits.js
10
+ // 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/attachments/limits.js
11
11
  var MAX_FILE_BYTES = 50 * 1024 * 1024;
12
12
  var MAX_TEXT_CHARS = 2e6;
13
13
  var ATTACHMENT_LIMIT_ENV = [
@@ -4,23 +4,23 @@ import {
4
4
  executableEnvironment,
5
5
  executableOnPath,
6
6
  require_cross_spawn
7
- } from "./chunk-LW2G4U6W.js";
7
+ } from "./chunk-MFS52LTZ.js";
8
8
  import {
9
9
  loadConfigFile,
10
10
  saveConfigFile
11
- } from "./chunk-6KFA6HOM.js";
11
+ } from "./chunk-VHT2WI4I.js";
12
12
  import {
13
13
  number,
14
14
  object,
15
15
  optional,
16
16
  string
17
- } from "./chunk-GKHM6I64.js";
17
+ } from "./chunk-BJ3JRO34.js";
18
18
  import {
19
19
  __name,
20
20
  __toESM
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
23
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
24
24
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
25
25
  import { existsSync } from "node:fs";
26
26
  var installerOf = /* @__PURE__ */ __name((scriptPath) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // 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/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine
5
- } from "./chunk-6KFA6HOM.js";
5
+ } from "./chunk-VHT2WI4I.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-GKHM6I64.js";
8
+ } from "./chunk-BJ3JRO34.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/providers.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/locator.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/references.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/counters.js
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
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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
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
210
210
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
211
211
  var AUTHOR_MEASURES = [
212
212
  "messages",