@wirecat/cli-memo 0.131.31 → 0.131.33

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 (147) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-PFCNICOF.js → all-profiles-I67AQBML.js} +5 -5
  3. package/dist/bundle/{anthropic-QLGMYWVZ.js → anthropic-TAN7BXEI.js} +3 -3
  4. package/dist/bundle/{app-server-QD67I7V2.js → app-server-BB6D3T5A.js} +35 -35
  5. package/dist/bundle/auto-6555QOPH.js +86 -0
  6. package/dist/bundle/{bun-JRTUGKIJ.js → bun-UQEFISW2.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-HCZP2CNO.js → bun-sqlite-2QF3TO47.js} +2 -2
  8. package/dist/bundle/{chunk-HLJ6IUVF.js → chunk-2S5YZCD4.js} +2 -2
  9. package/dist/bundle/{chunk-3G44GDIZ.js → chunk-2Y2UWMJX.js} +5 -5
  10. package/dist/bundle/{chunk-GNY5YLNY.js → chunk-3CVPUL6V.js} +2 -2
  11. package/dist/bundle/{chunk-OS55OQ74.js → chunk-3DDGDOTM.js} +5 -5
  12. package/dist/bundle/{chunk-XWIRWBB5.js → chunk-3TEBUFO4.js} +1 -1
  13. package/dist/bundle/{chunk-3OH5DJ6X.js → chunk-4BDZUM4Z.js} +7 -1
  14. package/dist/bundle/{chunk-NG26I3JV.js → chunk-536BN5HJ.js} +1 -1
  15. package/dist/bundle/{chunk-7AMJFTJM.js → chunk-5DEHFWR4.js} +1 -1
  16. package/dist/bundle/{chunk-X6HXGL5E.js → chunk-5JAYP233.js} +7 -7
  17. package/dist/bundle/{chunk-63JF4E76.js → chunk-5M4CW3PM.js} +330 -247
  18. package/dist/bundle/{chunk-4D6BG353.js → chunk-62H5HS77.js} +6 -6
  19. package/dist/bundle/{chunk-ARVXP2UJ.js → chunk-6MDFXQ3P.js} +258 -258
  20. package/dist/bundle/{chunk-W4GV42D5.js → chunk-7OSMWDV3.js} +2 -2
  21. package/dist/bundle/{chunk-ZHDOELM7.js → chunk-ABORNS53.js} +7 -7
  22. package/dist/bundle/{chunk-CGI5EIIA.js → chunk-AFCZMG3T.js} +20 -20
  23. package/dist/bundle/{chunk-S3FQQRUM.js → chunk-AP3AG2BB.js} +4 -4
  24. package/dist/bundle/{chunk-FGJKBQCP.js → chunk-BFLYYQZ7.js} +3 -3
  25. package/dist/bundle/{chunk-5YVU6PXP.js → chunk-BSPNSDJR.js} +4 -4
  26. package/dist/bundle/{chunk-GKZ65EOY.js → chunk-BT6ZZUXC.js} +54 -54
  27. package/dist/bundle/{chunk-NDJUEFV2.js → chunk-BUYST3RY.js} +1 -1
  28. package/dist/bundle/{chunk-L34KLQIU.js → chunk-DUQGOBGY.js} +9 -9
  29. package/dist/bundle/{chunk-Q2ZIIXA2.js → chunk-EN3D3M3X.js} +2 -2
  30. package/dist/bundle/{chunk-JTSYAO5V.js → chunk-FQ23ENBP.js} +350 -280
  31. package/dist/bundle/{chunk-WGX6AEUP.js → chunk-FZXOHGOA.js} +3 -3
  32. package/dist/bundle/{chunk-ZB5ZZWFR.js → chunk-GUCICZ5E.js} +4 -4
  33. package/dist/bundle/{chunk-RO4YPDGF.js → chunk-HU2UNNN5.js} +1 -1
  34. package/dist/bundle/{chunk-RRDXT63A.js → chunk-IT5OORGL.js} +1 -1
  35. package/dist/bundle/{chunk-K6ZWFP2X.js → chunk-JCFO4LQL.js} +1 -1
  36. package/dist/bundle/{chunk-AZGQ7ABE.js → chunk-JOUN3RQQ.js} +165 -151
  37. package/dist/bundle/{chunk-42I4XE3O.js → chunk-KBSN3KOJ.js} +20 -20
  38. package/dist/bundle/{chunk-A56GDMFH.js → chunk-KJBKP66D.js} +3 -3
  39. package/dist/bundle/{chunk-PG4KORTB.js → chunk-KTGIARY4.js} +1 -1
  40. package/dist/bundle/{chunk-XUMYVRBZ.js → chunk-L5XW7SRP.js} +1 -1
  41. package/dist/bundle/{chunk-H24AL555.js → chunk-LDEPGWLS.js} +27 -27
  42. package/dist/bundle/{chunk-FE2SLKUO.js → chunk-LJZAVL4S.js} +2 -2
  43. package/dist/bundle/{chunk-5JTW3LNF.js → chunk-LUX5CPKS.js} +1 -1
  44. package/dist/bundle/{chunk-2N74ZVI6.js → chunk-MF2IXW4D.js} +1 -1
  45. package/dist/bundle/{chunk-CWHGN6HC.js → chunk-MI6OKBKQ.js} +4 -4
  46. package/dist/bundle/{chunk-7JWW4YEK.js → chunk-MZMKZ3FS.js} +8 -8
  47. package/dist/bundle/{chunk-2XBDA3XF.js → chunk-N75EWKKC.js} +1 -1
  48. package/dist/bundle/{chunk-TFEXCHMC.js → chunk-NAKJLG6G.js} +5 -5
  49. package/dist/bundle/{chunk-REUXOW2O.js → chunk-NOBWIWEE.js} +2 -2
  50. package/dist/bundle/{chunk-7MKROF5R.js → chunk-OGOMIZVL.js} +1 -1
  51. package/dist/bundle/{chunk-5BVGJBZX.js → chunk-P7AWDFQW.js} +1 -1
  52. package/dist/bundle/{chunk-MVFINUJS.js → chunk-PI5XHH3B.js} +6 -5
  53. package/dist/bundle/{chunk-QWA3MTHH.js → chunk-PVKETTTH.js} +7 -7
  54. package/dist/bundle/{chunk-Q3ZB4JGL.js → chunk-QMK5MB3I.js} +2 -2
  55. package/dist/bundle/{chunk-USMKR34T.js → chunk-R37MXUSP.js} +11 -11
  56. package/dist/bundle/{chunk-HGXTDMKN.js → chunk-RRLIMG4U.js} +85 -32
  57. package/dist/bundle/{chunk-K3CJHSLS.js → chunk-S6HHL43A.js} +1 -1
  58. package/dist/bundle/{chunk-UXA37BVT.js → chunk-SLY3522P.js} +4 -4
  59. package/dist/bundle/{chunk-QUQOKNAX.js → chunk-SN3VTCKM.js} +12 -12
  60. package/dist/bundle/{chunk-ROT4V3ZT.js → chunk-UMWPJXNA.js} +3 -3
  61. package/dist/bundle/{chunk-K3TUIQZ4.js → chunk-WSSMVWI6.js} +43 -43
  62. package/dist/bundle/{chunk-54DA525P.js → chunk-X5WJDJ7B.js} +14 -9
  63. package/dist/bundle/{chunk-URPBRYVA.js → chunk-YBSILL43.js} +4 -4
  64. package/dist/bundle/{chunk-WP3J2FNH.js → chunk-YGKZOBRU.js} +10 -10
  65. package/dist/bundle/{command-contract-DFXPO5Q7.js → command-contract-LRGVHRDS.js} +11 -11
  66. package/dist/bundle/{decode-7NGILAKQ.js → decode-AC2QFP22.js} +2 -2
  67. package/dist/bundle/{echarts-JERQI2HW.js → echarts-2LGYCSJM.js} +2 -2
  68. package/dist/bundle/{embed-3AO7KZXC.js → embed-5G5NJRTM.js} +3 -3
  69. package/dist/bundle/{embedder-WRQ7TDDB.js → embedder-AWGIIEIK.js} +6 -6
  70. package/dist/bundle/{entry-IBRPU7NO.js → entry-J2G7NST5.js} +4 -4
  71. package/dist/bundle/failure-7SDDOWOC.js +66 -0
  72. package/dist/bundle/{first-run-IJOREEQM.js → first-run-CIE4REGV.js} +5 -5
  73. package/dist/bundle/{first-screen-KYNY6ELY.js → first-screen-PLNL6V5J.js} +12 -12
  74. package/dist/bundle/{instructions-BET2PLGV.js → instructions-5236MVDG.js} +1 -1
  75. package/dist/bundle/{mcp-NUBFFPGF.js → mcp-IRYWZZMF.js} +35 -35
  76. package/dist/bundle/memo.js +6 -6
  77. package/dist/bundle/{node-NCSG7QX5.js → node-7746MVI2.js} +2 -2
  78. package/dist/bundle/{node-sqlite-QL4M5RIK.js → node-sqlite-2JD5RF5A.js} +3 -3
  79. package/dist/bundle/{oauth-BGMMED35.js → oauth-BUMW77DB.js} +4 -4
  80. package/dist/bundle/{open-YN3KJMMQ.js → open-CXUGW7QC.js} +2 -2
  81. package/dist/bundle/{openai-CTZUSKUS.js → openai-ORFEPFYD.js} +7 -7
  82. package/dist/bundle/{process-DW237TK4.js → process-JXXYNYHP.js} +1 -1
  83. package/dist/bundle/{program-Q7VXEIJ7.js → program-4RYVZYD2.js} +105 -81
  84. package/dist/bundle/{prompt-EZCCUYCS.js → prompt-EHLY4L77.js} +2 -2
  85. package/dist/bundle/{recognize-XP3LHQD6.js → recognize-ES7MH57V.js} +1 -1
  86. package/dist/bundle/{remote-RLR5ZKKT.js → remote-EZ76X2VI.js} +4 -4
  87. package/dist/bundle/{rerank-P7LE52AC.js → rerank-CDIZ6AA6.js} +4 -4
  88. package/dist/bundle/{serve-UA7RQDNK.js → serve-YRSGBTJY.js} +6 -6
  89. package/dist/bundle/server-EUYRPM4X.js +48 -0
  90. package/dist/bundle/{server-NWCYWOPZ.js → server-MW5247KA.js} +50 -50
  91. package/dist/bundle/server-OHIH2CMF.js +61 -0
  92. package/dist/bundle/{state-72Y55LBR.js → state-S6A5VAWR.js} +3 -3
  93. package/dist/bundle/{store-PED4JCBB.js → store-O5CDNS3U.js} +9 -9
  94. package/dist/bundle/store-maintenance-command-3OFVJT4R.js +48 -0
  95. package/dist/bundle/update-RC5CLYFY.js +69 -0
  96. package/dist/examples.d.ts.map +1 -1
  97. package/dist/examples.js +7 -1
  98. package/dist/examples.js.map +1 -1
  99. package/dist/findings/command.d.ts.map +1 -1
  100. package/dist/findings/command.js +4 -4
  101. package/dist/findings/command.js.map +1 -1
  102. package/dist/findings-input.d.ts +7 -0
  103. package/dist/findings-input.d.ts.map +1 -0
  104. package/dist/findings-input.js +23 -0
  105. package/dist/findings-input.js.map +1 -0
  106. package/dist/knowledge/project-actions-command.d.ts.map +1 -1
  107. package/dist/knowledge/project-actions-command.js +4 -4
  108. package/dist/knowledge/project-actions-command.js.map +1 -1
  109. package/dist/knowledge/project-actions.d.ts +2 -0
  110. package/dist/knowledge/project-actions.d.ts.map +1 -1
  111. package/dist/mail/findings-command.d.ts +1 -1
  112. package/dist/mail/findings-command.d.ts.map +1 -1
  113. package/dist/mail/findings-command.js +5 -6
  114. package/dist/mail/findings-command.js.map +1 -1
  115. package/dist/mail/review-command.d.ts +4 -3
  116. package/dist/mail/review-command.d.ts.map +1 -1
  117. package/dist/mail/review-command.js +9 -5
  118. package/dist/mail/review-command.js.map +1 -1
  119. package/dist/mcp/permissions.d.ts +1 -1
  120. package/dist/mcp/permissions.d.ts.map +1 -1
  121. package/dist/mcp/permissions.js +1 -0
  122. package/dist/mcp/permissions.js.map +1 -1
  123. package/dist/reasons.d.ts.map +1 -1
  124. package/dist/reasons.js +6 -0
  125. package/dist/reasons.js.map +1 -1
  126. package/dist/tasks/command.d.ts.map +1 -1
  127. package/dist/tasks/command.js +2 -0
  128. package/dist/tasks/command.js.map +1 -1
  129. package/dist/tasks/list.d.ts.map +1 -1
  130. package/dist/tasks/list.js +2 -0
  131. package/dist/tasks/list.js.map +1 -1
  132. package/dist/tasks/tasks.d.ts +4 -0
  133. package/dist/tasks/tasks.d.ts.map +1 -1
  134. package/dist/tasks/tasks.js +2 -0
  135. package/dist/tasks/tasks.js.map +1 -1
  136. package/dist/version.d.ts +1 -1
  137. package/dist/version.js +1 -1
  138. package/package.json +3 -3
  139. package/skills/cli-memo/topics/mail.md +2 -1
  140. package/skills/mail-triage/SKILL.md +28 -10
  141. package/dist/bundle/auto-MCSKUSPU.js +0 -86
  142. package/dist/bundle/failure-QBQMSEYX.js +0 -66
  143. package/dist/bundle/server-N6L3LGQO.js +0 -48
  144. package/dist/bundle/server-XU362INX.js +0 -61
  145. package/dist/bundle/store-maintenance-command-B364Q2O4.js +0 -48
  146. package/dist/bundle/update-X2A5CW5A.js +0 -69
  147. /package/dist/bundle/{chunk-QPPNLE7G.js → chunk-JB5P5WSQ.js} +0 -0
@@ -93,11 +93,11 @@ import {
93
93
  validateQuery,
94
94
  walkQuery,
95
95
  zonedMoment
96
- } from "./chunk-GKZ65EOY.js";
96
+ } from "./chunk-BT6ZZUXC.js";
97
97
  import {
98
98
  holdsCredential,
99
99
  secretNamed
100
- } from "./chunk-2XBDA3XF.js";
100
+ } from "./chunk-N75EWKKC.js";
101
101
  import {
102
102
  DEFAULT_STEMMERS,
103
103
  DEFAULT_STEMMERS_VERSION,
@@ -110,26 +110,26 @@ import {
110
110
  fold,
111
111
  normalize,
112
112
  parseStemmers
113
- } from "./chunk-ZHDOELM7.js";
113
+ } from "./chunk-ABORNS53.js";
114
114
  import {
115
115
  DEFAULT_TASK_CATEGORIES,
116
116
  sharedConfigPath,
117
117
  storedTaskCategories,
118
118
  taskCategoriesReader
119
- } from "./chunk-URPBRYVA.js";
119
+ } from "./chunk-YBSILL43.js";
120
120
  import {
121
121
  refuseOwnerStoreInTests,
122
122
  storePath
123
- } from "./chunk-RRDXT63A.js";
123
+ } from "./chunk-IT5OORGL.js";
124
124
  import {
125
125
  quietSqliteWarning,
126
126
  storeCapable
127
- } from "./chunk-3G44GDIZ.js";
127
+ } from "./chunk-2Y2UWMJX.js";
128
128
  import {
129
129
  PRAGMAS,
130
130
  TIME_LIMIT_FUNCTION,
131
131
  TimeLimitReached
132
- } from "./chunk-NG26I3JV.js";
132
+ } from "./chunk-536BN5HJ.js";
133
133
  import {
134
134
  array,
135
135
  boolean,
@@ -179,12 +179,12 @@ import {
179
179
  sql,
180
180
  sqliteTable,
181
181
  text
182
- } from "./chunk-K6ZWFP2X.js";
182
+ } from "./chunk-JCFO4LQL.js";
183
183
  import {
184
184
  __name
185
185
  } from "./chunk-ZVVMGPBJ.js";
186
186
 
187
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/account-store.js
187
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/account-store.js
188
188
  var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
189
189
  const methods = whole;
190
190
  return Object.fromEntries(Object.keys(keyed).map((name) => [
@@ -312,7 +312,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
312
312
  };
313
313
  }, "bindAccount");
314
314
 
315
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/locator.js
315
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/locator.js
316
316
  var SCHEME = "msg:";
317
317
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
318
318
  var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
@@ -326,7 +326,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
326
326
  return { provider, account, chat: chat2, message: message2 };
327
327
  }, "parseLocator");
328
328
 
329
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/references.js
329
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/references.js
330
330
  var SIMPLE_REFERENCES = [
331
331
  "note",
332
332
  "document",
@@ -474,7 +474,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
474
474
  return match !== null && byPrefix.has(match[1]);
475
475
  }, "looksLikeReference");
