@wirecat/zoom-cli 0.57.0 → 0.59.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 (137) hide show
  1. package/dist/bin/zm.js +2 -2
  2. package/dist/bundle/{all-profiles-EKHWTGOY.js → all-profiles-RS5IWIGR.js} +7 -7
  3. package/dist/bundle/answer-policy-K56DZ3AS.js +96 -0
  4. package/dist/bundle/{anthropic-VL54IUGF.js → anthropic-5QHQR4WF.js} +4 -4
  5. package/dist/bundle/app-server-7LANSZGE.js +232 -0
  6. package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-2SDA3YOT.js → bun-sqlite-PEJM6CS4.js} +3 -3
  8. package/dist/bundle/{chunk-SQJ7EH2D.js → chunk-24DLFGES.js} +2 -2
  9. package/dist/bundle/{chunk-SB6WOSHG.js → chunk-27P22POE.js} +24 -24
  10. package/dist/bundle/{chunk-BW52AJ4R.js → chunk-3SCTDFNO.js} +38 -27
  11. package/dist/bundle/{chunk-ICSKEDPI.js → chunk-3SERIWJD.js} +220 -220
  12. package/dist/bundle/{chunk-S4S7E54J.js → chunk-4AURKUDZ.js} +4 -4
  13. package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
  14. package/dist/bundle/{chunk-2IKY7VBH.js → chunk-4ZIROI4H.js} +1 -1
  15. package/dist/bundle/{server-WLJCU7KK.js → chunk-5DVW77VC.js} +37 -60
  16. package/dist/bundle/{chunk-NN5B24KP.js → chunk-5RM5TCUY.js} +27 -27
  17. package/dist/bundle/{chunk-7A6PZUDR.js → chunk-62NCJILK.js} +22 -12
  18. package/dist/bundle/{chunk-NW3X3G5X.js → chunk-6FL25KC5.js} +4 -4
  19. package/dist/bundle/{chunk-TLQUKHEM.js → chunk-7D2CD3E3.js} +5 -5
  20. package/dist/bundle/{chunk-6MX5T6AQ.js → chunk-7GVNQOV6.js} +1 -1
  21. package/dist/bundle/{chunk-VPPYYWOH.js → chunk-7H3ZRDLW.js} +2 -2
  22. package/dist/bundle/{chunk-EOQFWJJD.js → chunk-7Z4ANTAK.js} +20 -20
  23. package/dist/bundle/{chunk-NO7CJEYV.js → chunk-A6323R5P.js} +2 -2
  24. package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
  25. package/dist/bundle/{chunk-R3HPOCZD.js → chunk-AQDWGJZT.js} +2 -2
  26. package/dist/bundle/{chunk-CB5UTASG.js → chunk-B32SF7J3.js} +2 -2
  27. package/dist/bundle/{chunk-GKMGS7G5.js → chunk-BAQLQIMI.js} +26 -26
  28. package/dist/bundle/{chunk-I4VQDXFR.js → chunk-BXZ6WSVF.js} +4 -4
  29. package/dist/bundle/{chunk-6M6FJV5D.js → chunk-CTGI4ES2.js} +6 -6
  30. package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
  31. package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
  32. package/dist/bundle/{chunk-OIHDCGV4.js → chunk-DP5DX45H.js} +3 -3
  33. package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
  34. package/dist/bundle/{chunk-YB4DMKYX.js → chunk-DXZTLB24.js} +5 -4
  35. package/dist/bundle/{chunk-HCNMFFG3.js → chunk-G27MRA24.js} +2 -2
  36. package/dist/bundle/{chunk-2WOGZDZG.js → chunk-IYAGQXED.js} +10 -8
  37. package/dist/bundle/{chunk-LQ3T2ZIX.js → chunk-K76WFW4I.js} +4 -4
  38. package/dist/bundle/{chunk-7GUG6UZS.js → chunk-KVHRHBLY.js} +5 -5
  39. package/dist/bundle/{chunk-SE75DPBY.js → chunk-L2UIJDWB.js} +2 -2
  40. package/dist/bundle/{chunk-RMV4C2YL.js → chunk-L3VS3H34.js} +6 -6
  41. package/dist/bundle/{chunk-HG5KRV55.js → chunk-MBT7GP7K.js} +9 -9
  42. package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
  43. package/dist/bundle/{chunk-4YLS4YLS.js → chunk-MMT46EN4.js} +2 -2
  44. package/dist/bundle/{chunk-MAEFLDHG.js → chunk-MNUTWGSA.js} +39 -37
  45. package/dist/bundle/{chunk-HKYLSIZ2.js → chunk-N7GAQ27N.js} +3 -3
  46. package/dist/bundle/{chunk-GARCOIB6.js → chunk-NDXAZB5Z.js} +6 -6
  47. package/dist/bundle/{chunk-CLMXBW53.js → chunk-NOKFJJPA.js} +6 -6
  48. package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
  49. package/dist/bundle/{chunk-K72SEMYI.js → chunk-OBZWUNO4.js} +9 -9
  50. package/dist/bundle/{chunk-6P3YHT54.js → chunk-OZS7QXCQ.js} +4 -4
  51. package/dist/bundle/{chunk-WQ24UC44.js → chunk-PACC5N6T.js} +4 -3
  52. package/dist/bundle/{chunk-TKCHUT2H.js → chunk-PF25S7L4.js} +2 -2
  53. package/dist/bundle/{chunk-O66V2WHK.js → chunk-PKTFZAXG.js} +2 -2
  54. package/dist/bundle/{chunk-WJHK5D7Z.js → chunk-PNBEREOU.js} +258 -244
  55. package/dist/bundle/{chunk-LXB6ONWC.js → chunk-PP3JGQQE.js} +51 -51
  56. package/dist/bundle/{chunk-MZH4GDR4.js → chunk-QCFHL4ES.js} +2 -2
  57. package/dist/bundle/{chunk-7JZJMHQY.js → chunk-QFGBMS67.js} +12 -7
  58. package/dist/bundle/{chunk-BW2WPOXP.js → chunk-RXDIG23Z.js} +6 -6
  59. package/dist/bundle/{chunk-OVSWVPXL.js → chunk-SIA7HJE2.js} +49 -47
  60. package/dist/bundle/{chunk-TZ2MKETI.js → chunk-SL3SXQZ5.js} +6 -6
  61. package/dist/bundle/{chunk-RRRBMQ2E.js → chunk-T6AAM7UT.js} +19 -17
  62. package/dist/bundle/{chunk-NTDWAAGL.js → chunk-U6QW67SU.js} +797 -559
  63. package/dist/bundle/{chunk-Z4TZ6TAF.js → chunk-UKR7KH3H.js} +2 -2
  64. package/dist/bundle/{chunk-LSVI3A5X.js → chunk-UOFOMU3T.js} +9 -9
  65. package/dist/bundle/{chunk-G4R4ZIGD.js → chunk-URO44C5T.js} +95 -94
  66. package/dist/bundle/{chunk-5F7IOESV.js → chunk-UXM7I35J.js} +4 -4
  67. package/dist/bundle/{chunk-4R7HYNZS.js → chunk-UYJUTZTT.js} +3 -3
  68. package/dist/bundle/{chunk-QLIB3PEC.js → chunk-VOAVOK4I.js} +18 -18
  69. package/dist/bundle/{chunk-LPTIQLDW.js → chunk-VSUY7PDW.js} +2 -2
  70. package/dist/bundle/{chunk-A4ETXPMZ.js → chunk-VYUSEJE4.js} +2 -2
  71. package/dist/bundle/{chunk-OCGPZHXW.js → chunk-XFCSPOLZ.js} +2 -2
  72. package/dist/bundle/{chunk-LHRCJYFC.js → chunk-XPNFF6SE.js} +1 -1
  73. package/dist/bundle/{chunk-4VCA7QU3.js → chunk-XT7XVPEM.js} +13 -13
  74. package/dist/bundle/{chunk-QTR6D5HT.js → chunk-YIFIY7ZE.js} +2 -2
  75. package/dist/bundle/{chunk-AE4BOXH7.js → chunk-YIMI6O7R.js} +25 -25
  76. package/dist/bundle/{chunk-UI5UTMSZ.js → chunk-YJRMMZI5.js} +10 -10
  77. package/dist/bundle/{chunk-QUJPQMHJ.js → chunk-YSHSCBPM.js} +8 -8
  78. package/dist/bundle/{chunk-BAYNCCNM.js → chunk-ZC5UXEIH.js} +11 -11
  79. package/dist/bundle/{chunk-G4VZDINN.js → chunk-ZHXIXDH5.js} +4 -4
  80. package/dist/bundle/{chunk-5QESMCQK.js → chunk-ZTOAAYFV.js} +3 -3
  81. package/dist/bundle/{cli-72EQATJF.js → cli-IQTASP44.js} +59 -53
  82. package/dist/bundle/command-contract-WHZPF7NA.js +38 -0
  83. package/dist/bundle/config-N7ENOITZ.js +79 -0
  84. package/dist/bundle/{dist-IBNHCQXT.js → dist-WT73DF46.js} +14 -14
  85. package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
  86. package/dist/bundle/{embed-7QYA2ZZE.js → embed-XEMH4LNX.js} +4 -4
  87. package/dist/bundle/{embedder-YNN6PCHG.js → embedder-ZCYKSKAE.js} +7 -7
  88. package/dist/bundle/{first-run-EVSRQKZJ.js → first-run-LGYDLIUM.js} +8 -8
  89. package/dist/bundle/first-screen-LYQKPNF4.js +36 -0
  90. package/dist/bundle/{folders-JEPOMYM4.js → folders-5ZBUQHAM.js} +2 -2
  91. package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
  92. package/dist/bundle/{main-NYGJXPH7.js → main-C2V7TVLV.js} +16 -16
  93. package/dist/bundle/{mcp-VGSZDCKK.js → mcp-44GCZJZF.js} +64 -64
  94. package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
  95. package/dist/bundle/mcp-VISEXTVC.js +92 -0
  96. package/dist/bundle/{meetings-IBPI4MM4.js → meetings-XPBHVZAU.js} +4 -4
  97. package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
  98. package/dist/bundle/{node-sqlite-ZNGOBA5Q.js → node-sqlite-BBEDYBWO.js} +3 -3
  99. package/dist/bundle/{oauth-Q6LKF7DB.js → oauth-UHVRGKZU.js} +5 -5
  100. package/dist/bundle/{open-LJ332Y5O.js → open-J4FCAUAJ.js} +2 -2
  101. package/dist/bundle/{output-file-RYQZ3RTE.js → output-file-SXV2ANW7.js} +3 -3
  102. package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
  103. package/dist/bundle/{program-IBRQBQ6W.js → program-GPY5SU7M.js} +80 -80
  104. package/dist/bundle/{prompt-RT7GUUXH.js → prompt-LUUMQTMY.js} +3 -3
  105. package/dist/bundle/{recognize-QXGE7YJH.js → recognize-EMHQX4XF.js} +4 -4
  106. package/dist/bundle/{remote-FD4MZQV3.js → remote-ZXS6D7VB.js} +5 -5
  107. package/dist/bundle/{rerank-V6AVV755.js → rerank-WP7RKZNB.js} +5 -5
  108. package/dist/bundle/{run-log-RE2EI3UU.js → run-log-GS2L66G6.js} +53 -53
  109. package/dist/bundle/{serve-HIJTFAW7.js → serve-L6KLLXK2.js} +7 -7
  110. package/dist/bundle/server-NOFYENP5.js +53 -0
  111. package/dist/bundle/server-P5TXAPBY.js +66 -0
  112. package/dist/bundle/{services-KC5KQFBS.js → services-SPOEWVK3.js} +26 -26
  113. package/dist/bundle/{speech-5JOXLYDA.js → speech-6OBAKMND.js} +4 -4
  114. package/dist/bundle/{state-PPGRB3T6.js → state-HN5EJKXQ.js} +4 -4
  115. package/dist/bundle/{store-WB5BICTG.js → store-LEU3M6IN.js} +13 -13
  116. package/dist/bundle/{store-LODVDPK3.js → store-ZP2URKET.js} +15 -15
  117. package/dist/bundle/store-connection-5MOUQ2MU.js +76 -0
  118. package/dist/bundle/store-maintenance-command-PSCHEHHY.js +54 -0
  119. package/dist/bundle/{streaming-UGFFNOXL.js → streaming-AK6Q2ZGQ.js} +4 -4
  120. package/dist/bundle/{tokens-AF5CPY2F.js → tokens-CCM3D4ZT.js} +4 -4
  121. package/dist/bundle/zm.js +1 -1
  122. package/dist/contract-overrides.d.ts.map +1 -1
  123. package/dist/contract-overrides.js +12 -2
  124. package/dist/contract-overrides.js.map +1 -1
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/package.json +2 -2
  128. package/dist/bundle/answer-policy-KH2IFXPN.js +0 -96
  129. package/dist/bundle/command-contract-4MHSZUN3.js +0 -38
  130. package/dist/bundle/config-GFIJK6G2.js +0 -79
  131. package/dist/bundle/first-screen-RG4GUKW7.js +0 -36
  132. package/dist/bundle/mcp-XKP2PXLS.js +0 -92
  133. package/dist/bundle/server-3QOXOYYL.js +0 -53
  134. package/dist/bundle/store-connection-EG6Z5ITP.js +0 -76
  135. package/dist/bundle/store-maintenance-command-Q5WMFUZ2.js +0 -54
  136. /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
  137. /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.js} +0 -0
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-GKMGS7G5.js";
6
+ } from "./chunk-BAQLQIMI.js";
7
7
  import {
8
8
  chatEventAnswer,
9
9
  memberAnswer,
@@ -12,14 +12,14 @@ import {
12
12
  serveRelay,
13
13
  typedQuery,
14
14
  withQuery
15
- } from "./chunk-QLIB3PEC.js";
15
+ } from "./chunk-VOAVOK4I.js";
16
16
  import {
17
17
  holdLock,
18
18
  lockPath,
19
19
  releaseLock,
20
20
  servingProfiles,
21
21
  takeLock
22
- } from "./chunk-4R7HYNZS.js";
22
+ } from "./chunk-UYJUTZTT.js";
23
23
  import {
24
24
  RULES_VERSION,
25
25
  applyTaskRulesOnArrival,
@@ -28,7 +28,7 @@ import {
28
28
  openRequestTask,
29
29
  servicesFor,
30
30
  syncsOneChat
31
- } from "./chunk-ICSKEDPI.js";
31
+ } from "./chunk-3SERIWJD.js";
32
32
  import {
33
33
  Command,
34
34
  LOCAL_READ,
@@ -52,38 +52,38 @@ import {
52
52
  snakeKeys,
53
53
  storeTable,
54
54
  withoutProviderRefs
55
- } from "./chunk-MAEFLDHG.js";
55
+ } from "./chunk-MNUTWGSA.js";
56
56
  import {
57
57
  envName
58
- } from "./chunk-OCGPZHXW.js";
58
+ } from "./chunk-XFCSPOLZ.js";
59
59
  import {
60
60
  holdersOf
61
- } from "./chunk-PIN5RZ3D.js";
61
+ } from "./chunk-AIXLOMH4.js";
62
62
  import {
63
63
  codeOf,
64
64
  currentRun
65
- } from "./chunk-EOQFWJJD.js";
65
+ } from "./chunk-7Z4ANTAK.js";
66
66
  import {
67
67
  failureKey
68
- } from "./chunk-NO7CJEYV.js";
68
+ } from "./chunk-A6323R5P.js";
69
69
  import {
70
70
  renderMessages
71
- } from "./chunk-LPTIQLDW.js";
71
+ } from "./chunk-VSUY7PDW.js";
72
72
  import {
73
73
  levelFor
74
- } from "./chunk-TKCHUT2H.js";
74
+ } from "./chunk-PF25S7L4.js";
75
75
  import {
76
76
  readSecret
77
- } from "./chunk-HKYLSIZ2.js";
77
+ } from "./chunk-N7GAQ27N.js";
78
78
  import {
79
79
  checkedOptions,
80
80
  range
81
- } from "./chunk-SE75DPBY.js";
81
+ } from "./chunk-L2UIJDWB.js";
82
82
  import {
83
83
  messagesFor,
84
84
  systemFor,
85
85
  validateImages
86
- } from "./chunk-MZH4GDR4.js";
86
+ } from "./chunk-QCFHL4ES.js";
87
87
  import {
88
88
  MIGRATIONS,
89
89
  drainNoteIndex,
@@ -110,20 +110,20 @@ import {
110
110
  storeClients,
111
111
  storeContents,
112
112
  vectorIndexCounts
113
- } from "./chunk-WJHK5D7Z.js";
113
+ } from "./chunk-PNBEREOU.js";
114
114
  import {
115
115
  formatLocator,
116
116
  parseLocator
117
- } from "./chunk-GARCOIB6.js";
117
+ } from "./chunk-NDXAZB5Z.js";
118
118
  import {
119
119
  storePath
120
- } from "./chunk-CB5UTASG.js";
120
+ } from "./chunk-B32SF7J3.js";
121
121
  import {
122
122
  openCache
123
- } from "./chunk-TZ2MKETI.js";
123
+ } from "./chunk-SL3SXQZ5.js";
124
124
  import {
125
125
  queryFieldsOf
126
- } from "./chunk-LSVI3A5X.js";
126
+ } from "./chunk-UOFOMU3T.js";
127
127
  import {
128
128
  CliError,
129
129
  Credentials,
@@ -152,7 +152,7 @@ import {
152
152
  trim,
153
153
  union,
154
154
  writeSecurely
155
- } from "./chunk-AE4BOXH7.js";
155
+ } from "./chunk-YIMI6O7R.js";
156
156
  import {
157
157
  __commonJS,
158
158
  __name,
@@ -5492,11 +5492,11 @@ var require_liquid_node = __commonJS({
5492
5492
  }
5493
5493
  });
