@wirecat/tg-cli 0.125.0 → 0.126.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-H2LTOLOA.js → adapter-BXU3AVB7.js} +43 -43
  3. package/dist/bundle/{all-profiles-75HGEFL7.js → all-profiles-G5A6IROO.js} +6 -6
  4. package/dist/bundle/{anthropic-N54MKE4C.js → anthropic-SINVEVEM.js} +2 -2
  5. package/dist/bundle/{app-server-3N5INKKI.js → app-server-IHIQXPJF.js} +42 -38
  6. package/dist/bundle/{bot-api-V65KTEAH.js → bot-api-LGAVVYRM.js} +44 -44
  7. package/dist/bundle/{bot-history-TT2EAHEE.js → bot-history-5C35FGCD.js} +12 -12
  8. package/dist/bundle/{bun-LN4J7PA7.js → bun-2GK3YOP3.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-6PDBFBUI.js → bun-sqlite-7DGADK3E.js} +3 -3
  10. package/dist/bundle/{chunk-FHPEUAHQ.js → chunk-2F2UMQMB.js} +164 -152
  11. package/dist/bundle/{chunk-SGHF75RQ.js → chunk-2LN6OJUB.js} +1 -1
  12. package/dist/bundle/{chunk-RZ7KBWDQ.js → chunk-4GR5YYGA.js} +2 -2
  13. package/dist/bundle/{chunk-VHD4V64E.js → chunk-5GINYFD4.js} +1 -1
  14. package/dist/bundle/{chunk-IN3NAFUN.js → chunk-5NLAGTWU.js} +7 -7
  15. package/dist/bundle/{chunk-GUPMDMFM.js → chunk-63DSHUNP.js} +5 -5
  16. package/dist/bundle/{chunk-HHG5FR5H.js → chunk-7FL2N6DM.js} +1 -1
  17. package/dist/bundle/{chunk-RX5GU7GQ.js → chunk-7UACPXDC.js} +494 -436
  18. package/dist/bundle/{chunk-GRDVBJCR.js → chunk-AA2NZAUT.js} +1 -1
  19. package/dist/bundle/{chunk-QVK7NF3A.js → chunk-ACLUVZ4I.js} +32 -28
  20. package/dist/bundle/{chunk-QYT6HDCL.js → chunk-AKUBJHE5.js} +1 -1
  21. package/dist/bundle/{chunk-DYOZ7CUV.js → chunk-AYEQMXRE.js} +1 -1
  22. package/dist/bundle/{chunk-VG3EQJYV.js → chunk-AZ7DSHQO.js} +31 -2
  23. package/dist/bundle/{chunk-AI2J3WJT.js → chunk-BSKYPHLB.js} +1 -1
  24. package/dist/bundle/{chunk-FUYCAROL.js → chunk-CK7DSGIK.js} +5 -5
  25. package/dist/bundle/{chunk-VUBSGQ2O.js → chunk-DGGAYHLN.js} +24 -22
  26. package/dist/bundle/{chunk-E4HDE5DN.js → chunk-F34EE5Y2.js} +2 -2
  27. package/dist/bundle/{chunk-AMPHPP4P.js → chunk-FYOHGIQP.js} +13 -13
  28. package/dist/bundle/{chunk-UTNK2PFE.js → chunk-G4RCT5RH.js} +12 -12
  29. package/dist/bundle/{chunk-DI3RJ3MJ.js → chunk-G4VVBR6U.js} +3 -3
  30. package/dist/bundle/{chunk-FSP74THJ.js → chunk-GI2ZUNOH.js} +4 -4
  31. package/dist/bundle/{chunk-DNCOELTM.js → chunk-GIY56MIB.js} +1 -1
  32. package/dist/bundle/{chunk-UG66U2T7.js → chunk-GOGGRLS6.js} +19 -13
  33. package/dist/bundle/{chunk-BLNMM3AX.js → chunk-HPFB4Y7P.js} +1 -1
  34. package/dist/bundle/{chunk-MK4IKICN.js → chunk-J2BUWK5U.js} +2 -2
  35. package/dist/bundle/{chunk-JC6HMPL7.js → chunk-JAKP5RWM.js} +3694 -3590
  36. package/dist/bundle/{chunk-6Y6SSZ34.js → chunk-JQ2RKLPU.js} +129 -83
  37. package/dist/bundle/{chunk-ZX5OSZHH.js → chunk-K4DXGJK4.js} +10 -10
  38. package/dist/bundle/{chunk-JB4BO5XZ.js → chunk-KSLZEXRF.js} +1 -1
  39. package/dist/bundle/{chunk-3GILMKQ2.js → chunk-L5PYWQDA.js} +2 -2
  40. package/dist/bundle/{chunk-TAFH5K5D.js → chunk-MA2XHO4O.js} +273 -242
  41. package/dist/bundle/{chunk-PCC7GWOS.js → chunk-MP47TE77.js} +3 -3
  42. package/dist/bundle/{chunk-OG2ONSH6.js → chunk-N2JSMP4N.js} +16 -16
  43. package/dist/bundle/{chunk-B252D7V4.js → chunk-NJ3FSKSU.js} +4 -6
  44. package/dist/bundle/{chunk-TVQBOIWC.js → chunk-OXB5P37M.js} +1 -1
  45. package/dist/bundle/{chunk-4TCBRKWQ.js → chunk-P2GNIWGG.js} +6 -6
  46. package/dist/bundle/{chunk-77Z3OGAT.js → chunk-PJ6FZXUR.js} +2 -2
  47. package/dist/bundle/{chunk-JKF7LZBU.js → chunk-QCLMP635.js} +5 -5
  48. package/dist/bundle/{chunk-X6436BYW.js → chunk-QGLB4D7J.js} +1 -1
  49. package/dist/bundle/{chunk-37SZHAEA.js → chunk-QMEPKUG3.js} +51 -50
  50. package/dist/bundle/{chunk-7OBSIDBJ.js → chunk-QOINWAQD.js} +2 -2
  51. package/dist/bundle/{chunk-CNEJQQMD.js → chunk-QYLYMOXN.js} +11 -11
  52. package/dist/bundle/{chunk-INZAZMUF.js → chunk-RFDPU4NO.js} +9 -4
  53. package/dist/bundle/{chunk-WH4T44L3.js → chunk-SL4S5GFR.js} +1 -1
  54. package/dist/bundle/{chunk-LU2CHHPC.js → chunk-SXVB2CVR.js} +2 -2
  55. package/dist/bundle/{chunk-EIGV2JKX.js → chunk-UIFQEXVP.js} +1 -1
  56. package/dist/bundle/{chunk-JCNKGZQG.js → chunk-W35POPPX.js} +16 -16
  57. package/dist/bundle/{chunk-NTHALPDT.js → chunk-W725T2V7.js} +2 -1
  58. package/dist/bundle/{chunk-4KIOWSDL.js → chunk-W75SKUY4.js} +2 -2
  59. package/dist/bundle/{chunk-VZDAVZYX.js → chunk-XGBXRDJP.js} +5 -5
  60. package/dist/bundle/{chunk-6HLB73UN.js → chunk-Y4724JRR.js} +2 -2
  61. package/dist/bundle/{chunk-S4SOS27T.js → chunk-Y5DGB7GP.js} +7 -7
  62. package/dist/bundle/{chunk-XTNOBJRP.js → chunk-ZXCQF6XV.js} +10 -10
  63. package/dist/bundle/{command-contract-JP6SCP7U.js → command-contract-ZEYY3ZXK.js} +13 -13
  64. package/dist/bundle/{command-server-entry-BLSFT3T6.js → command-server-entry-UWY6PQIV.js} +20 -20
  65. package/dist/bundle/{decode-NNLEQU7B.js → decode-QGMFQ6XX.js} +2 -2
  66. package/dist/bundle/{echarts-XAZHGDOM.js → echarts-GHU3GEWV.js} +2 -2
  67. package/dist/bundle/{embed-Q7ZCVSCO.js → embed-6DMEWQDO.js} +3 -3
  68. package/dist/bundle/{embedder-MVS3PVWQ.js → embedder-W2L7YZPW.js} +6 -6
  69. package/dist/bundle/{entry-XN3ZZAOK.js → entry-LPEXVFQC.js} +6 -6
  70. package/dist/bundle/{first-run-G4EFTONI.js → first-run-3UJ6SJF5.js} +5 -5
  71. package/dist/bundle/{first-screen-RIDJEPC3.js → first-screen-VCSY5QH5.js} +14 -14
  72. package/dist/bundle/{instructions-QDHYYZBU.js → instructions-RUVAH2IS.js} +1 -1
  73. package/dist/bundle/{node-3Y7OVY2U.js → node-RYSNHVBX.js} +2 -2
  74. package/dist/bundle/{node-sqlite-R2SBROJM.js → node-sqlite-J6ZL4LUY.js} +4 -4
  75. package/dist/bundle/{oauth-WSPWMWTV.js → oauth-B2QNZNSC.js} +4 -4
  76. package/dist/bundle/{open-VFLF4HRQ.js → open-OMUP5P6V.js} +2 -2
  77. package/dist/bundle/{openai-DFCKZZDV.js → openai-BT4BP4VQ.js} +12 -12
  78. package/dist/bundle/{process-VZKFAGNP.js → process-HG3QDD54.js} +1 -1
  79. package/dist/bundle/{program-2LB3CUZX.js → program-P2VATMKJ.js} +46 -46
  80. package/dist/bundle/{prompt-RVLA2PEY.js → prompt-BTIHH3Z4.js} +2 -2
  81. package/dist/bundle/{recognize-LEKNA3G5.js → recognize-CTSJXPIG.js} +1 -1
  82. package/dist/bundle/{remote-WG5V2I2G.js → remote-2FIGCMKL.js} +6 -6
  83. package/dist/bundle/{rerank-ONAEQVJ6.js → rerank-TI5SLEF4.js} +4 -4
  84. package/dist/bundle/{serve-BL2X6FZG.js → serve-IO3IM5C7.js} +6 -6
  85. package/dist/bundle/server-RIGXUTKZ.js +62 -0
  86. package/dist/bundle/{server-3LSC4BMK.js → server-WEPFFTYA.js} +31 -29
  87. package/dist/bundle/{sqlite-runtime-RQXPRH6C.js → sqlite-runtime-CTEYXX7L.js} +3 -3
  88. package/dist/bundle/{state-O7LRA526.js → state-GFHVDGHM.js} +3 -3
  89. package/dist/bundle/{store-HMJUPK45.js → store-RCK6HT4F.js} +9 -9
  90. package/dist/bundle/{store-7C4UAND2.js → store-Y5XC4LEM.js} +11 -11
  91. package/dist/bundle/store-maintenance-command-XH6VMCDU.js +52 -0
  92. package/dist/bundle/tg.js +3 -3
  93. package/dist/version.d.ts +1 -1
  94. package/dist/version.js +1 -1
  95. package/package.json +2 -2
  96. package/dist/bundle/server-7EYEEGJT.js +0 -62
  97. package/dist/bundle/store-maintenance-command-I7PSA3SZ.js +0 -52
