@wirecat/drive-cli 0.49.0 → 0.51.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.
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-WK2XXGPU.js → all-profiles-H3APJWSO.js} +8 -8
- package/dist/bundle/{anthropic-R354D7GT.js → anthropic-P7DXFYFE.js} +5 -5
- package/dist/bundle/{app-server-3YHJ757G.js → app-server-IQUR7ZC2.js} +52 -52
- package/dist/bundle/{bun-JVDJVDHL.js → bun-LZUEW2ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-KZCZWSRZ.js → bun-sqlite-6LUE7UA6.js} +4 -4
- package/dist/bundle/{chunk-NFU3OBCC.js → chunk-2TPENYCK.js} +4 -4
- package/dist/bundle/{chunk-SSD2V4HR.js → chunk-35IHF562.js} +280 -259
- package/dist/bundle/{chunk-U77RLMOK.js → chunk-3KTDFSSK.js} +2 -2
- package/dist/bundle/{chunk-463NMG57.js → chunk-4GFAOETW.js} +3 -3
- package/dist/bundle/{chunk-EOZPMJJP.js → chunk-4YG2FZ53.js} +7 -7
- package/dist/bundle/{chunk-JMRHDZMV.js → chunk-5C7RKU7O.js} +33 -32
- package/dist/bundle/{chunk-75VCGSNB.js → chunk-6FXFYXTR.js} +15 -15
- package/dist/bundle/{chunk-QEM3MOSB.js → chunk-7LYVWMKD.js} +8 -8
- package/dist/bundle/{chunk-467AQO7E.js → chunk-7ZNM6KXP.js} +7 -7
- package/dist/bundle/{chunk-P7INAZIT.js → chunk-AKW5MNQP.js} +5 -5
- package/dist/bundle/{chunk-HD3TFIT4.js → chunk-AUW45JPI.js} +6 -6
- package/dist/bundle/{chunk-JZ3SUK2M.js → chunk-BMI5VCR4.js} +5 -5
- package/dist/bundle/{chunk-22LTNYO2.js → chunk-BVDAP3FQ.js} +9 -9
- package/dist/bundle/{chunk-CCLDCM7J.js → chunk-CT6Z6Z64.js} +410 -244
- package/dist/bundle/{chunk-ABVFH76X.js → chunk-CX7HQ6KK.js} +5 -5
- package/dist/bundle/{chunk-MC77UZVA.js → chunk-D222O57O.js} +6 -6
- package/dist/bundle/{chunk-HF2T7E67.js → chunk-D3UFQC7K.js} +49 -49
- package/dist/bundle/{chunk-KK3BA4IS.js → chunk-DDD3FS6G.js} +2 -2
- package/dist/bundle/{chunk-254VYUWN.js → chunk-DEVPGI27.js} +17 -17
- package/dist/bundle/{chunk-BJ3JRO34.js → chunk-EY4CUQW2.js} +7 -7
- package/dist/bundle/{chunk-RAAI3JLI.js → chunk-F3PPSIKI.js} +3 -3
- package/dist/bundle/{chunk-6Z3W7LTD.js → chunk-FCZ762RV.js} +8 -8
- package/dist/bundle/{chunk-Y2AUB4TJ.js → chunk-FV5WG4WU.js} +80 -33
- package/dist/bundle/{chunk-R2QRP7EJ.js → chunk-G75FZQAZ.js} +13 -9
- package/dist/bundle/{chunk-2BADVV4A.js → chunk-GK2VUKQY.js} +2 -2
- package/dist/bundle/{chunk-3UHJC6HH.js → chunk-HBRTKJ3J.js} +7 -7
- package/dist/bundle/{chunk-VHT2WI4I.js → chunk-HGWMX7BM.js} +101 -73
- package/dist/bundle/{chunk-XVXXWNAA.js → chunk-HYT3FJVB.js} +4 -4
- package/dist/bundle/{chunk-HIAO4MPA.js → chunk-I7EP3VPJ.js} +1 -1
- package/dist/bundle/{chunk-P4OU3OVF.js → chunk-J2S7QDOP.js} +14 -14
- package/dist/bundle/{chunk-FB7I5JWC.js → chunk-JI5KFKTL.js} +6 -6
- package/dist/bundle/{chunk-IRDGH7DV.js → chunk-K3EK4MTU.js} +3 -3
- package/dist/bundle/{chunk-5KR7BKDV.js → chunk-K6JSVXDN.js} +5 -5
- package/dist/bundle/{chunk-5ISHP4TK.js → chunk-LLMHJE5Q.js} +2 -2
- package/dist/bundle/{chunk-7BA3HL7N.js → chunk-LZKPT7GY.js} +35 -35
- package/dist/bundle/{chunk-CB5NGX6E.js → chunk-MPTD5P53.js} +2 -2
- package/dist/bundle/{chunk-MP2UCK3Z.js → chunk-N33EOINW.js} +4 -4
- package/dist/bundle/{chunk-KYJYOZYG.js → chunk-NO34DAIB.js} +6 -6
- package/dist/bundle/{chunk-PPXNEHYX.js → chunk-NRWDEBJB.js} +8 -8
- package/dist/bundle/{chunk-FZQSGLHU.js → chunk-NVHPYKYC.js} +11 -11
- package/dist/bundle/{chunk-2ZFR67KY.js → chunk-OASIFIXM.js} +2 -2
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-OKSS7YUN.js} +1 -1
- package/dist/bundle/{chunk-HVM5LS5Z.js → chunk-OQVJQSEH.js} +3 -3
- package/dist/bundle/{chunk-MAXN7COO.js → chunk-P3T2SZW2.js} +1 -1
- package/dist/bundle/{chunk-A3FU4RR6.js → chunk-PNUS224S.js} +4 -4
- package/dist/bundle/{chunk-FUJZ5S2Q.js → chunk-POFLDSTX.js} +10 -10
- package/dist/bundle/{chunk-R235IRSJ.js → chunk-PQGIV36R.js} +2 -2
- package/dist/bundle/{chunk-ZK7Y5K63.js → chunk-PRBPVOW4.js} +1 -1
- package/dist/bundle/{chunk-ITZI7T2X.js → chunk-PT6XDCOY.js} +2 -2
- package/dist/bundle/{chunk-2CKGGIWF.js → chunk-Q5CLTK5R.js} +3 -3
- package/dist/bundle/{chunk-NVHB2MHX.js → chunk-SRIPLP7N.js} +4 -4
- package/dist/bundle/{chunk-46X7Z4FD.js → chunk-SRONUWOM.js} +343 -282
- package/dist/bundle/{chunk-E2Y6GJZX.js → chunk-SZWQFR5X.js} +4 -4
- package/dist/bundle/{chunk-IRNX4CO5.js → chunk-TEH76MZK.js} +27 -27
- package/dist/bundle/{chunk-45TPBTR3.js → chunk-TSZJXI4N.js} +21 -21
- package/dist/bundle/{chunk-7WEISHFA.js → chunk-TVJU245P.js} +2 -2
- package/dist/bundle/{chunk-JMOX454R.js → chunk-U3OS6V6S.js} +1 -1
- package/dist/bundle/{chunk-AN7HENGZ.js → chunk-U7DPS46V.js} +108 -96
- package/dist/bundle/{chunk-XLJV3ZOH.js → chunk-UM4E2OFL.js} +1 -1
- package/dist/bundle/{chunk-DKJGYYCP.js → chunk-UMY4IQE2.js} +46 -46
- package/dist/bundle/{chunk-L5RZI2M5.js → chunk-UW7VXKKZ.js} +19 -19
- package/dist/bundle/{chunk-4ORK4UAY.js → chunk-VCPS7Q2W.js} +3 -3
- package/dist/bundle/{chunk-KKZYZ32J.js → chunk-VH4GVA2N.js} +2 -2
- package/dist/bundle/{chunk-IEAZAPC3.js → chunk-WACVI3CS.js} +42 -17
- package/dist/bundle/{chunk-LF7ACSTK.js → chunk-WX2NQO2D.js} +1 -1
- package/dist/bundle/{chunk-HBYE4EP2.js → chunk-WYWXOIGT.js} +1 -1
- package/dist/bundle/{chunk-P4NOTS3U.js → chunk-XBENRRBS.js} +2 -2
- package/dist/bundle/{chunk-W5IDHD6C.js → chunk-XCXUP76D.js} +27 -27
- package/dist/bundle/{chunk-NXFEZQDL.js → chunk-XE2GEE3E.js} +26 -26
- package/dist/bundle/{chunk-BQV3WYXW.js → chunk-XXLTVVMT.js} +31 -21
- package/dist/bundle/{chunk-YYMHFXHK.js → chunk-Y4YBW5S4.js} +2 -2
- package/dist/bundle/{chunk-VAGF723Z.js → chunk-Y73IZWRI.js} +1 -1
- package/dist/bundle/{chunk-624B6G64.js → chunk-YLC4JVQZ.js} +5 -5
- package/dist/bundle/{chunk-2DLAJGRN.js → chunk-YOABRW2M.js} +1 -1
- package/dist/bundle/{chunk-YOF5BC4G.js → chunk-YVQJPLPU.js} +2 -2
- package/dist/bundle/{chunk-EF2RCQ3L.js → chunk-YXHMEFL7.js} +1 -1
- package/dist/bundle/{chunk-W5EUHV3J.js → chunk-Z3GWVRW3.js} +1 -1
- package/dist/bundle/{chunk-65AW2AEQ.js → chunk-Z6KTSXE3.js} +2 -2
- package/dist/bundle/{chunk-HQ2PGEOK.js → chunk-ZKAAFY4C.js} +11 -11
- package/dist/bundle/command-contract-R6CGYG7L.js +38 -0
- package/dist/bundle/{decode-BE3VDYTJ.js → decode-4EENADOV.js} +4 -4
- package/dist/bundle/drive.js +7 -7
- package/dist/bundle/{echarts-4OQHS575.js → echarts-ZFC37XW7.js} +2 -2
- package/dist/bundle/{embed-QR76SJDI.js → embed-UZMNP26C.js} +5 -5
- package/dist/bundle/{embedder-EMIDKBYV.js → embedder-7VDWDBKF.js} +8 -8
- package/dist/bundle/{entry-FE4REJDO.js → entry-JJKCHVIK.js} +6 -6
- package/dist/bundle/failure-VBQBKCD5.js +37 -0
- package/dist/bundle/{first-run-ALPI62PX.js → first-run-FJTEUJBF.js} +9 -9
- package/dist/bundle/first-screen-NSPQWNMQ.js +36 -0
- package/dist/bundle/{google-NV75VSCD.js → google-JBJASYKY.js} +9 -9
- package/dist/bundle/google-api-2FKF4UUN.js +82 -0
- package/dist/bundle/{identity-NZ7SP6OL.js → identity-XE73ALJH.js} +2 -2
- package/dist/bundle/{instructions-3QZBKKPF.js → instructions-Q4ASITKO.js} +1 -1
- package/dist/bundle/{login-KNBM6XUX.js → login-BD2WQT5F.js} +62 -62
- package/dist/bundle/{mcp-XY2FGGUM.js → mcp-G6U2Q63E.js} +76 -76
- package/dist/bundle/mcp-H3XD47NW.js +95 -0
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-ZYZ4DFW2.js} +2 -2
- package/dist/bundle/{node-R2BLYUSB.js → node-CYM7VXFR.js} +2 -2
- package/dist/bundle/{node-sqlite-PMRVP442.js → node-sqlite-RK4MHW57.js} +4 -4
- package/dist/bundle/{oauth-NM2AKRRT.js → oauth-CQXQRHJR.js} +6 -6
- package/dist/bundle/{open-XZH5ZNDA.js → open-WSE4NBD2.js} +3 -3
- package/dist/bundle/{process-IX5YWGDP.js → process-7HHZZZLA.js} +1 -1
- package/dist/bundle/{program-MDWQHGBY.js → program-ZMQYZNV5.js} +95 -88
- package/dist/bundle/{prompt-5K6XGWSK.js → prompt-YSBBQJGF.js} +4 -4
- package/dist/bundle/{reasons-GF2TYGX6.js → reasons-366PI7OV.js} +3 -3
- package/dist/bundle/{recognize-U7GDD6T2.js → recognize-AZKGPCAS.js} +3 -3
- package/dist/bundle/{remote-ZWXOGNQX.js → remote-EYSK3XKD.js} +6 -6
- package/dist/bundle/{rerank-YRQBCS63.js → rerank-LOW6VIDF.js} +6 -6
- package/dist/bundle/{serve-6PQ7K5RK.js → serve-UJ52HGA7.js} +8 -8
- package/dist/bundle/server-CA2VLY25.js +56 -0
- package/dist/bundle/server-TW75RDEP.js +69 -0
- package/dist/bundle/{services-QBIQX236.js → services-B4QUSCFN.js} +28 -28
- package/dist/bundle/{sqlite-runtime-7Q5UD2VR.js → sqlite-runtime-GEURBVK5.js} +4 -4
- package/dist/bundle/{state-U72TC26L.js → state-OJNSKOXO.js} +5 -5
- package/dist/bundle/{store-B4RAJ63G.js → store-62SBP45X.js} +14 -14
- package/dist/bundle/{store-FYABCSIH.js → store-FTS2HVVB.js} +16 -16
- package/dist/bundle/store-maintenance-command-FQMB3R4E.js +57 -0
- package/dist/bundle/tokens-JALZUGEM.js +103 -0
- package/dist/commands/search.js +1 -1
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +10 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/contract-overrides.js +1 -1
- package/dist/contract-overrides.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +2 -2
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-AEA45IX7.js +0 -38
- package/dist/bundle/failure-GYOTW6NN.js +0 -37
- package/dist/bundle/first-screen-JLS57PIT.js +0 -36
- package/dist/bundle/google-api-6623OUF2.js +0 -82
- package/dist/bundle/mcp-4NPK6BM3.js +0 -95
- package/dist/bundle/server-O7SS6NAY.js +0 -56
- package/dist/bundle/server-WT57TF6S.js +0 -69
- package/dist/bundle/store-maintenance-command-DAF5NI3T.js +0 -57
- package/dist/bundle/tokens-DISQJKDM.js +0 -103
- /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-2WNDZFGG.js} +0 -0
- /package/dist/bundle/{chunk-YLBNPI7H.js → chunk-UO5O3665.js} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
engineMissing,
|
|
8
8
|
extractText,
|
|
9
9
|
importEngine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XE2GEE3E.js";
|
|
11
11
|
import {
|
|
12
12
|
MAX_ACTIONS,
|
|
13
13
|
ModerationRules,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
someUndone,
|
|
24
24
|
validateFormattedText,
|
|
25
25
|
visibleFormattedText
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4YG2FZ53.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_IMAGE_MODEL,
|
|
29
29
|
DEFAULT_RERANK_MODEL,
|
|
@@ -50,23 +50,23 @@ import {
|
|
|
50
50
|
typedCommand,
|
|
51
51
|
vectorModelKey,
|
|
52
52
|
withAttempt
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-XXLTVVMT.js";
|
|
54
54
|
import {
|
|
55
55
|
isCliFailure
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-LLMHJE5Q.js";
|
|
57
57
|
import {
|
|
58
58
|
isNewer,
|
|
59
59
|
updateCommand
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-PNUS224S.js";
|
|
61
61
|
import {
|
|
62
62
|
MAX_MODEL_IMAGE_BYTES
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-PQGIV36R.js";
|
|
64
64
|
import {
|
|
65
65
|
OPENAI_URL,
|
|
66
66
|
openRemote,
|
|
67
67
|
remoteKey,
|
|
68
68
|
remoteModel
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-OQVJQSEH.js";
|
|
70
70
|
import {
|
|
71
71
|
defaultThreads,
|
|
72
72
|
installNativeRuntime,
|
|
@@ -75,11 +75,11 @@ import {
|
|
|
75
75
|
placedText,
|
|
76
76
|
runEmbedders,
|
|
77
77
|
textModelsDirectory
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-AKW5MNQP.js";
|
|
79
79
|
import {
|
|
80
80
|
installFiles,
|
|
81
81
|
megabytes
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-CX7HQ6KK.js";
|
|
83
83
|
import {
|
|
84
84
|
AGENDA_COLUMNS,
|
|
85
85
|
CHAT_COLUMNS,
|
|
@@ -133,12 +133,12 @@ import {
|
|
|
133
133
|
threadConversation,
|
|
134
134
|
validateAst,
|
|
135
135
|
validateFields
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-SRONUWOM.js";
|
|
137
137
|
import {
|
|
138
138
|
MAX_TEXT_CHARS,
|
|
139
139
|
attachmentMaxBytes,
|
|
140
140
|
pdfPreviewLimits
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-3KTDFSSK.js";
|
|
142
142
|
import {
|
|
143
143
|
COUNTER_FIELDS,
|
|
144
144
|
INTERNAL_NOTES,
|
|
@@ -157,13 +157,13 @@ import {
|
|
|
157
157
|
parseReference,
|
|
158
158
|
providerNamed,
|
|
159
159
|
rankingOptions
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-7ZNM6KXP.js";
|
|
161
161
|
import {
|
|
162
162
|
TASK_KINDS,
|
|
163
163
|
TASK_ORIGINS,
|
|
164
164
|
TASK_STATES,
|
|
165
165
|
createTaskService
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-AUW45JPI.js";
|
|
167
167
|
import {
|
|
168
168
|
MEETING_FINDINGS_KIND,
|
|
169
169
|
canonicalMeetingReference,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
validateMeetingHitSearch,
|
|
183
183
|
validateMeetingPassage,
|
|
184
184
|
validateMeetingSeriesHistory
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-UMY4IQE2.js";
|
|
186
186
|
import {
|
|
187
187
|
dateRange,
|
|
188
188
|
implicitTextTerms,
|
|
@@ -192,25 +192,25 @@ import {
|
|
|
192
192
|
timezoneOf,
|
|
193
193
|
validateQuery,
|
|
194
194
|
walkQuery
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-G75FZQAZ.js";
|
|
196
196
|
import {
|
|
197
197
|
DEFAULT_STEMMERS,
|
|
198
198
|
createStemmer,
|
|
199
199
|
fold,
|
|
200
200
|
normalize
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-FCZ762RV.js";
|
|
202
202
|
import {
|
|
203
203
|
DEFAULT_TASK_CATEGORIES,
|
|
204
204
|
FALLBACK_CATEGORY
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-JI5KFKTL.js";
|
|
206
206
|
import {
|
|
207
207
|
storePath,
|
|
208
208
|
wirecatDirectory
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-Z6KTSXE3.js";
|
|
210
210
|
import {
|
|
211
211
|
resolvePaths,
|
|
212
212
|
singleLine
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-HGWMX7BM.js";
|
|
214
214
|
import {
|
|
215
215
|
CliError,
|
|
216
216
|
array,
|
|
@@ -226,12 +226,12 @@ import {
|
|
|
226
226
|
safeParse,
|
|
227
227
|
strictObject,
|
|
228
228
|
string
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-EY4CUQW2.js";
|
|
230
230
|
import {
|
|
231
231
|
__name
|
|
232
232
|
} from "./chunk-ZVVMGPBJ.js";
|
|
233
233
|
|
|
234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
235
235
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
236
236
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
237
237
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -309,7 +309,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account2, { app, env }) => {
|
|
|
309
309
|
return { ...storedDeps(messenger, store, account2, guard), ...env === void 0 ? {} : { env } };
|
|
310
310
|
}, "storeOnlyDeps");
|
|
311
311
|
|
|
312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
313
313
|
var DAY_MS = 864e5;
|
|
314
314
|
var NEW_DAYS = 30;
|
|
315
315
|
var SAME_TEXT_MIN = 20;
|
|
@@ -386,7 +386,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
386
386
|
};
|
|
387
387
|
}, "scorePerson");
|
|
388
388
|
|
|
389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
390
390
|
var REGISTRIES = {
|
|
391
391
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
392
392
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -471,7 +471,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
471
471
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
472
472
|
})), "notCovered");
|
|
473
473
|
|
|
474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
475
475
|
var ACTIVITY_MESSAGES = 1e3;
|
|
476
476
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
477
477
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -559,7 +559,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
559
559
|
};
|
|
560
560
|
}, "botCheckService");
|
|
561
561
|
|
|
562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
563
563
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
564
564
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
565
565
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -623,7 +623,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
623
623
|
}
|
|
624
624
|
}, "validateContextEvidencePage");
|
|
625
625
|
|
|
626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
627
627
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
628
628
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
629
629
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -676,7 +676,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
676
676
|
};
|
|
677
677
|
}, "contextReadBudget");
|
|
678
678
|
|
|
679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
680
680
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
681
681
|
if (!port || typeof port.read !== "function")
|
|
682
682
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -720,7 +720,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
720
720
|
};
|
|
721
721
|
}, "createContextEvidenceReader");
|
|
722
722
|
|
|
723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
724
724
|
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");
|
|
725
725
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
726
726
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -736,18 +736,18 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
736
736
|
}, "excerpt");
|
|
737
737
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
738
738
|
|
|
739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
740
740
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
741
741
|
|
|
742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
743
743
|
import { lstat as lstat4 } from "node:fs/promises";
|
|
744
744
|
|
|
745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
746
746
|
import { createHash as createHash2, randomUUID as randomUUID4 } from "node:crypto";
|
|
747
747
|
import { open as open5, rename as rename3, unlink as unlink6 } from "node:fs/promises";
|
|
748
748
|
import { join as join5 } from "node:path";
|
|
749
749
|
|
|
750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
751
751
|
import { randomUUID } from "node:crypto";
|
|
752
752
|
import { constants } from "node:fs";
|
|
753
753
|
import { link, open, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -785,7 +785,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
785
785
|
}
|
|
786
786
|
}, "writeFileAtomic");
|
|
787
787
|
|
|
788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
789
789
|
import { constants as constants2 } from "node:fs";
|
|
790
790
|
import { lstat, open as open2 } from "node:fs/promises";
|
|
791
791
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -851,7 +851,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
851
851
|
}
|
|
852
852
|
}, "syncDirectory");
|
|
853
853
|
|
|
854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
855
855
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
856
856
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
857
857
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -880,21 +880,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
880
880
|
}
|
|
881
881
|
}, "readBoundedUtf8File");
|
|
882
882
|
|
|
883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
884
884
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
885
885
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
886
886
|
|
|
887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
888
888
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
889
889
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
890
890
|
import { hostname as hostname2 } from "node:os";
|
|
891
891
|
import { join as join3 } from "node:path";
|
|
892
892
|
|
|
893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
894
894
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
895
895
|
import { join as join2 } from "node:path";
|
|
896
896
|
|
|
897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
898
898
|
import { hostname } from "node:os";
|
|
899
899
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
900
900
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -939,7 +939,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
939
939
|
}
|
|
940
940
|
}, "leaseOwnerStatus");
|
|
941
941
|
|
|
942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
943
943
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
944
944
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
945
945
|
options.signal?.throwIfAborted();
|
|
@@ -998,7 +998,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
998
998
|
return { inspect, recover };
|
|
999
999
|
}, "leaseInspection");
|
|
1000
1000
|
|
|
1001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
1002
1002
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
1003
1003
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
1004
1004
|
let releasing;
|
|
@@ -1023,7 +1023,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
1023
1023
|
};
|
|
1024
1024
|
}, "ownedNativeLease");
|
|
1025
1025
|
|
|
1026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
1027
1027
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
1028
1028
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
1029
1029
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -1094,7 +1094,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
1094
1094
|
};
|
|
1095
1095
|
}, "nativeWriterLeaseStore");
|
|
1096
1096
|
|
|
1097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
1098
1098
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
1099
1099
|
const folder = dirname2(path);
|
|
1100
1100
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -1109,7 +1109,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
1109
1109
|
});
|
|
1110
1110
|
}, "acquireLock");
|
|
1111
1111
|
|
|
1112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
1113
1113
|
import { createHash } from "node:crypto";
|
|
1114
1114
|
var metadataLimit = 16384;
|
|
1115
1115
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -1169,7 +1169,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
1169
1169
|
}
|
|
1170
1170
|
}, "readPartialMetadata");
|
|
1171
1171
|
|
|
1172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
1173
1173
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
1174
1174
|
import { open as open4, rename as rename2, unlink as unlink5 } from "node:fs/promises";
|
|
1175
1175
|
import { join as join4 } from "node:path";
|
|
@@ -1261,7 +1261,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
1261
1261
|
};
|
|
1262
1262
|
}, "partialWriter");
|
|
1263
1263
|
|
|
1264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
1265
1265
|
var NativeRecordingPartialStore = class {
|
|
1266
1266
|
static {
|
|
1267
1267
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -1368,12 +1368,12 @@ var NativeRecordingPartialStore = class {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
};
|
|
1370
1370
|
|
|
1371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
1372
1372
|
import { createHash as createHash3 } from "node:crypto";
|
|
1373
1373
|
import { link as link2 } from "node:fs/promises";
|
|
1374
1374
|
import { basename as basename3, dirname as dirname3, join as join7, resolve } from "node:path";
|
|
1375
1375
|
|
|
1376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
1377
1377
|
import { unlink as unlink7 } from "node:fs/promises";
|
|
1378
1378
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected, signal, writable = false) => {
|
|
1379
1379
|
signal?.throwIfAborted();
|
|
@@ -1408,7 +1408,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
1408
1408
|
signal?.throwIfAborted();
|
|
1409
1409
|
}, "commitPublication");
|
|
1410
1410
|
|
|
1411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
1412
1412
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
1413
1413
|
import { open as open6, rename as rename4, unlink as unlink8 } from "node:fs/promises";
|
|
1414
1414
|
import { join as join6 } from "node:path";
|
|
@@ -1481,7 +1481,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
1481
1481
|
}
|
|
1482
1482
|
}, "writePublicationJournal");
|
|
1483
1483
|
|
|
1484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
1485
1485
|
var NativeRecordingPublication = class {
|
|
1486
1486
|
static {
|
|
1487
1487
|
__name(this, "NativeRecordingPublication");
|
|
@@ -1554,7 +1554,7 @@ var NativeRecordingPublication = class {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
};
|
|
1556
1556
|
|
|
1557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
1558
1558
|
import { createHash as createHash4 } from "node:crypto";
|
|
1559
1559
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
1560
1560
|
import { isAbsolute, join as join8, resolve as resolve2 } from "node:path";
|
|
@@ -1641,7 +1641,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
1641
1641
|
beforePublish
|
|
1642
1642
|
}), "commitMediaEntry");
|
|
1643
1643
|
|
|
1644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
1645
1645
|
var validator = '"media-completed-v1"';
|
|
1646
1646
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
1647
1647
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -1742,7 +1742,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
1742
1742
|
return entry;
|
|
1743
1743
|
}, "archiveMediaFile");
|
|
1744
1744
|
|
|
1745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
1746
1746
|
import { mkdir as mkdir3, realpath as realpath4 } from "node:fs/promises";
|
|
1747
1747
|
import { join as join9, resolve as resolve3 } from "node:path";
|
|
1748
1748
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -1809,7 +1809,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory, signal, run
|
|
|
1809
1809
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
1810
1810
|
}, "withMediaArchiveLocks");
|
|
1811
1811
|
|
|
1812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
1813
1813
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
1814
1814
|
if (value === void 0)
|
|
1815
1815
|
return void 0;
|
|
@@ -1962,7 +1962,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
1962
1962
|
}, { create: true });
|
|
1963
1963
|
}, "archiveMedia");
|
|
1964
1964
|
|
|
1965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
1966
1966
|
import { realpath as realpath5, unlink as unlink9 } from "node:fs/promises";
|
|
1967
1967
|
import { basename as basename4, dirname as dirname4, join as join10, resolve as resolve4 } from "node:path";
|
|
1968
1968
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory) => {
|
|
@@ -2115,7 +2115,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
2115
2115
|
}, { additional: [target], createAdditional: !options.dryRun });
|
|
2116
2116
|
}, "moveMediaArchive");
|
|
2117
2117
|
|
|
2118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
2119
2119
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
2120
2120
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
2121
2121
|
}, "progress") }) => {
|
|
@@ -2138,7 +2138,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
2138
2138
|
}
|
|
2139
2139
|
await nativeRuntime({ env, progress });
|
|
2140
2140
|
progress(`${model.id}: loading it once to check it works`);
|
|
2141
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
2141
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-UZMNP26C.js");
|
|
2142
2142
|
const embedder = await openEmbedder2(model, directory);
|
|
2143
2143
|
try {
|
|
2144
2144
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -2159,7 +2159,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
2159
2159
|
}
|
|
2160
2160
|
await nativeRuntime({ env, progress });
|
|
2161
2161
|
progress(`${model.id}: loading it once to check it works`);
|
|
2162
|
-
const { openReranker } = await import("./rerank-
|
|
2162
|
+
const { openReranker } = await import("./rerank-LOW6VIDF.js");
|
|
2163
2163
|
const reranker = await openReranker(model, directory);
|
|
2164
2164
|
try {
|
|
2165
2165
|
await reranker.score("check", ["check"]);
|
|
@@ -2177,7 +2177,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
2177
2177
|
await installFiles(placedImage(model, directory), { progress });
|
|
2178
2178
|
}
|
|
2179
2179
|
progress(`${model.id}: loading it once to check it works`);
|
|
2180
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
2180
|
+
const { openPictureEmbedder } = await import("./embedder-7VDWDBKF.js");
|
|
2181
2181
|
const embedder = await openPictureEmbedder(model, directory);
|
|
2182
2182
|
try {
|
|
2183
2183
|
const vector = await embedder.embedQuery("check");
|
|
@@ -2189,7 +2189,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
2189
2189
|
return { model, directory };
|
|
2190
2190
|
}, "downloadImageModel");
|
|
2191
2191
|
|
|
2192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
2193
2193
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
2194
2194
|
async around(ref, window2) {
|
|
2195
2195
|
const at = parseLocator(ref);
|
|
@@ -2209,8 +2209,8 @@ var documentMatches = /* @__PURE__ */ __name((text2, queries, window2) => {
|
|
|
2209
2209
|
const paragraphs = text2.split(/\n\s*\n/).map((part) => part.replace(/\s+/g, " ").trim()).filter(Boolean);
|
|
2210
2210
|
const query = queries.join(" ");
|
|
2211
2211
|
const words2 = new Set(wordsOf(query));
|
|
2212
|
-
const
|
|
2213
|
-
const hit =
|
|
2212
|
+
const matching2 = paragraphs.flatMap((part, index) => wordsOf(part).some((word) => words2.has(word)) ? [index] : []);
|
|
2213
|
+
const hit = matching2[0];
|
|
2214
2214
|
if (hit === void 0 || paragraphs.length < 2)
|
|
2215
2215
|
return { around: [], moreMatches: 0 };
|
|
2216
2216
|
const from = Math.max(0, hit - window2.before);
|
|
@@ -2218,7 +2218,7 @@ var documentMatches = /* @__PURE__ */ __name((text2, queries, window2) => {
|
|
|
2218
2218
|
text: excerpt(part, query, 200, { literal: true }),
|
|
2219
2219
|
found: from + index === hit
|
|
2220
2220
|
}));
|
|
2221
|
-
return { around, moreMatches:
|
|
2221
|
+
return { around, moreMatches: matching2.length - 1 };
|
|
2222
2222
|
}, "documentMatches");
|
|
2223
2223
|
var documentPassage = /* @__PURE__ */ __name((text2, query, window2) => documentMatches(text2, [query], window2).around, "documentPassage");
|
|
2224
2224
|
var attachNeighbours = /* @__PURE__ */ __name(async (items, reader, window2, budget, known2, signal) => {
|
|
@@ -2285,7 +2285,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
2285
2285
|
};
|
|
2286
2286
|
}, "storedNeighbours");
|
|
2287
2287
|
|
|
2288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
2289
2289
|
import { createHash as createHash5 } from "node:crypto";
|
|
2290
2290
|
var DAY = 864e5;
|
|
2291
2291
|
var MAX_TIME = 864e13;
|
|
@@ -2600,7 +2600,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
2600
2600
|
return value;
|
|
2601
2601
|
}, "decodeCheckpoint");
|
|
2602
2602
|
|
|
2603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
2604
2604
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
2605
2605
|
var PAGE = 20;
|
|
2606
2606
|
var PEOPLE = 20;
|
|
@@ -2831,6 +2831,20 @@ var gatherProjectEvidence = /* @__PURE__ */ __name(async (ports, request) => {
|
|
|
2831
2831
|
signal
|
|
2832
2832
|
);
|
|
2833
2833
|
const people = peopleOf(items, senderOf);
|
|
2834
|
+
const coverageOf2 = /* @__PURE__ */ new Map();
|
|
2835
|
+
if (ports.coverage) {
|
|
2836
|
+
const byAccount = /* @__PURE__ */ new Map();
|
|
2837
|
+
for (const { provider, account: account2, chat, source } of plan.linkedChats) {
|
|
2838
|
+
if (source === null)
|
|
2839
|
+
continue;
|
|
2840
|
+
const group = byAccount.get(JSON.stringify([provider, account2])) ?? { account: { provider, account: account2 }, chats: [] };
|
|
2841
|
+
group.chats.push(chat);
|
|
2842
|
+
byAccount.set(JSON.stringify([provider, account2]), group);
|
|
2843
|
+
}
|
|
2844
|
+
for (const [key, { account: account2, chats }] of byAccount)
|
|
2845
|
+
for (const row of await ports.coverage(account2, chats))
|
|
2846
|
+
coverageOf2.set(`${key}${row.chatId}`, row);
|
|
2847
|
+
}
|
|
2834
2848
|
const totals = {
|
|
2835
2849
|
reads: (previous?.totals.reads ?? 0) + usage.reads,
|
|
2836
2850
|
readBytes: (previous?.totals.readBytes ?? 0) + usage.readBytes,
|
|
@@ -2851,6 +2865,27 @@ var gatherProjectEvidence = /* @__PURE__ */ __name(async (ports, request) => {
|
|
|
2851
2865
|
seen: [...seen],
|
|
2852
2866
|
totals
|
|
2853
2867
|
};
|
|
2868
|
+
const linkedRows = plan.linkedChats.map(({ provider, account: account2, chat, ref, source, lane }) => {
|
|
2869
|
+
const laneUnits = units2.flatMap((unit, index) => unit.lane.id === lane ? [progress[index]] : []);
|
|
2870
|
+
const state = source === null ? "out-of-scope" : laneUnits.every((u) => u?.state === "unavailable") ? "unavailable" : laneUnits.every((u) => u?.state === "pending") ? "pending" : "in-scope";
|
|
2871
|
+
const row = coverageOf2.get(`${JSON.stringify([provider, account2])}${chat}`);
|
|
2872
|
+
return {
|
|
2873
|
+
provider,
|
|
2874
|
+
account: account2,
|
|
2875
|
+
chat,
|
|
2876
|
+
ref,
|
|
2877
|
+
source,
|
|
2878
|
+
lane,
|
|
2879
|
+
state,
|
|
2880
|
+
title: row?.title ?? null,
|
|
2881
|
+
completeness: row?.completeness ?? null,
|
|
2882
|
+
held: row?.held ?? null,
|
|
2883
|
+
...state === "pending" ? {} : { items: lane === null ? 0 : linkedTaken.get(lane) ?? 0 },
|
|
2884
|
+
...state === "pending" ? {} : { capped: lane !== null && capped2.has(lane) }
|
|
2885
|
+
};
|
|
2886
|
+
});
|
|
2887
|
+
const states = linkedRows.flatMap((row) => row.completeness ? [row.completeness.state] : []);
|
|
2888
|
+
const completeness = !states.length ? "unknown" : states.includes("partial") ? "partial" : states.includes("unknown") || states.length < linkedRows.filter((row) => row.source !== null).length ? "unknown" : "complete";
|
|
2854
2889
|
return {
|
|
2855
2890
|
schemaVersion: 1,
|
|
2856
2891
|
runKey: plan.runKey,
|
|
@@ -2867,17 +2902,7 @@ var gatherProjectEvidence = /* @__PURE__ */ __name(async (ports, request) => {
|
|
|
2867
2902
|
},
|
|
2868
2903
|
scope: { origin: plan.scope, sources: plan.sources },
|
|
2869
2904
|
lanes: plan.lanes,
|
|
2870
|
-
linkedChats:
|
|
2871
|
-
provider,
|
|
2872
|
-
account: account2,
|
|
2873
|
-
chat,
|
|
2874
|
-
ref,
|
|
2875
|
-
source,
|
|
2876
|
-
lane,
|
|
2877
|
-
state: source === null ? "out-of-scope" : units2.every((unit, index) => unit.lane.id !== lane || progress[index]?.state === "unavailable") ? "unavailable" : "in-scope",
|
|
2878
|
-
items: lane === null ? 0 : linkedTaken.get(lane) ?? 0,
|
|
2879
|
-
capped: lane !== null && capped2.has(lane)
|
|
2880
|
-
})),
|
|
2905
|
+
linkedChats: linkedRows,
|
|
2881
2906
|
fetch: fetched.map((f, index) => ({ source: index, ...f })),
|
|
2882
2907
|
index: indexed,
|
|
2883
2908
|
units: units2.map((unit, index) => ({
|
|
@@ -2898,7 +2923,7 @@ var gatherProjectEvidence = /* @__PURE__ */ __name(async (ports, request) => {
|
|
|
2898
2923
|
totals,
|
|
2899
2924
|
stopped,
|
|
2900
2925
|
complete: !resumable,
|
|
2901
|
-
completeness
|
|
2926
|
+
completeness,
|
|
2902
2927
|
checkpoint: resumable ? encodeCheckpoint(checkpoint) : null
|
|
2903
2928
|
};
|
|
2904
2929
|
}, "gatherProjectEvidence");
|
|
@@ -2925,7 +2950,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
2925
2950
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
2926
2951
|
}, "peopleOf");
|
|
2927
2952
|
|
|
2928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
2929
2954
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
2930
2955
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
2931
2956
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -2990,7 +3015,7 @@ var matchProjectCandidates = /* @__PURE__ */ __name((catalog, input) => matchVoc
|
|
|
2990
3015
|
omittedMatches: omitted
|
|
2991
3016
|
})), "matchProjectCandidates");
|
|
2992
3017
|
|
|
2993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
2994
3019
|
var KINDS = ["project", "tag", "topic"];
|
|
2995
3020
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
2996
3021
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -3045,7 +3070,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
3045
3070
|
};
|
|
3046
3071
|
}, "findEvidenceMentions");
|
|
3047
3072
|
|
|
3048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
3049
3074
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
3050
3075
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
3051
3076
|
if (key in own)
|
|
@@ -3062,12 +3087,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
3062
3087
|
return found.bind(adapter);
|
|
3063
3088
|
}, "capability");
|
|
3064
3089
|
|
|
3065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
3066
3091
|
import { randomBytes } from "node:crypto";
|
|
3067
3092
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
3068
3093
|
var newOperationId = newSendId;
|
|
3069
3094
|
|
|
3070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
3071
3096
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
3072
3097
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
3073
3098
|
if (deps.offline)
|
|
@@ -3139,7 +3164,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
3139
3164
|
};
|
|
3140
3165
|
}, "accountService");
|
|
3141
3166
|
|
|
3142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
3143
3168
|
var MINUTE = 6e4;
|
|
3144
3169
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
3145
3170
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -3158,7 +3183,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
3158
3183
|
return new Date(at - at % MINUTE).toISOString();
|
|
3159
3184
|
}, "sendTime");
|
|
3160
3185
|
|
|
3161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
3162
3187
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
3163
3188
|
try {
|
|
3164
3189
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -3405,10 +3430,10 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
3405
3430
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
3406
3431
|
}, "linkLimits");
|
|
3407
3432
|
|
|
3408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
3409
3434
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
3410
3435
|
|
|
3411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
3412
3437
|
var THREADS_PAGE = 500;
|
|
3413
3438
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
3414
3439
|
const account2 = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -3487,7 +3512,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
3487
3512
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
3488
3513
|
}, "readMail");
|
|
3489
3514
|
|
|
3490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
3491
3516
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account2) => {
|
|
3492
3517
|
if (deps.reads !== "store")
|
|
3493
3518
|
return keptChatId(deps.messenger, reference, store, account2);
|
|
@@ -3634,7 +3659,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
3634
3659
|
}
|
|
3635
3660
|
}, "senderAmong");
|
|
3636
3661
|
|
|
3637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
3638
3663
|
var NO_MAIL = "no_mail";
|
|
3639
3664
|
var MAIL = "email";
|
|
3640
3665
|
var listContextOf = /* @__PURE__ */ __name(async (store, account2, app, stored) => {
|
|
@@ -3681,7 +3706,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
3681
3706
|
return chosenMail.map(({ provider, account: account2 }) => ({ provider, account: account2 }));
|
|
3682
3707
|
}, "accountsOfKind");
|
|
3683
3708
|
|
|
3684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
3685
3710
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
3686
3711
|
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");
|
|
3687
3712
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account2, request, messenger) => {
|
|
@@ -4012,7 +4037,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account2, request, messen
|
|
|
4012
4037
|
};
|
|
4013
4038
|
}, "statsLucene");
|
|
4014
4039
|
|
|
4015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
4016
4041
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
4017
4042
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
4018
4043
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -4052,7 +4077,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
4052
4077
|
};
|
|
4053
4078
|
}, "dateWindow");
|
|
4054
4079
|
|
|
4055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
4056
4081
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
4057
4082
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
4058
4083
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -4221,7 +4246,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
4221
4246
|
};
|
|
4222
4247
|
}, "readRankingSelection");
|
|
4223
4248
|
|
|
4224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
4225
4250
|
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");
|
|
4226
4251
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
4227
4252
|
command,
|
|
@@ -4231,7 +4256,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
4231
4256
|
fieldsVersion: FIELD_VERSION
|
|
4232
4257
|
}), "searchRecordOf");
|
|
4233
4258
|
|
|
4234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
4235
4260
|
function invalid2(message) {
|
|
4236
4261
|
throw new CliError("validation_error", message);
|
|
4237
4262
|
}
|
|
@@ -4525,7 +4550,33 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
4525
4550
|
}, "evidence")
|
|
4526
4551
|
}), "adminStatisticsService");
|
|
4527
4552
|
|
|
4528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
4554
|
+
var chatCoverage = /* @__PURE__ */ __name(async (store, account2, chatIds) => {
|
|
4555
|
+
const ids = [...new Set(chatIds)];
|
|
4556
|
+
if (ids.length === 0)
|
|
4557
|
+
return [];
|
|
4558
|
+
const found = new Map((await store.chats.chatCompleteness(account2, ids)).map((one) => [one.chatId, one]));
|
|
4559
|
+
return Promise.all(ids.map(async (chatId) => {
|
|
4560
|
+
const [stats] = await store.chats.chatStats(account2, chatId);
|
|
4561
|
+
const title = stats?.title ?? await store.chats.chatTitle(account2, chatId);
|
|
4562
|
+
const completeness = found.get(chatId) ?? {
|
|
4563
|
+
chatId,
|
|
4564
|
+
state: "unknown",
|
|
4565
|
+
upToDate: null,
|
|
4566
|
+
gaps: false,
|
|
4567
|
+
reachesStart: false,
|
|
4568
|
+
fetchedAt: null
|
|
4569
|
+
};
|
|
4570
|
+
return {
|
|
4571
|
+
chatId,
|
|
4572
|
+
title,
|
|
4573
|
+
completeness,
|
|
4574
|
+
held: { messages: stats?.messages ?? 0, oldestAt: stats?.oldestAt ?? null, newestAt: stats?.newestAt ?? null }
|
|
4575
|
+
};
|
|
4576
|
+
}));
|
|
4577
|
+
}, "chatCoverage");
|
|
4578
|
+
|
|
4579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
4529
4580
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
4530
4581
|
if (value === void 0)
|
|
4531
4582
|
return void 0;
|
|
@@ -4535,7 +4586,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
4535
4586
|
return id2;
|
|
4536
4587
|
}, "threadIdOf");
|
|
4537
4588
|
|
|
4538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
4539
4590
|
var LINKS = /https?:\/\/\S+/g;
|
|
4540
4591
|
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");
|
|
4541
4592
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) => {
|
|
@@ -4562,7 +4613,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) =>
|
|
|
4562
4613
|
});
|
|
4563
4614
|
}, "questions");
|
|
4564
4615
|
|
|
4565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
4566
4617
|
var TOP_POSTS = 5;
|
|
4567
4618
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
4568
4619
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -4679,7 +4730,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
4679
4730
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
4680
4731
|
}, "median");
|
|
4681
4732
|
|
|
4682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
4683
4734
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
4684
4735
|
const events = [];
|
|
4685
4736
|
for (const stay of stays) {
|
|
@@ -4711,7 +4762,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
4711
4762
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
4712
4763
|
}, "memberEvents");
|
|
4713
4764
|
|
|
4714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
4715
4766
|
var AUDIT_PAGE = 200;
|
|
4716
4767
|
var AUDIT_BUDGET = 10;
|
|
4717
4768
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -4791,7 +4842,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
4791
4842
|
return found;
|
|
4792
4843
|
}, "burstJoins");
|
|
4793
4844
|
|
|
4794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
4795
4846
|
var EVENTS_DAYS = 7;
|
|
4796
4847
|
var TRACKED_DAYS = 30;
|
|
4797
4848
|
var STATS_PAGE = 1e3;
|
|
@@ -5086,7 +5137,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
5086
5137
|
return members.length === 0 ? null : members;
|
|
5087
5138
|
}, "storedMembers");
|
|
5088
5139
|
|
|
5089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
5090
5141
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
5091
5142
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
5092
5143
|
const name = typed.trim().toLowerCase();
|
|
@@ -5136,7 +5187,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
5136
5187
|
return best.name;
|
|
5137
5188
|
}, "categorize");
|
|
5138
5189
|
|
|
5139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
5140
5191
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account: account2 }) => `${provider}:${account2}`, "taskAccount");
|
|
5141
5192
|
var RULES_IN = {
|
|
5142
5193
|
dialog: "all",
|
|
@@ -5342,7 +5393,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account2, chatI
|
|
|
5342
5393
|
return passes;
|
|
5343
5394
|
}, "applyTaskRulesToChats");
|
|
5344
5395
|
|
|
5345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
5346
5397
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
5347
5398
|
const tags = /* @__PURE__ */ new Map();
|
|
5348
5399
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -5351,7 +5402,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
5351
5402
|
return tags;
|
|
5352
5403
|
}, "taskTagFilters");
|
|
5353
5404
|
|
|
5354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
5355
5406
|
var DAY2 = 864e5;
|
|
5356
5407
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
5357
5408
|
var TASK_FIELDS = /* @__PURE__ */ new Set(["tag", "category", "claimed"]);
|
|
@@ -5433,21 +5484,29 @@ var agendaService = /* @__PURE__ */ __name((deps, now = Date.now) => ({
|
|
|
5433
5484
|
}),
|
|
5434
5485
|
openTasks: open10.filter((task2) => chatOf(task2.source) === chat.chatId).map((task2) => task2.id)
|
|
5435
5486
|
}));
|
|
5487
|
+
const silentFor = /* @__PURE__ */ __name((chat) => at - Date.parse(chat.lastMessageAt), "silentFor");
|
|
5488
|
+
const shown = {
|
|
5489
|
+
owed: chats.filter((chat) => chat.lastFromOwner === false && silentFor(chat) >= unanswered2),
|
|
5490
|
+
waiting: chats.filter((chat) => chat.lastFromOwner === true && silentFor(chat) >= waiting),
|
|
5491
|
+
unsynced: chats.filter((chat) => chat.lastMessage === null)
|
|
5492
|
+
};
|
|
5493
|
+
const covered = new Map((await chatCoverage(store, account2, Object.values(shown).flatMap((list2) => list2.map(({ chatId }) => chatId)))).map((one) => [one.chatId, one]));
|
|
5494
|
+
const withCoverage = /* @__PURE__ */ __name((list2) => list2.map((chat) => ({ ...chat, coverage: covered.get(chat.chatId) })), "withCoverage");
|
|
5436
5495
|
const inList = new Set((await store.tasks.categories()).map(({ name }) => name));
|
|
5437
5496
|
const unlisted = /* @__PURE__ */ new Map();
|
|
5438
5497
|
for (const { category } of open10)
|
|
5439
5498
|
if (category && !inList.has(category))
|
|
5440
5499
|
unlisted.set(category, (unlisted.get(category) ?? 0) + 1);
|
|
5441
|
-
const silentFor = /* @__PURE__ */ __name((chat) => at - Date.parse(chat.lastMessageAt), "silentFor");
|
|
5442
5500
|
return {
|
|
5443
5501
|
at: new Date(at).toISOString(),
|
|
5502
|
+
since: new Date(at - within).toISOString(),
|
|
5444
5503
|
account: taskAccount(account2),
|
|
5445
5504
|
storedAt: activity.storedAt,
|
|
5446
5505
|
stale: activity.storedAt === null || at - Date.parse(activity.storedAt) > DAY2,
|
|
5447
5506
|
tasks,
|
|
5448
|
-
owed:
|
|
5449
|
-
waiting:
|
|
5450
|
-
unsynced:
|
|
5507
|
+
owed: withCoverage(shown.owed),
|
|
5508
|
+
waiting: withCoverage(shown.waiting),
|
|
5509
|
+
unsynced: withCoverage(shown.unsynced),
|
|
5451
5510
|
assigned,
|
|
5452
5511
|
unlistedCategories: [...unlisted].sort().map(([name, openTasks]) => ({ name, openTasks }))
|
|
5453
5512
|
};
|
|
@@ -5533,7 +5592,19 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
5533
5592
|
last_message: one.lastMessage,
|
|
5534
5593
|
last_message_at: one.lastMessageAt,
|
|
5535
5594
|
last_from_owner: one.lastFromOwner,
|
|
5536
|
-
open_tasks: one.openTasks
|
|
5595
|
+
open_tasks: one.openTasks,
|
|
5596
|
+
completeness: {
|
|
5597
|
+
state: one.coverage.completeness.state,
|
|
5598
|
+
up_to_date: one.coverage.completeness.upToDate,
|
|
5599
|
+
gaps: one.coverage.completeness.gaps,
|
|
5600
|
+
reaches_start: one.coverage.completeness.reachesStart,
|
|
5601
|
+
fetched_at: one.coverage.completeness.fetchedAt
|
|
5602
|
+
},
|
|
5603
|
+
held: {
|
|
5604
|
+
messages: one.coverage.held.messages,
|
|
5605
|
+
oldest_at: one.coverage.held.oldestAt,
|
|
5606
|
+
newest_at: one.coverage.held.newestAt
|
|
5607
|
+
}
|
|
5537
5608
|
}), "chat");
|
|
5538
5609
|
return {
|
|
5539
5610
|
at: shown.at,
|
|
@@ -5573,10 +5644,10 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
5573
5644
|
};
|
|
5574
5645
|
}, "agendaItem");
|
|
5575
5646
|
|
|
5576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
5577
5648
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
5578
5649
|
|
|
5579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
5580
5651
|
var REQUEST_MS = 400;
|
|
5581
5652
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
5582
5653
|
const lowest = ranges[0];
|
|
@@ -5599,13 +5670,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
5599
5670
|
};
|
|
5600
5671
|
}, "estimateBackfill");
|
|
5601
5672
|
|
|
5602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
5603
5674
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
5604
5675
|
...error,
|
|
5605
5676
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
5606
5677
|
}), "withRecovery");
|
|
5607
5678
|
|
|
5608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
5609
5680
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
5610
5681
|
if (isCliFailure(error))
|
|
5611
5682
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -5688,7 +5759,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
5688
5759
|
};
|
|
5689
5760
|
}, "mergeBatches");
|
|
5690
5761
|
|
|
5691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
5692
5763
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
5693
5764
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
5694
5765
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -5711,7 +5782,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
5711
5782
|
}
|
|
5712
5783
|
}, "patiently");
|
|
5713
5784
|
|
|
5714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
5715
5786
|
var RULES_VERSION = 5;
|
|
5716
5787
|
var LOOK_BACK = 50;
|
|
5717
5788
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -5801,7 +5872,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
5801
5872
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
5802
5873
|
var link3 = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
5803
5874
|
|
|
5804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
5805
5876
|
var CONTEXT_MESSAGES = 3;
|
|
5806
5877
|
var CONTEXT_MINUTES = 10;
|
|
5807
5878
|
var MAX_CHARS = 1200;
|
|
@@ -5825,12 +5896,12 @@ var context = {
|
|
|
5825
5896
|
}, "describe")
|
|
5826
5897
|
};
|
|
5827
5898
|
|
|
5828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
5829
5900
|
var BUILT_INS = [context];
|
|
5830
5901
|
var providers = [...BUILT_INS];
|
|
5831
5902
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
5832
5903
|
|
|
5833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
5834
5905
|
var READ_PAGE = 5e3;
|
|
5835
5906
|
var CHAIN = 50;
|
|
5836
5907
|
var CONVERSATION_QUERY = {
|
|
@@ -5982,7 +6053,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
5982
6053
|
return size4;
|
|
5983
6054
|
}, "sized");
|
|
5984
6055
|
|
|
5985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
5986
6057
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
5987
6058
|
var MESSAGE_PAGE = 5e3;
|
|
5988
6059
|
var PER_SESSION = 8;
|
|
@@ -6001,7 +6072,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
6001
6072
|
price: remote.price,
|
|
6002
6073
|
installed: true,
|
|
6003
6074
|
perBatch: PER_REQUEST * concurrency,
|
|
6004
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
6075
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-EYSK3XKD.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
6005
6076
|
};
|
|
6006
6077
|
}
|
|
6007
6078
|
const model = textModel(choice);
|
|
@@ -6018,7 +6089,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
6018
6089
|
if (!isTextModelInstalled(model, directory))
|
|
6019
6090
|
throw notDownloaded(model.id);
|
|
6020
6091
|
if (apart) {
|
|
6021
|
-
const { openProcess } = await import("./process-
|
|
6092
|
+
const { openProcess } = await import("./process-7HHZZZLA.js");
|
|
6022
6093
|
return openProcess(model, directory, { threads: threads ?? defaultThreads() });
|
|
6023
6094
|
}
|
|
6024
6095
|
return openEmbedder(model, directory, { threads: threads ?? defaultThreads() });
|
|
@@ -6307,7 +6378,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
6307
6378
|
return { ...one, state };
|
|
6308
6379
|
}, "shaped");
|
|
6309
6380
|
|
|
6310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
6311
6382
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
6312
6383
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
6313
6384
|
for (const [key, value, maximum] of [
|
|
@@ -6360,7 +6431,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
6360
6431
|
}
|
|
6361
6432
|
}, "catchUpSearch");
|
|
6362
6433
|
|
|
6363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
6364
6435
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
6365
6436
|
if (deps.reads === "store") {
|
|
6366
6437
|
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`);
|
|
@@ -6677,7 +6748,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account2, chatId, key, byTi
|
|
|
6677
6748
|
return message?.timestamp ?? fallback;
|
|
6678
6749
|
}, "timeOfKey");
|
|
6679
6750
|
|
|
6680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
6681
6752
|
import { createHash as createHash6, randomUUID as randomUUID6 } from "node:crypto";
|
|
6682
6753
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
6683
6754
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -6814,16 +6885,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
6814
6885
|
return { plan, repair };
|
|
6815
6886
|
}, "gapsService");
|
|
6816
6887
|
|
|
6817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
6818
6889
|
import { createHash as createHash8 } from "node:crypto";
|
|
6819
6890
|
import { constants as constants4 } from "node:fs";
|
|
6820
6891
|
import { open as open9, readFile, stat as stat2 } from "node:fs/promises";
|
|
6821
6892
|
|
|
6822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
6823
6894
|
import { lstat as lstat5, readdir as readdir3, realpath as realpath6 } from "node:fs/promises";
|
|
6824
6895
|
import { basename as basename6, join as join11, relative as relative2, sep as sep2 } from "node:path";
|
|
6825
6896
|
|
|
6826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
6827
6898
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
6828
6899
|
import { open as open7, stat } from "node:fs/promises";
|
|
6829
6900
|
import { basename as basename5, dirname as dirname5, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -7025,7 +7096,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
7025
7096
|
return { name, source };
|
|
7026
7097
|
}, "readStickerFile");
|
|
7027
7098
|
|
|
7028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
7029
7100
|
var MAX_FILES = 1e4;
|
|
7030
7101
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory, app, env) => {
|
|
7031
7102
|
if (refusedPlace(directory, app, env))
|
|
@@ -8135,7 +8206,7 @@ function imageSize(input) {
|
|
|
8135
8206
|
}
|
|
8136
8207
|
__name(imageSize, "imageSize");
|
|
8137
8208
|
|
|
8138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
8139
8210
|
var MAX_PAGES = 20;
|
|
8140
8211
|
var MAX_PIXELS = 2e7;
|
|
8141
8212
|
var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
@@ -8286,7 +8357,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
8286
8357
|
}
|
|
8287
8358
|
}, "ocrPdf");
|
|
8288
8359
|
|
|
8289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
8290
8361
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
8291
8362
|
const limits = pdfPreviewLimits(env);
|
|
8292
8363
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -8363,7 +8434,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
8363
8434
|
}
|
|
8364
8435
|
}, "pdfPreview");
|
|
8365
8436
|
|
|
8366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
8367
8438
|
import { createHash as createHash7 } from "node:crypto";
|
|
8368
8439
|
import { constants as constants3 } from "node:fs";
|
|
8369
8440
|
import { lstat as lstat6, open as open8 } from "node:fs/promises";
|
|
@@ -8471,7 +8542,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
8471
8542
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
8472
8543
|
}, "transferMime");
|
|
8473
8544
|
|
|
8474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
8475
8546
|
var ATTACHMENT_QUERY = {
|
|
8476
8547
|
entity: "attachment",
|
|
8477
8548
|
backend: "sql",
|
|
@@ -8852,7 +8923,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
8852
8923
|
}, "setText")
|
|
8853
8924
|
}), "attachmentsService");
|
|
8854
8925
|
|
|
8855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
8856
8927
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
8857
8928
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
8858
8929
|
const store = await accountStore(deps);
|
|
@@ -8882,7 +8953,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
8882
8953
|
}, "list")
|
|
8883
8954
|
}), "chatDocumentsService");
|
|
8884
8955
|
|
|
8885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
8886
8957
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
8887
8958
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
8888
8959
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -8969,7 +9040,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
8969
9040
|
}
|
|
8970
9041
|
}, "isRetentionSelection");
|
|
8971
9042
|
|
|
8972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
8973
9044
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
8974
9045
|
const fields = text2.split(",").map((one) => one.trim());
|
|
8975
9046
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -9176,7 +9247,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
9176
9247
|
};
|
|
9177
9248
|
}, "countersService");
|
|
9178
9249
|
|
|
9179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
9180
9251
|
var SYNC_KEY = "messages.sync-first";
|
|
9181
9252
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
9182
9253
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -9308,7 +9379,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
9308
9379
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
9309
9380
|
}), "withRefresh");
|
|
9310
9381
|
|
|
9311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
9312
9383
|
var CANDIDATES = 50;
|
|
9313
9384
|
var WORD_HITS = 200;
|
|
9314
9385
|
var RRF_K = 60;
|
|
@@ -9583,13 +9654,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
9583
9654
|
return mean.map((value) => value / length);
|
|
9584
9655
|
}, "meanOf");
|
|
9585
9656
|
|
|
9586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
9587
9658
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
9588
9659
|
...embeddingsMaintenance(deps),
|
|
9589
9660
|
...embeddingsSearch(deps)
|
|
9590
9661
|
}), "embeddingsService");
|
|
9591
9662
|
|
|
9592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
9593
9664
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
9594
9665
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
9595
9666
|
if (deps.offline)
|
|
@@ -9730,7 +9801,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
9730
9801
|
};
|
|
9731
9802
|
}, "foldersService");
|
|
9732
9803
|
|
|
9733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
9734
9805
|
var INBOX_CHATS = 20;
|
|
9735
9806
|
var REVIEW_DAYS = 3;
|
|
9736
9807
|
var UNANSWERED_HOURS = 24;
|
|
@@ -9938,7 +10009,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
9938
10009
|
};
|
|
9939
10010
|
}, "inboxService");
|
|
9940
10011
|
|
|
9941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
9942
10013
|
var REVIEW_COUNT = 500;
|
|
9943
10014
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
9944
10015
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -10017,7 +10088,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
10017
10088
|
};
|
|
10018
10089
|
}, "mentionsService");
|
|
10019
10090
|
|
|
10020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
10021
10092
|
var messageLinkTarget = /* @__PURE__ */ __name((reference, message, provider) => {
|
|
10022
10093
|
if (isLocator(reference)) {
|
|
10023
10094
|
if (message !== void 0)
|
|
@@ -10064,7 +10135,7 @@ var validatePermalink = /* @__PURE__ */ __name((link5) => {
|
|
|
10064
10135
|
return { url: link5.url, access: link5.access, reason: link5.reason };
|
|
10065
10136
|
}, "validatePermalink");
|
|
10066
10137
|
|
|
10067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
10068
10139
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
10069
10140
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
10070
10141
|
return `${seconds / 86400}d`;
|
|
@@ -10096,7 +10167,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
10096
10167
|
return seconds;
|
|
10097
10168
|
}, "pinDurationOf");
|
|
10098
10169
|
|
|
10099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
10100
10171
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
10101
10172
|
if (sendAs === void 0) {
|
|
10102
10173
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -10121,7 +10192,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
10121
10192
|
return sendAs;
|
|
10122
10193
|
}, "typedSendAs");
|
|
10123
10194
|
|
|
10124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
10125
10196
|
var words = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
10126
10197
|
var scaffolding = new Set(words("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"));
|
|
10127
10198
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -10237,7 +10308,7 @@ function planQuestion(text2, strict = false) {
|
|
|
10237
10308
|
}
|
|
10238
10309
|
__name(planQuestion, "planQuestion");
|
|
10239
10310
|
|
|
10240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
10241
10312
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
10242
10313
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
10243
10314
|
var searchCombined = /* @__PURE__ */ __name(async (store, account2, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -10430,15 +10501,22 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
10430
10501
|
return mode === "coverage" ? coverage * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage * 4 + proximity + phrase;
|
|
10431
10502
|
}, "signals");
|
|
10432
10503
|
|
|
10433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
10434
10505
|
var MEANING_DEPTH = 100;
|
|
10435
10506
|
var RRF_K2 = 60;
|
|
10436
10507
|
var RERANK_DEPTH = 50;
|
|
10437
10508
|
var RERANK_WEIGHT = 0.7;
|
|
10438
10509
|
var RERANK_CHUNK = 5;
|
|
10439
10510
|
var RERANK_MILLISECONDS = 15e3;
|
|
10511
|
+
var FOLLOW_UP_HITS = 5;
|
|
10512
|
+
var FOLLOW_UPS_PER_HIT = 2;
|
|
10513
|
+
var RARE_AT = 3;
|
|
10514
|
+
var FOLLOW_UP_CANDIDATES = 20;
|
|
10440
10515
|
var searchDiscovery = /* @__PURE__ */ __name(async (store, account2, asked, messenger = {}, meaning, rerank) => {
|
|
10441
|
-
const request = asked.ast !== void 0 || asked.exact || !asked.text ? asked : {
|
|
10516
|
+
const request = asked.ast !== void 0 || asked.exact || !asked.text ? asked : {
|
|
10517
|
+
...asked,
|
|
10518
|
+
text: asked.text.replace(new RegExp("(?<=\\p{L})\\?(?=\\s|$)", "gu"), "").replace(/"(?:[^"\\]|\\.)*"|(?<=\d):(?=\d)/gu, (found) => found === ":" ? " " : found)
|
|
10519
|
+
};
|
|
10442
10520
|
const original = await prepareLucene(store, account2, request, messenger);
|
|
10443
10521
|
const text2 = request.text ?? "";
|
|
10444
10522
|
const plan = planQuestion(text2, request.ast !== void 0 || !!request.exact || !!request.newest);
|
|
@@ -10605,7 +10683,10 @@ var searchDiscovery = /* @__PURE__ */ __name(async (store, account2, asked, mess
|
|
|
10605
10683
|
started += performance.now() - opening;
|
|
10606
10684
|
}
|
|
10607
10685
|
check();
|
|
10608
|
-
const
|
|
10686
|
+
const followUps = await followUpsOf(store, account2, request, messenger, candidates, plan.scope);
|
|
10687
|
+
const items = await Promise.all(candidates.slice(0, request.limit).map(async ({ fused: _fused, ...hit }) => {
|
|
10688
|
+
const later = followUps.get(hit.locator);
|
|
10689
|
+
const m = later?.length ? { ...hit, followUps: later } : hit;
|
|
10609
10690
|
if (!request.context)
|
|
10610
10691
|
return m;
|
|
10611
10692
|
check();
|
|
@@ -10632,6 +10713,7 @@ var searchDiscovery = /* @__PURE__ */ __name(async (store, account2, asked, mess
|
|
|
10632
10713
|
candidateDepth: 300,
|
|
10633
10714
|
candidates: candidates.length,
|
|
10634
10715
|
repliesAdded: replyCount,
|
|
10716
|
+
followUps: [...followUps.values()].reduce((sum2, later) => sum2 + later.length, 0),
|
|
10635
10717
|
truncated,
|
|
10636
10718
|
terms,
|
|
10637
10719
|
queries: [...plan.changed ? [] : plan.queries, relaxed],
|
|
@@ -10644,6 +10726,30 @@ var searchDiscovery = /* @__PURE__ */ __name(async (store, account2, asked, mess
|
|
|
10644
10726
|
...lane && "partly" in lane && lane.partly ? { meaningSkipped: lane.partly } : {}
|
|
10645
10727
|
};
|
|
10646
10728
|
}, "searchDiscovery");
|
|
10729
|
+
var followUpsOf = /* @__PURE__ */ __name(async (store, account2, request, messenger, candidates, scope) => {
|
|
10730
|
+
const head = candidates.slice(0, Math.min(FOLLOW_UP_HITS, request.limit));
|
|
10731
|
+
const later = await store.messages.laterSharingRare(head.map((hit) => ({ account: accountOfHit(hit), chatId: hit.chatId, id: hit.id })), { rareAt: RARE_AT, limit: FOLLOW_UP_CANDIDATES });
|
|
10732
|
+
const only = [...new Map(later.flat().map((m) => [m.locator, m])).values()].map((m) => ({
|
|
10733
|
+
...accountOfHit(m),
|
|
10734
|
+
chatId: m.chatId,
|
|
10735
|
+
id: m.id
|
|
10736
|
+
}));
|
|
10737
|
+
const out = /* @__PURE__ */ new Map();
|
|
10738
|
+
if (!only.length)
|
|
10739
|
+
return out;
|
|
10740
|
+
const eligible = await searchLucene(store, account2, { ...request, text: scope || void 0, ast: void 0, limit: only.length, only, context: 0, thread: void 0 }, messenger);
|
|
10741
|
+
const allowed = new Map(eligible.items.map((m) => [m.locator, m]));
|
|
10742
|
+
const shown = /* @__PURE__ */ new Set();
|
|
10743
|
+
head.forEach((hit, i) => {
|
|
10744
|
+
shown.add(hit.locator);
|
|
10745
|
+
const picked = (later[i] ?? []).flatMap((m) => allowed.get(m.locator) ?? []).slice(0, FOLLOW_UPS_PER_HIT).filter((m) => !shown.has(m.locator));
|
|
10746
|
+
for (const m of picked)
|
|
10747
|
+
shown.add(m.locator);
|
|
10748
|
+
if (picked.length)
|
|
10749
|
+
out.set(hit.locator, picked);
|
|
10750
|
+
});
|
|
10751
|
+
return out;
|
|
10752
|
+
}, "followUpsOf");
|
|
10647
10753
|
var nearEligible = /* @__PURE__ */ __name(async (store, account2, request, messenger, ranked, scope) => {
|
|
10648
10754
|
const keyOf5 = /* @__PURE__ */ __name((one) => JSON.stringify([one.provider, one.account, one.chatId, one.id]), "keyOf");
|
|
10649
10755
|
const only = ranked.slice(0, MEANING_DEPTH).filter((m) => !request.only || request.only.some((key) => keyOf5(key) === keyOf5(m))).map(({ provider, account: account3, chatId, id: id2 }) => ({ provider, account: account3, chatId, id: id2 }));
|
|
@@ -10699,7 +10805,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
10699
10805
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
10700
10806
|
}, "mixedWithReranker");
|
|
10701
10807
|
|
|
10702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
10703
10809
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
10704
10810
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
10705
10811
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -10898,7 +11004,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account2, chat, mes
|
|
|
10898
11004
|
return result;
|
|
10899
11005
|
}, "readThreadContext");
|
|
10900
11006
|
|
|
10901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
10902
11008
|
var SEARCH_FILL_MS = 200;
|
|
10903
11009
|
var statsStore = /* @__PURE__ */ __name(async (store, account2, request, messenger = {}) => {
|
|
10904
11010
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -10958,12 +11064,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
10958
11064
|
}, "accountOf");
|
|
10959
11065
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account: account2 }) => `${provider}/${account2}`, "keyOf");
|
|
10960
11066
|
|
|
10961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
10962
11068
|
import { createHash as createHash9 } from "node:crypto";
|
|
10963
11069
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
10964
11070
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
10965
11071
|
|
|
10966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
10967
11073
|
var GROUP_SETTINGS = [
|
|
10968
11074
|
"allCanPin",
|
|
10969
11075
|
"onlyAdminsAdd",
|
|
@@ -10977,7 +11083,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
10977
11083
|
var senderIsMe = /* @__PURE__ */ __name((message, account2) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account2, "senderIsMe");
|
|
10978
11084
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
10979
11085
|
|
|
10980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
10981
11087
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
10982
11088
|
import { link as link4, rm } from "node:fs/promises";
|
|
10983
11089
|
import { basename as basename7, join as join12, resolve as resolve6 } from "node:path";
|
|
@@ -11100,7 +11206,7 @@ var save = /* @__PURE__ */ __name(async (file, directory, fallbackName, { unique
|
|
|
11100
11206
|
}
|
|
11101
11207
|
}, "save");
|
|
11102
11208
|
|
|
11103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
11104
11210
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
11105
11211
|
var PICTURE_FLOOR = 0.25;
|
|
11106
11212
|
var PAGE4 = 50;
|
|
@@ -11117,7 +11223,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
11117
11223
|
const directory = imageModelsDirectory(deps.env);
|
|
11118
11224
|
if (!isImageModelInstalled(model2, directory))
|
|
11119
11225
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
11120
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
11226
|
+
const { openPictureEmbedder } = await import("./embedder-7VDWDBKF.js");
|
|
11121
11227
|
return openPictureEmbedder(model2, directory);
|
|
11122
11228
|
}, "open");
|
|
11123
11229
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -11314,7 +11420,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
11314
11420
|
}, "search")
|
|
11315
11421
|
}), "withPictures");
|
|
11316
11422
|
|
|
11317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
11318
11424
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared) => {
|
|
11319
11425
|
const target = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
11320
11426
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -11362,7 +11468,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
11362
11468
|
}
|
|
11363
11469
|
}, "meaningLane");
|
|
11364
11470
|
|
|
11365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
11366
11472
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
11367
11473
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
11368
11474
|
if (choice === "off")
|
|
@@ -11374,9 +11480,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
11374
11480
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
11375
11481
|
try {
|
|
11376
11482
|
const warm = deps.embedders;
|
|
11377
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
11483
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-7HHZZZLA.js")).openRerankerProcess(model, directory, {
|
|
11378
11484
|
threads: defaultThreads()
|
|
11379
|
-
})) : await (await import("./rerank-
|
|
11485
|
+
})) : await (await import("./rerank-LOW6VIDF.js")).openReranker(model, directory);
|
|
11380
11486
|
return {
|
|
11381
11487
|
model: model.id,
|
|
11382
11488
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -11396,7 +11502,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
11396
11502
|
};
|
|
11397
11503
|
}, "rerankLane");
|
|
11398
11504
|
|
|
11399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
11400
11506
|
import { createHash as createHash10 } from "node:crypto";
|
|
11401
11507
|
var refOf = /* @__PURE__ */ __name((target) => target.ref ?? `document:${target.documentId}`, "refOf");
|
|
11402
11508
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
@@ -11404,7 +11510,7 @@ var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}
|
|
|
11404
11510
|
const directory = imageModelsDirectory(env);
|
|
11405
11511
|
if (!isImageModelInstalled(model, directory))
|
|
11406
11512
|
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 });
|
|
11407
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
11513
|
+
const { openPictureEmbedder } = await import("./embedder-7VDWDBKF.js");
|
|
11408
11514
|
return openPictureEmbedder(model, directory);
|
|
11409
11515
|
}, "openPictureEmbedderFor");
|
|
11410
11516
|
var savePicture = /* @__PURE__ */ __name(async (store, target, bytes2, options = {}) => {
|
|
@@ -11425,24 +11531,22 @@ var savePicture = /* @__PURE__ */ __name(async (store, target, bytes2, options =
|
|
|
11425
11531
|
}, "savePicture");
|
|
11426
11532
|
var removePicture = /* @__PURE__ */ __name((store, target) => store.notes.removePicture(refOf(target)), "removePicture");
|
|
11427
11533
|
|
|
11428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
11429
11535
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
11430
11536
|
const metadata = note.frontMatter;
|
|
11431
11537
|
const account2 = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
11432
11538
|
const remote = note.source === "file" && (account2 !== void 0 && kindIn(account2.provider) === "documents" || metadata?.source === "google-drive");
|
|
11433
11539
|
const profile = remote && account2 ? Object.entries(profiles).flatMap(([command, named2]) => Object.entries(named2).map(([name, key]) => ({ command, name, key }))).find(({ key }) => key.provider === account2.provider && key.account === account2.account || isFolderProvider(key.provider) && key.account === account2.name) : void 0;
|
|
11434
11540
|
const url = file?.url ?? (remote && typeof metadata?.sourceUrl === "string" ? metadata.sourceUrl : void 0);
|
|
11435
|
-
const modified = file?.externalUpdatedAt ?? (remote && typeof metadata?.modifiedAt === "string" && Number.isFinite(Date.parse(metadata.modifiedAt)) ? metadata.modifiedAt : void 0);
|
|
11436
11541
|
return {
|
|
11437
11542
|
kind: remote ? "document" : "note",
|
|
11438
11543
|
provider: profile ? profile.command : "notes",
|
|
11439
11544
|
account: profile?.name ?? note.folderId ?? "internal",
|
|
11440
|
-
...remote && url !== void 0 ? { url } : {}
|
|
11441
|
-
updated_at: remote && modified !== void 0 ? modified : note.updatedAt
|
|
11545
|
+
...remote && url !== void 0 ? { url } : {}
|
|
11442
11546
|
};
|
|
11443
11547
|
}, "documentSource");
|
|
11444
11548
|
|
|
11445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
11446
11550
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
11447
11551
|
let root;
|
|
11448
11552
|
try {
|
|
@@ -11469,9 +11573,11 @@ var titleTiers = /* @__PURE__ */ __name((hits, words2) => {
|
|
|
11469
11573
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
11470
11574
|
}, "titleTiers");
|
|
11471
11575
|
|
|
11472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11473
|
-
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) =>
|
|
11474
|
-
|
|
11576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
11577
|
+
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
11578
|
+
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
11579
|
+
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
11580
|
+
const ast = { root };
|
|
11475
11581
|
const zone = timezoneOf(timezone);
|
|
11476
11582
|
const resolve7 = /* @__PURE__ */ __name((node) => {
|
|
11477
11583
|
if (node.kind === "boolean")
|
|
@@ -11492,7 +11598,7 @@ var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone }
|
|
|
11492
11598
|
root: resolve7(ast.root),
|
|
11493
11599
|
...hasStems(ast.root) ? { stemmer: createStemmer(stemmers2 ?? DEFAULT_STEMMERS) } : {}
|
|
11494
11600
|
};
|
|
11495
|
-
}, "
|
|
11601
|
+
}, "resolvedQuery");
|
|
11496
11602
|
var searchNotesQuery = /* @__PURE__ */ __name(async (store, request) => {
|
|
11497
11603
|
if (!request.text.trim())
|
|
11498
11604
|
throw new CliError("validation_error", "say what to find in the notes");
|
|
@@ -11581,7 +11687,6 @@ var nearestNotes = /* @__PURE__ */ __name(async (store, query, { model: choice,
|
|
|
11581
11687
|
var MAX_LINE = 200;
|
|
11582
11688
|
var MAX_NOTES_OFFSET = 1e3;
|
|
11583
11689
|
var CANDIDATES2 = 50;
|
|
11584
|
-
var FILTERED = 500;
|
|
11585
11690
|
var RRF_K3 = 60;
|
|
11586
11691
|
var firstLine = /* @__PURE__ */ __name((text2, query) => {
|
|
11587
11692
|
const words2 = query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word));
|
|
@@ -11639,12 +11744,65 @@ var noteSourceOfQuery = /* @__PURE__ */ __name((query) => {
|
|
|
11639
11744
|
}
|
|
11640
11745
|
return { source, rest };
|
|
11641
11746
|
}, "noteSourceOfQuery");
|
|
11747
|
+
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
11748
|
+
var fieldsOfQuery = /* @__PURE__ */ __name((root) => {
|
|
11749
|
+
let narrows = false;
|
|
11750
|
+
const kept = /* @__PURE__ */ __name((node) => {
|
|
11751
|
+
if (node.kind === "boolean")
|
|
11752
|
+
return {
|
|
11753
|
+
...node,
|
|
11754
|
+
clauses: node.clauses.map(({ occur, node: node2 }) => {
|
|
11755
|
+
if (occur !== "must_not")
|
|
11756
|
+
return { occur, node: kept(node2) };
|
|
11757
|
+
narrows = true;
|
|
11758
|
+
return { occur, node: node2 };
|
|
11759
|
+
})
|
|
11760
|
+
};
|
|
11761
|
+
if (!WORD_FIELDS.has(node.field)) {
|
|
11762
|
+
narrows = true;
|
|
11763
|
+
return node;
|
|
11764
|
+
}
|
|
11765
|
+
return { kind: "predicate", field: "in", operator: "term", value: "notes", span: node.span };
|
|
11766
|
+
}, "kept");
|
|
11767
|
+
const fields = kept(root);
|
|
11768
|
+
return narrows ? fields : void 0;
|
|
11769
|
+
}, "fieldsOfQuery");
|
|
11770
|
+
var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
11771
|
+
const wanted = /* @__PURE__ */ __name((node) => node.kind === "boolean" ? node.clauses.flatMap(({ occur, node: node2 }) => occur === "must_not" ? [] : wanted(node2)) : WORD_FIELDS.has(node.field) && (node.operator === "term" || node.operator === "phrase") ? [node.value] : [], "wanted");
|
|
11772
|
+
return wanted(root).join(" ").trim();
|
|
11773
|
+
}, "meaningWords");
|
|
11774
|
+
var allOf = /* @__PURE__ */ __name((nodes) => nodes.length <= 1 ? nodes[0] : {
|
|
11775
|
+
kind: "boolean",
|
|
11776
|
+
clauses: nodes.map((node) => ({ occur: "must", node })),
|
|
11777
|
+
span: { start: 0, end: 0 }
|
|
11778
|
+
}, "allOf");
|
|
11779
|
+
var matching = /* @__PURE__ */ __name(async (store, refs, root, scope) => {
|
|
11780
|
+
if (refs.length === 0)
|
|
11781
|
+
return /* @__PURE__ */ new Map();
|
|
11782
|
+
const resolved = await resolvedQuery(store, root ?? { kind: "predicate", field: "in", operator: "term", value: "notes", span: { start: 0, end: 0 } }, scope.timezone);
|
|
11783
|
+
const found = await store.notes.search({
|
|
11784
|
+
root: resolved.root,
|
|
11785
|
+
refs,
|
|
11786
|
+
limit: refs.length,
|
|
11787
|
+
...scope.folderIds ? { folderIds: scope.folderIds } : {},
|
|
11788
|
+
...scope.withInternal ? { withInternal: true } : {},
|
|
11789
|
+
...scope.source ? { source: scope.source } : {},
|
|
11790
|
+
...resolved.stemmer ? { stemmer: resolved.stemmer } : {}
|
|
11791
|
+
});
|
|
11792
|
+
return new Map(found.items.map(({ ref, note, at }) => [ref, { note, at }]));
|
|
11793
|
+
}, "matching");
|
|
11642
11794
|
var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, tag, filter: expression, folderIds, withInternal, source: given, exact = false, timezone, env, command, embedders, pictures: withPictures2 = false, pictureLimit = 5, pictureEmbedder } = {}) => {
|
|
11643
11795
|
const typed = noteSourceOfQuery(query);
|
|
11644
11796
|
const source = given ?? typed.source;
|
|
11645
|
-
const
|
|
11797
|
+
const rest = typed.source !== void 0 && typed.source === source ? typed.rest : query;
|
|
11646
11798
|
const label = tag === void 0 ? void 0 : normalizeTag(tag);
|
|
11647
11799
|
const filter = [expression ? `(${expression})` : "", label === void 0 ? "" : `tag:${label}`].filter(Boolean).join(" AND ") || void 0;
|
|
11800
|
+
const parsed = query.trim() ? parsedQuery(query, exact) : void 0;
|
|
11801
|
+
const words2 = parsed === void 0 ? "" : meaningWords(parsed);
|
|
11802
|
+
const narrowing = allOf([
|
|
11803
|
+
...parsed === void 0 ? [] : [fieldsOfQuery(parsed)].filter((node) => node !== void 0),
|
|
11804
|
+
...filter === void 0 ? [] : [parsedQuery(filter)]
|
|
11805
|
+
]);
|
|
11648
11806
|
const text2 = [query.trim() ? `(${query})` : "", filter ?? ""].filter(Boolean).join(" AND ");
|
|
11649
11807
|
const window2 = offset + limit;
|
|
11650
11808
|
const scope = {
|
|
@@ -11657,7 +11815,7 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
11657
11815
|
let meaning;
|
|
11658
11816
|
if (exact)
|
|
11659
11817
|
meaningSkipped = "--exact searches words as written";
|
|
11660
|
-
else if (words2
|
|
11818
|
+
else if (words2) {
|
|
11661
11819
|
try {
|
|
11662
11820
|
const nearest = await nearestNotes(store, words2, {
|
|
11663
11821
|
limit: Math.max(window2, CANDIDATES2),
|
|
@@ -11668,20 +11826,18 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
11668
11826
|
...withInternal ? { withInternal: true } : {},
|
|
11669
11827
|
...source === void 0 ? {} : { source }
|
|
11670
11828
|
});
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
meaning = nearest.filter(({ ref }) => refs.has(ref));
|
|
11677
|
-
}
|
|
11829
|
+
const allowed = await matching(store, nearest.map(({ ref }) => ref), narrowing, scope);
|
|
11830
|
+
meaning = nearest.flatMap(({ ref }) => {
|
|
11831
|
+
const found = allowed.get(ref);
|
|
11832
|
+
return found ? [{ ref, ...found }] : [];
|
|
11833
|
+
});
|
|
11678
11834
|
} catch (error) {
|
|
11679
11835
|
if (!(error instanceof CliError && error.code === "not_found"))
|
|
11680
11836
|
throw error;
|
|
11681
11837
|
meaningSkipped = error.message;
|
|
11682
11838
|
}
|
|
11683
11839
|
}
|
|
11684
|
-
const titleWords = plainQueryWords(
|
|
11840
|
+
const titleWords = plainQueryWords(rest);
|
|
11685
11841
|
const titled = titleWords === void 0 ? { items: [], hasMore: false } : await searchNotesQuery(store, {
|
|
11686
11842
|
text: [titleQuery(titleWords), filter ?? ""].filter(Boolean).join(" AND "),
|
|
11687
11843
|
limit: Math.max(window2, CANDIDATES2),
|
|
@@ -11698,10 +11854,10 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
11698
11854
|
...scope
|
|
11699
11855
|
});
|
|
11700
11856
|
const ranked = /* @__PURE__ */ new Map();
|
|
11701
|
-
const add = /* @__PURE__ */ __name((list2, by) => list2.forEach(({ ref, note }, rank) => {
|
|
11857
|
+
const add = /* @__PURE__ */ __name((list2, by) => list2.forEach(({ ref, note, at }, rank) => {
|
|
11702
11858
|
if (tierRefs.has(ref))
|
|
11703
11859
|
return;
|
|
11704
|
-
const held = ranked.get(ref) ?? { note, score: 0, foundBy: [] };
|
|
11860
|
+
const held = ranked.get(ref) ?? { note, at, score: 0, foundBy: [] };
|
|
11705
11861
|
held.score += 1 / (RRF_K3 + rank + 1);
|
|
11706
11862
|
held.foundBy.push(by);
|
|
11707
11863
|
ranked.set(ref, held);
|
|
@@ -11710,7 +11866,7 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
11710
11866
|
if (meaning !== void 0)
|
|
11711
11867
|
add(meaning, "meaning");
|
|
11712
11868
|
const ordered = [
|
|
11713
|
-
...tier.map(({ ref, note }) => [ref, { note, score: 0, foundBy: ["title"] }]),
|
|
11869
|
+
...tier.map(({ ref, note, at }) => [ref, { note, at, score: 0, foundBy: ["title"] }]),
|
|
11714
11870
|
...[...ranked.entries()].sort(([, a], [, b]) => b.score - a.score)
|
|
11715
11871
|
];
|
|
11716
11872
|
const page = slice ? ordered : ordered.slice(offset, window2);
|
|
@@ -11719,7 +11875,7 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
11719
11875
|
const counts = /* @__PURE__ */ new Map();
|
|
11720
11876
|
const accounts = await store.accounts.storedAccounts();
|
|
11721
11877
|
const profiles = await store.accounts.profiles();
|
|
11722
|
-
for (const [ref, { note, foundBy }] of page) {
|
|
11878
|
+
for (const [ref, { note, at, foundBy }] of page) {
|
|
11723
11879
|
const links = (await store.notes.links({ from: ref })).map(({ to, targetText, kind, anchor }) => ({
|
|
11724
11880
|
to,
|
|
11725
11881
|
target_text: targetText,
|
|
@@ -11733,6 +11889,7 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
11733
11889
|
path: note.path,
|
|
11734
11890
|
title: note.title,
|
|
11735
11891
|
...documentSource(note, accounts, profiles, note.source === "file" ? (await store.files.ofDocument(note.ref))[0] : void 0),
|
|
11892
|
+
updated_at: at,
|
|
11736
11893
|
excerpt: firstLine(note.text, words2),
|
|
11737
11894
|
links,
|
|
11738
11895
|
found_by: foundBy
|
|
@@ -11764,6 +11921,10 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
11764
11921
|
command,
|
|
11765
11922
|
embedder: pictureEmbedder
|
|
11766
11923
|
}) : {};
|
|
11924
|
+
if (lane.pictures && narrowing !== void 0) {
|
|
11925
|
+
const allowed = await matching(store, lane.pictures.map(({ ref }) => ref), narrowing, scope);
|
|
11926
|
+
lane.pictures = lane.pictures.filter(({ ref }) => allowed.has(ref));
|
|
11927
|
+
}
|
|
11767
11928
|
return {
|
|
11768
11929
|
query,
|
|
11769
11930
|
...label === void 0 ? {} : { tag: label },
|
|
@@ -11809,7 +11970,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account2, text2, { acco
|
|
|
11809
11970
|
};
|
|
11810
11971
|
}, "searchNotesOf");
|
|
11811
11972
|
|
|
11812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
11813
11974
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
11814
11975
|
var iso = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
11815
11976
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -11921,7 +12082,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
11921
12082
|
};
|
|
11922
12083
|
}, "searchEvents");
|
|
11923
12084
|
|
|
11924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
11925
12086
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
11926
12087
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
11927
12088
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -11948,6 +12109,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, request, messenge
|
|
|
11948
12109
|
let events;
|
|
11949
12110
|
let messagesBy;
|
|
11950
12111
|
let server;
|
|
12112
|
+
let coverage;
|
|
11951
12113
|
const messagesOf = /* @__PURE__ */ __name(async (kind) => {
|
|
11952
12114
|
const given = request.scope?.[kind];
|
|
11953
12115
|
const query = {
|
|
@@ -11968,6 +12130,8 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, request, messenge
|
|
|
11968
12130
|
const found = kind === "messages" ? await searchMessages(query) : await searchStore(store, account2, query, messenger);
|
|
11969
12131
|
if (found.server)
|
|
11970
12132
|
server = found.server;
|
|
12133
|
+
if (kind === "messages" && found.coverage)
|
|
12134
|
+
coverage = found.coverage;
|
|
11971
12135
|
hasMore ||= found.hasMore;
|
|
11972
12136
|
const read = found.coverage?.accounts ?? given ?? (await store.accounts.accounts()).filter(({ provider }) => kindIn(provider) === kind);
|
|
11973
12137
|
for (const one of found.skipped ?? [])
|
|
@@ -12121,11 +12285,12 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, request, messenge
|
|
|
12121
12285
|
...notes === void 0 ? {} : { notes },
|
|
12122
12286
|
...events === void 0 ? {} : { events },
|
|
12123
12287
|
...messagesBy === void 0 ? {} : { messages: messagesBy },
|
|
12124
|
-
...server === void 0 ? {} : { server }
|
|
12288
|
+
...server === void 0 ? {} : { server },
|
|
12289
|
+
...coverage === void 0 ? {} : { coverage }
|
|
12125
12290
|
};
|
|
12126
12291
|
}, "searchAll");
|
|
12127
12292
|
|
|
12128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
12129
12294
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
12130
12295
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
12131
12296
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -12372,7 +12537,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account2, source, r
|
|
|
12372
12537
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
12373
12538
|
}, "searchAllOfSource");
|
|
12374
12539
|
|
|
12375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
12376
12541
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
12377
12542
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3 };
|
|
12378
12543
|
var DEFAULT_BACKEND = "both";
|
|
@@ -12561,7 +12726,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
12561
12726
|
return { report, sources };
|
|
12562
12727
|
}, "searchServer");
|
|
12563
12728
|
|
|
12564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
12565
12730
|
var DELETE_AT_ONCE = 10;
|
|
12566
12731
|
var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
12567
12732
|
const { guard } = deps;
|
|
@@ -12987,7 +13152,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
12987
13152
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first]} needs a --photo or --file`);
|
|
12988
13153
|
}, "checkMediaOptions");
|
|
12989
13154
|
|
|
12990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
12991
13156
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
12992
13157
|
var RULES = {
|
|
12993
13158
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -13002,7 +13167,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
13002
13167
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
13003
13168
|
}), "classifyChannel");
|
|
13004
13169
|
|
|
13005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
13006
13171
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
13007
13172
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
13008
13173
|
const store = await deps.store();
|
|
@@ -13088,7 +13253,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
13088
13253
|
};
|
|
13089
13254
|
}, "metadataService");
|
|
13090
13255
|
|
|
13091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
13092
13257
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
13093
13258
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
13094
13259
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -13125,7 +13290,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
13125
13290
|
return { chatId, rows, notes };
|
|
13126
13291
|
}, "moderateWith");
|
|
13127
13292
|
|
|
13128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
13129
13294
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
13130
13295
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
13131
13296
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -13203,7 +13368,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
13203
13368
|
}, "removePerson")
|
|
13204
13369
|
}), "moderatorOf");
|
|
13205
13370
|
|
|
13206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
13207
13372
|
var CONTEXT_MESSAGES2 = 10;
|
|
13208
13373
|
var CONTEXT_BYTES = 64 * 1024;
|
|
13209
13374
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle) => ({
|
|
@@ -13459,10 +13624,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
13459
13624
|
};
|
|
13460
13625
|
}, "personMessages");
|
|
13461
13626
|
|
|
13462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
13463
13628
|
import { createHash as createHash11 } from "node:crypto";
|
|
13464
13629
|
|
|
13465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
13466
13631
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
13467
13632
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
13468
13633
|
const parsed = parseMeetingReference(reference);
|
|
@@ -13510,7 +13675,7 @@ var resolveMeetingReference = /* @__PURE__ */ __name(async (store, accountId, re
|
|
|
13510
13675
|
};
|
|
13511
13676
|
}, "resolveMeetingReference");
|
|
13512
13677
|
|
|
13513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
13514
13679
|
var hash = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
13515
13680
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
13516
13681
|
if (signal?.aborted)
|
|
@@ -13709,7 +13874,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
13709
13874
|
return { ...packet, fingerprint: hash(packet) };
|
|
13710
13875
|
}, "readMeetingEvidence");
|
|
13711
13876
|
|
|
13712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
13713
13878
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
13714
13879
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
13715
13880
|
const requestedAccounts = options.accountIds;
|
|
@@ -13808,7 +13973,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
13808
13973
|
};
|
|
13809
13974
|
}, "personMeetingContext");
|
|
13810
13975
|
|
|
13811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
13812
13977
|
var PREPARE_BYTES = 96 * 1024;
|
|
13813
13978
|
var MEETINGS = 5;
|
|
13814
13979
|
var CUES = 3;
|
|
@@ -13925,7 +14090,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
13925
14090
|
}
|
|
13926
14091
|
}, "meetingsOf");
|
|
13927
14092
|
|
|
13928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
13929
14094
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
13930
14095
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
13931
14096
|
const held = await storeIfOpen(deps);
|
|
@@ -13995,7 +14160,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
13995
14160
|
complete: false
|
|
13996
14161
|
})), "quiet");
|
|
13997
14162
|
|
|
13998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
13999
14164
|
var TIMELINE_ITEMS = 50;
|
|
14000
14165
|
var TIMELINE_MAX = 500;
|
|
14001
14166
|
var SCOPES = ["personal", "work"];
|
|
@@ -14050,7 +14215,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
14050
14215
|
};
|
|
14051
14216
|
}, "personTimeline");
|
|
14052
14217
|
|
|
14053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
14054
14219
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
14055
14220
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
14056
14221
|
const held = await storeIfOpen(deps);
|
|
@@ -14277,7 +14442,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
14277
14442
|
return rest;
|
|
14278
14443
|
}, "withoutPhone");
|
|
14279
14444
|
|
|
14280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
14281
14446
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
14282
14447
|
id: note.id,
|
|
14283
14448
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -14321,7 +14486,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
14321
14486
|
};
|
|
14322
14487
|
}, "privatePeopleService");
|
|
14323
14488
|
|
|
14324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
14325
14490
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
14326
14491
|
total: 0,
|
|
14327
14492
|
population: 0,
|
|
@@ -14577,7 +14742,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
14577
14742
|
}, "evidence")
|
|
14578
14743
|
}), "rankingsService");
|
|
14579
14744
|
|
|
14580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
14581
14746
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
14582
14747
|
id: one.id,
|
|
14583
14748
|
name: one.name,
|
|
@@ -14706,7 +14871,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
14706
14871
|
};
|
|
14707
14872
|
}, "searchesService");
|
|
14708
14873
|
|
|
14709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
14710
14875
|
var TAGGING_QUERY = {
|
|
14711
14876
|
entity: "tagging",
|
|
14712
14877
|
backend: "sql",
|
|
@@ -14790,7 +14955,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
14790
14955
|
};
|
|
14791
14956
|
}, "tagsService");
|
|
14792
14957
|
|
|
14793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
14794
14959
|
var TASK_QUERY = {
|
|
14795
14960
|
entity: "task",
|
|
14796
14961
|
backend: "sql",
|
|
@@ -15270,7 +15435,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account2, task2) => {
|
|
|
15270
15435
|
};
|
|
15271
15436
|
}, "taskView");
|
|
15272
15437
|
|
|
15273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
15274
15439
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden }) => {
|
|
15275
15440
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
15276
15441
|
if (title !== void 0 || set !== 1)
|
|
@@ -15455,7 +15620,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
15455
15620
|
};
|
|
15456
15621
|
}, "topicsService");
|
|
15457
15622
|
|
|
15458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
15459
15624
|
import { createHash as createHash12, randomUUID as randomUUID7 } from "node:crypto";
|
|
15460
15625
|
var hash2 = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
15461
15626
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -15529,7 +15694,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
15529
15694
|
return { ...content, id: randomUUID7(), fingerprint: hash2(content) };
|
|
15530
15695
|
}, "prepareEvidencePacket");
|
|
15531
15696
|
|
|
15532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
15533
15698
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account2, { chat, limit, before: before2 }, messenger = {}) => {
|
|
15534
15699
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
15535
15700
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -15549,7 +15714,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account2, { chat,
|
|
|
15549
15714
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
15550
15715
|
}, "readEvidencePacket");
|
|
15551
15716
|
|
|
15552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
15553
15718
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
15554
15719
|
let before2 = Number.POSITIVE_INFINITY;
|
|
15555
15720
|
for (; ; ) {
|
|
@@ -15611,7 +15776,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
15611
15776
|
return { ...result, selection };
|
|
15612
15777
|
}, "searchMeetingHits");
|
|
15613
15778
|
|
|
15614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-links.js
|
|
15615
15780
|
var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
15616
15781
|
const { maxMessages, url, ...selecting } = request;
|
|
15617
15782
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -15650,10 +15815,10 @@ var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
15650
15815
|
};
|
|
15651
15816
|
}, "readMeetingLinks");
|
|
15652
15817
|
|
|
15653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
15654
15819
|
import { createHash as createHash13 } from "node:crypto";
|
|
15655
15820
|
|
|
15656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-validation.js
|
|
15657
15822
|
function invalid3(field, response = false) {
|
|
15658
15823
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid project candidate ${field}`);
|
|
15659
15824
|
}
|
|
@@ -15772,7 +15937,7 @@ var candidateCatalog = /* @__PURE__ */ __name((catalog, limits) => {
|
|
|
15772
15937
|
}
|
|
15773
15938
|
}, "candidateCatalog");
|
|
15774
15939
|
|
|
15775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
15776
15941
|
var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
15777
15942
|
const fixed = snapshotMeetingScope(scope);
|
|
15778
15943
|
if (!Number.isSafeInteger(accountId) || accountId < 1 || typeof ports?.vocabulary?.vocabulary !== "function")
|
|
@@ -15825,7 +15990,7 @@ var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, account
|
|
|
15825
15990
|
};
|
|
15826
15991
|
}, "createMeetingProjectCandidateReader");
|
|
15827
15992
|
|
|
15828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
15829
15994
|
import { createHash as createHash14 } from "node:crypto";
|
|
15830
15995
|
var scopeKeys = [
|
|
15831
15996
|
"accountId",
|
|
@@ -15960,7 +16125,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
15960
16125
|
};
|
|
15961
16126
|
}, "readMeetingProjectDiscovery");
|
|
15962
16127
|
|
|
15963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-review.js
|
|
15964
16129
|
var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
15965
16130
|
const { limit, ...selecting } = request;
|
|
15966
16131
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -15968,7 +16133,7 @@ var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
15968
16133
|
return { ...review, selection };
|
|
15969
16134
|
}, "readMeetingReview");
|
|
15970
16135
|
|
|
15971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-searches.js
|
|
15972
16137
|
var KIND = ["meetings-search"];
|
|
15973
16138
|
var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
15974
16139
|
const found = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -15998,7 +16163,7 @@ var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
|
15998
16163
|
};
|
|
15999
16164
|
}, "meetingSearchesService");
|
|
16000
16165
|
|
|
16001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-stats.js
|
|
16002
16167
|
var readMeetingStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
16003
16168
|
const { timeZone, maxRows, ...selecting } = request;
|
|
16004
16169
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -16010,7 +16175,7 @@ var readMeetingStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
16010
16175
|
return { ...stats, selection };
|
|
16011
16176
|
}, "readMeetingStats");
|
|
16012
16177
|
|
|
16013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
16014
16179
|
import { createHash as createHash15 } from "node:crypto";
|
|
16015
16180
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
16016
16181
|
ref: cue.reference,
|
|
@@ -16128,7 +16293,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
16128
16293
|
return { ...packet, fingerprint: createHash15("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
16129
16294
|
}, "readMeetingHitContext");
|
|
16130
16295
|
|
|
16131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
16132
16297
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
16133
16298
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
16134
16299
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -16204,7 +16369,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
16204
16369
|
return { packet, content };
|
|
16205
16370
|
}, "readMeetingPassage");
|
|
16206
16371
|
|
|
16207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-batch.js
|
|
16208
16373
|
var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
16209
16374
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
16210
16375
|
throw new CliError("validation_error", "choose a positive meeting account");
|
|
@@ -16218,10 +16383,10 @@ var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
16218
16383
|
};
|
|
16219
16384
|
}, "createMeetingBatchReader");
|
|
16220
16385
|
|
|
16221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
16222
16387
|
import { createHash as createHash16 } from "node:crypto";
|
|
16223
16388
|
|
|
16224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
16225
16390
|
var positive2 = /* @__PURE__ */ __name((value, name, max) => {
|
|
16226
16391
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
16227
16392
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -16373,7 +16538,7 @@ var applyMeetingEmbedding = /* @__PURE__ */ __name(async (store, accountId, embe
|
|
|
16373
16538
|
};
|
|
16374
16539
|
}, "applyMeetingEmbedding");
|
|
16375
16540
|
|
|
16376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
16377
16542
|
var DEPTH = 200;
|
|
16378
16543
|
var cursorOf3 = /* @__PURE__ */ __name((value, key) => {
|
|
16379
16544
|
if (value === void 0)
|
|
@@ -16510,7 +16675,7 @@ var searchMeetingsCombined = /* @__PURE__ */ __name(async (store, embedder, type
|
|
|
16510
16675
|
};
|
|
16511
16676
|
}, "searchMeetingsCombined");
|
|
16512
16677
|
|
|
16513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-context.js
|
|
16514
16679
|
var meetingReferences = /* @__PURE__ */ __name((values) => values.map((value) => formatMeetingReference(parseMeetingReference(value))), "meetingReferences");
|
|
16515
16680
|
var checkCancelled = /* @__PURE__ */ __name((signal) => {
|
|
16516
16681
|
if (!signal?.aborted)
|
|
@@ -16615,7 +16780,7 @@ var createMeetingContextService = /* @__PURE__ */ __name(async (store, input, op
|
|
|
16615
16780
|
};
|
|
16616
16781
|
}, "createMeetingContextService");
|
|
16617
16782
|
|
|
16618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
|
|
16619
16784
|
var integer = /* @__PURE__ */ __name((value, name, max) => {
|
|
16620
16785
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
16621
16786
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -16842,7 +17007,7 @@ var openMeetingEmbedder = /* @__PURE__ */ __name(async (choice, options = {}) =>
|
|
|
16842
17007
|
};
|
|
16843
17008
|
}, "openMeetingEmbedder");
|
|
16844
17009
|
|
|
16845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
16846
17011
|
var communicationFields = {
|
|
16847
17012
|
sources: pipe(array(strictObject({
|
|
16848
17013
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -16874,7 +17039,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
16874
17039
|
return { ...input, after, before: before2 };
|
|
16875
17040
|
}, "communicationRequest");
|
|
16876
17041
|
|
|
16877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
16878
17043
|
var MEETING_PREPARATION_LIMITS = {
|
|
16879
17044
|
meetings: { min: 1, max: 20, default: 5 },
|
|
16880
17045
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -16960,7 +17125,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
16960
17125
|
return { ...input, history };
|
|
16961
17126
|
}, "preparationRequest");
|
|
16962
17127
|
|
|
16963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
16964
17129
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
16965
17130
|
const section = {
|
|
16966
17131
|
readUsage: plan.reader.usage(),
|
|
@@ -17065,7 +17230,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read) => {
|
|
|
17065
17230
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
17066
17231
|
}, "appendPreparationCommunications");
|
|
17067
17232
|
|
|
17068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
17069
17234
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
17070
17235
|
if (port === void 0)
|
|
17071
17236
|
return void 0;
|
|
@@ -17170,7 +17335,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
17170
17335
|
}
|
|
17171
17336
|
}, "validatePreparationCommunications");
|
|
17172
17337
|
|
|
17173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
17174
17339
|
var invalid4 = /* @__PURE__ */ __name(() => {
|
|
17175
17340
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
17176
17341
|
}, "invalid");
|
|
@@ -17239,7 +17404,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
17239
17404
|
}
|
|
17240
17405
|
}, "appendKnowledgePreparation");
|
|
17241
17406
|
|
|
17242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
17243
17408
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
17244
17409
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
17245
17410
|
}, "invalid");
|
|
@@ -17313,7 +17478,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
17313
17478
|
}
|
|
17314
17479
|
}, "appendNotesPreparation");
|
|
17315
17480
|
|
|
17316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
17317
17482
|
var PAGE_LIMIT = 4;
|
|
17318
17483
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
17319
17484
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -17363,7 +17528,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
17363
17528
|
}
|
|
17364
17529
|
}, "appendProjectPreparation");
|
|
17365
17530
|
|
|
17366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
17367
17532
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
17368
17533
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
17369
17534
|
return;
|
|
@@ -17435,7 +17600,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
17435
17600
|
}
|
|
17436
17601
|
}, "appendRelatedPreparation");
|
|
17437
17602
|
|
|
17438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
17439
17604
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
17440
17605
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
17441
17606
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -17573,7 +17738,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
17573
17738
|
};
|
|
17574
17739
|
}, "createMeetingPreparationService");
|
|
17575
17740
|
|
|
17576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-task-proposal.js
|
|
17577
17742
|
import { createHash as createHash17 } from "node:crypto";
|
|
17578
17743
|
var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, reference, kind) => {
|
|
17579
17744
|
if (!TASK_KINDS.includes(kind))
|
|
@@ -17593,7 +17758,7 @@ var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
17593
17758
|
};
|
|
17594
17759
|
}, "proposeMeetingTask");
|
|
17595
17760
|
|
|
17596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/meeting-tasks.js
|
|
17597
17762
|
var accountSnapshot = /* @__PURE__ */ __name((key) => {
|
|
17598
17763
|
const { provider, account: account2, scope } = key;
|
|
17599
17764
|
if (!provider.trim() || provider.includes(":") || !account2.trim())
|
|
@@ -17656,7 +17821,7 @@ var readMeetingTask = /* @__PURE__ */ __name(async (store, account2, id2) => {
|
|
|
17656
17821
|
}
|
|
17657
17822
|
}, "readMeetingTask");
|
|
17658
17823
|
|
|
17659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
17660
17825
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check }, ports) => {
|
|
17661
17826
|
const installer = ports.installer();
|
|
17662
17827
|
const argv = updateCommand(installer, packageName);
|
|
@@ -17721,7 +17886,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
17721
17886
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
17722
17887
|
}, "dayAfter");
|
|
17723
17888
|
|
|
17724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
17725
17890
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
17726
17891
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2) => {
|
|
17727
17892
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -17750,7 +17915,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2) => {
|
|
|
17750
17915
|
return { proposal: await store.proposedActions.approve(proposal.id, { task: task2.id }), task: task2 };
|
|
17751
17916
|
}, "approveAsTask");
|
|
17752
17917
|
|
|
17753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidate-validation.js
|
|
17754
17919
|
var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, options) => {
|
|
17755
17920
|
const invalid6 = /* @__PURE__ */ __name((field) => {
|
|
17756
17921
|
throw new CliError("validation_error", `invalid stored project candidate ${field}`);
|
|
@@ -17792,7 +17957,7 @@ var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, optio
|
|
|
17792
17957
|
return { reference, limits, after, afterTranscriptId, signal };
|
|
17793
17958
|
}, "storedCandidateRequest");
|
|
17794
17959
|
|
|
17795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidates.js
|
|
17796
17961
|
var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
17797
17962
|
const fixed = snapshotMeetingScope(scope);
|
|
17798
17963
|
const store = ports?.meetings;
|
|
@@ -17884,7 +18049,7 @@ var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, a
|
|
|
17884
18049
|
};
|
|
17885
18050
|
}, "createStoredMeetingProjectCandidateReader");
|
|
17886
18051
|
|
|
17887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
17888
18053
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
17889
18054
|
const pictures = picturesService(deps);
|
|
17890
18055
|
const base = {
|
|
@@ -17970,6 +18135,7 @@ export {
|
|
|
17970
18135
|
searchRecordOf,
|
|
17971
18136
|
isAdminSelection,
|
|
17972
18137
|
adminStatisticsService,
|
|
18138
|
+
chatCoverage,
|
|
17973
18139
|
threadIdOf,
|
|
17974
18140
|
AUDIT_PAGE,
|
|
17975
18141
|
AUDIT_BUDGET,
|