476
476
 
477
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/providers.js
477
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/providers.js
478
478
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
479
479
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
480
480
  var PROVIDERS = [
@@ -590,7 +590,7 @@ var providerNamed = /* @__PURE__ */ __name((word2) => {
590
590
  var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
591
591
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
592
592
 
593
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/query.js
593
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/query.js
594
594
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
595
595
  var inSource = /* @__PURE__ */ __name((source2, provider) => source2 === "all" || source2 === "bots" && isBotProvider(provider) || source2 === "personal" && !isBotProvider(provider) || source2 === provider || providerNamed(source2)?.name === provider || isKind(source2) && kindOf(provider) === source2, "inSource");
596
596
  var fail = /* @__PURE__ */ __name((message2) => {
@@ -613,7 +613,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
613
613
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
614
614
  }, "sourceOf");
615
615
 
616
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/account-list.js
616
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/account-list.js
617
617
  var ACCOUNT_GROUPS = "accountGroups";
618
618
  var ACCOUNT_GROUPS_SETTING = "account_groups";
619
619
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -800,7 +800,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind4)
800
800
  return { accounts: [...chosen.values()], skipped };
801
801
  }, "fitting");
802
802
 
803
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
803
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
804
804
  var IndexBuilderOn = class {
805
805
  static {
806
806
  __name(this, "IndexBuilderOn");
@@ -995,7 +995,7 @@ function alias(table, alias2) {
995
995
  }
996
996
  __name(alias, "alias");
997
997
 
998
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
998
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
999
999
  var ENTITY_TABLES = {
1000
1000
  account: "accounts",
1001
1001
  attachment: "attachments",
@@ -1038,7 +1038,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
1038
1038
  return { table, pointer, type, count, known: known2 };
1039
1039
  }).filter(({ count }) => count > 0)), "orphanPointers");
1040
1040
 
1041
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
1041
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
1042
1042
  var canonicalTags = sqliteTable("canonical_tags", {
1043
1043
  id: integer("id").primaryKey(),
1044
1044
  name: text("name").notNull().unique(),
@@ -1047,7 +1047,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
1047
1047
  updatedAt: integer("updated_at").notNull()
1048
1048
  });
1049
1049
 
1050
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
1050
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
1051
1051
  var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
1052
1052
  sourceKey: text("source_key").notNull(),
1053
1053
  collection: text("collection").notNull(),
@@ -1057,13 +1057,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
1057
1057
  createdAt: integer("created_at").notNull()
1058
1058
  }, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
1059
1059
 
1060
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
1060
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
1061
1061
  var documentIndexPending = sqliteTable("document_index_pending", {
1062
1062
  id: integer("id").notNull(),
1063
1063
  indexableType: text("indexable_type").notNull()
1064
1064
  }, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
1065
1065
 
1066
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
1066
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
1067
1067
  var tagRedirects = sqliteTable("tag_redirects", {
1068
1068
  sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
1069
1069
  survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
@@ -1089,7 +1089,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
1089
1089
  index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
1090
1090
  ]);
1091
1091
 
1092
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
1092
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
1093
1093
  var accounts = sqliteTable("accounts", {
1094
1094
  id: integer("id").primaryKey(),
1095
1095
  provider: text("provider").notNull(),
@@ -2167,7 +2167,10 @@ var tasks = sqliteTable("tasks", {
2167
2167
  closeSuggestedAt: integer("close_suggested_at"),
2168
2168
  priorityScore: real("priority_score"),
2169
2169
  agent: text("agent"),
2170
- revision: integer("revision").notNull().default(1)
2170
+ revision: integer("revision").notNull().default(1),
2171
+ provider: text("provider"),
2172
+ externalId: text("external_id"),
2173
+ sourceUrl: text("source_url")
2171
2174
  }, (table) => [
2172
2175
  unique().on(table.projectId, table.number),
2173
2176
  index("tasks_by_title_folded").on(table.titleFolded),
@@ -2178,6 +2181,7 @@ var tasks = sqliteTable("tasks", {
2178
2181
  index("tasks_by_project_id_status_next_check_at").on(table.projectId, table.status, table.nextCheckAt),
2179
2182
  index("tasks_by_project_id_source_locator").on(table.projectId, table.sourceLocator),
2180
2183
  index("tasks_by_source_group").on(table.sourceGroup),
2184
+ index("tasks_by_provider_external_id").on(table.provider, table.externalId).where(sql`external_id IS NOT NULL`),
2181
2185
  index("tasks_by_parent_id").on(table.parentId),
2182
2186
  index("tasks_by_closed_by_type_closed_by_id").on(table.closedByType, table.closedById),
2183
2187
  index("tasks_by_author_type_author_id").on(table.authorType, table.authorId),
@@ -2400,7 +2404,8 @@ var orders = sqliteTable("orders", {
2400
2404
  metadata: text("metadata"),
2401
2405
  createdAt: integer("created_at").notNull(),
2402
2406
  updatedAt: integer("updated_at").notNull(),
2403
- deletedAt: integer("deleted_at")
2407
+ deletedAt: integer("deleted_at"),
2408
+ sourceUrl: text("source_url")
2404
2409
  }, (table) => [
2405
2410
  index("orders_by_customer_type_customer_id").on(table.customerType, table.customerId),
2406
2411
  index("orders_by_supplier_type_supplier_id").on(table.supplierType, table.supplierId),
@@ -2751,7 +2756,7 @@ var storeSettings = sqliteTable("store_settings", {
2751
2756
  at: integer("at").notNull()
2752
2757
  });
2753
2758
 
2754
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2759
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2755
2760
  var ARMS = [
2756
2761
  [
2757
2762
  "message",
@@ -2878,7 +2883,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
2878
2883
  return recomputed;
2879
2884
  }, "drainInvolvementQueue");
2880
2885
 
2881
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2886
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2882
2887
  import { domainToUnicode } from "node:url";
2883
2888
 
2884
2889
  // node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
@@ -12900,7 +12905,7 @@ var oa = /* @__PURE__ */ __name((e) => {
12900
12905
  }, "oa");
12901
12906
  var na = { parse: O, get: aa, isValid: oa };
12902
12907
 
12903
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12908
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12904
12909
  var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
12905
12910
  var ID = /^[\w-]{10,}$/;
12906
12911
  var trimUrl = /* @__PURE__ */ __name((url) => {
@@ -12941,7 +12946,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
12941
12946
  return { url, documentId: googleDocumentId(url) };
12942
12947
  }), "googleDocumentLinks");
12943
12948
 
12944
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12949
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12945
12950
  var PHONE_PLANS = [
12946
12951
  {
12947
12952
  country: "us",
@@ -13321,7 +13326,7 @@ var PHONE_PLANS = [
13321
13326
  }
13322
13327
  ];
13323
13328
 
13324
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/phones.js
13329
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/phones.js
13325
13330
  var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
13326
13331
  var DEFAULT_PHONE_COUNTRIES = ["ru"];
13327
13332
  var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
@@ -13362,7 +13367,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
13362
13367
  return void 0;
13363
13368
  }, "nationalPhone");
13364
13369
 
13365
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/places.js
13370
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/places.js
13366
13371
  var BEFORE = [
13367
13372
  [/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
13368
13373
  [/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
@@ -13622,7 +13627,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
13622
13627
  return found2.sort((a, b) => a.start - b.start);
13623
13628
  }, "findPlaces");
13624
13629
 
13625
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13630
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13626
13631
  var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
13627
13632
  var MENTION_VERSIONS = {
13628
13633
  phone: 1,
@@ -13812,7 +13817,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
13812
13817
  };
13813
13818
  }, "typedPhone");
13814
13819
 
13815
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13820
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13816
13821
  var RUSSIAN = "\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440 \u0410\u043B\u0435\u043A\u0441\u0435\u0439 \u0410\u043D\u0430\u0442\u043E\u043B\u0438\u0439 \u0410\u043D\u0434\u0440\u0435\u0439 \u0410\u043D\u0442\u043E\u043D \u0410\u0440\u043A\u0430\u0434\u0438\u0439 \u0410\u0440\u0441\u0435\u043D\u0438\u0439 \u0410\u0440\u0442\u0451\u043C \u0410\u0440\u0442\u0435\u043C \u0410\u0440\u0442\u0443\u0440 \u0411\u043E\u0440\u0438\u0441 \u0412\u0430\u0434\u0438\u043C \u0412\u0430\u043B\u0435\u043D\u0442\u0438\u043D \u0412\u0430\u043B\u0435\u0440\u0438\u0439 \u0412\u0430\u0441\u0438\u043B\u0438\u0439 \u0412\u0438\u043A\u0442\u043E\u0440 \u0412\u0438\u0442\u0430\u043B\u0438\u0439 \u0412\u043B\u0430\u0434\u0438\u043C\u0438\u0440 \u0412\u043B\u0430\u0434\u0438\u0441\u043B\u0430\u0432 \u0412\u0441\u0435\u0432\u043E\u043B\u043E\u0434 \u0412\u044F\u0447\u0435\u0441\u043B\u0430\u0432 \u0413\u0435\u043D\u043D\u0430\u0434\u0438\u0439 \u0413\u0435\u043E\u0440\u0433\u0438\u0439 \u0413\u043B\u0435\u0431 \u0413\u0440\u0438\u0433\u043E\u0440\u0438\u0439 \u0414\u0430\u043D\u0438\u0438\u043B \u0414\u0430\u043D\u0438\u043B\u0430 \u0414\u0435\u043D\u0438\u0441 \u0414\u043C\u0438\u0442\u0440\u0438\u0439 \u0415\u0432\u0433\u0435\u043D\u0438\u0439 \u0415\u0433\u043E\u0440 \u0418\u0432\u0430\u043D \u0418\u0433\u043E\u0440\u044C \u0418\u043B\u044C\u044F \u041A\u0438\u0440\u0438\u043B\u043B \u041A\u043E\u043D\u0441\u0442\u0430\u043D\u0442\u0438\u043D \u041B\u0435\u043E\u043D\u0438\u0434 \u041C\u0430\u043A\u0441\u0438\u043C \u041C\u0430\u0440\u0430\u0442 \u041C\u0430\u0442\u0432\u0435\u0439 \u041C\u0438\u0445\u0430\u0438\u043B \u041D\u0438\u043A\u0438\u0442\u0430 \u041D\u0438\u043A\u043E\u043B\u0430\u0439 \u041E\u043B\u0435\u0433 \u041F\u0430\u0432\u0435\u043B \u041F\u0451\u0442\u0440 \u041F\u0435\u0442\u0440 \u0420\u043E\u0434\u0438\u043E\u043D \u0420\u043E\u0441\u0442\u0438\u0441\u043B\u0430\u0432 \u0420\u0443\u0441\u043B\u0430\u043D \u0420\u0443\u0441\u0442\u0430\u043C \u0421\u0435\u043C\u0451\u043D \u0421\u0435\u043C\u0435\u043D \u0421\u0435\u0440\u0433\u0435\u0439 \u0421\u0442\u0430\u043D\u0438\u0441\u043B\u0430\u0432 \u0421\u0442\u0435\u043F\u0430\u043D \u0422\u0438\u043C\u043E\u0444\u0435\u0439 \u0422\u0438\u043C\u0443\u0440 \u0424\u0451\u0434\u043E\u0440 \u0424\u0435\u0434\u043E\u0440 \u0424\u0438\u043B\u0438\u043F\u043F \u042D\u0434\u0443\u0430\u0440\u0434 \u042E\u0440\u0438\u0439 \u042F\u0440\u043E\u0441\u043B\u0430\u0432 \u042F\u043A\u043E\u0432 \u042D\u043B\u044C\u0434\u0430\u0440 \u0414\u0430\u0432\u0438\u0434 \u0417\u0430\u0445\u0430\u0440 \u0421\u0430\u0432\u0435\u043B\u0438\u0439 \u041C\u0438\u0440\u043E\u043D \u041F\u043B\u0430\u0442\u043E\u043D \u0414\u0435\u043C\u0438\u0434 \u0410\u0440\u0441\u0435\u043D \u041D\u0443\u0440\u043B\u0430\u043D \u0410\u043D\u0437\u043E\u0440 \u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440\u0430 \u0410\u043B\u0438\u043D\u0430 \u0410\u043B\u0438\u0441\u0430 \u0410\u043B\u043B\u0430 \u0410\u043D\u0430\u0441\u0442\u0430\u0441\u0438\u044F \u0410\u043D\u0433\u0435\u043B\u0438\u043D\u0430 \u0410\u043D\u043D\u0430 \u0410\u043D\u0442\u043E\u043D\u0438\u043D\u0430 \u0412\u0430\u043B\u0435\u043D\u0442\u0438\u043D\u0430 \u0412\u0430\u043B\u0435\u0440\u0438\u044F \u0412\u0430\u0440\u0432\u0430\u0440\u0430 \u0412\u0435\u0440\u043E\u043D\u0438\u043A\u0430 \u0412\u0438\u043A\u0442\u043E\u0440\u0438\u044F \u0413\u0430\u043B\u0438\u043D\u0430 \u0414\u0430\u0440\u044C\u044F \u0414\u0438\u0430\u043D\u0430 \u0415\u0432\u0433\u0435\u043D\u0438\u044F \u0415\u043A\u0430\u0442\u0435\u0440\u0438\u043D\u0430 \u0415\u043B\u0435\u043D\u0430 \u0415\u043B\u0438\u0437\u0430\u0432\u0435\u0442\u0430 \u0416\u0430\u043D\u043D\u0430 \u0417\u0438\u043D\u0430\u0438\u0434\u0430 \u041A\u0430\u0440\u0438\u043D\u0430 \u041A\u0438\u0440\u0430 \u041A\u043B\u0430\u0432\u0434\u0438\u044F \u041A\u0440\u0438\u0441\u0442\u0438\u043D\u0430 \u041A\u0441\u0435\u043D\u0438\u044F \u041B\u0430\u0440\u0438\u0441\u0430 \u041B\u0438\u0434\u0438\u044F \u041B\u044E\u0434\u043C\u0438\u043B\u0430 \u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430 \u041C\u0430\u0440\u0438\u043D\u0430 \u041C\u0430\u0440\u0438\u044F \u041C\u0438\u043B\u0430\u043D\u0430 \u041D\u0430\u0442\u0430\u043B\u044C\u044F \u041D\u0430\u0442\u0430\u043B\u0438\u044F \u041D\u0438\u043D\u0430 \u041E\u043A\u0441\u0430\u043D\u0430 \u041E\u043B\u0435\u0441\u044F \u041E\u043B\u044C\u0433\u0430 \u041F\u043E\u043B\u0438\u043D\u0430 \u0420\u0430\u0438\u0441\u0430 \u0421\u0432\u0435\u0442\u043B\u0430\u043D\u0430 \u0421\u043E\u0444\u0438\u044F \u0421\u043E\u0444\u044C\u044F \u0422\u0430\u0438\u0441\u0438\u044F \u0422\u0430\u043C\u0430\u0440\u0430 \u0422\u0430\u0442\u044C\u044F\u043D\u0430 \u0423\u043B\u044C\u044F\u043D\u0430 \u042E\u043B\u0438\u044F \u042D\u043B\u044C\u0432\u0438\u0440\u0430 \u0420\u0435\u0433\u0438\u043D\u0430 \u0421\u043D\u0435\u0436\u0430\u043D\u0430 \u0410\u043B\u0451\u043D\u0430 \u0410\u043B\u0435\u043D\u0430 \u0412\u0430\u0441\u0438\u043B\u0438\u0441\u0430 \u0410\u0440\u0438\u043D\u0430 \u0415\u0441\u0435\u043D\u0438\u044F \u042D\u0432\u0435\u043B\u0438\u043D\u0430 \u0421\u0430\u0448\u0430 \u0416\u0435\u043D\u044F \u0412\u0430\u043B\u044F \u0414\u0438\u043C\u0430 \u041C\u0438\u0448\u0430 \u041A\u043E\u043B\u044F \u041F\u0435\u0442\u044F \u0412\u0430\u0441\u044F \u0421\u0435\u0440\u0451\u0436\u0430 \u0421\u0435\u0440\u0435\u0436\u0430 \u041F\u0430\u0448\u0430 \u041B\u0451\u0448\u0430 \u041B\u0435\u0448\u0430 \u0412\u0438\u0442\u044F \u041A\u043E\u0441\u0442\u044F \u0412\u043E\u0432\u0430 \u0412\u043E\u043B\u043E\u0434\u044F \u0412\u0430\u043D\u044F \u0413\u043E\u0448\u0430 \u0413\u0440\u0438\u0448\u0430 \u0422\u043E\u043B\u044F \u0411\u043E\u0440\u044F \u0421\u0442\u0430\u0441 \u0422\u0451\u043C\u0430 \u0422\u0430\u043D\u044F \u041A\u0430\u0442\u044F \u041B\u0435\u043D\u0430 \u041D\u0430\u0442\u0430\u0448\u0430 \u0421\u0432\u0435\u0442\u0430 \u042E\u043B\u044F \u041D\u0430\u0441\u0442\u044F \u0414\u0430\u0448\u0430 \u041C\u0430\u0448\u0430 \u041B\u044E\u0434\u0430 \u0413\u0430\u043B\u044F \u0412\u0438\u043A\u0430 \u041A\u0441\u044E\u0448\u0430 \u041B\u0438\u0437\u0430 \u0421\u043E\u043D\u044F \u041D\u0430\u0434\u044F \u041B\u0435\u0440\u0430 \u0410\u043B\u0451\u0448\u0430 \u0410\u043B\u0435\u0448\u0430 \u041C\u0438\u0442\u044F \u0421\u0435\u043D\u044F \u0424\u0435\u0434\u044F \u0416\u0435\u043D\u0435\u0447\u043A\u0430 \u041E\u043B\u0435\u043D\u044C\u043A\u0430 \u0422\u0430\u043D\u0435\u0447\u043A\u0430";
13817
13822
  var EUROPEAN = "James John Robert Michael William David Richard Joseph Thomas Charles Christopher Daniel Matthew Anthony Donald Steven Paul Andrew Joshua Kenneth Kevin Brian George Timothy Ronald Edward Jason Jeffrey Ryan Jacob Gary Nicholas Eric Jonathan Stephen Larry Justin Scott Brandon Benjamin Samuel Gregory Alexander Patrick Raymond Dennis Jerry Tyler Aaron Nathan Henry Peter Zachary Douglas Harold Kyle Noah Ethan Oliver Harry Lucas Liam Mary Patricia Jennifer Linda Elizabeth Barbara Susan Jessica Sarah Karen Lisa Nancy Betty Margaret Sandra Ashley Kimberly Emily Donna Michelle Carol Amanda Dorothy Melissa Deborah Stephanie Rebecca Sharon Laura Cynthia Kathleen Angela Shirley Anna Brenda Pamela Emma Nicole Helen Samantha Katherine Christine Rachel Carolyn Janet Catherine Maria Heather Diane Ruth Julie Olivia Joyce Kelly Lauren Christina Joan Evelyn Judith Megan Andrea Cheryl Hannah Jacqueline Martha Teresa Sara Madison Frances Kathryn Janice Abigail Alice Julia Judy Sophia Denise Doris Marilyn Danielle Beverly Isabella Theresa Diana Natalie Charlotte Marie Kayla Alexis Javier Carlos Antonio Manuel Francisco Juan Pedro Alejandro Miguel Rafael Pablo Sergio Fernando Jorge Luis Alberto \xC1lvaro Diego Adri\xE1n Rub\xE9n Iv\xE1n \xD3scar Andr\xE9s Ra\xFAl Enrique Vicente Joaqu\xEDn Ignacio Gonzalo Marcos V\xEDctor Jaime Alfonso Guillermo Tom\xE1s Emilio Gabriel Nicol\xE1s Mart\xEDn Jordi Josep Xavier Luc\xEDa Carmen Isabel Cristina Marta Elena Raquel Silvia Beatriz Paula Nuria N\xFAria Sonia Alicia Irene Montserrat Inmaculada Noelia Lorena Sof\xEDa Valeria Claudia Natalia Sandra Ver\xF3nica Esther Yolanda Vanesa Laia Klaus J\xFCrgen Wolfgang Stefan Andreas Matthias Markus Tobias Florian Lukas Jonas Maximilian Sebastian Dirk Sabine Ursula Petra Monika Katrin Anja Pierre Michel Philippe Alain Fran\xE7ois Christophe Laurent Olivier Julien Mathieu S\xE9bastien Guillaume Antoine Camille Nathalie Isabelle Sylvie Sophie C\xE9line Aur\xE9lie Chlo\xE9 Manon Giuseppe Giovanni Marco Luca Francesco Alessandro Matteo Lorenzo Stefano Paolo Roberto Davide Simone Federico Giulia Francesca Chiara Valentina Alessia Martina Elisa Jo\xE3o Pedro Tiago Beatriz In\xEAs Mariana Piotr Krzysztof Tomasz Marcin Agnieszka Katarzyna Ma\u0142gorzata Magdalena";
13818
13823
  var WORDS = "\u0412\u0435\u0440\u0430 \u041D\u0430\u0434\u0435\u0436\u0434\u0430 \u041B\u044E\u0431\u043E\u0432\u044C \u0421\u043B\u0430\u0432\u0430 \u0420\u043E\u043C\u0430\u043D \u0420\u043E\u0437\u0430 \u041C\u0430\u0439\u044F \u041B\u0438\u043B\u0438\u044F \u0417\u043B\u0430\u0442\u0430 \u041C\u0438\u043B\u0430 \u041D\u0438\u043A\u0430 \u041B\u0435\u0432 \u0413\u043B\u043E\u0440\u0438\u044F Will Mark Rose Grace Hope Faith Bill Frank Jack June April Summer Amber Ruby Lily Daisy Victoria Virginia Georgia Florence Sydney Chelsea Jordan Austin Dallas Mercedes Dolores Rosa Pilar Marina Esperanza Gloria Amparo Consuelo Roc\xEDo Salvador Santiago Jes\xFAs \xC1ngeles Hugo Ram\xF3n Christian Felix F\xE9lix Mario Martin Victor Pierre Paz Merc\xE8 Estrella Aurora Concepci\xF3n Remedios Soledad Milagros Angel \xC1ngel Dawn Joy Holly Ivy Iris Violet Pearl";
@@ -13820,7 +13825,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
13820
13825
  var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
13821
13826
  var NAME_WORDS = WORDS.split(" ");
13822
13827
 
13823
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13828
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13824
13829
  var LATIN_TO_CYRILLIC = {
13825
13830
  shch: "\u0449",
13826
13831
  sch: "\u0449",
@@ -14028,7 +14033,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
14028
14033
  return found2;
14029
14034
  }, "findUnknownNames");
14030
14035
 
14031
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/attachments.js
14036
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/attachments.js
14032
14037
  var NOT_FILES = /* @__PURE__ */ new Set([
14033
14038
  "webpage",
14034
14039
  "share",
@@ -14068,7 +14073,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
14068
14073
  });
14069
14074
  }, "matchDownloads");
14070
14075
 
14071
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
14076
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
14072
14077
  var QUERY_VERSION = 1;
14073
14078
  var QUERY_LIMITS2 = {
14074
14079
  ...QUERY_LIMITS,
@@ -14104,7 +14109,7 @@ function exhausted(budget) {
14104
14109
  }
14105
14110
  __name(exhausted, "exhausted");
14106
14111
 
14107
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
14112
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
14108
14113
  var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
14109
14114
  var literal2 = /* @__PURE__ */ __name((c) => ({
14110
14115
  kind: "char",
@@ -14504,7 +14509,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
14504
14509
  return out;
14505
14510
  }, "foldRegex");
14506
14511
 
14507
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14512
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14508
14513
  var PRESET_VERSION = 1;
14509
14514
  var PRESETS = {
14510
14515
  password: {
@@ -14558,7 +14563,7 @@ var PRESETS = {
14558
14563
  }
14559
14564
  };
14560
14565
 
14561
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14566
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14562
14567
  var FIELD_VERSION = 2;
14563
14568
  var UNITS = {
14564
14569
  "": 1,
@@ -15019,12 +15024,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
15019
15024
  return validateFields(parsed3.output);
15020
15025
  }, "validateAst");
15021
15026
 
15022
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
15027
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
15023
15028
  var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
15024
15029
  var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
15025
15030
  var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
15026
15031
 
15027
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
15032
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
15028
15033
  var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
15029
15034
  var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
15030
15035
  var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
@@ -15048,7 +15053,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
15048
15053
  };
15049
15054
  }, "linkMatch");
15050
15055
 
15051
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
15056
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
15052
15057
  var SETTING = "phoneCountries";
15053
15058
  var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
15054
15059
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
@@ -15079,7 +15084,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
15079
15084
  return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
15080
15085
  }, "valueMatch");