5494
5494
 
5495
- // 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/cli/messenger/store-maintenance-command.js
5495
+ // 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/messenger/store-maintenance-command.js
5496
5496
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5497
5497
  import { dirname, resolve } from "node:path";
5498
5498
 
5499
- // 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/sealed.js
5499
+ // 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/sealed.js
5500
5500
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5501
5501
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5502
5502
  import { Transform } from "node:stream";
@@ -5603,7 +5603,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5603
5603
  renameSync(pending, to);
5604
5604
  }, "unsealFile");
5605
5605
 
5606
- // 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/compatibility.js
5606
+ // 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/compatibility.js
5607
5607
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5608
5608
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5609
5609
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5627,7 +5627,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5627
5627
  };
5628
5628
  }, "compatibilityOf");
5629
5629
 
5630
- // 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/repair.js
5630
+ // 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/repair.js
5631
5631
  import { createHash as createHash2 } from "node:crypto";
5632
5632
  var COPY_MARK = "__repair_";
5633
5633
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5881,7 +5881,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5881
5881
  return found;
5882
5882
  }, "deleteCopy");
5883
5883
 
5884
- // 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/cli/store-info.js
5884
+ // 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/store-info.js
5885
5885
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5886
5886
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5887
5887
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5929,7 +5929,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5929
5929
  }), "storeInfoCommand");