@@ -8,7 +8,7 @@ import {
8
8
  sameOrdinaryFile,
9
9
  syncDirectory,
10
10
  writeFileAtomic
11
- } from "./chunk-UTNK2PFE.js";
11
+ } from "./chunk-G4RCT5RH.js";
12
12
  import {
13
13
  isNewer,
14
14
  updateCommand
@@ -17,7 +17,7 @@ import {
17
17
  localOnly,
18
18
  refuseOffComputer,
19
19
  remoteKey
20
- } from "./chunk-IN3NAFUN.js";
20
+ } from "./chunk-5NLAGTWU.js";
21
21
  import {
22
22
  Unzip,
23
23
  UnzipInflate,
@@ -28,7 +28,7 @@ import {
28
28
  placedText,
29
29
  runEmbedders,
30
30
  textModelsDirectory
31
- } from "./chunk-JKF7LZBU.js";
31
+ } from "./chunk-QCLMP635.js";
32
32
  import {
33
33
  AGENDA_COLUMNS,
34
34
  BUSINESS_FIND_MAX,
@@ -108,13 +108,13 @@ import {
108
108
  validateAst,
109
109
  validateFields,
110
110
  withoutField
111
- } from "./chunk-JC6HMPL7.js";
111
+ } from "./chunk-JAKP5RWM.js";
112
112
  import {
113
113
  DEFAULT_STEMMERS,
114
114
  createStemmer,
115
115
  fold,
116
116
  normalize
117
- } from "./chunk-S4SOS27T.js";
117
+ } from "./chunk-Y5DGB7GP.js";
118
118
  import {
119
119
  EmptyAnswer,
120
120
  MAX_MODEL_IMAGE_BYTES,
@@ -123,7 +123,7 @@ import {
123
123
  range,
124
124
  systemFor,
125
125
  validateImages
126
- } from "./chunk-LU2CHHPC.js";
126
+ } from "./chunk-SXVB2CVR.js";
127
127
  import {
128
128
  CEILING_KEY,
129
129
  Command,
@@ -172,25 +172,25 @@ import {
172
172
  textModels,
173
173
  vectorModelKey,
174
174
  writeTextModelsSection
175
- } from "./chunk-FHPEUAHQ.js";
175
+ } from "./chunk-2F2UMQMB.js";
176
176
  import {
177
177
  MESSENGER_CHANGE_REFUSAL,
178
178
  ancestorValue,
179
179
  envName,
180
180
  readOnlyLockOf,
181
181
  readOnlyRefusal
182
- } from "./chunk-DYOZ7CUV.js";
182
+ } from "./chunk-AYEQMXRE.js";
183
183
  import {
184
184
  PLAIN_HTTP_REFUSED,
185
185
  endpoint,
186
186
  endpointFetch,
187
187
  modelAddressAllowed,
188
188
  onThisComputer
189
- } from "./chunk-VG3EQJYV.js";
189
+ } from "./chunk-AZ7DSHQO.js";
190
190
  import {
191
191
  installFiles,
192
192
  megabytes
193
- } from "./chunk-PCC7GWOS.js";
193
+ } from "./chunk-MP47TE77.js";
194
194
  import {
195
195
  EVENT_QUERY,
196
196
  INTERNAL_NOTES,
@@ -272,22 +272,22 @@ import {
272
272
  walkQuery,
273
273
  withAttempt,
274
274
  zonedMoment
275
- } from "./chunk-6Y6SSZ34.js";
275
+ } from "./chunk-JQ2RKLPU.js";
276
276
  import {
277
277
  isCliFailure,
278
278
  sqliteCode
279
- } from "./chunk-77Z3OGAT.js";
279
+ } from "./chunk-PJ6FZXUR.js";
280
280
  import {
281
281
  DEFAULT_TASK_CATEGORIES,
282
282
  FALLBACK_CATEGORY,
283
283
  readSharedSection,
284
284
  sharedConfigPath,
285
285
  writeSharedSection
286
- } from "./chunk-FUYCAROL.js";
286
+ } from "./chunk-CK7DSGIK.js";
287
287
  import {
288
288
  storePath,
289
289
  wirecatDirectory
290
- } from "./chunk-NTHALPDT.js";
290
+ } from "./chunk-W725T2V7.js";
291
291
  import {
292
292
  Credentials,
293
293
  logRecordOf,
@@ -16950,7 +16950,7 @@ var require_lib3 = __commonJS({
16950
16950
  }
16951
16951
  });
16952
16952
 
16953
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/conversations/link.js
16953
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/conversations/link.js
16954
16954
  var RULES_VERSION = 5;
16955
16955
  var LOOK_BACK = 50;
16956
16956
  var SAME_SENDER_WITHIN = 10;
@@ -17040,10 +17040,10 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
17040
17040
  var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
17041
17041
  var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
17042
17042
 
17043
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/ports/traits.js
17043
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/ports/traits.js
17044
17044
  var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
17045
17045
 
17046
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/upload.js
17046
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/sends/upload.js
17047
17047
  import { openAsBlob, realpathSync } from "node:fs";
17048
17048
  import { open, stat } from "node:fs/promises";
17049
17049
  import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
@@ -17276,15 +17276,15 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
17276
17276
  return { name, source };
17277
17277
  }, "readStickerFile");
17278
17278
 
17279
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/send-id.js
17279
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/sends/send-id.js
17280
17280
  import { randomBytes } from "node:crypto";
17281
17281
  var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
17282
17282
  var newOperationId = newSendId;
17283
17283
 
17284
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/guard.js
17284
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/sends/guard.js
17285
17285
  import { randomUUID } from "node:crypto";
17286
17286
 
17287
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/flood.js
17287
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/sends/flood.js
17288
17288
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
17289
17289
  import { dirname as dirname2, join } from "node:path";
17290
17290
  var MOST_DEADLINES = 50;
@@ -17368,11 +17368,11 @@ var FloodMemory = class {
17368
17368
  }
17369
17369
  };
17370
17370
 
17371
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/journal.js
17371
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/sends/journal.js
17372
17372
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
17373
17373
  import { dirname as dirname4, join as join2 } from "node:path";
17374
17374
 
17375
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
17375
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
17376
17376
  import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
17377
17377
  import { dirname as dirname3 } from "node:path";
17378
17378
  var LOCK_WAIT_MS = 5e3;
@@ -17439,7 +17439,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
17439
17439
  }
17440
17440
  }, "lockTime");
17441
17441
 
17442
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/journal.js
17442
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/sends/journal.js
17443
17443
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
17444
17444
  var SendJournal = class {
17445
17445
  static {
@@ -17516,7 +17516,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
17516
17516
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
17517
17517
  }, "withSendId");
17518
17518
 
17519
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/recipients.js
17519
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/sends/recipients.js
17520
17520
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
17521
17521
  import { join as join3 } from "node:path";
17522
17522
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -17628,7 +17628,7 @@ var RecipientList = class {
17628
17628
  }
17629
17629
  };
17630
17630
 
17631
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/guard.js
17631
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/sends/guard.js
17632
17632
  var HOUR_MS = 60 * 60 * 1e3;
17633
17633
  var READS = /* @__PURE__ */ new Set([
17634
17634
  "attachments.extract",
@@ -17823,7 +17823,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
17823
17823
  }), "guardFor");
17824
17824
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
17825
17825
 
17826
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
17826
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
17827
17827
  var COMMAND_NEEDS = {
17828
17828
  "account update": ["updateProfile", "change the profile"],
17829
17829
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -17873,7 +17873,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
17873
17873
  return group;
17874
17874
  }, "hideNever");
17875
17875
 
17876
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/members-audit.js
17876
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/members-audit.js
17877
17877
  var AUDIT_PAGE = 200;
17878
17878
  var AUDIT_BUDGET = 10;
17879
17879
  var AUDIT_PAUSE_MS = 1e3;
@@ -17953,7 +17953,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
17953
17953
  return found;
17954
17954
  }, "burstJoins");
17955
17955
 
17956
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
17956
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
17957
17957
  var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
17958
17958
  command.allowUnknownOption();
17959
17959
  const parse2 = command.parseOptions.bind(command);
@@ -17973,7 +17973,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
17973
17973
  return command;
17974
17974
  }, "queryWordsAfterOptions");
17975
17975
 