15081
15086
 
15082
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
15087
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
15083
15088
  var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
15084
15089
  if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
15085
15090
  throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
@@ -15107,7 +15112,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
15107
15112
  return 2 * intersection2 / (aa2.size + bb.size);
15108
15113
  }, "vocabularySimilarity");
15109
15114
 
15110
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
15115
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
15111
15116
  import { createHash } from "node:crypto";
15112
15117
  var folded2 = /* @__PURE__ */ __name((name) => {
15113
15118
  try {
@@ -15173,7 +15178,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind4, by, options
15173
15178
  });
15174
15179
  }, "guardTagCreation");
15175
15180
 
15176
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
15181
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
15177
15182
  var invalid2 = /* @__PURE__ */ __name((message2) => {
15178
15183
  throw new CliError("validation_error", message2);
15179
15184
  }, "invalid");
@@ -15250,7 +15255,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
15250
15255
  };
15251
15256
  }, "createTagRedirectIndex");
15252
15257
 
15253
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
15258
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
15254
15259
  var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
15255
15260
  const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
15256
15261
  if (!row2)
@@ -15278,7 +15283,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
15278
15283
  return snapshot2;
15279
15284
  }, "tagRedirectSnapshot");
15280
15285
 
15281
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
15286
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
15282
15287
  import { createHash as createHash2 } from "node:crypto";
15283
15288
  var TASK_KEY_PREFIXES = {
15284
15289
  question: "Q",
@@ -15306,7 +15311,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
15306
15311
  return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
15307
15312
  }, "taskAccountOf");
15308
15313
 
15309
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
15314
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
15310
15315
  var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
15311
15316
  var REFERABLE = {
15312
15317
  note: { tombstone: true },
@@ -15471,7 +15476,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
15471
15476
  return row2 ? String(row2.id ?? row2.key) : void 0;
15472
15477
  }, "taskIdOf");
15473
15478
 
15474
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15479
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15475
15480
  var toMs = /* @__PURE__ */ __name((iso13) => {
15476
15481
  if (iso13 === null || iso13 === void 0)
15477
15482
  return null;
@@ -15485,7 +15490,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
15485
15490
  var DELIVERY = { delivered: 1, read: 2 };
15486
15491
  var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
15487
15492
 
15488
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15493
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15489
15494
  var TAG_KINDS = ["tag", "topic"];
15490
15495
  var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
15491
15496
  var TAG_TYPE = {
@@ -15688,7 +15693,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
15688
15693
  return result;
15689
15694
  }, "tagsOf");
15690
15695
 
15691
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15696
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15692
15697
  var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
15693
15698
  var SPEECH = speech("att");
15694
15699
  var mentionText = /* @__PURE__ */ __name((alias2) => `CASE WHEN coalesce(json_extract(${alias2}.contact, '$.phone'), '') <> '' THEN 'phone: ' || json_extract(${alias2}.contact, '$.phone') ELSE ${alias2}.text END`, "mentionText");
@@ -16052,7 +16057,7 @@ var FIELD_COMPILERS = {
16052
16057
  subject
16053
16058
  };
16054
16059
 
16055
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
16060
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
16056
16061
  var placeOf = /* @__PURE__ */ __name((database) => {
16057
16062
  const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
16058
16063
  const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
@@ -16068,7 +16073,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
16068
16073
  };
16069
16074
  }, "placeOf");
16070
16075
 
16071
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
16076
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
16072
16077
  var DRAIN_ON_WRITE = 500;
16073
16078
  var METHOD = "rules";
16074
16079
  var telegramLink = /* @__PURE__ */ __name((database) => {
@@ -16231,7 +16236,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
16231
16236
  return queued.length;
16232
16237
  }, "drainMentions");
16233
16238
 
16234
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
16239
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
16235
16240
  var indexRow = /* @__PURE__ */ __name((database, name) => {
16236
16241
  const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
16237
16242
  if (!exists2)
@@ -16239,7 +16244,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
16239
16244
  return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
16240
16245
  }, "indexRow");
16241
16246
 
16242
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
16247
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
16243
16248
  var INDEX = "message_stems";
16244
16249
  var SETTING2 = "searchStemmers";
16245
16250
  var DRAIN_ON_WRITE2 = 500;
@@ -16361,7 +16366,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
16361
16366
  };
16362
16367
  }, "stemmerCache");
16363
16368
 
16364
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
16369
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
16365
16370
  var SQLITE_BUSY = 5;
16366
16371
  var pause = new Int32Array(new SharedArrayBuffer(4));
16367
16372
  var isBusy = /* @__PURE__ */ __name((error) => {
@@ -16456,7 +16461,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
16456
16461
  }
16457
16462
  }, "read");
16458
16463
 
16459
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
16464
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
16460
16465
  var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
16461
16466
  coalesce(CASE k.chunkable_type
16462
16467
  WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
@@ -16598,7 +16603,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
16598
16603
  }, "dropUnusedVectors");
16599
16604
  var dropAllUnusedVectors = /* @__PURE__ */ __name((database) => database.prepare("DELETE FROM embeddings WHERE NOT EXISTS (SELECT 1 FROM chunks k WHERE k.content_hash = embeddings.content_hash) RETURNING 1").all().length, "dropAllUnusedVectors");
16600
16605
 
16601
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16606
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16602
16607
  var accountPk = /* @__PURE__ */ __name(({ orm, now: now2 }, { provider, account, scope: scope3 }, name = null) => Number(orm.insert(accounts).values({ provider, externalId: account, name, scope: scope3 ?? "personal", createdAt: now2(), updatedAt: now2() }).onConflictDoUpdate({
16603
16608
  target: [accounts.provider, accounts.externalId],
16604
16609
  set: {
@@ -16707,7 +16712,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
16707
16712
  AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
16708
16713
  }, "dropOrphanPeople");
16709
16714
 
16710
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
16715
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
16711
16716
  var FOLDED = [
16712
16717
  { table: "tasks", column: "title" },
16713
16718
  { table: "tasks", column: "close_reason" },
@@ -16744,7 +16749,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
16744
16749
  return filled2;
16745
16750
  }, "fillFolded");
16746
16751
 
16747
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
16752
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
16748
16753
  var HISTORY_KEY = "$history";
16749
16754
  var objectOf = /* @__PURE__ */ __name((text6) => {
16750
16755
  if (typeof text6 !== "string")
@@ -16820,7 +16825,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
16820
16825
  return rest;
16821
16826
  }, "withoutHistory");
16822
16827
 
16823
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16828
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16824
16829
  import { createHash as createHash3 } from "node:crypto";
16825
16830
  var CHUNK_CHARS = 1200;
16826
16831
  var CHUNK_OVERLAP = 150;
@@ -16925,7 +16930,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
16925
16930
  return chunks2;
16926
16931
  }, "cutChunks");
16927
16932
 
16928
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/task-signature.js
16933
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/task-signature.js
16929
16934
  var DAY = 864e5;
16930
16935
  var CURRENCY = [
16931
16936
  [/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
@@ -17051,7 +17056,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
17051
17056
  return best?.day ?? null;
17052
17057
  }, "dueDayOf");
17053
17058
 
17054
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
17059
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
17055
17060
  var DAY2 = 864e5;
17056
17061
  var STOP_WORDS = new Set([
17057
17062
  // Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
@@ -17206,7 +17211,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
17206
17211
  ...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
17207
17212
  })).sort((a, b) => b.score - a.score), "rankCandidates");
17208
17213
 
17209
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
17214
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
17210
17215
  var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
17211
17216
  r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
17212
17217
  JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
@@ -17477,7 +17482,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
17477
17482
  };
17478
17483
  }, "readiness");
17479
17484
 
17480
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
17485
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
17481
17486
  var DOCUMENT_PICTURE = "document_picture";
17482
17487
  var SCAN_PAGE2 = 5e3;
17483
17488
  var idOf = /* @__PURE__ */ __name((ref3) => {
@@ -17540,7 +17545,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
17540
17545
  }, "nearestPictures")
17541
17546
  }), "documentPicturesOver");
17542
17547
 
17543
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
17548
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
17544
17549
  var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
17545
17550
  const literal4 = escaped2 ?? plain2 ?? "";
17546
17551
  return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
@@ -17605,7 +17610,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
17605
17610
  var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
17606
17611
  var bound2 = /* @__PURE__ */ __name(({ sql: text6, params }) => sql.join(text6.split("?").map((part, at) => at < params.length ? sql`${sql.raw(part)}${params[at]}` : sql.raw(part)), sql``), "bound");
17607
17612
 
17608
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
17613
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
17609
17614
  var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
17610
17615
  var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
17611
17616
  var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
@@ -17695,7 +17700,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
17695
17700
  });
17696
17701
  }, "linkMeeting");
17697
17702
 
17698
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17703
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17699
17704
  var EVENT_TEXT = "trim(coalesce(e.description, '') || ' ' || coalesce(e.location, '') || ' ' || coalesce((SELECT group_concat(p.name, ' ') FROM calendar_entries ce JOIN calendar_entry_participants p ON p.entry_id = ce.id WHERE ce.event_id = e.id AND ce.deleted_at IS NULL AND p.resource = 0 AND p.name IS NOT NULL), ''))";