5930
5930
  var sharedStoreCommand = /* @__PURE__ */ __name(() => annotate(new Command("store"), { effects: LOCAL_READ }).description("the shared local store every WireCat tool reads").addCommand(storeInfoCommand()), "sharedStoreCommand");
5931
5931
 
5932
- // 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/cli/messenger/password.js
5932
+ // 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/messenger/password.js
5933
5933
  var ENCRYPT_OPTION = [
5934
5934
  "--encrypt",
5935
5935
  "compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
@@ -5948,7 +5948,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5948
5948
  return password;
5949
5949
  }, "passwordOf");
5950
5950
 
5951
- // 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/replies/rules.js
5951
+ // 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/replies/rules.js
5952
5952
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5953
5953
  import { join } from "node:path";
5954
5954
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6119,7 +6119,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6119
6119
  }, "problem");
6120
6120
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6121
6121
 
6122
- // 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/replies/state.js
6122
+ // 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/replies/state.js
6123
6123
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6124
6124
  import { join as join2 } from "node:path";
6125
6125
  var ANSWERED_KEPT = 1e3;
@@ -6172,7 +6172,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6172
6172
  }, "recordReply");
6173
6173
  var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
6174
6174
 
6175
- // 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/replies/decide.js
6175
+ // 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/replies/decide.js
6176
6176
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6177
6177
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6178
6178
  const { message, chat, owner, sender } = incoming;