17976
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
17976
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
17977
17977
  var count = /* @__PURE__ */ __name((value) => {
17978
17978
  if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
17979
17979
  throw new CliError("validation_error", "expected a nonnegative safe integer");
@@ -18015,7 +18015,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
18015
18015
  var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
18016
18016
  var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
18017
18017
 
18018
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
18018
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
18019
18019
  var integer2 = /* @__PURE__ */ __name((value) => {
18020
18020
  if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
18021
18021
  throw new CliError("validation_error", "expected a positive safe integer");
@@ -18038,7 +18038,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
18038
18038
  }, "addMeetingProjectEvidenceCommandDefinition");
18039
18039
  var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
18040
18040
 
18041
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
18041
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
18042
18042
  var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
18043
18043
  var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
18044
18044
  const zone = timezoneOf();
@@ -18124,7 +18124,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
18124
18124
  var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
18125
18125
  var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
18126
18126
 
18127
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
18127
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
18128
18128
  var integer4 = /* @__PURE__ */ __name((text2) => {
18129
18129
  if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
18130
18130
  throw new InvalidArgumentError("expected a positive integer");
@@ -18273,7 +18273,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
18273
18273
  }, "addMeetingCommandsDefinition");
18274
18274
  var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
18275
18275
 
18276
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/list-query.js
18276
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/list-query.js
18277
18277
  var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
18278
18278
  var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
18279
18279
  var withQuery = /* @__PURE__ */ __name((command, registry) => {
@@ -18407,7 +18407,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
18407
18407
  var queryHelp = /* @__PURE__ */ __name((registry) => `
18408
18408
  ${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
18409
18409
 
18410
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/paging.js
18410
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/paging.js
18411
18411
  var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
18412
18412
  if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
18413
18413
  throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
@@ -18416,7 +18416,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
18416
18416
  var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
18417
18417
  var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
18418
18418
 
18419
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
18419
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
18420
18420
  var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
18421
18421
  var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
18422
18422
  var settingsOf = /* @__PURE__ */ __name((settings) => defined({
@@ -18678,7 +18678,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
18678
18678
  ...createdAt === void 0 ? {} : { created_at: createdAt }
18679
18679
  }), "sessionAnswer");
18680
18680
 
18681
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/ports/messenger.js
18681
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/ports/messenger.js
18682
18682
  var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
18683
18683
  get: /* @__PURE__ */ __name((own, key) => {
18684
18684
  if (key in own)
@@ -18695,7 +18695,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
18695
18695
  return found.bind(adapter);
18696
18696
  }, "capability");
18697
18697
 
18698
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/deps.js
18698
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/deps.js
18699
18699
  var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
18700
18700
  var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
18701
18701
  var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
@@ -18757,7 +18757,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
18757
18757
  }), "storedDeps");
18758
18758
  var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
18759
18759
 
18760
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/patience.js
18760
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/patience.js
18761
18761
  import { setTimeout as sleep } from "node:timers/promises";
18762
18762
  var LONGEST_WAIT_MS = 5 * 60 * 1e3;
18763
18763
  var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
@@ -18780,10 +18780,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
18780
18780
  }
18781
18781
  }, "patiently");
18782
18782
 
18783
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/archive.js
18783
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/archive.js
18784
18784
  import { setTimeout as sleep2 } from "node:timers/promises";
18785
18785
 
18786
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
18786
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
18787
18787
  var REQUEST_MS = 400;
18788
18788
  var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
18789
18789
  const lowest = ranges[0];
@@ -18806,13 +18806,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
18806
18806
  };
18807
18807
  }, "estimateBackfill");
18808
18808
 
18809
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/recovery.js
18809
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/recovery.js
18810
18810
  var withRecovery = /* @__PURE__ */ __name((error) => ({
18811
18811
  ...error,
18812
18812
  retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
18813
18813
  }), "withRecovery");
18814
18814
 
18815
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/batch.js
18815
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/batch.js
18816
18816
  var actionable = /* @__PURE__ */ __name((error) => {
18817
18817
  if (isCliFailure(error))
18818
18818
  return withRecovery({ code: error.code, message: error.message, ...error.details });
@@ -18895,7 +18895,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
18895
18895
  };
18896
18896
  }, "mergeBatches");
18897
18897
 
18898
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/search/groups.js
18898
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/groups.js
18899
18899
  var ALL = "all";
18900
18900
  var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
18901
18901
  var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
@@ -18967,7 +18967,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
18967
18967
  [ALL]: [ALL]
18968
18968
  }), "groupEntries");
18969
18969
 
18970
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/search-kind.js
18970
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/search-kind.js
18971
18971
  var NO_MAIL = "no_mail";
18972
18972
  var MAIL = "email";
18973
18973
  var groupLockOf = /* @__PURE__ */ __name((app, env) => {
@@ -19041,7 +19041,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
19041
19041
  return chosenMail.map(({ provider, account }) => ({ provider, account }));
19042
19042
  }, "accountsOfKind");
19043
19043
 
19044
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
19044
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
19045
19045
  var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
19046
19046
  if (deps.reads !== "store")
19047
19047
  return keptChatId(deps.messenger, reference, store, account);
@@ -19240,7 +19240,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
19240
19240
  }, "chatsMatchingIn");
19241
19241
  var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
19242
19242
 
19243
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/images/context/index.js
19243
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/images/context/index.js
19244
19244
  var CONTEXT_MESSAGES = 3;
19245
19245
  var CONTEXT_MINUTES = 10;
19246
19246
  var MAX_CHARS = 1200;
@@ -19264,12 +19264,12 @@ var context = {
19264
19264
  }, "describe")
19265
19265
  };
19266
19266
 
19267
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/images/registry.js
19267
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/images/registry.js
19268
19268
  var BUILT_INS = [context];
19269
19269
  var providers = [...BUILT_INS];
19270
19270
  var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
19271
19271
 
19272
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/conversations.js
19272
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/conversations.js
19273
19273
  var READ_PAGE = 5e3;
19274
19274
  var CHAIN = 50;
19275
19275
  var CONVERSATION_QUERY = {
@@ -19421,7 +19421,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
19421
19421
  return size2;
19422
19422
  }, "sized");
19423
19423
 
19424
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
19424
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
19425
19425
  var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
19426
19426
  var MESSAGE_PAGE = 5e3;
19427
19427
  var PER_SESSION = 8;
@@ -19440,7 +19440,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
19440
19440
  price: remote.price,
19441
19441
  installed: true,
19442
19442
  perBatch: PER_REQUEST * concurrency,
19443
- open: /* @__PURE__ */ __name(async () => (await import("./remote-WG5V2I2G.js")).openRemote(remote, apiKey, {
19443
+ open: /* @__PURE__ */ __name(async () => (await import("./remote-2FIGCMKL.js")).openRemote(remote, apiKey, {
19444
19444
  concurrency,
19445
19445
  env: deps.env ?? process.env
19446
19446
  }), "open")
@@ -19460,7 +19460,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
19460
19460
  if (!isTextModelInstalled(model, directory2))
19461
19461
  throw notDownloaded(model.id);
19462
19462
  if (apart) {
19463
- const { openProcess } = await import("./process-VZKFAGNP.js");
19463
+ const { openProcess } = await import("./process-HG3QDD54.js");
19464
19464
  return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
19465
19465
  }
19466
19466
  return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
@@ -19749,7 +19749,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
19749
19749
  return { ...one, state };
19750
19750
  }, "shaped");
19751
19751
 
19752
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
19752
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
19753
19753
  var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
19754
19754
  var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
19755
19755
  for (const [key, value, maximum] of [
@@ -19802,7 +19802,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
19802
19802
  }
19803
19803
  }, "catchUpSearch");
19804
19804
 
19805
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/archive.js
19805
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/archive.js
19806
19806
  var pushed = /* @__PURE__ */ __name((deps, what) => {
19807
19807
  if (deps.reads === "store") {
19808
19808
  throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
@@ -20183,7 +20183,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
20183
20183
  return message?.timestamp ?? fallback;
20184
20184
  }, "timeOfKey");
20185
20185
 
20186
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/questions.js
20186
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/questions.js
20187
20187
  var LINKS = /https?:\/\/\S+/g;
20188
20188
  var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
20189
20189
  var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
@@ -20213,7 +20213,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
20213
20213
  });
20214
20214
  }, "questions");
20215
20215
 
20216
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/task-categories.js
20216
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/task-categories.js
20217
20217
  var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
20218
20218
  var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
20219
20219
  const name = typed.trim().toLowerCase();
@@ -20270,7 +20270,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
20270
20270
  return best.name;
20271
20271
  }, "categorize");
20272
20272
 
20273
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/task-rules.js
20273
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/task-rules.js
20274
20274
  var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
20275
20275
  var RULES_IN = {
20276
20276
  dialog: "all",
@@ -20476,11 +20476,11 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
20476
20476
  return passes;
20477
20477
  }, "applyTaskRulesToChats");
20478
20478
 
20479
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/vcard.js
20479
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/vcard.js
20480
20480
  var AS_WORD = new RegExp(`^${WORD_BODY}$`);
20481
20481
  var encoder = new TextEncoder();
20482
20482
 
20483
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/moment.js
20483
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/moment.js
20484
20484
  var AGO = /^(\d+)(m|h|d)$/;
20485
20485
  var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
20486
20486
  var DATE = /^\d{4}-\d{2}-\d{2}/;
@@ -20520,7 +20520,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
20520
20520
  };
20521
20521
  }, "dateWindow");
20522
20522
 
20523
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/botcheck/check.js
20523
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/botcheck/check.js
20524
20524
  var DAY_MS = 864e5;
20525
20525
  var NEW_DAYS = 30;
20526
20526
  var SAME_TEXT_MIN = 20;
@@ -20597,7 +20597,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
20597
20597
  };
20598
20598
  }, "scorePerson");
20599
20599
 
20600
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/http/time-limit.js
20600
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/http/time-limit.js
20601
20601
  var timeLimit = /* @__PURE__ */ __name((ms) => {
20602
20602
  const controller = new AbortController();
20603
20603
  const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
@@ -20613,7 +20613,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
20613
20613
  }
20614
20614
  }, "withTimeLimit");
20615
20615
 
20616
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
20616
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
20617
20617
  var REGISTRIES = {
20618
20618
  cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
20619
20619
  lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
@@ -20700,7 +20700,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
20700
20700
  detail: `lists Telegram accounts only, not ${messenger} ones`
20701
20701
  })), "notCovered");
20702
20702
 
20703
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/botcheck/service.js
20703
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/botcheck/service.js
20704
20704
  var ACTIVITY_MESSAGES = 1e3;
20705
20705
  var botCheckService = /* @__PURE__ */ __name((deps) => {
20706
20706
  const subjectOf = /* @__PURE__ */ __name(async (reference) => {
@@ -20788,7 +20788,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
20788
20788
  };
20789
20789
  }, "botCheckService");
20790
20790
 
20791
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/thread.js
20791
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/thread.js
20792
20792
  var threadIdOf = /* @__PURE__ */ __name((value) => {
20793
20793
  if (value === void 0)
20794
20794
  return void 0;
@@ -20798,7 +20798,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
20798
20798
  return id2;
20799
20799
  }, "threadIdOf");
20800
20800
 
20801
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
20801
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
20802
20802
  var TOP_POSTS = 5;
20803
20803
  var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
20804
20804
  var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
@@ -20915,7 +20915,7 @@ var median = /* @__PURE__ */ __name((values) => {
20915
20915
  return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
20916
20916
  }, "median");
20917
20917
 
20918
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/member-history.js
20918
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/member-history.js
20919
20919
  var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
20920
20920
  const events = [];
20921
20921
  for (const stay of stays) {
@@ -20947,7 +20947,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
20947
20947
  return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
20948
20948
  }, "memberEvents");
20949
20949
 
20950
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/chats.js
20950
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/chats.js
20951
20951
  var EVENTS_DAYS = 7;
20952
20952
  var TRACKED_DAYS = 30;
20953
20953
  var STATS_PAGE = 1e3;
@@ -21242,7 +21242,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
21242
21242
  return members.length === 0 ? null : members;
21243
21243
  }, "storedMembers");
21244
21244
 
21245
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/inbox.js
21245
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/inbox.js
21246
21246
  var INBOX_CHATS = 20;
21247
21247
  var REVIEW_DAYS = 3;
21248
21248
  var UNANSWERED_HOURS = 24;
@@ -21450,7 +21450,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
21450
21450
  };
21451
21451
  }, "inboxService");
21452
21452
 
21453
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/formatting.js
21453
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/formatting.js
21454
21454
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
21455
21455
  var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
21456
21456
  const { text: text2, spans } = formatted2;
@@ -21510,7 +21510,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
21510
21510
  };
21511
21511
  }, "visibleFormattedText");
21512
21512
 
21513
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/moderation/check.js
21513
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/moderation/check.js
21514
21514
  var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
21515
21515
  var LINK2 = /https?:\/\/\S+/i;
21516
21516
  var STRENGTH = { report: 0, delete: 1, remove: 2 };
@@ -21698,7 +21698,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
21698
21698
  }, "nextPoint");
21699
21699
  var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
21700
21700
 
21701
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/moderation/rules.js
21701
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/moderation/rules.js
21702
21702
  import { existsSync as existsSync2, readFileSync as readFileSync4 } from "node:fs";
21703
21703
  import { join as join4 } from "node:path";
21704
21704
  var RULE_ACTIONS = ["report", "delete", "remove"];
@@ -21841,7 +21841,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
21841
21841
  return { ...rules, [head]: { ...rules[head], [tail]: value } };
21842
21842
  }, "assign");
21843
21843
 
21844
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
21844
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
21845
21845
  var SCAN = 1e3;
21846
21846
  var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
21847
21847
  const byId2 = new Map(accounts.map((one) => [one.id, one]));
@@ -21893,7 +21893,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
21893
21893
  return { items, total: newest.length, hasMore: cut || newest.length > limit };
21894
21894
  }, "personMeetings");
21895
21895
 
21896
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/person-context.js
21896
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/person-context.js
21897
21897
  var CONTEXT_MESSAGES2 = 10;
21898
21898
  var CONTEXT_BYTES = 64 * 1024;
21899
21899
  var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
@@ -22199,10 +22199,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
22199
22199
  };
22200
22200
  }, "personMessages");
22201
22201
 
22202
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
22202
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
22203
22203
  import { createHash } from "node:crypto";
22204
22204
 
22205
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
22205
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
22206
22206
  var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
22207
22207
  var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
22208
22208
  const parsed = parseMeetingReference(reference);
@@ -22220,7 +22220,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
22220
22220
  return { parsed, meeting };
22221
22221
  }, "authorizedMeetingMetadata");
22222
22222
 
22223
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
22223
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
22224
22224
  var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
22225
22225
  var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
22226
22226
  if (signal?.aborted)
@@ -22419,7 +22419,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
22419
22419
  return { ...packet, fingerprint: hash(packet) };
22420
22420
  }, "readMeetingEvidence");
22421
22421
 
22422
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
22422
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
22423
22423
  var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
22424
22424
  const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
22425
22425
  const requestedAccounts = options2.accountIds;
@@ -22518,7 +22518,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
22518
22518
  };
22519
22519
  }, "personMeetingContext");
22520
22520
 
22521
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
22521
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
22522
22522
  var PREPARE_BYTES = 96 * 1024;
22523
22523
  var MEETINGS = 5;
22524
22524
  var CUES = 3;
@@ -22641,7 +22641,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
22641
22641
  }
22642
22642
  }, "meetingsOf");
22643
22643
 
22644
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/person-profile.js
22644
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/person-profile.js
22645
22645
  var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
22646
22646
  const online = deps.offline ? void 0 : await deps.connection();
22647
22647
  const held = await storeIfOpen(deps);
@@ -22711,7 +22711,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
22711
22711
  complete: false
22712
22712
  })), "quiet");
22713
22713
 
22714
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
22714
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
22715
22715
  var TIMELINE_ITEMS = 50;
22716
22716
  var TIMELINE_MAX = 500;
22717
22717
  var SCOPES = ["personal", "work"];
@@ -22773,7 +22773,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
22773
22773
  };
22774
22774
  }, "personTimeline");
22775
22775
 
22776
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
22776
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
22777
22777
  var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
22778
22778
  const ids = [...new Set(chatIds)];
22779
22779
  if (ids.length === 0)
@@ -22799,7 +22799,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
22799
22799
  }));
22800
22800
  }, "chatCoverage");
22801
22801
 
22802
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
22802
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
22803
22803
  var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
22804
22804
  var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
22805
22805
  const fail2 = /* @__PURE__ */ __name(() => {
@@ -22863,7 +22863,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
22863
22863
  }
22864
22864
  }, "validateContextEvidencePage");
22865
22865
 
22866
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/context/read-budget.js
22866
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/context/read-budget.js
22867
22867
  var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
22868
22868
  if (!limits || typeof limits !== "object" || Array.isArray(limits))
22869
22869
  throw new CliError("validation_error", "limits needs a context read allowance");
@@ -22916,7 +22916,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
22916
22916
  };
22917
22917
  }, "contextReadBudget");
22918
22918
 
22919
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
22919
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
22920
22920
  var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
22921
22921
  if (!port || typeof port.read !== "function")
22922
22922
  throw new CliError("configuration_error", "context evidence reader is unavailable");
@@ -22960,7 +22960,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
22960
22960
  };
22961
22961
  }, "createContextEvidenceReader");
22962
22962
 
22963
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/excerpt.js
22963
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/excerpt.js
22964
22964
  var queryWords = /* @__PURE__ */ __name((query) => query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[\p{L}_]+:/u, "").replace(/~\d+$/u, "").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word)), "queryWords");
22965
22965
  var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
22966
22966
  const flat = text2.replace(/\s+/g, " ").trim();
@@ -22976,7 +22976,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
22976
22976
  }, "excerpt");
22977
22977
  var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
22978
22978
 
22979
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
22979
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
22980
22980
  var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
22981
22981
  async around(ref, window3) {
22982
22982
  const at = parseLocator(ref);
@@ -23071,7 +23071,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
23071
23071
  };
23072
23072
  }, "storedNeighbours");
23073
23073
 
23074
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
23074
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
23075
23075
  import { createHash as createHash2 } from "node:crypto";
23076
23076
  var DAY = 864e5;
23077
23077
  var MAX_TIME = 864e13;
@@ -23387,7 +23387,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
23387
23387
  return value;
23388
23388
  }, "decodeCheckpoint");
23389
23389
 
23390
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
23390
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
23391
23391
  var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
23392
23392
  var PAGE3 = 20;
23393
23393
  var PEOPLE = 20;
@@ -23791,7 +23791,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
23791
23791
  return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
23792
23792
  }, "peopleOf");
23793
23793
 
23794
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
23794
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
23795
23795
  var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
23796
23796
  var termsOf = /* @__PURE__ */ __name((entry) => [
23797
23797
  { name: entry.name, kind: "canonical" },
@@ -23835,7 +23835,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
23835
23835
  return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
23836
23836
  }, "matchVocabularyTerms");
23837
23837
 
23838
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
23838
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
23839
23839
  var KINDS = ["project", "tag", "topic"];
23840
23840
  var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
23841
23841
  if (typeof vocabulary?.vocabulary !== "function")
@@ -23890,7 +23890,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
23890
23890
  };
23891
23891
  }, "findEvidenceMentions");
23892
23892
 
23893
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
23893
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
23894
23894
  var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
23895
23895
  var DEFAULT_PURPOSES = ["work"];
23896
23896
  var LINK_PURPOSE = "work";
@@ -23920,7 +23920,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
23920
23920
  ...value.split(",").map((one) => one.trim()).filter(Boolean)
23921
23921
  ], "purposeList");
23922
23922
 
23923
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
23923
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
23924
23924
  var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
23925
23925
  const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
23926
23926
  const [messages, newest, oldest] = await Promise.all([
@@ -24231,7 +24231,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
24231
24231
  return { chat: top.ref, relationship: link4.relationship, items, of };
24232
24232
  }, "purposeHintOf");
24233
24233
 
24234
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/people.js
24234
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/people.js
24235
24235
  var peopleService = /* @__PURE__ */ __name((deps) => {
24236
24236
  const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
24237
24237
  const held = await storeIfOpen(deps);
@@ -24496,7 +24496,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
24496
24496
  return rest;
24497
24497
  }, "withoutPhone");
24498
24498
 
24499
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/task-stats.js
24499
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/task-stats.js
24500
24500
  var TASK_STATS_BY = ["chat", "meeting", "project"];
24501
24501
  var PERIOD_FIELD = "created";
24502
24502
  var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
@@ -24627,7 +24627,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
24627
24627
  }));
24628
24628
  }, "meetingNames");
24629
24629
 
24630
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
24630
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
24631
24631
  var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
24632
24632
  const tags = /* @__PURE__ */ new Map();
24633
24633
  for (const node of query ? walkQuery(query.root) : [])
@@ -24636,7 +24636,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
24636
24636
  return tags;
24637
24637
  }, "taskTagFilters");
24638
24638
 
24639
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/tasks.js
24639
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/tasks.js
24640
24640
  var TASK_QUERY = {
24641
24641
  entity: "task",
24642
24642
  backend: "sql",
@@ -25136,7 +25136,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
25136
25136
  };
25137
25137
  }, "taskView");
25138
25138
 
25139
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/mail/owed.js
25139
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/mail/owed.js
25140
25140
  var mailTurn = /* @__PURE__ */ __name((newest) => {
25141
25141
  if (newest === null)
25142
25142
  return null;
@@ -25145,7 +25145,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
25145
25145
  return newest.addressed ? "owed" : null;
25146
25146
  }, "mailTurn");
25147
25147
 
25148
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
25148
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
25149
25149
  var absent = /* @__PURE__ */ __name((error) => {
25150
25150
  if (error instanceof CliError && error.code === "not_found")
25151
25151
  return void 0;
@@ -25203,7 +25203,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
25203
25203
  };
25204
25204
  }, "mailActivity");
25205
25205
 
25206
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/agenda.js
25206
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/agenda.js
25207
25207
  var DAY2 = 864e5;
25208
25208
  var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
25209
25209
  var CLAIMS = ["none", "mine", "others", "any"];
@@ -25457,18 +25457,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
25457
25457
  };
25458
25458
  }, "agendaItem");
25459
25459
 
25460
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/media-archive.js
25460
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/media-archive.js
25461
25461
  import { setTimeout as sleep3 } from "node:timers/promises";
25462
25462
 
25463
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
25463
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
25464
25464
  import { lstat } from "node:fs/promises";
25465
25465
 
25466
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
25466
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
25467
25467
  import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
25468
25468
  import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
25469
25469
  import { join as join6 } from "node:path";
25470
25470
 
25471
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
25471
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
25472
25472
  import { createHash as createHash3 } from "node:crypto";
25473
25473
  var metadataLimit = 16384;
25474
25474
  var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
@@ -25528,7 +25528,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
25528
25528
  }
25529
25529
  }, "readPartialMetadata");
25530
25530
 
25531
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
25531
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
25532
25532
  import { randomUUID as randomUUID2 } from "node:crypto";
25533
25533
  import { open as open2, rename, unlink } from "node:fs/promises";
25534
25534
  import { join as join5 } from "node:path";
@@ -25620,7 +25620,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
25620
25620
  };
25621
25621
  }, "partialWriter");
25622
25622
 
25623
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
25623
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
25624
25624
  var NativeRecordingPartialStore = class {
25625
25625
  static {
25626
25626
  __name(this, "NativeRecordingPartialStore");
@@ -25727,12 +25727,12 @@ var NativeRecordingPartialStore = class {
25727
25727
  }
25728
25728
  };
25729
25729
 
25730
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
25730
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
25731
25731
  import { createHash as createHash5 } from "node:crypto";
25732
25732
  import { link as link2 } from "node:fs/promises";
25733
25733
  import { basename as basename2, dirname as dirname5, join as join8, resolve as resolve2 } from "node:path";
25734
25734
 
25735
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
25735
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
25736
25736
  import { unlink as unlink3 } from "node:fs/promises";
25737
25737
  var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
25738
25738
  signal?.throwIfAborted();
@@ -25767,7 +25767,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
25767
25767
  signal?.throwIfAborted();
25768
25768
  }, "commitPublication");
25769
25769
 
25770
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
25770
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
25771
25771
  import { randomUUID as randomUUID4 } from "node:crypto";
25772
25772
  import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
25773
25773
  import { join as join7 } from "node:path";
@@ -25840,7 +25840,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
25840
25840
  }
25841
25841
  }, "writePublicationJournal");
25842
25842
 
25843
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
25843
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
25844
25844
  var NativeRecordingPublication = class {
25845
25845
  static {
25846
25846
  __name(this, "NativeRecordingPublication");
@@ -25913,7 +25913,7 @@ var NativeRecordingPublication = class {
25913
25913
  }
25914
25914
  };
25915
25915
 
25916
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
25916
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
25917
25917
  import { createHash as createHash6 } from "node:crypto";
25918
25918
  import { readdir } from "node:fs/promises";
25919
25919
  import { isAbsolute as isAbsolute2, join as join9, resolve as resolve3 } from "node:path";
@@ -26000,7 +26000,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
26000
26000
  beforePublish
26001
26001
  }), "commitMediaEntry");
26002
26002
 
26003
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
26003
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
26004
26004
  var validator = '"media-completed-v1"';
26005
26005
  var maximumFileBytes = 64 * 1024 * 1024 * 1024;
26006
26006
  var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
@@ -26101,7 +26101,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
26101
26101
  return entry;
26102
26102
  }, "archiveMediaFile");
26103
26103
 
26104
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
26104
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
26105
26105
  import { mkdir, realpath } from "node:fs/promises";
26106
26106
  import { join as join10, resolve as resolve4 } from "node:path";
26107
26107
  var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
@@ -26168,7 +26168,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
26168
26168
  throw new CliError("validation_error", "archive locations changed during locking; run the command again");
26169
26169
  }, "withMediaArchiveLocks");
26170
26170
 
26171
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/media-archive.js
26171
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/media-archive.js
26172
26172
  var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
26173
26173
  if (value === void 0)
26174
26174
  return void 0;
@@ -26321,7 +26321,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
26321
26321
  }, { create: true });
26322
26322
  }, "archiveMedia");
26323
26323
 
26324
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
26324
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
26325
26325
  import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
26326
26326
  import { basename as basename3, dirname as dirname6, join as join11, resolve as resolve5 } from "node:path";
26327
26327
  var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
@@ -26474,7 +26474,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
26474
26474
  }, { additional: [target2], createAdditional: !options2.dryRun });
26475
26475
  }, "moveMediaArchive");
26476
26476
 
26477
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
26477
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
26478
26478
  import { writeFileSync as writeFileSync2 } from "node:fs";
26479
26479
  import { join as join12 } from "node:path";
26480
26480
  var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
@@ -26499,7 +26499,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
26499
26499
  `);
26500
26500
  await nativeRuntime({ env, progress });
26501
26501
  progress(`${model.id}: loading it once to check it works`);
26502
- const { openEmbedder: openEmbedder2 } = await import("./embed-Q7ZCVSCO.js");
26502
+ const { openEmbedder: openEmbedder2 } = await import("./embed-6DMEWQDO.js");
26503
26503
  const embedder = await openEmbedder2(model, directory2);
26504
26504
  try {
26505
26505
  const [vector] = await embedder.embed(["check"], "query");
@@ -26520,7 +26520,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
26520
26520
  }
26521
26521
  await nativeRuntime({ env, progress });
26522
26522
  progress(`${model.id}: loading it once to check it works`);
26523
- const { openReranker } = await import("./rerank-ONAEQVJ6.js");
26523
+ const { openReranker } = await import("./rerank-TI5SLEF4.js");
26524
26524
  const reranker = await openReranker(model, directory2);
26525
26525
  try {
26526
26526
  await reranker.score("check", ["check"]);
@@ -26538,7 +26538,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
26538
26538
  await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
26539
26539
  }
26540
26540
  progress(`${model.id}: loading it once to check it works`);
26541
- const { openPictureEmbedder } = await import("./embedder-MVS3PVWQ.js");
26541
+ const { openPictureEmbedder } = await import("./embedder-W2L7YZPW.js");
26542
26542
  const embedder = await openPictureEmbedder(model, directory2);
26543
26543
  try {
26544
26544
  const vector = await embedder.embedQuery("check");
@@ -26550,7 +26550,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
26550
26550
  return { model, directory: directory2 };
26551
26551
  }, "downloadImageModel");
26552
26552
 
26553
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/money-words.js
26553
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/money-words.js
26554
26554
  var MONEY_REQUEST = "money-request";
26555
26555
  var MONEY_DONE = "money-done";
26556
26556
  var PROMISE = "promise";
@@ -26584,10 +26584,10 @@ var MONEY_WORDS = [
26584
26584
  }
26585
26585
  ];
26586
26586
 
26587
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/money-words.js
26587
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/money-words.js
26588
26588
  var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
26589
26589
 
26590
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/status-words.js
26590
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/status-words.js
26591
26591
  var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
26592
26592
  var MONEY_DONE_FORMS = words([
26593
26593
  "\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
@@ -26627,7 +26627,7 @@ var PROMISE_FORMS = words([
26627
26627
  "estar\xE1 listo"
26628
26628
  ]);
26629
26629
 
26630
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
26630
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
26631
26631
  var EXCERPT_CHARS = 80;
26632
26632
  var excerpt2 = /* @__PURE__ */ __name((text2) => {
26633
26633
  const flat = text2.replace(/\s+/g, " ").trim();
@@ -26649,7 +26649,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
26649
26649
  var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
26650
26650
  var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
26651
26651
 
26652
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
26652
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
26653
26653
  var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
26654
26654
  var verbOf = /* @__PURE__ */ __name((text2) => {
26655
26655
  if (MONEY_DONE_FORMS.test(text2))
@@ -26730,7 +26730,7 @@ var amounts = {
26730
26730
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
26731
26731
  };
26732
26732
 
26733
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
26733
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
26734
26734
  var children = {
26735
26735
  id: "children",
26736
26736
  version: 1,
@@ -26759,7 +26759,7 @@ var children = {
26759
26759
  }, "read")
26760
26760
  };
26761
26761
 
26762
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
26762
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
26763
26763
  var coverage = {
26764
26764
  id: "coverage",
26765
26765
  version: 1,
@@ -26788,7 +26788,7 @@ var coverage = {
26788
26788
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
26789
26789
  };
26790
26790
 
26791
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
26791
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
26792
26792
  var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
26793
26793
  var item = /* @__PURE__ */ __name((row, at, data) => ({
26794
26794
  signal: "payments",
@@ -26838,7 +26838,7 @@ var payments = {
26838
26838
  }, "read")
26839
26839
  };
26840
26840
 
26841
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
26841
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
26842
26842
  var PATTERNS_PER_CHAT = 3;
26843
26843
  var DAY3 = 864e5;
26844
26844
  var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
@@ -26927,7 +26927,7 @@ var promises = {
26927
26927
  }, "read")
26928
26928
  };
26929
26929
 
26930
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
26930
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
26931
26931
  var PER_SIDE = 5;
26932
26932
  var WEEK = 7 * 864e5;
26933
26933
  var NOBODY = /* @__PURE__ */ new Set();
@@ -26958,7 +26958,7 @@ var questions2 = {
26958
26958
  }, "attention")
26959
26959
  };
26960
26960
 
26961
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
26961
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
26962
26962
  var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
26963
26963
  const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
26964
26964
  const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
@@ -27026,7 +27026,7 @@ var replyNext = {
27026
27026
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
27027
27027
  };
27028
27028
 
27029
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
27029
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
27030
27030
  var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
27031
27031
  var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
27032
27032
  var matcherOf = /* @__PURE__ */ __name((query) => {
@@ -27072,7 +27072,7 @@ var topics = {
27072
27072
  }, "read")
27073
27073
  };
27074
27074
 
27075
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
27075
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
27076
27076
  var STATUS_SIGNALS = [
27077
27077
  replyNext,
27078
27078
  questions2,
@@ -27084,7 +27084,7 @@ var STATUS_SIGNALS = [
27084
27084
  children
27085
27085
  ];
27086
27086
 
27087
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
27087
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
27088
27088
  var DAY4 = 864e5;
27089
27089
  var STATUS_WINDOW = 300;
27090
27090
  var STATUS_CHATS = 16;
@@ -27273,7 +27273,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
27273
27273
  };
27274
27274
  }, "projectStatus");
27275
27275
 
27276
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/account.js
27276
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/account.js
27277
27277
  var accountService = /* @__PURE__ */ __name((deps) => {
27278
27278
  const online = /* @__PURE__ */ __name(async (command) => {
27279
27279
  if (deps.offline)
@@ -27345,7 +27345,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
27345
27345
  };
27346
27346
  }, "accountService");
27347
27347
 
27348
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/send-time.js
27348
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/send-time.js
27349
27349
  var MINUTE = 6e4;
27350
27350
  var YEAR = 365 * 24 * 60 * MINUTE;
27351
27351
  var DELAY = /^(\d+)(m|h|d)$/;
@@ -27364,7 +27364,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
27364
27364
  return new Date(at - at % MINUTE).toISOString();
27365
27365
  }, "sendTime");
27366
27366
 
27367
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/admin.js
27367
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/admin.js
27368
27368
  var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
27369
27369
  try {
27370
27370
  const held = await accountStoreIfOpen(deps);
@@ -27611,7 +27611,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
27611
27611
  return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
27612
27612
  }, "linkLimits");
27613
27613
 
27614
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/mail-search.js
27614
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/mail-search.js
27615
27615
  var THREADS_PAGE = 500;
27616
27616
  var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
27617
27617
  const account = await store.accounts.storedAccount(key).catch(() => void 0);
@@ -27690,7 +27690,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
27690
27690
  return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
27691
27691
  }, "readMail");
