@wirecat/mail-cli 0.18.0 → 0.20.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/CHANGELOG.md +25 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-4CVOXA5Y.js → all-profiles-DTUWUCQQ.js} +7 -6
- package/dist/bundle/{anthropic-5VIKYINO.js → anthropic-YJAEQSNT.js} +3 -3
- package/dist/bundle/{app-server-LTSQBDPF.js → app-server-3ZXSTBA3.js} +41 -40
- package/dist/bundle/{bun-C7DBRUW2.js → bun-34VBM7C5.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y5JKT62B.js → bun-sqlite-GCT7ROCK.js} +2 -2
- package/dist/bundle/{chunk-A5OMARL4.js → chunk-2PPEDB67.js} +31 -29
- package/dist/bundle/{chunk-IANOK5SE.js → chunk-3DSYLE5N.js} +2 -2
- package/dist/bundle/{chunk-QPF4LTK5.js → chunk-3HDQVTND.js} +4 -4
- package/dist/bundle/{chunk-ZLH465EU.js → chunk-4FWJNIPH.js} +1 -1
- package/dist/bundle/{chunk-C4RUKMDT.js → chunk-4WIEVQ2Q.js} +8 -14
- package/dist/bundle/{chunk-SMS5YNPB.js → chunk-566MEXK5.js} +2 -2
- package/dist/bundle/{chunk-GRP67IQ4.js → chunk-72N26BQM.js} +24 -22
- package/dist/bundle/{chunk-6RO5RDNR.js → chunk-7XLOWYGD.js} +109 -6
- package/dist/bundle/{chunk-AOMSP4EI.js → chunk-AF62BPIW.js} +5 -5
- package/dist/bundle/{chunk-U43HUE35.js → chunk-B74SOC4R.js} +9 -20
- package/dist/bundle/{chunk-TVZ77ZOV.js → chunk-FTI73RLC.js} +2 -2
- package/dist/bundle/{chunk-EFP5NN7I.js → chunk-GAPQENMY.js} +2 -2
- package/dist/bundle/{chunk-N5VEJ3E7.js → chunk-HJ2CXDKJ.js} +130 -11
- package/dist/bundle/{chunk-P6WCG6X2.js → chunk-HN43G27G.js} +43 -27
- package/dist/bundle/{chunk-L3YX7A5M.js → chunk-HRRSTIGP.js} +4 -4
- package/dist/bundle/{chunk-NDJZQCF3.js → chunk-HSBGNVEL.js} +210 -171
- package/dist/bundle/{chunk-2NWOYXPJ.js → chunk-I2SDXWLR.js} +206 -56
- package/dist/bundle/{chunk-BMFPCW6Q.js → chunk-J2U6LUT5.js} +17 -3
- package/dist/bundle/{chunk-UXD5JMS5.js → chunk-J4UZXBEV.js} +1 -1
- package/dist/bundle/{chunk-OUGGAAXI.js → chunk-KMQAHDBM.js} +7539 -13576
- package/dist/bundle/{chunk-CPEN6BZZ.js → chunk-LF5XM4HE.js} +1 -1
- package/dist/bundle/chunk-LTXYJAJK.js +12211 -0
- package/dist/bundle/{chunk-7P4ICYJT.js → chunk-MD64ITYO.js} +1 -1
- package/dist/bundle/{chunk-WA3DQSAZ.js → chunk-MDDB7M7Z.js} +1 -1
- package/dist/bundle/{chunk-OLJDZTHB.js → chunk-NOVBK4SY.js} +12 -12
- package/dist/bundle/{chunk-MCR43SWG.js → chunk-O3M2S62X.js} +21 -13
- package/dist/bundle/{chunk-5S6Q3SWU.js → chunk-ODFHIXMA.js} +1 -1
- package/dist/bundle/{chunk-ZT2Y267T.js → chunk-OKO2Q6H6.js} +2 -2
- package/dist/bundle/{chunk-RQSF7X22.js → chunk-P2QJA7S5.js} +1 -1
- package/dist/bundle/{chunk-C5T5K7HW.js → chunk-P6FT6YYT.js} +17 -14
- package/dist/bundle/{chunk-RIO3TD3I.js → chunk-QE72KTS7.js} +1 -1
- package/dist/bundle/{chunk-JO3BIMYK.js → chunk-QPRXTLMD.js} +1 -1
- package/dist/bundle/{chunk-23HWKHPZ.js → chunk-QTMVGOSF.js} +352 -290
- package/dist/bundle/{chunk-SW2KERUB.js → chunk-R3WPMQYZ.js} +270 -153
- package/dist/bundle/{chunk-XGTW3GRX.js → chunk-RFB27ACZ.js} +2 -2
- package/dist/bundle/{chunk-HTFBXGJF.js → chunk-RPCKBXKN.js} +1 -1
- package/dist/bundle/{chunk-43I5XD7S.js → chunk-RT6SLZBI.js} +1 -1
- package/dist/bundle/{chunk-3W5H4TM7.js → chunk-RY7PBP4F.js} +71 -31
- package/dist/bundle/{chunk-BMGVKULS.js → chunk-SCIC2CJS.js} +4 -4
- package/dist/bundle/{chunk-SIYT2BBI.js → chunk-SFC46MP2.js} +250 -9
- package/dist/bundle/chunk-SYEICLTR.js +66 -0
- package/dist/bundle/{chunk-HFUS33UT.js → chunk-T2GQA2E4.js} +4 -1
- package/dist/bundle/{chunk-ITUC5WAV.js → chunk-T3DTYJTG.js} +1 -1
- package/dist/bundle/{chunk-OMKPALMX.js → chunk-TCCN5TON.js} +1 -1
- package/dist/bundle/{chunk-FLOOPXOT.js → chunk-V6OIIVH3.js} +10 -10
- package/dist/bundle/{chunk-ACLILULA.js → chunk-VDUGE6TH.js} +2 -2
- package/dist/bundle/{chunk-3YRE6DNM.js → chunk-VINSQR4X.js} +7 -7
- package/dist/bundle/{chunk-UEGABYXI.js → chunk-VQZCIDSO.js} +2 -2
- package/dist/bundle/{chunk-ERBEBORA.js → chunk-WBAA2X3E.js} +10 -10
- package/dist/bundle/{chunk-M7C4IGJ6.js → chunk-Z75WYAX6.js} +6 -6
- package/dist/bundle/{chunk-GLLLYACZ.js → chunk-Z7N4MGOQ.js} +5 -5
- package/dist/bundle/{chunk-YA2JPMYX.js → chunk-ZKLXSVIO.js} +1 -1
- package/dist/bundle/{chunk-DPSH46NO.js → chunk-ZZSHGCRC.js} +3 -3
- package/dist/bundle/{command-contract-Y3GIKCPB.js → command-contract-Y4ZQAJEC.js} +14 -13
- package/dist/bundle/{decode-WVIDLK4E.js → decode-BIOOL5E4.js} +2 -2
- package/dist/bundle/{dist-KGQWS3XL.js → dist-TJVIRLE5.js} +79 -17
- package/dist/bundle/{echarts-VMKACZBF.js → echarts-ECPGMKXO.js} +2 -2
- package/dist/bundle/{embed-EQINOOST.js → embed-F7JFSLHN.js} +3 -3
- package/dist/bundle/{embedder-LM52TDRN.js → embedder-U4G74HV3.js} +6 -6
- package/dist/bundle/{first-run-H4VXZAAF.js → first-run-JTYPUYQP.js} +5 -5
- package/dist/bundle/first-screen-W6RWTAU7.js +33 -0
- package/dist/bundle/{instructions-NLSME663.js → instructions-WNCGZ7OJ.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-FGMSXLTA.js → node-UIRGGMGT.js} +2 -2
- package/dist/bundle/{node-sqlite-K3T3ZRBY.js → node-sqlite-4ZM7OPRF.js} +3 -3
- package/dist/bundle/{oauth-OJKJ6JLH.js → oauth-5RAJZPBW.js} +4 -4
- package/dist/bundle/{open-DCYIXHXS.js → open-7ORCHOAI.js} +2 -2
- package/dist/bundle/{openai-C4H4W57J.js → openai-XSJNXJA7.js} +10 -10
- package/dist/bundle/{process-MN4NSYGA.js → process-ZLO72UVZ.js} +1 -1
- package/dist/bundle/{program-ZZZOKWCX.js → program-PFVJDKM4.js} +1911 -1655
- package/dist/bundle/{prompt-ELEJUDAU.js → prompt-IDUPCUGM.js} +2 -2
- package/dist/bundle/{recognize-G2FVMI5M.js → recognize-OS3EZKIM.js} +1 -1
- package/dist/bundle/{remote-F4YVSEYM.js → remote-PF4LZR65.js} +4 -4
- package/dist/bundle/{rerank-7VM5R5N6.js → rerank-CQNZF3JI.js} +4 -4
- package/dist/bundle/{serve-A7NRFPRN.js → serve-Y2DDLGBT.js} +6 -6
- package/dist/bundle/server-I3IALQMC.js +65 -0
- package/dist/bundle/{server-7R2BEIRY.js → server-TVRT7YEY.js} +33 -32
- package/dist/bundle/{sqlite-runtime-4SKUB4EN.js → sqlite-runtime-5343C3OE.js} +3 -3
- package/dist/bundle/{state-S2FKK2XB.js → state-4GBTMPIV.js} +3 -3
- package/dist/bundle/{store-4HAARQVR.js → store-OLBLTQPT.js} +56 -13
- package/dist/bundle/{store-FLHO3UMA.js → store-QA6QJ5BB.js} +20 -11
- package/dist/bundle/store-maintenance-command-LB6CMGP4.js +55 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +19 -4
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +86 -11
- package/dist/commands/session-start.js.map +1 -1
- package/dist/mail/imap/errors.d.ts.map +1 -1
- package/dist/mail/imap/errors.js +14 -1
- package/dist/mail/imap/errors.js.map +1 -1
- package/dist/providers.d.ts +7 -0
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +5 -0
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +3 -0
- package/dist/reasons.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/chunk-KVSC657S.js +0 -656
- package/dist/bundle/first-screen-ZP74TJLK.js +0 -32
- package/dist/bundle/server-DFJA2HBO.js +0 -64
- package/dist/bundle/store-maintenance-command-BINJIQ6F.js +0 -54
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NOVBK4SY.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_ACTIONS,
|
|
14
14
|
ModerationRules,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
someUndone,
|
|
27
27
|
validateFormattedText,
|
|
28
28
|
visibleFormattedText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SFC46MP2.js";
|
|
30
30
|
import {
|
|
31
31
|
MAX_MODEL_IMAGE_BYTES
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TCCN5TON.js";
|
|
33
33
|
import {
|
|
34
34
|
Command,
|
|
35
35
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
WEIGHTS,
|
|
42
42
|
agenda,
|
|
43
43
|
annotate,
|
|
44
|
+
annotateOption,
|
|
44
45
|
attachment,
|
|
45
46
|
codeOf,
|
|
46
47
|
conversation,
|
|
@@ -69,32 +70,11 @@ import {
|
|
|
69
70
|
typedCommand,
|
|
70
71
|
vectorModelKey,
|
|
71
72
|
withAttempt
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import {
|
|
74
|
-
isCliFailure
|
|
75
|
-
} from "./chunk-U43HUE35.js";
|
|
73
|
+
} from "./chunk-HSBGNVEL.js";
|
|
76
74
|
import {
|
|
77
75
|
isNewer,
|
|
78
76
|
updateCommand
|
|
79
77
|
} from "./chunk-UWL2IOII.js";
|
|
80
|
-
import {
|
|
81
|
-
remoteKey
|
|
82
|
-
} from "./chunk-ZT2Y267T.js";
|
|
83
|
-
import {
|
|
84
|
-
Unzip,
|
|
85
|
-
UnzipInflate,
|
|
86
|
-
defaultThreads,
|
|
87
|
-
installNativeRuntime,
|
|
88
|
-
isTextModelInstalled,
|
|
89
|
-
openEmbedder,
|
|
90
|
-
placedText,
|
|
91
|
-
runEmbedders,
|
|
92
|
-
textModelsDirectory
|
|
93
|
-
} from "./chunk-GLLLYACZ.js";
|
|
94
|
-
import {
|
|
95
|
-
installFiles,
|
|
96
|
-
megabytes
|
|
97
|
-
} from "./chunk-MCR43SWG.js";
|
|
98
78
|
import {
|
|
99
79
|
AGENDA_COLUMNS,
|
|
100
80
|
CHAT_COLUMNS,
|
|
@@ -134,7 +114,6 @@ import {
|
|
|
134
114
|
exhausted,
|
|
135
115
|
fetchedKey,
|
|
136
116
|
fitting,
|
|
137
|
-
googleDocumentLinks,
|
|
138
117
|
hasStems,
|
|
139
118
|
hasText,
|
|
140
119
|
historyStartKey,
|
|
@@ -144,11 +123,13 @@ import {
|
|
|
144
123
|
isAccountList,
|
|
145
124
|
isQueryLimit,
|
|
146
125
|
isStemmed,
|
|
126
|
+
listedHolds,
|
|
147
127
|
matchDownloads,
|
|
148
128
|
messageOfEmail,
|
|
149
129
|
normalizeVocabularyName,
|
|
150
130
|
outOfTime,
|
|
151
131
|
pdfPreviewLimits,
|
|
132
|
+
plainQuery,
|
|
152
133
|
queryFilter,
|
|
153
134
|
rankingContextRange,
|
|
154
135
|
searchError,
|
|
@@ -157,7 +138,7 @@ import {
|
|
|
157
138
|
validateAst,
|
|
158
139
|
validateFields,
|
|
159
140
|
withoutField
|
|
160
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-KMQAHDBM.js";
|
|
161
142
|
import {
|
|
162
143
|
COUNTER_FIELDS,
|
|
163
144
|
INTERNAL_NOTES,
|
|
@@ -167,23 +148,26 @@ import {
|
|
|
167
148
|
counterObservationTime,
|
|
168
149
|
formatLocator,
|
|
169
150
|
formatReference,
|
|
151
|
+
googleDocumentLinks,
|
|
152
|
+
holdsKind,
|
|
153
|
+
holdsKindOf,
|
|
170
154
|
isFolderProvider,
|
|
155
|
+
isImportedProvider,
|
|
171
156
|
isKind,
|
|
172
157
|
isLocator,
|
|
173
158
|
kindIn,
|
|
174
|
-
kindOf,
|
|
175
159
|
parseLocator,
|
|
176
160
|
parseReference,
|
|
177
161
|
providerNamed,
|
|
178
162
|
rankingOptions,
|
|
179
163
|
rankingQuestion
|
|
180
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-LTXYJAJK.js";
|
|
181
165
|
import {
|
|
182
166
|
TASK_KINDS,
|
|
183
167
|
TASK_STATES,
|
|
184
168
|
createTaskService,
|
|
185
169
|
isClosedState
|
|
186
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-HJ2CXDKJ.js";
|
|
187
171
|
import {
|
|
188
172
|
EVENT_QUERY,
|
|
189
173
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -201,6 +185,7 @@ import {
|
|
|
201
185
|
formatMeetingReference,
|
|
202
186
|
implicitTextTerms,
|
|
203
187
|
importFiles,
|
|
188
|
+
isUsable,
|
|
204
189
|
listed,
|
|
205
190
|
meetingCueFingerprint,
|
|
206
191
|
meetingDetailsAnswer,
|
|
@@ -224,21 +209,43 @@ import {
|
|
|
224
209
|
validateQuery,
|
|
225
210
|
walkQuery,
|
|
226
211
|
zonedMoment
|
|
227
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-I2SDXWLR.js";
|
|
213
|
+
import {
|
|
214
|
+
isCliFailure,
|
|
215
|
+
sqliteCode
|
|
216
|
+
} from "./chunk-SYEICLTR.js";
|
|
228
217
|
import {
|
|
229
218
|
DEFAULT_STEMMERS,
|
|
230
219
|
createStemmer,
|
|
231
220
|
fold,
|
|
232
221
|
normalize
|
|
233
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-VINSQR4X.js";
|
|
234
223
|
import {
|
|
235
224
|
DEFAULT_TASK_CATEGORIES,
|
|
236
225
|
FALLBACK_CATEGORY
|
|
237
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-3HDQVTND.js";
|
|
227
|
+
import {
|
|
228
|
+
remoteKey
|
|
229
|
+
} from "./chunk-OKO2Q6H6.js";
|
|
230
|
+
import {
|
|
231
|
+
Unzip,
|
|
232
|
+
UnzipInflate,
|
|
233
|
+
defaultThreads,
|
|
234
|
+
installNativeRuntime,
|
|
235
|
+
isTextModelInstalled,
|
|
236
|
+
openEmbedder,
|
|
237
|
+
placedText,
|
|
238
|
+
runEmbedders,
|
|
239
|
+
textModelsDirectory
|
|
240
|
+
} from "./chunk-Z7N4MGOQ.js";
|
|
241
|
+
import {
|
|
242
|
+
installFiles,
|
|
243
|
+
megabytes
|
|
244
|
+
} from "./chunk-O3M2S62X.js";
|
|
238
245
|
import {
|
|
239
246
|
storePath,
|
|
240
247
|
wirecatDirectory
|
|
241
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-RPCKBXKN.js";
|
|
242
249
|
import {
|
|
243
250
|
resolvePaths
|
|
244
251
|
} from "./chunk-BMV56JCL.js";
|
|
@@ -16883,10 +16890,10 @@ var require_lib3 = __commonJS({
|
|
|
16883
16890
|
}
|
|
16884
16891
|
});
|
|
16885
16892
|
|
|
16886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16887
16894
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16888
16895
|
|
|
16889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16890
16897
|
var RULES_VERSION = 5;
|
|
16891
16898
|
var LOOK_BACK = 50;
|
|
16892
16899
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16976,7 +16983,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16976
16983
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16977
16984
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16978
16985
|
|
|
16979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
16980
16987
|
var COMMAND_NEEDS = {
|
|
16981
16988
|
"account update": ["updateProfile", "change the profile"],
|
|
16982
16989
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17026,7 +17033,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17026
17033
|
return group;
|
|
17027
17034
|
}, "hideNever");
|
|
17028
17035
|
|
|
17029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17030
17037
|
var AUDIT_PAGE = 200;
|
|
17031
17038
|
var AUDIT_BUDGET = 10;
|
|
17032
17039
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17106,7 +17113,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17106
17113
|
return found;
|
|
17107
17114
|
}, "burstJoins");
|
|
17108
17115
|
|
|
17109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17110
17117
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17111
17118
|
command.allowUnknownOption();
|
|
17112
17119
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17126,7 +17133,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17126
17133
|
return command;
|
|
17127
17134
|
}, "queryWordsAfterOptions");
|
|
17128
17135
|
|
|
17129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17130
17137
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17131
17138
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17132
17139
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17168,7 +17175,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17168
17175
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17169
17176
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17170
17177
|
|
|
17171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17172
17179
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
17173
17180
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17174
17181
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17191,7 +17198,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17191
17198
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17192
17199
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17193
17200
|
|
|
17194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17195
17202
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17196
17203
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17197
17204
|
const zone = timezoneOf();
|
|
@@ -17277,7 +17284,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17277
17284
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17278
17285
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17279
17286
|
|
|
17280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17281
17288
|
var integer3 = /* @__PURE__ */ __name((text2) => {
|
|
17282
17289
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17283
17290
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17327,7 +17334,14 @@ ${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17327
17334
|
output(annotate(group.command("summary"), { effects: LOCAL_READ, output: { entity: "meeting_summary" } }).description("show stored meeting summaries").argument("<meeting>", "stored meeting id", integer3)).action(async (id2, _opts, command) => {
|
|
17328
17335
|
print(await meetingSummaryAnswer(deps.store, id2, deps.accountId), command);
|
|
17329
17336
|
});
|
|
17330
|
-
output(annotate(group.command("export"), { effects: LOCAL_WRITE, output: { entity: "meeting_export" } }).description("export a meeting as Markdown or one transcript as WebVTT").argument("<meeting>", "stored meeting id", integer3).addOption(new Option("--format <format>", "export format").choices(["markdown", "vtt"]).default("markdown")).option("--transcript-id <id>", "export a specific transcript version", integer3).
|
|
17337
|
+
const exporter = output(annotate(group.command("export"), { effects: LOCAL_WRITE, output: { entity: "meeting_export" } }).description("export a meeting as Markdown or one transcript as WebVTT").argument("<meeting>", "stored meeting id", integer3).addOption(new Option("--format <format>", "export format").choices(["markdown", "vtt"]).default("markdown")).option("--transcript-id <id>", "export a specific transcript version", integer3).addOption(
|
|
17338
|
+
// Not over MCP: an agent would choose where on the owner's disk to write; it gets the content in the answer.
|
|
17339
|
+
annotateOption(new Option("--output <file>", "write content to a new file through the host's writer"), {
|
|
17340
|
+
mcp: false
|
|
17341
|
+
})
|
|
17342
|
+
));
|
|
17343
|
+
deps.newFileOutput?.(exporter, "output");
|
|
17344
|
+
exporter.action(async (id2, opts, command) => {
|
|
17331
17345
|
if (opts.output !== void 0 && !opts.output.trim())
|
|
17332
17346
|
throw new MeetingError("validation_error", "output path must not be empty");
|
|
17333
17347
|
if (opts.output !== void 0 && !deps.writeFile)
|
|
@@ -17354,8 +17368,10 @@ ${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17354
17368
|
output(annotate(group.command("sync"), {
|
|
17355
17369
|
effects: FETCH,
|
|
17356
17370
|
offline: false,
|
|
17357
|
-
output: { entity: "meeting_ingestion" }
|
|
17358
|
-
|
|
17371
|
+
output: { entity: "meeting_ingestion" },
|
|
17372
|
+
// Only a sync that stops itself at its budget may outlive the one-shot deadline.
|
|
17373
|
+
...deps.budgetOf ? { cooperative: true, partial: true } : {}
|
|
17374
|
+
}).description("bring the stored meetings up to date from the connected account, oldest first; a run that stops before its deadline keeps what it saved and the next one goes on from there")).option("--since-time <time>", "fetch meetings starting at or after this ISO 8601 date or time", date).option("--lookback-days <days>", "revisit recent occurrences for late transcripts (0\u201331)", lookbackDays).option("--rescan", "read the last 30 days again, not only what came after the last sync").action(async (opts, command) => {
|
|
17359
17375
|
const source = deps.source;
|
|
17360
17376
|
if (!source)
|
|
17361
17377
|
throw new MeetingError("configuration_error", "meeting source is unavailable");
|
|
@@ -17363,7 +17379,9 @@ ${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17363
17379
|
accountId: deps.accountId,
|
|
17364
17380
|
since: opts.sinceTime === void 0 ? void 0 : new Date(opts.sinceTime).toISOString(),
|
|
17365
17381
|
now: deps.now?.(),
|
|
17366
|
-
lookbackMs: opts.lookbackDays * 864e5
|
|
17382
|
+
...opts.lookbackDays === void 0 ? {} : { lookbackMs: opts.lookbackDays * 864e5 },
|
|
17383
|
+
...opts.rescan ? { rescan: true } : {},
|
|
17384
|
+
...deps.budgetOf ? { budget: deps.budgetOf(command) } : {}
|
|
17367
17385
|
}), command));
|
|
17368
17386
|
});
|
|
17369
17387
|
const importCommand = annotate(group.command("import"), {
|
|
@@ -17410,7 +17428,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17410
17428
|
}, "addMeetingCommandsDefinition");
|
|
17411
17429
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17412
17430
|
|
|
17413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17414
17432
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17415
17433
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17416
17434
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17543,7 +17561,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17543
17561
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17544
17562
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17545
17563
|
|
|
17546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17547
17565
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17548
17566
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17549
17567
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17552,7 +17570,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17552
17570
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
17553
17571
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17554
17572
|
|
|
17555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17556
17574
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17557
17575
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17558
17576
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17814,7 +17832,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17814
17832
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17815
17833
|
}), "sessionAnswer");
|
|
17816
17834
|
|
|
17817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17818
17836
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17819
17837
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17820
17838
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17822,9 +17840,7 @@ var SQLITE_BUSY = 5;
|
|
|
17822
17840
|
var storeAbsent = /* @__PURE__ */ __name((error) => {
|
|
17823
17841
|
if (isCliFailure(error))
|
|
17824
17842
|
return error.code === "validation_error" && error.message === NO_LOCAL_STORE;
|
|
17825
|
-
|
|
17826
|
-
const code = errcode ?? errno;
|
|
17827
|
-
return error instanceof Error && typeof code === "number" && (code & 255) === SQLITE_BUSY;
|
|
17843
|
+
return error instanceof Error && sqliteCode(error) === SQLITE_BUSY;
|
|
17828
17844
|
}, "storeAbsent");
|
|
17829
17845
|
var accountUnknown = /* @__PURE__ */ __name((error) => isCliFailure(error) && (error.code === "not_found" || error.code === "authentication_error"), "accountUnknown");
|
|
17830
17846
|
var unless = /* @__PURE__ */ __name(async (work, expected2) => {
|
|
@@ -17878,7 +17894,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17878
17894
|
}), "storedDeps");
|
|
17879
17895
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17880
17896
|
|
|
17881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17882
17898
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17883
17899
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17884
17900
|
if (key in own)
|
|
@@ -17895,12 +17911,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17895
17911
|
return found.bind(adapter);
|
|
17896
17912
|
}, "capability");
|
|
17897
17913
|
|
|
17898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17899
17915
|
import { randomBytes } from "node:crypto";
|
|
17900
17916
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17901
17917
|
var newOperationId = newSendId;
|
|
17902
17918
|
|
|
17903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17904
17920
|
var LINKS = /https?:\/\/\S+/g;
|
|
17905
17921
|
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");
|
|
17906
17922
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17930,7 +17946,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17930
17946
|
});
|
|
17931
17947
|
}, "questions");
|
|
17932
17948
|
|
|
17933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17934
17950
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17935
17951
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17936
17952
|
const name = typed.trim().toLowerCase();
|
|
@@ -17987,7 +18003,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
17987
18003
|
return best.name;
|
|
17988
18004
|
}, "categorize");
|
|
17989
18005
|
|
|
17990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
17991
18007
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17992
18008
|
var RULES_IN = {
|
|
17993
18009
|
dialog: "all",
|
|
@@ -18084,7 +18100,7 @@ var applyTaskRules = /* @__PURE__ */ __name(async (review, { store, account, now
|
|
|
18084
18100
|
return result;
|
|
18085
18101
|
}, "applyTaskRules");
|
|
18086
18102
|
var ARRIVAL_WINDOW = 50;
|
|
18087
|
-
var
|
|
18103
|
+
var kindOf = /* @__PURE__ */ __name(async (store, account, chat) => await store.chats.chatKind(account, chat) ?? "unknown", "kindOf");
|
|
18088
18104
|
var applyTaskRulesOnArrival = /* @__PURE__ */ __name(async (store, account, message) => {
|
|
18089
18105
|
const page = await store.messages.messages(account, message.chatId, { limit: ARRIVAL_WINDOW });
|
|
18090
18106
|
const messages = [...page.items.filter((one) => one.id !== message.id), message].sort((a, b) => Date.parse(a.timestamp) - Date.parse(b.timestamp));
|
|
@@ -18093,7 +18109,7 @@ var applyTaskRulesOnArrival = /* @__PURE__ */ __name(async (store, account, mess
|
|
|
18093
18109
|
{
|
|
18094
18110
|
id: message.chatId,
|
|
18095
18111
|
messages,
|
|
18096
|
-
kind: await
|
|
18112
|
+
kind: await kindOf(store, account, message.chatId),
|
|
18097
18113
|
watched: (await watchedChats(store, account)).has(message.chatId)
|
|
18098
18114
|
}
|
|
18099
18115
|
]
|
|
@@ -18185,7 +18201,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18185
18201
|
const tasks = [];
|
|
18186
18202
|
const pass = await applyTaskRules({
|
|
18187
18203
|
chats: [
|
|
18188
|
-
{ id: chat, messages: page.items, kind: await
|
|
18204
|
+
{ id: chat, messages: page.items, kind: await kindOf(store, account, chat), watched: watched.has(chat) }
|
|
18189
18205
|
]
|
|
18190
18206
|
}, { store: store.tasks, account, categories, dryRun: !yes, onHeld: /* @__PURE__ */ __name((task2) => tasks.push(task2), "onHeld") });
|
|
18191
18207
|
passes.push({ chat, messages: page.items.length, ...pass, tasks });
|
|
@@ -18193,7 +18209,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18193
18209
|
return passes;
|
|
18194
18210
|
}, "applyTaskRulesToChats");
|
|
18195
18211
|
|
|
18196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18197
18213
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18198
18214
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18199
18215
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18233,7 +18249,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18233
18249
|
};
|
|
18234
18250
|
}, "dateWindow");
|
|
18235
18251
|
|
|
18236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18237
18253
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18238
18254
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18239
18255
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18256,10 +18272,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18256
18272
|
}
|
|
18257
18273
|
}, "patiently");
|
|
18258
18274
|
|
|
18259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18260
18276
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18261
18277
|
|
|
18262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18263
18279
|
var REQUEST_MS = 400;
|
|
18264
18280
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18265
18281
|
const lowest = ranges[0];
|
|
@@ -18282,13 +18298,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18282
18298
|
};
|
|
18283
18299
|
}, "estimateBackfill");
|
|
18284
18300
|
|
|
18285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18286
18302
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18287
18303
|
...error,
|
|
18288
18304
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18289
18305
|
}), "withRecovery");
|
|
18290
18306
|
|
|
18291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18292
18308
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18293
18309
|
if (isCliFailure(error))
|
|
18294
18310
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18371,7 +18387,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18371
18387
|
};
|
|
18372
18388
|
}, "mergeBatches");
|
|
18373
18389
|
|
|
18374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18375
18391
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18376
18392
|
if (deps.reads !== "store")
|
|
18377
18393
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18530,7 +18546,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18530
18546
|
}
|
|
18531
18547
|
}, "senderAmong");
|
|
18532
18548
|
|
|
18533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18534
18550
|
var CONTEXT_MESSAGES = 3;
|
|
18535
18551
|
var CONTEXT_MINUTES = 10;
|
|
18536
18552
|
var MAX_CHARS = 1200;
|
|
@@ -18554,12 +18570,12 @@ var context = {
|
|
|
18554
18570
|
}, "describe")
|
|
18555
18571
|
};
|
|
18556
18572
|
|
|
18557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18558
18574
|
var BUILT_INS = [context];
|
|
18559
18575
|
var providers = [...BUILT_INS];
|
|
18560
18576
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18561
18577
|
|
|
18562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18563
18579
|
var READ_PAGE = 5e3;
|
|
18564
18580
|
var CHAIN = 50;
|
|
18565
18581
|
var CONVERSATION_QUERY = {
|
|
@@ -18711,7 +18727,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18711
18727
|
return size2;
|
|
18712
18728
|
}, "sized");
|
|
18713
18729
|
|
|
18714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18715
18731
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18716
18732
|
var MESSAGE_PAGE = 5e3;
|
|
18717
18733
|
var PER_SESSION = 8;
|
|
@@ -18730,7 +18746,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18730
18746
|
price: remote.price,
|
|
18731
18747
|
installed: true,
|
|
18732
18748
|
perBatch: PER_REQUEST * concurrency,
|
|
18733
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18749
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-PF4LZR65.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18734
18750
|
};
|
|
18735
18751
|
}
|
|
18736
18752
|
const model = textModel(choice);
|
|
@@ -18747,7 +18763,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18747
18763
|
if (!isTextModelInstalled(model, directory2))
|
|
18748
18764
|
throw notDownloaded(model.id);
|
|
18749
18765
|
if (apart) {
|
|
18750
|
-
const { openProcess } = await import("./process-
|
|
18766
|
+
const { openProcess } = await import("./process-ZLO72UVZ.js");
|
|
18751
18767
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18752
18768
|
}
|
|
18753
18769
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19036,7 +19052,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19036
19052
|
return { ...one, state };
|
|
19037
19053
|
}, "shaped");
|
|
19038
19054
|
|
|
19039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19040
19056
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19041
19057
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19042
19058
|
for (const [key, value, maximum] of [
|
|
@@ -19089,7 +19105,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19089
19105
|
}
|
|
19090
19106
|
}, "catchUpSearch");
|
|
19091
19107
|
|
|
19092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19093
19109
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19094
19110
|
if (deps.reads === "store") {
|
|
19095
19111
|
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`);
|
|
@@ -19455,7 +19471,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19455
19471
|
return message?.timestamp ?? fallback;
|
|
19456
19472
|
}, "timeOfKey");
|
|
19457
19473
|
|
|
19458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
19459
19475
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
19460
19476
|
import { open, stat } from "node:fs/promises";
|
|
19461
19477
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -19657,7 +19673,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
19657
19673
|
return { name, source };
|
|
19658
19674
|
}, "readStickerFile");
|
|
19659
19675
|
|
|
19660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19661
19677
|
var DAY_MS = 864e5;
|
|
19662
19678
|
var NEW_DAYS = 30;
|
|
19663
19679
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19734,7 +19750,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19734
19750
|
};
|
|
19735
19751
|
}, "scorePerson");
|
|
19736
19752
|
|
|
19737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19738
19754
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19739
19755
|
const controller = new AbortController();
|
|
19740
19756
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19750,7 +19766,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
19750
19766
|
}
|
|
19751
19767
|
}, "withTimeLimit");
|
|
19752
19768
|
|
|
19753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19754
19770
|
var REGISTRIES = {
|
|
19755
19771
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19756
19772
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19837,7 +19853,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19837
19853
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19838
19854
|
})), "notCovered");
|
|
19839
19855
|
|
|
19840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19841
19857
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19842
19858
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19843
19859
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19925,7 +19941,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19925
19941
|
};
|
|
19926
19942
|
}, "botCheckService");
|
|
19927
19943
|
|
|
19928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19929
19945
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19930
19946
|
if (value === void 0)
|
|
19931
19947
|
return void 0;
|
|
@@ -19935,7 +19951,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19935
19951
|
return id2;
|
|
19936
19952
|
}, "threadIdOf");
|
|
19937
19953
|
|
|
19938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19939
19955
|
var TOP_POSTS = 5;
|
|
19940
19956
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19941
19957
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20052,7 +20068,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20052
20068
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20053
20069
|
}, "median");
|
|
20054
20070
|
|
|
20055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20056
20072
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20057
20073
|
const events = [];
|
|
20058
20074
|
for (const stay of stays) {
|
|
@@ -20084,7 +20100,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20084
20100
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20085
20101
|
}, "memberEvents");
|
|
20086
20102
|
|
|
20087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20088
20104
|
var EVENTS_DAYS = 7;
|
|
20089
20105
|
var TRACKED_DAYS = 30;
|
|
20090
20106
|
var STATS_PAGE = 1e3;
|
|
@@ -20379,7 +20395,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20379
20395
|
return members.length === 0 ? null : members;
|
|
20380
20396
|
}, "storedMembers");
|
|
20381
20397
|
|
|
20382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20383
20399
|
var INBOX_CHATS = 20;
|
|
20384
20400
|
var REVIEW_DAYS = 3;
|
|
20385
20401
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20587,7 +20603,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20587
20603
|
};
|
|
20588
20604
|
}, "inboxService");
|
|
20589
20605
|
|
|
20590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20591
20607
|
var CONTEXT_MESSAGES2 = 10;
|
|
20592
20608
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20593
20609
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20663,18 +20679,34 @@ var eventsOnce = /* @__PURE__ */ __name(async (store, filter, limit) => {
|
|
|
20663
20679
|
}
|
|
20664
20680
|
return { items, cut: true };
|
|
20665
20681
|
}, "eventsOnce");
|
|
20666
|
-
var
|
|
20682
|
+
var nameOf = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "nameOf");
|
|
20683
|
+
var readableAccounts = /* @__PURE__ */ __name(async (store, asked, scopes) => {
|
|
20684
|
+
const stored = await store.accounts.storedAccounts();
|
|
20685
|
+
const own = stored.find((one) => nameOf(one) === nameOf(asked));
|
|
20686
|
+
if (!own || asked.scope !== void 0 && asked.scope !== own.scope)
|
|
20687
|
+
throw new CliError("not_found", `no ${asked.provider} account ${asked.account} in the store`);
|
|
20688
|
+
const allowed = scopes ?? [own.scope];
|
|
20689
|
+
return stored.filter((one) => allowed.includes(one.scope));
|
|
20690
|
+
}, "readableAccounts");
|
|
20691
|
+
var readsOf = /* @__PURE__ */ __name((record2, asked, readable) => {
|
|
20692
|
+
const scopeOf4 = new Map(readable.map((one) => [nameOf(one), one.scope]));
|
|
20693
|
+
return record2.identities.flatMap((identity) => (identity.provider === asked.provider ? [asked.account] : identity.accounts).flatMap((account) => {
|
|
20694
|
+
const scope = scopeOf4.get(nameOf({ provider: identity.provider, account }));
|
|
20695
|
+
return identity.accounts.includes(account) && scope !== void 0 ? [{ key: { provider: identity.provider, account }, scope, identity }] : [];
|
|
20696
|
+
}));
|
|
20697
|
+
}, "readsOf");
|
|
20667
20698
|
var personContext = /* @__PURE__ */ __name(async (store, asked, reference, options = {}) => {
|
|
20668
20699
|
const found = pickPerson(reference, await store.people.people(asked.provider, { account: asked.account }));
|
|
20669
20700
|
const record2 = await store.people.personOf({ provider: asked.provider, id: found.id });
|
|
20670
20701
|
if (!record2)
|
|
20671
20702
|
throw new CliError("not_found", `no person ${found.id} in the store`);
|
|
20703
|
+
const readable = await readableAccounts(store, asked, options.scopes);
|
|
20672
20704
|
return {
|
|
20673
20705
|
person: { ...record2, provider: asked.provider, id: found.id },
|
|
20674
|
-
...await recordContext(store, record2, readsOf(record2, asked), options)
|
|
20706
|
+
...await recordContext(store, record2, readsOf(record2, asked, readable), readable, options)
|
|
20675
20707
|
};
|
|
20676
20708
|
}, "personContext");
|
|
20677
|
-
var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, { messages = CONTEXT_MESSAGES2, bytes: bytes2 = CONTEXT_BYTES, since, now = Date.now() } = {}) => {
|
|
20709
|
+
var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, readable, { messages = CONTEXT_MESSAGES2, bytes: bytes2 = CONTEXT_BYTES, since, now = Date.now() } = {}) => {
|
|
20678
20710
|
const recent = /* @__PURE__ */ __name((message) => since === void 0 || Date.parse(message.timestamp) >= since, "recent");
|
|
20679
20711
|
const shared = [];
|
|
20680
20712
|
const notRead = [];
|
|
@@ -20732,9 +20764,15 @@ var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, { messa
|
|
|
20732
20764
|
cut ||= named2.hasMore;
|
|
20733
20765
|
}
|
|
20734
20766
|
const personId = Number(record2.uid);
|
|
20735
|
-
const
|
|
20767
|
+
const calendars = [];
|
|
20768
|
+
for (const one of readable)
|
|
20769
|
+
if ((await store.calendar.calendars(one.id)).length)
|
|
20770
|
+
calendars.push(one);
|
|
20771
|
+
const accountIds = calendars.map(({ id: id2 }) => id2);
|
|
20772
|
+
const nothing = { items: [], cut: false };
|
|
20773
|
+
const upcoming = accountIds.length ? await eventsOnce(store, { personId, accountIds, from: now }, messages) : nothing;
|
|
20736
20774
|
const upcomingIds = new Set(upcoming.items.map(({ id: id2 }) => id2));
|
|
20737
|
-
const past = await eventsOnce(store, { personId, to: now, newest: true, ...since === void 0 ? {} : { from: since } }, messages);
|
|
20775
|
+
const past = accountIds.length ? await eventsOnce(store, { personId, accountIds, to: now, newest: true, ...since === void 0 ? {} : { from: since } }, messages) : nothing;
|
|
20738
20776
|
cut ||= upcoming.cut || past.cut;
|
|
20739
20777
|
direct.sort(newestFirst);
|
|
20740
20778
|
const each = [...direct, ...beyond].sort(newestFirst);
|
|
@@ -20750,7 +20788,13 @@ var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, { messa
|
|
|
20750
20788
|
};
|
|
20751
20789
|
cut ||= direct.length > messages || groups.length > messages || mentions.length > messages;
|
|
20752
20790
|
const kept2 = withinBytes(lists, bytes2);
|
|
20791
|
+
const read = [
|
|
20792
|
+
...reads.map(({ key, scope }) => ({ ...key, scope })),
|
|
20793
|
+
...calendars.map(({ provider, account, scope }) => ({ provider, account, scope }))
|
|
20794
|
+
];
|
|
20795
|
+
const accounts = [...new Map(read.map((one) => [nameOf(one), one])).values()].sort((a, b) => nameOf(a).localeCompare(nameOf(b)));
|
|
20753
20796
|
return {
|
|
20797
|
+
accounts,
|
|
20754
20798
|
shared: shared.sort((a, b) => Date.parse(b.lastMessageAt ?? "") - Date.parse(a.lastMessageAt ?? "")),
|
|
20755
20799
|
last: {
|
|
20756
20800
|
fromThem: each.find((message) => !message.outgoing) ?? null,
|
|
@@ -20822,7 +20866,7 @@ var lean = /* @__PURE__ */ __name((key, message, detail) => {
|
|
|
20822
20866
|
replyTo: message.replyTo?.id ?? message.replyToId ?? null
|
|
20823
20867
|
};
|
|
20824
20868
|
}, "lean");
|
|
20825
|
-
var
|
|
20869
|
+
var kindOf2 = /* @__PURE__ */ __name((chat, chatId, person) => chat && chat.kind !== "unknown" ? chat.kind : chatId === person ? "dialog" : chat?.kind ?? "unknown", "kindOf");
|
|
20826
20870
|
var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { chats, limit = CHAT_MESSAGES, detail = 0 }) => {
|
|
20827
20871
|
const found = pickPerson(reference, await store.people.people(asked.provider, { account: asked.account }));
|
|
20828
20872
|
const record2 = await store.people.personOf({ provider: asked.provider, id: found.id });
|
|
@@ -20835,7 +20879,7 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20835
20879
|
const chat = stored.find((one) => one.id === chatId);
|
|
20836
20880
|
const page = await store.messages.find({ account: asked, senders: [found.id], chatId, limit });
|
|
20837
20881
|
answer.push({
|
|
20838
|
-
chat: { id: chatId, title: chat?.title ?? null, kind:
|
|
20882
|
+
chat: { id: chatId, title: chat?.title ?? null, kind: kindOf2(chat, chatId, found.id) },
|
|
20839
20883
|
messages: page.items.toSorted((a, b) => Date.parse(a.timestamp) - Date.parse(b.timestamp)).map((message) => lean(asked, message, detail)),
|
|
20840
20884
|
complete: held.get(chatId) === "complete",
|
|
20841
20885
|
more: page.hasMore
|
|
@@ -20848,10 +20892,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20848
20892
|
};
|
|
20849
20893
|
}, "personMessages");
|
|
20850
20894
|
|
|
20851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20852
20896
|
import { createHash } from "node:crypto";
|
|
20853
20897
|
|
|
20854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20855
20899
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20856
20900
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20857
20901
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20869,7 +20913,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20869
20913
|
return { parsed, meeting };
|
|
20870
20914
|
}, "authorizedMeetingMetadata");
|
|
20871
20915
|
|
|
20872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20873
20917
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20874
20918
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20875
20919
|
if (signal?.aborted)
|
|
@@ -21068,7 +21112,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21068
21112
|
return { ...packet, fingerprint: hash(packet) };
|
|
21069
21113
|
}, "readMeetingEvidence");
|
|
21070
21114
|
|
|
21071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21072
21116
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21073
21117
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21074
21118
|
const requestedAccounts = options.accountIds;
|
|
@@ -21167,7 +21211,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21167
21211
|
};
|
|
21168
21212
|
}, "personMeetingContext");
|
|
21169
21213
|
|
|
21170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21171
21215
|
var PREPARE_BYTES = 96 * 1024;
|
|
21172
21216
|
var MEETINGS = 5;
|
|
21173
21217
|
var CUES = 3;
|
|
@@ -21195,7 +21239,6 @@ var personPreparation = /* @__PURE__ */ __name(async (store, asked, reference, o
|
|
|
21195
21239
|
coverage: { included: items.length, hasMore: over || cut, cutBy: cut ? "bytes" : over ? "limit" : null }
|
|
21196
21240
|
};
|
|
21197
21241
|
}, "budgeted");
|
|
21198
|
-
const reads = readsOf(context2.person, asked);
|
|
21199
21242
|
const partial = new Set(context2.notRead.map((chat) => `${chat.provider}/${chat.account}/${chat.chatId}`));
|
|
21200
21243
|
const waiting = [];
|
|
21201
21244
|
for (const chat of context2.shared.filter((one) => one.kind === "dialog")) {
|
|
@@ -21212,10 +21255,10 @@ var personPreparation = /* @__PURE__ */ __name(async (store, asked, reference, o
|
|
|
21212
21255
|
});
|
|
21213
21256
|
}
|
|
21214
21257
|
waiting.sort((a, b) => Date.parse(b.message.timestamp) - Date.parse(a.message.timestamp));
|
|
21215
|
-
const accounts =
|
|
21258
|
+
const accounts = context2.accounts.map(({ provider, account }) => ({ provider, account }));
|
|
21216
21259
|
const held = await store.people.preparation(context2.person.uid, { accounts, limit });
|
|
21217
|
-
const
|
|
21218
|
-
const meetings = await meetingsOf(store, context2.person.uid,
|
|
21260
|
+
const readable = await readableAccounts(store, asked, options.scopes);
|
|
21261
|
+
const meetings = await meetingsOf(store, context2.person.uid, readable, options.since, () => left);
|
|
21219
21262
|
const sections = {
|
|
21220
21263
|
waiting: budgeted({ items: waiting, hasMore: false }),
|
|
21221
21264
|
tasks: budgeted(held.tasks),
|
|
@@ -21284,7 +21327,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21284
21327
|
}
|
|
21285
21328
|
}, "meetingsOf");
|
|
21286
21329
|
|
|
21287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21288
21331
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21289
21332
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21290
21333
|
const held = await storeIfOpen(deps);
|
|
@@ -21354,7 +21397,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21354
21397
|
complete: false
|
|
21355
21398
|
})), "quiet");
|
|
21356
21399
|
|
|
21357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21358
21401
|
var TIMELINE_ITEMS = 50;
|
|
21359
21402
|
var TIMELINE_MAX = 500;
|
|
21360
21403
|
var SCOPES = ["personal", "work"];
|
|
@@ -21409,7 +21452,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21409
21452
|
};
|
|
21410
21453
|
}, "personTimeline");
|
|
21411
21454
|
|
|
21412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21413
21456
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21414
21457
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21415
21458
|
const held = await storeIfOpen(deps);
|
|
@@ -21636,7 +21679,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21636
21679
|
return rest;
|
|
21637
21680
|
}, "withoutPhone");
|
|
21638
21681
|
|
|
21639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21640
21683
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21641
21684
|
var PERIOD_FIELD = "created";
|
|
21642
21685
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21739,7 +21782,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21739
21782
|
}));
|
|
21740
21783
|
}, "meetingNames");
|
|
21741
21784
|
|
|
21742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21743
21786
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21744
21787
|
const tags = /* @__PURE__ */ new Map();
|
|
21745
21788
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21748,7 +21791,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21748
21791
|
return tags;
|
|
21749
21792
|
}, "taskTagFilters");
|
|
21750
21793
|
|
|
21751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21752
21795
|
var TASK_QUERY = {
|
|
21753
21796
|
entity: "task",
|
|
21754
21797
|
backend: "sql",
|
|
@@ -22240,7 +22283,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22240
22283
|
};
|
|
22241
22284
|
}, "taskView");
|
|
22242
22285
|
|
|
22243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22244
22287
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22245
22288
|
if (newest === null)
|
|
22246
22289
|
return null;
|
|
@@ -22249,7 +22292,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22249
22292
|
return newest.addressed ? "owed" : null;
|
|
22250
22293
|
}, "mailTurn");
|
|
22251
22294
|
|
|
22252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22253
22296
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22254
22297
|
if (error instanceof CliError && error.code === "not_found")
|
|
22255
22298
|
return void 0;
|
|
@@ -22307,7 +22350,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22307
22350
|
};
|
|
22308
22351
|
}, "mailActivity");
|
|
22309
22352
|
|
|
22310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22311
22354
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22312
22355
|
const ids = [...new Set(chatIds)];
|
|
22313
22356
|
if (ids.length === 0)
|
|
@@ -22333,7 +22376,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22333
22376
|
}));
|
|
22334
22377
|
}, "chatCoverage");
|
|
22335
22378
|
|
|
22336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
22337
22380
|
var DAY = 864e5;
|
|
22338
22381
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22339
22382
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22580,7 +22623,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22580
22623
|
};
|
|
22581
22624
|
}, "agendaItem");
|
|
22582
22625
|
|
|
22583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22584
22627
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22585
22628
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22586
22629
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22644,7 +22687,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22644
22687
|
}
|
|
22645
22688
|
}, "validateContextEvidencePage");
|
|
22646
22689
|
|
|
22647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22648
22691
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22649
22692
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22650
22693
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22697,7 +22740,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22697
22740
|
};
|
|
22698
22741
|
}, "contextReadBudget");
|
|
22699
22742
|
|
|
22700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22701
22744
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22702
22745
|
if (!port || typeof port.read !== "function")
|
|
22703
22746
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22741,7 +22784,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22741
22784
|
};
|
|
22742
22785
|
}, "createContextEvidenceReader");
|
|
22743
22786
|
|
|
22744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22745
22788
|
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");
|
|
22746
22789
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
22747
22790
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22757,7 +22800,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
22757
22800
|
}, "excerpt");
|
|
22758
22801
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22759
22802
|
|
|
22760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
22761
22804
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22762
22805
|
var DEFAULT_PURPOSES = ["work"];
|
|
22763
22806
|
var LINK_PURPOSE = "work";
|
|
@@ -22787,7 +22830,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22787
22830
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22788
22831
|
], "purposeList");
|
|
22789
22832
|
|
|
22790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22791
22834
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22792
22835
|
async around(ref, window3) {
|
|
22793
22836
|
const at = parseLocator(ref);
|
|
@@ -22882,7 +22925,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22882
22925
|
};
|
|
22883
22926
|
}, "storedNeighbours");
|
|
22884
22927
|
|
|
22885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22886
22929
|
import { createHash as createHash2 } from "node:crypto";
|
|
22887
22930
|
var DAY2 = 864e5;
|
|
22888
22931
|
var MAX_TIME = 864e13;
|
|
@@ -23198,7 +23241,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23198
23241
|
return value;
|
|
23199
23242
|
}, "decodeCheckpoint");
|
|
23200
23243
|
|
|
23201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23202
23245
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23203
23246
|
var PAGE2 = 20;
|
|
23204
23247
|
var PEOPLE = 20;
|
|
@@ -23602,7 +23645,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23602
23645
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23603
23646
|
}, "peopleOf");
|
|
23604
23647
|
|
|
23605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23606
23649
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23607
23650
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23608
23651
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23646,7 +23689,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23646
23689
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23647
23690
|
}, "matchVocabularyTerms");
|
|
23648
23691
|
|
|
23649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23650
23693
|
var KINDS = ["project", "tag", "topic"];
|
|
23651
23694
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23652
23695
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23701,7 +23744,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23701
23744
|
};
|
|
23702
23745
|
}, "findEvidenceMentions");
|
|
23703
23746
|
|
|
23704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23705
23748
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23706
23749
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23707
23750
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23796,7 +23839,7 @@ var proposedLinksOf = /* @__PURE__ */ __name(async (store, project) => {
|
|
|
23796
23839
|
}
|
|
23797
23840
|
];
|
|
23798
23841
|
}).sort((a, b) => Number(a.id) - Number(b.id));
|
|
23799
|
-
const legacy = (await store.knowledge.relations(null, project)).filter((one) =>
|
|
23842
|
+
const legacy = (await store.knowledge.relations(null, project)).filter((one) => one.standing === "proposed" && one.kind === "member-of" && one.to === project).map((one) => ({ from: one.from, id: `link:${one.id}`, role: one.role, purpose: one.purpose }));
|
|
23800
23843
|
return [...proposals, ...legacy];
|
|
23801
23844
|
}, "proposedLinksOf");
|
|
23802
23845
|
var memberRefsOf = /* @__PURE__ */ __name(async (store, project, includeProposed) => {
|
|
@@ -23804,7 +23847,7 @@ var memberRefsOf = /* @__PURE__ */ __name(async (store, project, includeProposed
|
|
|
23804
23847
|
return [];
|
|
23805
23848
|
const confirmed = /* @__PURE__ */ new Set();
|
|
23806
23849
|
for (const relation of await store.knowledge.relations(null, project))
|
|
23807
|
-
if (relation.
|
|
23850
|
+
if (isUsable(relation.standing) && relation.kind === "member-of" && relation.to === project && /^person:.+/.test(relation.from))
|
|
23808
23851
|
confirmed.add(relation.from);
|
|
23809
23852
|
const members = [...confirmed].sort().map((ref) => ({ ref }));
|
|
23810
23853
|
if (!includeProposed)
|
|
@@ -23842,7 +23885,7 @@ var linkedChatsOf = /* @__PURE__ */ __name(async (store, project, options = {})
|
|
|
23842
23885
|
return [];
|
|
23843
23886
|
const chats = [];
|
|
23844
23887
|
for (const relation of await store.knowledge.relations(null, project)) {
|
|
23845
|
-
if (!relation.
|
|
23888
|
+
if (!isUsable(relation.standing) || relation.kind !== "member-of" || relation.to !== project)
|
|
23846
23889
|
continue;
|
|
23847
23890
|
const reference = chatOf2(relation.from);
|
|
23848
23891
|
if (reference)
|
|
@@ -24007,18 +24050,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24007
24050
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24008
24051
|
}, "purposeHintOf");
|
|
24009
24052
|
|
|
24010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24011
24054
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24012
24055
|
|
|
24013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24014
24057
|
import { lstat } from "node:fs/promises";
|
|
24015
24058
|
|
|
24016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24017
24060
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
24018
24061
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
24019
24062
|
import { join as join2 } from "node:path";
|
|
24020
24063
|
|
|
24021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
24022
24065
|
import { createHash as createHash3 } from "node:crypto";
|
|
24023
24066
|
var metadataLimit = 16384;
|
|
24024
24067
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -24078,7 +24121,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
24078
24121
|
}
|
|
24079
24122
|
}, "readPartialMetadata");
|
|
24080
24123
|
|
|
24081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
24082
24125
|
import { randomUUID } from "node:crypto";
|
|
24083
24126
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
24084
24127
|
import { join } from "node:path";
|
|
@@ -24170,7 +24213,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24170
24213
|
};
|
|
24171
24214
|
}, "partialWriter");
|
|
24172
24215
|
|
|
24173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24174
24217
|
var NativeRecordingPartialStore = class {
|
|
24175
24218
|
static {
|
|
24176
24219
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24277,12 +24320,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24277
24320
|
}
|
|
24278
24321
|
};
|
|
24279
24322
|
|
|
24280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24281
24324
|
import { createHash as createHash5 } from "node:crypto";
|
|
24282
24325
|
import { link as link2 } from "node:fs/promises";
|
|
24283
24326
|
import { basename as basename2, dirname as dirname2, join as join4, resolve as resolve2 } from "node:path";
|
|
24284
24327
|
|
|
24285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24286
24329
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24287
24330
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24288
24331
|
signal?.throwIfAborted();
|
|
@@ -24317,7 +24360,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24317
24360
|
signal?.throwIfAborted();
|
|
24318
24361
|
}, "commitPublication");
|
|
24319
24362
|
|
|
24320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24321
24364
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24322
24365
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24323
24366
|
import { join as join3 } from "node:path";
|
|
@@ -24390,7 +24433,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24390
24433
|
}
|
|
24391
24434
|
}, "writePublicationJournal");
|
|
24392
24435
|
|
|
24393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24394
24437
|
var NativeRecordingPublication = class {
|
|
24395
24438
|
static {
|
|
24396
24439
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24463,7 +24506,7 @@ var NativeRecordingPublication = class {
|
|
|
24463
24506
|
}
|
|
24464
24507
|
};
|
|
24465
24508
|
|
|
24466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24467
24510
|
import { createHash as createHash6 } from "node:crypto";
|
|
24468
24511
|
import { readdir } from "node:fs/promises";
|
|
24469
24512
|
import { isAbsolute as isAbsolute2, join as join5, resolve as resolve3 } from "node:path";
|
|
@@ -24550,7 +24593,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24550
24593
|
beforePublish
|
|
24551
24594
|
}), "commitMediaEntry");
|
|
24552
24595
|
|
|
24553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24554
24597
|
var validator = '"media-completed-v1"';
|
|
24555
24598
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24556
24599
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24651,7 +24694,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
24651
24694
|
return entry;
|
|
24652
24695
|
}, "archiveMediaFile");
|
|
24653
24696
|
|
|
24654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
24655
24698
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24656
24699
|
import { join as join6, resolve as resolve4 } from "node:path";
|
|
24657
24700
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24718,7 +24761,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24718
24761
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24719
24762
|
}, "withMediaArchiveLocks");
|
|
24720
24763
|
|
|
24721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24722
24765
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24723
24766
|
if (value === void 0)
|
|
24724
24767
|
return void 0;
|
|
@@ -24871,7 +24914,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
24871
24914
|
}, { create: true });
|
|
24872
24915
|
}, "archiveMedia");
|
|
24873
24916
|
|
|
24874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
24875
24918
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24876
24919
|
import { basename as basename3, dirname as dirname3, join as join7, resolve as resolve5 } from "node:path";
|
|
24877
24920
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -25024,7 +25067,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
25024
25067
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
25025
25068
|
}, "moveMediaArchive");
|
|
25026
25069
|
|
|
25027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
25028
25071
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
25029
25072
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
25030
25073
|
}, "progress") }) => {
|
|
@@ -25035,7 +25078,7 @@ var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__
|
|
|
25035
25078
|
}
|
|
25036
25079
|
}, "nativeRuntime");
|
|
25037
25080
|
var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /* @__PURE__ */ __name(() => {
|
|
25038
|
-
}, "progress"), acceptTerms = false }) => {
|
|
25081
|
+
}, "progress"), bytes: bytes2, acceptTerms = false }) => {
|
|
25039
25082
|
const model = textModel(id2);
|
|
25040
25083
|
if (model.terms && !acceptTerms) {
|
|
25041
25084
|
throw new CliError("validation_error", `${model.id} comes under the ${model.licence} (${model.terms}): read them, then run this again with --accept-terms`);
|
|
@@ -25043,11 +25086,11 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25043
25086
|
const directory2 = textModelsDirectory(env);
|
|
25044
25087
|
if (!isTextModelInstalled(model, directory2)) {
|
|
25045
25088
|
progress(`${model.id}: ${megabytes(bytesOf(model))} from Hugging Face`);
|
|
25046
|
-
await installFiles(placedText(model, directory2), { progress });
|
|
25089
|
+
await installFiles(placedText(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
25047
25090
|
}
|
|
25048
25091
|
await nativeRuntime({ env, progress });
|
|
25049
25092
|
progress(`${model.id}: loading it once to check it works`);
|
|
25050
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
25093
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-F7JFSLHN.js");
|
|
25051
25094
|
const embedder = await openEmbedder2(model, directory2);
|
|
25052
25095
|
try {
|
|
25053
25096
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -25059,16 +25102,16 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25059
25102
|
return { model, directory: directory2 };
|
|
25060
25103
|
}, "downloadTextModel");
|
|
25061
25104
|
var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /* @__PURE__ */ __name(() => {
|
|
25062
|
-
}, "progress") }) => {
|
|
25105
|
+
}, "progress"), bytes: bytes2 }) => {
|
|
25063
25106
|
const model = rerankModel(id2);
|
|
25064
25107
|
const directory2 = textModelsDirectory(env);
|
|
25065
25108
|
if (!isTextModelInstalled(model, directory2)) {
|
|
25066
25109
|
progress(`${model.id}: ${megabytes(bytesOf(model))} from Hugging Face`);
|
|
25067
|
-
await installFiles(placedText(model, directory2), { progress });
|
|
25110
|
+
await installFiles(placedText(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
25068
25111
|
}
|
|
25069
25112
|
await nativeRuntime({ env, progress });
|
|
25070
25113
|
progress(`${model.id}: loading it once to check it works`);
|
|
25071
|
-
const { openReranker } = await import("./rerank-
|
|
25114
|
+
const { openReranker } = await import("./rerank-CQNZF3JI.js");
|
|
25072
25115
|
const reranker = await openReranker(model, directory2);
|
|
25073
25116
|
try {
|
|
25074
25117
|
await reranker.score("check", ["check"]);
|
|
@@ -25078,15 +25121,15 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
25078
25121
|
return { model, directory: directory2 };
|
|
25079
25122
|
}, "downloadRerankModel");
|
|
25080
25123
|
var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /* @__PURE__ */ __name(() => {
|
|
25081
|
-
}, "progress") }) => {
|
|
25124
|
+
}, "progress"), bytes: bytes2 }) => {
|
|
25082
25125
|
const model = imageModel(id2);
|
|
25083
25126
|
const directory2 = imageModelsDirectory(env);
|
|
25084
25127
|
if (!isImageModelInstalled(model, directory2)) {
|
|
25085
25128
|
progress(`${model.id}: ${megabytes(bytesOf(model))} from Hugging Face`);
|
|
25086
|
-
await installFiles(placedImage(model, directory2), { progress });
|
|
25129
|
+
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
25087
25130
|
}
|
|
25088
25131
|
progress(`${model.id}: loading it once to check it works`);
|
|
25089
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
25132
|
+
const { openPictureEmbedder } = await import("./embedder-U4G74HV3.js");
|
|
25090
25133
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
25091
25134
|
try {
|
|
25092
25135
|
const vector = await embedder.embedQuery("check");
|
|
@@ -25098,7 +25141,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25098
25141
|
return { model, directory: directory2 };
|
|
25099
25142
|
}, "downloadImageModel");
|
|
25100
25143
|
|
|
25101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
25102
25145
|
var MONEY_REQUEST = "money-request";
|
|
25103
25146
|
var MONEY_DONE = "money-done";
|
|
25104
25147
|
var PROMISE = "promise";
|
|
@@ -25132,10 +25175,10 @@ var MONEY_WORDS = [
|
|
|
25132
25175
|
}
|
|
25133
25176
|
];
|
|
25134
25177
|
|
|
25135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25136
25179
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25137
25180
|
|
|
25138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25139
25182
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25140
25183
|
var MONEY_DONE_FORMS = words([
|
|
25141
25184
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25175,7 +25218,7 @@ var PROMISE_FORMS = words([
|
|
|
25175
25218
|
"estar\xE1 listo"
|
|
25176
25219
|
]);
|
|
25177
25220
|
|
|
25178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25179
25222
|
var EXCERPT_CHARS = 80;
|
|
25180
25223
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25181
25224
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25197,7 +25240,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25197
25240
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25198
25241
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25199
25242
|
|
|
25200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25201
25244
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25202
25245
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25203
25246
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25278,7 +25321,7 @@ var amounts = {
|
|
|
25278
25321
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
25279
25322
|
};
|
|
25280
25323
|
|
|
25281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25282
25325
|
var children = {
|
|
25283
25326
|
id: "children",
|
|
25284
25327
|
version: 1,
|
|
@@ -25307,7 +25350,7 @@ var children = {
|
|
|
25307
25350
|
}, "read")
|
|
25308
25351
|
};
|
|
25309
25352
|
|
|
25310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25311
25354
|
var coverage = {
|
|
25312
25355
|
id: "coverage",
|
|
25313
25356
|
version: 1,
|
|
@@ -25336,7 +25379,7 @@ var coverage = {
|
|
|
25336
25379
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
|
|
25337
25380
|
};
|
|
25338
25381
|
|
|
25339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25340
25383
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25341
25384
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25342
25385
|
signal: "payments",
|
|
@@ -25386,7 +25429,7 @@ var payments = {
|
|
|
25386
25429
|
}, "read")
|
|
25387
25430
|
};
|
|
25388
25431
|
|
|
25389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25390
25433
|
var PATTERNS_PER_CHAT = 3;
|
|
25391
25434
|
var DAY3 = 864e5;
|
|
25392
25435
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25475,7 +25518,7 @@ var promises = {
|
|
|
25475
25518
|
}, "read")
|
|
25476
25519
|
};
|
|
25477
25520
|
|
|
25478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25479
25522
|
var PER_SIDE = 5;
|
|
25480
25523
|
var WEEK = 7 * 864e5;
|
|
25481
25524
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25506,7 +25549,7 @@ var questions2 = {
|
|
|
25506
25549
|
}, "attention")
|
|
25507
25550
|
};
|
|
25508
25551
|
|
|
25509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25510
25553
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25511
25554
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25512
25555
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25574,7 +25617,7 @@ var replyNext = {
|
|
|
25574
25617
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25575
25618
|
};
|
|
25576
25619
|
|
|
25577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
25578
25621
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25579
25622
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25580
25623
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25620,7 +25663,7 @@ var topics = {
|
|
|
25620
25663
|
}, "read")
|
|
25621
25664
|
};
|
|
25622
25665
|
|
|
25623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
25624
25667
|
var STATUS_SIGNALS = [
|
|
25625
25668
|
replyNext,
|
|
25626
25669
|
questions2,
|
|
@@ -25632,7 +25675,7 @@ var STATUS_SIGNALS = [
|
|
|
25632
25675
|
children
|
|
25633
25676
|
];
|
|
25634
25677
|
|
|
25635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
25636
25679
|
var DAY4 = 864e5;
|
|
25637
25680
|
var STATUS_WINDOW = 300;
|
|
25638
25681
|
var STATUS_CHATS = 16;
|
|
@@ -25648,7 +25691,7 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
25648
25691
|
const below = [];
|
|
25649
25692
|
for (const parent of level)
|
|
25650
25693
|
for (const relation of await store.knowledge.relations(null, parent)) {
|
|
25651
|
-
if (!relation.
|
|
25694
|
+
if (!isUsable(relation.standing) || relation.kind !== "member-of" || relation.to !== parent)
|
|
25652
25695
|
continue;
|
|
25653
25696
|
if (!relation.from.startsWith("project:"))
|
|
25654
25697
|
continue;
|
|
@@ -25821,7 +25864,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25821
25864
|
};
|
|
25822
25865
|
}, "projectStatus");
|
|
25823
25866
|
|
|
25824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
25825
25868
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25826
25869
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25827
25870
|
if (deps.offline)
|
|
@@ -25893,7 +25936,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25893
25936
|
};
|
|
25894
25937
|
}, "accountService");
|
|
25895
25938
|
|
|
25896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
25897
25940
|
var MINUTE = 6e4;
|
|
25898
25941
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25899
25942
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25912,7 +25955,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25912
25955
|
return new Date(at - at % MINUTE).toISOString();
|
|
25913
25956
|
}, "sendTime");
|
|
25914
25957
|
|
|
25915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
25916
25959
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
25917
25960
|
try {
|
|
25918
25961
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -26159,7 +26202,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26159
26202
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26160
26203
|
}, "linkLimits");
|
|
26161
26204
|
|
|
26162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26163
26206
|
var THREADS_PAGE = 500;
|
|
26164
26207
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26165
26208
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26238,7 +26281,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26238
26281
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26239
26282
|
}, "readMail");
|
|
26240
26283
|
|
|
26241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26242
26285
|
var NO_MAIL = "no_mail";
|
|
26243
26286
|
var MAIL = "email";
|
|
26244
26287
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26269,11 +26312,11 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26269
26312
|
if (kind === "messages") {
|
|
26270
26313
|
if (explicit === MAIL)
|
|
26271
26314
|
throw new CliError("validation_error", "mail is searched with `memo search mail`, not search messages");
|
|
26272
|
-
return chosen.filter(({ provider }) =>
|
|
26315
|
+
return chosen.filter(({ provider }) => holdsKindOf(provider, "messages"));
|
|
26273
26316
|
}
|
|
26274
26317
|
if (explicit !== void 0 && explicit !== MAIL && explicit !== "all")
|
|
26275
26318
|
throw new CliError("validation_error", `search mail reads mail only \u2014 \`${command === void 0 ? "" : `${command} `}search messages\` searches ${explicit}`);
|
|
26276
|
-
const mail = (listed2 ? chosen : held).filter(({ provider }) =>
|
|
26319
|
+
const mail = (listed2 ? chosen : held).filter(({ provider }) => holdsKindOf(provider, "mail"));
|
|
26277
26320
|
if (mail.length === 0)
|
|
26278
26321
|
throw new CliError("not_found", "no mail in the store yet \u2014 `memo sync --only mail --since-time <time>` imports it", {
|
|
26279
26322
|
reason: NO_MAIL
|
|
@@ -26285,7 +26328,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26285
26328
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26286
26329
|
}, "accountsOfKind");
|
|
26287
26330
|
|
|
26288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26289
26332
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26290
26333
|
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");
|
|
26291
26334
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26468,7 +26511,7 @@ var coverageOf = /* @__PURE__ */ __name(async (store, { scopeAccounts, selectedC
|
|
|
26468
26511
|
const completeness = [];
|
|
26469
26512
|
const stats = /* @__PURE__ */ new Map();
|
|
26470
26513
|
let inventoryComplete = scopeAccounts.length > 0;
|
|
26471
|
-
for (const selected of scopeAccounts) {
|
|
26514
|
+
for (const selected of scopeAccounts.filter(({ provider }) => !isImportedProvider(provider))) {
|
|
26472
26515
|
if (!await store.sync.syncState(selected, CHAT_LIST_KEY)) {
|
|
26473
26516
|
inventoryComplete = false;
|
|
26474
26517
|
}
|
|
@@ -26633,7 +26676,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26633
26676
|
};
|
|
26634
26677
|
}, "statsLucene");
|
|
26635
26678
|
|
|
26636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
26637
26680
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26638
26681
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26639
26682
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26802,7 +26845,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26802
26845
|
};
|
|
26803
26846
|
}, "readRankingSelection");
|
|
26804
26847
|
|
|
26805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
26806
26849
|
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");
|
|
26807
26850
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26808
26851
|
command,
|
|
@@ -26812,7 +26855,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26812
26855
|
fieldsVersion: FIELD_VERSION
|
|
26813
26856
|
}), "searchRecordOf");
|
|
26814
26857
|
|
|
26815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
26816
26859
|
function invalid2(message) {
|
|
26817
26860
|
throw new CliError("validation_error", message);
|
|
26818
26861
|
}
|
|
@@ -27106,7 +27149,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
27106
27149
|
}, "evidence")
|
|
27107
27150
|
}), "adminStatisticsService");
|
|
27108
27151
|
|
|
27109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
27110
27153
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
27111
27154
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
27112
27155
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27243,12 +27286,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27243
27286
|
return { plan, repair };
|
|
27244
27287
|
}, "gapsService");
|
|
27245
27288
|
|
|
27246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27247
27290
|
import { createHash as createHash9 } from "node:crypto";
|
|
27248
27291
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27249
27292
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27250
27293
|
|
|
27251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27252
27295
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27253
27296
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27254
27297
|
var MAX_FILES = 1e4;
|
|
@@ -27319,15 +27362,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27319
27362
|
return choices;
|
|
27320
27363
|
}, "directoryPaths");
|
|
27321
27364
|
|
|
27322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27323
27366
|
import { posix } from "node:path";
|
|
27324
27367
|
|
|
27325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27326
27369
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27327
27370
|
import { crc32 } from "node:zlib";
|
|
27328
27371
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27329
27372
|
|
|
27330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
27331
27374
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27332
27375
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27333
27376
|
var SAMPLE = 65536;
|
|
@@ -27429,7 +27472,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27429
27472
|
return result.text;
|
|
27430
27473
|
}, "decodeXml");
|
|
27431
27474
|
|
|
27432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27433
27476
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27434
27477
|
var MAX_ENTRIES = 1e3;
|
|
27435
27478
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27644,7 +27687,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27644
27687
|
return found;
|
|
27645
27688
|
}, "elements");
|
|
27646
27689
|
|
|
27647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27648
27691
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27649
27692
|
let name = "";
|
|
27650
27693
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27699,7 +27742,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27699
27742
|
return { text: parts.join("").trim(), truncated: false };
|
|
27700
27743
|
}, "sheetText");
|
|
27701
27744
|
|
|
27702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27703
27746
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27704
27747
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27705
27748
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28099,10 +28142,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28099
28142
|
}
|
|
28100
28143
|
}, "readDocument");
|
|
28101
28144
|
|
|
28102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28103
28146
|
import { extname as extname3 } from "node:path";
|
|
28104
28147
|
|
|
28105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28106
28149
|
import { readFileSync } from "node:fs";
|
|
28107
28150
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28108
28151
|
import { fileURLToPath } from "node:url";
|
|
@@ -28163,7 +28206,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
28163
28206
|
}
|
|
28164
28207
|
}, "derived");
|
|
28165
28208
|
|
|
28166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28167
28210
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28168
28211
|
var image2 = {
|
|
28169
28212
|
id: "image",
|
|
@@ -28172,7 +28215,7 @@ var image2 = {
|
|
|
28172
28215
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28173
28216
|
};
|
|
28174
28217
|
|
|
28175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28176
28219
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28177
28220
|
var doc = {
|
|
28178
28221
|
id: "doc",
|
|
@@ -28184,7 +28227,7 @@ var doc = {
|
|
|
28184
28227
|
}), "read")
|
|
28185
28228
|
};
|
|
28186
28229
|
|
|
28187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28188
28231
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28189
28232
|
var docx = {
|
|
28190
28233
|
id: "docx",
|
|
@@ -28197,7 +28240,7 @@ var docx = {
|
|
|
28197
28240
|
}), "read")
|
|
28198
28241
|
};
|
|
28199
28242
|
|
|
28200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28201
28244
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28202
28245
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28203
28246
|
"fonttbl",
|
|
@@ -28373,7 +28416,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28373
28416
|
}, "htmlText");
|
|
28374
28417
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28375
28418
|
|
|
28376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
28377
28420
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28378
28421
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28379
28422
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28429,7 +28472,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28429
28472
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28430
28473
|
}, "markdownSections");
|
|
28431
28474
|
|
|
28432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28433
28476
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28434
28477
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28435
28478
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28500,7 +28543,7 @@ var html = {
|
|
|
28500
28543
|
}, "read")
|
|
28501
28544
|
};
|
|
28502
28545
|
|
|
28503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28504
28547
|
var office = {
|
|
28505
28548
|
id: "office",
|
|
28506
28549
|
version: documentExtractor("odt"),
|
|
@@ -28511,7 +28554,7 @@ var office = {
|
|
|
28511
28554
|
}, "read")
|
|
28512
28555
|
};
|
|
28513
28556
|
|
|
28514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28515
28558
|
var pdf = {
|
|
28516
28559
|
id: "pdf",
|
|
28517
28560
|
version: "unpdf",
|
|
@@ -28578,7 +28621,7 @@ var pdf = {
|
|
|
28578
28621
|
}), "read")
|
|
28579
28622
|
};
|
|
28580
28623
|
|
|
28581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28582
28625
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28583
28626
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28584
28627
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28598,7 +28641,7 @@ var plain = {
|
|
|
28598
28641
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28599
28642
|
};
|
|
28600
28643
|
|
|
28601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28602
28645
|
var rtf = {
|
|
28603
28646
|
id: "rtf",
|
|
28604
28647
|
version: "v1",
|
|
@@ -28606,10 +28649,10 @@ var rtf = {
|
|
|
28606
28649
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28607
28650
|
};
|
|
28608
28651
|
|
|
28609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28610
28653
|
import { basename as basename5 } from "node:path";
|
|
28611
28654
|
|
|
28612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28613
28656
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28614
28657
|
const cells = [];
|
|
28615
28658
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28647,7 +28690,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28647
28690
|
return { cells, truncated };
|
|
28648
28691
|
}, "delimitedSpans");
|
|
28649
28692
|
|
|
28650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28651
28694
|
var DELIMITED = {
|
|
28652
28695
|
".csv": ",",
|
|
28653
28696
|
".tsv": " ",
|
|
@@ -28686,7 +28729,7 @@ var sheets = {
|
|
|
28686
28729
|
}, "read")
|
|
28687
28730
|
};
|
|
28688
28731
|
|
|
28689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28690
28733
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28691
28734
|
var HEAD_BYTES = 1024;
|
|
28692
28735
|
var readers = [...BUILT_INS2];
|
|
@@ -28696,7 +28739,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28696
28739
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28697
28740
|
}, "readWithRegistry");
|
|
28698
28741
|
|
|
28699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28700
28743
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28701
28744
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28702
28745
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29775,7 +29818,7 @@ function imageSize(input) {
|
|
|
29775
29818
|
}
|
|
29776
29819
|
__name(imageSize, "imageSize");
|
|
29777
29820
|
|
|
29778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29779
29822
|
var MAX_PAGES = 20;
|
|
29780
29823
|
var MAX_PIXELS = 2e7;
|
|
29781
29824
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29926,7 +29969,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29926
29969
|
}
|
|
29927
29970
|
}, "ocrPdf");
|
|
29928
29971
|
|
|
29929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29930
29973
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29931
29974
|
const limits = pdfPreviewLimits(env);
|
|
29932
29975
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -30003,7 +30046,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
30003
30046
|
}
|
|
30004
30047
|
}, "pdfPreview");
|
|
30005
30048
|
|
|
30006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
30007
30050
|
import { createHash as createHash8 } from "node:crypto";
|
|
30008
30051
|
import { constants } from "node:fs";
|
|
30009
30052
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30111,7 +30154,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30111
30154
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30112
30155
|
}, "transferMime");
|
|
30113
30156
|
|
|
30114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30115
30158
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30116
30159
|
import { link as link3, rm } from "node:fs/promises";
|
|
30117
30160
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30225,7 +30268,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
30225
30268
|
}
|
|
30226
30269
|
}, "save");
|
|
30227
30270
|
|
|
30228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30229
30272
|
var ATTACHMENT_QUERY = {
|
|
30230
30273
|
entity: "attachment",
|
|
30231
30274
|
backend: "sql",
|
|
@@ -30648,7 +30691,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30648
30691
|
}, "setText")
|
|
30649
30692
|
}), "attachmentsService");
|
|
30650
30693
|
|
|
30651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30652
30695
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30653
30696
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30654
30697
|
const store = await accountStore(deps);
|
|
@@ -30678,7 +30721,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30678
30721
|
}, "list")
|
|
30679
30722
|
}), "chatDocumentsService");
|
|
30680
30723
|
|
|
30681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30682
30725
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30683
30726
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30684
30727
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30765,7 +30808,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30765
30808
|
}
|
|
30766
30809
|
}, "isRetentionSelection");
|
|
30767
30810
|
|
|
30768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30769
30812
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30770
30813
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30771
30814
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -30972,7 +31015,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30972
31015
|
};
|
|
30973
31016
|
}, "countersService");
|
|
30974
31017
|
|
|
30975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30976
31019
|
var SYNC_KEY = "messages.sync-first";
|
|
30977
31020
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30978
31021
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31104,7 +31147,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31104
31147
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31105
31148
|
}), "withRefresh");
|
|
31106
31149
|
|
|
31107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31108
31151
|
var CANDIDATES = 50;
|
|
31109
31152
|
var WORD_HITS = 200;
|
|
31110
31153
|
var RRF_K = 60;
|
|
@@ -31379,13 +31422,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
31379
31422
|
return mean2.map((value) => value / length);
|
|
31380
31423
|
}, "meanOf");
|
|
31381
31424
|
|
|
31382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
31383
31426
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31384
31427
|
...embeddingsMaintenance(deps),
|
|
31385
31428
|
...embeddingsSearch(deps)
|
|
31386
31429
|
}), "embeddingsService");
|
|
31387
31430
|
|
|
31388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31389
31432
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31390
31433
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31391
31434
|
if (deps.offline)
|
|
@@ -31526,7 +31569,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31526
31569
|
};
|
|
31527
31570
|
}, "foldersService");
|
|
31528
31571
|
|
|
31529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31530
31573
|
var REVIEW_COUNT = 500;
|
|
31531
31574
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31532
31575
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31605,7 +31648,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31605
31648
|
};
|
|
31606
31649
|
}, "mentionsService");
|
|
31607
31650
|
|
|
31608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31609
31652
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31610
31653
|
position,
|
|
31611
31654
|
kind,
|
|
@@ -31654,7 +31697,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31654
31697
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31655
31698
|
}, "validatePermalink");
|
|
31656
31699
|
|
|
31657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31658
31701
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31659
31702
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31660
31703
|
return `${seconds / 86400}d`;
|
|
@@ -31686,7 +31729,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31686
31729
|
return seconds;
|
|
31687
31730
|
}, "pinDurationOf");
|
|
31688
31731
|
|
|
31689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31690
31733
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31691
31734
|
if (sendAs === void 0) {
|
|
31692
31735
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31711,7 +31754,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31711
31754
|
return sendAs;
|
|
31712
31755
|
}, "typedSendAs");
|
|
31713
31756
|
|
|
31714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31715
31758
|
var TOTAL_CAP = 1e4;
|
|
31716
31759
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31717
31760
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31722,7 +31765,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31722
31765
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31723
31766
|
}, "totalOf");
|
|
31724
31767
|
|
|
31725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31726
31769
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31727
31770
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31728
31771
|
let narrows = false;
|
|
@@ -31751,7 +31794,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31751
31794
|
return wanted(root).join(" ").trim();
|
|
31752
31795
|
}, "meaningWords");
|
|
31753
31796
|
|
|
31754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31755
31798
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31756
31799
|
var scaffolding = new Set(words2("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
31757
31800
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31883,7 +31926,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31883
31926
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31884
31927
|
}, "questionLookup");
|
|
31885
31928
|
|
|
31886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31887
31930
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31888
31931
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31889
31932
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32076,7 +32119,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32076
32119
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32077
32120
|
}, "signals");
|
|
32078
32121
|
|
|
32079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32080
32123
|
var MEANING_DEPTH = 100;
|
|
32081
32124
|
var RRF_K2 = 60;
|
|
32082
32125
|
var RERANK_DEPTH = 50;
|
|
@@ -32401,7 +32444,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32401
32444
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32402
32445
|
}, "mixedWithReranker");
|
|
32403
32446
|
|
|
32404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32405
32448
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32406
32449
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32407
32450
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32600,7 +32643,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32600
32643
|
return result;
|
|
32601
32644
|
}, "readThreadContext");
|
|
32602
32645
|
|
|
32603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32604
32647
|
var SEARCH_FILL_MS = 200;
|
|
32605
32648
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32606
32649
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32631,6 +32674,8 @@ var topUp = /* @__PURE__ */ __name(async (store) => {
|
|
|
32631
32674
|
}, "topUp");
|
|
32632
32675
|
var MAX_SEARCH_OFFSET = 1e3;
|
|
32633
32676
|
var searchStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, meaning, rerank) => {
|
|
32677
|
+
if (request.text !== void 0)
|
|
32678
|
+
request = { ...request, text: plainQuery(request.text) };
|
|
32634
32679
|
const offset = request.offset ?? 0;
|
|
32635
32680
|
if (!Number.isInteger(offset) || offset < 0 || offset > MAX_SEARCH_OFFSET)
|
|
32636
32681
|
throw new CliError("validation_error", `offset takes a whole number from 0 to ${MAX_SEARCH_OFFSET}`);
|
|
@@ -32667,12 +32712,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32667
32712
|
}, "accountOf");
|
|
32668
32713
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32669
32714
|
|
|
32670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32671
32716
|
import { createHash as createHash10 } from "node:crypto";
|
|
32672
32717
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32673
32718
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32674
32719
|
|
|
32675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32676
32721
|
var GROUP_SETTINGS = [
|
|
32677
32722
|
"allCanPin",
|
|
32678
32723
|
"onlyAdminsAdd",
|
|
@@ -32686,7 +32731,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32686
32731
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32687
32732
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32688
32733
|
|
|
32689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32690
32735
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32691
32736
|
var PICTURE_FLOOR = 0.25;
|
|
32692
32737
|
var PAGE4 = 50;
|
|
@@ -32703,7 +32748,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32703
32748
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32704
32749
|
if (!isImageModelInstalled(model2, directory2))
|
|
32705
32750
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32706
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32751
|
+
const { openPictureEmbedder } = await import("./embedder-U4G74HV3.js");
|
|
32707
32752
|
return openPictureEmbedder(model2, directory2);
|
|
32708
32753
|
}, "open");
|
|
32709
32754
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32900,7 +32945,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32900
32945
|
}, "search")
|
|
32901
32946
|
}), "withPictures");
|
|
32902
32947
|
|
|
32903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32904
32949
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
32905
32950
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
32906
32951
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -32968,7 +33013,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32968
33013
|
}
|
|
32969
33014
|
}, "meaningLane");
|
|
32970
33015
|
|
|
32971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32972
33017
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32973
33018
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32974
33019
|
if (choice === "off")
|
|
@@ -32980,9 +33025,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32980
33025
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32981
33026
|
try {
|
|
32982
33027
|
const warm = deps.embedders;
|
|
32983
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
33028
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-ZLO72UVZ.js")).openRerankerProcess(model, directory2, {
|
|
32984
33029
|
threads: defaultThreads()
|
|
32985
|
-
})) : await (await import("./rerank-
|
|
33030
|
+
})) : await (await import("./rerank-CQNZF3JI.js")).openReranker(model, directory2);
|
|
32986
33031
|
return {
|
|
32987
33032
|
model: model.id,
|
|
32988
33033
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -33002,17 +33047,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33002
33047
|
};
|
|
33003
33048
|
}, "rerankLane");
|
|
33004
33049
|
|
|
33005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33006
33051
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33007
33052
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33008
33053
|
const directory2 = imageModelsDirectory(env);
|
|
33009
33054
|
if (!isImageModelInstalled(model, directory2))
|
|
33010
33055
|
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 });
|
|
33011
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33056
|
+
const { openPictureEmbedder } = await import("./embedder-U4G74HV3.js");
|
|
33012
33057
|
return openPictureEmbedder(model, directory2);
|
|
33013
33058
|
}, "openPictureEmbedderFor");
|
|
33014
33059
|
|
|
33015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33016
33061
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
33017
33062
|
const metadata = note.frontMatter;
|
|
33018
33063
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -33027,7 +33072,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
33027
33072
|
};
|
|
33028
33073
|
}, "documentSource");
|
|
33029
33074
|
|
|
33030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33031
33076
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33032
33077
|
let root;
|
|
33033
33078
|
try {
|
|
@@ -33054,7 +33099,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33054
33099
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33055
33100
|
}, "titleTiers");
|
|
33056
33101
|
|
|
33057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33058
33103
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33059
33104
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33060
33105
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33270,6 +33315,7 @@ var notesTotal = /* @__PURE__ */ __name(async (store, text2, { exact, scope, sho
|
|
|
33270
33315
|
return totalOf(count4, shown, hasMore, othersComplete);
|
|
33271
33316
|
}, "notesTotal");
|
|
33272
33317
|
var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, tag, filter: expression, folderIds, withInternal, source: given, exact = false, discover = false, timezone, env, command, embedders, pictures: withPictures2 = false, pictureLimit = 5, pictureEmbedder } = {}) => {
|
|
33318
|
+
query = plainQuery(query);
|
|
33273
33319
|
const typed = noteSourceOfQuery(query);
|
|
33274
33320
|
const source = given ?? typed.source;
|
|
33275
33321
|
const rest = typed.source !== void 0 && typed.source === source ? typed.rest : query;
|
|
@@ -33356,9 +33402,11 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
33356
33402
|
const held = ranked.get(ref) ?? { note, at, score: 0, foundBy: [] };
|
|
33357
33403
|
held.foundBy.push(by);
|
|
33358
33404
|
ranked.set(ref, held);
|
|
33405
|
+
const vote = 1 / (RRF_K3 + rank + 1);
|
|
33359
33406
|
if (by === "meaning" && lookup !== void 0 && held.foundBy.includes("words"))
|
|
33360
|
-
|
|
33361
|
-
|
|
33407
|
+
held.score = Math.max(held.score, vote);
|
|
33408
|
+
else
|
|
33409
|
+
held.score += vote;
|
|
33362
33410
|
}), "add");
|
|
33363
33411
|
add(matched.items, "words");
|
|
33364
33412
|
if (meaning !== void 0)
|
|
@@ -33446,12 +33494,14 @@ var notesScopeOf = /* @__PURE__ */ __name((accounts) => {
|
|
|
33446
33494
|
return { folderIds, ...accounts.length > folderIds.length ? { withInternal: true } : {} };
|
|
33447
33495
|
}, "notesScopeOf");
|
|
33448
33496
|
var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accounts: list2, app, ...query }) => {
|
|
33497
|
+
text2 = plainQuery(text2);
|
|
33449
33498
|
const own = app?.command ?? query.command;
|
|
33450
33499
|
const what = `${own === void 0 ? "" : `${own} `}search notes`;
|
|
33451
33500
|
const held = [
|
|
33452
33501
|
{ provider: "notes", account: INTERNAL_NOTES },
|
|
33453
33502
|
...(await store.notes.folders()).map(({ id: id2 }) => ({ provider: "notes", account: id2 })),
|
|
33454
|
-
...(await store.notes.documentsAccounts()).map(({ id: id2 }) => ({ provider: "notes", account: id2 }))
|
|
33503
|
+
...(await store.notes.documentsAccounts()).map(({ id: id2 }) => ({ provider: "notes", account: id2 })),
|
|
33504
|
+
...[await store.notes.addedAccount()].flatMap((added) => added ? [{ provider: "notes", account: added.id }] : [])
|
|
33455
33505
|
];
|
|
33456
33506
|
const named2 = list2 === void 0 ? { accounts: held, skipped: [] } : fitting(entriesOfList(list2, await listContextOf(store, account, app)), ["notes", "documents"], what);
|
|
33457
33507
|
const source = query.source ?? noteSourceOfQuery(text2).source;
|
|
@@ -33471,14 +33521,14 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33471
33521
|
};
|
|
33472
33522
|
}, "searchNotesOf");
|
|
33473
33523
|
|
|
33474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33475
33525
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33476
33526
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33477
33527
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
33478
33528
|
const held = await store.accounts.storedAccounts();
|
|
33479
33529
|
return held.filter((one) => accounts.some(({ provider, account }) => one.provider === provider && one.account === account)).map(({ id: id2 }) => String(id2));
|
|
33480
33530
|
}, "accountIdsOf");
|
|
33481
|
-
var calendarAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.storedAccounts()).filter(({ provider }) =>
|
|
33531
|
+
var calendarAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.storedAccounts()).filter(({ provider }) => holdsKind(provider, "events")).map(({ provider, account }) => ({ provider, account })), "calendarAccounts");
|
|
33482
33532
|
var foundEvent = /* @__PURE__ */ __name((hit, query, foundBy) => ({
|
|
33483
33533
|
ref: hit.ref,
|
|
33484
33534
|
provider: hit.account?.provider ?? null,
|
|
@@ -33508,6 +33558,7 @@ var keyOf4 = /* @__PURE__ */ __name(({ event }) => event.eventSeriesId === null
|
|
|
33508
33558
|
var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, accounts, exact, discover, newest, timezone, signal, candidates, env, command, embedders } = {}) => {
|
|
33509
33559
|
if (!query.trim())
|
|
33510
33560
|
throw new CliError("validation_error", "say what to find in the events");
|
|
33561
|
+
query = plainQuery(query);
|
|
33511
33562
|
const asked = discover && !exact && !newest ? questionLookup(query) : void 0;
|
|
33512
33563
|
const { root, stemmer } = await storeQuery(store, asked ?? query, {
|
|
33513
33564
|
...exact ? { exact: true } : {},
|
|
@@ -33588,8 +33639,14 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33588
33639
|
};
|
|
33589
33640
|
}, "searchEvents");
|
|
33590
33641
|
|
|
33591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
33592
33643
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
33644
|
+
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
33645
|
+
const { reason, span } = error.details ?? {};
|
|
33646
|
+
const why = typeof reason === "string" ? reason : void 0;
|
|
33647
|
+
const token = span && Number.isInteger(span.start) && Number.isInteger(span.end) ? text2.slice(span.start, span.end).trim() : "";
|
|
33648
|
+
return { ...why ? { why } : {}, ...token ? { token } : {} };
|
|
33649
|
+
}, "refusal");
|
|
33593
33650
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
33594
33651
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
33595
33652
|
const { root } = parseLucene(text2, MESSAGE_PARSING);
|
|
@@ -33600,15 +33657,19 @@ var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
|
33600
33657
|
var titleWords = /* @__PURE__ */ __name((text2) => {
|
|
33601
33658
|
const { root } = parseLucene(text2, SEARCH_QUERY);
|
|
33602
33659
|
const clauses = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
33603
|
-
const words3 = clauses.map(({ node, occur }) => occur !== "must_not" && node.kind === "predicate" && node.field === "text" && (node.operator === "term" || node.operator === "phrase") ?
|
|
33660
|
+
const words3 = clauses.map(({ node, occur }) => occur !== "must_not" && node.kind === "predicate" && node.field === "text" && (node.operator === "term" || node.operator === "phrase") ? (
|
|
33661
|
+
// A title holds "invoice", not the question mark of "invoice?".
|
|
33662
|
+
node.value.replace(/\?+$/u, "") || node.value
|
|
33663
|
+
) : (() => {
|
|
33604
33664
|
throw new CliError("validation_error", "deals and leads are found by the words of their title only");
|
|
33605
33665
|
})());
|
|
33606
33666
|
return { words: words3, anyWord: clauses.length > 1 && clauses.every(({ occur }) => occur === "should") };
|
|
33607
33667
|
}, "titleWords");
|
|
33608
|
-
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) =>
|
|
33609
|
-
var searchAll = /* @__PURE__ */ __name(async (store, account,
|
|
33610
|
-
if (!
|
|
33668
|
+
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => holdsKind(provider, "crm")), "crmAccounts");
|
|
33669
|
+
var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
33670
|
+
if (!asked.text.trim())
|
|
33611
33671
|
throw new CliError("validation_error", "say what to find");
|
|
33672
|
+
const request = { ...asked, text: plainQuery(asked.text) };
|
|
33612
33673
|
const offset = request.offset ?? 0;
|
|
33613
33674
|
if (!Number.isInteger(offset) || offset < 0 || offset > MAX_SEARCH_OFFSET)
|
|
33614
33675
|
throw new CliError("validation_error", `offset takes a whole number from 0 to ${MAX_SEARCH_OFFSET}`);
|
|
@@ -33652,7 +33713,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33652
33713
|
if (kind === "messages" && found.coverage)
|
|
33653
33714
|
coverage2 = found.coverage;
|
|
33654
33715
|
hasMore ||= found.hasMore;
|
|
33655
|
-
const read = found.coverage?.accounts ?? given ?? (await store.accounts.accounts()).filter(({ provider }) =>
|
|
33716
|
+
const read = found.coverage?.accounts ?? given ?? (await store.accounts.accounts()).filter(({ provider }) => holdsKind(provider, kind));
|
|
33656
33717
|
for (const one of found.skipped ?? [])
|
|
33657
33718
|
if (!skipped.some(({ source }) => source === one.source))
|
|
33658
33719
|
skipped.push(one);
|
|
@@ -33699,12 +33760,11 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33699
33760
|
const held = fused2.get(hit.locator);
|
|
33700
33761
|
if (held)
|
|
33701
33762
|
held.item.foundBy = ["words", "meaning"];
|
|
33763
|
+
const vote = 1 / (RRF_K3 + rank + 1);
|
|
33702
33764
|
if (held && discovers)
|
|
33703
|
-
|
|
33704
|
-
|
|
33705
|
-
item: held?.item ?? itemOf3(hit, ["meaning"]),
|
|
33706
|
-
score: (held?.score ?? 0) + 1 / (RRF_K3 + rank + 1)
|
|
33707
|
-
});
|
|
33765
|
+
held.score = Math.max(held.score, vote);
|
|
33766
|
+
else
|
|
33767
|
+
fused2.set(hit.locator, { item: held?.item ?? itemOf3(hit, ["meaning"]), score: (held?.score ?? 0) + vote });
|
|
33708
33768
|
});
|
|
33709
33769
|
return [...fused2.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
33710
33770
|
}, "messagesOf");
|
|
@@ -33746,7 +33806,8 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33746
33806
|
const read = chosen?.map(({ account: account2 }) => account2) ?? [
|
|
33747
33807
|
INTERNAL_NOTES,
|
|
33748
33808
|
...(await store.notes.folders()).map(({ id: id2 }) => id2),
|
|
33749
|
-
...(await store.notes.documentsAccounts()).map(({ id: id2 }) => id2)
|
|
33809
|
+
...(await store.notes.documentsAccounts()).map(({ id: id2 }) => id2),
|
|
33810
|
+
...[await store.notes.addedAccount()].flatMap((added) => added ? [added.id] : [])
|
|
33750
33811
|
];
|
|
33751
33812
|
accounts.push(...read.map((account2) => ({ resource, provider: "notes", account: account2 })));
|
|
33752
33813
|
} else if (resource === "events") {
|
|
@@ -33790,6 +33851,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33790
33851
|
const found = await store.deals.find({
|
|
33791
33852
|
words: words3,
|
|
33792
33853
|
anyWord: anyWord || discover,
|
|
33854
|
+
...request.crmKinds === void 0 ? {} : { kinds: request.crmKinds },
|
|
33793
33855
|
limit: Math.min(window3 + 1, 500),
|
|
33794
33856
|
...chosen === void 0 ? {} : { accounts: chosen }
|
|
33795
33857
|
});
|
|
@@ -33813,7 +33875,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33813
33875
|
} catch (error) {
|
|
33814
33876
|
if (!skippable(error))
|
|
33815
33877
|
throw error;
|
|
33816
|
-
skipped.push({ resource, code: error.code, reason: error.message });
|
|
33878
|
+
skipped.push({ resource, code: error.code, reason: error.message, ...refusal(error, request.text) });
|
|
33817
33879
|
}
|
|
33818
33880
|
}
|
|
33819
33881
|
} finally {
|
|
@@ -33822,7 +33884,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33822
33884
|
const ordered = oneList(lists, cosines);
|
|
33823
33885
|
const more = hasMore || ordered.length > window3;
|
|
33824
33886
|
return {
|
|
33825
|
-
query:
|
|
33887
|
+
query: asked.text,
|
|
33826
33888
|
items: ordered.slice(offset, window3),
|
|
33827
33889
|
hasMore: more,
|
|
33828
33890
|
...more && window3 <= MAX_SEARCH_OFFSET ? { nextOffset: window3 } : {},
|
|
@@ -33849,7 +33911,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
33849
33911
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
33850
33912
|
}, "oneList");
|
|
33851
33913
|
|
|
33852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33853
33915
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
33854
33916
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
33855
33917
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34074,7 +34136,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34074
34136
|
const entries = entriesOfList(source, await listContextOf(store, account, messenger.app));
|
|
34075
34137
|
const { skipped } = fitting(entries, only, "search all", (kind) => `--only leaves ${kind} out`);
|
|
34076
34138
|
const named2 = /* @__PURE__ */ __name((resource) => [
|
|
34077
|
-
...new Map(entries.flatMap(({ accounts }) => accounts).filter((
|
|
34139
|
+
...new Map(entries.flatMap(({ accounts }) => accounts).filter((one) => listedHolds(one, resource)).map(({ provider, account: account2 }) => [`${provider}\0${account2}`, { provider, account: account2 }])).values()
|
|
34078
34140
|
], "named");
|
|
34079
34141
|
const meetings = await holdingMeetings(store, named2("meetings"));
|
|
34080
34142
|
const empty2 = named2("meetings").filter((one) => !meetings.some(({ provider, account: account2 }) => provider === one.provider && account2 === one.account)).map(({ provider, account: account2 }) => ({
|
|
@@ -34103,7 +34165,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34103
34165
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34104
34166
|
}, "searchAllOfSource");
|
|
34105
34167
|
|
|
34106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34107
34169
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34108
34170
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34109
34171
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34156,7 +34218,7 @@ var asQuery = /* @__PURE__ */ __name(({ words: words3, from, ...rest }) => ({
|
|
|
34156
34218
|
...rest,
|
|
34157
34219
|
...from !== void 0 && rest.chat !== void 0 ? { from } : {}
|
|
34158
34220
|
}), "asQuery");
|
|
34159
|
-
var
|
|
34221
|
+
var refusal2 = {
|
|
34160
34222
|
unsupported: "this messenger's server cannot search messages \u2014 use --backend archive",
|
|
34161
34223
|
pushed_history: "this messenger's server cannot search messages \u2014 use --backend archive",
|
|
34162
34224
|
offline: "--backend server needs the network \u2014 not with --offline",
|
|
@@ -34180,7 +34242,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34180
34242
|
if (quiet2)
|
|
34181
34243
|
return void 0;
|
|
34182
34244
|
if (backend === "server")
|
|
34183
|
-
throw new CliError(reason === "not_allowed" ? "permission_error" : "validation_error",
|
|
34245
|
+
throw new CliError(reason === "not_allowed" ? "permission_error" : "validation_error", refusal2[reason], {
|
|
34184
34246
|
reason
|
|
34185
34247
|
});
|
|
34186
34248
|
return { report: { ...report, skipped: reason, complete: false }, sources };
|
|
@@ -34292,7 +34354,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34292
34354
|
return { report, sources };
|
|
34293
34355
|
}, "searchServer");
|
|
34294
34356
|
|
|
34295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34296
34358
|
var DELETE_AT_ONCE = 10;
|
|
34297
34359
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34298
34360
|
const files = fileLinks(attachments);
|
|
@@ -34733,7 +34795,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
34733
34795
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
34734
34796
|
}, "checkMediaOptions");
|
|
34735
34797
|
|
|
34736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
34737
34799
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
34738
34800
|
var RULES = {
|
|
34739
34801
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -34748,7 +34810,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
34748
34810
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
34749
34811
|
}), "classifyChannel");
|
|
34750
34812
|
|
|
34751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
34752
34814
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
34753
34815
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
34754
34816
|
const store = await deps.store();
|
|
@@ -34834,7 +34896,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
34834
34896
|
};
|
|
34835
34897
|
}, "metadataService");
|
|
34836
34898
|
|
|
34837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
34838
34900
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
34839
34901
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
34840
34902
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -34871,7 +34933,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
34871
34933
|
return { chatId, rows, notes };
|
|
34872
34934
|
}, "moderateWith");
|
|
34873
34935
|
|
|
34874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
34875
34937
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
34876
34938
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
34877
34939
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -34949,7 +35011,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
34949
35011
|
}, "removePerson")
|
|
34950
35012
|
}), "moderatorOf");
|
|
34951
35013
|
|
|
34952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
34953
35015
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
34954
35016
|
id: note.id,
|
|
34955
35017
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -34993,7 +35055,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
34993
35055
|
};
|
|
34994
35056
|
}, "privatePeopleService");
|
|
34995
35057
|
|
|
34996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
34997
35059
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
34998
35060
|
total: 0,
|
|
34999
35061
|
population: 0,
|
|
@@ -35249,7 +35311,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35249
35311
|
}, "evidence")
|
|
35250
35312
|
}), "rankingsService");
|
|
35251
35313
|
|
|
35252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
35253
35315
|
var FIELDS = ["date", "chat", "kind"];
|
|
35254
35316
|
var WAITING_TAIL = 100;
|
|
35255
35317
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35376,7 +35438,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35376
35438
|
};
|
|
35377
35439
|
}, "replyStatsService");
|
|
35378
35440
|
|
|
35379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
35380
35442
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35381
35443
|
id: one.id,
|
|
35382
35444
|
name: one.name,
|
|
@@ -35397,7 +35459,7 @@ var MESSAGE_SEARCH_COMMANDS = [
|
|
|
35397
35459
|
"admin-statistics"
|
|
35398
35460
|
];
|
|
35399
35461
|
var NAME = /^[a-z0-9][a-z0-9-]{0,63}$/;
|
|
35400
|
-
var
|
|
35462
|
+
var nameOf2 = /* @__PURE__ */ __name((value) => {
|
|
35401
35463
|
const name = value.trim().toLowerCase();
|
|
35402
35464
|
if (!NAME.test(name) || /^\d+$/.test(name))
|
|
35403
35465
|
throw new CliError("validation_error", `"${singleLine(value)}" cannot name a saved search \u2014 use up to 64 letters a\u2013z, digits and hyphens, not only digits`, { reason: "name.invalid" });
|
|
@@ -35452,13 +35514,13 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35452
35514
|
if (isAdminSelection(params.selection)) {
|
|
35453
35515
|
const selected = await readAdminSelection(store, params.selection);
|
|
35454
35516
|
const normalized2 = typeof params.selection === "string" ? JSON.parse(params.selection) : params.selection;
|
|
35455
|
-
return store.searches.saveSearch(
|
|
35517
|
+
return store.searches.saveSearch(nameOf2(name), searchRecordOf("admin-statistics", {
|
|
35456
35518
|
adminReport: selected.options.report,
|
|
35457
35519
|
selection: normalized2,
|
|
35458
35520
|
timezone: selected.base.timezone
|
|
35459
35521
|
}), { replace });
|
|
35460
35522
|
}
|
|
35461
|
-
return store.searches.saveSearch(
|
|
35523
|
+
return store.searches.saveSearch(nameOf2(name), searchRecordOf(params.target ? params.target === "messages" ? "message-top" : "author-top" : params.by === void 0 ? "search" : "stats", checked(params)), {
|
|
35462
35524
|
replace
|
|
35463
35525
|
});
|
|
35464
35526
|
}), "create"),
|
|
@@ -35505,7 +35567,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35505
35567
|
};
|
|
35506
35568
|
}, "searchesService");
|
|
35507
35569
|
|
|
35508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
35509
35571
|
var TAGGING_QUERY = {
|
|
35510
35572
|
entity: "tagging",
|
|
35511
35573
|
backend: "sql",
|
|
@@ -35589,7 +35651,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35589
35651
|
};
|
|
35590
35652
|
}, "tagsService");
|
|
35591
35653
|
|
|
35592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
35593
35655
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
35594
35656
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
35595
35657
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -35788,7 +35850,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35788
35850
|
};
|
|
35789
35851
|
}, "topicsService");
|
|
35790
35852
|
|
|
35791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
35792
35854
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
35793
35855
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
35794
35856
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -35862,7 +35924,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
35862
35924
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
35863
35925
|
}, "prepareEvidencePacket");
|
|
35864
35926
|
|
|
35865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
35866
35928
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
35867
35929
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
35868
35930
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -35882,7 +35944,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
35882
35944
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
35883
35945
|
}, "readEvidencePacket");
|
|
35884
35946
|
|
|
35885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
35886
35948
|
var scopeKeys = [
|
|
35887
35949
|
"accountId",
|
|
35888
35950
|
"meetingId",
|
|
@@ -35904,7 +35966,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
35904
35966
|
"maxVocabularyReadBytes"
|
|
35905
35967
|
]);
|
|
35906
35968
|
|
|
35907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
35908
35970
|
var communicationFields = {
|
|
35909
35971
|
sources: pipe(array(strictObject({
|
|
35910
35972
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -35936,7 +35998,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
35936
35998
|
return { ...input, after, before: before2 };
|
|
35937
35999
|
}, "communicationRequest");
|
|
35938
36000
|
|
|
35939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
35940
36002
|
var MEETING_PREPARATION_LIMITS = {
|
|
35941
36003
|
meetings: { min: 1, max: 20, default: 5 },
|
|
35942
36004
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -36009,7 +36071,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
36009
36071
|
};
|
|
36010
36072
|
}, "validateMeetingPreparationRequest");
|
|
36011
36073
|
|
|
36012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
36013
36075
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
36014
36076
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
36015
36077
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -36057,7 +36119,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
36057
36119
|
}
|
|
36058
36120
|
}, "validatePreparationCommunications");
|
|
36059
36121
|
|
|
36060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
36061
36123
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
36062
36124
|
const installer = ports.installer();
|
|
36063
36125
|
const argv = updateCommand(installer, packageName);
|
|
@@ -36122,7 +36184,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
36122
36184
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
36123
36185
|
}, "dayAfter");
|
|
36124
36186
|
|
|
36125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
36126
36188
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
36127
36189
|
const pictures = picturesService(deps);
|
|
36128
36190
|
const base = {
|
|
@@ -36159,7 +36221,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
36159
36221
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
36160
36222
|
}, "servicesFor");
|
|
36161
36223
|
|
|
36162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
36163
36225
|
import { createHash as createHash12 } from "node:crypto";
|
|
36164
36226
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
36165
36227
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36380,7 +36442,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
36380
36442
|
}, () => finish({ error: stopped() }));
|
|
36381
36443
|
}), "relayCommand");
|
|
36382
36444
|
|
|
36383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
36384
36446
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36385
36447
|
close: /* @__PURE__ */ __name(async () => {
|
|
36386
36448
|
}, "close"),
|