@@ -6278,7 +6278,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6278
6278
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6279
6279
  }, "filled");
6280
6280
 
6281
- // 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/replies/template.js
6281
+ // 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/replies/template.js
6282
6282
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6283
6283
  var TEMPLATE_LIMITS = {
6284
6284
  parse: 32768,
@@ -6438,7 +6438,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6438
6438
  }
6439
6439
  }, "renderReplyTemplate");
6440
6440
 
6441
- // 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/replies/dry-run.js
6441
+ // 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/replies/dry-run.js
6442
6442
  var DRY_RUN_DAYS = 7;
6443
6443
  var PAGE = 500;
6444
6444
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6552,7 +6552,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6552
6552
  }
6553
6553
  }, "storedSince");
6554
6554
 
6555
- // 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/embeddings/keys.js
6555
+ // 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/embeddings/keys.js
6556
6556
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6557
6557
  const host = new URL(baseUrl).host;
6558
6558
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6583,7 +6583,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6583
6583
  };
6584
6584
  }, "embeddingKeys");
6585
6585
 
6586
- // 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/models/openai.js
6586
+ // 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/models/openai.js
6587
6587
  var options = strictObject({
6588
6588
  temperature: range(0, 2),
6589
6589
  top_p: range(0, 1),
@@ -6632,7 +6632,7 @@ var openai = {
6632
6632
  }, "complete")
6633
6633
  };