27692
27692
 
27693
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/messages-search.js
27693
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/messages-search.js
27694
27694
  var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
27695
27695
  var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
27696
27696
  var positiveSources = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "in" ? [node.value.toLowerCase()] : [] : node.clauses.filter(({ occur }) => occur !== "must_not").flatMap(({ node: node2 }) => positiveSources(node2)), "positiveSources");
@@ -28059,7 +28059,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
28059
28059
  };
28060
28060
  }, "statsLucene");
28061
28061
 
28062
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
28062
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
28063
28063
  var RANKING_SELECTION_BYTES = 64 * 1024;
28064
28064
  var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
28065
28065
  function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
@@ -28228,7 +28228,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
28228
28228
  };
28229
28229
  }, "readRankingSelection");
28230
28230
 
28231
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/search-record.js
28231
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/search-record.js
28232
28232
  var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one) => canonical(one, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0 && (nested || one !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one]) => [key, canonical(one, true)])) : value, "canonical");
28233
28233
  var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
28234
28234
  command,
@@ -28238,7 +28238,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
28238
28238
  fieldsVersion: FIELD_VERSION
28239
28239
  }), "searchRecordOf");
28240
28240
 
28241
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
28241
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
28242
28242
  function invalid4(message) {
28243
28243
  throw new CliError("validation_error", message);
28244
28244
  }