17700
17705
  var UNSEARCHED_EVENT_TYPES = [
17701
17706
  "working-location",
@@ -17925,7 +17930,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
17925
17930
  return true;
17926
17931
  }, "resetNoteIndex");
17927
17932
 
17928
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
17933
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
17929
17934
  var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
17930
17935
  var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
17931
17936
  for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
@@ -17944,7 +17949,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
17944
17949
  }
17945
17950
  }, "resolvePersonLinks");
17946
17951
 
17947
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
17952
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
17948
17953
  var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
17949
17954
  var prepare = /* @__PURE__ */ __name((orm) => ({
17950
17955
  find: orm.select({
@@ -18169,7 +18174,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
18169
18174
  }, "meetingIdentityPk");
18170
18175
  var phoneOf = /* @__PURE__ */ __name(({ orm }, provider, nativeId) => orm.select({ phone: identities.phone }).from(identities).where(and(eq(identities.provider, provider), eq(identities.externalId, nativeId))).get()?.phone ?? null, "phoneOf");
18171
18176
 
18172
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
18177
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
18173
18178
  var chatOf = /* @__PURE__ */ __name(({ orm }, accountKey, chatKey) => orm.select({ id: chats.externalId }).from(chats).where(and(eq(chats.id, chatKey), eq(chats.accountId, accountKey))).get()?.id, "chatOf");
18174
18179
  var findChatPk = /* @__PURE__ */ __name(({ orm }, accountKey, chatId) => orm.select({ pk: chats.id }).from(chats).where(and(eq(chats.accountId, accountKey), eq(chats.externalId, chatId))).get()?.pk, "findChatPk");
18175
18180
  var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
@@ -18449,7 +18454,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
18449
18454
  }
18450
18455
  }, "replaceAutoTags");
18451
18456
 
18452
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/counters.js
18457
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/counters.js
18453
18458
  var COUNTER_FIELDS = ["views", "reactions", "comments"];
18454
18459
  var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
18455
18460
  var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
@@ -18468,7 +18473,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
18468
18473
  return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
18469
18474
  }, "counterFreshness");
18470
18475
 
18471
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/context/evidence.js
18476
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/context/evidence.js
18472
18477
  import { createHash as createHash4 } from "node:crypto";
18473
18478
  var CONTEXT_MAX_READ_BYTES = 262144;
18474
18479
  var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
@@ -18566,7 +18571,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
18566
18571
  return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
18567
18572
  }, "contextEvidenceRequest");
18568
18573
 
18569
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
18574
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
18570
18575
  var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
18571
18576
  var ACTIVITY = `
18572
18577
  SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
@@ -18676,13 +18681,14 @@ var emailsAfter = /* @__PURE__ */ __name((database, accountId, afterId, limit, i
18676
18681
  }, "emailsAfter");
18677
18682
  var mailActivity = /* @__PURE__ */ __name((database) => ({
18678
18683
  emailsAfter: /* @__PURE__ */ __name(async (accountId, afterId, limit, ids) => emailsAfter(database, accountId, afterId, limit, ids), "emailsAfter"),
18684
+ emailsBefore: /* @__PURE__ */ __name(async (accountId, beforeId, limit) => database.prepare(`${MARKED} WHERE e.id < ? AND e.account_id = ? AND e.deleted_at IS NULL ORDER BY e.id DESC LIMIT ?`).all(beforeId, accountId, limit).map(markedOf), "emailsBefore"),
18679
18685
  newestEmailId: /* @__PURE__ */ __name(async (accountId) => Number(database.prepare("SELECT max(id) AS id FROM emails WHERE account_id = ?").get(accountId)?.id ?? 0), "newestEmailId"),
18680
18686
  statesLike: /* @__PURE__ */ __name(async (accountId, prefix) => database.prepare("SELECT key, value, updated_at FROM sync_cursors WHERE account_id = ? AND substr(key, 1, ?) = ?").all(accountId, prefix.length, prefix).map((row2) => ({ key: String(row2.key), value: String(row2.value), at: Number(row2.updated_at) })), "statesLike"),
18681
18687
  emailMarks: /* @__PURE__ */ __name(async (accountId, externalIds) => emailMarks(database, accountId, externalIds), "emailMarks"),
18682
18688
  threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
18683
18689
  }), "mailActivity");
18684
18690
 
18685
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
18691
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
18686
18692
  var GREETING = new RegExp("^(hi|hello|hey|dear|greetings|good (morning|afternoon|evening)|\u043F\u0440\u0438\u0432\u0435\u0442|\u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439(\u0442\u0435)?|\u0434\u043E\u0431\u0440(\u044B\u0439|\u043E\u0435|\u043E\u0433\u043E) (\u0434\u0435\u043D\u044C|\u0432\u0435\u0447\u0435\u0440|\u0443\u0442\u0440\u043E|\u0443\u0442\u0440\u0430|\u0434\u043D\u044F)|hola|buen(os|as) (d\xEDas|dias|tardes|noches)|estimad[oa]s?|querid[oa]s?)(?![\\p{L}\\p{N}])([\\s,]+\\p{L}[\\p{L}.'\u2019-]*){0,3}\\s*[,!.:]?$", "iu");
18687
18693
  var SIGN_OFF = /^(best|best regards|best wishes|kind regards|warm regards|regards|thanks|thanks again|thanks a lot|thank you|many thanks|cheers|sincerely|yours|yours truly|yours sincerely|br|с уважением|спасибо|заранее спасибо|всего доброго|всего хорошего|un saludo|saludos|saludos cordiales|atentamente|gracias|muchas gracias)[\s,.!]*$/iu;
18688
18694
  var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
@@ -18823,7 +18829,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
18823
18829
  return text6 || body2.trim();
18824
18830
  }, "mailOwnText");
18825
18831
 
18826
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
18832
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
18827
18833
  var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
18828
18834
  var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
18829
18835
  k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
@@ -18933,7 +18939,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
18933
18939
  return emails3 + threads;
18934
18940
  }, "drainEmailIndex");
18935
18941
 
18936
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
18942
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
18937
18943
  var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
18938
18944
  SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
18939
18945
  var folderEmails = /* @__PURE__ */ __name((database, accountId, folder, uidvalidity) => database.prepare(`SELECT l.uid, e.external_id, coalesce(e.received_at, e.sent_at) AS at, e.read, e.flagged,
@@ -19031,7 +19037,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
19031
19037
  var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
19032
19038
  SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
19033
19039
 
19034
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
19040
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
19035
19041
  var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
19036
19042
  emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
19037
19043
  last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
@@ -19081,7 +19087,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
19081
19087
  return threads.length;
19082
19088
  }, "markEmailsRestored");
19083
19089
 
19084
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
19090
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
19085
19091
  var sorted = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.map(sorted) : value !== null && typeof value === "object" ? Object.fromEntries(Object.keys(value).sort().map((key2) => [key2, sorted(value[key2])])) : value, "sorted");
19086
19092
  var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
19087
19093
  var ruleOf = /* @__PURE__ */ __name((row2) => ({
@@ -19148,7 +19154,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
19148
19154
  }
19149
19155
  }), "mailRulesOver");
19150
19156
 
19151
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
19157
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
19152
19158
  var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
19153
19159
  database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
19154
19160
  VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
@@ -19156,7 +19162,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
19156
19162
  reason = excluded.reason, updated_at = excluded.updated_at WHERE link_reviews.status = 'open'`).run(linkable.type, linkable.id, entity, JSON.stringify([...candidates].sort((a, b) => a - b)), reason, now2, now2);
19157
19163
  }, "reviewLink");
19158
19164
 
19159
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
19165
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
19160
19166
  function checkMeetingCancelled(signal) {
19161
19167
  if (!signal?.aborted)
19162
19168
  return;
@@ -19167,7 +19173,7 @@ function checkMeetingCancelled(signal) {
19167
19173
  }
19168
19174
  __name(checkMeetingCancelled, "checkMeetingCancelled");
19169
19175
 
19170
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
19176
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
19171
19177
  var meetingOf = /* @__PURE__ */ __name((row2) => ({
19172
19178
  id: Number(row2.id),
19173
19179
  accountId: Number(row2.account_id),
@@ -19217,7 +19223,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
19217
19223
  createdAt: Number(row2.created_at)
19218
19224
  }), "transcriptRowOf");
19219
19225
 
19220
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
19226
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
19221
19227
  var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
19222
19228
  var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
19223
19229
  var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
@@ -19384,7 +19390,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
19384
19390
  }
19385
19391
  }), "meetingReadsOver");
19386
19392
 
19387
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
19393
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
19388
19394
  var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
19389
19395
  const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
19390
19396
  const params = [input.accountId];
@@ -19427,7 +19433,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
19427
19433
  return { clauses, params };
19428
19434
  }, "meetingSelectionSql");
19429
19435
 
19430
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
19436
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
19431
19437
  var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
19432
19438
  async meetingChatLines(input) {
19433
19439
  checkMeetingCancelled(input.signal);
@@ -19455,7 +19461,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
19455
19461
  }
19456
19462
  }), "meetingChatLinesOver");
19457
19463
 
19458
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
19464
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
19459
19465
  var MESSAGE_FIELDS = {
19460
19466
  pk: messages.id,
19461
19467
  nativeId: messages.externalId,
@@ -19626,7 +19632,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
19626
19632
  storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
19627
19633
  }), "chatActivity");
19628
19634
 
19629
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
19635
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
19630
19636
  var HIT_FIELDS = {
19631
19637
  ...MESSAGE_FIELDS,
19632
19638
  chatTitle: sql`${chats.title}`.as("chat_title"),
@@ -19725,7 +19731,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
19725
19731
  };
19726
19732
  }, "directReplies");
19727
19733
 
19728
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
19734
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
19729
19735
  var identityRow = /* @__PURE__ */ __name(({ orm }, { provider, id: id2 }) => orm.select({ pk: identities.id, personPk: identityLinks.personId }).from(identities).innerJoin(identityLinks, eq(identityLinks.identityId, identities.id)).where(and(eq(identities.provider, provider), eq(identities.externalId, id2))).get(), "identityRow");
19730
19736
  var required = /* @__PURE__ */ __name((context, ref3) => {
19731
19737
  const found2 = identityRow(context, ref3);
@@ -19856,7 +19862,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
19856
19862
  }, "mentioning");
19857
19863
  var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
19858
19864
 
19859
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
19865
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
19860
19866
  var missing2 = /* @__PURE__ */ __name(() => {
19861
19867
  throw new CliError("not_found", "Meeting, participant or selected target not found");
19862
19868
  }, "missing");
@@ -19978,7 +19984,7 @@ function meetingContextLinksOver(context) {
19978
19984
  }
19979
19985
  __name(meetingContextLinksOver, "meetingContextLinksOver");
19980
19986
 
19981
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
19987
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
19982
19988
  var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
19983
19989
  var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
19984
19990
  var summaryOf = /* @__PURE__ */ __name((row2) => ({
@@ -20007,7 +20013,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
20007
20013
  return row2 ? summaryText(summaryOf(row2)) : null;
20008
20014
  }, "indexedText");
20009
20015
 
20010
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
20016
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
20011
20017
  var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
20012
20018
  var meetingCurrentIndexRows = `
20013
20019
  SELECT 'meeting_transcript_row' AS indexable_type,r.id,r.id*4+1 AS rid,1 AS live,coalesce(length(CAST(r.text AS BLOB)),0) AS bytes FROM meeting_transcript_rows r JOIN meeting_transcripts t ON t.id=r.meeting_transcript_id JOIN meetings m ON m.id=t.meeting_id WHERE m.account_id=? AND m.deleted_at IS NULL AND t.deleted_at IS NULL AND t.superseded_at IS NULL
@@ -20038,7 +20044,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
20038
20044
  }, "invalidateMeetingStems");
20039
20045
  var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
20040
20046
 
20041
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
20047
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
20042
20048
  function meetingHitIndexOver({ database, now: now2 }) {
20043
20049
  return {
20044
20050
  async indexSearch(original) {
@@ -20106,10 +20112,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
20106
20112
  }
20107
20113
  __name(meetingHitIndexOver, "meetingHitIndexOver");
20108
20114
 
20109
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20115
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20110
20116
  import { createHash as createHash5 } from "node:crypto";
20111
20117
 
20112
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/trigrams.js
20118
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/trigrams.js
20113
20119
  var trigrams = /* @__PURE__ */ __name((term) => {
20114
20120
  const padded = ` ${term} `;
20115
20121
  const pieces = /* @__PURE__ */ new Set();
@@ -20118,7 +20124,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
20118
20124
  return [...pieces];
20119
20125
  }, "trigrams");
20120
20126
 
20121
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/correct.js
20127
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/correct.js
20122
20128
  var SHORTEST_CORRECTION = 3;
20123
20129
  var maxEdits = /* @__PURE__ */ __name((word2) => word2.length <= 4 ? 1 : 2, "maxEdits");
20124
20130
  var editDistance = /* @__PURE__ */ __name((a, b, max) => {
@@ -20165,7 +20171,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
20165
20171
  return corrections;
20166
20172
  }, "correctWords");
20167
20173
 
20168
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/garbled.js
20174
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/garbled.js
20169
20175
  var SHORTEST_GARBLED = 4;
20170
20176
  var MOST_WIDENED = 64;
20171
20177
  var plain = /* @__PURE__ */ __name((word2) => word2.replaceAll("\u044D", "\u0435"), "plain");
@@ -20257,7 +20263,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
20257
20263
  return found2.map((words3) => words3.sort((a, b) => a.distance - b.distance || b.docs - a.docs || a.term.localeCompare(b.term)).slice(0, MOST_WIDENED).map((word2) => word2.term));
20258
20264
  }, "widenWords");
20259
20265
 
20260
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
20266
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
20261
20267
  import { readFileSync } from "node:fs";
20262
20268
  var loaded;
20263
20269
  var dictionary = /* @__PURE__ */ __name(() => {
@@ -20316,7 +20322,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word2) => {
20316
20322
  return false;
20317
20323
  }, "knownRussianWord");
20318
20324
 
20319
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
20325
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
20320
20326
  var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
20321
20327
  var MOST_WORDS = 128;
20322
20328
  var quote = /* @__PURE__ */ __name((word2) => `"${word2.replaceAll('"', '""')}"`, "quote");
@@ -20543,7 +20549,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
20543
20549
  return check3(tree);
20544
20550
  }, "matchMeetingText");
20545
20551
 
20546
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20552
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20547
20553
  var fail3 = /* @__PURE__ */ __name((message2) => {
20548
20554
  throw new CliError("validation_error", message2);
20549
20555
  }, "fail");
@@ -20725,7 +20731,7 @@ function meetingHitSearchOver({ database }) {
20725
20731
  }
20726
20732
  __name(meetingHitSearchOver, "meetingHitSearchOver");
20727
20733
 
20728
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
20734
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
20729
20735
  var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
20730
20736
  async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
20731
20737
  positiveReadInteger(accountId, "accountId");
@@ -20757,7 +20763,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
20757
20763
  }
20758
20764
  }), "meetingLanguagesOver");
20759
20765
 
20760
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
20766
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
20761
20767
  import { createHash as createHash6 } from "node:crypto";
20762
20768
  var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
20763
20769
  if (value === void 0)
@@ -20847,7 +20853,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
20847
20853
  }
20848
20854
  }), "meetingParticipantSearchOver");
20849
20855
 
20850
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
20856
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
20851
20857
  var preparationQueries = {
20852
20858
  participants: {
20853
20859
  fields: "p.id, p.identity_id, p.display_name, l.person_id",
@@ -20897,7 +20903,7 @@ var preparationQueries = {
20897
20903
  }
20898
20904
  };
20899
20905
 
20900
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
20906
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
20901
20907
  var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
20902
20908
  async preparationContext(original) {
20903
20909
  const input = validateMeetingPreparationContext(original);
@@ -20938,7 +20944,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
20938
20944
  }
20939
20945
  }), "meetingPreparationContextOver");
20940
20946
 
20941
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
20947
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
20942
20948
  var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
20943
20949
  SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
20944
20950
  WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
@@ -20952,7 +20958,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
20952
20958
  JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
