@wirecat/mail-cli 0.17.0 → 0.18.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 +14 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-55AU2Q2N.js → all-profiles-4CVOXA5Y.js} +10 -10
- package/dist/bundle/{anthropic-I7RI7YPK.js → anthropic-5VIKYINO.js} +6 -6
- package/dist/bundle/{app-server-NY72GTQA.js → app-server-LTSQBDPF.js} +53 -50
- package/dist/bundle/{bun-C2R7UPM2.js → bun-C7DBRUW2.js} +2 -2
- package/dist/bundle/{bun-sqlite-RNPHH3KC.js → bun-sqlite-Y5JKT62B.js} +5 -5
- package/dist/bundle/{chunk-YO7BLBVE.js → chunk-23HWKHPZ.js} +301 -259
- package/dist/bundle/{chunk-OHS5CYZI.js → chunk-2NWOYXPJ.js} +56 -56
- package/dist/bundle/{chunk-JSB6BTPT.js → chunk-3DQYO7FB.js} +1 -1
- package/dist/bundle/{chunk-B73I6KLW.js → chunk-3W5H4TM7.js} +184 -16
- package/dist/bundle/{chunk-2EVM7GV5.js → chunk-3YRE6DNM.js} +8 -8
- package/dist/bundle/{chunk-YIJRPPF5.js → chunk-43I5XD7S.js} +1 -1
- package/dist/bundle/{chunk-HZL42476.js → chunk-5S6Q3SWU.js} +4 -2
- package/dist/bundle/{chunk-DG43I7MC.js → chunk-6RO5RDNR.js} +27 -9
- package/dist/bundle/{chunk-J7XH6CJC.js → chunk-7P4ICYJT.js} +1 -1
- package/dist/bundle/{chunk-BWCYUXF7.js → chunk-7SWWVDEZ.js} +4 -4
- package/dist/bundle/{chunk-24H2KUGW.js → chunk-A5OMARL4.js} +28 -28
- package/dist/bundle/{chunk-QDX2O5BN.js → chunk-ACLILULA.js} +3 -3
- package/dist/bundle/{chunk-QRNL5DIS.js → chunk-AOMSP4EI.js} +6 -6
- package/dist/bundle/{chunk-XJQJ3ZIY.js → chunk-BHNBWFT5.js} +8 -8
- package/dist/bundle/{chunk-LNC7XMEQ.js → chunk-BMFPCW6Q.js} +4 -4
- package/dist/bundle/{chunk-MG4NWXWI.js → chunk-BMGVKULS.js} +4 -4
- package/dist/bundle/{chunk-4HTTN4NO.js → chunk-BMV56JCL.js} +19 -19
- package/dist/bundle/{chunk-22WVQJW3.js → chunk-C4RUKMDT.js} +16 -10
- package/dist/bundle/{chunk-QU5TWVG5.js → chunk-C5T5K7HW.js} +127 -27
- package/dist/bundle/{chunk-KJKRLI2S.js → chunk-CPEN6BZZ.js} +2 -2
- package/dist/bundle/{chunk-YHUCNI2W.js → chunk-DALBYUPC.js} +2 -2
- package/dist/bundle/{chunk-6NN5ZX5T.js → chunk-DPSH46NO.js} +5 -5
- package/dist/bundle/{chunk-CHVHIDNK.js → chunk-EFP5NN7I.js} +3 -3
- package/dist/bundle/{chunk-22IKW3TY.js → chunk-ERBEBORA.js} +14 -14
- package/dist/bundle/{chunk-YCOBSDZY.js → chunk-FLOOPXOT.js} +12 -12
- package/dist/bundle/{chunk-F4P3VDJZ.js → chunk-GLLLYACZ.js} +6 -6
- package/dist/bundle/{chunk-S4NIDBLI.js → chunk-GRP67IQ4.js} +56 -47
- package/dist/bundle/{chunk-T4RRZILQ.js → chunk-HFUS33UT.js} +2 -2
- package/dist/bundle/{chunk-RFFE5ACS.js → chunk-HTFBXGJF.js} +2 -2
- package/dist/bundle/{chunk-MTFTMPB6.js → chunk-IANOK5SE.js} +2 -2
- package/dist/bundle/{chunk-WHI3LTAW.js → chunk-ITUC5WAV.js} +1 -1
- package/dist/bundle/{chunk-VMXMHC6E.js → chunk-JO3BIMYK.js} +3 -3
- package/dist/bundle/{chunk-45JQ72CH.js → chunk-KVSC657S.js} +19 -12
- package/dist/bundle/{chunk-OFZDCUUJ.js → chunk-L3YX7A5M.js} +7 -7
- package/dist/bundle/{chunk-2CY44MKY.js → chunk-M7C4IGJ6.js} +8 -8
- package/dist/bundle/{chunk-GBM7FFFI.js → chunk-MCR43SWG.js} +4 -4
- package/dist/bundle/{chunk-YB47AQWE.js → chunk-N5VEJ3E7.js} +10 -10
- package/dist/bundle/{chunk-IPFFPD3M.js → chunk-NDJZQCF3.js} +297 -174
- package/dist/bundle/{chunk-R3G33QIV.js → chunk-OLJDZTHB.js} +13 -13
- package/dist/bundle/{chunk-CHC2LWKY.js → chunk-OMKPALMX.js} +2 -2
- package/dist/bundle/{chunk-MRTSDBTN.js → chunk-OUGGAAXI.js} +1508 -559
- package/dist/bundle/{chunk-SHEVFBZT.js → chunk-P6WCG6X2.js} +36 -30
- package/dist/bundle/{chunk-GYCJQGFO.js → chunk-QPF4LTK5.js} +6 -6
- package/dist/bundle/{chunk-WOFGEJ6W.js → chunk-RIO3TD3I.js} +1 -1
- package/dist/bundle/{chunk-RIAHISWA.js → chunk-RQSF7X22.js} +1 -1
- package/dist/bundle/{chunk-2ON2PDHC.js → chunk-SIYT2BBI.js} +10 -10
- package/dist/bundle/{chunk-M6GLFDWV.js → chunk-SMS5YNPB.js} +3 -3
- package/dist/bundle/{chunk-H32SKDF2.js → chunk-SW2KERUB.js} +640 -123
- package/dist/bundle/{chunk-BPDUVWL2.js → chunk-TVZ77ZOV.js} +2 -2
- package/dist/bundle/{chunk-SQAAOEGI.js → chunk-U43HUE35.js} +9 -9
- package/dist/bundle/{chunk-RQGTRB73.js → chunk-UEGABYXI.js} +3 -3
- package/dist/bundle/{chunk-TCYLDGRA.js → chunk-UHC5I3JV.js} +1 -1
- package/dist/bundle/{chunk-XOJ5E777.js → chunk-UWL2IOII.js} +4 -4
- package/dist/bundle/{chunk-ITMGJX7I.js → chunk-UXD5JMS5.js} +1 -1
- package/dist/bundle/{chunk-JI225TBX.js → chunk-WA3DQSAZ.js} +2 -2
- package/dist/bundle/{chunk-VXBUDZV3.js → chunk-XGTW3GRX.js} +2 -2
- package/dist/bundle/{chunk-QEO7MI3E.js → chunk-YA2JPMYX.js} +2 -2
- package/dist/bundle/{chunk-A3PKKY24.js → chunk-ZLH465EU.js} +1 -1
- package/dist/bundle/{chunk-BD7OK4P5.js → chunk-ZT2Y267T.js} +3 -3
- package/dist/bundle/command-contract-Y3GIKCPB.js +34 -0
- package/dist/bundle/{decode-5AYG6LLW.js → decode-WVIDLK4E.js} +5 -5
- package/dist/bundle/{dispatch-EVLWT6N3.js → dispatch-R5OF2FVZ.js} +8 -8
- package/dist/bundle/{dist-JRTLLLLG.js → dist-KGQWS3XL.js} +24 -14
- package/dist/bundle/{echarts-EFAEE4D2.js → echarts-VMKACZBF.js} +2 -2
- package/dist/bundle/{embed-6SSOYGZQ.js → embed-EQINOOST.js} +6 -6
- package/dist/bundle/{embedder-VFSLGHBO.js → embedder-LM52TDRN.js} +9 -9
- package/dist/bundle/{failure-RBBZ7F3L.js → failure-WYKVF6RH.js} +2 -2
- package/dist/bundle/{first-run-PVEHOQOD.js → first-run-H4VXZAAF.js} +11 -11
- package/dist/bundle/first-screen-ZP74TJLK.js +32 -0
- package/dist/bundle/{instructions-EOLC3GYB.js → instructions-NLSME663.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-JYLZR5LQ.js → mcp-CFVG2OUS.js} +2 -2
- package/dist/bundle/{node-2ZRMQAYF.js → node-FGMSXLTA.js} +2 -2
- package/dist/bundle/{node-sqlite-UKWOBONA.js → node-sqlite-K3T3ZRBY.js} +6 -6
- package/dist/bundle/{oauth-HFD46WAY.js → oauth-OJKJ6JLH.js} +7 -7
- package/dist/bundle/{open-2DLCQUC4.js → open-DCYIXHXS.js} +5 -5
- package/dist/bundle/{openai-A7YLLQEE.js → openai-C4H4W57J.js} +14 -14
- package/dist/bundle/{process-I3INVLFQ.js → process-MN4NSYGA.js} +1 -1
- package/dist/bundle/{program-4ZCATQND.js → program-ZZZOKWCX.js} +1028 -642
- package/dist/bundle/{prompt-R636OFYK.js → prompt-ELEJUDAU.js} +5 -5
- package/dist/bundle/{recognize-G4WUSU5I.js → recognize-G2FVMI5M.js} +4 -4
- package/dist/bundle/{remote-BMXVVYTN.js → remote-F4YVSEYM.js} +7 -7
- package/dist/bundle/{rerank-7W3QEZ3Q.js → rerank-7VM5R5N6.js} +7 -7
- package/dist/bundle/{serve-JQCPQYOJ.js → serve-A7NRFPRN.js} +9 -9
- package/dist/bundle/{server-IMOCOYXH.js → server-7R2BEIRY.js} +39 -39
- package/dist/bundle/server-DFJA2HBO.js +64 -0
- package/dist/bundle/{sqlite-runtime-H2IEHDRZ.js → sqlite-runtime-4SKUB4EN.js} +6 -6
- package/dist/bundle/{state-J5N3Y4LX.js → state-S2FKK2XB.js} +6 -6
- package/dist/bundle/{store-C4TIYTGI.js → store-4HAARQVR.js} +26 -18
- package/dist/bundle/{store-U5WIT3P4.js → store-FLHO3UMA.js} +17 -15
- package/dist/bundle/store-maintenance-command-BINJIQ6F.js +54 -0
- package/dist/commands/restore.js +1 -1
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +2 -8
- package/dist/commands/status.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-AUPKK5Y4.js +0 -34
- package/dist/bundle/first-screen-7ONKJ7QW.js +0 -32
- package/dist/bundle/server-GYVOIGF5.js +0 -64
- package/dist/bundle/store-maintenance-command-WRRZ7Q7B.js +0 -54
- /package/dist/bundle/{chunk-CNMSF5QU.js → chunk-QZLK2ISN.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OLJDZTHB.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-SIYT2BBI.js";
|
|
30
30
|
import {
|
|
31
31
|
MAX_MODEL_IMAGE_BYTES
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OMKPALMX.js";
|
|
33
33
|
import {
|
|
34
34
|
Command,
|
|
35
35
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -69,17 +69,17 @@ import {
|
|
|
69
69
|
typedCommand,
|
|
70
70
|
vectorModelKey,
|
|
71
71
|
withAttempt
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-NDJZQCF3.js";
|
|
73
73
|
import {
|
|
74
74
|
isCliFailure
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-U43HUE35.js";
|
|
76
76
|
import {
|
|
77
77
|
isNewer,
|
|
78
78
|
updateCommand
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-UWL2IOII.js";
|
|
80
80
|
import {
|
|
81
81
|
remoteKey
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-ZT2Y267T.js";
|
|
83
83
|
import {
|
|
84
84
|
Unzip,
|
|
85
85
|
UnzipInflate,
|
|
@@ -90,11 +90,11 @@ import {
|
|
|
90
90
|
placedText,
|
|
91
91
|
runEmbedders,
|
|
92
92
|
textModelsDirectory
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-GLLLYACZ.js";
|
|
94
94
|
import {
|
|
95
95
|
installFiles,
|
|
96
96
|
megabytes
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-MCR43SWG.js";
|
|
98
98
|
import {
|
|
99
99
|
AGENDA_COLUMNS,
|
|
100
100
|
CHAT_COLUMNS,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
validateAst,
|
|
158
158
|
validateFields,
|
|
159
159
|
withoutField
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-OUGGAAXI.js";
|
|
161
161
|
import {
|
|
162
162
|
COUNTER_FIELDS,
|
|
163
163
|
INTERNAL_NOTES,
|
|
@@ -177,13 +177,13 @@ import {
|
|
|
177
177
|
providerNamed,
|
|
178
178
|
rankingOptions,
|
|
179
179
|
rankingQuestion
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-KVSC657S.js";
|
|
181
181
|
import {
|
|
182
182
|
TASK_KINDS,
|
|
183
183
|
TASK_STATES,
|
|
184
184
|
createTaskService,
|
|
185
185
|
isClosedState
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-N5VEJ3E7.js";
|
|
187
187
|
import {
|
|
188
188
|
EVENT_QUERY,
|
|
189
189
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -224,24 +224,24 @@ import {
|
|
|
224
224
|
validateQuery,
|
|
225
225
|
walkQuery,
|
|
226
226
|
zonedMoment
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-2NWOYXPJ.js";
|
|
228
228
|
import {
|
|
229
229
|
DEFAULT_STEMMERS,
|
|
230
230
|
createStemmer,
|
|
231
231
|
fold,
|
|
232
232
|
normalize
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-3YRE6DNM.js";
|
|
234
234
|
import {
|
|
235
235
|
DEFAULT_TASK_CATEGORIES,
|
|
236
236
|
FALLBACK_CATEGORY
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-QPF4LTK5.js";
|
|
238
238
|
import {
|
|
239
239
|
storePath,
|
|
240
240
|
wirecatDirectory
|
|
241
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-HTFBXGJF.js";
|
|
242
242
|
import {
|
|
243
243
|
resolvePaths
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-BMV56JCL.js";
|
|
245
245
|
import {
|
|
246
246
|
array,
|
|
247
247
|
boolean,
|
|
@@ -258,7 +258,7 @@ import {
|
|
|
258
258
|
safeParse,
|
|
259
259
|
strictObject,
|
|
260
260
|
string
|
|
261
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-BHNBWFT5.js";
|
|
262
262
|
import {
|
|
263
263
|
importFrom,
|
|
264
264
|
resolveFrom
|
|
@@ -267,7 +267,7 @@ import {
|
|
|
267
267
|
CliError,
|
|
268
268
|
isCliError,
|
|
269
269
|
singleLine
|
|
270
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-DALBYUPC.js";
|
|
271
271
|
import {
|
|
272
272
|
__commonJS,
|
|
273
273
|
__name,
|
|
@@ -16883,10 +16883,10 @@ var require_lib3 = __commonJS({
|
|
|
16883
16883
|
}
|
|
16884
16884
|
});
|
|
16885
16885
|
|
|
16886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16887
16887
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16888
16888
|
|
|
16889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16890
16890
|
var RULES_VERSION = 5;
|
|
16891
16891
|
var LOOK_BACK = 50;
|
|
16892
16892
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16976,7 +16976,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16976
16976
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16977
16977
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16978
16978
|
|
|
16979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
16980
16980
|
var COMMAND_NEEDS = {
|
|
16981
16981
|
"account update": ["updateProfile", "change the profile"],
|
|
16982
16982
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17026,7 +17026,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17026
17026
|
return group;
|
|
17027
17027
|
}, "hideNever");
|
|
17028
17028
|
|
|
17029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17030
17030
|
var AUDIT_PAGE = 200;
|
|
17031
17031
|
var AUDIT_BUDGET = 10;
|
|
17032
17032
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17106,7 +17106,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17106
17106
|
return found;
|
|
17107
17107
|
}, "burstJoins");
|
|
17108
17108
|
|
|
17109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17110
17110
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17111
17111
|
command.allowUnknownOption();
|
|
17112
17112
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17126,7 +17126,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17126
17126
|
return command;
|
|
17127
17127
|
}, "queryWordsAfterOptions");
|
|
17128
17128
|
|
|
17129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17130
17130
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17131
17131
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17132
17132
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17168,7 +17168,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17168
17168
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17169
17169
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17170
17170
|
|
|
17171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17172
17172
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
17173
17173
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17174
17174
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17191,7 +17191,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17191
17191
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17192
17192
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17193
17193
|
|
|
17194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17195
17195
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17196
17196
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17197
17197
|
const zone = timezoneOf();
|
|
@@ -17277,7 +17277,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17277
17277
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17278
17278
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17279
17279
|
|
|
17280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17281
17281
|
var integer3 = /* @__PURE__ */ __name((text2) => {
|
|
17282
17282
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17283
17283
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17356,14 +17356,15 @@ ${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17356
17356
|
offline: false,
|
|
17357
17357
|
output: { entity: "meeting_ingestion" }
|
|
17358
17358
|
}).description("bring the stored meetings up to date from the connected account")).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, 0).action(async (opts, command) => {
|
|
17359
|
-
|
|
17359
|
+
const source = deps.source;
|
|
17360
|
+
if (!source)
|
|
17360
17361
|
throw new MeetingError("configuration_error", "meeting source is unavailable");
|
|
17361
|
-
print(await pull(
|
|
17362
|
+
await deps.inRun(command, async () => print(await pull(source, deps.store, {
|
|
17362
17363
|
accountId: deps.accountId,
|
|
17363
17364
|
since: opts.sinceTime === void 0 ? void 0 : new Date(opts.sinceTime).toISOString(),
|
|
17364
17365
|
now: deps.now?.(),
|
|
17365
17366
|
lookbackMs: opts.lookbackDays * 864e5
|
|
17366
|
-
}), command);
|
|
17367
|
+
}), command));
|
|
17367
17368
|
});
|
|
17368
17369
|
const importCommand = annotate(group.command("import"), {
|
|
17369
17370
|
effects: LOCAL_WRITE,
|
|
@@ -17409,7 +17410,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17409
17410
|
}, "addMeetingCommandsDefinition");
|
|
17410
17411
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17411
17412
|
|
|
17412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17413
17414
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17414
17415
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17415
17416
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17542,7 +17543,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17542
17543
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17543
17544
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17544
17545
|
|
|
17545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17546
17547
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17547
17548
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17548
17549
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17551,7 +17552,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17551
17552
|
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");
|
|
17552
17553
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17553
17554
|
|
|
17554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17555
17556
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17556
17557
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17557
17558
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17813,7 +17814,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17813
17814
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17814
17815
|
}), "sessionAnswer");
|
|
17815
17816
|
|
|
17816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17817
17818
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17818
17819
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17819
17820
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17877,7 +17878,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17877
17878
|
}), "storedDeps");
|
|
17878
17879
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17879
17880
|
|
|
17880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17881
17882
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17882
17883
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17883
17884
|
if (key in own)
|
|
@@ -17894,12 +17895,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17894
17895
|
return found.bind(adapter);
|
|
17895
17896
|
}, "capability");
|
|
17896
17897
|
|
|
17897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17898
17899
|
import { randomBytes } from "node:crypto";
|
|
17899
17900
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17900
17901
|
var newOperationId = newSendId;
|
|
17901
17902
|
|
|
17902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17903
17904
|
var LINKS = /https?:\/\/\S+/g;
|
|
17904
17905
|
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");
|
|
17905
17906
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17929,7 +17930,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17929
17930
|
});
|
|
17930
17931
|
}, "questions");
|
|
17931
17932
|
|
|
17932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17933
17934
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17934
17935
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17935
17936
|
const name = typed.trim().toLowerCase();
|
|
@@ -17963,7 +17964,7 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
17963
17964
|
const stem = stemmersOf();
|
|
17964
17965
|
const english = stem.english.stemTokens(text2);
|
|
17965
17966
|
const spanish = readsSpanish(text2) ? stem.spanish.stemTokens(text2) : [];
|
|
17966
|
-
const
|
|
17967
|
+
const counted2 = [];
|
|
17967
17968
|
for (const triggers of triggerStems(categories)) {
|
|
17968
17969
|
const hit = /* @__PURE__ */ new Set();
|
|
17969
17970
|
english.forEach((word, at) => {
|
|
@@ -17973,20 +17974,20 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
17973
17974
|
else if (other !== void 0 && triggers.spanish.has(other))
|
|
17974
17975
|
hit.add(other);
|
|
17975
17976
|
});
|
|
17976
|
-
|
|
17977
|
+
counted2.push({ name: triggers.name, hits: hit.size });
|
|
17977
17978
|
}
|
|
17978
|
-
return
|
|
17979
|
+
return counted2;
|
|
17979
17980
|
}, "hitsByList");
|
|
17980
17981
|
var listsHit = /* @__PURE__ */ __name((text2, categories) => hitsByList(text2, categories).filter(({ hits }) => hits > 0).map(({ name }) => name), "listsHit");
|
|
17981
17982
|
var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGORIES) => {
|
|
17982
17983
|
let best = { name: FALLBACK_CATEGORY, hits: 0 };
|
|
17983
|
-
for (const
|
|
17984
|
-
if (
|
|
17985
|
-
best =
|
|
17984
|
+
for (const counted2 of hitsByList(text2, categories))
|
|
17985
|
+
if (counted2.hits > best.hits)
|
|
17986
|
+
best = counted2;
|
|
17986
17987
|
return best.name;
|
|
17987
17988
|
}, "categorize");
|
|
17988
17989
|
|
|
17989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
17990
17991
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17991
17992
|
var RULES_IN = {
|
|
17992
17993
|
dialog: "all",
|
|
@@ -18192,7 +18193,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18192
18193
|
return passes;
|
|
18193
18194
|
}, "applyTaskRulesToChats");
|
|
18194
18195
|
|
|
18195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18196
18197
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18197
18198
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18198
18199
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18232,7 +18233,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18232
18233
|
};
|
|
18233
18234
|
}, "dateWindow");
|
|
18234
18235
|
|
|
18235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18236
18237
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18237
18238
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18238
18239
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18255,10 +18256,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18255
18256
|
}
|
|
18256
18257
|
}, "patiently");
|
|
18257
18258
|
|
|
18258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18259
18260
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18260
18261
|
|
|
18261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18262
18263
|
var REQUEST_MS = 400;
|
|
18263
18264
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18264
18265
|
const lowest = ranges[0];
|
|
@@ -18281,13 +18282,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18281
18282
|
};
|
|
18282
18283
|
}, "estimateBackfill");
|
|
18283
18284
|
|
|
18284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18285
18286
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18286
18287
|
...error,
|
|
18287
18288
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18288
18289
|
}), "withRecovery");
|
|
18289
18290
|
|
|
18290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18291
18292
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18292
18293
|
if (isCliFailure(error))
|
|
18293
18294
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18370,7 +18371,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18370
18371
|
};
|
|
18371
18372
|
}, "mergeBatches");
|
|
18372
18373
|
|
|
18373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18374
18375
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18375
18376
|
if (deps.reads !== "store")
|
|
18376
18377
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18529,7 +18530,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18529
18530
|
}
|
|
18530
18531
|
}, "senderAmong");
|
|
18531
18532
|
|
|
18532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18533
18534
|
var CONTEXT_MESSAGES = 3;
|
|
18534
18535
|
var CONTEXT_MINUTES = 10;
|
|
18535
18536
|
var MAX_CHARS = 1200;
|
|
@@ -18553,12 +18554,12 @@ var context = {
|
|
|
18553
18554
|
}, "describe")
|
|
18554
18555
|
};
|
|
18555
18556
|
|
|
18556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18557
18558
|
var BUILT_INS = [context];
|
|
18558
18559
|
var providers = [...BUILT_INS];
|
|
18559
18560
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18560
18561
|
|
|
18561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18562
18563
|
var READ_PAGE = 5e3;
|
|
18563
18564
|
var CHAIN = 50;
|
|
18564
18565
|
var CONVERSATION_QUERY = {
|
|
@@ -18710,7 +18711,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18710
18711
|
return size2;
|
|
18711
18712
|
}, "sized");
|
|
18712
18713
|
|
|
18713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18714
18715
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18715
18716
|
var MESSAGE_PAGE = 5e3;
|
|
18716
18717
|
var PER_SESSION = 8;
|
|
@@ -18729,7 +18730,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18729
18730
|
price: remote.price,
|
|
18730
18731
|
installed: true,
|
|
18731
18732
|
perBatch: PER_REQUEST * concurrency,
|
|
18732
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18733
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-F4YVSEYM.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18733
18734
|
};
|
|
18734
18735
|
}
|
|
18735
18736
|
const model = textModel(choice);
|
|
@@ -18746,7 +18747,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18746
18747
|
if (!isTextModelInstalled(model, directory2))
|
|
18747
18748
|
throw notDownloaded(model.id);
|
|
18748
18749
|
if (apart) {
|
|
18749
|
-
const { openProcess } = await import("./process-
|
|
18750
|
+
const { openProcess } = await import("./process-MN4NSYGA.js");
|
|
18750
18751
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18751
18752
|
}
|
|
18752
18753
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19035,7 +19036,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19035
19036
|
return { ...one, state };
|
|
19036
19037
|
}, "shaped");
|
|
19037
19038
|
|
|
19038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19039
19040
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19040
19041
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19041
19042
|
for (const [key, value, maximum] of [
|
|
@@ -19088,7 +19089,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19088
19089
|
}
|
|
19089
19090
|
}, "catchUpSearch");
|
|
19090
19091
|
|
|
19091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19092
19093
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19093
19094
|
if (deps.reads === "store") {
|
|
19094
19095
|
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`);
|
|
@@ -19454,7 +19455,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19454
19455
|
return message?.timestamp ?? fallback;
|
|
19455
19456
|
}, "timeOfKey");
|
|
19456
19457
|
|
|
19457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
19458
19459
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
19459
19460
|
import { open, stat } from "node:fs/promises";
|
|
19460
19461
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -19656,7 +19657,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
19656
19657
|
return { name, source };
|
|
19657
19658
|
}, "readStickerFile");
|
|
19658
19659
|
|
|
19659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19660
19661
|
var DAY_MS = 864e5;
|
|
19661
19662
|
var NEW_DAYS = 30;
|
|
19662
19663
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19733,7 +19734,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19733
19734
|
};
|
|
19734
19735
|
}, "scorePerson");
|
|
19735
19736
|
|
|
19736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19737
19738
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19738
19739
|
const controller = new AbortController();
|
|
19739
19740
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19749,7 +19750,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
19749
19750
|
}
|
|
19750
19751
|
}, "withTimeLimit");
|
|
19751
19752
|
|
|
19752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19753
19754
|
var REGISTRIES = {
|
|
19754
19755
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19755
19756
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19836,7 +19837,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19836
19837
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19837
19838
|
})), "notCovered");
|
|
19838
19839
|
|
|
19839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19840
19841
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19841
19842
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19842
19843
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19924,7 +19925,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19924
19925
|
};
|
|
19925
19926
|
}, "botCheckService");
|
|
19926
19927
|
|
|
19927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19928
19929
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19929
19930
|
if (value === void 0)
|
|
19930
19931
|
return void 0;
|
|
@@ -19934,7 +19935,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19934
19935
|
return id2;
|
|
19935
19936
|
}, "threadIdOf");
|
|
19936
19937
|
|
|
19937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19938
19939
|
var TOP_POSTS = 5;
|
|
19939
19940
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19940
19941
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20051,7 +20052,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20051
20052
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20052
20053
|
}, "median");
|
|
20053
20054
|
|
|
20054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20055
20056
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20056
20057
|
const events = [];
|
|
20057
20058
|
for (const stay of stays) {
|
|
@@ -20083,7 +20084,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20083
20084
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20084
20085
|
}, "memberEvents");
|
|
20085
20086
|
|
|
20086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20087
20088
|
var EVENTS_DAYS = 7;
|
|
20088
20089
|
var TRACKED_DAYS = 30;
|
|
20089
20090
|
var STATS_PAGE = 1e3;
|
|
@@ -20201,8 +20202,8 @@ var chatsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
20201
20202
|
});
|
|
20202
20203
|
const counts = await store.roster.memberCounts(chatId, { since: new Date(from).toISOString().slice(0, 10) });
|
|
20203
20204
|
const known2 = unrecorded ? { ...stats, complete: false, membersUnrecorded: true } : stats;
|
|
20204
|
-
const
|
|
20205
|
-
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ?
|
|
20205
|
+
const counted2 = counts.length > 0 ? { ...known2, memberCounts: counts } : known2;
|
|
20206
|
+
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ? counted2 : { ...counted2, fetch: typedCommand(deps.messenger.app.command, `messages sync ${chatId}`) };
|
|
20206
20207
|
}, "stats"),
|
|
20207
20208
|
sendAs: /* @__PURE__ */ __name(async (chat) => {
|
|
20208
20209
|
if (deps.offline) {
|
|
@@ -20378,7 +20379,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20378
20379
|
return members.length === 0 ? null : members;
|
|
20379
20380
|
}, "storedMembers");
|
|
20380
20381
|
|
|
20381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20382
20383
|
var INBOX_CHATS = 20;
|
|
20383
20384
|
var REVIEW_DAYS = 3;
|
|
20384
20385
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20586,7 +20587,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20586
20587
|
};
|
|
20587
20588
|
}, "inboxService");
|
|
20588
20589
|
|
|
20589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20590
20591
|
var CONTEXT_MESSAGES2 = 10;
|
|
20591
20592
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20592
20593
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20847,10 +20848,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20847
20848
|
};
|
|
20848
20849
|
}, "personMessages");
|
|
20849
20850
|
|
|
20850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20851
20852
|
import { createHash } from "node:crypto";
|
|
20852
20853
|
|
|
20853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20854
20855
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20855
20856
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20856
20857
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20868,7 +20869,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20868
20869
|
return { parsed, meeting };
|
|
20869
20870
|
}, "authorizedMeetingMetadata");
|
|
20870
20871
|
|
|
20871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20872
20873
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20873
20874
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20874
20875
|
if (signal?.aborted)
|
|
@@ -21067,7 +21068,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21067
21068
|
return { ...packet, fingerprint: hash(packet) };
|
|
21068
21069
|
}, "readMeetingEvidence");
|
|
21069
21070
|
|
|
21070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21071
21072
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21072
21073
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21073
21074
|
const requestedAccounts = options.accountIds;
|
|
@@ -21166,7 +21167,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21166
21167
|
};
|
|
21167
21168
|
}, "personMeetingContext");
|
|
21168
21169
|
|
|
21169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21170
21171
|
var PREPARE_BYTES = 96 * 1024;
|
|
21171
21172
|
var MEETINGS = 5;
|
|
21172
21173
|
var CUES = 3;
|
|
@@ -21283,7 +21284,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21283
21284
|
}
|
|
21284
21285
|
}, "meetingsOf");
|
|
21285
21286
|
|
|
21286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21287
21288
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21288
21289
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21289
21290
|
const held = await storeIfOpen(deps);
|
|
@@ -21353,7 +21354,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21353
21354
|
complete: false
|
|
21354
21355
|
})), "quiet");
|
|
21355
21356
|
|
|
21356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21357
21358
|
var TIMELINE_ITEMS = 50;
|
|
21358
21359
|
var TIMELINE_MAX = 500;
|
|
21359
21360
|
var SCOPES = ["personal", "work"];
|
|
@@ -21408,7 +21409,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21408
21409
|
};
|
|
21409
21410
|
}, "personTimeline");
|
|
21410
21411
|
|
|
21411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21412
21413
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21413
21414
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21414
21415
|
const held = await storeIfOpen(deps);
|
|
@@ -21635,7 +21636,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21635
21636
|
return rest;
|
|
21636
21637
|
}, "withoutPhone");
|
|
21637
21638
|
|
|
21638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21639
21640
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21640
21641
|
var PERIOD_FIELD = "created";
|
|
21641
21642
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21738,7 +21739,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21738
21739
|
}));
|
|
21739
21740
|
}, "meetingNames");
|
|
21740
21741
|
|
|
21741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21742
21743
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21743
21744
|
const tags = /* @__PURE__ */ new Map();
|
|
21744
21745
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21747,7 +21748,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21747
21748
|
return tags;
|
|
21748
21749
|
}, "taskTagFilters");
|
|
21749
21750
|
|
|
21750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21751
21752
|
var TASK_QUERY = {
|
|
21752
21753
|
entity: "task",
|
|
21753
21754
|
backend: "sql",
|
|
@@ -22239,7 +22240,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22239
22240
|
};
|
|
22240
22241
|
}, "taskView");
|
|
22241
22242
|
|
|
22242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22243
22244
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22244
22245
|
if (newest === null)
|
|
22245
22246
|
return null;
|
|
@@ -22248,7 +22249,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22248
22249
|
return newest.addressed ? "owed" : null;
|
|
22249
22250
|
}, "mailTurn");
|
|
22250
22251
|
|
|
22251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22252
22253
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22253
22254
|
if (error instanceof CliError && error.code === "not_found")
|
|
22254
22255
|
return void 0;
|
|
@@ -22306,7 +22307,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22306
22307
|
};
|
|
22307
22308
|
}, "mailActivity");
|
|
22308
22309
|
|
|
22309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22310
22311
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22311
22312
|
const ids = [...new Set(chatIds)];
|
|
22312
22313
|
if (ids.length === 0)
|
|
@@ -22332,7 +22333,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22332
22333
|
}));
|
|
22333
22334
|
}, "chatCoverage");
|
|
22334
22335
|
|
|
22335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
22336
22337
|
var DAY = 864e5;
|
|
22337
22338
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22338
22339
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22579,7 +22580,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22579
22580
|
};
|
|
22580
22581
|
}, "agendaItem");
|
|
22581
22582
|
|
|
22582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22583
22584
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22584
22585
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22585
22586
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22643,7 +22644,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22643
22644
|
}
|
|
22644
22645
|
}, "validateContextEvidencePage");
|
|
22645
22646
|
|
|
22646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22647
22648
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22648
22649
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22649
22650
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22696,7 +22697,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22696
22697
|
};
|
|
22697
22698
|
}, "contextReadBudget");
|
|
22698
22699
|
|
|
22699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22700
22701
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22701
22702
|
if (!port || typeof port.read !== "function")
|
|
22702
22703
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22740,7 +22741,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22740
22741
|
};
|
|
22741
22742
|
}, "createContextEvidenceReader");
|
|
22742
22743
|
|
|
22743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22744
22745
|
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");
|
|
22745
22746
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
22746
22747
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22756,7 +22757,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
22756
22757
|
}, "excerpt");
|
|
22757
22758
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22758
22759
|
|
|
22759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
22760
22761
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22761
22762
|
var DEFAULT_PURPOSES = ["work"];
|
|
22762
22763
|
var LINK_PURPOSE = "work";
|
|
@@ -22786,7 +22787,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22786
22787
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22787
22788
|
], "purposeList");
|
|
22788
22789
|
|
|
22789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22790
22791
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22791
22792
|
async around(ref, window3) {
|
|
22792
22793
|
const at = parseLocator(ref);
|
|
@@ -22881,7 +22882,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22881
22882
|
};
|
|
22882
22883
|
}, "storedNeighbours");
|
|
22883
22884
|
|
|
22884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22885
22886
|
import { createHash as createHash2 } from "node:crypto";
|
|
22886
22887
|
var DAY2 = 864e5;
|
|
22887
22888
|
var MAX_TIME = 864e13;
|
|
@@ -23197,7 +23198,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23197
23198
|
return value;
|
|
23198
23199
|
}, "decodeCheckpoint");
|
|
23199
23200
|
|
|
23200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23201
23202
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23202
23203
|
var PAGE2 = 20;
|
|
23203
23204
|
var PEOPLE = 20;
|
|
@@ -23601,7 +23602,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23601
23602
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23602
23603
|
}, "peopleOf");
|
|
23603
23604
|
|
|
23604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23605
23606
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23606
23607
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23607
23608
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23645,7 +23646,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23645
23646
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23646
23647
|
}, "matchVocabularyTerms");
|
|
23647
23648
|
|
|
23648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23649
23650
|
var KINDS = ["project", "tag", "topic"];
|
|
23650
23651
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23651
23652
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23700,7 +23701,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23700
23701
|
};
|
|
23701
23702
|
}, "findEvidenceMentions");
|
|
23702
23703
|
|
|
23703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23704
23705
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23705
23706
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23706
23707
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23968,7 +23969,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23968
23969
|
const leftOut = [];
|
|
23969
23970
|
for (const one of all.filter((chat) => !purposeRead(purposes, chat.purpose))) {
|
|
23970
23971
|
const account = { provider: one.provider, account: one.account };
|
|
23971
|
-
const [
|
|
23972
|
+
const [counted2, [held]] = await Promise.all([
|
|
23972
23973
|
count4(account, one.chat, { since: gathered.window.after, until: gathered.window.before }),
|
|
23973
23974
|
chatCoverage(store, account, [one.chat])
|
|
23974
23975
|
]);
|
|
@@ -23981,7 +23982,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23981
23982
|
purpose: one.purpose ?? LINK_PURPOSE,
|
|
23982
23983
|
relationship: one.relationship,
|
|
23983
23984
|
...one.proposed ? { proposed: one.proposed } : {},
|
|
23984
|
-
...
|
|
23985
|
+
...counted2
|
|
23985
23986
|
});
|
|
23986
23987
|
}
|
|
23987
23988
|
return {
|
|
@@ -24006,18 +24007,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24006
24007
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24007
24008
|
}, "purposeHintOf");
|
|
24008
24009
|
|
|
24009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24010
24011
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24011
24012
|
|
|
24012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24013
24014
|
import { lstat } from "node:fs/promises";
|
|
24014
24015
|
|
|
24015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24016
24017
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
24017
24018
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
24018
24019
|
import { join as join2 } from "node:path";
|
|
24019
24020
|
|
|
24020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
24021
24022
|
import { createHash as createHash3 } from "node:crypto";
|
|
24022
24023
|
var metadataLimit = 16384;
|
|
24023
24024
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -24077,7 +24078,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
24077
24078
|
}
|
|
24078
24079
|
}, "readPartialMetadata");
|
|
24079
24080
|
|
|
24080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
24081
24082
|
import { randomUUID } from "node:crypto";
|
|
24082
24083
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
24083
24084
|
import { join } from "node:path";
|
|
@@ -24169,7 +24170,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24169
24170
|
};
|
|
24170
24171
|
}, "partialWriter");
|
|
24171
24172
|
|
|
24172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24173
24174
|
var NativeRecordingPartialStore = class {
|
|
24174
24175
|
static {
|
|
24175
24176
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24276,12 +24277,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24276
24277
|
}
|
|
24277
24278
|
};
|
|
24278
24279
|
|
|
24279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24280
24281
|
import { createHash as createHash5 } from "node:crypto";
|
|
24281
24282
|
import { link as link2 } from "node:fs/promises";
|
|
24282
24283
|
import { basename as basename2, dirname as dirname2, join as join4, resolve as resolve2 } from "node:path";
|
|
24283
24284
|
|
|
24284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24285
24286
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24286
24287
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24287
24288
|
signal?.throwIfAborted();
|
|
@@ -24316,7 +24317,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24316
24317
|
signal?.throwIfAborted();
|
|
24317
24318
|
}, "commitPublication");
|
|
24318
24319
|
|
|
24319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24320
24321
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24321
24322
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24322
24323
|
import { join as join3 } from "node:path";
|
|
@@ -24389,7 +24390,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24389
24390
|
}
|
|
24390
24391
|
}, "writePublicationJournal");
|
|
24391
24392
|
|
|
24392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24393
24394
|
var NativeRecordingPublication = class {
|
|
24394
24395
|
static {
|
|
24395
24396
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24462,7 +24463,7 @@ var NativeRecordingPublication = class {
|
|
|
24462
24463
|
}
|
|
24463
24464
|
};
|
|
24464
24465
|
|
|
24465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24466
24467
|
import { createHash as createHash6 } from "node:crypto";
|
|
24467
24468
|
import { readdir } from "node:fs/promises";
|
|
24468
24469
|
import { isAbsolute as isAbsolute2, join as join5, resolve as resolve3 } from "node:path";
|
|
@@ -24549,7 +24550,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24549
24550
|
beforePublish
|
|
24550
24551
|
}), "commitMediaEntry");
|
|
24551
24552
|
|
|
24552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24553
24554
|
var validator = '"media-completed-v1"';
|
|
24554
24555
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24555
24556
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24650,7 +24651,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
24650
24651
|
return entry;
|
|
24651
24652
|
}, "archiveMediaFile");
|
|
24652
24653
|
|
|
24653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
24654
24655
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24655
24656
|
import { join as join6, resolve as resolve4 } from "node:path";
|
|
24656
24657
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24717,7 +24718,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24717
24718
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24718
24719
|
}, "withMediaArchiveLocks");
|
|
24719
24720
|
|
|
24720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24721
24722
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24722
24723
|
if (value === void 0)
|
|
24723
24724
|
return void 0;
|
|
@@ -24870,7 +24871,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
24870
24871
|
}, { create: true });
|
|
24871
24872
|
}, "archiveMedia");
|
|
24872
24873
|
|
|
24873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
24874
24875
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24875
24876
|
import { basename as basename3, dirname as dirname3, join as join7, resolve as resolve5 } from "node:path";
|
|
24876
24877
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -25023,7 +25024,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
25023
25024
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
25024
25025
|
}, "moveMediaArchive");
|
|
25025
25026
|
|
|
25026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
25027
25028
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
25028
25029
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
25029
25030
|
}, "progress") }) => {
|
|
@@ -25046,7 +25047,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25046
25047
|
}
|
|
25047
25048
|
await nativeRuntime({ env, progress });
|
|
25048
25049
|
progress(`${model.id}: loading it once to check it works`);
|
|
25049
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
25050
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-EQINOOST.js");
|
|
25050
25051
|
const embedder = await openEmbedder2(model, directory2);
|
|
25051
25052
|
try {
|
|
25052
25053
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -25067,7 +25068,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
25067
25068
|
}
|
|
25068
25069
|
await nativeRuntime({ env, progress });
|
|
25069
25070
|
progress(`${model.id}: loading it once to check it works`);
|
|
25070
|
-
const { openReranker } = await import("./rerank-
|
|
25071
|
+
const { openReranker } = await import("./rerank-7VM5R5N6.js");
|
|
25071
25072
|
const reranker = await openReranker(model, directory2);
|
|
25072
25073
|
try {
|
|
25073
25074
|
await reranker.score("check", ["check"]);
|
|
@@ -25085,7 +25086,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25085
25086
|
await installFiles(placedImage(model, directory2), { progress });
|
|
25086
25087
|
}
|
|
25087
25088
|
progress(`${model.id}: loading it once to check it works`);
|
|
25088
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
25089
|
+
const { openPictureEmbedder } = await import("./embedder-LM52TDRN.js");
|
|
25089
25090
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
25090
25091
|
try {
|
|
25091
25092
|
const vector = await embedder.embedQuery("check");
|
|
@@ -25097,7 +25098,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25097
25098
|
return { model, directory: directory2 };
|
|
25098
25099
|
}, "downloadImageModel");
|
|
25099
25100
|
|
|
25100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
25101
25102
|
var MONEY_REQUEST = "money-request";
|
|
25102
25103
|
var MONEY_DONE = "money-done";
|
|
25103
25104
|
var PROMISE = "promise";
|
|
@@ -25131,10 +25132,10 @@ var MONEY_WORDS = [
|
|
|
25131
25132
|
}
|
|
25132
25133
|
];
|
|
25133
25134
|
|
|
25134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25135
25136
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25136
25137
|
|
|
25137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25138
25139
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25139
25140
|
var MONEY_DONE_FORMS = words([
|
|
25140
25141
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25174,7 +25175,7 @@ var PROMISE_FORMS = words([
|
|
|
25174
25175
|
"estar\xE1 listo"
|
|
25175
25176
|
]);
|
|
25176
25177
|
|
|
25177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25178
25179
|
var EXCERPT_CHARS = 80;
|
|
25179
25180
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25180
25181
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25196,7 +25197,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25196
25197
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25197
25198
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25198
25199
|
|
|
25199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25200
25201
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25201
25202
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25202
25203
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25236,10 +25237,10 @@ var rowsOf = /* @__PURE__ */ __name((chat) => chat.messages.flatMap((message) =>
|
|
|
25236
25237
|
var centsText = /* @__PURE__ */ __name((cents) => `${Math.floor(cents / 100)}.${String(cents % 100).padStart(2, "0")}`, "centsText");
|
|
25237
25238
|
var amounts = {
|
|
25238
25239
|
id: "amounts",
|
|
25239
|
-
version:
|
|
25240
|
+
version: 3,
|
|
25240
25241
|
scope: "chat",
|
|
25241
|
-
read: /* @__PURE__ */ __name(async (
|
|
25242
|
-
if (!chat)
|
|
25242
|
+
read: /* @__PURE__ */ __name(async (context2, chat) => {
|
|
25243
|
+
if (!chat || context2.books)
|
|
25243
25244
|
return [];
|
|
25244
25245
|
const groups = /* @__PURE__ */ new Map();
|
|
25245
25246
|
for (const row of rowsOf(chat)) {
|
|
@@ -25252,7 +25253,8 @@ var amounts = {
|
|
|
25252
25253
|
const lastAsk = asks.at(-1);
|
|
25253
25254
|
const first2 = asks[0] ?? done2[0] ?? rows[0];
|
|
25254
25255
|
const paidAfter = done2.some((row) => !lastAsk || Date.parse(row.message.timestamp) >= Date.parse(lastAsk.message.timestamp));
|
|
25255
|
-
const
|
|
25256
|
+
const paid2 = asks.length ? paidAfter : done2.length > 0;
|
|
25257
|
+
const state = paid2 ? "paid-mentioned" : asks.length ? "asked" : "mentioned";
|
|
25256
25258
|
const cited = asks.length ? [...asks, ...paidAfter ? done2.slice(-1) : []] : rows;
|
|
25257
25259
|
return {
|
|
25258
25260
|
signal: "amounts",
|
|
@@ -25273,10 +25275,10 @@ var amounts = {
|
|
|
25273
25275
|
};
|
|
25274
25276
|
});
|
|
25275
25277
|
}, "read"),
|
|
25276
|
-
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "
|
|
25278
|
+
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
25277
25279
|
};
|
|
25278
25280
|
|
|
25279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25280
25282
|
var children = {
|
|
25281
25283
|
id: "children",
|
|
25282
25284
|
version: 1,
|
|
@@ -25305,7 +25307,7 @@ var children = {
|
|
|
25305
25307
|
}, "read")
|
|
25306
25308
|
};
|
|
25307
25309
|
|
|
25308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25309
25311
|
var coverage = {
|
|
25310
25312
|
id: "coverage",
|
|
25311
25313
|
version: 1,
|
|
@@ -25334,7 +25336,7 @@ var coverage = {
|
|
|
25334
25336
|
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")
|
|
25335
25337
|
};
|
|
25336
25338
|
|
|
25337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25338
25340
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25339
25341
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25340
25342
|
signal: "payments",
|
|
@@ -25384,7 +25386,7 @@ var payments = {
|
|
|
25384
25386
|
}, "read")
|
|
25385
25387
|
};
|
|
25386
25388
|
|
|
25387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25388
25390
|
var PATTERNS_PER_CHAT = 3;
|
|
25389
25391
|
var DAY3 = 864e5;
|
|
25390
25392
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25473,7 +25475,7 @@ var promises = {
|
|
|
25473
25475
|
}, "read")
|
|
25474
25476
|
};
|
|
25475
25477
|
|
|
25476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25477
25479
|
var PER_SIDE = 5;
|
|
25478
25480
|
var WEEK = 7 * 864e5;
|
|
25479
25481
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25504,7 +25506,7 @@ var questions2 = {
|
|
|
25504
25506
|
}, "attention")
|
|
25505
25507
|
};
|
|
25506
25508
|
|
|
25507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25508
25510
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25509
25511
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25510
25512
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25572,7 +25574,7 @@ var replyNext = {
|
|
|
25572
25574
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25573
25575
|
};
|
|
25574
25576
|
|
|
25575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
25576
25578
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25577
25579
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25578
25580
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25618,7 +25620,7 @@ var topics = {
|
|
|
25618
25620
|
}, "read")
|
|
25619
25621
|
};
|
|
25620
25622
|
|
|
25621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
25622
25624
|
var STATUS_SIGNALS = [
|
|
25623
25625
|
replyNext,
|
|
25624
25626
|
questions2,
|
|
@@ -25630,7 +25632,7 @@ var STATUS_SIGNALS = [
|
|
|
25630
25632
|
children
|
|
25631
25633
|
];
|
|
25632
25634
|
|
|
25633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
25634
25636
|
var DAY4 = 864e5;
|
|
25635
25637
|
var STATUS_WINDOW = 300;
|
|
25636
25638
|
var STATUS_CHATS = 16;
|
|
@@ -25675,17 +25677,23 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
25675
25677
|
}, "childrenOf");
|
|
25676
25678
|
var inAccounts = /* @__PURE__ */ __name((accounts, provider, account) => accounts === void 0 || accounts.some((one) => one.provider === provider && one.account === account), "inAccounts");
|
|
25677
25679
|
var failure = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "failure");
|
|
25678
|
-
var
|
|
25679
|
-
const
|
|
25680
|
-
|
|
25681
|
-
|
|
25682
|
-
|
|
25680
|
+
var owed = /* @__PURE__ */ __name((item2) => {
|
|
25681
|
+
const data = item2.data;
|
|
25682
|
+
return item2.signal === "payments" && data.state === "expected" && data.status === "confirmed";
|
|
25683
|
+
}, "owed");
|
|
25684
|
+
var keepsBooks = /* @__PURE__ */ __name(async (store, projects) => {
|
|
25685
|
+
for (const project of projects) {
|
|
25686
|
+
const filter = { project, review: "confirmed", limit: 1 };
|
|
25687
|
+
if ((await store.finance.invoices(filter)).length || (await store.finance.payments(filter)).length)
|
|
25688
|
+
return true;
|
|
25689
|
+
}
|
|
25690
|
+
return false;
|
|
25691
|
+
}, "keepsBooks");
|
|
25683
25692
|
var totalsOf = /* @__PURE__ */ __name((items) => {
|
|
25684
25693
|
const totals = /* @__PURE__ */ new Map();
|
|
25685
|
-
const open7 = counted2(items);
|
|
25686
25694
|
for (const item2 of items) {
|
|
25687
25695
|
const data = item2.data;
|
|
25688
|
-
if (!
|
|
25696
|
+
if (!owed(item2) || data.amount === void 0)
|
|
25689
25697
|
continue;
|
|
25690
25698
|
const key = `${data.direction}|${data.currency ?? ""}`;
|
|
25691
25699
|
const total = totals.get(key) ?? {
|
|
@@ -25768,6 +25776,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25768
25776
|
chats,
|
|
25769
25777
|
project: { ...root, children: children2, cut },
|
|
25770
25778
|
store,
|
|
25779
|
+
books: await keepsBooks(store, [root.ref, ...children2.map((child) => child.ref)]),
|
|
25771
25780
|
contextQueries: input.contextQueries ?? []
|
|
25772
25781
|
};
|
|
25773
25782
|
const items = [];
|
|
@@ -25812,7 +25821,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25812
25821
|
};
|
|
25813
25822
|
}, "projectStatus");
|
|
25814
25823
|
|
|
25815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
25816
25825
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25817
25826
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25818
25827
|
if (deps.offline)
|
|
@@ -25884,7 +25893,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25884
25893
|
};
|
|
25885
25894
|
}, "accountService");
|
|
25886
25895
|
|
|
25887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
25888
25897
|
var MINUTE = 6e4;
|
|
25889
25898
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25890
25899
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25903,7 +25912,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25903
25912
|
return new Date(at - at % MINUTE).toISOString();
|
|
25904
25913
|
}, "sendTime");
|
|
25905
25914
|
|
|
25906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
25907
25916
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
25908
25917
|
try {
|
|
25909
25918
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -26049,21 +26058,21 @@ var adminService = /* @__PURE__ */ __name((deps) => {
|
|
|
26049
26058
|
const answerAll = capability(connection, "answerAllJoinRequests", "answer every join request at once");
|
|
26050
26059
|
const { id: chatId } = await connection.resolve(chat);
|
|
26051
26060
|
const page = await list2(chatId, { limit: 100, ...link4 === void 0 ? {} : { link: link4 } });
|
|
26052
|
-
const
|
|
26061
|
+
const counted2 = page.total ?? page.items.length;
|
|
26053
26062
|
if (page.total === void 0 && page.hasMore)
|
|
26054
26063
|
throw new CliError("validation_error", "too many requests to count; answer them by person, or by --link");
|
|
26055
|
-
if (
|
|
26056
|
-
return { chatId, accepted: accept, counted:
|
|
26064
|
+
if (counted2 === 0)
|
|
26065
|
+
return { chatId, accepted: accept, counted: counted2 };
|
|
26057
26066
|
const operationId = newOperationId();
|
|
26058
26067
|
await guardedWrite(deps.guard, {
|
|
26059
26068
|
operationId,
|
|
26060
26069
|
chatId,
|
|
26061
26070
|
kind: "chat",
|
|
26062
26071
|
action: accept ? "requests.accept" : "requests.decline",
|
|
26063
|
-
count:
|
|
26064
|
-
people:
|
|
26072
|
+
count: counted2,
|
|
26073
|
+
people: counted2
|
|
26065
26074
|
}, () => answerAll(chatId, accept, link4));
|
|
26066
|
-
return { operationId, chatId, accepted: accept, counted:
|
|
26075
|
+
return { operationId, chatId, accepted: accept, counted: counted2 };
|
|
26067
26076
|
}, "answerAllRequests"),
|
|
26068
26077
|
links: /* @__PURE__ */ __name(async (chat, window3) => {
|
|
26069
26078
|
if (deps.offline)
|
|
@@ -26150,7 +26159,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26150
26159
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26151
26160
|
}, "linkLimits");
|
|
26152
26161
|
|
|
26153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26154
26163
|
var THREADS_PAGE = 500;
|
|
26155
26164
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26156
26165
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26229,7 +26238,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26229
26238
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26230
26239
|
}, "readMail");
|
|
26231
26240
|
|
|
26232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26233
26242
|
var NO_MAIL = "no_mail";
|
|
26234
26243
|
var MAIL = "email";
|
|
26235
26244
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26276,7 +26285,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26276
26285
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26277
26286
|
}, "accountsOfKind");
|
|
26278
26287
|
|
|
26279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26280
26289
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26281
26290
|
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");
|
|
26282
26291
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26624,7 +26633,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26624
26633
|
};
|
|
26625
26634
|
}, "statsLucene");
|
|
26626
26635
|
|
|
26627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
26628
26637
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26629
26638
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26630
26639
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26793,7 +26802,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26793
26802
|
};
|
|
26794
26803
|
}, "readRankingSelection");
|
|
26795
26804
|
|
|
26796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
26797
26806
|
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");
|
|
26798
26807
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26799
26808
|
command,
|
|
@@ -26803,7 +26812,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26803
26812
|
fieldsVersion: FIELD_VERSION
|
|
26804
26813
|
}), "searchRecordOf");
|
|
26805
26814
|
|
|
26806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
26807
26816
|
function invalid2(message) {
|
|
26808
26817
|
throw new CliError("validation_error", message);
|
|
26809
26818
|
}
|
|
@@ -27097,7 +27106,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
27097
27106
|
}, "evidence")
|
|
27098
27107
|
}), "adminStatisticsService");
|
|
27099
27108
|
|
|
27100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
27101
27110
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
27102
27111
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
27103
27112
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27234,12 +27243,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27234
27243
|
return { plan, repair };
|
|
27235
27244
|
}, "gapsService");
|
|
27236
27245
|
|
|
27237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27238
27247
|
import { createHash as createHash9 } from "node:crypto";
|
|
27239
27248
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27240
27249
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27241
27250
|
|
|
27242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27243
27252
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27244
27253
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27245
27254
|
var MAX_FILES = 1e4;
|
|
@@ -27310,15 +27319,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27310
27319
|
return choices;
|
|
27311
27320
|
}, "directoryPaths");
|
|
27312
27321
|
|
|
27313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27314
27323
|
import { posix } from "node:path";
|
|
27315
27324
|
|
|
27316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27317
27326
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27318
27327
|
import { crc32 } from "node:zlib";
|
|
27319
27328
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27320
27329
|
|
|
27321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
27322
27331
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27323
27332
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27324
27333
|
var SAMPLE = 65536;
|
|
@@ -27420,7 +27429,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27420
27429
|
return result.text;
|
|
27421
27430
|
}, "decodeXml");
|
|
27422
27431
|
|
|
27423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27424
27433
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27425
27434
|
var MAX_ENTRIES = 1e3;
|
|
27426
27435
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27635,7 +27644,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27635
27644
|
return found;
|
|
27636
27645
|
}, "elements");
|
|
27637
27646
|
|
|
27638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27639
27648
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27640
27649
|
let name = "";
|
|
27641
27650
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27690,7 +27699,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27690
27699
|
return { text: parts.join("").trim(), truncated: false };
|
|
27691
27700
|
}, "sheetText");
|
|
27692
27701
|
|
|
27693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27694
27703
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27695
27704
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27696
27705
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28090,10 +28099,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28090
28099
|
}
|
|
28091
28100
|
}, "readDocument");
|
|
28092
28101
|
|
|
28093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28094
28103
|
import { extname as extname3 } from "node:path";
|
|
28095
28104
|
|
|
28096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28097
28106
|
import { readFileSync } from "node:fs";
|
|
28098
28107
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28099
28108
|
import { fileURLToPath } from "node:url";
|
|
@@ -28154,7 +28163,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
28154
28163
|
}
|
|
28155
28164
|
}, "derived");
|
|
28156
28165
|
|
|
28157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28158
28167
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28159
28168
|
var image2 = {
|
|
28160
28169
|
id: "image",
|
|
@@ -28163,7 +28172,7 @@ var image2 = {
|
|
|
28163
28172
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28164
28173
|
};
|
|
28165
28174
|
|
|
28166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28167
28176
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28168
28177
|
var doc = {
|
|
28169
28178
|
id: "doc",
|
|
@@ -28175,7 +28184,7 @@ var doc = {
|
|
|
28175
28184
|
}), "read")
|
|
28176
28185
|
};
|
|
28177
28186
|
|
|
28178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28179
28188
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28180
28189
|
var docx = {
|
|
28181
28190
|
id: "docx",
|
|
@@ -28188,7 +28197,7 @@ var docx = {
|
|
|
28188
28197
|
}), "read")
|
|
28189
28198
|
};
|
|
28190
28199
|
|
|
28191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28192
28201
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28193
28202
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28194
28203
|
"fonttbl",
|
|
@@ -28364,7 +28373,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28364
28373
|
}, "htmlText");
|
|
28365
28374
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28366
28375
|
|
|
28367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
28368
28377
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28369
28378
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28370
28379
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28420,7 +28429,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28420
28429
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28421
28430
|
}, "markdownSections");
|
|
28422
28431
|
|
|
28423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28424
28433
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28425
28434
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28426
28435
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28491,7 +28500,7 @@ var html = {
|
|
|
28491
28500
|
}, "read")
|
|
28492
28501
|
};
|
|
28493
28502
|
|
|
28494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28495
28504
|
var office = {
|
|
28496
28505
|
id: "office",
|
|
28497
28506
|
version: documentExtractor("odt"),
|
|
@@ -28502,7 +28511,7 @@ var office = {
|
|
|
28502
28511
|
}, "read")
|
|
28503
28512
|
};
|
|
28504
28513
|
|
|
28505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28506
28515
|
var pdf = {
|
|
28507
28516
|
id: "pdf",
|
|
28508
28517
|
version: "unpdf",
|
|
@@ -28569,7 +28578,7 @@ var pdf = {
|
|
|
28569
28578
|
}), "read")
|
|
28570
28579
|
};
|
|
28571
28580
|
|
|
28572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28573
28582
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28574
28583
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28575
28584
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28589,7 +28598,7 @@ var plain = {
|
|
|
28589
28598
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28590
28599
|
};
|
|
28591
28600
|
|
|
28592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28593
28602
|
var rtf = {
|
|
28594
28603
|
id: "rtf",
|
|
28595
28604
|
version: "v1",
|
|
@@ -28597,10 +28606,10 @@ var rtf = {
|
|
|
28597
28606
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28598
28607
|
};
|
|
28599
28608
|
|
|
28600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28601
28610
|
import { basename as basename5 } from "node:path";
|
|
28602
28611
|
|
|
28603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28604
28613
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28605
28614
|
const cells = [];
|
|
28606
28615
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28638,7 +28647,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28638
28647
|
return { cells, truncated };
|
|
28639
28648
|
}, "delimitedSpans");
|
|
28640
28649
|
|
|
28641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28642
28651
|
var DELIMITED = {
|
|
28643
28652
|
".csv": ",",
|
|
28644
28653
|
".tsv": " ",
|
|
@@ -28677,7 +28686,7 @@ var sheets = {
|
|
|
28677
28686
|
}, "read")
|
|
28678
28687
|
};
|
|
28679
28688
|
|
|
28680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28681
28690
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28682
28691
|
var HEAD_BYTES = 1024;
|
|
28683
28692
|
var readers = [...BUILT_INS2];
|
|
@@ -28687,7 +28696,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28687
28696
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28688
28697
|
}, "readWithRegistry");
|
|
28689
28698
|
|
|
28690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28691
28700
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28692
28701
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28693
28702
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29766,7 +29775,7 @@ function imageSize(input) {
|
|
|
29766
29775
|
}
|
|
29767
29776
|
__name(imageSize, "imageSize");
|
|
29768
29777
|
|
|
29769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29770
29779
|
var MAX_PAGES = 20;
|
|
29771
29780
|
var MAX_PIXELS = 2e7;
|
|
29772
29781
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29917,7 +29926,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29917
29926
|
}
|
|
29918
29927
|
}, "ocrPdf");
|
|
29919
29928
|
|
|
29920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29921
29930
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29922
29931
|
const limits = pdfPreviewLimits(env);
|
|
29923
29932
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -29994,7 +30003,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29994
30003
|
}
|
|
29995
30004
|
}, "pdfPreview");
|
|
29996
30005
|
|
|
29997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
29998
30007
|
import { createHash as createHash8 } from "node:crypto";
|
|
29999
30008
|
import { constants } from "node:fs";
|
|
30000
30009
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30102,7 +30111,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30102
30111
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30103
30112
|
}, "transferMime");
|
|
30104
30113
|
|
|
30105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30106
30115
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30107
30116
|
import { link as link3, rm } from "node:fs/promises";
|
|
30108
30117
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30216,7 +30225,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
30216
30225
|
}
|
|
30217
30226
|
}, "save");
|
|
30218
30227
|
|
|
30219
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30220
30229
|
var ATTACHMENT_QUERY = {
|
|
30221
30230
|
entity: "attachment",
|
|
30222
30231
|
backend: "sql",
|
|
@@ -30639,7 +30648,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30639
30648
|
}, "setText")
|
|
30640
30649
|
}), "attachmentsService");
|
|
30641
30650
|
|
|
30642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30643
30652
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30644
30653
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30645
30654
|
const store = await accountStore(deps);
|
|
@@ -30669,7 +30678,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30669
30678
|
}, "list")
|
|
30670
30679
|
}), "chatDocumentsService");
|
|
30671
30680
|
|
|
30672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30673
30682
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30674
30683
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30675
30684
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30756,7 +30765,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30756
30765
|
}
|
|
30757
30766
|
}, "isRetentionSelection");
|
|
30758
30767
|
|
|
30759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30760
30769
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30761
30770
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30762
30771
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -30963,7 +30972,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30963
30972
|
};
|
|
30964
30973
|
}, "countersService");
|
|
30965
30974
|
|
|
30966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30967
30976
|
var SYNC_KEY = "messages.sync-first";
|
|
30968
30977
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30969
30978
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31055,7 +31064,7 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
31055
31064
|
}
|
|
31056
31065
|
try {
|
|
31057
31066
|
const newest = (await store.messages.messages(account, chatId, { limit: 1 })).items[0];
|
|
31058
|
-
let
|
|
31067
|
+
let counted2 = 0;
|
|
31059
31068
|
const fetched = await archiveService(deps).fetch(chatId, {
|
|
31060
31069
|
limit: options.maxMessages - result.messages,
|
|
31061
31070
|
pageSize: Math.min(100, deps.messenger.fetching?.maxPageSize ?? 100),
|
|
@@ -31064,11 +31073,11 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
31064
31073
|
stop,
|
|
31065
31074
|
note,
|
|
31066
31075
|
onPage: /* @__PURE__ */ __name(({ fetched: fetched2 }) => {
|
|
31067
|
-
result.messages += fetched2 -
|
|
31068
|
-
|
|
31076
|
+
result.messages += fetched2 - counted2;
|
|
31077
|
+
counted2 = fetched2;
|
|
31069
31078
|
}, "onPage")
|
|
31070
31079
|
});
|
|
31071
|
-
result.messages += fetched.fetched -
|
|
31080
|
+
result.messages += fetched.fetched - counted2;
|
|
31072
31081
|
if (fetched.stopped || !fetched.complete && !fetched.reachedSince) {
|
|
31073
31082
|
result.complete = false;
|
|
31074
31083
|
result.failed.push({
|
|
@@ -31095,7 +31104,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31095
31104
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31096
31105
|
}), "withRefresh");
|
|
31097
31106
|
|
|
31098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31099
31108
|
var CANDIDATES = 50;
|
|
31100
31109
|
var WORD_HITS = 200;
|
|
31101
31110
|
var RRF_K = 60;
|
|
@@ -31370,13 +31379,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
31370
31379
|
return mean2.map((value) => value / length);
|
|
31371
31380
|
}, "meanOf");
|
|
31372
31381
|
|
|
31373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
31374
31383
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31375
31384
|
...embeddingsMaintenance(deps),
|
|
31376
31385
|
...embeddingsSearch(deps)
|
|
31377
31386
|
}), "embeddingsService");
|
|
31378
31387
|
|
|
31379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31380
31389
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31381
31390
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31382
31391
|
if (deps.offline)
|
|
@@ -31517,7 +31526,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31517
31526
|
};
|
|
31518
31527
|
}, "foldersService");
|
|
31519
31528
|
|
|
31520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31521
31530
|
var REVIEW_COUNT = 500;
|
|
31522
31531
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31523
31532
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31596,7 +31605,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31596
31605
|
};
|
|
31597
31606
|
}, "mentionsService");
|
|
31598
31607
|
|
|
31599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31600
31609
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31601
31610
|
position,
|
|
31602
31611
|
kind,
|
|
@@ -31645,7 +31654,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31645
31654
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31646
31655
|
}, "validatePermalink");
|
|
31647
31656
|
|
|
31648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31649
31658
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31650
31659
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31651
31660
|
return `${seconds / 86400}d`;
|
|
@@ -31677,7 +31686,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31677
31686
|
return seconds;
|
|
31678
31687
|
}, "pinDurationOf");
|
|
31679
31688
|
|
|
31680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31681
31690
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31682
31691
|
if (sendAs === void 0) {
|
|
31683
31692
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31702,7 +31711,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31702
31711
|
return sendAs;
|
|
31703
31712
|
}, "typedSendAs");
|
|
31704
31713
|
|
|
31705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31706
31715
|
var TOTAL_CAP = 1e4;
|
|
31707
31716
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31708
31717
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31713,7 +31722,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31713
31722
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31714
31723
|
}, "totalOf");
|
|
31715
31724
|
|
|
31716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31717
31726
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31718
31727
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31719
31728
|
let narrows = false;
|
|
@@ -31742,7 +31751,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31742
31751
|
return wanted(root).join(" ").trim();
|
|
31743
31752
|
}, "meaningWords");
|
|
31744
31753
|
|
|
31745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31746
31755
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31747
31756
|
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"));
|
|
31748
31757
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31874,7 +31883,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31874
31883
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31875
31884
|
}, "questionLookup");
|
|
31876
31885
|
|
|
31877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31878
31887
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31879
31888
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31880
31889
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32067,7 +32076,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32067
32076
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32068
32077
|
}, "signals");
|
|
32069
32078
|
|
|
32070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32071
32080
|
var MEANING_DEPTH = 100;
|
|
32072
32081
|
var RRF_K2 = 60;
|
|
32073
32082
|
var RERANK_DEPTH = 50;
|
|
@@ -32392,7 +32401,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32392
32401
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32393
32402
|
}, "mixedWithReranker");
|
|
32394
32403
|
|
|
32395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32396
32405
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32397
32406
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32398
32407
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32591,7 +32600,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32591
32600
|
return result;
|
|
32592
32601
|
}, "readThreadContext");
|
|
32593
32602
|
|
|
32594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32595
32604
|
var SEARCH_FILL_MS = 200;
|
|
32596
32605
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32597
32606
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32658,12 +32667,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32658
32667
|
}, "accountOf");
|
|
32659
32668
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32660
32669
|
|
|
32661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32662
32671
|
import { createHash as createHash10 } from "node:crypto";
|
|
32663
32672
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32664
32673
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32665
32674
|
|
|
32666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32667
32676
|
var GROUP_SETTINGS = [
|
|
32668
32677
|
"allCanPin",
|
|
32669
32678
|
"onlyAdminsAdd",
|
|
@@ -32677,7 +32686,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32677
32686
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32678
32687
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32679
32688
|
|
|
32680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32681
32690
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32682
32691
|
var PICTURE_FLOOR = 0.25;
|
|
32683
32692
|
var PAGE4 = 50;
|
|
@@ -32694,7 +32703,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32694
32703
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32695
32704
|
if (!isImageModelInstalled(model2, directory2))
|
|
32696
32705
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32697
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32706
|
+
const { openPictureEmbedder } = await import("./embedder-LM52TDRN.js");
|
|
32698
32707
|
return openPictureEmbedder(model2, directory2);
|
|
32699
32708
|
}, "open");
|
|
32700
32709
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32891,7 +32900,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32891
32900
|
}, "search")
|
|
32892
32901
|
}), "withPictures");
|
|
32893
32902
|
|
|
32894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32895
32904
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
32896
32905
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
32897
32906
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -32959,7 +32968,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32959
32968
|
}
|
|
32960
32969
|
}, "meaningLane");
|
|
32961
32970
|
|
|
32962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32963
32972
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32964
32973
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32965
32974
|
if (choice === "off")
|
|
@@ -32971,9 +32980,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32971
32980
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32972
32981
|
try {
|
|
32973
32982
|
const warm = deps.embedders;
|
|
32974
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32983
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-MN4NSYGA.js")).openRerankerProcess(model, directory2, {
|
|
32975
32984
|
threads: defaultThreads()
|
|
32976
|
-
})) : await (await import("./rerank-
|
|
32985
|
+
})) : await (await import("./rerank-7VM5R5N6.js")).openReranker(model, directory2);
|
|
32977
32986
|
return {
|
|
32978
32987
|
model: model.id,
|
|
32979
32988
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32993,17 +33002,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32993
33002
|
};
|
|
32994
33003
|
}, "rerankLane");
|
|
32995
33004
|
|
|
32996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
32997
33006
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
32998
33007
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
32999
33008
|
const directory2 = imageModelsDirectory(env);
|
|
33000
33009
|
if (!isImageModelInstalled(model, directory2))
|
|
33001
33010
|
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 });
|
|
33002
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33011
|
+
const { openPictureEmbedder } = await import("./embedder-LM52TDRN.js");
|
|
33003
33012
|
return openPictureEmbedder(model, directory2);
|
|
33004
33013
|
}, "openPictureEmbedderFor");
|
|
33005
33014
|
|
|
33006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33007
33016
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
33008
33017
|
const metadata = note.frontMatter;
|
|
33009
33018
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -33018,7 +33027,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
33018
33027
|
};
|
|
33019
33028
|
}, "documentSource");
|
|
33020
33029
|
|
|
33021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33022
33031
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33023
33032
|
let root;
|
|
33024
33033
|
try {
|
|
@@ -33045,7 +33054,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33045
33054
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33046
33055
|
}, "titleTiers");
|
|
33047
33056
|
|
|
33048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33049
33058
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33050
33059
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33051
33060
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33324,13 +33333,13 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
33324
33333
|
meaningSkipped = error.message;
|
|
33325
33334
|
}
|
|
33326
33335
|
}
|
|
33327
|
-
const
|
|
33328
|
-
const titled =
|
|
33329
|
-
text: [titleQuery(
|
|
33336
|
+
const titleWords2 = plainQueryWords(rest);
|
|
33337
|
+
const titled = titleWords2 === void 0 ? { items: [], hasMore: false } : await searchNotesQuery(store, {
|
|
33338
|
+
text: [titleQuery(titleWords2), filter ?? ""].filter(Boolean).join(" AND "),
|
|
33330
33339
|
limit: Math.max(window3, CANDIDATES2),
|
|
33331
33340
|
...scope
|
|
33332
33341
|
});
|
|
33333
|
-
const tier =
|
|
33342
|
+
const tier = titleWords2 === void 0 ? [] : titleTiers(titled.items, titleWords2);
|
|
33334
33343
|
const tierRefs = new Set(tier.map(({ ref }) => ref));
|
|
33335
33344
|
const slice = meaning === void 0 && tier.length === 0;
|
|
33336
33345
|
const matched = await searchNotesQuery(store, {
|
|
@@ -33462,7 +33471,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33462
33471
|
};
|
|
33463
33472
|
}, "searchNotesOf");
|
|
33464
33473
|
|
|
33465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33466
33475
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33467
33476
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33468
33477
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33579,8 +33588,8 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33579
33588
|
};
|
|
33580
33589
|
}, "searchEvents");
|
|
33581
33590
|
|
|
33582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33583
|
-
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
33591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
33592
|
+
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
33584
33593
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
33585
33594
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
33586
33595
|
const { root } = parseLucene(text2, MESSAGE_PARSING);
|
|
@@ -33588,6 +33597,15 @@ var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
|
33588
33597
|
const top = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
33589
33598
|
return top.every(({ node, occur }) => occur !== "must_not" && followable(node, occur === "must")) ? planQuestion(text2).scope : void 0;
|
|
33590
33599
|
}, "filtersBeside");
|
|
33600
|
+
var titleWords = /* @__PURE__ */ __name((text2) => {
|
|
33601
|
+
const { root } = parseLucene(text2, SEARCH_QUERY);
|
|
33602
|
+
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") ? node.value : (() => {
|
|
33604
|
+
throw new CliError("validation_error", "deals and leads are found by the words of their title only");
|
|
33605
|
+
})());
|
|
33606
|
+
return { words: words3, anyWord: clauses.length > 1 && clauses.every(({ occur }) => occur === "should") };
|
|
33607
|
+
}, "titleWords");
|
|
33608
|
+
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => kindIn(provider) === "crm"), "crmAccounts");
|
|
33591
33609
|
var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
33592
33610
|
if (!request.text.trim())
|
|
33593
33611
|
throw new CliError("validation_error", "say what to find");
|
|
@@ -33766,6 +33784,29 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33766
33784
|
foundBy: hit.found_by
|
|
33767
33785
|
})));
|
|
33768
33786
|
accounts.push(...read.map(({ provider, account: account2 }) => ({ resource, provider, account: account2 })));
|
|
33787
|
+
} else if (resource === "crm") {
|
|
33788
|
+
const { words: words3, anyWord } = titleWords(request.text);
|
|
33789
|
+
const chosen = request.scope?.crm;
|
|
33790
|
+
const found = await store.deals.find({
|
|
33791
|
+
words: words3,
|
|
33792
|
+
anyWord: anyWord || discover,
|
|
33793
|
+
limit: Math.min(window3 + 1, 500),
|
|
33794
|
+
...chosen === void 0 ? {} : { accounts: chosen }
|
|
33795
|
+
});
|
|
33796
|
+
hasMore ||= found.length > window3;
|
|
33797
|
+
lists.push(found.slice(0, window3).map((deal) => ({
|
|
33798
|
+
kind: deal.kind,
|
|
33799
|
+
ref: deal.ref,
|
|
33800
|
+
provider: deal.account?.provider ?? "crm",
|
|
33801
|
+
account: deal.account?.account ?? INTERNAL_NOTES,
|
|
33802
|
+
title: deal.title,
|
|
33803
|
+
timestamp: deal.updatedAt,
|
|
33804
|
+
text: deal.summary,
|
|
33805
|
+
foundBy: ["title"]
|
|
33806
|
+
})));
|
|
33807
|
+
const read = chosen ?? [...await crmAccounts(store), { provider: "crm", account: INTERNAL_NOTES }];
|
|
33808
|
+
for (const { provider, account: account2 } of read)
|
|
33809
|
+
accounts.push({ resource, provider, account: account2 });
|
|
33769
33810
|
} else
|
|
33770
33811
|
lists.push(await messagesOf(resource));
|
|
33771
33812
|
searched.push(resource);
|
|
@@ -33808,7 +33849,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
33808
33849
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
33809
33850
|
}, "oneList");
|
|
33810
33851
|
|
|
33811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33812
33853
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
33813
33854
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
33814
33855
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34053,7 +34094,8 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34053
34094
|
messages: named2("messages"),
|
|
34054
34095
|
mail: named2("mail"),
|
|
34055
34096
|
notes: named2("notes"),
|
|
34056
|
-
events: named2("events")
|
|
34097
|
+
events: named2("events"),
|
|
34098
|
+
crm: named2("crm")
|
|
34057
34099
|
},
|
|
34058
34100
|
...meetings[0] ? { meetingAccount: meetings[0] } : {}
|
|
34059
34101
|
}, messenger, searchMessages, meaning);
|
|
@@ -34061,7 +34103,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34061
34103
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34062
34104
|
}, "searchAllOfSource");
|
|
34063
34105
|
|
|
34064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34065
34107
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34066
34108
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34067
34109
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34250,7 +34292,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34250
34292
|
return { report, sources };
|
|
34251
34293
|
}, "searchServer");
|
|
34252
34294
|
|
|
34253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34254
34296
|
var DELETE_AT_ONCE = 10;
|
|
34255
34297
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34256
34298
|
const files = fileLinks(attachments);
|
|
@@ -34691,7 +34733,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
34691
34733
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
34692
34734
|
}, "checkMediaOptions");
|
|
34693
34735
|
|
|
34694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
34695
34737
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
34696
34738
|
var RULES = {
|
|
34697
34739
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -34706,7 +34748,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
34706
34748
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
34707
34749
|
}), "classifyChannel");
|
|
34708
34750
|
|
|
34709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
34710
34752
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
34711
34753
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
34712
34754
|
const store = await deps.store();
|
|
@@ -34792,7 +34834,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
34792
34834
|
};
|
|
34793
34835
|
}, "metadataService");
|
|
34794
34836
|
|
|
34795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
34796
34838
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
34797
34839
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
34798
34840
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -34829,7 +34871,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
34829
34871
|
return { chatId, rows, notes };
|
|
34830
34872
|
}, "moderateWith");
|
|
34831
34873
|
|
|
34832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
34833
34875
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
34834
34876
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
34835
34877
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -34907,7 +34949,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
34907
34949
|
}, "removePerson")
|
|
34908
34950
|
}), "moderatorOf");
|
|
34909
34951
|
|
|
34910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
34911
34953
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
34912
34954
|
id: note.id,
|
|
34913
34955
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -34951,7 +34993,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
34951
34993
|
};
|
|
34952
34994
|
}, "privatePeopleService");
|
|
34953
34995
|
|
|
34954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
34955
34997
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
34956
34998
|
total: 0,
|
|
34957
34999
|
population: 0,
|
|
@@ -35207,7 +35249,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35207
35249
|
}, "evidence")
|
|
35208
35250
|
}), "rankingsService");
|
|
35209
35251
|
|
|
35210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
35211
35253
|
var FIELDS = ["date", "chat", "kind"];
|
|
35212
35254
|
var WAITING_TAIL = 100;
|
|
35213
35255
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35334,7 +35376,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35334
35376
|
};
|
|
35335
35377
|
}, "replyStatsService");
|
|
35336
35378
|
|
|
35337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
35338
35380
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35339
35381
|
id: one.id,
|
|
35340
35382
|
name: one.name,
|
|
@@ -35463,7 +35505,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35463
35505
|
};
|
|
35464
35506
|
}, "searchesService");
|
|
35465
35507
|
|
|
35466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
35467
35509
|
var TAGGING_QUERY = {
|
|
35468
35510
|
entity: "tagging",
|
|
35469
35511
|
backend: "sql",
|
|
@@ -35547,7 +35589,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35547
35589
|
};
|
|
35548
35590
|
}, "tagsService");
|
|
35549
35591
|
|
|
35550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
35551
35593
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
35552
35594
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
35553
35595
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -35746,7 +35788,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35746
35788
|
};
|
|
35747
35789
|
}, "topicsService");
|
|
35748
35790
|
|
|
35749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
35750
35792
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
35751
35793
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
35752
35794
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -35820,7 +35862,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
35820
35862
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
35821
35863
|
}, "prepareEvidencePacket");
|
|
35822
35864
|
|
|
35823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
35824
35866
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
35825
35867
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
35826
35868
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -35840,7 +35882,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
35840
35882
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
35841
35883
|
}, "readEvidencePacket");
|
|
35842
35884
|
|
|
35843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
35844
35886
|
var scopeKeys = [
|
|
35845
35887
|
"accountId",
|
|
35846
35888
|
"meetingId",
|
|
@@ -35862,7 +35904,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
35862
35904
|
"maxVocabularyReadBytes"
|
|
35863
35905
|
]);
|
|
35864
35906
|
|
|
35865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
35866
35908
|
var communicationFields = {
|
|
35867
35909
|
sources: pipe(array(strictObject({
|
|
35868
35910
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -35894,7 +35936,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
35894
35936
|
return { ...input, after, before: before2 };
|
|
35895
35937
|
}, "communicationRequest");
|
|
35896
35938
|
|
|
35897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
35898
35940
|
var MEETING_PREPARATION_LIMITS = {
|
|
35899
35941
|
meetings: { min: 1, max: 20, default: 5 },
|
|
35900
35942
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -35967,7 +36009,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
35967
36009
|
};
|
|
35968
36010
|
}, "validateMeetingPreparationRequest");
|
|
35969
36011
|
|
|
35970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
35971
36013
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
35972
36014
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
35973
36015
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -36015,7 +36057,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
36015
36057
|
}
|
|
36016
36058
|
}, "validatePreparationCommunications");
|
|
36017
36059
|
|
|
36018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
36019
36061
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
36020
36062
|
const installer = ports.installer();
|
|
36021
36063
|
const argv = updateCommand(installer, packageName);
|
|
@@ -36080,7 +36122,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
36080
36122
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
36081
36123
|
}, "dayAfter");
|
|
36082
36124
|
|
|
36083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
36084
36126
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
36085
36127
|
const pictures = picturesService(deps);
|
|
36086
36128
|
const base = {
|
|
@@ -36117,7 +36159,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
36117
36159
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
36118
36160
|
}, "servicesFor");
|
|
36119
36161
|
|
|
36120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
36121
36163
|
import { createHash as createHash12 } from "node:crypto";
|
|
36122
36164
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
36123
36165
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36338,7 +36380,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
36338
36380
|
}, () => finish({ error: stopped() }));
|
|
36339
36381
|
}), "relayCommand");
|
|
36340
36382
|
|
|
36341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
36342
36384
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36343
36385
|
close: /* @__PURE__ */ __name(async () => {
|
|
36344
36386
|
}, "close"),
|