@@ -28532,7 +28532,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
28532
28532
  }, "evidence")
28533
28533
  }), "adminStatisticsService");
28534
28534
 
28535
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
28535
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
28536
28536
  import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
28537
28537
  var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
28538
28538
  var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
@@ -28669,12 +28669,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
28669
28669
  return { plan, repair };
28670
28670
  }, "gapsService");
28671
28671
 
28672
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/attachments.js
28672
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/attachments.js
28673
28673
  import { createHash as createHash10 } from "node:crypto";
28674
28674
  import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
28675
28675
  import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
28676
28676
 
28677
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/directory.js
28677
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/directory.js
28678
28678
  import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
28679
28679
  import { basename as basename4, join as join13, relative as relative2, sep as sep2 } from "node:path";
28680
28680
  var MAX_FILES = 1e4;
@@ -28745,15 +28745,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
28745
28745
  return choices;
28746
28746
  }, "directoryPaths");
28747
28747
 
28748
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/documents.js
28748
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/documents.js
28749
28749
  import { posix } from "node:path";
28750
28750
 
28751
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/container.js
28751
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/container.js
28752
28752
  import { setImmediate as tick } from "node:timers/promises";
28753
28753
  import { crc32 } from "node:zlib";
28754
28754
  var import_xmldom = __toESM(require_lib(), 1);
28755
28755
 
28756
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
28756
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
28757
28757
  var import_chardet = __toESM(require_lib2(), 1);
28758
28758
  var import_iconv_lite = __toESM(require_lib3(), 1);
28759
28759
  var SAMPLE = 65536;
@@ -28855,7 +28855,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
28855
28855
  return result.text;