20953
20959
  )`, "preparationSubjects");
20954
20960
 
20955
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
20961
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
20956
20962
  var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
20957
20963
  async preparationKnowledge(original) {
20958
20964
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -20997,7 +21003,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
20997
21003
  }
20998
21004
  }), "meetingPreparationKnowledgeOver");
20999
21005
 
21000
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
21006
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
21001
21007
  var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
21002
21008
  async preparationNotes(original) {
21003
21009
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -21050,7 +21056,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
21050
21056
  }
21051
21057
  }), "meetingPreparationNotesOver");
21052
21058
 
21053
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
21059
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
21054
21060
  var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
21055
21061
  async relatedHistory(original) {
21056
21062
  const input = validateMeetingRelatedHistory(original);
@@ -21121,7 +21127,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
21121
21127
  }
21122
21128
  }), "meetingRelatedHistoryOver");
21123
21129
 
21124
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
21130
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
21125
21131
  var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
21126
21132
  var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
21127
21133
  var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
@@ -21202,7 +21208,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
21202
21208
  }
21203
21209
  }), "meetingReviewOver");
21204
21210
 
21205
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
21211
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
21206
21212
  var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
21207
21213
  var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
21208
21214
  if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
@@ -21256,7 +21262,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
21256
21262
  }
21257
21263
  }), "meetingSeriesHistoryOver");
21258
21264
 
21259
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
21265
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
21260
21266
  var MOST_ROWS = 5e5;
21261
21267
  var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
21262
21268
  EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
@@ -21325,7 +21331,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
21325
21331
  }
21326
21332
  }), "meetingStatsOver");
21327
21333
 
21328
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
21334
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
21329
21335
  var CURSOR_KEY = "meetings";
21330
21336
  var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
21331
21337
  id: Number(row2.id),
@@ -21894,7 +21900,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
21894
21900
  };
21895
21901
  }, "meetingStoreOver");
21896
21902
 
21897
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
21903
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
21898
21904
  var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
21899
21905
  const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
21900
21906
  return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
@@ -21920,7 +21926,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
21920
21926
  orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
21921
21927
  }, "release");
21922
21928
 
21923
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
21929
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
21924
21930
  var THREAD_COLUMNS = {
21925
21931
  subject: {
21926
21932
  where: /* @__PURE__ */ __name(({ value }) => ({
@@ -21937,7 +21943,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
21937
21943
  AND (${filter.where?.sql ?? "1"}) ORDER BY coalesce(last_email_at, 0) DESC, id DESC LIMIT ? OFFSET ?`).all(filter.accountId ?? null, filter.accountId ?? null, filter.includeDeleted ? 1 : 0, ...filter.where?.params ?? [], limit, offset);
21938
21944
  }, "threadRows");
21939
21945
 
21940
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
21946
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
21941
21947
  var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
21942
21948
  id: `email:${place.emailId}`,
21943
21949
  chatId: place.threadExternalId,
@@ -22493,7 +22499,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
22493
22499
  }
22494
22500
  }), "mailStoreOver");
22495
22501
 
22496
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/dictionary.js
22502
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/dictionary.js
22497
22503
  import { readFileSync as readFileSync2 } from "node:fs";
22498
22504
  var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
22499
22505
  var folded4 = /* @__PURE__ */ __name((word2) => /^[а-яё'-]*$/.test(word2) ? word2.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word2), "folded");
@@ -22583,7 +22589,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
22583
22589
  }, "knownWord");
22584
22590
  var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
22585
22591
 
22586
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
22592
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
22587
22593
  var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
22588
22594
  var readsTranscripts = /* @__PURE__ */ __name((node) => (node.operator === "term" || node.operator === "phrase") && /[\p{L}\p{N}]/u.test(normalize(node.value)) && (node.field === "transcript" || node.implicit === true && (node.field === "text" || node.field === "exact")), "readsTranscripts");
22589
22595
  var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
@@ -22669,7 +22675,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
22669
22675
  return found2;
22670
22676
  }, "spokenTranscripts");
22671
22677
 
22672
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
22678
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
22673
22679
  var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
22674
22680
  const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
22675
22681
  if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
@@ -22716,7 +22722,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
22716
22722
  });
22717
22723
  }, "placeHits");
22718
22724
 
22719
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
22725
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
22720
22726
  var GROUPS = {
22721
22727
  chat: {
22722
22728
  key: "m.chat_id",
@@ -22738,7 +22744,7 @@ var GROUPS = {
22738
22744
  }
22739
22745
  };
22740
22746
 
22741
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
22747
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
22742
22748
  var MESSAGES2 = {
22743
22749
  rows: "messages",
22744
22750
  threads: "chats",
@@ -23221,7 +23227,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
23221
23227
  };
23222
23228
  }, "runCompiled");
23223
23229
 
23224
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
23230
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
23225
23231
  function invalidMetadata() {
23226
23232
  throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
23227
23233
  }
@@ -23323,7 +23329,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
23323
23329
  };
23324
23330
  }), "counterTargets");
23325
23331
 
23326
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
23332
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
23327
23333
  var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
23328
23334
  var fileAttachments = /* @__PURE__ */ __name(({ database }, accountKey, { chatKey, messageId, beforePk, limit }) => database.prepare(`SELECT att.id AS pk, c.external_id AS chat_id, m.external_id AS message_id, att.position, att.kind, att.name, att.mime,
23329
23335
  att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
@@ -23442,7 +23448,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
23442
23448
  }));
23443
23449
  }, "attachmentViews");
23444
23450
 
23445
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
23451
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
23446
23452
  var transcript = /* @__PURE__ */ __name(({ orm }, chatKey, messageId) => orm.select({ text: messageTranscripts.text, source: messageTranscripts.source }).from(messageTranscripts).where(and(eq(messageTranscripts.chatId, chatKey), eq(messageTranscripts.messageExternalId, messageId))).get(), "transcript");
23447
23453
  var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
23448
23454
  const { orm, database, now: now2 } = context;
@@ -23480,7 +23486,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
23480
23486
  keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
23481
23487
  }, "intoVoiceAttachment");
23482
23488
 
23483
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
23489
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
23484
23490
  var FIELDS = [
23485
23491
  "threadExternalId",
23486
23492
  "senderIdentityId",
@@ -23797,7 +23803,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
23797
23803
  reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
23798
23804
  }, "writeDerivedReactions");
23799
23805
 
23800
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/keys.js
23806
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/keys.js
23801
23807
  var keysOver = /* @__PURE__ */ __name((context) => {
23802
23808
  const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
23803
23809
  const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
@@ -23818,7 +23824,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
23818
23824
  };
23819
23825
  }, "keysOver");
23820
23826
 
23821
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
23827
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
23822
23828
  var accountGroupsOf = /* @__PURE__ */ __name((database) => {
23823
23829
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
23824
23830
  if (!row2)
@@ -23853,7 +23859,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
23853
23859
  database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
23854
23860
  }, "saveProfile");
23855
23861
 
23856
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
23862
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
23857
23863
  var BOT_KINDS = ["agent", "rule", "script", "integration"];
23858
23864
  var ownerPerson = /* @__PURE__ */ __name((database) => {
23859
23865
  const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
@@ -23910,7 +23916,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
23910
23916
  return { sql: bot("pb.name = ?"), params: [by.bot] };
23911
23917
  }, "proposedBySql");
23912
23918
 
23913
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
23919
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
23914
23920
  var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
23915
23921
  const owner = ownerPerson(context.database).id;
23916
23922
  const strays = context.database.prepare("SELECT DISTINCT l.person_id AS person FROM identity_links l JOIN identities i ON i.id = l.identity_id JOIN accounts a ON a.provider = i.provider AND a.external_id = i.external_id WHERE l.person_id <> ?").all(owner);
@@ -23931,7 +23937,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
23931
23937
  return personOf(context, ref3);
23932
23938
  }, "linkToOwner");
23933
23939
 
23934
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
23940
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
23935
23941
  var PROVIDERS_SETTING = "providers";
23936
23942
  var storedProvidersOf = /* @__PURE__ */ __name((database) => {
23937
23943
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
@@ -23966,7 +23972,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
23966
23972
  });
23967
23973
  }, "registerProvider");
23968
23974
 
23969
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
23975
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
23970
23976
  var DAY3 = 864e5;
23971
23977
  var RECENTLY_CLOSED_MS = 14 * DAY3;
23972
23978
  var TEXT_LIMIT = 20;
@@ -24165,7 +24171,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
24165
24171
  };
24166
24172
  }, "taskSimilarityOver");
24167
24173
 
24168
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
24174
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
24169
24175
  var SETTING3 = "taskCategories";
24170
24176
  var savedTaskCategories = /* @__PURE__ */ __name((database) => {
24171
24177
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
@@ -24184,7 +24190,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
24184
24190
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(SETTING3, JSON.stringify(categories), now2);
24185
24191
  }, "saveTaskCategories");
24186
24192
 
24187
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
24193
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
24188
24194
  var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
24189
24195
  var ALLOWED = "taskAgentClose";
24190
24196
  var MIN = "taskAgentCloseMin";
@@ -24240,10 +24246,10 @@ var SUGGESTION_COLUMNS = [
24240
24246
  ];
24241
24247
  var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
24242
24248
 
24243
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
24249
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
24244
24250
  var MAIL_FINDINGS_KIND = "mail_findings";
24245
24251
 
24246
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/decisions.js
24252
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/decisions.js
24247
24253
  var TASK_CLOSE_KIND = "task_close";
24248
24254
  var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
24249
24255
  var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
@@ -24291,7 +24297,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
24291
24297
  }, "assertMayDecide");
24292
24298
  var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
24293
24299
 
24294
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
24300
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
24295
24301
  var PROFILE_PLACEHOLDER = "<profile>";
24296
24302
  var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
24297
24303
  var openKind = /* @__PURE__ */ __name((kind4) => kind4 === "email" ? "message" : kind4 === "email_thread" ? "chat" : kind4 === "unknown" ? void 0 : kind4, "openKind");
@@ -24344,7 +24350,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
24344
24350
  return `${WORDS2[summary.kind]} ${named2}${notes2 === "" ? "" : ` (${notes2})`}`;
24345
24351
  }, "refLabel");
24346
24352
 
24347
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
24353
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
24348
24354
  var EXCERPT_CHARS = 280;
24349
24355
  var TITLE_CHARS = 120;
24350
24356
  var MEMORY_TITLE_CHARS = 80;
@@ -24705,7 +24711,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
24705
24711
  var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
24706
24712
  var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read2]) => [text6, summaryOf2(read2, options.excerpt === true)])), "refSummariesOf");
24707
24713
 
24708
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
24714
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
24709
24715
  var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
24710
24716
  ref: ref3,
24711
24717
  kind: read2.kind,
@@ -24741,7 +24747,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
24741
24747
  });
24742
24748
  }, "evidenceSourcesOf");
24743
24749
 
24744
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/attachments/limits.js
24750
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/attachments/limits.js
24745
24751
  var MAX_FILE_BYTES = 50 * 1024 * 1024;
24746
24752
  var MAX_TEXT_CHARS = 2e6;
24747
24753
  var ATTACHMENT_LIMIT_ENV = [
@@ -24767,7 +24773,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
24767
24773
  return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
24768
24774
  }, "pdfPreviewLimits");
24769
24775
 
24770
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/ulid.js
24776
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/ulid.js
24771
24777
  import { randomBytes } from "node:crypto";
24772
24778
  var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
24773
24779
  var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
@@ -24780,7 +24786,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
24780
24786
  return time3 + random;
24781
24787
  }, "ulid");
24782
24788
 
24783
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
24789
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
24784
24790
  var FOLDED_FIELDS = ["title", "site", "language", "author"];
24785
24791
  var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
24786
24792
  if (!meta && !sections?.length)
@@ -24801,7 +24807,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
24801
24807
  return typeof language === "string" && language !== "" ? language : null;
24802
24808
  }, "languageOf");
24803
24809
 
24804
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
24810
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
24805
24811
  var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
24806
24812
  var objectOf2 = /* @__PURE__ */ __name((value) => {
24807
24813
  if (isObject(value))
@@ -25044,7 +25050,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
25044
25050
  };
25045
25051
  }, "filesStoreOver");
25046
25052
 
25047
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
25053
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
25048
25054
  var IMPORTED_DOCUMENT_QUERY = defineQuery({
25049
25055
  entity: "document",
25050
25056
  backend: "sql",
@@ -25090,7 +25096,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
25090
25096
  return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
25091
25097
  }, "importedDocumentWhere");
25092
25098
 
25093
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
25099
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
25094
25100
  var NOTE_FORMATS = ["obsidian", "markdown"];
25095
25101
  var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
25096
25102
  var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
@@ -25616,7 +25622,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
25616
25622
  };
25617
25623
  }, "notesStoreOver");
25618
25624
 
25619
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
25625
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
25620
25626
  var NAMED = "SELECT m.*, b.name AS author_name, b.kind AS author_kind FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
25621
25627
  var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
25622
25628
  var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -25838,7 +25844,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
25838
25844
  };
25839
25845
  }, "memoriesStoreOver");
25840
25846
 
25841
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
25847
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
25842
25848
  var DEFAULT_FIRST_PASS_PER_CHAT = 0;
25843
25849
  var KEY = "taskFirstPassPerChat";
25844
25850
  var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
@@ -25858,7 +25864,34 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
25858
25864
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(KEY, String(value), now2);
25859
25865
  }, "saveFirstPassPerChat");
25860
25866
 
25861
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
25867
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/external-links.js
25868
+ var EXTERNAL_SERVICE = /^[a-z][a-z0-9-]{0,31}$/;
25869
+ var EXTERNAL_ID_CHARS = 200;
25870
+ var SOURCE_URL_CHARS = 2e3;
25871
+ var externalIdOf = /* @__PURE__ */ __name((value) => {
25872
+ const text6 = value.trim();
25873
+ const colon = text6.indexOf(":");
25874
+ const provider = colon === -1 ? "" : text6.slice(0, colon).toLowerCase();
25875
+ const id2 = colon === -1 ? "" : text6.slice(colon + 1).trim();
25876
+ if (!EXTERNAL_SERVICE.test(provider) || id2.length === 0 || id2.length > EXTERNAL_ID_CHARS || /\s/.test(id2))
25877
+ throw new CliError("validation_error", `an external id is <service>:<id>, such as avito:4512345678, at most ${EXTERNAL_ID_CHARS} characters after the colon and no spaces, not "${value}"`, { reason: "task.external-id" });
25878
+ return { provider, id: id2 };
25879
+ }, "externalIdOf");
25880
+ var externalIdText = /* @__PURE__ */ __name((provider, id2) => provider == null || id2 == null ? null : `${String(provider)}:${String(id2)}`, "externalIdText");
25881
+ var sourceUrlOf = /* @__PURE__ */ __name((value, reason = "task.source-url") => {
25882
+ const text6 = value.trim();
25883
+ let url;
25884
+ try {
25885
+ url = new URL(text6);
25886
+ } catch {
25887
+ url = void 0;
25888
+ }
25889
+ if (!url || url.protocol !== "http:" && url.protocol !== "https:" || text6.length > SOURCE_URL_CHARS)
25890
+ throw new CliError("validation_error", `a source URL is an http or https address of at most ${SOURCE_URL_CHARS} characters, not "${value}"`, { reason });
25891
+ return text6;
25892
+ }, "sourceUrlOf");
25893
+
25894
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
25862
25895
  var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
25863
25896
  var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
25864
25897
  name,
@@ -26081,7 +26114,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
26081
26114
  return root === void 0 ? void 0 : { ...query, root };
26082
26115
  }, "withoutField");
26083
26116
 
26084
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
26117
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
26085
26118
  var authorNamed = /* @__PURE__ */ __name((database, row2) => {
26086
26119
  if (row2.author_type == null)
26087
26120
  return null;
@@ -26109,7 +26142,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
26109
26142
  return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
26110
26143
  }, "addComment");
26111
26144
 
26112
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
26145
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
26113
26146
  var TASK_RELATION_KINDS = [
26114
26147
  "blocked-by",
26115
26148
  "follow-up-of",
@@ -26239,7 +26272,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
26239
26272
  };
26240
26273
  }, "taskRelationsStoreOver");
26241
26274
 
26242
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
26275
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
26243
26276
  var TASK_ROLES = ["assignee", "reviewer", "watcher"];
26244
26277
  var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
26245
26278
  var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind4, changes, at) => {
@@ -26325,6 +26358,8 @@ var workTaskOperationsOver = /* @__PURE__ */ __name((context) => {
26325
26358
  revision: Number(row2.revision),
26326
26359
  parent: row2.parent_id == null ? null : reference2(Number(row2.parent_id)),
26327
26360
  source: row2.source_locator == null ? null : String(row2.source_locator),
26361
+ externalId: externalIdText(row2.provider, row2.external_id),
26362
+ sourceUrl: row2.source_url == null ? null : String(row2.source_url),
26328
26363
  dueAt: iso4(row2.due_at),
26329
26364
  nextCheckAt: iso4(row2.next_check_at),
26330
26365
  closedAt: iso4(row2.closed_at),
@@ -26458,6 +26493,13 @@ var workTaskOperationsOver = /* @__PURE__ */ __name((context) => {
26458
26493
  change("close_reason", reason);
26459
26494
  change("close_reason_folded", folded3(reason));
26460
26495
  }
26496
+ if (fields4.externalId !== void 0) {
26497
+ const external = fields4.externalId === null ? null : externalIdOf(fields4.externalId);
26498
+ change("provider", external?.provider ?? null);
26499
+ change("external_id", external?.id ?? null);
26500
+ }
26501
+ if (fields4.sourceUrl !== void 0)
26502
+ change("source_url", fields4.sourceUrl === null ? null : sourceUrlOf(fields4.sourceUrl));
26461
26503
  if (fields4.category !== void 0)
26462
26504
  change("category", fields4.category, "category");
26463
26505
  if (fields4.type !== void 0 && fields4.type !== before2.type) {
@@ -26759,7 +26801,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
26759
26801
  };
26760
26802
  }, "workTasksOver");
26761
26803
 
26762
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
26804
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
26763
26805
  var taskCloseOver = /* @__PURE__ */ __name((context) => {
26764
26806
  const { database, now: now2 } = context;
26765
26807
  const liveRow = /* @__PURE__ */ __name((id2) => {
@@ -26808,7 +26850,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
26808
26850
  };
26809
26851
  }, "taskCloseOver");
26810
26852
 
26811
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
26853
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
26812
26854
  var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
26813
26855
  const { database, now: now2 } = context;
26814
26856
  const required3 = /* @__PURE__ */ __name((id2) => {
@@ -27026,7 +27068,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
27026
27068
  };
27027
27069
  }, "taskPairsOver");
27028
27070
 
27029
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
27071
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
27030
27072
  var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
27031
27073
  var TASK_STATS_SQL = {
27032
27074
  rows: /* @__PURE__ */ __name((board, filter) => `SELECT t.source_group, t.source_kind, t.project_id, t.status, t.created_at, t.closed_at FROM tasks t WHERE ${board ? BOARD_SCOPE : ACCOUNT_SCOPE}${filter} ORDER BY t.created_at, t.id`, "rows"),
@@ -27065,7 +27107,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
27065
27107
  }, "statNames")
27066
27108
  }), "taskStatsOver");
27067
27109
 
27068
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
27110
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
27069
27111
  var COLUMNS3 = "t.id AS row_id, t.package_id, t.source_locator, t.source_kind, t.source_group, t.type, t.status, t.close_reason, t.source, t.created_at, t.due_at, t.closed_at, t.closed_by_type, t.closed_by_id, t.key, t.category, t.claimed_by, t.claimed_until, p.name AS account";
27070
27112
  var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
27071
27113
  const key2 = inboxKey(account);
@@ -27272,7 +27314,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
27272
27314
  throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
27273
27315
  }, "oneOf");
27274
27316
 
27275
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/accounts.js
27317
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/accounts.js
27276
27318
  var accountAccountsOver = /* @__PURE__ */ __name((context) => {
27277
27319
  const { database } = context;
27278
27320
  const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
@@ -27317,7 +27359,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
27317
27359
  };
27318
27360
  }, "accountsStoreOver");
27319
27361
 
27320
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
27362
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
27321
27363
  var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
27322
27364
  var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
27323
27365
  const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
@@ -27341,7 +27383,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
27341
27383
  })), "keepDownloads");
27342
27384
  var keepProviderRefs = /* @__PURE__ */ __name((context, chatKey, messageId, files2) => updatePlaced(context, chatKey, messageId, files2.filter((file) => Object.keys(file.providerRef).length > 0), (file) => refColumn(file.providerRef)), "keepProviderRefs");
27343
27385
 
27344
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/attachments.js
27386
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/attachments.js
27345
27387
  var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
27346
27388
  const { database } = context;
27347
27389
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -27398,7 +27440,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
27398
27440
  }, "keepAttachmentText")
27399
27441
  }), "attachmentsStoreOver");
27400
27442
 
27401
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
27443
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
27402
27444
  var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
27403
27445
  var pointerMover = /* @__PURE__ */ __name((context, type) => {
27404
27446
  const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
@@ -27578,7 +27620,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
27578
27620
  return done;
27579
27621
  }, "rekeyChats");
27580
27622
 
27581
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
27623
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
27582
27624
  var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
27583
27625
  var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
27584
27626
  var CHAT_LIST_KEY = "chat_list_complete";
@@ -27636,7 +27678,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
27636
27678
  return { ...coverage, oldestMessageAt: toIso(oldest) };
27637
27679
  }, "chatCoverage");
27638
27680
 
27639
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/chats.js
27681
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/chats.js
27640
27682
  var chatsStoreOver = /* @__PURE__ */ __name((context) => {
27641
27683
  const { database } = context;
27642
27684
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
@@ -27771,7 +27813,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
27771
27813
  };
27772
27814
  }, "chatsStoreOver");
27773
27815
 
27774
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
27816
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
27775
27817
  import { createHash as createHash7 } from "node:crypto";
27776
27818
  var BATCH_CONTEXT = 50;
27777
27819
  var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
@@ -27909,7 +27951,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
27909
27951
  var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
27910
27952
  ${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
27911
27953
 
27912
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
27954
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
27913
27955
  import { setTimeout } from "node:timers/promises";
27914
27956
  var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
27915
27957
  var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
@@ -28221,7 +28263,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
28221
28263
  AND NOT EXISTS (SELECT 1 FROM messages d
28222
28264
  WHERE d.id IN (l.message_id, l.parent_id) AND d.deleted_at > l.created_at)`).map(({ id: id2, parent: parent2 }) => [id2, parent2])), "agentAnswers");