6634
6634
 
6635
- // 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/models/index.js
6635
+ // 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/models/index.js
6636
6636
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6637
6637
  complete: /* @__PURE__ */ __name(async (request) => {
6638
6638
  if (deps.signal?.aborted)
@@ -6647,7 +6647,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6647
6647
  if (!adapter && target.provider === "openai")
6648
6648
  adapter = openai;
6649
6649
  if (!adapter && target.provider === "anthropic")
6650
- adapter = (await import("./anthropic-VL54IUGF.js")).anthropic;
6650
+ adapter = (await import("./anthropic-5QHQR4WF.js")).anthropic;
6651
6651
  if (!adapter)
6652
6652
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6653
6653
  if (request.images !== void 0 && adapter.images !== true)
@@ -6688,7 +6688,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6688
6688
  }, "complete")
6689
6689
  }), "modelGateway");
6690
6690
 
6691
- // 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/replies/consents.js
6691
+ // 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/replies/consents.js
6692
6692
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6693
6693
  import { join as join3 } from "node:path";
6694
6694
  var shape = strictObject({
@@ -6713,7 +6713,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6713
6713
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6714
6714
  }, "mayModelReply");
6715
6715
 
6716
- // 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/replies/rendering.js
6716
+ // 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/replies/rendering.js
6717
6717
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6718
6718
  ai: true