28856
28856
  }, "decodeXml");
28857
28857
 
28858
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/container.js
28858
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/container.js
28859
28859
  var MAX_PART = 10 * 1024 * 1024;
28860
28860
  var MAX_ENTRIES = 1e3;
28861
28861
  var decoder = new TextDecoder("utf-8", { fatal: true });
@@ -29070,7 +29070,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
29070
29070
  return found;
29071
29071
  }, "elements");
29072
29072
 
29073
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
29073
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
29074
29074
  var columnName = /* @__PURE__ */ __name((column) => {
29075
29075
  let name = "";
29076
29076
  for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
@@ -29125,7 +29125,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
29125
29125
  return { text: parts.join("").trim(), truncated: false };
29126
29126
  }, "sheetText");
29127
29127
 
29128
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/documents.js
29128
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/documents.js
29129
29129
  var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
29130
29130
  var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
29131
29131
  var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
@@ -29525,10 +29525,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
29525
29525
  }
29526
29526
  }, "readDocument");
29527
29527
 
29528
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/extract.js
29528
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/extract.js
29529
29529
  import { extname as extname3 } from "node:path";
29530
29530
 
29531
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/engine.js
29531
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/engine.js
29532
29532
  import { readFileSync as readFileSync5 } from "node:fs";
29533
29533
  import { dirname as dirname7, extname as extname2, join as join14 } from "node:path";
29534
29534
  import { fileURLToPath } from "node:url";
@@ -29589,7 +29589,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
29589
29589
  }
29590
29590
  }, "derived");
29591
29591
 
29592
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/image/index.js
29592
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/image/index.js
29593
29593
  var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
29594
29594
  var image2 = {
29595
29595
  id: "image",
@@ -29598,7 +29598,7 @@ var image2 = {
29598
29598
  read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
29599
29599
  };
29600
29600
 
29601
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
29601
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
29602
29602
  var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
29603
29603
  var doc = {
29604
29604
  id: "doc",
@@ -29610,7 +29610,7 @@ var doc = {
29610
29610
  }), "read")
29611
29611
  };
29612
29612
 
29613
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
29613
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
29614
29614
  var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
29615
29615
  var docx = {
29616
29616
  id: "docx",
@@ -29623,7 +29623,7 @@ var docx = {
29623
29623
  }), "read")
29624
29624
  };
29625
29625
 
29626
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/markup.js
29626
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/markup.js
29627
29627
  var import_iconv_lite2 = __toESM(require_lib3(), 1);
29628
29628
  var RTF_SKIPPED = /* @__PURE__ */ new Set([
29629
29629
  "fonttbl",
@@ -29799,7 +29799,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
29799
29799
  }, "htmlText");
29800
29800
  var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
29801
29801
 
29802
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/html/page.js
29802
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/html/page.js
29803
29803
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
29804
29804
  var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
29805
29805
  var jsonLdNodes = /* @__PURE__ */ __name((document) => {
@@ -29855,7 +29855,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
29855
29855
  return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
29856
29856
  }, "markdownSections");
29857
29857
 
29858
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/html/index.js
29858
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/html/index.js
29859
29859
  var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
29860
29860
  var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
29861
29861
  var loaded = /* @__PURE__ */ __name(async (load, name) => {
@@ -29926,7 +29926,7 @@ var html = {
29926
29926
  }, "read")
29927
29927
  };
29928
29928
 
29929
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/office/index.js
29929
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/office/index.js
29930
29930
  var office = {
29931
29931
  id: "office",
29932
29932
  version: documentExtractor("odt"),
@@ -29937,7 +29937,7 @@ var office = {
29937
29937
  }, "read")
29938
29938
  };
29939
29939
 
29940
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
29940
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
29941
29941
  var pdf = {
29942
29942
  id: "pdf",
29943
29943
  version: "unpdf",
@@ -30004,7 +30004,7 @@ var pdf = {
30004
30004
  }), "read")
30005
30005
  };
30006
30006
 
30007
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
30007
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
30008
30008
  var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
30009
30009
  var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
30010
30010
  var readPlain = /* @__PURE__ */ __name((bytes2) => {
@@ -30024,7 +30024,7 @@ var plain = {
30024
30024
  read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
30025
30025
  };
30026
30026
 
30027
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
30027
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
30028
30028
  var rtf = {
30029
30029
  id: "rtf",
30030
30030
  version: "v1",
@@ -30032,10 +30032,10 @@ var rtf = {
30032
30032
  read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
30033
30033
  };
30034
30034
 
30035
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
30035
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
30036
30036
  import { basename as basename5 } from "node:path";
30037
30037
 
30038
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
30038
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
30039
30039
  var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
30040
30040
  const cells = [];
30041
30041
  let row = 1, column = 1, start = 0, quoted = false, truncated = false;
@@ -30073,7 +30073,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
30073
30073
  return { cells, truncated };
30074
30074
  }, "delimitedSpans");
30075
30075
 
30076
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
30076
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
30077
30077
  var DELIMITED = {
30078
30078
  ".csv": ",",
30079
30079
  ".tsv": " ",
@@ -30112,7 +30112,7 @@ var sheets = {
30112
30112
  }, "read")
30113
30113
  };
30114
30114
 
30115
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/readers/registry.js
30115
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/readers/registry.js
30116
30116
  var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
30117
30117
  var HEAD_BYTES = 1024;
30118
30118
  var readers = [...BUILT_INS2];
@@ -30122,7 +30122,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
30122
30122
  return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
30123
30123
  }, "readWithRegistry");
30124
30124
 
30125
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/extract.js
30125
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/extract.js
30126
30126
  var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
30127
30127
  var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
30128
30128
  var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
@@ -31201,7 +31201,7 @@ function imageSize(input) {
31201
31201
  }
31202
31202
  __name(imageSize, "imageSize");
31203
31203
 
31204
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
31204
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
31205
31205
  var MAX_PAGES = 20;
31206
31206
  var MAX_PIXELS = 2e7;
31207
31207
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
@@ -31361,7 +31361,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
31361
31361
  }
31362
31362
  }, "ocrPdf");
31363
31363
 
31364
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
31364
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
31365
31365
  var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
31366
31366
  const limits = pdfPreviewLimits(env);
31367
31367
  const cancelled3 = /* @__PURE__ */ __name(() => {
@@ -31438,7 +31438,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
31438
31438
  }
31439
31439
  }, "pdfPreview");
31440
31440
 
31441
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
31441
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
31442
31442
  import { spawn } from "node:child_process";
31443
31443
  import { mkdtempSync, readFileSync as readFileSync6, rmSync as rmSync2, writeFileSync as writeFileSync3 } from "node:fs";
31444
31444
  import { tmpdir } from "node:os";