28223
28265
 
28224
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/conversations.js
28266
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/conversations.js
28225
28267
  var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
28226
28268
  const { database } = context;
28227
28269
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -28328,7 +28370,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
28328
28370
  };
28329
28371
  }, "conversationsStoreOver");
28330
28372
 
28331
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/counters.js
28373
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/counters.js
28332
28374
  var LIVE_MESSAGE = "SELECT m.id AS pk FROM messages m JOIN chats c ON c.id=m.chat_id JOIN accounts ac ON ac.id=m.account_id WHERE ac.provider=? AND ac.external_id=? AND c.external_id=? AND m.external_id=? AND m.deleted_at IS NULL";
28333
28375
  var accountCountersOver = /* @__PURE__ */ __name((context) => {
28334
28376
  const { database } = context;
@@ -28353,7 +28395,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
28353
28395
  counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
28354
28396
  }), "countersStoreOver");
28355
28397
 
28356
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
28398
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
28357
28399
  var MENTION_STATUSES = ["found", "linked", "dismissed"];
28358
28400
  var MENTION_QUERY = defineQuery({
28359
28401
  entity: "mention",
@@ -28569,7 +28611,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
28569
28611
  return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
28570
28612
  }, "listPlaces");
28571
28613
 
28572
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/mentions.js
28614
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/mentions.js
28573
28615
  var accountMentionsOver = /* @__PURE__ */ __name((context) => {
28574
28616
  const { database } = context;
28575
28617
  const { findAccountPk: findAccountPk2 } = keysOver(context);
@@ -28604,7 +28646,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
28604
28646
  places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
28605
28647
  }), "mentionsStoreOver");
28606
28648
 
28607
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
28649
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
28608
28650
  var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
28609
28651
  const read2 = database.prepare("SELECT m.id, m.external_id, m.text, m.sent_at, m.sender_name, coalesce(m.sender_chat_external_id, i.external_id) AS sender_id FROM messages m LEFT JOIN identities i ON i.id = m.sender_identity_id WHERE m.chat_id = ? AND m.deleted_at IS NULL AND (m.text LIKE '%google.com%' OR m.text LIKE '%forms.gle%') " + (messageId === void 0 ? "" : "AND m.external_id = ? ") + "ORDER BY m.sent_at DESC, m.id DESC");
28610
28652
  const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
@@ -28619,7 +28661,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
28619
28661
  }));
28620
28662
  }, "documentLinkMessages");
28621
28663
 
28622
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
28664
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
28623
28665
  var stemmerFor = stemmerCache();
28624
28666
  var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
28625
28667
  if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
@@ -28663,7 +28705,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
28663
28705
  });
28664
28706
  }, "laterSharingRare");
28665
28707
 
28666
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/messages.js
28708
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/messages.js
28667
28709
  var accountMessagesOver = /* @__PURE__ */ __name((context) => {
28668
28710
  const { database } = context;
28669
28711
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
@@ -28798,7 +28840,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
28798
28840
  laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
28799
28841
  }), "messagesStoreOver");
28800
28842
 
28801
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
28843
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
28802
28844
  var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
28803
28845
  var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
28804
28846
  var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
@@ -28855,7 +28897,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
28855
28897
  });
28856
28898
  }, "personPreparation");
28857
28899
 
28858
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
28900
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
28859
28901
  var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
28860
28902
  const id2 = Number(uid);
28861
28903
  if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
@@ -28863,7 +28905,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
28863
28905
  return Boolean(database.prepare("SELECT 1 FROM persons p JOIN identity_links l ON l.person_id=p.id JOIN account_identities a ON a.identity_id=l.identity_id WHERE p.id=? AND a.account_id IN (SELECT value FROM json_each(?)) LIMIT 1").get(id2, JSON.stringify(accountIds)));
28864
28906
  }, "personSeenInAccounts");
28865
28907
 
28866
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
28908
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
28867
28909
  var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
28868
28910
  const row2 = database.prepare("SELECT a.id AS account_id, i.id AS identity_id FROM accounts a JOIN account_identities ai ON ai.account_id=a.id JOIN identities i ON i.id=ai.identity_id WHERE a.provider=? AND a.external_id=? AND i.provider=? AND i.external_id=?").get(key2.provider, key2.account, key2.provider, personId);
28869
28911
  if (!row2)
@@ -28929,7 +28971,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
28929
28971
  return { id: id2, personId, removed: true };
28930
28972
  }, "removeNote");
28931
28973
 
28932
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/people.js
28974
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/people.js
28933
28975
  var accountPeopleOver = /* @__PURE__ */ __name((context) => {
28934
28976
  const { database } = context;
28935
28977
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
@@ -29014,13 +29056,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
29014
29056
  };
29015
29057
  }, "peopleStoreOver");
29016
29058
 
29017
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29059
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29018
29060
  import { createHash as createHash9 } from "node:crypto";
29019
29061
 
29020
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29062
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29021
29063
  import { createHash as createHash8 } from "node:crypto";
29022
29064
 
29023
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
29065
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
29024
29066
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
29025
29067
  var AUTHOR_MEASURES = [
29026
29068
  "messages",
@@ -29160,7 +29202,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
29160
29202
  var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
29161
29203
  var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
29162
29204
 
29163
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
29205
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
29164
29206
  var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
29165
29207
  var exhausted2 = /* @__PURE__ */ __name((budget) => {
29166
29208
  throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
@@ -29382,7 +29424,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
29382
29424
  };
29383
29425
  }, "rankReplyGraph");
29384
29426
 
29385
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29427
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29386
29428
  var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
29387
29429
  var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
29388
29430
  var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
@@ -29556,7 +29598,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
29556
29598
  return { items, evidence, summary, graph: graph.quality };
29557
29599
  }, "calculateAdminStatistics");
29558
29600
 
29559
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
29601
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
29560
29602
  var rankingContextRange = /* @__PURE__ */ __name((root) => {
29561
29603
  const dates = [];
29562
29604
  const visit = /* @__PURE__ */ __name((node, required3) => {
@@ -29578,7 +29620,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
29578
29620
  return dates[0].node.resolution.date;
29579
29621
  }, "rankingContextRange");
29580
29622
 
29581
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
29623
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
29582
29624
  var reactionCounts = /* @__PURE__ */ __name((stored3) => {
29583
29625
  let counts;
29584
29626
  try {
@@ -29873,7 +29915,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
29873
29915
  });
29874
29916
  }, "rankQuery");
29875
29917
 
29876
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29918
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29877
29919
  function fail4(message2, reason = "query.too-large") {
29878
29920
  throw new CliError("validation_error", message2, { reason, complete: false });
29879
29921
  }
@@ -30050,7 +30092,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
30050
30092
  return result;
30051
30093
  }), "adminStatisticsQuery");
30052
30094
 
30053
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
30095
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
30054
30096
  var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
30055
30097
  if (!execution.accounts.length)
30056
30098
  return { conversations: [], chats: [] };
@@ -30068,7 +30110,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
30068
30110
  return { conversations: conversations2, chats: chats2 };
30069
30111
  }, "conversationEligibility");
30070
30112
 
30071
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
30113
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
30072
30114
  import { createHash as createHash10 } from "node:crypto";
30073
30115
  var EVIDENCE_BYTES = 64 * 1024;
30074
30116
  var FINGERPRINT_BYTES = 8 * 1024 * 1024;
@@ -30218,7 +30260,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
30218
30260
  return result;
30219
30261
  }, "rankingEvidence");
30220
30262
 
30221
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
30263
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
30222
30264
  var FAR = Number.MAX_SAFE_INTEGER;
30223
30265
  var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
30224
30266
  const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
@@ -30312,7 +30354,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
30312
30354
  });
30313
30355
  }, "waitingChats");
30314
30356
 
30315
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/queries.js
30357
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/queries.js
30316
30358
  var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
30317
30359
  const mailIndexed = /* @__PURE__ */ __name((execution) => {
30318
30360
  if (execution.corpus === "mail")
@@ -30333,7 +30375,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
30333
30375
  };
30334
30376
  }, "queriesStoreOver");
30335
30377
 
30336
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
30378
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
30337
30379
  var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
30338
30380
  const { database, now: now2 } = context;
30339
30381
  const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
@@ -30372,10 +30414,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
30372
30414
  }));
30373
30415
  }, "chatEventsOf");
30374
30416
 
30375
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30417
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30376
30418
  import { createHash as createHash11 } from "node:crypto";
30377
30419
 
30378
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/calendar.js
30420
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/calendar.js
30379
30421
  var calendarKey = /* @__PURE__ */ __name((zone, by) => {
30380
30422
  const format = new Intl.DateTimeFormat("en-CA", {
30381
30423
  timeZone: zone,
@@ -30395,7 +30437,7 @@ var weekKey = /* @__PURE__ */ __name((day) => {
30395
30437
  return date3.toISOString().slice(0, 10);
30396
30438
  }, "weekKey");
30397
30439
 
30398
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/retention.js
30440
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/retention.js
30399
30441
  var RETENTION_TOLERANCE = 864e5;
30400
30442
  var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
30401
30443
  const { since, until, cutoff, checkpoints, within, limit, by } = options;
@@ -30449,7 +30491,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
30449
30491
  return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
30450
30492
  }, "retentionCohorts");
30451
30493
 
30452
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30494
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30453
30495
  var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
30454
30496
  var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
30455
30497
  validateRetentionOptions(options);
@@ -30580,7 +30622,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
30580
30622
  };
30581
30623
  }, "retentionQuery");
30582
30624
 
30583
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
30625
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
30584
30626
  var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
30585
30627
  var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
30586
30628
  ...isBot === void 0 ? {} : { bot: isBot },
@@ -30711,7 +30753,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
30711
30753
  lastCount: memberCountsOf(context, pk).at(-1) ?? null
30712
30754
  })), "trackedChats");
30713
30755
 
30714
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/roster.js
30756
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/roster.js
30715
30757
  var rosterStoreOver = /* @__PURE__ */ __name((context) => {
30716
30758
  const { database } = context;
30717
30759
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
@@ -30767,7 +30809,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
30767
30809
  };
30768
30810
  }, "rosterStoreOver");
30769
30811
 
30770
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
30812
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
30771
30813
  var pendingNormalization = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM messages WHERE normalized_text IS NULL AND deleted_at IS NULL").get()?.n), "pendingNormalization");
30772
30814
  var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
30773
30815
  const next = database.prepare(`SELECT id AS pk, text FROM messages WHERE normalized_text IS NULL AND deleted_at IS NULL AND id > ? ORDER BY id LIMIT ?`);
@@ -30791,7 +30833,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
30791
30833
  }
30792
30834
  }, "backfillNormalized");
30793
30835
 
30794
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
30836
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
30795
30837
  var INDEX2 = "message_words";
30796
30838
  var searchIndexState2 = /* @__PURE__ */ __name((database) => {
30797
30839
  const row2 = indexRow(database, INDEX2);
@@ -30918,7 +30960,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
30918
30960
  });
30919
30961
  }, "resetSearchIndex");
30920
30962
 
30921
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
30963
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
30922
30964
  var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
30923
30965
  const filled2 = { stemmed: 0, drained: 0 };
30924
30966
  const before2 = stemsState(database);
@@ -31013,7 +31055,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
31013
31055
  return resetStems(database, { now: now2 });
31014
31056
  }, "followDefaultStemmers");
31015
31057
 
31016
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
31058
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
31017
31059
  var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
31018
31060
  var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
31019
31061
  const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
@@ -31035,7 +31077,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
31035
31077
  });
31036
31078
  }, "termCandidates");
31037
31079
 
31038
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/search-index.js
31080
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/search-index.js
31039
31081
  var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
31040
31082
  const { database } = context;
31041
31083
  const stemmerFor2 = stemmerCache();
@@ -31057,7 +31099,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
31057
31099
  };
31058
31100
  }, "searchIndexStoreOver");
31059
31101
 
31060
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
31102
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
31061
31103
  var HISTORY_KEPT = 1e3;
31062
31104
  var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
31063
31105
  var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
@@ -31126,7 +31168,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
31126
31168
  return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
31127
31169
  }, "clearHistory");
31128
31170
 