6719
6719
  }) => async (rule2, message, chat, now) => {
@@ -6760,7 +6760,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6760
6760
  return result2;
6761
6761
  }, "replyRenderer");
6762
6762
 
6763
- // 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/replies/serve.js
6763
+ // 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/replies/serve.js
6764
6764
  var NOT_ALLOWED = "replies.send is not allow";
6765
6765
  var NO_RULES = "no rules";
6766
6766
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6853,7 +6853,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6853
6853
  return { skip: why };
6854
6854
  }, "replyTo");
6855
6855
 
6856
- // 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/cli/messenger/serve-members.js
6856
+ // 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/messenger/serve-members.js
6857
6857
  var FIRST_FETCH_MS = 6e4;
6858
6858
  var DAY_MS = 864e5;
6859
6859
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6907,7 +6907,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6907
6907
  };
6908
6908
  }, "memberFetches");
6909
6909
 
6910
- // 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/cli/messenger/serve-notice.js
6910
+ // 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/messenger/serve-notice.js
6911
6911
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6912
6912
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6913
6913
  if (context.format === "pretty") {
@@ -6940,7 +6940,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
6940
6940
  return context;
6941
6941
  }, "recordDiagnostics");
6942
6942
 
6943
- // 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/cli/messenger/serve-stems.js
6943
+ // 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/messenger/serve-stems.js
6944
6944
  var STEMS_EVERY_MS = 3e4;
6945
6945
  var STEMS_SLICE_MS = 2e3;
6946
6946
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -6980,7 +6980,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
6980
6980
  };
6981
6981
  }, "stemFills");
6982
6982
 
6983
- // 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/cli/messenger/message-items.js
6983
+ // 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/messenger/message-items.js
6984
6984
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
6985
6985
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
6986
6986
  kind: attachment.kind,
@@ -7017,6 +7017,8 @@ var messageItem = /* @__PURE__ */ __name((message, reader) => {
7017
7017
  sender_name: message.senderName,
7018
7018
  sender_username: message.senderUsername,
7019
7019
  sender_is_chat: message.senderIsChat,
7020
+ // MAX reports the owner's own messages with no sender id, so `outgoing` counts as well as the id.
7021
+ sender_is_me: message.outgoing === true || message.senderId !== null && String(message.senderId) === account,
7020
7022
  mentions: message.mentions,
7021
7023
  timestamp: message.timestamp,
7022
7024
  edited_at: message.editedAt,
@@ -7067,7 +7069,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7067
7069
  locale: messenger.app.locale
7068
7070
  }), "viewOf");