@@ -31601,7 +31601,7 @@ Read the attached picture.`,
31601
31601
  }
31602
31602
  }, "readPictureWithAgent");
31603
31603
 
31604
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
31604
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
31605
31605
  import { createHash as createHash8 } from "node:crypto";
31606
31606
  import { constants } from "node:fs";
31607
31607
  import { lstat as lstat3, open as open5 } from "node:fs/promises";
@@ -31709,7 +31709,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
31709
31709
  return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
31710
31710
  }, "transferMime");
31711
31711
 
31712
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/file-download.js
31712
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/file-download.js
31713
31713
  import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
31714
31714
  import { link as link3, rm } from "node:fs/promises";
31715
31715
  import { join as join16, resolve as resolve6 } from "node:path";
@@ -31823,12 +31823,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
31823
31823
  }
31824
31824
  }, "save");
31825
31825
 
31826
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/pictures.js
31826
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/pictures.js
31827
31827
  import { createHash as createHash9 } from "node:crypto";
31828
31828
  import { lstat as lstat4, readFile } from "node:fs/promises";
31829
31829
  import { setTimeout as sleep4 } from "node:timers/promises";
31830
31830
 
31831
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/models.js
31831
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/models.js
31832
31832
  var GROUP_SETTINGS = [
31833
31833
  "allCanPin",
31834
31834
  "onlyAdminsAdd",
@@ -31842,7 +31842,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
31842
31842
  var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
31843
31843
  var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
31844
31844
 
31845
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/pictures.js
31845
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/pictures.js
31846
31846
  var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
31847
31847
  var PICTURE_FLOOR = 0.25;
31848
31848
  var PAGE4 = 50;
@@ -31883,7 +31883,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
31883
31883
  const directory2 = imageModelsDirectory(deps.env);
31884
31884
  if (!isImageModelInstalled(model2, directory2))
31885
31885
  throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
31886
- const { openPictureEmbedder } = await import("./embedder-MVS3PVWQ.js");
31886
+ const { openPictureEmbedder } = await import("./embedder-W2L7YZPW.js");
31887
31887
  return openPictureEmbedder(model2, directory2);
31888
31888
  }, "open");
31889
31889
  const embedder = /* @__PURE__ */ __name(() => {
@@ -32057,7 +32057,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
32057
32057
  }, "search")
32058
32058
  }), "withPictures");
32059
32059
 
32060
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/attachments.js
32060
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/attachments.js
32061
32061
  var ATTACHMENT_QUERY = {
32062
32062
  entity: "attachment",
32063
32063
  backend: "sql",
@@ -32528,7 +32528,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
32528
32528
  }, "readPicture")
32529
32529
  }), "attachmentsService");
32530
32530
 
32531
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
32531
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
32532
32532
  var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
32533
32533
  list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
32534
32534
  const store = await accountStore(deps);
@@ -32558,7 +32558,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
32558
32558
  }, "list")
32559
32559
  }), "chatDocumentsService");
32560
32560
 
32561
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/retention.js
32561
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/retention.js
32562
32562
  var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
32563
32563
  const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
32564
32564
  const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
@@ -32645,7 +32645,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
32645
32645
  }
32646
32646
  }, "isRetentionSelection");
32647
32647
 
32648
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/counters.js
32648
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/counters.js
32649
32649
  var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
32650
32650
  const fields = text2.split(",").map((one) => one.trim());
32651
32651
  if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
@@ -32852,7 +32852,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
32852
32852
  };
32853
32853
  }, "countersService");
32854
32854
 
32855
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
32855
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
32856
32856
  var SYNC_KEY = "messages.sync-first";
32857
32857
  var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
32858
32858
  var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
@@ -32984,7 +32984,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
32984
32984
  ...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
32985
32985
  }), "withRefresh");
32986
32986
 
32987
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
32987
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
32988
32988
  var CANDIDATES = 50;
32989
32989
  var WORD_HITS = 200;
32990
32990
  var RRF_K = 60;
@@ -33259,13 +33259,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
33259
33259
  return mean2.map((value) => value / length);
33260
33260
  }, "meanOf");
33261
33261
 
33262
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/embeddings.js
33262
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/embeddings.js
33263
33263
  var embeddingsService = /* @__PURE__ */ __name((deps) => ({
33264
33264
  ...embeddingsMaintenance(deps),
33265
33265
  ...embeddingsSearch(deps)
33266
33266
  }), "embeddingsService");
33267
33267
 
33268
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/folders.js
33268
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/folders.js
33269
33269
  var foldersService = /* @__PURE__ */ __name((deps) => {
33270
33270
  const online = /* @__PURE__ */ __name(async (command) => {
33271
33271
  if (deps.offline)
@@ -33406,7 +33406,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
33406
33406
  };
33407
33407
  }, "foldersService");
33408
33408
 
33409
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/mentions.js
33409
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/mentions.js
33410
33410
  var REVIEW_COUNT = 500;
33411
33411
  var mentionsService = /* @__PURE__ */ __name((deps) => {
33412
33412
  const located = /* @__PURE__ */ __name(async () => {
@@ -33485,7 +33485,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
33485
33485
  };
33486
33486
  }, "mentionsService");
33487
33487
 
33488
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/message-link.js
33488
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/message-link.js
33489
33489
  var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
33490
33490
  position,
33491
33491
  kind,
@@ -33534,7 +33534,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
33534
33534
  return { url: link4.url, access: link4.access, reason: link4.reason };
33535
33535
  }, "validatePermalink");
33536
33536
 
33537
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
33537
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
33538
33538
  var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
33539
33539
  if (seconds % 86400 === 0 && seconds > 86400)
33540
33540
  return `${seconds / 86400}d`;
@@ -33566,7 +33566,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
33566
33566
  return seconds;
33567
33567
  }, "pinDurationOf");
33568
33568
 
33569
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/send-as.js
33569
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/sends/send-as.js
33570
33570
  var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
33571
33571
  if (sendAs === void 0) {
33572
33572
  const saved = connection.savedSender?.bind(connection);
@@ -33591,7 +33591,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
33591
33591
  return sendAs;
33592
33592
  }, "typedSendAs");
33593
33593
 
33594
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/search/total.js
33594
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/total.js
33595
33595
  var TOTAL_CAP = 1e4;
33596
33596
  var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
33597
33597
  const least = shown + (hasMore ? 1 : 0);
@@ -33602,7 +33602,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
33602
33602
  return { value: count4, relation: exact ? "eq" : "gte" };
33603
33603
  }, "totalOf");
33604
33604
 
33605
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
33605
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
33606
33606
  var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
33607
33607
  var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
33608
33608
  let narrows = false;
@@ -33631,7 +33631,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
33631
33631
  return wanted(root).join(" ").trim();
33632
33632
  }, "meaningWords");
33633
33633
 
33634
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/search/question-plan.js
33634
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/question-plan.js
33635
33635
  var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
33636
33636
  var scaffolding = new Set(words2("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
33637
33637
  var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
@@ -33764,7 +33764,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
33764
33764
  return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
33765
33765
  }, "questionLookup");
33766
33766
 
33767
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
33767
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
33768
33768
  var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
33769
33769
  var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
33770
33770
  var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
@@ -33958,7 +33958,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
33958
33958
  return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
33959
33959
  }, "signals");
33960
33960
 
33961
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
33961
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
33962
33962
  var MEANING_DEPTH = 100;
33963
33963
  var RRF_K2 = 60;
33964
33964
  var RERANK_DEPTH = 50;
@@ -34284,7 +34284,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
34284
34284
  })).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
34285
34285
  }, "mixedWithReranker");
34286
34286
 
34287
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/thread-context.js
34287
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/thread-context.js
34288
34288
  var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
34289
34289
  var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
34290
34290
  var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
@@ -34483,7 +34483,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
34483
34483
  return result;
34484
34484
  }, "readThreadContext");
34485
34485
 
34486
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
34486
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
34487
34487
  var SEARCH_FILL_MS = 200;
34488
34488
  var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
34489
34489
  const stop = Date.now() + SEARCH_FILL_MS;
@@ -34552,7 +34552,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
34552
34552
  }, "accountOf");
34553
34553
  var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
34554
34554
 
34555
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
34555
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
34556
34556
  var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
34557
34557
  const chosen = chosenTextModel(env);
34558
34558
  if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
@@ -34567,7 +34567,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
34567
34567
  return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
34568
34568
  }, "meaningModel");
34569
34569
 
34570
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
34570
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
34571
34571
  var meaningText = /* @__PURE__ */ __name((question) => {
34572
34572
  try {
34573
34573
  const text2 = questionLookup(question) === void 0 ? question : questionText(question);
@@ -34646,7 +34646,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
34646
34646
  }
34647
34647
  }, "meaningLane");
34648
34648
 
34649
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
34649
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
34650
34650
  var rerankLane = /* @__PURE__ */ __name((deps) => {
34651
34651
  const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
34652
34652
  if (choice === "off")
@@ -34658,9 +34658,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
34658
34658
  return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
34659
34659
  try {
34660
34660
  const warm = deps.embedders;
34661
- const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-VZKFAGNP.js")).openRerankerProcess(model, directory2, {
34661
+ const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-HG3QDD54.js")).openRerankerProcess(model, directory2, {
34662
34662
  threads: defaultThreads()
34663
- })) : await (await import("./rerank-ONAEQVJ6.js")).openReranker(model, directory2);
34663
+ })) : await (await import("./rerank-TI5SLEF4.js")).openReranker(model, directory2);
34664
34664
  return {
34665
34665
  model: model.id,
34666
34666
  score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
@@ -34680,7 +34680,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
34680
34680
  };
34681
34681
  }, "rerankLane");
34682
34682
 
34683
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/search/question-period.js
34683
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/question-period.js
34684
34684
  var DAY5 = 864e5;
34685
34685
  var SPAN = { start: 0, end: 0 };
34686
34686
  var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
@@ -34805,17 +34805,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
34805
34805
  };
34806
34806
  }, "questionPeriod");
34807
34807
 
34808
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
34808
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
34809
34809
  var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
34810
34810
  const model = imageModel(DEFAULT_IMAGE_MODEL);
34811
34811
  const directory2 = imageModelsDirectory(env);
34812
34812
  if (!isImageModelInstalled(model, directory2))
34813
34813
  throw new CliError("not_found", `the picture model is not downloaded \u2014 ${command === void 0 ? "install it with a WireCat CLI that has `images models download` (tg, max or wa); they share the model folder" : `\`${command} images models download ${model.id}\` fetches it`}`, { reason: "model.not-downloaded", model: model.id });
34814
- const { openPictureEmbedder } = await import("./embedder-MVS3PVWQ.js");
34814
+ const { openPictureEmbedder } = await import("./embedder-W2L7YZPW.js");
34815
34815
  return openPictureEmbedder(model, directory2);
34816
34816
  }, "openPictureEmbedderFor");
34817
34817
 
34818
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/document-source.js
34818
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/document-source.js
34819
34819
  var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
34820
34820
  const metadata = note.frontMatter;
34821
34821
  const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
@@ -34837,7 +34837,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
34837
34837
  };
34838
34838
  }, "documentSource");
34839
34839
 
34840
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
34840
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
34841
34841
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
34842
34842
  const host = new URL(baseUrl).host;
34843
34843
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -34870,7 +34870,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
34870
34870
  };
34871
34871
  }, "embeddingKeys");
34872
34872
 
34873
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/models/openai.js
34873
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/models/openai.js
34874
34874
  var options = strictObject({
34875
34875
  temperature: range(0, 2),
34876
34876
  top_p: range(0, 1),
@@ -34937,7 +34937,7 @@ var openai = {
34937
34937
  }), "complete")
34938
34938
  };
34939
34939
 
34940
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/models/index.js
34940
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/models/index.js
34941
34941
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
34942
34942
  complete: /* @__PURE__ */ __name(async (request) => {
34943
34943
  if (deps.signal?.aborted)
@@ -34952,7 +34952,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
34952
34952
  if (!adapter && target2.provider === "openai")
34953
34953
  adapter = openai;
34954
34954
  if (!adapter && target2.provider === "anthropic")
34955
- adapter = (await import("./anthropic-N54MKE4C.js")).anthropic;
34955
+ adapter = (await import("./anthropic-SINVEVEM.js")).anthropic;
34956
34956
  if (!adapter)
34957
34957
  throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
34958
34958
  if (request.images !== void 0 && adapter.images !== true)
@@ -35012,7 +35012,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
35012
35012
  }, "complete")
35013
35013
  }), "modelGateway");
35014
35014
 
35015
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
35015
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
35016
35016
  var SECTION2 = "enrichment";
35017
35017
  var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
35018
35018
  var DEFAULT_BASE_URLS = {
@@ -35087,7 +35087,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
35087
35087
  return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
35088
35088
  }, "costOf");
35089
35089
 
35090
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/enrichment.js
35090
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/enrichment.js
35091
35091
  var ENRICH_PER_RUN = 600;
35092
35092
  var MAX_LINE = 400;
35093
35093
  var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
@@ -35163,7 +35163,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
35163
35163
  };
35164
35164
  }, "enrichmentState");
35165
35165
 
35166
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
35166
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
35167
35167
  var plainQueryWords = /* @__PURE__ */ __name((query) => {
35168
35168
  let root;
35169
35169
  try {
@@ -35190,7 +35190,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
35190
35190
  return [...hits].sort((a, b) => rank(a) - rank(b));
35191
35191
  }, "titleTiers");
35192
35192
 
35193
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/notes-search.js
35193
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/notes-search.js
35194
35194
  var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
35195
35195
  var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
35196
35196
  var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
@@ -35619,7 +35619,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
35619
35619
  };
35620
35620
  }, "searchNotesOf");
35621
35621
 
35622
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/events-search.js
35622
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/events-search.js
35623
35623
  var MAX_EVENTS_OFFSET = 1e3;
35624
35624
  var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
35625
35625
  var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
@@ -35737,7 +35737,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
35737
35737
  };
35738
35738
  }, "searchEvents");
35739
35739
 
35740
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
35740
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
35741
35741
  var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
35742
35742
  var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
35743
35743
  var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
@@ -35767,7 +35767,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
35767
35767
  };
35768
35768
  }, "searchBusiness");
35769
35769
 
35770
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
35770
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
35771
35771
  var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
35772
35772
  const { project, tag, topic, ...input } = request;
35773
35773
  input.signal?.throwIfAborted();
@@ -35805,7 +35805,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
35805
35805
  return { input, selection };
35806
35806
  }, "resolveMeetingSelection");
35807
35807
 
35808
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
35808
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
35809
35809
  var MOST_HITS_PER_MEETING = 3;
35810
35810
  var PAGE_ROWS = 200;
35811
35811
  var MOST_PAGES = 25;
@@ -36033,7 +36033,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
36033
36033
  foundBy: ["title"]
36034
36034
  }), "titleItem");
36035
36035
 
36036
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/search-harder.js
36036
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/search-harder.js
36037
36037
  var SECTION3 = "search_harder";
36038
36038
  var HARDER_MODELS = {
36039
36039
  anthropic: "claude-haiku-5-5",
@@ -36279,7 +36279,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
36279
36279
  };
36280
36280
  }, "reorderHarder");
36281
36281
 
36282
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/search-all.js
36282
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/search-all.js
36283
36283
  var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
36284
36284
  var refusal = /* @__PURE__ */ __name((error, text2) => {
36285
36285
  const { reason, span } = error.details ?? {};
@@ -36358,6 +36358,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
36358
36358
  const discover = !request.exact && questionLookup(request.text) !== void 0;
36359
36359
  const cosines = /* @__PURE__ */ new Map();
36360
36360
  let coverage2;
36361
+ const meetingAccountsRead = /* @__PURE__ */ new Set();
36361
36362
  let meetings;
36362
36363
  const messagesOf = /* @__PURE__ */ __name(async (kind) => {
36363
36364
  const given = scope?.[kind];
@@ -36577,6 +36578,8 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
36577
36578
  continue;
36578
36579
  hasMore ||= found.hasMore;
36579
36580
  meetings = found.coverage;
36581
+ for (const { id: id2 } of found.read)
36582
+ meetingAccountsRead.add(id2);
36580
36583
  lists.push(found.items);
36581
36584
  for (const { provider, account: account2 } of found.read)
36582
36585
  accounts.push({ resource, provider, account: account2 });
@@ -36592,7 +36595,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
36592
36595
  } finally {
36593
36596
  await embedders.close();
36594
36597
  }
36595
- let ordered = insidePeriodFirst(oneList(lists, cosines), period);
36598
+ let ordered = insidePeriodFirst(oneList(await withMeetingDocuments(store, lists, meetingAccountsRead), cosines), period);
36596
36599
  let harder;
36597
36600
  if (request.harder) {
36598
36601
  const asking = {
@@ -36633,6 +36636,34 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
36633
36636
  ...harder === void 0 ? {} : { harder }
36634
36637
  };
36635
36638
  }, "searchAll");
36639
+ var withMeetingDocuments = /* @__PURE__ */ __name(async (store, lists, read) => {
36640
+ if (!read.size)
36641
+ return lists;
36642
+ const documentOf = /* @__PURE__ */ __name((item2) => item2.kind === "document" && /^document:\d+$/.test(item2.ref) ? Number(item2.ref.slice("document:".length)) : void 0, "documentOf");
36643
+ const documents = lists.flat().flatMap((item2) => documentOf(item2) ?? []);
36644
+ if (!documents.length)
36645
+ return lists;
36646
+ const owners = await store.meetings.documentMeetings(documents);
36647
+ if (!owners.size)
36648
+ return lists;
36649
+ const meetings = new Set(lists.flat().flatMap((item2) => item2.kind === "meeting" ? [item2.meetingId] : []));
36650
+ return lists.map((list3) => list3.flatMap((item2) => {
36651
+ const document = documentOf(item2);
36652
+ const owner = document === void 0 ? void 0 : owners.get(document);
36653
+ if (owner === void 0 || item2.kind === "meeting")
36654
+ return [item2];
36655
+ if (owner.role === "transcript" && meetings.has(owner.meetingId))
36656
+ return [];
36657
+ if (!read.has(owner.accountId))
36658
+ return [item2];
36659
+ return [
36660
+ {
36661
+ ...item2,
36662
+ meeting: formatMeetingReference({ type: "meeting", accountId: owner.accountId, meetingId: owner.meetingId })
36663
+ }
36664
+ ];
36665
+ }));
36666
+ }, "withMeetingDocuments");
36636
36667
  var hitKey = /* @__PURE__ */ __name((item2) => item2.kind === "meeting" ? `${item2.ref}\0${item2.scope}\0${item2.id}` : item2.ref, "hitKey");
36637
36668
  var oneList = /* @__PURE__ */ __name((lists, cosines) => {
36638
36669
  const place = /* @__PURE__ */ new Map();
@@ -36661,7 +36692,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
36661
36692
  return ordered.map((item2, rank) => ({ item: item2, score: 1 - rank / PERIOD_DEPTH + (inside2(item2) ? PERIOD_BOOST : 0) })).sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
36662
36693
  }, "insidePeriodFirst");
36663
36694
 
36664
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/server-search.js
36695
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/server-search.js
36665
36696
  var SERVER_SEARCH_KEY = "messages.server-search";
36666
36697
  var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
36667
36698
  var DEFAULT_BACKEND = "both";
@@ -36850,7 +36881,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
36850
36881
  return { report, sources };
36851
36882
  }, "searchServer");
36852
36883
 
36853
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/messages.js
36884
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/messages.js
36854
36885
  var DELETE_AT_ONCE = 10;
36855
36886
  var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
36856
36887
  const files = fileLinks(attachments);
@@ -37290,7 +37321,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
37290
37321
  throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
37291
37322
  }, "checkMediaOptions");
37292
37323
 
37293
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
37324
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
37294
37325
  var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
37295
37326
  var RULES2 = {
37296
37327
  ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
@@ -37305,7 +37336,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
37305
37336
  return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
37306
37337
  }), "classifyChannel");
37307
37338
 
37308
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/metadata.js
37339
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/metadata.js
37309
37340
  var metadataService = /* @__PURE__ */ __name((deps) => {
37310
37341
  const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
37311
37342
  const store = await deps.store();
@@ -37391,7 +37422,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
37391
37422
  };
37392
37423
  }, "metadataService");
37393
37424
 
37394
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/moderation/run.js
37425
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/moderation/run.js
37395
37426
  var FIRST_LOOK_MS = 24 * 36e5;
37396
37427
  var moderateWith = /* @__PURE__ */ __name(async (run2) => {
37397
37428
  const { chatId, title, rules, point, since, dryRun } = run2;
@@ -37428,7 +37459,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
37428
37459
  return { chatId, rows, notes };
37429
37460
  }, "moderateWith");
37430
37461
 
37431
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/moderation.js
37462
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/moderation.js
37432
37463
  var moderationService = /* @__PURE__ */ __name((deps) => {
37433
37464
  const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
37434
37465
  const group = /* @__PURE__ */ __name(async (chat) => {
@@ -37506,7 +37537,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
37506
37537
  }, "removePerson")
37507
37538
  }), "moderatorOf");
37508
37539
 
37509
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/private-people.js
37540
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/private-people.js
37510
37541
  var noteItem = /* @__PURE__ */ __name((provider, note) => ({
37511
37542
  id: note.id,
37512
37543
  contact: formatReference({ type: "contact", provider, id: note.personId }),
@@ -37550,7 +37581,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
37550
37581
  };
37551
37582
  }, "privatePeopleService");
37552
37583
 
37553
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/rankings.js
37584
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/rankings.js
37554
37585
  var empty = /* @__PURE__ */ __name(() => ({
37555
37586
  total: 0,
37556
37587
  population: 0,
@@ -37806,7 +37837,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
37806
37837
  }, "evidence")
37807
37838
  }), "rankingsService");
37808
37839
 
37809
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
37840
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
37810
37841
  var FIELDS = ["date", "chat", "kind", "muted"];
37811
37842
  var WAITING_TAIL = 100;
37812
37843
  var plainOnly = /* @__PURE__ */ __name((text2, command) => {
@@ -37940,7 +37971,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
37940
37971
  };
37941
37972
  }, "replyStatsService");
37942
37973
 
37943
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/searches.js
37974
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/searches.js
37944
37975
  var savedSearchItem = /* @__PURE__ */ __name((one) => ({
37945
37976
  id: one.id,
37946
37977
  name: one.name,
@@ -38066,7 +38097,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
38066
38097
  };
38067
38098
  }, "searchesService");
38068
38099
 
38069
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/tags.js
38100
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/tags.js
38070
38101
  var TAGGING_QUERY = {
38071
38102
  entity: "tagging",
38072
38103
  backend: "sql",
@@ -38150,7 +38181,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
38150
38181
  };
38151
38182
  }, "tagsService");
38152
38183
 
38153
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/topics.js
38184
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/topics.js
38154
38185
  var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
38155
38186
  const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
38156
38187
  if (title !== void 0 || icon !== void 0 || set !== 1)
@@ -38349,10 +38380,10 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
38349
38380
  };
38350
38381
  }, "topicsService");
38351
38382
 
38352
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/crm/sync.js
38383
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/crm/sync.js
38353
38384
  var CLOCK_MARGIN = 60 * 6e4;
38354
38385
 
38355
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/crm/writer.js
38386
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/crm/writer.js
38356
38387
  var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
38357
38388
  var CRM_WRITE_DEFAULTS = {
38358
38389
  "deals.delete": "ask",
@@ -38360,7 +38391,7 @@ var CRM_WRITE_DEFAULTS = {
38360
38391
  [CRM_ASSIGN_OTHERS_KEY]: "deny"
38361
38392
  };
38362
38393
 
38363
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/evidence.js
38394
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/evidence.js
38364
38395
  import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
38365
38396
  var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
38366
38397
  var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
@@ -38434,7 +38465,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
38434
38465
  return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
38435
38466
  }, "prepareEvidencePacket");
38436
38467
 
38437
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
38468
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
38438
38469
  var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
38439
38470
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
38440
38471
  throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
@@ -38454,7 +38485,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
38454
38485
  return { ...packet, nextBeforeId: older && last ? last.id : null };
38455
38486
  }, "readEvidencePacket");
38456
38487
 
38457
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
38488
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
38458
38489
  var scopeKeys = [
38459
38490
  "accountId",
38460
38491
  "meetingId",
@@ -38476,7 +38507,7 @@ var optionKeys = /* @__PURE__ */ new Set([
38476
38507
  "maxVocabularyReadBytes"
38477
38508
  ]);
38478
38509
 
38479
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
38510
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
38480
38511
  import { createHash as createHash12 } from "node:crypto";
38481
38512
  import { existsSync as existsSync3 } from "node:fs";
38482
38513
  var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
@@ -38607,7 +38638,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
38607
38638
  return { ...checked2.output, custom: true };
38608
38639
  }, "addCustomTextModel");
38609
38640
 
38610
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
38641
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
38611
38642
  var communicationFields = {
38612
38643
  sources: pipe(array(strictObject({
38613
38644
  id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
@@ -38639,7 +38670,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
38639
38670
  return { ...input, after, before: before2 };
38640
38671
  }, "communicationRequest");
38641
38672
 
38642
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
38673
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
38643
38674
  var MEETING_PREPARATION_LIMITS = {
38644
38675
  meetings: { min: 1, max: 20, default: 5 },
38645
38676
  cues: { min: 1, max: 100, default: 10 },
@@ -38712,7 +38743,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
38712
38743
  };
38713
38744
  }, "validateMeetingPreparationRequest");
38714
38745
 
38715
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
38746
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
38716
38747
  var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
38717
38748
  const fail2 = /* @__PURE__ */ __name(() => {
38718
38749
  throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
@@ -38760,7 +38791,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
38760
38791
  }
38761
38792
  }, "validatePreparationCommunications");
38762
38793
 
38763
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
38794
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
38764
38795
  var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
38765
38796
  const installer = ports.installer();
38766
38797
  const argv = updateCommand(installer, packageName);
@@ -38825,7 +38856,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
38825
38856
  return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
38826
38857
  }, "dayAfter");
38827
38858
 
38828
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/index.js
38859
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/services/index.js
38829
38860
  var servicesFor = /* @__PURE__ */ __name((deps) => {
38830
38861
  const pictures = picturesService(deps);
38831
38862
  const base = {
@@ -38862,7 +38893,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
38862
38893
  return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
38863
38894
  }, "servicesFor");
38864
38895
 
38865
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/background/relay.js
38896
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/background/relay.js
38866
38897
  import { createHash as createHash13 } from "node:crypto";
38867
38898
  import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync3 } from "node:fs";
38868
38899
  import { createConnection, createServer } from "node:net";
@@ -39083,7 +39114,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
39083
39114
  }, () => finish({ error: stopped() }));
39084
39115
  }), "relayCommand");
39085
39116
 
39086
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
39117
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
39087
39118
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
39088
39119
  close: /* @__PURE__ */ __name(async () => {
39089
39120
  }, "close"),