31129
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/searches.js
31171
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/searches.js
31130
31172
  var searchesStoreOver = /* @__PURE__ */ __name((context) => {
31131
31173
  const { database } = context;
31132
31174
  return {
@@ -31150,7 +31192,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
31150
31192
  };
31151
31193
  }, "searchesStoreOver");
31152
31194
 
31153
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
31195
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
31154
31196
  var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
31155
31197
  var ACTION_OUTCOMES = ["ok", "refused", "failed"];
31156
31198
  var CODE = /^[a-z][a-z0-9_]{0,63}$/;
@@ -31193,7 +31235,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
31193
31235
  };
31194
31236
  }, "agentActionsStoreOver");
31195
31237
 
31196
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
31238
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
31197
31239
  var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
31198
31240
  }) => {
31199
31241
  const { database, now: now2 } = context;
@@ -31252,7 +31294,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
31252
31294
  };
31253
31295
  }, "botUpdateStoreOver");
31254
31296
 
31255
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
31297
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
31256
31298
  var DAY4 = 864e5;
31257
31299
  var accountsOf = /* @__PURE__ */ __name((filter) => {
31258
31300
  if (filter.accountIds !== void 0 && filter.accountId !== void 0)
@@ -31361,7 +31403,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
31361
31403
  return database.prepare(`SELECT e.* FROM events e WHERE ${clauses.join(" AND ")} ORDER BY ${filter.newest ? "e.starts_at DESC, e.id DESC" : "e.starts_at, e.id"} LIMIT ? OFFSET ?`).all(...params, limit, offset).map(eventOf);
31362
31404
  }, "listEvents");
31363
31405
 
31364
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
31406
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
31365
31407
  var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
31366
31408
  var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
31367
31409
  const unseenBefore = unreferenced(database, "identities");
@@ -31416,7 +31458,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
31416
31458
  return { entries: entryIds.length, events: goneEvents.length };
31417
31459
  }, "forgetCalendarRows");
31418
31460
 
31419
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
31461
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
31420
31462
  var calendarOf = /* @__PURE__ */ __name((row2) => ({
31421
31463
  id: Number(row2.id),
31422
31464
  accountId: Number(row2.account_id),
@@ -32003,7 +32045,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
32003
32045
  };
32004
32046
  }, "eventStoreOver");
32005
32047
 
32006
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
32048
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
32007
32049
  var CATALOG_QUERY = defineQuery({
32008
32050
  entity: "document",
32009
32051
  backend: "sql",
@@ -32245,7 +32287,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
32245
32287
  };
32246
32288
  }, "catalogStoreOver");
32247
32289
 
32248
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
32290
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
32249
32291
  var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
32250
32292
  var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
32251
32293
  CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
@@ -32258,7 +32300,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
32258
32300
  THEN 'source-modified' ELSE 'stored-update' END`;
32259
32301
  var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
32260
32302
 
32261
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
32303
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
32262
32304
  var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
32263
32305
  const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
32264
32306
  signal?.throwIfAborted();
@@ -32357,7 +32399,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
32357
32399
  });
32358
32400
  }, "readMeetingContextEvidence");
32359
32401
 
32360
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
32402
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
32361
32403
  var corpora = {
32362
32404
  message: {
32363
32405
  table: "messages",
@@ -32596,7 +32638,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
32596
32638
  }
32597
32639
  }), "contextRecordsOver");
32598
32640
 
32599
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
32641
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
32600
32642
  var NOTE_FIELDS = [
32601
32643
  "text",
32602
32644
  "exact",
@@ -33026,7 +33068,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
33026
33068
  };
33027
33069
  }, "noteSearchOver");
33028
33070
 
33029
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
33071
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
33030
33072
  var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
33031
33073
  var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
33032
33074
  var EVENT_CORPUS = {
@@ -33158,7 +33200,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
33158
33200
  };
33159
33201
  }, "eventSearchOver");
33160
33202
 
33161
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
33203
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
33162
33204
  var refuse = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
33163
33205
  throw new CliError(code, message2, { reason });
33164
33206
  }, "refuse");
@@ -33619,7 +33661,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
33619
33661
  };
33620
33662
  }, "financeStoreOver");
33621
33663
 
33622
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
33664
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
33623
33665
  var refuse2 = /* @__PURE__ */ __name((message2, reason) => {
33624
33666
  throw new CliError("validation_error", message2, { reason });
33625
33667
  }, "refuse");
@@ -33697,7 +33739,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
33697
33739
  };
33698
33740
  }, "paymentEntriesOver");
33699
33741
 
33700
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
33742
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
33701
33743
  var EVIDENCE_FINDINGS_KIND = "evidence_findings";
33702
33744
  var reference = /* @__PURE__ */ __name((raw) => {
33703
33745
  if (/^(document|note):[1-9]\d*$/.test(raw))
@@ -33723,7 +33765,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
33723
33765
  return valid;
33724
33766
  }, "validateEvidenceFindings");
33725
33767
 
33726
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/moment.js
33768
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/moment.js
33727
33769
  var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
33728
33770
  try {
33729
33771
  return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
@@ -33735,7 +33777,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
33735
33777
  }
33736
33778
  }, "calendarMoment");
33737
33779
 
33738
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
33780
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
33739
33781
  var NAMED3 = "SELECT f.*, b.name AS author_name, b.kind AS author_kind FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
33740
33782
  var iso9 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
33741
33783
  var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -33944,7 +33986,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
33944
33986
  };
33945
33987
  }, "factsStoreOver");
33946
33988
 
33947
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
33989
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
33948
33990
  var invalid4 = /* @__PURE__ */ __name((message2) => {
33949
33991
  throw new CliError("validation_error", message2);
33950
33992
  }, "invalid");
@@ -34016,7 +34058,9 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
34016
34058
  title: finding.title,
34017
34059
  type: finding.type,
34018
34060
  description: `${finding.commitment}: ${finding.reason}`,
34019
- ...finding.dueAt ? { dueAt: new Date(finding.dueAt) } : {}
34061
+ ...finding.dueAt ? { dueAt: new Date(finding.dueAt) } : {},
34062
+ ...finding.externalId ? { externalId: finding.externalId } : {},
34063
+ ...finding.sourceUrl ? { sourceUrl: finding.sourceUrl } : {}
34020
34064
  }, agent);
34021
34065
  const id2 = taskRowOf(database, task.id);
34022
34066
  if (id2 === void 0)
@@ -34046,7 +34090,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
34046
34090
  return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
34047
34091
  }, "findingsCoreOver");
34048
34092
 
34049
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
34093
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
34050
34094
  var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
34051
34095
  var PROPOSAL_VERDICTS = ["useful", "not_useful"];
34052
34096
  var iso10 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
@@ -34211,7 +34255,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
34211
34255
  };
34212
34256
  }, "proposedActionsStoreOver");
34213
34257
 
34214
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
34258
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
34215
34259
  var stale = /* @__PURE__ */ __name(() => {
34216
34260
  throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
34217
34261
  reason: "evidence-findings.stale"
@@ -34392,7 +34436,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
34392
34436
  };
34393
34437
  }, "evidenceFindingsStoreOver");
34394
34438
 
34395
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
34439
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
34396
34440
  var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
34397
34441
  var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
34398
34442
  rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
@@ -34445,7 +34489,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
34445
34489
  }, "forPerson")
34446
34490
  }), "involvementStoreOver");
34447
34491
 
34448
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
34492
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
34449
34493
  import { createHash as createHash12 } from "node:crypto";
34450
34494
  var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
34451
34495
  var id = /* @__PURE__ */ __name((value) => {
@@ -34531,7 +34575,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
34531
34575
  };
34532
34576
  }, "meetingProjectsStoreOver");
34533
34577
 
34534
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
34578
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
34535
34579
  var relationOf = /* @__PURE__ */ __name((link3) => ({
34536
34580
  id: link3.id,
34537
34581
  from: link3.from,
@@ -34757,16 +34801,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
34757
34801
  provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
34758
34802
  }, "decidedOrigin");
34759
34803
 
34760
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
34804
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
34761
34805
  import { createHash as createHash15 } from "node:crypto";
34762
34806
 
34763
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34807
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34764
34808
  import { createHash as createHash14 } from "node:crypto";
34765
34809
 
34766
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34810
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34767
34811
  import { createHash as createHash13 } from "node:crypto";
34768
34812
 
34769
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
34813
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
34770
34814
  var consolidationId = /* @__PURE__ */ __name((value, field4) => {
34771
34815
  if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
34772
34816
  throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
@@ -34817,7 +34861,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
34817
34861
  return input;
34818
34862
  }, "consolidationApplyInput");
34819
34863
 
34820
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34864
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34821
34865
  var receiptOf = /* @__PURE__ */ __name((row2) => ({
34822
34866
  id: String(row2.id),
34823
34867
  sourceId: String(row2.source_id),
@@ -34892,7 +34936,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
34892
34936
  }, { beforeCommit: check3 });
34893
34937
  }, "applyTagConsolidation");
34894
34938
 
34895
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34939
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34896
34940
  var selections = [
34897
34941
  ["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
34898
34942
  ["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
@@ -35036,7 +35080,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
35036
35080
  };
35037
35081
  }, "previewRows");
35038
35082
 
35039
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
35083
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
35040
35084
  var kinds = ["project", "tag", "topic"];
35041
35085
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
35042
35086
  if (signal?.aborted)
@@ -35300,7 +35344,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
35300
35344
  };
35301
35345
  }, "vocabularyStoreOver");
35302
35346
 
35303
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
35347
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
35304
35348
  var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
35305
35349
  var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
35306
35350
  var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
@@ -35857,7 +35901,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
35857
35901
  return key2.padEnd(3, "X");
35858
35902
  }, "projectKey");
35859
35903
 
35860
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
35904
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
35861
35905
  var DAY5 = 864e5;
35862
35906
  var SETTING4 = "logs_pruned_at";
35863
35907
  var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
@@ -35884,7 +35928,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
35884
35928
  };
35885
35929
  }, "logPruner");
35886
35930
 
35887
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/mail/findings.js
35931
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/mail/findings.js
35888
35932
  var MAIL_FINDINGS_PER_RUN = 30;
35889
35933
  var MAIL_FINDINGS_PER_SENDER = 5;
35890
35934
  var invalid6 = /* @__PURE__ */ __name((message2) => {
@@ -35935,8 +35979,19 @@ var optional = /* @__PURE__ */ __name((key2, value, read2) => value === void 0 ?
35935
35979
  var one = /* @__PURE__ */ __name((raw, ids) => {
35936
35980
  if (!raw || typeof raw !== "object")
35937
35981
  return invalid6("a finding is an object");
35938
- if (raw.kind === "task" || raw.kind === "fact")
35982
+ if (raw.kind === "fact")
35939
35983
  return validateFinding(raw, RULES, ids);
35984
+ if (raw.kind === "task") {
35985
+ const { externalId, sourceUrl, ...task } = raw;
35986
+ return {
35987
+ ...validateFinding(task, RULES, ids),
35988
+ ...optional("externalId", externalId, (value) => {
35989
+ const { provider, id: id3 } = externalIdOf(findingText(value, EXTERNAL_ID_CHARS + 40));
35990
+ return `${provider}:${id3}`;
35991
+ }),
35992
+ ...optional("sourceUrl", sourceUrl, (value) => sourceUrlOf(findingText(value, SOURCE_URL_CHARS)))
35993
+ };
35994
+ }
35940
35995
  const id2 = findingId(raw.id, ids);
35941
35996
  const evidence = validEvidence(raw.evidence, RULES);
35942
35997
  const reference2 = /* @__PURE__ */ __name((value, pattern, what) => {
@@ -36119,6 +36174,7 @@ var one = /* @__PURE__ */ __name((raw, ids) => {
36119
36174
  "invoice",
36120
36175
  "payment",
36121
36176
  "project",
36177
+ "sourceUrl",
36122
36178
  "reason",
36123
36179
  "evidence"
36124
36180
  ], RULES.singular);
@@ -36138,6 +36194,7 @@ var one = /* @__PURE__ */ __name((raw, ids) => {
36138
36194
  ...optional("invoice", raw.invoice, (value) => reference2(value, INVOICE, "an order's invoice")),
36139
36195
  ...optional("payment", raw.payment, (value) => reference2(value, PAYMENT, "an order's payment")),
36140
36196
  ...optional("project", raw.project, (value) => reference2(value, PROJECT, "a project")),
36197
+ ...optional("sourceUrl", raw.sourceUrl, (value) => sourceUrlOf(findingText(value, SOURCE_URL_CHARS), "order.source-url")),
36141
36198
  reason: findingText(raw.reason, 2e3),
36142
36199
  evidence
36143
36200
  };
@@ -36170,7 +36227,7 @@ var validateMailFindings = /* @__PURE__ */ __name((input) => {
36170
36227
  }, "validateMailFindings");
36171
36228
  var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
36172
36229
 
36173
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
36230
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
36174
36231
  var ORDERS = "SELECT o.*, b.name AS author_name, b.kind AS author_kind FROM orders o LEFT JOIN bots b ON o.author_type = 'bot' AND b.id = o.author_id";
36175
36232
  var orderOperationsOver = /* @__PURE__ */ __name((context) => {
36176
36233
  const { database, now: now2 } = context;
@@ -36203,6 +36260,7 @@ var orderOperationsOver = /* @__PURE__ */ __name((context) => {
36203
36260
  fulfilledDate: row2.fulfilled_date == null ? null : String(row2.fulfilled_date),
36204
36261
  invoice: row2.invoice_id == null ? null : `invoice:${row2.invoice_id}`,
36205
36262
  payment: row2.payment_id == null ? null : `payment:${row2.payment_id}`,
36263
+ sourceUrl: row2.source_url == null ? null : String(row2.source_url),
36206
36264
  ...reviewedOf(row2, "order")
36207
36265
  };
36208
36266
  }, "orderOf");
@@ -36251,6 +36309,7 @@ var orderOperationsOver = /* @__PURE__ */ __name((context) => {
36251
36309
  refuse("an order's amount is 0 or more", "money.amount");
36252
36310
  const orderDate = isoDate(input.orderDate, "an order's date");
36253
36311
  const fulfilledDate = isoDate(input.fulfilledDate, "an order's delivery date");
36312
+ const sourceUrl = input.sourceUrl === void 0 ? null : sourceUrlOf(input.sourceUrl, "order.source-url");
36254
36313
  const id2 = write(database, () => {
36255
36314
  if (number3 !== null && ordersOfShop(database, supplierName, number3).length)
36256
36315
  refuse(`order ${number3} from ${supplierName} is already stored; change its status instead`, "order.duplicate");
@@ -36260,7 +36319,7 @@ var orderOperationsOver = /* @__PURE__ */ __name((context) => {
36260
36319
  const payment = linked(input.payment, "payment");
36261
36320
  const by = written2(input);
36262
36321
  const at = now2();
36263
- const made = Number(database.prepare("INSERT INTO orders (customer_type, customer_id, purpose, supplier_type, supplier_id, supplier_name, number, currency, total, status, order_date, fulfilled_date, invoice_id, payment_id, project_id, review, author_type, author_id, model, confirmed_by_type, confirmed_by_id, source, metadata, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id").get(customer.type, customer.id, purpose, supplier?.type ?? null, supplier?.id ?? null, supplierName, number3, currency, total, status, orderDate, fulfilledDate, invoice, payment, by.project, by.review, by.actor.type, by.actor.id, by.model, by.confirmedType, by.confirmedId, by.source, by.metadata, at, at)?.id);
36322
+ const made = Number(database.prepare("INSERT INTO orders (customer_type, customer_id, purpose, supplier_type, supplier_id, supplier_name, number, currency, total, status, order_date, fulfilled_date, invoice_id, payment_id, project_id, review, author_type, author_id, model, confirmed_by_type, confirmed_by_id, source, metadata, created_at, updated_at, source_url) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id").get(customer.type, customer.id, purpose, supplier?.type ?? null, supplier?.id ?? null, supplierName, number3, currency, total, status, orderDate, fulfilledDate, invoice, payment, by.project, by.review, by.actor.type, by.actor.id, by.model, by.confirmedType, by.confirmedId, by.source, by.metadata, at, at, sourceUrl)?.id);
36264
36323
  keepEvidence("order", made, by);
36265
36324
  return made;
36266
36325
  });
@@ -36320,7 +36379,7 @@ var ordersStoreOver = /* @__PURE__ */ __name((context) => {
36320
36379
  };
36321
36380
  }, "ordersStoreOver");
36322
36381
 
36323
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
36382
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
36324
36383
  var stale2 = /* @__PURE__ */ __name(() => {
36325
36384
  throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
36326
36385
  reason: "mail-findings.stale"
@@ -36689,7 +36748,7 @@ ${evidence.join("\n")}`, agent);
36689
36748
  };
36690
36749
  }, "mailFindingsStoreOver");
36691
36750
 
36692
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
36751
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
36693
36752
  var stale3 = /* @__PURE__ */ __name(() => {
36694
36753
  throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
36695
36754
  reason: "meeting-findings.stale"
@@ -36857,7 +36916,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
36857
36916
  };
36858
36917
  }, "meetingFindingsStoreOver");
