@wirecat/cli-memo 0.131.22 → 0.131.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-EZLU6CY7.js → all-profiles-VIPS6NHI.js} +7 -7
- package/dist/bundle/{anthropic-XC34PJH5.js → anthropic-2QZHSXBA.js} +5 -5
- package/dist/bundle/{app-server-PRQVGA5X.js → app-server-NTSADYGW.js} +38 -38
- package/dist/bundle/auto-MJWSDIMF.js +86 -0
- package/dist/bundle/{bun-CKGKUKW5.js → bun-KF5QK2YN.js} +2 -2
- package/dist/bundle/{bun-sqlite-S6KUSMTC.js → bun-sqlite-XUCC2PWC.js} +4 -4
- package/dist/bundle/{chunk-YAUDFROV.js → chunk-24P36RXS.js} +466 -337
- package/dist/bundle/{chunk-NELE7AIX.js → chunk-2IKXEL4V.js} +1 -1
- package/dist/bundle/{program-ZIRYOO2T.js → chunk-32FPXLNY.js} +879 -11256
- package/dist/bundle/{chunk-VDBFSLHP.js → chunk-37NN65PB.js} +5 -5
- package/dist/bundle/{chunk-4SGCOUQ6.js → chunk-44NQLD5C.js} +6 -6
- package/dist/bundle/{chunk-6JOT5KWM.js → chunk-46WO42ZW.js} +316 -255
- package/dist/bundle/{chunk-HXRIV2TV.js → chunk-4DKMYDLT.js} +42 -22
- package/dist/bundle/{chunk-KXERKAID.js → chunk-4QY7XOVI.js} +13 -13
- package/dist/bundle/{chunk-RNXYDBQO.js → chunk-5M4KSMYN.js} +52 -52
- package/dist/bundle/{chunk-IFWBFYXN.js → chunk-5WCEWK2F.js} +11 -11
- package/dist/bundle/{chunk-KUNA6MQZ.js → chunk-6EZ7XGRG.js} +1 -1
- package/dist/bundle/{chunk-UCINAEIA.js → chunk-6I7XGWGH.js} +5 -5
- package/dist/bundle/{chunk-PF3ALSAV.js → chunk-6PXE6QSQ.js} +1 -1
- package/dist/bundle/{chunk-DZSWKA3K.js → chunk-7PQOYNMA.js} +1 -1
- package/dist/bundle/{chunk-SMDWUPXE.js → chunk-AETJWLHX.js} +3 -3
- package/dist/bundle/{chunk-7W3RCCRR.js → chunk-AHFMQAJT.js} +10 -10
- package/dist/bundle/{chunk-CP5N3KH3.js → chunk-BIYSJBQR.js} +4 -4
- package/dist/bundle/{chunk-E5FQ7U7L.js → chunk-BSDOH7DN.js} +2 -2
- package/dist/bundle/{chunk-VECICKTE.js → chunk-BSR4QZW5.js} +2 -2
- package/dist/bundle/{chunk-2TBIVKBH.js → chunk-CKLCJ6O7.js} +5 -5
- package/dist/bundle/{chunk-LGNS4JVK.js → chunk-CTT5VK66.js} +5 -5
- package/dist/bundle/{chunk-VXHN3SWW.js → chunk-DIELPPLF.js} +2 -2
- package/dist/bundle/{chunk-2NJUPIAO.js → chunk-DIP3ENSY.js} +1 -1
- package/dist/bundle/{chunk-THGFFQCK.js → chunk-FXF34MI2.js} +2 -2
- package/dist/bundle/{chunk-3B645KUY.js → chunk-G4GEARGN.js} +9 -9
- package/dist/bundle/{chunk-QMMUPDRK.js → chunk-GDGY2KIX.js} +4 -4
- package/dist/bundle/{chunk-OUF6RCRZ.js → chunk-GQOFHKUX.js} +5 -5
- package/dist/bundle/{chunk-5RBLNI6C.js → chunk-H76MIWB2.js} +4 -4
- package/dist/bundle/{chunk-GV2FSWFS.js → chunk-HBXZ7WIV.js} +7 -7
- package/dist/bundle/{chunk-SO2YVKBK.js → chunk-IJI62T4U.js} +28 -28
- package/dist/bundle/{chunk-3V4WIGWC.js → chunk-JCCL7RGH.js} +2 -2
- package/dist/bundle/{chunk-RC7TIYUZ.js → chunk-JDNA36EX.js} +8 -8
- package/dist/bundle/{chunk-ILC7NFS2.js → chunk-JRJIFGU2.js} +4 -4
- package/dist/bundle/{chunk-EG2OMKWH.js → chunk-JY4LVWGZ.js} +12 -0
- package/dist/bundle/{chunk-IRDGD3QQ.js → chunk-KQ5P5NLL.js} +1 -1
- package/dist/bundle/{chunk-7F6FGMCC.js → chunk-L6FKTS3L.js} +7 -7
- package/dist/bundle/{chunk-VQM3H422.js → chunk-MJWFSOJN.js} +362 -179
- package/dist/bundle/{chunk-J35OGOCI.js → chunk-N5L6YYYW.js} +2 -2
- package/dist/bundle/{chunk-CCOYC6HL.js → chunk-NY4IKP35.js} +2 -2
- package/dist/bundle/{chunk-OFYKXQMS.js → chunk-O7OI5V7W.js} +7 -7
- package/dist/bundle/{chunk-RHJC4PHV.js → chunk-PDQFWOR5.js} +3 -3
- package/dist/bundle/{chunk-CBYZW5CC.js → chunk-QFO6K6CW.js} +45 -45
- package/dist/bundle/{chunk-WUCQ56RP.js → chunk-QSN5NUVL.js} +2 -2
- package/dist/bundle/{chunk-7MLWSUEK.js → chunk-QWRBAQZ7.js} +1 -1
- package/dist/bundle/{chunk-DNGHE2Q4.js → chunk-QZXHMQCM.js} +1 -1
- package/dist/bundle/{chunk-WEOFWTWZ.js → chunk-R4V63U6A.js} +3 -3
- package/dist/bundle/{chunk-BB2MGFOZ.js → chunk-RE5SEGSR.js} +3 -3
- package/dist/bundle/{chunk-LR5EY5JY.js → chunk-STZMKXK5.js} +3 -3
- package/dist/bundle/{chunk-CDZZ2DZO.js → chunk-T4LW6UYQ.js} +1 -1
- package/dist/bundle/{chunk-AIIQ7YU4.js → chunk-UJEO3VWA.js} +1 -1
- package/dist/bundle/{chunk-SXGAIQ5X.js → chunk-UMWR5PKA.js} +12 -12
- package/dist/bundle/{chunk-5UOOH7VG.js → chunk-UQA5UFJ2.js} +1 -1
- package/dist/bundle/{chunk-ZD3STMY7.js → chunk-V5ZID7KC.js} +1 -1
- package/dist/bundle/{chunk-XPRYBLTS.js → chunk-V7Y5FOYJ.js} +2 -2
- package/dist/bundle/{chunk-ZKWE5MCA.js → chunk-W53TRO7J.js} +410 -280
- package/dist/bundle/{chunk-MCPDL5YU.js → chunk-XRJIQC6P.js} +1 -1
- package/dist/bundle/{chunk-MHDLZCEO.js → chunk-XTARXRP6.js} +8 -8
- package/dist/bundle/{chunk-XA6YO24S.js → chunk-YKZNFSQE.js} +1 -1
- package/dist/bundle/{chunk-UG2V7BQY.js → chunk-Z6YD3YK4.js} +21 -21
- package/dist/bundle/{chunk-RG6ITTLQ.js → chunk-Z7XHH2Q5.js} +14 -14
- package/dist/bundle/{chunk-OJRLTJRS.js → chunk-ZCPUKUST.js} +1 -1
- package/dist/bundle/{command-contract-TMVGYSQQ.js → command-contract-XBYNZVP5.js} +13 -13
- package/dist/bundle/{decode-6XSZIZAA.js → decode-LFASKQPE.js} +4 -4
- package/dist/bundle/{dispatch-VUMQPYMA.js → dispatch-MELZFYOS.js} +1 -1
- package/dist/bundle/{echarts-NGS4QG4E.js → echarts-5AB3LFVD.js} +2 -2
- package/dist/bundle/{embed-YNH5M6UL.js → embed-6KQN523T.js} +5 -5
- package/dist/bundle/{embedder-LLNK4JF4.js → embedder-7SGPMINO.js} +8 -8
- package/dist/bundle/{entry-L42C5CHF.js → entry-CNZGHHZB.js} +6 -6
- package/dist/bundle/failure-LJAYEPTS.js +66 -0
- package/dist/bundle/{failure-Z2FXWIBY.js → failure-RBNZBCZJ.js} +1 -1
- package/dist/bundle/{first-run-TT6KMHKA.js → first-run-UI6UT4OR.js} +8 -8
- package/dist/bundle/first-screen-3WDPZZXV.js +30 -0
- package/dist/bundle/{instructions-4EJ4BBWD.js → instructions-52W6ZQTU.js} +1 -1
- package/dist/bundle/mcp-JIOYIKWO.js +90 -0
- package/dist/bundle/memo.js +9 -9
- package/dist/bundle/{node-QQXKQWNC.js → node-TL2PBNKO.js} +2 -2
- package/dist/bundle/{node-sqlite-GJI2GMLW.js → node-sqlite-64QIEQ37.js} +5 -5
- package/dist/bundle/{oauth-Q5VGUPUR.js → oauth-GH7GLGEJ.js} +6 -6
- package/dist/bundle/{open-NSXIYF3N.js → open-PCKU5XOH.js} +4 -4
- package/dist/bundle/{openai-LHH7MSGQ.js → openai-P5QVLTF6.js} +9 -9
- package/dist/bundle/{process-PI6XUJWP.js → process-PWAGP6YY.js} +1 -1
- package/dist/bundle/program-D7OTNHGU.js +10947 -0
- package/dist/bundle/{prompt-VFXA7IKL.js → prompt-FNBKJZLM.js} +4 -4
- package/dist/bundle/{recognize-UWAARXOH.js → recognize-5TKRMMA2.js} +3 -3
- package/dist/bundle/{remote-KGEVCB2Q.js → remote-XZJ7ZAKJ.js} +6 -6
- package/dist/bundle/{rerank-SCBTCBPO.js → rerank-JUH3QHX7.js} +6 -6
- package/dist/bundle/{serve-WPVKVR24.js → serve-JP6U3PUO.js} +8 -8
- package/dist/bundle/server-5M4YI3V4.js +48 -0
- package/dist/bundle/{server-VO5SXU5A.js → server-VXI43PF5.js} +53 -53
- package/dist/bundle/server-XAHF22CQ.js +61 -0
- package/dist/bundle/{setup-X6OJ3K4F.js → setup-YLI4S4TW.js} +42 -42
- package/dist/bundle/{state-KGHS4C6J.js → state-G4NEN2OZ.js} +5 -5
- package/dist/bundle/{store-VCVOIQES.js → store-NHFLFHD5.js} +11 -11
- package/dist/bundle/store-maintenance-command-6UEORZWI.js +48 -0
- package/dist/bundle/update-6SD2JZUC.js +69 -0
- package/dist/config-command.d.ts.map +1 -1
- package/dist/config-command.js +23 -2
- package/dist/config-command.js.map +1 -1
- package/dist/config.d.ts +11 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +50 -3
- package/dist/config.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +2 -0
- package/dist/examples.js.map +1 -1
- package/dist/mail/review-command.d.ts.map +1 -1
- package/dist/mail/review-command.js +6 -0
- package/dist/mail/review-command.js.map +1 -1
- package/dist/review/kinds.js +2 -2
- package/dist/review/kinds.js.map +1 -1
- package/dist/tasks/command.js +2 -2
- package/dist/tasks/command.js.map +1 -1
- package/dist/tasks/tasks.d.ts +1 -1
- package/dist/tasks/tasks.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-S3AYMAGB.js +0 -86
- package/dist/bundle/chunk-XW4KGSAA.js +0 -412
- package/dist/bundle/failure-TQJGSWRU.js +0 -66
- package/dist/bundle/first-screen-56KZKY77.js +0 -30
- package/dist/bundle/mcp-PNC3TI7O.js +0 -90
- package/dist/bundle/server-F2PSE6LG.js +0 -48
- package/dist/bundle/server-K5JYA3ZT.js +0 -61
- package/dist/bundle/store-maintenance-command-R4CP6AZN.js +0 -48
- package/dist/bundle/update-M6AIJ2SZ.js +0 -69
- /package/dist/bundle/{chunk-YYQN5ES2.js → chunk-WX2WLEEF.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UMWR5PKA.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -51,17 +51,17 @@ import {
|
|
|
51
51
|
typedCommand,
|
|
52
52
|
vectorModelKey,
|
|
53
53
|
withAttempt
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-MJWFSOJN.js";
|
|
55
55
|
import {
|
|
56
56
|
isCliFailure
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-JDNA36EX.js";
|
|
58
58
|
import {
|
|
59
59
|
isNewer,
|
|
60
60
|
updateCommand
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-JCCL7RGH.js";
|
|
62
62
|
import {
|
|
63
63
|
readOnlyLockOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-2IKXEL4V.js";
|
|
65
65
|
import {
|
|
66
66
|
AGENDA_COLUMNS,
|
|
67
67
|
CHAT_COLUMNS,
|
|
@@ -90,6 +90,7 @@ import {
|
|
|
90
90
|
TRACKED_CHAT_COLUMNS,
|
|
91
91
|
UNKNOWN_PROVIDER,
|
|
92
92
|
amountsOf,
|
|
93
|
+
assertGenericAction,
|
|
93
94
|
assertMayDecide,
|
|
94
95
|
attachmentColumns,
|
|
95
96
|
attachmentMaxBytes,
|
|
@@ -106,6 +107,7 @@ import {
|
|
|
106
107
|
counterObservationTime,
|
|
107
108
|
cutChunks,
|
|
108
109
|
decodeProjectAnnotationSnapshot,
|
|
110
|
+
delayStats,
|
|
109
111
|
dueDayOf,
|
|
110
112
|
entriesOfList,
|
|
111
113
|
envelopeErrors,
|
|
@@ -125,6 +127,7 @@ import {
|
|
|
125
127
|
isFolderProvider,
|
|
126
128
|
isKind,
|
|
127
129
|
isLocator,
|
|
130
|
+
isOwnerOnlyKind,
|
|
128
131
|
isQueryLimit,
|
|
129
132
|
isStemmed,
|
|
130
133
|
kindIn,
|
|
@@ -150,13 +153,14 @@ import {
|
|
|
150
153
|
queryFilter,
|
|
151
154
|
rankingContextRange,
|
|
152
155
|
rankingOptions,
|
|
156
|
+
rankingQuestion,
|
|
153
157
|
recordErrors,
|
|
154
158
|
searchError,
|
|
155
159
|
sourceOf,
|
|
156
160
|
threadConversation,
|
|
157
161
|
validateAst,
|
|
158
162
|
validateFields
|
|
159
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-24P36RXS.js";
|
|
160
164
|
import {
|
|
161
165
|
EVENT_QUERY,
|
|
162
166
|
MEETING_FINDINGS_KIND,
|
|
@@ -210,23 +214,23 @@ import {
|
|
|
210
214
|
validateQuery,
|
|
211
215
|
walkQuery,
|
|
212
216
|
zonedMoment
|
|
213
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-5M4KSMYN.js";
|
|
214
218
|
import {
|
|
215
219
|
DEFAULT_STEMMERS,
|
|
216
220
|
createStemmer,
|
|
217
221
|
fold,
|
|
218
222
|
normalize
|
|
219
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-L6FKTS3L.js";
|
|
220
224
|
import {
|
|
221
225
|
DEFAULT_TASK_CATEGORIES,
|
|
222
226
|
FALLBACK_CATEGORY
|
|
223
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-CKLCJ6O7.js";
|
|
224
228
|
import {
|
|
225
229
|
MAX_MODEL_IMAGE_BYTES
|
|
226
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-6EZ7XGRG.js";
|
|
227
231
|
import {
|
|
228
232
|
remoteKey
|
|
229
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-QSN5NUVL.js";
|
|
230
234
|
import {
|
|
231
235
|
Unzip,
|
|
232
236
|
UnzipInflate,
|
|
@@ -237,19 +241,19 @@ import {
|
|
|
237
241
|
placedText,
|
|
238
242
|
runEmbedders,
|
|
239
243
|
textModelsDirectory
|
|
240
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-CTT5VK66.js";
|
|
241
245
|
import {
|
|
242
246
|
installFiles,
|
|
243
247
|
megabytes
|
|
244
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-STZMKXK5.js";
|
|
245
249
|
import {
|
|
246
250
|
storePath,
|
|
247
251
|
wirecatDirectory
|
|
248
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-DIELPPLF.js";
|
|
249
253
|
import {
|
|
250
254
|
resolvePaths,
|
|
251
255
|
writeSecurely
|
|
252
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-T4LW6UYQ.js";
|
|
253
257
|
import {
|
|
254
258
|
array,
|
|
255
259
|
boolean,
|
|
@@ -272,7 +276,7 @@ import {
|
|
|
272
276
|
string,
|
|
273
277
|
transform,
|
|
274
278
|
unknown
|
|
275
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-JY4LVWGZ.js";
|
|
276
280
|
import {
|
|
277
281
|
importFrom,
|
|
278
282
|
resolveFrom
|
|
@@ -16898,7 +16902,7 @@ var require_lib3 = __commonJS({
|
|
|
16898
16902
|
}
|
|
16899
16903
|
});
|
|
16900
16904
|
|
|
16901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16902
16906
|
var RULES_VERSION = 5;
|
|
16903
16907
|
var LOOK_BACK = 50;
|
|
16904
16908
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16988,13 +16992,13 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16988
16992
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16989
16993
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16990
16994
|
|
|
16991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16992
16996
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16993
16997
|
|
|
16994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
16995
16999
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
16996
17000
|
|
|
16997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
16998
17002
|
var ORGANIZATIONS_QUERY = {
|
|
16999
17003
|
entity: "organization",
|
|
17000
17004
|
backend: "sql",
|
|
@@ -17029,7 +17033,7 @@ var REMINDERS_QUERY = {
|
|
|
17029
17033
|
})
|
|
17030
17034
|
};
|
|
17031
17035
|
|
|
17032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17033
17037
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17034
17038
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17035
17039
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17051,7 +17055,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17051
17055
|
}
|
|
17052
17056
|
}, "previewProjectAnnotationSnapshot");
|
|
17053
17057
|
|
|
17054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17055
17059
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17056
17060
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17057
17061
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17072,7 +17076,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17072
17076
|
}
|
|
17073
17077
|
}, "snapshotProjectAnnotations");
|
|
17074
17078
|
|
|
17075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17076
17080
|
var COMMAND_NEEDS = {
|
|
17077
17081
|
"account update": ["updateProfile", "change the profile"],
|
|
17078
17082
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17122,7 +17126,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17122
17126
|
return group;
|
|
17123
17127
|
}, "hideNever");
|
|
17124
17128
|
|
|
17125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17126
17130
|
var AUDIT_PAGE = 200;
|
|
17127
17131
|
var AUDIT_BUDGET = 10;
|
|
17128
17132
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17202,7 +17206,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17202
17206
|
return found;
|
|
17203
17207
|
}, "burstJoins");
|
|
17204
17208
|
|
|
17205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17206
17210
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17207
17211
|
command.allowUnknownOption();
|
|
17208
17212
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17222,7 +17226,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17222
17226
|
return command;
|
|
17223
17227
|
}, "queryWordsAfterOptions");
|
|
17224
17228
|
|
|
17225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17226
17230
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17227
17231
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17228
17232
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17264,7 +17268,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17264
17268
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17265
17269
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17266
17270
|
|
|
17267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17268
17272
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17269
17273
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17270
17274
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17287,7 +17291,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17287
17291
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17288
17292
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17289
17293
|
|
|
17290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17291
17295
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17292
17296
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17293
17297
|
const zone = timezoneOf();
|
|
@@ -17373,7 +17377,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17373
17377
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17374
17378
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17375
17379
|
|
|
17376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17377
17381
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17378
17382
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17379
17383
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17505,7 +17509,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17505
17509
|
}, "addMeetingCommandsDefinition");
|
|
17506
17510
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17507
17511
|
|
|
17508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17509
17513
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17510
17514
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17511
17515
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17638,7 +17642,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17638
17642
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17639
17643
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17640
17644
|
|
|
17641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17642
17646
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17643
17647
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17644
17648
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17647,7 +17651,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17647
17651
|
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");
|
|
17648
17652
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17649
17653
|
|
|
17650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17651
17655
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17652
17656
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17653
17657
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17909,7 +17913,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17909
17913
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17910
17914
|
}), "sessionAnswer");
|
|
17911
17915
|
|
|
17912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17913
17917
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17914
17918
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17915
17919
|
if (key in own)
|
|
@@ -17926,12 +17930,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17926
17930
|
return found.bind(adapter);
|
|
17927
17931
|
}, "capability");
|
|
17928
17932
|
|
|
17929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17930
17934
|
import { randomBytes } from "node:crypto";
|
|
17931
17935
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17932
17936
|
var newOperationId = newSendId;
|
|
17933
17937
|
|
|
17934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17935
17939
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17936
17940
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17937
17941
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18008,7 +18012,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18008
18012
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18009
18013
|
}, "storeOnlyDeps");
|
|
18010
18014
|
|
|
18011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18012
18016
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18013
18017
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18014
18018
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18031,10 +18035,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18031
18035
|
}
|
|
18032
18036
|
}, "patiently");
|
|
18033
18037
|
|
|
18034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18035
18039
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18036
18040
|
|
|
18037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18038
18042
|
var REQUEST_MS = 400;
|
|
18039
18043
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18040
18044
|
const lowest = ranges[0];
|
|
@@ -18057,13 +18061,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18057
18061
|
};
|
|
18058
18062
|
}, "estimateBackfill");
|
|
18059
18063
|
|
|
18060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18061
18065
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18062
18066
|
...error,
|
|
18063
18067
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18064
18068
|
}), "withRecovery");
|
|
18065
18069
|
|
|
18066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18067
18071
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18068
18072
|
if (isCliFailure(error))
|
|
18069
18073
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18146,7 +18150,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18146
18150
|
};
|
|
18147
18151
|
}, "mergeBatches");
|
|
18148
18152
|
|
|
18149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18150
18154
|
var TAKES = {
|
|
18151
18155
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18152
18156
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18206,7 +18210,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18206
18210
|
throw wrongAccount(reference, scope, profiles);
|
|
18207
18211
|
}, "ensureAccount");
|
|
18208
18212
|
|
|
18209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18210
18214
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18211
18215
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18212
18216
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18251,7 +18255,7 @@ ${lines3}`, { candidates });
|
|
|
18251
18255
|
}, "ambiguous");
|
|
18252
18256
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18253
18257
|
|
|
18254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18255
18259
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18256
18260
|
if (deps.reads !== "store")
|
|
18257
18261
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18410,7 +18414,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18410
18414
|
}
|
|
18411
18415
|
}, "senderAmong");
|
|
18412
18416
|
|
|
18413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18414
18418
|
var CONTEXT_MESSAGES = 3;
|
|
18415
18419
|
var CONTEXT_MINUTES = 10;
|
|
18416
18420
|
var MAX_CHARS = 1200;
|
|
@@ -18434,12 +18438,12 @@ var context = {
|
|
|
18434
18438
|
}, "describe")
|
|
18435
18439
|
};
|
|
18436
18440
|
|
|
18437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18438
18442
|
var BUILT_INS = [context];
|
|
18439
18443
|
var providers = [...BUILT_INS];
|
|
18440
18444
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18441
18445
|
|
|
18442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18443
18447
|
var READ_PAGE = 5e3;
|
|
18444
18448
|
var CHAIN = 50;
|
|
18445
18449
|
var CONVERSATION_QUERY = {
|
|
@@ -18591,7 +18595,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18591
18595
|
return size4;
|
|
18592
18596
|
}, "sized");
|
|
18593
18597
|
|
|
18594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18595
18599
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18596
18600
|
var MESSAGE_PAGE = 5e3;
|
|
18597
18601
|
var PER_SESSION = 8;
|
|
@@ -18610,7 +18614,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18610
18614
|
price: remote.price,
|
|
18611
18615
|
installed: true,
|
|
18612
18616
|
perBatch: PER_REQUEST * concurrency,
|
|
18613
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18617
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-XZJ7ZAKJ.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18614
18618
|
};
|
|
18615
18619
|
}
|
|
18616
18620
|
const model = textModel(choice);
|
|
@@ -18627,7 +18631,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18627
18631
|
if (!isTextModelInstalled(model, directory2))
|
|
18628
18632
|
throw notDownloaded(model.id);
|
|
18629
18633
|
if (apart) {
|
|
18630
|
-
const { openProcess } = await import("./process-
|
|
18634
|
+
const { openProcess } = await import("./process-PWAGP6YY.js");
|
|
18631
18635
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18632
18636
|
}
|
|
18633
18637
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -18916,7 +18920,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
18916
18920
|
return { ...one2, state };
|
|
18917
18921
|
}, "shaped");
|
|
18918
18922
|
|
|
18919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
18920
18924
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
18921
18925
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
18922
18926
|
for (const [key, value, maximum] of [
|
|
@@ -18969,7 +18973,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
18969
18973
|
}
|
|
18970
18974
|
}, "catchUpSearch");
|
|
18971
18975
|
|
|
18972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18973
18977
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
18974
18978
|
if (deps.reads === "store") {
|
|
18975
18979
|
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`);
|
|
@@ -19335,7 +19339,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19335
19339
|
return message?.timestamp ?? fallback;
|
|
19336
19340
|
}, "timeOfKey");
|
|
19337
19341
|
|
|
19338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19339
19343
|
var LINKS = /https?:\/\/\S+/g;
|
|
19340
19344
|
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");
|
|
19341
19345
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19365,7 +19369,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19365
19369
|
});
|
|
19366
19370
|
}, "questions");
|
|
19367
19371
|
|
|
19368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19369
19373
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19370
19374
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19371
19375
|
const name = typed.trim().toLowerCase();
|
|
@@ -19422,7 +19426,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19422
19426
|
return best.name;
|
|
19423
19427
|
}, "categorize");
|
|
19424
19428
|
|
|
19425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19426
19430
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19427
19431
|
var RULES_IN = {
|
|
19428
19432
|
dialog: "all",
|
|
@@ -19628,7 +19632,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19628
19632
|
return passes;
|
|
19629
19633
|
}, "applyTaskRulesToChats");
|
|
19630
19634
|
|
|
19631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19632
19636
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19633
19637
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19634
19638
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19692,7 +19696,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19692
19696
|
}
|
|
19693
19697
|
}, "validateContextEvidencePage");
|
|
19694
19698
|
|
|
19695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19696
19700
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19697
19701
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19698
19702
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19745,7 +19749,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19745
19749
|
};
|
|
19746
19750
|
}, "contextReadBudget");
|
|
19747
19751
|
|
|
19748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19749
19753
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19750
19754
|
if (!port || typeof port.read !== "function")
|
|
19751
19755
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19789,7 +19793,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19789
19793
|
};
|
|
19790
19794
|
}, "createContextEvidenceReader");
|
|
19791
19795
|
|
|
19792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19793
19797
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19794
19798
|
dryRun,
|
|
19795
19799
|
source: null,
|
|
@@ -19864,7 +19868,7 @@ var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun =
|
|
|
19864
19868
|
return receipt;
|
|
19865
19869
|
}, "ingest");
|
|
19866
19870
|
|
|
19867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19868
19872
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19869
19873
|
var DEFAULT_PURPOSES = ["work"];
|
|
19870
19874
|
var LINK_PURPOSE = "work";
|
|
@@ -19894,7 +19898,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19894
19898
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19895
19899
|
], "purposeList");
|
|
19896
19900
|
|
|
19897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19898
19902
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19899
19903
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19900
19904
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19934,7 +19938,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19934
19938
|
};
|
|
19935
19939
|
}, "dateWindow");
|
|
19936
19940
|
|
|
19937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19938
19942
|
var DAY_MS = 864e5;
|
|
19939
19943
|
var NEW_DAYS = 30;
|
|
19940
19944
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20011,7 +20015,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20011
20015
|
};
|
|
20012
20016
|
}, "scorePerson");
|
|
20013
20017
|
|
|
20014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20015
20019
|
var REGISTRIES = {
|
|
20016
20020
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20017
20021
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20096,7 +20100,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20096
20100
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20097
20101
|
})), "notCovered");
|
|
20098
20102
|
|
|
20099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20100
20104
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20101
20105
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20102
20106
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20184,7 +20188,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20184
20188
|
};
|
|
20185
20189
|
}, "botCheckService");
|
|
20186
20190
|
|
|
20187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20188
20192
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20189
20193
|
if (value === void 0)
|
|
20190
20194
|
return void 0;
|
|
@@ -20194,7 +20198,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20194
20198
|
return id2;
|
|
20195
20199
|
}, "threadIdOf");
|
|
20196
20200
|
|
|
20197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20198
20202
|
var TOP_POSTS = 5;
|
|
20199
20203
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20200
20204
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20311,7 +20315,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20311
20315
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20312
20316
|
}, "median");
|
|
20313
20317
|
|
|
20314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20315
20319
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20316
20320
|
const events = [];
|
|
20317
20321
|
for (const stay of stays) {
|
|
@@ -20343,7 +20347,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20343
20347
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20344
20348
|
}, "memberEvents");
|
|
20345
20349
|
|
|
20346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20347
20351
|
var EVENTS_DAYS = 7;
|
|
20348
20352
|
var TRACKED_DAYS = 30;
|
|
20349
20353
|
var STATS_PAGE = 1e3;
|
|
@@ -20638,7 +20642,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20638
20642
|
return members.length === 0 ? null : members;
|
|
20639
20643
|
}, "storedMembers");
|
|
20640
20644
|
|
|
20641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20642
20646
|
var INBOX_CHATS = 20;
|
|
20643
20647
|
var REVIEW_DAYS = 3;
|
|
20644
20648
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20846,7 +20850,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20846
20850
|
};
|
|
20847
20851
|
}, "inboxService");
|
|
20848
20852
|
|
|
20849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20850
20854
|
var CONTEXT_MESSAGES2 = 10;
|
|
20851
20855
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20852
20856
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21107,10 +21111,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21107
21111
|
};
|
|
21108
21112
|
}, "personMessages");
|
|
21109
21113
|
|
|
21110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21111
21115
|
import { createHash } from "node:crypto";
|
|
21112
21116
|
|
|
21113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21114
21118
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21115
21119
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21116
21120
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21128,7 +21132,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21128
21132
|
return { parsed, meeting };
|
|
21129
21133
|
}, "authorizedMeetingMetadata");
|
|
21130
21134
|
|
|
21131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21132
21136
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21133
21137
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21134
21138
|
if (signal?.aborted)
|
|
@@ -21327,7 +21331,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21327
21331
|
return { ...packet, fingerprint: hash(packet) };
|
|
21328
21332
|
}, "readMeetingEvidence");
|
|
21329
21333
|
|
|
21330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21331
21335
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21332
21336
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21333
21337
|
const requestedAccounts = options.accountIds;
|
|
@@ -21426,7 +21430,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21426
21430
|
};
|
|
21427
21431
|
}, "personMeetingContext");
|
|
21428
21432
|
|
|
21429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21430
21434
|
var PREPARE_BYTES = 96 * 1024;
|
|
21431
21435
|
var MEETINGS = 5;
|
|
21432
21436
|
var CUES = 3;
|
|
@@ -21543,7 +21547,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21543
21547
|
}
|
|
21544
21548
|
}, "meetingsOf");
|
|
21545
21549
|
|
|
21546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21547
21551
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21548
21552
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21549
21553
|
const held = await storeIfOpen(deps);
|
|
@@ -21613,7 +21617,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21613
21617
|
complete: false
|
|
21614
21618
|
})), "quiet");
|
|
21615
21619
|
|
|
21616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21617
21621
|
var TIMELINE_ITEMS = 50;
|
|
21618
21622
|
var TIMELINE_MAX = 500;
|
|
21619
21623
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21668,7 +21672,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21668
21672
|
};
|
|
21669
21673
|
}, "personTimeline");
|
|
21670
21674
|
|
|
21671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21672
21676
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21673
21677
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21674
21678
|
const held = await storeIfOpen(deps);
|
|
@@ -21895,7 +21899,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21895
21899
|
return rest;
|
|
21896
21900
|
}, "withoutPhone");
|
|
21897
21901
|
|
|
21898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21899
21903
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21900
21904
|
const tags = /* @__PURE__ */ new Map();
|
|
21901
21905
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21904,7 +21908,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21904
21908
|
return tags;
|
|
21905
21909
|
}, "taskTagFilters");
|
|
21906
21910
|
|
|
21907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21908
21912
|
var TASK_QUERY = {
|
|
21909
21913
|
entity: "task",
|
|
21910
21914
|
backend: "sql",
|
|
@@ -22384,23 +22388,16 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22384
22388
|
};
|
|
22385
22389
|
}, "taskView");
|
|
22386
22390
|
|
|
22387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22388
22392
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22389
22393
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22390
22394
|
const proposal = await store.proposedActions.get(id2);
|
|
22391
|
-
|
|
22392
|
-
throw new CliError("validation_error", "review meeting findings through the dedicated findings command", {
|
|
22393
|
-
reason: "meeting-findings.dedicated-review"
|
|
22394
|
-
});
|
|
22395
|
-
if (proposal.kind === EVIDENCE_FINDINGS_KIND)
|
|
22396
|
-
throw new CliError("validation_error", "review evidence findings through the dedicated findings command", {
|
|
22397
|
-
reason: "evidence-findings.dedicated-review"
|
|
22398
|
-
});
|
|
22395
|
+
assertGenericAction(proposal.kind);
|
|
22399
22396
|
if (proposal.status !== "proposed")
|
|
22400
22397
|
throw new CliError("validation_error", `a ${proposal.status} action cannot be approved`, {
|
|
22401
22398
|
reason: "proposal.wrong-state"
|
|
22402
22399
|
});
|
|
22403
|
-
assertMayDecide({ id: proposal.id, proposedBy: proposerOfAction(proposal) }, by, store.decisionPolicy);
|
|
22400
|
+
assertMayDecide({ id: proposal.id, kind: proposal.kind, proposedBy: proposerOfAction(proposal) }, by, store.decisionPolicy);
|
|
22404
22401
|
if (proposal.account === null)
|
|
22405
22402
|
throw new CliError("validation_error", "a proposal names the account that would act; this one names none");
|
|
22406
22403
|
const { task: task2 } = await createTaskService({ store: store.tasks }).add({
|
|
@@ -22414,7 +22411,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22414
22411
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22415
22412
|
}, "approveAsTask");
|
|
22416
22413
|
|
|
22417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22418
22415
|
var MAX_IDS = 500;
|
|
22419
22416
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22420
22417
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22454,7 +22451,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22454
22451
|
return ids;
|
|
22455
22452
|
}, "parseProposalIds");
|
|
22456
22453
|
|
|
22457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22458
22455
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22459
22456
|
if (author.type === "person")
|
|
22460
22457
|
return { type: "person", id: author.id };
|
|
@@ -22496,7 +22493,7 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22496
22493
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22497
22494
|
}, "storedStatus");
|
|
22498
22495
|
|
|
22499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22500
22497
|
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
22501
22498
|
id: action2.id,
|
|
22502
22499
|
kind: "action",
|
|
@@ -22511,14 +22508,15 @@ var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
|
22511
22508
|
score: null,
|
|
22512
22509
|
signals: null,
|
|
22513
22510
|
parts: null,
|
|
22514
|
-
createdAt: action2.createdAt
|
|
22511
|
+
createdAt: action2.createdAt,
|
|
22512
|
+
...isOwnerOnlyKind(action2.kind) ? { ownerOnly: true } : {}
|
|
22515
22513
|
}), "rowOf");
|
|
22516
22514
|
var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
22517
22515
|
kind: "action",
|
|
22518
22516
|
list: /* @__PURE__ */ __name(async (filter) => {
|
|
22519
22517
|
const status = storedStatus(filter);
|
|
22520
22518
|
const actions = await store.proposedActions.list({
|
|
22521
|
-
except: [...claimed(), MEETING_FINDINGS_KIND],
|
|
22519
|
+
except: [...claimed(), MEETING_FINDINGS_KIND, EVIDENCE_FINDINGS_KIND, MAIL_FINDINGS_KIND],
|
|
22522
22520
|
...status === void 0 ? {} : { status },
|
|
22523
22521
|
...pushed2(filter)
|
|
22524
22522
|
});
|
|
@@ -22535,7 +22533,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22535
22533
|
}, "decide")
|
|
22536
22534
|
}), "actionKind");
|
|
22537
22535
|
|
|
22538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22539
22537
|
var STATUS = {
|
|
22540
22538
|
proposed: "proposed",
|
|
22541
22539
|
accepted: "confirmed",
|
|
@@ -22578,7 +22576,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22578
22576
|
}, "decide")
|
|
22579
22577
|
}), "factKind");
|
|
22580
22578
|
|
|
22581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22582
22580
|
var rowOf3 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22583
22581
|
id: entry.ref,
|
|
22584
22582
|
kind,
|
|
@@ -22613,7 +22611,7 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22613
22611
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22614
22612
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22615
22613
|
|
|
22616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22617
22615
|
var FACT_SUMMARIES = {
|
|
22618
22616
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22619
22617
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22685,7 +22683,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22685
22683
|
};
|
|
22686
22684
|
}, "findingsKind");
|
|
22687
22685
|
|
|
22688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22689
22687
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22690
22688
|
id: `key:${link4.id}`,
|
|
22691
22689
|
kind: "key_document",
|
|
@@ -22753,7 +22751,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22753
22751
|
};
|
|
22754
22752
|
}, "keyDocumentKind");
|
|
22755
22753
|
|
|
22756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
22757
22755
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22758
22756
|
switch (finding.kind) {
|
|
22759
22757
|
case "task":
|
|
@@ -22832,7 +22830,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22832
22830
|
};
|
|
22833
22831
|
}, "mailFindingsKind");
|
|
22834
22832
|
|
|
22835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
22836
22834
|
var STATUS2 = {
|
|
22837
22835
|
proposed: "proposed",
|
|
22838
22836
|
confirmed: "confirmed",
|
|
@@ -22873,7 +22871,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22873
22871
|
}, "decide")
|
|
22874
22872
|
}), "memoryKind");
|
|
22875
22873
|
|
|
22876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
22877
22875
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
22878
22876
|
id: `link:${link4.id}`,
|
|
22879
22877
|
kind: "relationship",
|
|
@@ -22947,7 +22945,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
22947
22945
|
};
|
|
22948
22946
|
}, "relationshipKind");
|
|
22949
22947
|
|
|
22950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
22951
22949
|
var KIND = "relationship_update";
|
|
22952
22950
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
22953
22951
|
var rowOf7 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -22997,8 +22995,9 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22997
22995
|
}, "decide")
|
|
22998
22996
|
}), "relationshipUpdateKind");
|
|
22999
22997
|
|
|
23000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23001
22999
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23000
|
+
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23002
23001
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
23003
23002
|
if (!(error instanceof CliError))
|
|
23004
23003
|
throw error;
|
|
@@ -23036,12 +23035,15 @@ var emptyProposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23036
23035
|
throw new CliError("validation_error", "a proposal list takes a nonnegative offset");
|
|
23037
23036
|
const asked = filter.kinds === void 0 ? kinds : kinds.filter((kind) => filter.kinds?.includes(kind.kind));
|
|
23038
23037
|
const wide = { ...filter, offset: 0, limit: filter.offset + filter.limit + 1 };
|
|
23039
|
-
const rows = (await Promise.all(asked.map((kind) => kind.list(wide)))).flat();
|
|
23038
|
+
const rows = (await Promise.all(asked.map(async (kind) => (await kind.list(wide)).map((row) => marked(kind, row))))).flat();
|
|
23040
23039
|
rows.sort((a, b) => b.createdAt.localeCompare(a.createdAt) || b.id.localeCompare(a.id));
|
|
23041
23040
|
const page = rows.slice(filter.offset, filter.offset + filter.limit + 1);
|
|
23042
23041
|
return { items: page.slice(0, filter.limit), hasMore: page.length > filter.limit };
|
|
23043
23042
|
}, "list"),
|
|
23044
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23043
|
+
get: /* @__PURE__ */ __name(async (id2) => {
|
|
23044
|
+
const kind = await kindOf4(id2);
|
|
23045
|
+
return marked(kind, await kind.get(id2));
|
|
23046
|
+
}, "get"),
|
|
23045
23047
|
decide: /* @__PURE__ */ __name(async (ids, decision) => {
|
|
23046
23048
|
const parts = /* @__PURE__ */ new Map();
|
|
23047
23049
|
const whole4 = /* @__PURE__ */ new Set();
|
|
@@ -23074,7 +23076,7 @@ var emptyProposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23074
23076
|
refuseIds(id2, `a ${kind.kind} proposal has no parts; name ${id2} alone`);
|
|
23075
23077
|
continue;
|
|
23076
23078
|
}
|
|
23077
|
-
const row = await kind.get(id2);
|
|
23079
|
+
const row = marked(kind, await kind.get(id2));
|
|
23078
23080
|
if (row.status !== "proposed") {
|
|
23079
23081
|
refused.push({
|
|
23080
23082
|
id: id2,
|
|
@@ -23084,7 +23086,7 @@ var emptyProposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23084
23086
|
});
|
|
23085
23087
|
continue;
|
|
23086
23088
|
}
|
|
23087
|
-
const refusal2 = mayDecide(
|
|
23089
|
+
const refusal2 = mayDecide(row, decision.by, policy);
|
|
23088
23090
|
if (refusal2) {
|
|
23089
23091
|
refused.push(refusal2);
|
|
23090
23092
|
continue;
|
|
@@ -23117,7 +23119,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23117
23119
|
return registry;
|
|
23118
23120
|
}, "proposalRegistry");
|
|
23119
23121
|
|
|
23120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23121
23123
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23122
23124
|
if (newest === null)
|
|
23123
23125
|
return null;
|
|
@@ -23126,7 +23128,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23126
23128
|
return newest.addressed ? "owed" : null;
|
|
23127
23129
|
}, "mailTurn");
|
|
23128
23130
|
|
|
23129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23130
23132
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23131
23133
|
if (error instanceof CliError && error.code === "not_found")
|
|
23132
23134
|
return void 0;
|
|
@@ -23184,7 +23186,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23184
23186
|
};
|
|
23185
23187
|
}, "mailActivity");
|
|
23186
23188
|
|
|
23187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23188
23190
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23189
23191
|
const ids = [...new Set(chatIds)];
|
|
23190
23192
|
if (ids.length === 0)
|
|
@@ -23210,7 +23212,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23210
23212
|
}));
|
|
23211
23213
|
}, "chatCoverage");
|
|
23212
23214
|
|
|
23213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23214
23216
|
var DAY = 864e5;
|
|
23215
23217
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23216
23218
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23457,7 +23459,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23457
23459
|
};
|
|
23458
23460
|
}, "agendaItem");
|
|
23459
23461
|
|
|
23460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23461
23463
|
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");
|
|
23462
23464
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23463
23465
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23473,7 +23475,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23473
23475
|
}, "excerpt");
|
|
23474
23476
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23475
23477
|
|
|
23476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
23477
23479
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23478
23480
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
23479
23481
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -23512,7 +23514,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
23512
23514
|
return found;
|
|
23513
23515
|
}, "identitiesIn");
|
|
23514
23516
|
|
|
23515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
23516
23518
|
var SEARCH_LIMIT = 500;
|
|
23517
23519
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
23518
23520
|
var aliasHits = {
|
|
@@ -23561,7 +23563,7 @@ var aliasHits = {
|
|
|
23561
23563
|
}, "candidates")
|
|
23562
23564
|
};
|
|
23563
23565
|
|
|
23564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
23565
23567
|
var WEIGHT = 0.5;
|
|
23566
23568
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
23567
23569
|
var LARGE_GROUP = 30;
|
|
@@ -23613,7 +23615,7 @@ var chatSenders = {
|
|
|
23613
23615
|
}, "candidates")
|
|
23614
23616
|
};
|
|
23615
23617
|
|
|
23616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
23617
23619
|
var WEIGHT2 = 0.7;
|
|
23618
23620
|
var chatTitle = {
|
|
23619
23621
|
id: "chat-title",
|
|
@@ -23652,7 +23654,7 @@ var chatTitle = {
|
|
|
23652
23654
|
}, "candidates")
|
|
23653
23655
|
};
|
|
23654
23656
|
|
|
23655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
23656
23658
|
var WEIGHT3 = 0.3;
|
|
23657
23659
|
var CONTACTS = 500;
|
|
23658
23660
|
var MOST_PAIRS = 200;
|
|
@@ -23713,7 +23715,7 @@ var emailDomain = {
|
|
|
23713
23715
|
}, "candidates")
|
|
23714
23716
|
};
|
|
23715
23717
|
|
|
23716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
23717
23719
|
var NAMED = 0.7;
|
|
23718
23720
|
var MEMBER_ONLY = 0.3;
|
|
23719
23721
|
var READ_LIMIT2 = 500;
|
|
@@ -23786,7 +23788,7 @@ var mailThread = {
|
|
|
23786
23788
|
}, "candidates")
|
|
23787
23789
|
};
|
|
23788
23790
|
|
|
23789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
23790
23792
|
var WEIGHT4 = 0.5;
|
|
23791
23793
|
var memberChats = {
|
|
23792
23794
|
id: "member-chats",
|
|
@@ -23826,7 +23828,7 @@ var memberChats = {
|
|
|
23826
23828
|
}, "candidates")
|
|
23827
23829
|
};
|
|
23828
23830
|
|
|
23829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
23830
23832
|
var WEIGHT5 = 0.6;
|
|
23831
23833
|
var memberDialog = {
|
|
23832
23834
|
id: "member-dialog",
|
|
@@ -23860,7 +23862,7 @@ var memberDialog = {
|
|
|
23860
23862
|
}, "candidates")
|
|
23861
23863
|
};
|
|
23862
23864
|
|
|
23863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
23864
23866
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
23865
23867
|
async around(ref, window3) {
|
|
23866
23868
|
const at = parseLocator(ref);
|
|
@@ -23956,7 +23958,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23956
23958
|
};
|
|
23957
23959
|
}, "storedNeighbours");
|
|
23958
23960
|
|
|
23959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
23960
23962
|
import { createHash as createHash2 } from "node:crypto";
|
|
23961
23963
|
var DAY2 = 864e5;
|
|
23962
23964
|
var MAX_TIME = 864e13;
|
|
@@ -24272,7 +24274,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24272
24274
|
return value;
|
|
24273
24275
|
}, "decodeCheckpoint");
|
|
24274
24276
|
|
|
24275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24276
24278
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24277
24279
|
var PAGE2 = 20;
|
|
24278
24280
|
var PEOPLE = 20;
|
|
@@ -24676,7 +24678,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
24676
24678
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
24677
24679
|
}, "peopleOf");
|
|
24678
24680
|
|
|
24679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
24680
24682
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
24681
24683
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
24682
24684
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -24720,7 +24722,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
24720
24722
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
24721
24723
|
}, "matchVocabularyTerms");
|
|
24722
24724
|
|
|
24723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
24724
24726
|
var KINDS = ["project", "tag", "topic"];
|
|
24725
24727
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
24726
24728
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -24775,7 +24777,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
24775
24777
|
};
|
|
24776
24778
|
}, "findEvidenceMentions");
|
|
24777
24779
|
|
|
24778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
24779
24781
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
24780
24782
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
24781
24783
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25081,7 +25083,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25081
25083
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25082
25084
|
}, "purposeHintOf");
|
|
25083
25085
|
|
|
25084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
25085
25087
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25086
25088
|
var PERSON_SCORERS = [emailDomain];
|
|
25087
25089
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25289,18 +25291,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25289
25291
|
}, "referenceOf");
|
|
25290
25292
|
var rejectedReversed = /* @__PURE__ */ __name(async (store, candidate) => candidate.kind === "related-to" && candidate.to.startsWith("person:") && ((await store.knowledge.relationState(null, { from: candidate.to, to: candidate.from, kind: candidate.kind }))?.rejected ?? false), "rejectedReversed");
|
|
25291
25293
|
|
|
25292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25293
25295
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25294
25296
|
|
|
25295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25296
25298
|
import { lstat } from "node:fs/promises";
|
|
25297
25299
|
|
|
25298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25299
25301
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25300
25302
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25301
25303
|
import { join as join2 } from "node:path";
|
|
25302
25304
|
|
|
25303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25304
25306
|
import { createHash as createHash3 } from "node:crypto";
|
|
25305
25307
|
var metadataLimit = 16384;
|
|
25306
25308
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25360,7 +25362,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25360
25362
|
}
|
|
25361
25363
|
}, "readPartialMetadata");
|
|
25362
25364
|
|
|
25363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25364
25366
|
import { randomUUID } from "node:crypto";
|
|
25365
25367
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25366
25368
|
import { join } from "node:path";
|
|
@@ -25452,7 +25454,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25452
25454
|
};
|
|
25453
25455
|
}, "partialWriter");
|
|
25454
25456
|
|
|
25455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25456
25458
|
var NativeRecordingPartialStore = class {
|
|
25457
25459
|
static {
|
|
25458
25460
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25559,12 +25561,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25559
25561
|
}
|
|
25560
25562
|
};
|
|
25561
25563
|
|
|
25562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25563
25565
|
import { createHash as createHash5 } from "node:crypto";
|
|
25564
25566
|
import { link as link2 } from "node:fs/promises";
|
|
25565
25567
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
25566
25568
|
|
|
25567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25568
25570
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25569
25571
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25570
25572
|
signal?.throwIfAborted();
|
|
@@ -25599,7 +25601,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25599
25601
|
signal?.throwIfAborted();
|
|
25600
25602
|
}, "commitPublication");
|
|
25601
25603
|
|
|
25602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25603
25605
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
25604
25606
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25605
25607
|
import { join as join3 } from "node:path";
|
|
@@ -25672,7 +25674,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25672
25674
|
}
|
|
25673
25675
|
}, "writePublicationJournal");
|
|
25674
25676
|
|
|
25675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25676
25678
|
var NativeRecordingPublication = class {
|
|
25677
25679
|
static {
|
|
25678
25680
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25745,7 +25747,7 @@ var NativeRecordingPublication = class {
|
|
|
25745
25747
|
}
|
|
25746
25748
|
};
|
|
25747
25749
|
|
|
25748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25749
25751
|
import { createHash as createHash6 } from "node:crypto";
|
|
25750
25752
|
import { readdir } from "node:fs/promises";
|
|
25751
25753
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -25832,7 +25834,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
25832
25834
|
beforePublish
|
|
25833
25835
|
}), "commitMediaEntry");
|
|
25834
25836
|
|
|
25835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25836
25838
|
var validator = '"media-completed-v1"';
|
|
25837
25839
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
25838
25840
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -25933,7 +25935,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
25933
25935
|
return entry;
|
|
25934
25936
|
}, "archiveMediaFile");
|
|
25935
25937
|
|
|
25936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
25937
25939
|
import { mkdir, realpath } from "node:fs/promises";
|
|
25938
25940
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
25939
25941
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26000,7 +26002,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26000
26002
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26001
26003
|
}, "withMediaArchiveLocks");
|
|
26002
26004
|
|
|
26003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26004
26006
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26005
26007
|
if (value === void 0)
|
|
26006
26008
|
return void 0;
|
|
@@ -26153,7 +26155,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26153
26155
|
}, { create: true });
|
|
26154
26156
|
}, "archiveMedia");
|
|
26155
26157
|
|
|
26156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26157
26159
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26158
26160
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26159
26161
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26306,7 +26308,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26306
26308
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26307
26309
|
}, "moveMediaArchive");
|
|
26308
26310
|
|
|
26309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26310
26312
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26311
26313
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26312
26314
|
}, "progress") }) => {
|
|
@@ -26329,7 +26331,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26329
26331
|
}
|
|
26330
26332
|
await nativeRuntime({ env, progress });
|
|
26331
26333
|
progress(`${model.id}: loading it once to check it works`);
|
|
26332
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26334
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-6KQN523T.js");
|
|
26333
26335
|
const embedder = await openEmbedder2(model, directory2);
|
|
26334
26336
|
try {
|
|
26335
26337
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26350,7 +26352,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26350
26352
|
}
|
|
26351
26353
|
await nativeRuntime({ env, progress });
|
|
26352
26354
|
progress(`${model.id}: loading it once to check it works`);
|
|
26353
|
-
const { openReranker } = await import("./rerank-
|
|
26355
|
+
const { openReranker } = await import("./rerank-JUH3QHX7.js");
|
|
26354
26356
|
const reranker = await openReranker(model, directory2);
|
|
26355
26357
|
try {
|
|
26356
26358
|
await reranker.score("check", ["check"]);
|
|
@@ -26368,7 +26370,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26368
26370
|
await installFiles(placedImage(model, directory2), { progress });
|
|
26369
26371
|
}
|
|
26370
26372
|
progress(`${model.id}: loading it once to check it works`);
|
|
26371
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26373
|
+
const { openPictureEmbedder } = await import("./embedder-7SGPMINO.js");
|
|
26372
26374
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26373
26375
|
try {
|
|
26374
26376
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26380,7 +26382,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26380
26382
|
return { model, directory: directory2 };
|
|
26381
26383
|
}, "downloadImageModel");
|
|
26382
26384
|
|
|
26383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26384
26386
|
var MONEY_REQUEST = "money-request";
|
|
26385
26387
|
var MONEY_DONE = "money-done";
|
|
26386
26388
|
var PROMISE = "promise";
|
|
@@ -26414,10 +26416,10 @@ var MONEY_WORDS = [
|
|
|
26414
26416
|
}
|
|
26415
26417
|
];
|
|
26416
26418
|
|
|
26417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26418
26420
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26419
26421
|
|
|
26420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26421
26423
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26422
26424
|
var MONEY_DONE_FORMS = words([
|
|
26423
26425
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26457,7 +26459,7 @@ var PROMISE_FORMS = words([
|
|
|
26457
26459
|
"estar\xE1 listo"
|
|
26458
26460
|
]);
|
|
26459
26461
|
|
|
26460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26461
26463
|
var EXCERPT_CHARS = 80;
|
|
26462
26464
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26463
26465
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26479,7 +26481,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26479
26481
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26480
26482
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26481
26483
|
|
|
26482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26483
26485
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26484
26486
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26485
26487
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26559,7 +26561,7 @@ var amounts = {
|
|
|
26559
26561
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
26560
26562
|
};
|
|
26561
26563
|
|
|
26562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26563
26565
|
var children = {
|
|
26564
26566
|
id: "children",
|
|
26565
26567
|
version: 1,
|
|
@@ -26588,7 +26590,7 @@ var children = {
|
|
|
26588
26590
|
}, "read")
|
|
26589
26591
|
};
|
|
26590
26592
|
|
|
26591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26592
26594
|
var coverage = {
|
|
26593
26595
|
id: "coverage",
|
|
26594
26596
|
version: 1,
|
|
@@ -26617,7 +26619,7 @@ var coverage = {
|
|
|
26617
26619
|
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")
|
|
26618
26620
|
};
|
|
26619
26621
|
|
|
26620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/last-message.js
|
|
26621
26623
|
var lastMessage = {
|
|
26622
26624
|
id: "last-message",
|
|
26623
26625
|
version: 1,
|
|
@@ -26639,7 +26641,7 @@ var lastMessage = {
|
|
|
26639
26641
|
}, "read")
|
|
26640
26642
|
};
|
|
26641
26643
|
|
|
26642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26643
26645
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26644
26646
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26645
26647
|
signal: "payments",
|
|
@@ -26689,7 +26691,7 @@ var payments = {
|
|
|
26689
26691
|
}, "read")
|
|
26690
26692
|
};
|
|
26691
26693
|
|
|
26692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26693
26695
|
var PATTERNS_PER_CHAT = 3;
|
|
26694
26696
|
var DAY3 = 864e5;
|
|
26695
26697
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26778,7 +26780,7 @@ var promises = {
|
|
|
26778
26780
|
}, "read")
|
|
26779
26781
|
};
|
|
26780
26782
|
|
|
26781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26782
26784
|
var PER_SIDE = 5;
|
|
26783
26785
|
var WEEK = 7 * 864e5;
|
|
26784
26786
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26809,7 +26811,7 @@ var questions2 = {
|
|
|
26809
26811
|
}, "attention")
|
|
26810
26812
|
};
|
|
26811
26813
|
|
|
26812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26813
26815
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26814
26816
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
26815
26817
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -26877,7 +26879,7 @@ var replyNext = {
|
|
|
26877
26879
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
26878
26880
|
};
|
|
26879
26881
|
|
|
26880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
26881
26883
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
26882
26884
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
26883
26885
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -26923,7 +26925,7 @@ var topics = {
|
|
|
26923
26925
|
}, "read")
|
|
26924
26926
|
};
|
|
26925
26927
|
|
|
26926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
26927
26929
|
var STATUS_SIGNALS = [
|
|
26928
26930
|
lastMessage,
|
|
26929
26931
|
replyNext,
|
|
@@ -26936,7 +26938,7 @@ var STATUS_SIGNALS = [
|
|
|
26936
26938
|
children
|
|
26937
26939
|
];
|
|
26938
26940
|
|
|
26939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
26940
26942
|
var DAY4 = 864e5;
|
|
26941
26943
|
var STATUS_WINDOW = 300;
|
|
26942
26944
|
var STATUS_CHATS = 16;
|
|
@@ -27118,7 +27120,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27118
27120
|
};
|
|
27119
27121
|
}, "projectStatus");
|
|
27120
27122
|
|
|
27121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27122
27124
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27123
27125
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27124
27126
|
if (deps.offline)
|
|
@@ -27190,7 +27192,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27190
27192
|
};
|
|
27191
27193
|
}, "accountService");
|
|
27192
27194
|
|
|
27193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27194
27196
|
var MINUTE = 6e4;
|
|
27195
27197
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27196
27198
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27209,7 +27211,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27209
27211
|
return new Date(at - at % MINUTE).toISOString();
|
|
27210
27212
|
}, "sendTime");
|
|
27211
27213
|
|
|
27212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27213
27215
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27214
27216
|
try {
|
|
27215
27217
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27456,7 +27458,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27456
27458
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27457
27459
|
}, "linkLimits");
|
|
27458
27460
|
|
|
27459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27460
27462
|
var THREADS_PAGE = 500;
|
|
27461
27463
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27462
27464
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27535,7 +27537,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27535
27537
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27536
27538
|
}, "readMail");
|
|
27537
27539
|
|
|
27538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27539
27541
|
var NO_MAIL = "no_mail";
|
|
27540
27542
|
var MAIL = "email";
|
|
27541
27543
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27582,7 +27584,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27582
27584
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27583
27585
|
}, "accountsOfKind");
|
|
27584
27586
|
|
|
27585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27586
27588
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27587
27589
|
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");
|
|
27588
27590
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -27930,7 +27932,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
27930
27932
|
};
|
|
27931
27933
|
}, "statsLucene");
|
|
27932
27934
|
|
|
27933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
27934
27936
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
27935
27937
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
27936
27938
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28099,7 +28101,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28099
28101
|
};
|
|
28100
28102
|
}, "readRankingSelection");
|
|
28101
28103
|
|
|
28102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28103
28105
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one2) => canonical(one2, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one2]) => one2 !== void 0 && (nested || one2 !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one2]) => [key, canonical(one2, true)])) : value, "canonical");
|
|
28104
28106
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28105
28107
|
command,
|
|
@@ -28109,7 +28111,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28109
28111
|
fieldsVersion: FIELD_VERSION
|
|
28110
28112
|
}), "searchRecordOf");
|
|
28111
28113
|
|
|
28112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28113
28115
|
function invalid2(message) {
|
|
28114
28116
|
throw new CliError("validation_error", message);
|
|
28115
28117
|
}
|
|
@@ -28403,7 +28405,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28403
28405
|
}, "evidence")
|
|
28404
28406
|
}), "adminStatisticsService");
|
|
28405
28407
|
|
|
28406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28407
28409
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28408
28410
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28409
28411
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28540,16 +28542,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28540
28542
|
return { plan, repair };
|
|
28541
28543
|
}, "gapsService");
|
|
28542
28544
|
|
|
28543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28544
28546
|
import { createHash as createHash9 } from "node:crypto";
|
|
28545
28547
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28546
28548
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28547
28549
|
|
|
28548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28549
28551
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28550
28552
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28551
28553
|
|
|
28552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
28553
28555
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28554
28556
|
import { open as open4, stat } from "node:fs/promises";
|
|
28555
28557
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -28751,7 +28753,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
28751
28753
|
return { name, source };
|
|
28752
28754
|
}, "readStickerFile");
|
|
28753
28755
|
|
|
28754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28755
28757
|
var MAX_FILES = 1e4;
|
|
28756
28758
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
28757
28759
|
if (refusedPlace(directory2, app, env))
|
|
@@ -28820,15 +28822,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28820
28822
|
return choices;
|
|
28821
28823
|
}, "directoryPaths");
|
|
28822
28824
|
|
|
28823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28824
28826
|
import { posix } from "node:path";
|
|
28825
28827
|
|
|
28826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28827
28829
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28828
28830
|
import { crc32 } from "node:zlib";
|
|
28829
28831
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28830
28832
|
|
|
28831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28832
28834
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28833
28835
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28834
28836
|
var SAMPLE = 65536;
|
|
@@ -28893,11 +28895,11 @@ var sample = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28893
28895
|
return result;
|
|
28894
28896
|
}, "sample");
|
|
28895
28897
|
var decodeText = /* @__PURE__ */ __name((bytes2) => {
|
|
28896
|
-
const
|
|
28897
|
-
if (
|
|
28898
|
+
const marked2 = bom(bytes2);
|
|
28899
|
+
if (marked2 === "unsupported")
|
|
28898
28900
|
return { error: "unsupported_encoding" };
|
|
28899
|
-
if (
|
|
28900
|
-
return decode(bytes2,
|
|
28901
|
+
if (marked2)
|
|
28902
|
+
return decode(bytes2, marked2);
|
|
28901
28903
|
const utf8 = decode(bytes2, "utf-8");
|
|
28902
28904
|
if (!("error" in utf8) || utf8.error === "binary")
|
|
28903
28905
|
return utf8;
|
|
@@ -28920,17 +28922,17 @@ var decodeText = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28920
28922
|
return decode(bytes2, best[0]);
|
|
28921
28923
|
}, "decodeText");
|
|
28922
28924
|
var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
28923
|
-
const
|
|
28924
|
-
if (
|
|
28925
|
+
const marked2 = bom(bytes2);
|
|
28926
|
+
if (marked2 === "unsupported")
|
|
28925
28927
|
throw new Error("unsupported_encoding");
|
|
28926
28928
|
const declaration = new TextDecoder("ascii").decode(bytes2.subarray(0, 256)).match(/^\s*<\?xml[^>]*\bencoding=["']([^"']+)["']/i);
|
|
28927
|
-
const result = decode(bytes2,
|
|
28929
|
+
const result = decode(bytes2, marked2 ?? declaration?.[1] ?? "utf-8");
|
|
28928
28930
|
if ("error" in result)
|
|
28929
28931
|
throw new Error(result.error);
|
|
28930
28932
|
return result.text;
|
|
28931
28933
|
}, "decodeXml");
|
|
28932
28934
|
|
|
28933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28934
28936
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28935
28937
|
var MAX_ENTRIES = 1e3;
|
|
28936
28938
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29145,7 +29147,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29145
29147
|
return found;
|
|
29146
29148
|
}, "elements");
|
|
29147
29149
|
|
|
29148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29149
29151
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29150
29152
|
let name = "";
|
|
29151
29153
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29200,7 +29202,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29200
29202
|
return { text: parts.join("").trim(), truncated: false };
|
|
29201
29203
|
}, "sheetText");
|
|
29202
29204
|
|
|
29203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29204
29206
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29205
29207
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29206
29208
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29600,10 +29602,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29600
29602
|
}
|
|
29601
29603
|
}, "readDocument");
|
|
29602
29604
|
|
|
29603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29604
29606
|
import { extname as extname3 } from "node:path";
|
|
29605
29607
|
|
|
29606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29607
29609
|
import { readFileSync } from "node:fs";
|
|
29608
29610
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29609
29611
|
import { fileURLToPath } from "node:url";
|
|
@@ -29664,7 +29666,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29664
29666
|
}
|
|
29665
29667
|
}, "derived");
|
|
29666
29668
|
|
|
29667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29668
29670
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29669
29671
|
var image2 = {
|
|
29670
29672
|
id: "image",
|
|
@@ -29673,7 +29675,7 @@ var image2 = {
|
|
|
29673
29675
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29674
29676
|
};
|
|
29675
29677
|
|
|
29676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29677
29679
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29678
29680
|
var doc = {
|
|
29679
29681
|
id: "doc",
|
|
@@ -29685,7 +29687,7 @@ var doc = {
|
|
|
29685
29687
|
}), "read")
|
|
29686
29688
|
};
|
|
29687
29689
|
|
|
29688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29689
29691
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29690
29692
|
var docx = {
|
|
29691
29693
|
id: "docx",
|
|
@@ -29698,7 +29700,7 @@ var docx = {
|
|
|
29698
29700
|
}), "read")
|
|
29699
29701
|
};
|
|
29700
29702
|
|
|
29701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29702
29704
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29703
29705
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29704
29706
|
"fonttbl",
|
|
@@ -29874,7 +29876,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
29874
29876
|
}, "htmlText");
|
|
29875
29877
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
29876
29878
|
|
|
29877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29878
29880
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29879
29881
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29880
29882
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29930,7 +29932,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29930
29932
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29931
29933
|
}, "markdownSections");
|
|
29932
29934
|
|
|
29933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29934
29936
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29935
29937
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29936
29938
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30001,7 +30003,7 @@ var html = {
|
|
|
30001
30003
|
}, "read")
|
|
30002
30004
|
};
|
|
30003
30005
|
|
|
30004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30005
30007
|
var office = {
|
|
30006
30008
|
id: "office",
|
|
30007
30009
|
version: documentExtractor("odt"),
|
|
@@ -30012,7 +30014,7 @@ var office = {
|
|
|
30012
30014
|
}, "read")
|
|
30013
30015
|
};
|
|
30014
30016
|
|
|
30015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30016
30018
|
var pdf = {
|
|
30017
30019
|
id: "pdf",
|
|
30018
30020
|
version: "unpdf",
|
|
@@ -30079,7 +30081,7 @@ var pdf = {
|
|
|
30079
30081
|
}), "read")
|
|
30080
30082
|
};
|
|
30081
30083
|
|
|
30082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30083
30085
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30084
30086
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30085
30087
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30099,7 +30101,7 @@ var plain = {
|
|
|
30099
30101
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30100
30102
|
};
|
|
30101
30103
|
|
|
30102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30103
30105
|
var rtf = {
|
|
30104
30106
|
id: "rtf",
|
|
30105
30107
|
version: "v1",
|
|
@@ -30107,10 +30109,10 @@ var rtf = {
|
|
|
30107
30109
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30108
30110
|
};
|
|
30109
30111
|
|
|
30110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30111
30113
|
import { basename as basename5 } from "node:path";
|
|
30112
30114
|
|
|
30113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30114
30116
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30115
30117
|
const cells = [];
|
|
30116
30118
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30148,7 +30150,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30148
30150
|
return { cells, truncated };
|
|
30149
30151
|
}, "delimitedSpans");
|
|
30150
30152
|
|
|
30151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30152
30154
|
var DELIMITED = {
|
|
30153
30155
|
".csv": ",",
|
|
30154
30156
|
".tsv": " ",
|
|
@@ -30187,7 +30189,7 @@ var sheets = {
|
|
|
30187
30189
|
}, "read")
|
|
30188
30190
|
};
|
|
30189
30191
|
|
|
30190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30191
30193
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30192
30194
|
var HEAD_BYTES = 1024;
|
|
30193
30195
|
var readers = [...BUILT_INS2];
|
|
@@ -30197,7 +30199,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30197
30199
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30198
30200
|
}, "readWithRegistry");
|
|
30199
30201
|
|
|
30200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30201
30203
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30202
30204
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30203
30205
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31276,7 +31278,7 @@ function imageSize(input) {
|
|
|
31276
31278
|
}
|
|
31277
31279
|
__name(imageSize, "imageSize");
|
|
31278
31280
|
|
|
31279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31280
31282
|
var MAX_PAGES = 20;
|
|
31281
31283
|
var MAX_PIXELS = 2e7;
|
|
31282
31284
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31427,7 +31429,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31427
31429
|
}
|
|
31428
31430
|
}, "ocrPdf");
|
|
31429
31431
|
|
|
31430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31431
31433
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31432
31434
|
const limits = pdfPreviewLimits(env);
|
|
31433
31435
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31504,7 +31506,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31504
31506
|
}
|
|
31505
31507
|
}, "pdfPreview");
|
|
31506
31508
|
|
|
31507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31508
31510
|
import { createHash as createHash8 } from "node:crypto";
|
|
31509
31511
|
import { constants } from "node:fs";
|
|
31510
31512
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31612,7 +31614,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31612
31614
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31613
31615
|
}, "transferMime");
|
|
31614
31616
|
|
|
31615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31616
31618
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31617
31619
|
import { link as link3, rm } from "node:fs/promises";
|
|
31618
31620
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -31726,7 +31728,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
31726
31728
|
}
|
|
31727
31729
|
}, "save");
|
|
31728
31730
|
|
|
31729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31730
31732
|
var ATTACHMENT_QUERY = {
|
|
31731
31733
|
entity: "attachment",
|
|
31732
31734
|
backend: "sql",
|
|
@@ -32149,7 +32151,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32149
32151
|
}, "setText")
|
|
32150
32152
|
}), "attachmentsService");
|
|
32151
32153
|
|
|
32152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32153
32155
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32154
32156
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32155
32157
|
const store = await accountStore(deps);
|
|
@@ -32179,7 +32181,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32179
32181
|
}, "list")
|
|
32180
32182
|
}), "chatDocumentsService");
|
|
32181
32183
|
|
|
32182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32183
32185
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32184
32186
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32185
32187
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32266,7 +32268,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32266
32268
|
}
|
|
32267
32269
|
}, "isRetentionSelection");
|
|
32268
32270
|
|
|
32269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32270
32272
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32271
32273
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32272
32274
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32473,7 +32475,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32473
32475
|
};
|
|
32474
32476
|
}, "countersService");
|
|
32475
32477
|
|
|
32476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32477
32479
|
var SYNC_KEY = "messages.sync-first";
|
|
32478
32480
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32479
32481
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32605,7 +32607,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32605
32607
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32606
32608
|
}), "withRefresh");
|
|
32607
32609
|
|
|
32608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32609
32611
|
var CANDIDATES = 50;
|
|
32610
32612
|
var WORD_HITS = 200;
|
|
32611
32613
|
var RRF_K = 60;
|
|
@@ -32723,7 +32725,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
32723
32725
|
}, deps.messenger);
|
|
32724
32726
|
const eligibility = filter === void 0 ? void 0 : await store.queries.conversationEligibility(prepared.execution);
|
|
32725
32727
|
const selected = prepared.selectedChat;
|
|
32726
|
-
const
|
|
32728
|
+
const scopeOf4 = /* @__PURE__ */ __name((one2) => selected ? selected.account.provider === one2.provider && selected.account.account === one2.account ? { chatId: selected.chatId } : null : {}, "scopeOf");
|
|
32727
32729
|
const words3 = await byWords(query, prepared, eligibility?.conversations, since);
|
|
32728
32730
|
const meaning = [];
|
|
32729
32731
|
const sources = words3.sources;
|
|
@@ -32731,7 +32733,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
32731
32733
|
await withEmbedder(deps, target2, choice, {}, async (embedder) => {
|
|
32732
32734
|
const [vector] = await embedder.embed([query], "query");
|
|
32733
32735
|
for (const one2 of prepared.scopeAccounts) {
|
|
32734
|
-
const scope =
|
|
32736
|
+
const scope = scopeOf4(one2);
|
|
32735
32737
|
if (scope === null)
|
|
32736
32738
|
continue;
|
|
32737
32739
|
const hits = await store.vectors.nearestConversations(one2, {
|
|
@@ -32765,7 +32767,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
32765
32767
|
const scoped = [];
|
|
32766
32768
|
const elsewhere = [];
|
|
32767
32769
|
for (const one2 of prepared.scopeAccounts) {
|
|
32768
|
-
const scope =
|
|
32770
|
+
const scope = scopeOf4(one2);
|
|
32769
32771
|
if (scope === null)
|
|
32770
32772
|
continue;
|
|
32771
32773
|
const eligibleChats = eligibility?.chats.filter(({ account: account2 }) => account2.provider === one2.provider && account2.account === one2.account).map(({ chat: chat2 }) => chat2);
|
|
@@ -32880,13 +32882,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
32880
32882
|
return mean.map((value) => value / length);
|
|
32881
32883
|
}, "meanOf");
|
|
32882
32884
|
|
|
32883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
32884
32886
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
32885
32887
|
...embeddingsMaintenance(deps),
|
|
32886
32888
|
...embeddingsSearch(deps)
|
|
32887
32889
|
}), "embeddingsService");
|
|
32888
32890
|
|
|
32889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
32890
32892
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
32891
32893
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
32892
32894
|
if (deps.offline)
|
|
@@ -33027,7 +33029,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33027
33029
|
};
|
|
33028
33030
|
}, "foldersService");
|
|
33029
33031
|
|
|
33030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33031
33033
|
var REVIEW_COUNT = 500;
|
|
33032
33034
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33033
33035
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33106,7 +33108,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33106
33108
|
};
|
|
33107
33109
|
}, "mentionsService");
|
|
33108
33110
|
|
|
33109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
33110
33112
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33111
33113
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33112
33114
|
const { text: text2, spans } = formatted2;
|
|
@@ -33166,7 +33168,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33166
33168
|
};
|
|
33167
33169
|
}, "visibleFormattedText");
|
|
33168
33170
|
|
|
33169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33170
33172
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33171
33173
|
position,
|
|
33172
33174
|
kind,
|
|
@@ -33215,7 +33217,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33215
33217
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33216
33218
|
}, "validatePermalink");
|
|
33217
33219
|
|
|
33218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33219
33221
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33220
33222
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33221
33223
|
return `${seconds / 86400}d`;
|
|
@@ -33247,7 +33249,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33247
33249
|
return seconds;
|
|
33248
33250
|
}, "pinDurationOf");
|
|
33249
33251
|
|
|
33250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33251
33253
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33252
33254
|
if (sendAs === void 0) {
|
|
33253
33255
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33272,7 +33274,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33272
33274
|
return sendAs;
|
|
33273
33275
|
}, "typedSendAs");
|
|
33274
33276
|
|
|
33275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33276
33278
|
var TOTAL_CAP = 1e4;
|
|
33277
33279
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33278
33280
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33283,7 +33285,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33283
33285
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33284
33286
|
}, "totalOf");
|
|
33285
33287
|
|
|
33286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33287
33289
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33288
33290
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33289
33291
|
let narrows = false;
|
|
@@ -33312,7 +33314,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33312
33314
|
return wanted(root).join(" ").trim();
|
|
33313
33315
|
}, "meaningWords");
|
|
33314
33316
|
|
|
33315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33316
33318
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33317
33319
|
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"));
|
|
33318
33320
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33427,7 +33429,7 @@ function planQuestion(text2, strict = false) {
|
|
|
33427
33429
|
}
|
|
33428
33430
|
__name(planQuestion, "planQuestion");
|
|
33429
33431
|
|
|
33430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33431
33433
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33432
33434
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33433
33435
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33620,7 +33622,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33620
33622
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33621
33623
|
}, "signals");
|
|
33622
33624
|
|
|
33623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33624
33626
|
var MEANING_DEPTH = 100;
|
|
33625
33627
|
var RRF_K2 = 60;
|
|
33626
33628
|
var RERANK_DEPTH = 50;
|
|
@@ -33948,7 +33950,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
33948
33950
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
33949
33951
|
}, "mixedWithReranker");
|
|
33950
33952
|
|
|
33951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
33952
33954
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
33953
33955
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
33954
33956
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34147,7 +34149,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34147
34149
|
return result;
|
|
34148
34150
|
}, "readThreadContext");
|
|
34149
34151
|
|
|
34150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34151
34153
|
var SEARCH_FILL_MS = 200;
|
|
34152
34154
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34153
34155
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34214,12 +34216,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34214
34216
|
}, "accountOf");
|
|
34215
34217
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34216
34218
|
|
|
34217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34218
34220
|
import { createHash as createHash10 } from "node:crypto";
|
|
34219
34221
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34220
34222
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34221
34223
|
|
|
34222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34223
34225
|
var GROUP_SETTINGS = [
|
|
34224
34226
|
"allCanPin",
|
|
34225
34227
|
"onlyAdminsAdd",
|
|
@@ -34233,7 +34235,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34233
34235
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34234
34236
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34235
34237
|
|
|
34236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34237
34239
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34238
34240
|
var PICTURE_FLOOR = 0.25;
|
|
34239
34241
|
var PAGE4 = 50;
|
|
@@ -34250,7 +34252,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34250
34252
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34251
34253
|
if (!isImageModelInstalled(model2, directory2))
|
|
34252
34254
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34253
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34255
|
+
const { openPictureEmbedder } = await import("./embedder-7SGPMINO.js");
|
|
34254
34256
|
return openPictureEmbedder(model2, directory2);
|
|
34255
34257
|
}, "open");
|
|
34256
34258
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34447,7 +34449,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34447
34449
|
}, "search")
|
|
34448
34450
|
}), "withPictures");
|
|
34449
34451
|
|
|
34450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34451
34453
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34452
34454
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34453
34455
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34496,7 +34498,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34496
34498
|
}
|
|
34497
34499
|
}, "meaningLane");
|
|
34498
34500
|
|
|
34499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34500
34502
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34501
34503
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34502
34504
|
if (choice === "off")
|
|
@@ -34508,9 +34510,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34508
34510
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34509
34511
|
try {
|
|
34510
34512
|
const warm = deps.embedders;
|
|
34511
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34513
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-PWAGP6YY.js")).openRerankerProcess(model, directory2, {
|
|
34512
34514
|
threads: defaultThreads()
|
|
34513
|
-
})) : await (await import("./rerank-
|
|
34515
|
+
})) : await (await import("./rerank-JUH3QHX7.js")).openReranker(model, directory2);
|
|
34514
34516
|
return {
|
|
34515
34517
|
model: model.id,
|
|
34516
34518
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34530,17 +34532,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34530
34532
|
};
|
|
34531
34533
|
}, "rerankLane");
|
|
34532
34534
|
|
|
34533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34534
34536
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34535
34537
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34536
34538
|
const directory2 = imageModelsDirectory(env);
|
|
34537
34539
|
if (!isImageModelInstalled(model, directory2))
|
|
34538
34540
|
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 });
|
|
34539
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34541
|
+
const { openPictureEmbedder } = await import("./embedder-7SGPMINO.js");
|
|
34540
34542
|
return openPictureEmbedder(model, directory2);
|
|
34541
34543
|
}, "openPictureEmbedderFor");
|
|
34542
34544
|
|
|
34543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34544
34546
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34545
34547
|
const metadata = note2.frontMatter;
|
|
34546
34548
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34555,7 +34557,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34555
34557
|
};
|
|
34556
34558
|
}, "documentSource");
|
|
34557
34559
|
|
|
34558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34559
34561
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34560
34562
|
let root;
|
|
34561
34563
|
try {
|
|
@@ -34582,7 +34584,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
34582
34584
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34583
34585
|
}, "titleTiers");
|
|
34584
34586
|
|
|
34585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34586
34588
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34587
34589
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34588
34590
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35017,7 +35019,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35017
35019
|
};
|
|
35018
35020
|
}, "searchNotesOf");
|
|
35019
35021
|
|
|
35020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35021
35023
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35022
35024
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35023
35025
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35129,7 +35131,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35129
35131
|
};
|
|
35130
35132
|
}, "searchEvents");
|
|
35131
35133
|
|
|
35132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35133
35135
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
35134
35136
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35135
35137
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -35338,7 +35340,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35338
35340
|
};
|
|
35339
35341
|
}, "searchAll");
|
|
35340
35342
|
|
|
35341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35342
35344
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35343
35345
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35344
35346
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -35591,7 +35593,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
35591
35593
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
35592
35594
|
}, "searchAllOfSource");
|
|
35593
35595
|
|
|
35594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
35595
35597
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
35596
35598
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
35597
35599
|
var DEFAULT_BACKEND = "both";
|
|
@@ -35780,7 +35782,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
35780
35782
|
return { report, sources };
|
|
35781
35783
|
}, "searchServer");
|
|
35782
35784
|
|
|
35783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
35784
35786
|
var DELETE_AT_ONCE = 10;
|
|
35785
35787
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
35786
35788
|
const files = fileLinks(attachments);
|
|
@@ -36221,7 +36223,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36221
36223
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36222
36224
|
}, "checkMediaOptions");
|
|
36223
36225
|
|
|
36224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36225
36227
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36226
36228
|
var RULES = {
|
|
36227
36229
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36236,7 +36238,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36236
36238
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36237
36239
|
}), "classifyChannel");
|
|
36238
36240
|
|
|
36239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36240
36242
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36241
36243
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36242
36244
|
const store = await deps.store();
|
|
@@ -36322,7 +36324,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36322
36324
|
};
|
|
36323
36325
|
}, "metadataService");
|
|
36324
36326
|
|
|
36325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
36326
36328
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36327
36329
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36328
36330
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36510,7 +36512,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36510
36512
|
}, "nextPoint");
|
|
36511
36513
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36512
36514
|
|
|
36513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
36514
36516
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36515
36517
|
import { join as join11 } from "node:path";
|
|
36516
36518
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -36653,7 +36655,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
36653
36655
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
36654
36656
|
}, "assign");
|
|
36655
36657
|
|
|
36656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
36657
36659
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
36658
36660
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
36659
36661
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -36690,7 +36692,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
36690
36692
|
return { chatId, rows, notes };
|
|
36691
36693
|
}, "moderateWith");
|
|
36692
36694
|
|
|
36693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
36694
36696
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
36695
36697
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
36696
36698
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -36768,7 +36770,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
36768
36770
|
}, "removePerson")
|
|
36769
36771
|
}), "moderatorOf");
|
|
36770
36772
|
|
|
36771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
36772
36774
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
36773
36775
|
id: note2.id,
|
|
36774
36776
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -36812,7 +36814,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
36812
36814
|
};
|
|
36813
36815
|
}, "privatePeopleService");
|
|
36814
36816
|
|
|
36815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
36816
36818
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
36817
36819
|
total: 0,
|
|
36818
36820
|
population: 0,
|
|
@@ -37068,7 +37070,134 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37068
37070
|
}, "evidence")
|
|
37069
37071
|
}), "rankingsService");
|
|
37070
37072
|
|
|
37071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37074
|
+
var FIELDS = ["date", "chat", "kind"];
|
|
37075
|
+
var WAITING_TAIL = 100;
|
|
37076
|
+
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
37077
|
+
if (text2 === void 0)
|
|
37078
|
+
return;
|
|
37079
|
+
const refuse2 = /* @__PURE__ */ __name(() => {
|
|
37080
|
+
throw new CliError("validation_error", `${command} reads date:, chat: and kind: terms, AND-ed \u2014 not words, other fields, OR or NOT`, { reason: "query.unsupported-field" });
|
|
37081
|
+
}, "refuse");
|
|
37082
|
+
const visit = /* @__PURE__ */ __name((node) => {
|
|
37083
|
+
if (node.kind === "boolean")
|
|
37084
|
+
for (const clause of node.clauses) {
|
|
37085
|
+
if (clause.occur !== "must")
|
|
37086
|
+
refuse2();
|
|
37087
|
+
visit(clause.node);
|
|
37088
|
+
}
|
|
37089
|
+
else if (!FIELDS.includes(node.field) || !["term", "phrase", "range"].includes(node.operator))
|
|
37090
|
+
refuse2();
|
|
37091
|
+
}, "visit");
|
|
37092
|
+
visit(parseLucene(text2, { ...MESSAGE_PARSING, defaultField: "text" }).root);
|
|
37093
|
+
}, "plainOnly");
|
|
37094
|
+
var scopeOf3 = /* @__PURE__ */ __name((root, accounts) => {
|
|
37095
|
+
const scope = { accounts, chats: [], kinds: [] };
|
|
37096
|
+
const visit = /* @__PURE__ */ __name((node) => {
|
|
37097
|
+
if (node.kind === "boolean") {
|
|
37098
|
+
for (const clause of node.clauses)
|
|
37099
|
+
visit(clause.node);
|
|
37100
|
+
return;
|
|
37101
|
+
}
|
|
37102
|
+
const { chat, date: date2 } = node.resolution ?? {};
|
|
37103
|
+
if (chat)
|
|
37104
|
+
scope.chats.push(chat);
|
|
37105
|
+
else if (node.field === "kind")
|
|
37106
|
+
scope.kinds.push(node.value.toLowerCase());
|
|
37107
|
+
else if (date2) {
|
|
37108
|
+
if (date2.lower !== void 0) {
|
|
37109
|
+
const lower = date2.lower + (date2.lower_inclusive ? 0 : 1);
|
|
37110
|
+
scope.since = Math.max(scope.since ?? lower, lower);
|
|
37111
|
+
}
|
|
37112
|
+
if (date2.upper !== void 0) {
|
|
37113
|
+
const upper = date2.upper - (date2.upper_inclusive ? 0 : 1);
|
|
37114
|
+
scope.until = Math.min(scope.until ?? upper, upper);
|
|
37115
|
+
}
|
|
37116
|
+
}
|
|
37117
|
+
}, "visit");
|
|
37118
|
+
visit(root);
|
|
37119
|
+
return scope;
|
|
37120
|
+
}, "scopeOf");
|
|
37121
|
+
var figuresOf = /* @__PURE__ */ __name((delays) => {
|
|
37122
|
+
const { medianMilliseconds, p90Milliseconds } = delayStats(delays);
|
|
37123
|
+
return {
|
|
37124
|
+
replies: delays.length,
|
|
37125
|
+
medianMs: medianMilliseconds,
|
|
37126
|
+
p90Ms: p90Milliseconds,
|
|
37127
|
+
meanMs: delays.length ? Math.round(delays.reduce((sum2, one2) => sum2 + one2, 0) / delays.length) : null
|
|
37128
|
+
};
|
|
37129
|
+
}, "figuresOf");
|
|
37130
|
+
var MINUTE2 = 6e4;
|
|
37131
|
+
var waitsOnOwner = /* @__PURE__ */ __name((newest) => {
|
|
37132
|
+
if (newest.mine)
|
|
37133
|
+
return false;
|
|
37134
|
+
if (newest.kind === "private")
|
|
37135
|
+
return !newest.quiet && rankingQuestion(newest.text);
|
|
37136
|
+
return newest.addressed || newest.ownerUsername !== null && new RegExp(`(^|[^\\w@])@${newest.ownerUsername.replace(/[^\w]/g, "\\$&")}(?!\\w)`, "i").test(newest.text);
|
|
37137
|
+
}, "waitsOnOwner");
|
|
37138
|
+
var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
37139
|
+
const prepared = /* @__PURE__ */ __name(async (query, command) => {
|
|
37140
|
+
plainOnly(query.text, command);
|
|
37141
|
+
const store = await deps.store();
|
|
37142
|
+
const found = await prepareLucene(store, await deps.account(), {
|
|
37143
|
+
...query.text === void 0 ? {} : { text: query.text },
|
|
37144
|
+
...query.source === void 0 ? {} : { source: query.source },
|
|
37145
|
+
timezone: timezoneOf(query.timezone),
|
|
37146
|
+
limit: 1
|
|
37147
|
+
}, deps.messenger);
|
|
37148
|
+
return { store, timezone: found.timezone, scope: scopeOf3(found.execution.root, found.scopeAccounts) };
|
|
37149
|
+
}, "prepared");
|
|
37150
|
+
return {
|
|
37151
|
+
responses: /* @__PURE__ */ __name(async ({ who: who2, by, ...query }) => {
|
|
37152
|
+
const { store, timezone, scope } = await prepared(query, "stats messages responses");
|
|
37153
|
+
const delays = scope.accounts.length ? await store.queries.replyDelays(scope, who2) : [];
|
|
37154
|
+
const buckets = { under5m: 0, under1h: 0, under1d: 0, over1d: 0 };
|
|
37155
|
+
for (const { delayMs } of delays) {
|
|
37156
|
+
if (delayMs < 5 * MINUTE2)
|
|
37157
|
+
buckets.under5m++;
|
|
37158
|
+
else if (delayMs < 60 * MINUTE2)
|
|
37159
|
+
buckets.under1h++;
|
|
37160
|
+
else if (delayMs < 24 * 60 * MINUTE2)
|
|
37161
|
+
buckets.under1d++;
|
|
37162
|
+
else
|
|
37163
|
+
buckets.over1d++;
|
|
37164
|
+
}
|
|
37165
|
+
const days = /* @__PURE__ */ new Map();
|
|
37166
|
+
if (by === "day") {
|
|
37167
|
+
const keyOf5 = calendarKey(timezone, "day");
|
|
37168
|
+
for (const { repliedAt, delayMs } of delays) {
|
|
37169
|
+
const key = keyOf5(repliedAt);
|
|
37170
|
+
const list3 = days.get(key) ?? [];
|
|
37171
|
+
list3.push(delayMs);
|
|
37172
|
+
days.set(key, list3);
|
|
37173
|
+
}
|
|
37174
|
+
}
|
|
37175
|
+
return {
|
|
37176
|
+
who: who2,
|
|
37177
|
+
by,
|
|
37178
|
+
...figuresOf(delays.map(({ delayMs }) => delayMs)),
|
|
37179
|
+
buckets,
|
|
37180
|
+
rows: [...days].sort(([a], [b]) => a.localeCompare(b)).map(([key, list3]) => ({ key, ...figuresOf(list3) }))
|
|
37181
|
+
};
|
|
37182
|
+
}, "responses"),
|
|
37183
|
+
waiting: /* @__PURE__ */ __name(async (query) => {
|
|
37184
|
+
const { store, scope } = await prepared(query, "stats messages waiting");
|
|
37185
|
+
const chats = scope.accounts.length ? await store.queries.waitingChats(scope, waitsOnOwner, WAITING_TAIL) : [];
|
|
37186
|
+
const firsts = chats.flatMap(({ unanswered: unanswered2 }) => unanswered2.at(-1) ?? []);
|
|
37187
|
+
return {
|
|
37188
|
+
chats: chats.length,
|
|
37189
|
+
messages: chats.reduce((sum2, { unanswered: unanswered2 }) => sum2 + unanswered2.length, 0),
|
|
37190
|
+
oldestAt: firsts.length ? new Date(firsts.reduce((low, one2) => Math.min(low, one2))).toISOString() : null,
|
|
37191
|
+
byKind: {
|
|
37192
|
+
private: chats.filter(({ kind }) => kind === "private").length,
|
|
37193
|
+
group: chats.filter(({ kind }) => kind === "group").length
|
|
37194
|
+
}
|
|
37195
|
+
};
|
|
37196
|
+
}, "waiting")
|
|
37197
|
+
};
|
|
37198
|
+
}, "replyStatsService");
|
|
37199
|
+
|
|
37200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37072
37201
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37073
37202
|
id: one2.id,
|
|
37074
37203
|
name: one2.name,
|
|
@@ -37197,7 +37326,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37197
37326
|
};
|
|
37198
37327
|
}, "searchesService");
|
|
37199
37328
|
|
|
37200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37201
37330
|
var TAGGING_QUERY = {
|
|
37202
37331
|
entity: "tagging",
|
|
37203
37332
|
backend: "sql",
|
|
@@ -37281,7 +37410,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37281
37410
|
};
|
|
37282
37411
|
}, "tagsService");
|
|
37283
37412
|
|
|
37284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37285
37414
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37286
37415
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37287
37416
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37480,7 +37609,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37480
37609
|
};
|
|
37481
37610
|
}, "topicsService");
|
|
37482
37611
|
|
|
37483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
37484
37613
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
37485
37614
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37486
37615
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -37554,7 +37683,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
37554
37683
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
37555
37684
|
}, "prepareEvidencePacket");
|
|
37556
37685
|
|
|
37557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
37558
37687
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
37559
37688
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
37560
37689
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -37574,7 +37703,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
37574
37703
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
37575
37704
|
}, "readEvidencePacket");
|
|
37576
37705
|
|
|
37577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
37578
37707
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
37579
37708
|
let before2 = Number.POSITIVE_INFINITY;
|
|
37580
37709
|
for (; ; ) {
|
|
@@ -37636,7 +37765,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
37636
37765
|
return { ...result, selection };
|
|
37637
37766
|
}, "searchMeetingHits");
|
|
37638
37767
|
|
|
37639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
37640
37769
|
import { createHash as createHash12 } from "node:crypto";
|
|
37641
37770
|
var scopeKeys = [
|
|
37642
37771
|
"accountId",
|
|
@@ -37771,7 +37900,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
37771
37900
|
};
|
|
37772
37901
|
}, "readMeetingProjectDiscovery");
|
|
37773
37902
|
|
|
37774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
37775
37904
|
import { createHash as createHash13 } from "node:crypto";
|
|
37776
37905
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
37777
37906
|
ref: cue.reference,
|
|
@@ -37889,7 +38018,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
37889
38018
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
37890
38019
|
}, "readMeetingHitContext");
|
|
37891
38020
|
|
|
37892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
37893
38022
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
37894
38023
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
37895
38024
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -37965,7 +38094,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
37965
38094
|
return { packet, content };
|
|
37966
38095
|
}, "readMeetingPassage");
|
|
37967
38096
|
|
|
37968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
37969
38098
|
var communicationFields = {
|
|
37970
38099
|
sources: pipe(array(strictObject({
|
|
37971
38100
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -37997,7 +38126,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
37997
38126
|
return { ...input, after, before: before2 };
|
|
37998
38127
|
}, "communicationRequest");
|
|
37999
38128
|
|
|
38000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38001
38130
|
var MEETING_PREPARATION_LIMITS = {
|
|
38002
38131
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38003
38132
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38083,7 +38212,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38083
38212
|
return { ...input, history };
|
|
38084
38213
|
}, "preparationRequest");
|
|
38085
38214
|
|
|
38086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
38087
38216
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38088
38217
|
const section = {
|
|
38089
38218
|
readUsage: plan.reader.usage(),
|
|
@@ -38188,7 +38317,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38188
38317
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38189
38318
|
}, "appendPreparationCommunications");
|
|
38190
38319
|
|
|
38191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38192
38321
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38193
38322
|
if (port === void 0)
|
|
38194
38323
|
return void 0;
|
|
@@ -38293,7 +38422,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38293
38422
|
}
|
|
38294
38423
|
}, "validatePreparationCommunications");
|
|
38295
38424
|
|
|
38296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
38297
38426
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38298
38427
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38299
38428
|
}, "invalid");
|
|
@@ -38362,7 +38491,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38362
38491
|
}
|
|
38363
38492
|
}, "appendKnowledgePreparation");
|
|
38364
38493
|
|
|
38365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
38366
38495
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38367
38496
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38368
38497
|
}, "invalid");
|
|
@@ -38436,7 +38565,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38436
38565
|
}
|
|
38437
38566
|
}, "appendNotesPreparation");
|
|
38438
38567
|
|
|
38439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
38440
38569
|
var PAGE_LIMIT = 4;
|
|
38441
38570
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38442
38571
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -38486,7 +38615,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
38486
38615
|
}
|
|
38487
38616
|
}, "appendProjectPreparation");
|
|
38488
38617
|
|
|
38489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
38490
38619
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
38491
38620
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
38492
38621
|
return;
|
|
@@ -38558,7 +38687,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
38558
38687
|
}
|
|
38559
38688
|
}, "appendRelatedPreparation");
|
|
38560
38689
|
|
|
38561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
38562
38691
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38563
38692
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
38564
38693
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -38696,7 +38825,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
38696
38825
|
};
|
|
38697
38826
|
}, "createMeetingPreparationService");
|
|
38698
38827
|
|
|
38699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
38700
38829
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
38701
38830
|
const installer = ports.installer();
|
|
38702
38831
|
const argv = updateCommand(installer, packageName);
|
|
@@ -38761,7 +38890,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
38761
38890
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
38762
38891
|
}, "dayAfter");
|
|
38763
38892
|
|
|
38764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
38765
38894
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
38766
38895
|
const pictures = picturesService(deps);
|
|
38767
38896
|
const base = {
|
|
@@ -38771,6 +38900,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38771
38900
|
counters: countersService(deps),
|
|
38772
38901
|
retention: retentionService(deps),
|
|
38773
38902
|
rankings: rankingsService(deps),
|
|
38903
|
+
replyStats: replyStatsService(deps),
|
|
38774
38904
|
topics: topicsService(deps),
|
|
38775
38905
|
messages: withPictures(messagesService(deps), pictures),
|
|
38776
38906
|
chats: chatsService(deps),
|
|
@@ -38797,7 +38927,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38797
38927
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
38798
38928
|
}, "servicesFor");
|
|
38799
38929
|
|
|
38800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
38801
38931
|
import { createHash as createHash14 } from "node:crypto";
|
|
38802
38932
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
38803
38933
|
import { createConnection, createServer } from "node:net";
|
|
@@ -38945,7 +39075,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
38945
39075
|
}
|
|
38946
39076
|
}, "serve");
|
|
38947
39077
|
|
|
38948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
38949
39079
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
38950
39080
|
close: /* @__PURE__ */ __name(async () => {
|
|
38951
39081
|
}, "close"),
|