7069
7071
 
7070
- // 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/cli/messenger/watch-answers.js
7072
+ // 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/messenger/watch-answers.js
7071
7073
  var observed = /* @__PURE__ */ __name((value) => ({
7072
7074
  value: value.value,
7073
7075
  observed_at: value.observedAt,
@@ -7134,7 +7136,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7134
7136
  }
7135
7137
  }, "watchEventItem");
7136
7138
 
7137
- // 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/cli/messenger/watch-command.js
7139
+ // 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/messenger/watch-command.js
7138
7140
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7139
7141
  output: { entity: "watch_item" },
7140
7142
  effects: REMOTE_READ,
@@ -7289,7 +7291,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7289
7291
  }
7290
7292
  }, "describe");
7291
7293
 
7292
- // 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/cli/messenger/serve-command.js
7294
+ // 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/messenger/serve-command.js
7293
7295
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7294
7296
  const command = annotate(new Command("serve"), {
7295
7297
  output: { entity: "serve_summary" },
@@ -7505,7 +7507,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7505
7507
  };
7506
7508
  }, "tasking");
7507
7509
 
7508
- // 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/cli/messenger/store-tables-command.js
7510
+ // 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/messenger/store-tables-command.js
7509
7511
  import { existsSync as existsSync6 } from "node:fs";
7510
7512
  var PATH = "store tables list";
7511
7513
  var STORE_TABLES_QUERY = {
@@ -7548,7 +7550,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7548
7550
  return tables;
7549
7551
  }, "storeTablesCommand");
7550
7552
 
7551
- // 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/cli/messenger/store-maintenance-command.js
7553
+ // 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/messenger/store-maintenance-command.js
7552
7554
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7553
7555
  var WORD_INDEX = "message_words";
7554
7556
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -2,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-AE4BOXH7.js";
5
+ } from "./chunk-YIMI6O7R.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/store/driver.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/store/driver.js
11
11
  var PRAGMAS = `
12
12
  PRAGMA busy_timeout = 5000;
13
13
  PRAGMA journal_mode = WAL;
14
14
  PRAGMA foreign_keys = ON;
15
15
  `;
16
16
 
17
- // 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-warning.js
17
+ // 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-warning.js
18
18
  var SQLITE_WARNING = "SQLite is an experimental feature";
19
19
  var quieted = /* @__PURE__ */ new WeakSet();
20
20
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
35
35
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
36
36
  }, "isSqliteWarning");
37
37
 
38
- // 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/open.js
38
+ // 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/open.js
39
39
  var openCache = /* @__PURE__ */ __name(async (path) => {
40
40
  const database = await openFile(path);
41
41
  try {
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
48
48
  }, "openCache");
49
49
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
50
50
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
51
- const { openWithBunSqlite } = await import("./bun-sqlite-2SDA3YOT.js");
51
+ const { openWithBunSqlite } = await import("./bun-sqlite-PEJM6CS4.js");
52
52
  return await openWithBunSqlite(path);
53
53
  }, "openUnderBun");
54
54
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
55
55
  quietSqliteWarning();
56
- const { openWithNodeSqlite } = await import("./node-sqlite-ZNGOBA5Q.js");
56
+ const { openWithNodeSqlite } = await import("./node-sqlite-BBEDYBWO.js");
57
57
  return openWithNodeSqlite(path);
58
58
  }, "openUnderNode");
59
59
  var runtime = /* @__PURE__ */ __name(() => {
@@ -4,7 +4,7 @@ import {
4
4
  organization,
5
5
  project,
6
6
  reminder
7
- } from "./chunk-YB4DMKYX.js";
7
+ } from "./chunk-DXZTLB24.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-WJHK5D7Z.js";
31
+ } from "./chunk-PNBEREOU.js";
32
32
  import {
33
33
  filesAccountSql,
34
34
  folderProviderOf,
35
35
  folderProviderSql,
36
36
  isDocumentAccountProvider
37
- } from "./chunk-GARCOIB6.js";
37
+ } from "./chunk-NDXAZB5Z.js";
38
38
  import {
39
39
  queryFieldsOf
40
- } from "./chunk-LSVI3A5X.js";
40
+ } from "./chunk-UOFOMU3T.js";
41
41
  import {
42
42
  CliError
43
- } from "./chunk-AE4BOXH7.js";
43
+ } from "./chunk-YIMI6O7R.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");