36859
36918
 
36860
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
36919
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
36861
36920
  var RANK_BATCH = 512;
36862
36921
  var LIVE3 = "FROM chunks k JOIN meeting_transcripts t ON k.chunkable_type = 'meeting_transcript' AND t.id = k.chunkable_id JOIN meetings m ON m.id = t.meeting_id WHERE m.account_id = ? AND m.deleted_at IS NULL AND t.deleted_at IS NULL AND t.superseded_at IS NULL";
36863
36922
  var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
@@ -37128,7 +37187,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
37128
37187
  }
37129
37188
  }), "meetingVectorsOver");
37130
37189
 
37131
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
37190
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
37132
37191
  var OTHER_SOURCES = ["document", "note", "email"];
37133
37192
  var TEXTS = {
37134
37193
  document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
@@ -37229,11 +37288,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
37229
37288
  };
37230
37289
  }, "sourceMentionStoreOver");
37231
37290
 
37232
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
37291
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
37233
37292
  import { mkdirSync, statSync, writeFileSync } from "node:fs";
37234
37293
  import { dirname } from "node:path";
37235
37294
 
37236
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
37295
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
37237
37296
  import { readFileSync as readFileSync3 } from "node:fs";
37238
37297
  var CLIENTS_SETTING = "clients";
37239
37298
  var coreVersion = (() => {
@@ -37291,7 +37350,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
37291
37350
  return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
37292
37351
  }, "refusalAdvice");
37293
37352
 
37294
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
37353
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
37295
37354
  var GENERATED = [
37296
37355
  {
37297
37356
  "name": "20261010184427_initial",
@@ -38281,10 +38340,20 @@ WHERE json_type(params, '$.selection') = 'object';`
38281
38340
  "-- The store's code checks these first and says why; the triggers keep a stray write from another build or a hand\n-- edit from storing an order with an unknown status or purpose, or an amount without its currency.\nCREATE TRIGGER orders_valid_bi BEFORE INSERT ON orders\n WHEN new.customer_type NOT IN ('person', 'organization')\n OR new.purpose NOT IN ('personal', 'business', 'client', 'other')\n OR new.status NOT IN ('placed', 'shipped', 'delivered', 'cancelled', 'returned')\n OR new.review NOT IN ('proposed', 'confirmed', 'rejected')\n OR (new.total IS NULL) <> (new.currency IS NULL) OR new.total < 0 BEGIN\n SELECT RAISE(ABORT, 'orders: a person or organization customer, a known purpose, status and review, an amount with its currency');\nEND;",
38282
38341
  "CREATE TRIGGER orders_valid_bu BEFORE UPDATE ON orders\n WHEN new.customer_type NOT IN ('person', 'organization')\n OR new.purpose NOT IN ('personal', 'business', 'client', 'other')\n OR new.status NOT IN ('placed', 'shipped', 'delivered', 'cancelled', 'returned')\n OR new.review NOT IN ('proposed', 'confirmed', 'rejected')\n OR (new.total IS NULL) <> (new.currency IS NULL) OR new.total < 0 BEGIN\n SELECT RAISE(ABORT, 'orders: a person or organization customer, a known purpose, status and review, an amount with its currency');\nEND;"
38283
38342
  ]
38343
+ },
38344
+ {
38345
+ "name": "20261105144549_version-51-task-links",
38346
+ "statements": [
38347
+ "ALTER TABLE `orders` ADD `source_url` text;",
38348
+ "ALTER TABLE `tasks` ADD `provider` text;",
38349
+ "ALTER TABLE `tasks` ADD `external_id` text;",
38350
+ "ALTER TABLE `tasks` ADD `source_url` text;",
38351
+ "CREATE INDEX `tasks_by_provider_external_id` ON `tasks` (`provider`,`external_id`) WHERE external_id IS NOT NULL;"
38352
+ ]
38284
38353
  }
38285
38354
  ];
38286
38355
 
38287
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
38356
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
38288
38357
  var MANIFEST = [
38289
38358
  { name: "20261010184427_initial", version: 1, minCompatible: 1 },
38290
38359
  { name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
@@ -38351,7 +38420,8 @@ var MANIFEST = [
38351
38420
  { name: "20261102222340_version-48-test-accounts", version: 48, minCompatible: 34 },
38352
38421
  { name: "20261104232153_version-49-relation-amounts", version: 49, minCompatible: 34 },
38353
38422
  { name: "20261105125314_version-50-orders", version: 50, minCompatible: 34 },
38354
- { name: "20261105125315_version-50-orders-rules", version: 50, minCompatible: 34 }
38423
+ { name: "20261105125315_version-50-orders-rules", version: 50, minCompatible: 34 },
38424
+ { name: "20261105144549_version-51-task-links", version: 51, minCompatible: 34 }
38355
38425
  ];
38356
38426
  var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated = GENERATED) => {
38357
38427
  const migrations = [];
@@ -38375,7 +38445,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
38375
38445
  return migrations;
38376
38446
  }, "generatedMigrations");
38377
38447
 
38378
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/migrations.js
38448
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/migrations.js
38379
38449
  var MIGRATIONS = generatedMigrations();
38380
38450
  var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
38381
38451
  version INTEGER PRIMARY KEY,
@@ -38428,7 +38498,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
38428
38498
  }
38429
38499
  }, "migrate");
38430
38500
 
38431
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
38501
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
38432
38502
  var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
38433
38503
  const pending = database.prepare("SELECT id, join_url FROM meetings WHERE join_url IS NOT NULL AND join_key IS NULL AND id > ? ORDER BY id LIMIT ?");
38434
38504
  if (pending.get(0, 1) === void 0)
@@ -38450,7 +38520,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
38450
38520
  }
38451
38521
  }, "fillJoinKeys");
38452
38522
 
38453
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
38523
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
38454
38524
  var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
38455
38525
  refuseOwnerStoreInTests(path);
38456
38526
  const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
@@ -38464,8 +38534,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
38464
38534
  }, "openSqlite");
38465
38535
  var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
38466
38536
  quietSqliteWarning();
38467
- const { drizzle } = await import("./node-NCSG7QX5.js");
38468
- const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-QL4M5RIK.js");
38537
+ const { drizzle } = await import("./node-7746MVI2.js");
38538
+ const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-2JD5RF5A.js");
38469
38539
  const client = await nodeClient(path, { readOnly });
38470
38540
  try {
38471
38541
  return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
@@ -38475,8 +38545,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
38475
38545
  }
38476
38546
  }, "openUnderNode");
38477
38547
  var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
38478
- const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-HCZP2CNO.js");
38479
- const { drizzle } = await import("./bun-JRTUGKIJ.js");
38548
+ const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-2QF3TO47.js");
38549
+ const { drizzle } = await import("./bun-UQEFISW2.js");
38480
38550
  const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
38481
38551
  try {
38482
38552
  return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
@@ -38486,7 +38556,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
38486
38556
  }
38487
38557
  }, "openUnderBun");
38488
38558
 
38489
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
38559
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
38490
38560
  var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
38491
38561
  var paymentOf = /* @__PURE__ */ __name((metadata3) => {
38492
38562
  try {
@@ -38554,7 +38624,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
38554
38624
  });
38555
38625
  }, "movePaymentFacts");
38556
38626
 
38557
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
38627
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
38558
38628
  var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
38559
38629
  const ours = MIGRATIONS.at(-1)?.version ?? 0;
38560
38630
  if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
@@ -38569,7 +38639,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
38569
38639
  throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
38570
38640
  }, "assertReadCompatible");
38571
38641
 
38572
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
38642
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
38573
38643
  var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
38574
38644
  var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
38575
38645
  if (provenance2?.startsWith("rule:"))
@@ -38615,7 +38685,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
38615
38685
  });
38616
38686
  }, "moveSuggestedLinks");
38617
38687
 
38618
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
38688
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
38619
38689
  var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
38620
38690
  var TEST_PROVIDER = "chat";
38621
38691
  var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
@@ -38636,7 +38706,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
38636
38706
  }
38637
38707
  }, "purgeTestAccounts");
38638
38708
 
38639
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
38709
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
38640
38710
  var BACKFILL_ON_OPEN = 5e3;
38641
38711
  var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
38642
38712
  var createWritable = /* @__PURE__ */ __name((file) => {
@@ -38701,10 +38771,10 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
38701
38771
  }
38702
38772
  }, "openStoreContext");
38703
38773
 
38704
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38774
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38705
38775
  import { createHash as createHash16 } from "node:crypto";
38706
38776
 
38707
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
38777
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
38708
38778
  var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
38709
38779
  var ref = text4(2048);
38710
38780
  var timestamp2 = pipe(number(), safeInteger(), minValue(0));
@@ -38770,7 +38840,7 @@ var projectAnnotationsSchema = strictObject({
38770
38840
  }))
38771
38841
  });
38772
38842
 
38773
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
38843
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
38774
38844
  var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
38775
38845
  var invalid9 = /* @__PURE__ */ __name((field4) => {
38776
38846
  throw new CliError("validation_error", `invalid project annotations.${field4}`);
@@ -38874,7 +38944,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
38874
38944
  invalid9("external.unused");
38875
38945
  }, "validateProjectAnnotationsGraph");
38876
38946
 
38877
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38947
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38878
38948
  var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
38879
38949
  var ref2 = pipe(string(), minLength(1), maxLength(2048));
38880
38950
  var targetSchema = strictObject({
@@ -38980,7 +39050,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
38980
39050
  };
38981
39051
  }, "planBoundProjectAnnotations");
38982
39052
 
38983
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
39053
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
38984
39054
  import { createHash as createHash17 } from "node:crypto";
38985
39055
  var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
38986
39056
  var timestamp3 = pipe(number(), safeInteger(), minValue(0));
@@ -39074,7 +39144,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
39074
39144
  })).digest("hex");
39075
39145
  }, "projectAnnotationSnapshotFingerprint");
39076
39146
 
39077
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
39147
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
39078
39148
  var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
39079
39149
  if (!request || typeof request !== "object" || Array.isArray(request))
39080
39150
  throw new CliError("validation_error", "project annotation request is required");
@@ -39091,7 +39161,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
39091
39161
  return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
39092
39162
  }, "projectAnnotationRequest");
39093
39163
 
39094
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
39164
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
39095
39165
  var SnapshotBudget = class {
39096
39166
  static {
39097
39167
  __name(this, "SnapshotBudget");
@@ -39117,13 +39187,13 @@ var SnapshotBudget = class {
39117
39187
  }
39118
39188
  };
39119
39189
 
39120
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39190
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39121
39191
  import { createHash as createHash19 } from "node:crypto";
39122
39192
 
39123
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
39193
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
39124
39194
  var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
39125
39195
 
39126
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
39196
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
39127
39197
  import { createHash as createHash18 } from "node:crypto";
39128
39198
  var invalid11 = /* @__PURE__ */ __name(() => {
39129
39199
  throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
@@ -39266,7 +39336,7 @@ var ProjectSnapshotSources = class {
39266
39336
  }
39267
39337
  };
39268
39338
 
39269
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
39339
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
39270
39340
  var unsupported = /* @__PURE__ */ __name(() => {
39271
39341
  throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
39272
39342
  }, "unsupported");
@@ -39437,7 +39507,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
39437
39507
  return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
39438
39508
  }), "projectAnnotationSnapshot");
39439
39509
 
39440
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39510
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39441
39511
  var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
39442
39512
  const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
39443
39513
  const sources = new ProjectSnapshotSources(database, budget);
@@ -39499,7 +39569,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
39499
39569
  };
39500
39570
  }), "previewAnnotationSnapshot");
39501
39571
 
39502
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
39572
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
39503
39573
  var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
39504
39574
  const mappings = { ...bindings };
39505
39575
  const resolve = /* @__PURE__ */ __name((ref3) => {
@@ -39541,7 +39611,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
39541
39611
  return mappings;
39542
39612
  }, "restoreAnnotationRecords");
39543
39613
 
39544
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
39614
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
39545
39615
  var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
39546
39616
  async preview(request) {
39547
39617
  const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
@@ -39571,7 +39641,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
39571
39641
  }
39572
39642
  }), "projectAnnotationStoreOver");
39573
39643
 
39574
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/records.js
39644
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/records.js
39575
39645
  import { createHash as createHash20 } from "node:crypto";
39576
39646
  var RECORDS_SCHEMA_VERSION = 1;
39577
39647
  var RECORD_OPERATIONS = ["upsert", "delete"];
@@ -39803,7 +39873,7 @@ var envelopeOfJsonl = /* @__PURE__ */ __name((text6) => {
39803
39873
  return isObject2(header) ? { ...header, records: records2 } : header;
39804
39874
  }, "envelopeOfJsonl");
39805
39875
 
39806
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
39876
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
39807
39877
  var PROJECTED = {
39808
39878
  invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
39809
39879
  payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
@@ -40216,7 +40286,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
40216
40286
  };
40217
40287
  }, "recordStoreOver");
40218
40288
 
40219
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
40289
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
40220
40290
  var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
40221
40291
  const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
40222
40292
  let merged = { from: from2, to };
@@ -40229,7 +40299,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
40229
40299
  }, "markRange");
40230
40300
  var ranges = /* @__PURE__ */ __name(({ orm }, chatKey) => orm.select({ from: syncRanges.fromKey, to: syncRanges.toKey }).from(syncRanges).where(eq(syncRanges.chatId, chatKey)).orderBy(syncRanges.fromKey).all(), "ranges");
40231
40301
 
40232
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
40302
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
40233
40303
  var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
40234
40304
  var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
40235
40305
  chatId: String(row2.key).slice(prefix.length),
@@ -40250,7 +40320,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
40250
40320
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(prefixOf2(account) + chatId, JSON.stringify({ ...saved, checkedAt: checkedAt ?? new Date(now2).toISOString() }), now2);
40251
40321
  }, "setTaskAnalysisMark");
40252
40322
 
40253
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
40323
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
40254
40324
  var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
40255
40325
  var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
40256
40326
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
@@ -40260,7 +40330,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
40260
40330
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(keyOf4(account), JSON.stringify(until), now2);
40261
40331
  }, "setTaskRulesStop");
40262
40332
 
40263
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sync.js
40333
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sync.js
40264
40334
  var syncStoreOver = /* @__PURE__ */ __name((context) => {
40265
40335
  const { database } = context;
40266
40336
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
@@ -40319,7 +40389,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
40319
40389
  };
40320
40390
  }, "syncStoreOver");
40321
40391
 
40322
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/tags.js
40392
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/tags.js
40323
40393
  var tagsStoreOver = /* @__PURE__ */ __name((context) => {
40324
40394
  const { database } = context;
40325
40395
  return {
@@ -40341,7 +40411,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
40341
40411
  };
40342
40412
  }, "tagsStoreOver");
40343
40413
 
40344
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
40414
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
40345
40415
  var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
40346
40416
  var neighbours = /* @__PURE__ */ __name(({ orm }, chatKey, messagePk, sentAt, { messages: messages2, withinMs }, side) => orm.all(sql`SELECT sender_name AS sender, text, sent_at AS sentAt FROM messages
40347
40417
  WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
@@ -40468,7 +40538,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
40468
40538
  dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
40469
40539
  }, "savePictureChunks");
40470
40540
 
40471
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
40541
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
40472
40542
  var messagesToEmbed = /* @__PURE__ */ __name(({ orm }, accountPk2, { chatKey, model, after: after2, limit }) => orm.all(sql`SELECT m.id AS messagePk, m.text, m.sent_at AS sentAt, k.content_hash AS hash,
40473
40543
  EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
40474
40544
  FROM messages m
@@ -40557,7 +40627,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
40557
40627
  return plain2(best(found2));
40558
40628
  }, "nearestMessages");
40559
40629
 
40560
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/vectors.js
40630
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/vectors.js
40561
40631
  var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
40562
40632
  const { database } = context;
40563
40633
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -40815,7 +40885,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
40815
40885
  embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
40816
40886
  }), "vectorsStoreOver");
40817
40887
 
40818
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
40888
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
40819
40889
  import { existsSync, readFileSync as readFileSync4 } from "node:fs";
40820
40890
  import { dirname as dirname2, join as join2 } from "node:path";
40821
40891
  var BOOKKEEPING = ["schema_migrations", "store_settings"];
@@ -40903,10 +40973,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
40903
40973
  }
40904
40974
  }, "lastBackup");
40905
40975
 
40906
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/providers.js
40976
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/providers.js
40907
40977
  var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
40908
40978
 
40909
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
40979
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
40910
40980
  var COUNTED_TABLES = [
40911
40981
  "accounts",
40912
40982
  "chats",
@@ -40991,7 +41061,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
40991
41061
  };
40992
41062
  }, "storeContents");
40993
41063
 
40994
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/store.js
41064
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/store.js
40995
41065
  var openStore = /* @__PURE__ */ __name(async (options = {}) => {
40996
41066
  const context = await openStoreContext(options);
40997
41067
  try {