@wirecat/cli-memo 0.131.23 → 0.131.24
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-VIPS6NHI.js → all-profiles-ZCJTYGOL.js} +5 -5
- package/dist/bundle/{anthropic-2QZHSXBA.js → anthropic-7WVLAKTX.js} +3 -3
- package/dist/bundle/{app-server-NTSADYGW.js → app-server-6G3SXEHO.js} +35 -35
- package/dist/bundle/auto-JWPM5654.js +86 -0
- package/dist/bundle/{bun-KF5QK2YN.js → bun-JVBDJKBB.js} +2 -2
- package/dist/bundle/{bun-sqlite-XUCC2PWC.js → bun-sqlite-P4I7NVMQ.js} +2 -2
- package/dist/bundle/{chunk-L6FKTS3L.js → chunk-2IRCJT4O.js} +7 -7
- package/dist/bundle/{chunk-IJI62T4U.js → chunk-3KNXQZMO.js} +27 -27
- package/dist/bundle/{chunk-R4V63U6A.js → chunk-3MER7NE6.js} +2 -2
- package/dist/bundle/{chunk-QZXHMQCM.js → chunk-3U7OUQV2.js} +1 -1
- package/dist/bundle/{chunk-UJEO3VWA.js → chunk-5YCNCXL5.js} +1 -1
- package/dist/bundle/{chunk-DIP3ENSY.js → chunk-AIGMYGEL.js} +1 -1
- package/dist/bundle/{chunk-AHFMQAJT.js → chunk-AIVUS6WA.js} +9 -9
- package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-ALGIPJ6L.js} +1 -1
- package/dist/bundle/{chunk-5WCEWK2F.js → chunk-AWGV4VOA.js} +10 -10
- package/dist/bundle/{chunk-GDGY2KIX.js → chunk-BTQSFPIM.js} +4 -4
- package/dist/bundle/{chunk-AETJWLHX.js → chunk-CM2H7NRC.js} +3 -3
- package/dist/bundle/{chunk-QFO6K6CW.js → chunk-CPJEQK4V.js} +43 -43
- package/dist/bundle/{chunk-JRJIFGU2.js → chunk-DIMX5AEE.js} +3 -3
- package/dist/bundle/{chunk-32FPXLNY.js → chunk-DMQ3342A.js} +39 -37
- package/dist/bundle/{chunk-MJWFSOJN.js → chunk-EACY2ULS.js} +214 -173
- package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-EB7LKK4K.js} +1 -1
- package/dist/bundle/{chunk-YKZNFSQE.js → chunk-EGG3PGCM.js} +1 -1
- package/dist/bundle/{chunk-N5L6YYYW.js → chunk-EKTZEF3Q.js} +1 -1
- package/dist/bundle/{chunk-UMWR5PKA.js → chunk-ELKYINWL.js} +12 -12
- package/dist/bundle/{chunk-BSR4QZW5.js → chunk-F2ED6KG6.js} +2 -2
- package/dist/bundle/{chunk-Z7XHH2Q5.js → chunk-FXHN2UZW.js} +14 -9
- package/dist/bundle/{chunk-24P36RXS.js → chunk-GQOXFZBX.js} +481 -308
- package/dist/bundle/{chunk-6PXE6QSQ.js → chunk-GRXVN2X7.js} +1 -1
- package/dist/bundle/{chunk-46WO42ZW.js → chunk-GSEDSGJF.js} +291 -260
- package/dist/bundle/{chunk-V7Y5FOYJ.js → chunk-IC2TL7RW.js} +2 -2
- package/dist/bundle/{chunk-XTARXRP6.js → chunk-IJC6MFLP.js} +7 -7
- package/dist/bundle/{chunk-NY4IKP35.js → chunk-INTF3YPV.js} +2 -2
- package/dist/bundle/{chunk-QSN5NUVL.js → chunk-ITQBXFMC.js} +2 -2
- package/dist/bundle/{chunk-W53TRO7J.js → chunk-J6D34BFP.js} +646 -324
- package/dist/bundle/{chunk-37NN65PB.js → chunk-JDDVGGUV.js} +4 -4
- package/dist/bundle/{chunk-5M4KSMYN.js → chunk-KQSHIQSV.js} +133 -58
- package/dist/bundle/{chunk-4QY7XOVI.js → chunk-LNXFM4FD.js} +11 -11
- package/dist/bundle/{chunk-PDQFWOR5.js → chunk-LWIMGWKB.js} +2 -2
- package/dist/bundle/{chunk-V5ZID7KC.js → chunk-M43DAAZ7.js} +1 -1
- package/dist/bundle/{chunk-UQA5UFJ2.js → chunk-MLMSQK76.js} +1 -1
- package/dist/bundle/{chunk-CTT5VK66.js → chunk-MPVW7BQZ.js} +5 -5
- package/dist/bundle/{chunk-4DKMYDLT.js → chunk-MROFZXAB.js} +41 -28
- package/dist/bundle/{chunk-6I7XGWGH.js → chunk-N5H6I7WQ.js} +5 -5
- package/dist/bundle/{chunk-ZCPUKUST.js → chunk-NAH473ZR.js} +1 -1
- package/dist/bundle/{chunk-7PQOYNMA.js → chunk-ND3GBFEY.js} +1 -1
- package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-OQK2IKPB.js} +1 -1
- package/dist/bundle/{chunk-G4GEARGN.js → chunk-Q6MFBH6Q.js} +8 -8
- package/dist/bundle/{chunk-RE5SEGSR.js → chunk-R2LJDDZP.js} +3 -3
- package/dist/bundle/{chunk-2IKXEL4V.js → chunk-R3LNQ3I4.js} +1 -1
- package/dist/bundle/{chunk-STZMKXK5.js → chunk-RTESJ5O2.js} +3 -3
- package/dist/bundle/{chunk-H76MIWB2.js → chunk-SKTGBVYC.js} +4 -4
- package/dist/bundle/{chunk-JDNA36EX.js → chunk-UA2C4BCH.js} +7 -7
- package/dist/bundle/{chunk-CKLCJ6O7.js → chunk-UPXUE27A.js} +4 -4
- package/dist/bundle/{chunk-GQOFHKUX.js → chunk-UVR6U55E.js} +5 -5
- package/dist/bundle/{chunk-DIELPPLF.js → chunk-UXCDBNAY.js} +1 -1
- package/dist/bundle/{chunk-XRJIQC6P.js → chunk-UY2VH3QK.js} +1 -1
- package/dist/bundle/{chunk-BIYSJBQR.js → chunk-VLPMB3UU.js} +4 -4
- package/dist/bundle/{chunk-Z6YD3YK4.js → chunk-VVEFQEWP.js} +20 -20
- package/dist/bundle/{chunk-FXF34MI2.js → chunk-XF3LZ32F.js} +2 -2
- package/dist/bundle/{chunk-HBXZ7WIV.js → chunk-XSI5NYGB.js} +6 -6
- package/dist/bundle/{chunk-44NQLD5C.js → chunk-ZDOVR4PA.js} +4 -4
- package/dist/bundle/{chunk-O7OI5V7W.js → chunk-ZLZE5P6M.js} +5 -5
- package/dist/bundle/{chunk-BSDOH7DN.js → chunk-ZOYGY2PN.js} +1 -1
- package/dist/bundle/{command-contract-XBYNZVP5.js → command-contract-543RRFNU.js} +11 -11
- package/dist/bundle/{decode-LFASKQPE.js → decode-YHX3DQG2.js} +2 -2
- package/dist/bundle/{echarts-5AB3LFVD.js → echarts-FBVAP7BR.js} +2 -2
- package/dist/bundle/{embed-6KQN523T.js → embed-CQJ42S5C.js} +3 -3
- package/dist/bundle/{embedder-7SGPMINO.js → embedder-EDXLEJ27.js} +6 -6
- package/dist/bundle/{entry-CNZGHHZB.js → entry-HZEA7QFK.js} +4 -4
- package/dist/bundle/failure-62G7QSPX.js +66 -0
- package/dist/bundle/{first-run-UI6UT4OR.js → first-run-JZQN7R6M.js} +5 -5
- package/dist/bundle/{first-screen-3WDPZZXV.js → first-screen-56V3UOQE.js} +12 -12
- package/dist/bundle/{instructions-52W6ZQTU.js → instructions-NYVYNWVU.js} +1 -1
- package/dist/bundle/{mcp-JIOYIKWO.js → mcp-Y6IPYDS2.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-TL2PBNKO.js → node-2QE6UPGS.js} +2 -2
- package/dist/bundle/{node-sqlite-64QIEQ37.js → node-sqlite-SDHZJNY7.js} +3 -3
- package/dist/bundle/{oauth-GH7GLGEJ.js → oauth-FFUJREKS.js} +4 -4
- package/dist/bundle/{open-PCKU5XOH.js → open-NT2GYX6N.js} +2 -2
- package/dist/bundle/{openai-P5QVLTF6.js → openai-IQA2XR6Z.js} +7 -7
- package/dist/bundle/{process-PWAGP6YY.js → process-HIEJXYW6.js} +1 -1
- package/dist/bundle/{program-D7OTNHGU.js → program-DEMRKCZY.js} +90 -65
- package/dist/bundle/{prompt-FNBKJZLM.js → prompt-IOZAME2R.js} +2 -2
- package/dist/bundle/{recognize-5TKRMMA2.js → recognize-2XOAZJ5N.js} +1 -1
- package/dist/bundle/{remote-XZJ7ZAKJ.js → remote-2LE7OTDA.js} +4 -4
- package/dist/bundle/{rerank-JUH3QHX7.js → rerank-UKOVVZM6.js} +4 -4
- package/dist/bundle/{serve-JP6U3PUO.js → serve-S2UHPEBP.js} +6 -6
- package/dist/bundle/server-3YNOEPWU.js +61 -0
- package/dist/bundle/{server-VXI43PF5.js → server-BG4WWQHY.js} +50 -50
- package/dist/bundle/server-EZWQ5KP4.js +48 -0
- package/dist/bundle/{setup-YLI4S4TW.js → setup-2X7ADKFH.js} +39 -39
- package/dist/bundle/{state-G4NEN2OZ.js → state-F5KT3CBD.js} +3 -3
- package/dist/bundle/{store-NHFLFHD5.js → store-WBUUS7FO.js} +9 -9
- package/dist/bundle/store-maintenance-command-KLST56XF.js +48 -0
- package/dist/bundle/update-WH4CGJGP.js +69 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/auto-MJWSDIMF.js +0 -86
- package/dist/bundle/failure-LJAYEPTS.js +0 -66
- package/dist/bundle/server-5M4YI3V4.js +0 -48
- package/dist/bundle/server-XAHF22CQ.js +0 -61
- package/dist/bundle/store-maintenance-command-6UEORZWI.js +0 -48
- package/dist/bundle/update-6SD2JZUC.js +0 -69
- /package/dist/bundle/{chunk-WX2WLEEF.js → chunk-CWOKGEL3.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ELKYINWL.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-EACY2ULS.js";
|
|
55
55
|
import {
|
|
56
56
|
isCliFailure
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-UA2C4BCH.js";
|
|
58
58
|
import {
|
|
59
59
|
isNewer,
|
|
60
60
|
updateCommand
|
|
61
61
|
} from "./chunk-JCCL7RGH.js";
|
|
62
62
|
import {
|
|
63
63
|
readOnlyLockOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-R3LNQ3I4.js";
|
|
65
65
|
import {
|
|
66
66
|
AGENDA_COLUMNS,
|
|
67
67
|
CHAT_COLUMNS,
|
|
@@ -86,6 +86,7 @@ import {
|
|
|
86
86
|
RANKING_TOKENIZER_VERSION,
|
|
87
87
|
SEARCH_QUERY,
|
|
88
88
|
SnapshotBudget,
|
|
89
|
+
TASK_CLOSE_KIND,
|
|
89
90
|
TASK_RELATION_KINDS,
|
|
90
91
|
TRACKED_CHAT_COLUMNS,
|
|
91
92
|
UNKNOWN_PROVIDER,
|
|
@@ -106,6 +107,7 @@ import {
|
|
|
106
107
|
counterFreshness,
|
|
107
108
|
counterObservationTime,
|
|
108
109
|
cutChunks,
|
|
110
|
+
deciderAuthor,
|
|
109
111
|
decodeProjectAnnotationSnapshot,
|
|
110
112
|
delayStats,
|
|
111
113
|
dueDayOf,
|
|
@@ -159,8 +161,9 @@ import {
|
|
|
159
161
|
sourceOf,
|
|
160
162
|
threadConversation,
|
|
161
163
|
validateAst,
|
|
162
|
-
validateFields
|
|
163
|
-
|
|
164
|
+
validateFields,
|
|
165
|
+
withoutField
|
|
166
|
+
} from "./chunk-GQOXFZBX.js";
|
|
164
167
|
import {
|
|
165
168
|
EVENT_QUERY,
|
|
166
169
|
MEETING_FINDINGS_KIND,
|
|
@@ -214,23 +217,23 @@ import {
|
|
|
214
217
|
validateQuery,
|
|
215
218
|
walkQuery,
|
|
216
219
|
zonedMoment
|
|
217
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-KQSHIQSV.js";
|
|
218
221
|
import {
|
|
219
222
|
DEFAULT_STEMMERS,
|
|
220
223
|
createStemmer,
|
|
221
224
|
fold,
|
|
222
225
|
normalize
|
|
223
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-2IRCJT4O.js";
|
|
224
227
|
import {
|
|
225
228
|
DEFAULT_TASK_CATEGORIES,
|
|
226
229
|
FALLBACK_CATEGORY
|
|
227
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-UPXUE27A.js";
|
|
228
231
|
import {
|
|
229
232
|
MAX_MODEL_IMAGE_BYTES
|
|
230
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-ALGIPJ6L.js";
|
|
231
234
|
import {
|
|
232
235
|
remoteKey
|
|
233
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-ITQBXFMC.js";
|
|
234
237
|
import {
|
|
235
238
|
Unzip,
|
|
236
239
|
UnzipInflate,
|
|
@@ -241,15 +244,15 @@ import {
|
|
|
241
244
|
placedText,
|
|
242
245
|
runEmbedders,
|
|
243
246
|
textModelsDirectory
|
|
244
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-MPVW7BQZ.js";
|
|
245
248
|
import {
|
|
246
249
|
installFiles,
|
|
247
250
|
megabytes
|
|
248
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-RTESJ5O2.js";
|
|
249
252
|
import {
|
|
250
253
|
storePath,
|
|
251
254
|
wirecatDirectory
|
|
252
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-UXCDBNAY.js";
|
|
253
256
|
import {
|
|
254
257
|
resolvePaths,
|
|
255
258
|
writeSecurely
|
|
@@ -16902,7 +16905,7 @@ var require_lib3 = __commonJS({
|
|
|
16902
16905
|
}
|
|
16903
16906
|
});
|
|
16904
16907
|
|
|
16905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16906
16909
|
var RULES_VERSION = 5;
|
|
16907
16910
|
var LOOK_BACK = 50;
|
|
16908
16911
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16992,13 +16995,13 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16992
16995
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16993
16996
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16994
16997
|
|
|
16995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16996
16999
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16997
17000
|
|
|
16998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
16999
17002
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17000
17003
|
|
|
17001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
17002
17005
|
var ORGANIZATIONS_QUERY = {
|
|
17003
17006
|
entity: "organization",
|
|
17004
17007
|
backend: "sql",
|
|
@@ -17033,7 +17036,7 @@ var REMINDERS_QUERY = {
|
|
|
17033
17036
|
})
|
|
17034
17037
|
};
|
|
17035
17038
|
|
|
17036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17037
17040
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17038
17041
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17039
17042
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17055,7 +17058,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17055
17058
|
}
|
|
17056
17059
|
}, "previewProjectAnnotationSnapshot");
|
|
17057
17060
|
|
|
17058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17059
17062
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17060
17063
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17061
17064
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17076,7 +17079,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17076
17079
|
}
|
|
17077
17080
|
}, "snapshotProjectAnnotations");
|
|
17078
17081
|
|
|
17079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17080
17083
|
var COMMAND_NEEDS = {
|
|
17081
17084
|
"account update": ["updateProfile", "change the profile"],
|
|
17082
17085
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17126,7 +17129,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17126
17129
|
return group;
|
|
17127
17130
|
}, "hideNever");
|
|
17128
17131
|
|
|
17129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17130
17133
|
var AUDIT_PAGE = 200;
|
|
17131
17134
|
var AUDIT_BUDGET = 10;
|
|
17132
17135
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17206,7 +17209,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17206
17209
|
return found;
|
|
17207
17210
|
}, "burstJoins");
|
|
17208
17211
|
|
|
17209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17210
17213
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17211
17214
|
command.allowUnknownOption();
|
|
17212
17215
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17226,7 +17229,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17226
17229
|
return command;
|
|
17227
17230
|
}, "queryWordsAfterOptions");
|
|
17228
17231
|
|
|
17229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17230
17233
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17231
17234
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17232
17235
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17268,7 +17271,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17268
17271
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17269
17272
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17270
17273
|
|
|
17271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17272
17275
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17273
17276
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17274
17277
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17291,7 +17294,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17291
17294
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17292
17295
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17293
17296
|
|
|
17294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17295
17298
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17296
17299
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17297
17300
|
const zone = timezoneOf();
|
|
@@ -17377,7 +17380,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17377
17380
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17378
17381
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17379
17382
|
|
|
17380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17381
17384
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17382
17385
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17383
17386
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17509,7 +17512,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17509
17512
|
}, "addMeetingCommandsDefinition");
|
|
17510
17513
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17511
17514
|
|
|
17512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17513
17516
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17514
17517
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17515
17518
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17642,7 +17645,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17642
17645
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17643
17646
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17644
17647
|
|
|
17645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17646
17649
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17647
17650
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17648
17651
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17651,7 +17654,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17651
17654
|
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");
|
|
17652
17655
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17653
17656
|
|
|
17654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17655
17658
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17656
17659
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17657
17660
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17913,7 +17916,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17913
17916
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17914
17917
|
}), "sessionAnswer");
|
|
17915
17918
|
|
|
17916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17917
17920
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17918
17921
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17919
17922
|
if (key in own)
|
|
@@ -17930,12 +17933,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17930
17933
|
return found.bind(adapter);
|
|
17931
17934
|
}, "capability");
|
|
17932
17935
|
|
|
17933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17934
17937
|
import { randomBytes } from "node:crypto";
|
|
17935
17938
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17936
17939
|
var newOperationId = newSendId;
|
|
17937
17940
|
|
|
17938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17939
17942
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17940
17943
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17941
17944
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18012,7 +18015,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18012
18015
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18013
18016
|
}, "storeOnlyDeps");
|
|
18014
18017
|
|
|
18015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18016
18019
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18017
18020
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18018
18021
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18035,10 +18038,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18035
18038
|
}
|
|
18036
18039
|
}, "patiently");
|
|
18037
18040
|
|
|
18038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18039
18042
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18040
18043
|
|
|
18041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18042
18045
|
var REQUEST_MS = 400;
|
|
18043
18046
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18044
18047
|
const lowest = ranges[0];
|
|
@@ -18061,13 +18064,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18061
18064
|
};
|
|
18062
18065
|
}, "estimateBackfill");
|
|
18063
18066
|
|
|
18064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18065
18068
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18066
18069
|
...error,
|
|
18067
18070
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18068
18071
|
}), "withRecovery");
|
|
18069
18072
|
|
|
18070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18071
18074
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18072
18075
|
if (isCliFailure(error))
|
|
18073
18076
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18150,7 +18153,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18150
18153
|
};
|
|
18151
18154
|
}, "mergeBatches");
|
|
18152
18155
|
|
|
18153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18154
18157
|
var TAKES = {
|
|
18155
18158
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18156
18159
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18210,7 +18213,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18210
18213
|
throw wrongAccount(reference, scope, profiles);
|
|
18211
18214
|
}, "ensureAccount");
|
|
18212
18215
|
|
|
18213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18214
18217
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18215
18218
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18216
18219
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18255,7 +18258,7 @@ ${lines3}`, { candidates });
|
|
|
18255
18258
|
}, "ambiguous");
|
|
18256
18259
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18257
18260
|
|
|
18258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18259
18262
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18260
18263
|
if (deps.reads !== "store")
|
|
18261
18264
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18273,11 +18276,11 @@ var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account)
|
|
|
18273
18276
|
}, "readChatId");
|
|
18274
18277
|
var LEFT_EMPTY = "you left this chat, and the store holds none of its messages";
|
|
18275
18278
|
var storedChatId = /* @__PURE__ */ __name((messenger, reference, store, account, { includeLeft = false } = {}) => {
|
|
18276
|
-
const
|
|
18279
|
+
const renamed2 = /* @__PURE__ */ __name((id2) => store.chats.renamedChatId(account, id2), "renamed");
|
|
18277
18280
|
const profilesOn = profilesOnAccount(store, messenger.app?.command, account.provider);
|
|
18278
18281
|
const among = chatIdAmong(messenger, reference, account, {
|
|
18279
18282
|
held: /* @__PURE__ */ __name(() => store.chats.chats(account, {}), "held"),
|
|
18280
|
-
renamed,
|
|
18283
|
+
renamed: renamed2,
|
|
18281
18284
|
left: /* @__PURE__ */ __name(async (id2) => leftIn(await store.chats.chats(account, byId(id2))), "left"),
|
|
18282
18285
|
profilesOn
|
|
18283
18286
|
});
|
|
@@ -18288,17 +18291,17 @@ var storedChatId = /* @__PURE__ */ __name((messenger, reference, store, account,
|
|
|
18288
18291
|
throw error;
|
|
18289
18292
|
return chatIdAmong(messenger, reference, account, {
|
|
18290
18293
|
held: /* @__PURE__ */ __name(() => store.chats.chats(account, { includeLeft: true }), "held"),
|
|
18291
|
-
renamed,
|
|
18294
|
+
renamed: renamed2,
|
|
18292
18295
|
profilesOn
|
|
18293
18296
|
});
|
|
18294
18297
|
});
|
|
18295
18298
|
}, "storedChatId");
|
|
18296
18299
|
var keptChatId = /* @__PURE__ */ __name((messenger, reference, store, account) => storedChatId(messenger, reference, store, account, { includeLeft: true }), "keptChatId");
|
|
18297
18300
|
var chatIdIn = /* @__PURE__ */ __name((messenger, reference, store, { includeLeft = false } = {}) => {
|
|
18298
|
-
const
|
|
18301
|
+
const renamed2 = /* @__PURE__ */ __name((id2) => store.chats.renamedChatId(id2), "renamed");
|
|
18299
18302
|
const among = chatIdAmong(messenger, reference, store.account, {
|
|
18300
18303
|
held: /* @__PURE__ */ __name(() => store.chats.chats({}), "held"),
|
|
18301
|
-
renamed,
|
|
18304
|
+
renamed: renamed2,
|
|
18302
18305
|
left: /* @__PURE__ */ __name(async (id2) => leftIn(await store.chats.chats(byId(id2))), "left")
|
|
18303
18306
|
});
|
|
18304
18307
|
if (!includeLeft)
|
|
@@ -18308,7 +18311,7 @@ var chatIdIn = /* @__PURE__ */ __name((messenger, reference, store, { includeLef
|
|
|
18308
18311
|
throw error;
|
|
18309
18312
|
return chatIdAmong(messenger, reference, store.account, {
|
|
18310
18313
|
held: /* @__PURE__ */ __name(() => store.chats.chats({ includeLeft: true }), "held"),
|
|
18311
|
-
renamed
|
|
18314
|
+
renamed: renamed2
|
|
18312
18315
|
});
|
|
18313
18316
|
});
|
|
18314
18317
|
}, "chatIdIn");
|
|
@@ -18323,7 +18326,7 @@ var profilesOnAccount = /* @__PURE__ */ __name((store, app, provider) => async (
|
|
|
18323
18326
|
return void 0;
|
|
18324
18327
|
return Object.entries((await store.accounts.profiles())[app] ?? {}).filter(([, key]) => key.provider === provider && key.account === account).map(([name]) => name);
|
|
18325
18328
|
}, "profilesOnAccount");
|
|
18326
|
-
var chatIdAmong = /* @__PURE__ */ __name(async (messenger, reference, account, { held, renamed, left, profilesOn }) => {
|
|
18329
|
+
var chatIdAmong = /* @__PURE__ */ __name(async (messenger, reference, account, { held, renamed: renamed2, left, profilesOn }) => {
|
|
18327
18330
|
const trimmed = reference.trim();
|
|
18328
18331
|
if (messenger.savedChatId && ["me", "self", "saved"].includes(trimmed.toLowerCase())) {
|
|
18329
18332
|
return messenger.savedChatId(account);
|
|
@@ -18333,7 +18336,7 @@ var chatIdAmong = /* @__PURE__ */ __name(async (messenger, reference, account, {
|
|
|
18333
18336
|
await ensureAccount(named2, { account: account.account }, profilesOn);
|
|
18334
18337
|
if (named2 || /^-?\d+$/.test(trimmed)) {
|
|
18335
18338
|
const typed = named2?.chat ?? trimmed;
|
|
18336
|
-
const id2 = await
|
|
18339
|
+
const id2 = await renamed2(typed) ?? typed;
|
|
18337
18340
|
if (await left?.(id2))
|
|
18338
18341
|
throw new CliError("not_found", `you left chat ${id2}`);
|
|
18339
18342
|
return id2;
|
|
@@ -18342,7 +18345,7 @@ var chatIdAmong = /* @__PURE__ */ __name(async (messenger, reference, account, {
|
|
|
18342
18345
|
const exact = chats.find((one2) => one2.id === trimmed);
|
|
18343
18346
|
if (exact)
|
|
18344
18347
|
return exact.id;
|
|
18345
|
-
const moved = await
|
|
18348
|
+
const moved = await renamed2(trimmed);
|
|
18346
18349
|
if (moved !== void 0 && chats.some((one2) => one2.id === moved))
|
|
18347
18350
|
return moved;
|
|
18348
18351
|
if (trimmed.startsWith("@")) {
|
|
@@ -18414,7 +18417,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18414
18417
|
}
|
|
18415
18418
|
}, "senderAmong");
|
|
18416
18419
|
|
|
18417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18418
18421
|
var CONTEXT_MESSAGES = 3;
|
|
18419
18422
|
var CONTEXT_MINUTES = 10;
|
|
18420
18423
|
var MAX_CHARS = 1200;
|
|
@@ -18438,12 +18441,12 @@ var context = {
|
|
|
18438
18441
|
}, "describe")
|
|
18439
18442
|
};
|
|
18440
18443
|
|
|
18441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18442
18445
|
var BUILT_INS = [context];
|
|
18443
18446
|
var providers = [...BUILT_INS];
|
|
18444
18447
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18445
18448
|
|
|
18446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18447
18450
|
var READ_PAGE = 5e3;
|
|
18448
18451
|
var CHAIN = 50;
|
|
18449
18452
|
var CONVERSATION_QUERY = {
|
|
@@ -18595,7 +18598,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18595
18598
|
return size4;
|
|
18596
18599
|
}, "sized");
|
|
18597
18600
|
|
|
18598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18599
18602
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18600
18603
|
var MESSAGE_PAGE = 5e3;
|
|
18601
18604
|
var PER_SESSION = 8;
|
|
@@ -18614,7 +18617,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18614
18617
|
price: remote.price,
|
|
18615
18618
|
installed: true,
|
|
18616
18619
|
perBatch: PER_REQUEST * concurrency,
|
|
18617
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18620
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-2LE7OTDA.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18618
18621
|
};
|
|
18619
18622
|
}
|
|
18620
18623
|
const model = textModel(choice);
|
|
@@ -18631,7 +18634,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18631
18634
|
if (!isTextModelInstalled(model, directory2))
|
|
18632
18635
|
throw notDownloaded(model.id);
|
|
18633
18636
|
if (apart) {
|
|
18634
|
-
const { openProcess } = await import("./process-
|
|
18637
|
+
const { openProcess } = await import("./process-HIEJXYW6.js");
|
|
18635
18638
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18636
18639
|
}
|
|
18637
18640
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -18920,7 +18923,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
18920
18923
|
return { ...one2, state };
|
|
18921
18924
|
}, "shaped");
|
|
18922
18925
|
|
|
18923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
18924
18927
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
18925
18928
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
18926
18929
|
for (const [key, value, maximum] of [
|
|
@@ -18973,7 +18976,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
18973
18976
|
}
|
|
18974
18977
|
}, "catchUpSearch");
|
|
18975
18978
|
|
|
18976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18977
18980
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
18978
18981
|
if (deps.reads === "store") {
|
|
18979
18982
|
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`);
|
|
@@ -19339,7 +19342,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19339
19342
|
return message?.timestamp ?? fallback;
|
|
19340
19343
|
}, "timeOfKey");
|
|
19341
19344
|
|
|
19342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19343
19346
|
var LINKS = /https?:\/\/\S+/g;
|
|
19344
19347
|
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");
|
|
19345
19348
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19369,7 +19372,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19369
19372
|
});
|
|
19370
19373
|
}, "questions");
|
|
19371
19374
|
|
|
19372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19373
19376
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19374
19377
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19375
19378
|
const name = typed.trim().toLowerCase();
|
|
@@ -19426,7 +19429,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19426
19429
|
return best.name;
|
|
19427
19430
|
}, "categorize");
|
|
19428
19431
|
|
|
19429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19430
19433
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19431
19434
|
var RULES_IN = {
|
|
19432
19435
|
dialog: "all",
|
|
@@ -19632,7 +19635,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19632
19635
|
return passes;
|
|
19633
19636
|
}, "applyTaskRulesToChats");
|
|
19634
19637
|
|
|
19635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19636
19639
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19637
19640
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19638
19641
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19696,7 +19699,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19696
19699
|
}
|
|
19697
19700
|
}, "validateContextEvidencePage");
|
|
19698
19701
|
|
|
19699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19700
19703
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19701
19704
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19702
19705
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19749,7 +19752,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19749
19752
|
};
|
|
19750
19753
|
}, "contextReadBudget");
|
|
19751
19754
|
|
|
19752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19753
19756
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19754
19757
|
if (!port || typeof port.read !== "function")
|
|
19755
19758
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19793,7 +19796,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19793
19796
|
};
|
|
19794
19797
|
}, "createContextEvidenceReader");
|
|
19795
19798
|
|
|
19796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19797
19800
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19798
19801
|
dryRun,
|
|
19799
19802
|
source: null,
|
|
@@ -19868,7 +19871,7 @@ var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun =
|
|
|
19868
19871
|
return receipt;
|
|
19869
19872
|
}, "ingest");
|
|
19870
19873
|
|
|
19871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19872
19875
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19873
19876
|
var DEFAULT_PURPOSES = ["work"];
|
|
19874
19877
|
var LINK_PURPOSE = "work";
|
|
@@ -19898,7 +19901,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19898
19901
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19899
19902
|
], "purposeList");
|
|
19900
19903
|
|
|
19901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19902
19905
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19903
19906
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19904
19907
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19938,7 +19941,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19938
19941
|
};
|
|
19939
19942
|
}, "dateWindow");
|
|
19940
19943
|
|
|
19941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19942
19945
|
var DAY_MS = 864e5;
|
|
19943
19946
|
var NEW_DAYS = 30;
|
|
19944
19947
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20015,7 +20018,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20015
20018
|
};
|
|
20016
20019
|
}, "scorePerson");
|
|
20017
20020
|
|
|
20018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20019
20022
|
var REGISTRIES = {
|
|
20020
20023
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20021
20024
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20100,7 +20103,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20100
20103
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20101
20104
|
})), "notCovered");
|
|
20102
20105
|
|
|
20103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20104
20107
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20105
20108
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20106
20109
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20188,7 +20191,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20188
20191
|
};
|
|
20189
20192
|
}, "botCheckService");
|
|
20190
20193
|
|
|
20191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20192
20195
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20193
20196
|
if (value === void 0)
|
|
20194
20197
|
return void 0;
|
|
@@ -20198,7 +20201,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20198
20201
|
return id2;
|
|
20199
20202
|
}, "threadIdOf");
|
|
20200
20203
|
|
|
20201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20202
20205
|
var TOP_POSTS = 5;
|
|
20203
20206
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20204
20207
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20315,7 +20318,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20315
20318
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20316
20319
|
}, "median");
|
|
20317
20320
|
|
|
20318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20319
20322
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20320
20323
|
const events = [];
|
|
20321
20324
|
for (const stay of stays) {
|
|
@@ -20347,7 +20350,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20347
20350
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20348
20351
|
}, "memberEvents");
|
|
20349
20352
|
|
|
20350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20351
20354
|
var EVENTS_DAYS = 7;
|
|
20352
20355
|
var TRACKED_DAYS = 30;
|
|
20353
20356
|
var STATS_PAGE = 1e3;
|
|
@@ -20642,7 +20645,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20642
20645
|
return members.length === 0 ? null : members;
|
|
20643
20646
|
}, "storedMembers");
|
|
20644
20647
|
|
|
20645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20646
20649
|
var INBOX_CHATS = 20;
|
|
20647
20650
|
var REVIEW_DAYS = 3;
|
|
20648
20651
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20850,7 +20853,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20850
20853
|
};
|
|
20851
20854
|
}, "inboxService");
|
|
20852
20855
|
|
|
20853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20854
20857
|
var CONTEXT_MESSAGES2 = 10;
|
|
20855
20858
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20856
20859
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21111,10 +21114,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21111
21114
|
};
|
|
21112
21115
|
}, "personMessages");
|
|
21113
21116
|
|
|
21114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21115
21118
|
import { createHash } from "node:crypto";
|
|
21116
21119
|
|
|
21117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21118
21121
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21119
21122
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21120
21123
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21132,7 +21135,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21132
21135
|
return { parsed, meeting };
|
|
21133
21136
|
}, "authorizedMeetingMetadata");
|
|
21134
21137
|
|
|
21135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21136
21139
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21137
21140
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21138
21141
|
if (signal?.aborted)
|
|
@@ -21331,7 +21334,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21331
21334
|
return { ...packet, fingerprint: hash(packet) };
|
|
21332
21335
|
}, "readMeetingEvidence");
|
|
21333
21336
|
|
|
21334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21335
21338
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21336
21339
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21337
21340
|
const requestedAccounts = options.accountIds;
|
|
@@ -21430,7 +21433,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21430
21433
|
};
|
|
21431
21434
|
}, "personMeetingContext");
|
|
21432
21435
|
|
|
21433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21434
21437
|
var PREPARE_BYTES = 96 * 1024;
|
|
21435
21438
|
var MEETINGS = 5;
|
|
21436
21439
|
var CUES = 3;
|
|
@@ -21547,7 +21550,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21547
21550
|
}
|
|
21548
21551
|
}, "meetingsOf");
|
|
21549
21552
|
|
|
21550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21551
21554
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21552
21555
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21553
21556
|
const held = await storeIfOpen(deps);
|
|
@@ -21617,7 +21620,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21617
21620
|
complete: false
|
|
21618
21621
|
})), "quiet");
|
|
21619
21622
|
|
|
21620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21621
21624
|
var TIMELINE_ITEMS = 50;
|
|
21622
21625
|
var TIMELINE_MAX = 500;
|
|
21623
21626
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21672,7 +21675,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21672
21675
|
};
|
|
21673
21676
|
}, "personTimeline");
|
|
21674
21677
|
|
|
21675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21676
21679
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21677
21680
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21678
21681
|
const held = await storeIfOpen(deps);
|
|
@@ -21899,7 +21902,110 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21899
21902
|
return rest;
|
|
21900
21903
|
}, "withoutPhone");
|
|
21901
21904
|
|
|
21902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21906
|
+
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21907
|
+
var PERIOD_FIELD = "created";
|
|
21908
|
+
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
21909
|
+
if (node.kind === "predicate")
|
|
21910
|
+
return;
|
|
21911
|
+
const optional2 = node.clauses.some(({ occur }) => occur === "should");
|
|
21912
|
+
for (const { occur, node: inner } of node.clauses) {
|
|
21913
|
+
if (!walkQuery(inner).some(({ field }) => field === PERIOD_FIELD))
|
|
21914
|
+
continue;
|
|
21915
|
+
if (!top || optional2 || occur !== "must")
|
|
21916
|
+
throw new CliError("validation_error", `${PERIOD_FIELD}: sets the period of stats tasks show: give it as a required term, not inside OR or NOT`);
|
|
21917
|
+
refuseNestedPeriod(inner, top);
|
|
21918
|
+
}
|
|
21919
|
+
}, "refuseNestedPeriod");
|
|
21920
|
+
var renamed = /* @__PURE__ */ __name((node, from, to) => node.kind === "predicate" ? node.field === from ? { ...node, field: to } : node : { ...node, clauses: node.clauses.map((clause) => ({ ...clause, node: renamed(clause.node, from, to) })) }, "renamed");
|
|
21921
|
+
var median2 = /* @__PURE__ */ __name((values) => {
|
|
21922
|
+
const sorted = [...values].sort((a, b) => a - b);
|
|
21923
|
+
const middle = Math.floor(sorted.length / 2);
|
|
21924
|
+
const upper = sorted[middle] ?? 0;
|
|
21925
|
+
return sorted.length % 2 === 1 ? upper : ((sorted[middle - 1] ?? 0) + upper) / 2;
|
|
21926
|
+
}, "median");
|
|
21927
|
+
var mean = /* @__PURE__ */ __name((values) => Math.round(values.reduce((sum2, one2) => sum2 + one2, 0) / values.length), "mean");
|
|
21928
|
+
var spread = /* @__PURE__ */ __name((open7, closeMs, now) => ({
|
|
21929
|
+
...closeMs.length > 0 ? { medianCloseMs: median2(closeMs) } : {},
|
|
21930
|
+
...open7.length > 0 ? { meanOpenAgeMs: mean(open7.map(({ createdAt }) => now - createdAt)) } : {}
|
|
21931
|
+
}), "spread");
|
|
21932
|
+
var and = /* @__PURE__ */ __name((parts) => parts.length === 0 ? void 0 : { sql: parts.map(({ sql }) => `(${sql})`).join(" AND "), params: parts.flatMap(({ params }) => params) }, "and");
|
|
21933
|
+
var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", query, timezone, group, kind }, columns, now = Date.now()) => {
|
|
21934
|
+
if (query)
|
|
21935
|
+
refuseNestedPeriod(query.root);
|
|
21936
|
+
const time = /* @__PURE__ */ __name((sql) => ({ type: "time", sql }), "time");
|
|
21937
|
+
const read2 = { ...columns, [PERIOD_FIELD]: time("t.created_at"), closed: time("t.closed_at") };
|
|
21938
|
+
const fixed = [
|
|
21939
|
+
...group === void 0 ? [] : [{ sql: "t.source_group = ?", params: [group] }],
|
|
21940
|
+
...kind === void 0 ? [] : [{ sql: "t.type = ?", params: [kind] }],
|
|
21941
|
+
...by === "meeting" ? [{ sql: "t.source_kind = 'meeting'", params: [] }] : []
|
|
21942
|
+
];
|
|
21943
|
+
const options = { command: "stats tasks show", now, ...timezone === void 0 ? {} : { zone: timezone } };
|
|
21944
|
+
const where = /* @__PURE__ */ __name((ast, more = []) => and([...fixed, ...more, ...ast ? [queryFilter(ast, read2, options)] : []]), "where");
|
|
21945
|
+
const scope = by === "project" ? { board: true } : { account: taskAccount(account) };
|
|
21946
|
+
const all = await store.tasks.statRows(scope, where(withoutField(query, PERIOD_FIELD)));
|
|
21947
|
+
const created = await store.tasks.statRows(scope, where(query));
|
|
21948
|
+
const closed = await store.tasks.statRows(scope, where(query && { ...query, root: renamed(query.root, PERIOD_FIELD, "closed") }, [
|
|
21949
|
+
{ sql: "t.closed_at IS NOT NULL", params: [] }
|
|
21950
|
+
]));
|
|
21951
|
+
const keyOf5 = /* @__PURE__ */ __name((row) => by === "project" ? String(row.projectId) : row.group ?? "", "keyOf");
|
|
21952
|
+
const groups = /* @__PURE__ */ new Map();
|
|
21953
|
+
const slot = /* @__PURE__ */ __name((row) => {
|
|
21954
|
+
const key = keyOf5(row);
|
|
21955
|
+
const found = groups.get(key) ?? { open: [], created: 0, closeMs: [] };
|
|
21956
|
+
groups.set(key, found);
|
|
21957
|
+
return found;
|
|
21958
|
+
}, "slot");
|
|
21959
|
+
for (const row of all)
|
|
21960
|
+
if (!isClosedState(row.state))
|
|
21961
|
+
slot(row).open.push(row);
|
|
21962
|
+
for (const row of created)
|
|
21963
|
+
slot(row).created++;
|
|
21964
|
+
for (const row of closed)
|
|
21965
|
+
slot(row).closeMs.push((row.closedAt ?? row.createdAt) - row.createdAt);
|
|
21966
|
+
const kept2 = [...groups].filter(([, one2]) => one2.open.length + one2.created + one2.closeMs.length > 0);
|
|
21967
|
+
const ids = kept2.map(([key]) => key);
|
|
21968
|
+
const names2 = by === "chat" ? await store.tasks.statNames("chat", ids, taskAccount(account)) : by === "project" ? await store.tasks.statNames("project", ids) : await meetingNames(store, ids);
|
|
21969
|
+
const rows = kept2.map(([key, one2]) => ({
|
|
21970
|
+
group: key,
|
|
21971
|
+
name: names2.get(key) ?? null,
|
|
21972
|
+
open: one2.open.length,
|
|
21973
|
+
created: one2.created,
|
|
21974
|
+
closed: one2.closeMs.length,
|
|
21975
|
+
...one2.open[0] ? { oldestOpenAt: new Date(one2.open[0].createdAt) } : {},
|
|
21976
|
+
...spread(one2.open, one2.closeMs, now)
|
|
21977
|
+
}));
|
|
21978
|
+
const open7 = kept2.flatMap(([, one2]) => one2.open);
|
|
21979
|
+
const closeMs = kept2.flatMap(([, one2]) => one2.closeMs);
|
|
21980
|
+
return {
|
|
21981
|
+
by,
|
|
21982
|
+
open: open7.length,
|
|
21983
|
+
created: created.length,
|
|
21984
|
+
closed: closeMs.length,
|
|
21985
|
+
...spread(open7, closeMs, now),
|
|
21986
|
+
rows
|
|
21987
|
+
};
|
|
21988
|
+
}, "taskStatsOf");
|
|
21989
|
+
var meetingIdOf = /* @__PURE__ */ __name((group) => {
|
|
21990
|
+
try {
|
|
21991
|
+
return String(parseMeetingReference(group).meetingId);
|
|
21992
|
+
} catch {
|
|
21993
|
+
return void 0;
|
|
21994
|
+
}
|
|
21995
|
+
}, "meetingIdOf");
|
|
21996
|
+
var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
21997
|
+
const meetingOf = new Map(groups.flatMap((group) => {
|
|
21998
|
+
const id2 = meetingIdOf(group);
|
|
21999
|
+
return id2 === void 0 ? [] : [[group, id2]];
|
|
22000
|
+
}));
|
|
22001
|
+
const titles = await store.tasks.statNames("meeting", [...new Set(meetingOf.values())]);
|
|
22002
|
+
return new Map([...meetingOf].flatMap(([group, id2]) => {
|
|
22003
|
+
const title = titles.get(id2);
|
|
22004
|
+
return title === void 0 ? [] : [[group, title]];
|
|
22005
|
+
}));
|
|
22006
|
+
}, "meetingNames");
|
|
22007
|
+
|
|
22008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21903
22009
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21904
22010
|
const tags = /* @__PURE__ */ new Map();
|
|
21905
22011
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21908,7 +22014,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21908
22014
|
return tags;
|
|
21909
22015
|
}, "taskTagFilters");
|
|
21910
22016
|
|
|
21911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21912
22018
|
var TASK_QUERY = {
|
|
21913
22019
|
entity: "task",
|
|
21914
22020
|
backend: "sql",
|
|
@@ -21939,6 +22045,20 @@ var TASK_QUERY = {
|
|
|
21939
22045
|
}
|
|
21940
22046
|
})
|
|
21941
22047
|
};
|
|
22048
|
+
var TASK_STATS_QUERY = {
|
|
22049
|
+
entity: "task",
|
|
22050
|
+
backend: "sql",
|
|
22051
|
+
fields: [
|
|
22052
|
+
...TASK_QUERY.fields.filter(({ name }) => name !== "created_at" && name !== "closed_at"),
|
|
22053
|
+
{
|
|
22054
|
+
name: PERIOD_FIELD,
|
|
22055
|
+
type: "time",
|
|
22056
|
+
operators: OPERATORS_BY_TYPE.time,
|
|
22057
|
+
example: `${PERIOD_FIELD}>=30d`,
|
|
22058
|
+
relation: "the period: created counts the tasks opened in it, closed the tasks done or dismissed in it; open is open now"
|
|
22059
|
+
}
|
|
22060
|
+
]
|
|
22061
|
+
};
|
|
21942
22062
|
var PAIR_DECISIONS = ["review", "unsure"];
|
|
21943
22063
|
var TASK_PAIR_QUERY = {
|
|
21944
22064
|
entity: "task_pair",
|
|
@@ -22025,6 +22145,13 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
22025
22145
|
const inStore = /* @__PURE__ */ __name(async (work) => work(await deps.store(), await deps.account()), "inStore");
|
|
22026
22146
|
const service = /* @__PURE__ */ __name((store) => createTaskService({ store: store.tasks }), "service");
|
|
22027
22147
|
const groupOf = /* @__PURE__ */ __name(async (store, account, chat) => chat === void 0 ? void 0 : storedChatId(deps.messenger, chat, store, account, { includeLeft: true }), "groupOf");
|
|
22148
|
+
const queryColumns = /* @__PURE__ */ __name(async (store, account, query) => {
|
|
22149
|
+
const groups = /* @__PURE__ */ new Map();
|
|
22150
|
+
for (const node of query ? walkQuery(query.root) : [])
|
|
22151
|
+
if (node.field === "chat" && node.operator !== "wildcard" && !groups.has(node.value))
|
|
22152
|
+
groups.set(node.value, await storedChatId(deps.messenger, node.value, store, account, { includeLeft: true }));
|
|
22153
|
+
return taskColumns(groups, await taskTagFilters(store, query));
|
|
22154
|
+
}, "queryColumns");
|
|
22028
22155
|
const refuseBare = /* @__PURE__ */ __name((target2) => {
|
|
22029
22156
|
throw new CliError("validation_error", `no task ${singleLine(target2)} \u2014 write task:${singleLine(target2)} for a task`);
|
|
22030
22157
|
}, "refuseBare");
|
|
@@ -22079,12 +22206,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
22079
22206
|
const reviewAfterLink = /* @__PURE__ */ __name(async (store, id2) => !isClosedState((await store.tasks.get(id2))?.state ?? "done") ? store.tasks.reviewDuplicates(id2, { linked: true }) : 0, "reviewAfterLink");
|
|
22080
22207
|
return {
|
|
22081
22208
|
list: /* @__PURE__ */ __name(({ query, limit, offset, previews }) => inStore(async (store, account) => {
|
|
22082
|
-
const
|
|
22083
|
-
for (const node of query ? walkQuery(query.root) : [])
|
|
22084
|
-
if (node.field === "chat" && node.operator !== "wildcard" && !groups.has(node.value))
|
|
22085
|
-
groups.set(node.value, await storedChatId(deps.messenger, node.value, store, account, { includeLeft: true }));
|
|
22086
|
-
const tags = await taskTagFilters(store, query);
|
|
22087
|
-
const where = query ? queryFilter(query, taskColumns(groups, tags), { command: "tasks list" }) : void 0;
|
|
22209
|
+
const where = query ? queryFilter(query, await queryColumns(store, account, query), { command: "tasks list" }) : void 0;
|
|
22088
22210
|
const rows = await store.tasks.query(taskAccount(account), where, { limit: limit + 1, offset });
|
|
22089
22211
|
const shown = rows.slice(0, limit);
|
|
22090
22212
|
return {
|
|
@@ -22331,13 +22453,9 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
22331
22453
|
await owned(store, account, subject);
|
|
22332
22454
|
return store.tasks.similar({ task: subject }, options);
|
|
22333
22455
|
}), "similar"),
|
|
22334
|
-
stats: /* @__PURE__ */ __name((
|
|
22335
|
-
const group = await groupOf(store, account,
|
|
22336
|
-
|
|
22337
|
-
account: taskAccount(account),
|
|
22338
|
-
...filter.type === void 0 ? {} : { kind: filter.type }
|
|
22339
|
-
});
|
|
22340
|
-
return group === void 0 ? rows : rows.filter((one2) => one2.group === group);
|
|
22456
|
+
stats: /* @__PURE__ */ __name(({ chat, ...request } = {}) => inStore(async (store, account) => {
|
|
22457
|
+
const group = await groupOf(store, account, chat);
|
|
22458
|
+
return taskStatsOf(store, account, { ...request, ...group === void 0 ? {} : { group } }, await queryColumns(store, account, request.query));
|
|
22341
22459
|
}), "stats")
|
|
22342
22460
|
};
|
|
22343
22461
|
}, "tasksService");
|
|
@@ -22388,7 +22506,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22388
22506
|
};
|
|
22389
22507
|
}, "taskView");
|
|
22390
22508
|
|
|
22391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22392
22510
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22393
22511
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22394
22512
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22411,7 +22529,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22411
22529
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22412
22530
|
}, "approveAsTask");
|
|
22413
22531
|
|
|
22414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22415
22533
|
var MAX_IDS = 500;
|
|
22416
22534
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22417
22535
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22431,6 +22549,8 @@ var one = /* @__PURE__ */ __name((token) => {
|
|
|
22431
22549
|
const part = /^([1-9]\d*)\/([A-Za-z0-9_-]{1,64})$/.exec(token);
|
|
22432
22550
|
if (part)
|
|
22433
22551
|
return [token];
|
|
22552
|
+
if (/^[a-z][a-z_]*:[A-Za-z][A-Za-z0-9]*-[1-9]\d*$/.test(token))
|
|
22553
|
+
return [token];
|
|
22434
22554
|
const prefixed = /^([a-z][a-z_]*):([1-9]\d*)(?:-(?:([a-z][a-z_]*):)?([1-9]\d*))?$/.exec(token);
|
|
22435
22555
|
if (prefixed?.[1] && prefixed[2]) {
|
|
22436
22556
|
const [, prefix, from, other, to] = prefixed;
|
|
@@ -22440,7 +22560,7 @@ var one = /* @__PURE__ */ __name((token) => {
|
|
|
22440
22560
|
}
|
|
22441
22561
|
if (/^[1-9]\d*-[a-z]/.test(token))
|
|
22442
22562
|
return refuse(`a range stays inside one prefix: ${token}`);
|
|
22443
|
-
return refuse(`not a proposal id: ${token}; use 17070, 17070-17079, fact:512 or 17080/f2`);
|
|
22563
|
+
return refuse(`not a proposal id: ${token}; use 17070, 17070-17079, fact:512, close:Q-15 or 17080/f2`);
|
|
22444
22564
|
}, "one");
|
|
22445
22565
|
var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
22446
22566
|
const ids = [...new Set(text2.flatMap((arg) => arg.split(",")).flatMap((token) => one(token.trim())))];
|
|
@@ -22451,7 +22571,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22451
22571
|
return ids;
|
|
22452
22572
|
}, "parseProposalIds");
|
|
22453
22573
|
|
|
22454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22455
22575
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22456
22576
|
if (author.type === "person")
|
|
22457
22577
|
return { type: "person", id: author.id };
|
|
@@ -22493,7 +22613,7 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22493
22613
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22494
22614
|
}, "storedStatus");
|
|
22495
22615
|
|
|
22496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22497
22617
|
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
22498
22618
|
id: action2.id,
|
|
22499
22619
|
kind: "action",
|
|
@@ -22533,7 +22653,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22533
22653
|
}, "decide")
|
|
22534
22654
|
}), "actionKind");
|
|
22535
22655
|
|
|
22536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22537
22657
|
var STATUS = {
|
|
22538
22658
|
proposed: "proposed",
|
|
22539
22659
|
accepted: "confirmed",
|
|
@@ -22576,7 +22696,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22576
22696
|
}, "decide")
|
|
22577
22697
|
}), "factKind");
|
|
22578
22698
|
|
|
22579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22580
22700
|
var rowOf3 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22581
22701
|
id: entry.ref,
|
|
22582
22702
|
kind,
|
|
@@ -22611,7 +22731,7 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22611
22731
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22612
22732
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22613
22733
|
|
|
22614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22615
22735
|
var FACT_SUMMARIES = {
|
|
22616
22736
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22617
22737
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22683,7 +22803,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22683
22803
|
};
|
|
22684
22804
|
}, "findingsKind");
|
|
22685
22805
|
|
|
22686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22687
22807
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22688
22808
|
id: `key:${link4.id}`,
|
|
22689
22809
|
kind: "key_document",
|
|
@@ -22751,7 +22871,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22751
22871
|
};
|
|
22752
22872
|
}, "keyDocumentKind");
|
|
22753
22873
|
|
|
22754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
22755
22875
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22756
22876
|
switch (finding.kind) {
|
|
22757
22877
|
case "task":
|
|
@@ -22830,14 +22950,78 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22830
22950
|
};
|
|
22831
22951
|
}, "mailFindingsKind");
|
|
22832
22952
|
|
|
22833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
22954
|
+
var rowOf6 = /* @__PURE__ */ __name((action2, batch) => {
|
|
22955
|
+
const findings = batch.input.findings;
|
|
22956
|
+
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
22957
|
+
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
22958
|
+
const references = [...new Set(findings.flatMap((finding) => finding.evidence.map((one2) => one2.reference)))];
|
|
22959
|
+
return {
|
|
22960
|
+
id: action2.id,
|
|
22961
|
+
kind: "meeting_findings",
|
|
22962
|
+
status: batch.status === "proposed" ? "proposed" : batch.receipt?.accepted.length ? "confirmed" : "rejected",
|
|
22963
|
+
project: projects.length === 1 && typeof projects[0] === "string" ? projects[0] : null,
|
|
22964
|
+
subject: references[0] ?? `meeting_findings:${action2.id}`,
|
|
22965
|
+
object: null,
|
|
22966
|
+
summary: `${findings.length} finding${findings.length === 1 ? "" : "s"}`,
|
|
22967
|
+
proposedBy: proposerOfAction(action2),
|
|
22968
|
+
reason: action2.reason,
|
|
22969
|
+
evidence: references.slice(0, 5),
|
|
22970
|
+
score: null,
|
|
22971
|
+
signals: null,
|
|
22972
|
+
parts: findings.map((finding) => ({
|
|
22973
|
+
id: finding.id,
|
|
22974
|
+
kind: finding.kind,
|
|
22975
|
+
summary: FACT_SUMMARIES[finding.kind]?.(finding) ?? finding.kind,
|
|
22976
|
+
outcome: outcome2(finding.id)
|
|
22977
|
+
})),
|
|
22978
|
+
createdAt: action2.createdAt
|
|
22979
|
+
};
|
|
22980
|
+
}, "rowOf");
|
|
22981
|
+
var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
22982
|
+
const batchOf = /* @__PURE__ */ __name(async (action2) => {
|
|
22983
|
+
if (action2.account === null)
|
|
22984
|
+
throw new CliError("not_found", `meeting findings ${action2.id} name no account`);
|
|
22985
|
+
return { account: action2.account, batch: await store.meetingFindings.get(action2.account, action2.id) };
|
|
22986
|
+
}, "batchOf");
|
|
22987
|
+
return {
|
|
22988
|
+
kind: "meeting_findings",
|
|
22989
|
+
stored: [MEETING_FINDINGS_KIND],
|
|
22990
|
+
parts: true,
|
|
22991
|
+
ownerOnly: true,
|
|
22992
|
+
list: /* @__PURE__ */ __name(async (filter) => {
|
|
22993
|
+
const actions = await store.proposedActions.list({
|
|
22994
|
+
kinds: [MEETING_FINDINGS_KIND],
|
|
22995
|
+
...(filter.status ?? "proposed") === "proposed" ? { status: "proposed" } : {},
|
|
22996
|
+
...filter.by === void 0 ? {} : { proposedBy: filter.by },
|
|
22997
|
+
limit: Math.min(filter.offset + filter.limit, 500)
|
|
22998
|
+
});
|
|
22999
|
+
const rows = await Promise.all(actions.map(async (action2) => rowOf6(action2, (await batchOf(action2)).batch)));
|
|
23000
|
+
return kept(rows, { ...filter, limit: filter.offset + filter.limit });
|
|
23001
|
+
}, "list"),
|
|
23002
|
+
get: /* @__PURE__ */ __name(async (id2) => {
|
|
23003
|
+
const action2 = await store.proposedActions.get(id2);
|
|
23004
|
+
return rowOf6(action2, (await batchOf(action2)).batch);
|
|
23005
|
+
}, "get"),
|
|
23006
|
+
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, parts }) => {
|
|
23007
|
+
const { account, batch } = await batchOf(await store.proposedActions.get(id2));
|
|
23008
|
+
const turnedDown = new Set(batch.previous.filter((one2) => one2.status === "rejected").map((one2) => one2.id));
|
|
23009
|
+
const accept = !confirm ? [] : parts ?? batch.input.findings.map((finding) => finding.id).filter((one2) => !turnedDown.has(one2));
|
|
23010
|
+
const reviewed = await store.meetingFindings.review(account, id2, { fingerprint: batch.fingerprint, accept, by });
|
|
23011
|
+
const made = (reviewed.receipt?.items ?? []).flatMap((item2) => item2.status === "accepted" && item2.reference && !item2.reused ? [item2.reference] : []);
|
|
23012
|
+
return { id: id2, kind: "meeting_findings", status: accept.length ? "confirmed" : "rejected", made };
|
|
23013
|
+
}, "decide")
|
|
23014
|
+
};
|
|
23015
|
+
}, "meetingFindingsKind");
|
|
23016
|
+
|
|
23017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
22834
23018
|
var STATUS2 = {
|
|
22835
23019
|
proposed: "proposed",
|
|
22836
23020
|
confirmed: "confirmed",
|
|
22837
23021
|
superseded: "confirmed",
|
|
22838
23022
|
stale: "rejected"
|
|
22839
23023
|
};
|
|
22840
|
-
var
|
|
23024
|
+
var rowOf7 = /* @__PURE__ */ __name((memory) => ({
|
|
22841
23025
|
id: memory.ref,
|
|
22842
23026
|
kind: "memory",
|
|
22843
23027
|
status: STATUS2[memory.status],
|
|
@@ -22862,16 +23046,16 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22862
23046
|
...pushed2(filter),
|
|
22863
23047
|
...status === "all" ? {} : { status: status === "rejected" ? "stale" : status }
|
|
22864
23048
|
});
|
|
22865
|
-
return kept(memories.map(
|
|
23049
|
+
return kept(memories.map(rowOf7), filter);
|
|
22866
23050
|
}, "list"),
|
|
22867
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23051
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf7(await store.memories.get(id2)), "get"),
|
|
22868
23052
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by }) => {
|
|
22869
23053
|
const memory = confirm ? await store.memories.confirm(id2, by) : await store.memories.markStale(id2, by);
|
|
22870
23054
|
return { id: id2, kind: "memory", status: confirm ? "confirmed" : "rejected", made: confirm ? [memory.ref] : [] };
|
|
22871
23055
|
}, "decide")
|
|
22872
23056
|
}), "memoryKind");
|
|
22873
23057
|
|
|
22874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
22875
23059
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
22876
23060
|
id: `link:${link4.id}`,
|
|
22877
23061
|
kind: "relationship",
|
|
@@ -22945,10 +23129,10 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
22945
23129
|
};
|
|
22946
23130
|
}, "relationshipKind");
|
|
22947
23131
|
|
|
22948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
22949
23133
|
var KIND = "relationship_update";
|
|
22950
23134
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
22951
|
-
var
|
|
23135
|
+
var rowOf8 = /* @__PURE__ */ __name((action2) => {
|
|
22952
23136
|
const payload = action2.payload;
|
|
22953
23137
|
return {
|
|
22954
23138
|
id: action2.id,
|
|
@@ -22977,9 +23161,9 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22977
23161
|
...status === void 0 ? {} : { status },
|
|
22978
23162
|
...pushed2(filter)
|
|
22979
23163
|
});
|
|
22980
|
-
return kept(stored.map(
|
|
23164
|
+
return kept(stored.map(rowOf8), filter);
|
|
22981
23165
|
}, "list"),
|
|
22982
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23166
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf8(await store.proposedActions.get(id2)), "get"),
|
|
22983
23167
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22984
23168
|
const { relation } = await store.knowledge.decideRelationUpdate(id2, {
|
|
22985
23169
|
confirm,
|
|
@@ -22995,7 +23179,75 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22995
23179
|
}, "decide")
|
|
22996
23180
|
}), "relationshipUpdateKind");
|
|
22997
23181
|
|
|
22998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23183
|
+
var rowOf9 = /* @__PURE__ */ __name((task2) => {
|
|
23184
|
+
const suggestion = task2.closeSuggestion;
|
|
23185
|
+
if (suggestion === null)
|
|
23186
|
+
return void 0;
|
|
23187
|
+
return {
|
|
23188
|
+
id: `close:${task2.key}`,
|
|
23189
|
+
kind: TASK_CLOSE_KIND,
|
|
23190
|
+
status: "proposed",
|
|
23191
|
+
project: task2.project,
|
|
23192
|
+
subject: task2.ref,
|
|
23193
|
+
object: null,
|
|
23194
|
+
summary: `close as ${suggestion.as}: ${task2.title}`,
|
|
23195
|
+
proposedBy: { type: "bot", id: suggestion.by, name: suggestion.by, kind: "agent" },
|
|
23196
|
+
reason: suggestion.reason,
|
|
23197
|
+
evidence: task2.source === null ? [] : [task2.source],
|
|
23198
|
+
score: suggestion.certainty,
|
|
23199
|
+
signals: null,
|
|
23200
|
+
parts: null,
|
|
23201
|
+
createdAt: suggestion.at
|
|
23202
|
+
};
|
|
23203
|
+
}, "rowOf");
|
|
23204
|
+
var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
23205
|
+
const taskOf = /* @__PURE__ */ __name(async (id2) => {
|
|
23206
|
+
const key = id2.slice("close:".length);
|
|
23207
|
+
const task2 = await store.tasks.details(key).catch(() => void 0);
|
|
23208
|
+
const row = task2 && rowOf9(task2);
|
|
23209
|
+
if (!task2 || !row)
|
|
23210
|
+
throw new CliError("not_found", `no close waits on task ${key}`);
|
|
23211
|
+
return { task: task2, row };
|
|
23212
|
+
}, "taskOf");
|
|
23213
|
+
return {
|
|
23214
|
+
kind: TASK_CLOSE_KIND,
|
|
23215
|
+
prefix: "close",
|
|
23216
|
+
ownerOnly: true,
|
|
23217
|
+
list: /* @__PURE__ */ __name(async (filter) => {
|
|
23218
|
+
if ((filter.status ?? "proposed") !== "proposed" && filter.status !== "all")
|
|
23219
|
+
return [];
|
|
23220
|
+
const tasks = await store.tasks.find({
|
|
23221
|
+
status: "open",
|
|
23222
|
+
where: { sql: "t.close_suggested_as IS NOT NULL", params: [] },
|
|
23223
|
+
limit: filter.offset + filter.limit
|
|
23224
|
+
});
|
|
23225
|
+
return kept(tasks.flatMap((task2) => rowOf9(task2) ?? []), { ...filter, limit: filter.offset + filter.limit });
|
|
23226
|
+
}, "list"),
|
|
23227
|
+
get: /* @__PURE__ */ __name(async (id2) => (await taskOf(id2)).row, "get"),
|
|
23228
|
+
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
23229
|
+
const { task: task2 } = await taskOf(id2);
|
|
23230
|
+
const suggestion = task2.closeSuggestion;
|
|
23231
|
+
if (!confirm || suggestion === null) {
|
|
23232
|
+
await store.tasks.suggestClose(task2.id, null, "owner");
|
|
23233
|
+
return { id: id2, kind: TASK_CLOSE_KIND, status: "rejected", made: [] };
|
|
23234
|
+
}
|
|
23235
|
+
if (await store.tasks.get(task2.id) === void 0)
|
|
23236
|
+
await store.tasks.edit(task2.id, { status: suggestion.as, ...reason === void 0 ? {} : { reason } }, deciderAuthor(by));
|
|
23237
|
+
else {
|
|
23238
|
+
const why = reason ?? suggestion.reason ?? void 0;
|
|
23239
|
+
await createTaskService({ store: store.tasks }).close(task2.id, {
|
|
23240
|
+
as: suggestion.as,
|
|
23241
|
+
by: "owner",
|
|
23242
|
+
...why === void 0 ? {} : { reason: why }
|
|
23243
|
+
});
|
|
23244
|
+
}
|
|
23245
|
+
return { id: id2, kind: TASK_CLOSE_KIND, status: "confirmed", made: [task2.ref] };
|
|
23246
|
+
}, "decide")
|
|
23247
|
+
};
|
|
23248
|
+
}, "taskCloseKind");
|
|
23249
|
+
|
|
23250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
22999
23251
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23000
23252
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23001
23253
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23112,14 +23364,16 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23112
23364
|
paymentKind(store),
|
|
23113
23365
|
memoryKind(store),
|
|
23114
23366
|
findingsKind(store),
|
|
23115
|
-
mailFindingsKind(store)
|
|
23367
|
+
mailFindingsKind(store),
|
|
23368
|
+
meetingFindingsKind(store),
|
|
23369
|
+
taskCloseKind(store)
|
|
23116
23370
|
])
|
|
23117
23371
|
registry.register(kind);
|
|
23118
23372
|
registry.register(actionKind(store, registry.claimed));
|
|
23119
23373
|
return registry;
|
|
23120
23374
|
}, "proposalRegistry");
|
|
23121
23375
|
|
|
23122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23123
23377
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23124
23378
|
if (newest === null)
|
|
23125
23379
|
return null;
|
|
@@ -23128,7 +23382,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23128
23382
|
return newest.addressed ? "owed" : null;
|
|
23129
23383
|
}, "mailTurn");
|
|
23130
23384
|
|
|
23131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23132
23386
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23133
23387
|
if (error instanceof CliError && error.code === "not_found")
|
|
23134
23388
|
return void 0;
|
|
@@ -23186,7 +23440,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23186
23440
|
};
|
|
23187
23441
|
}, "mailActivity");
|
|
23188
23442
|
|
|
23189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23190
23444
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23191
23445
|
const ids = [...new Set(chatIds)];
|
|
23192
23446
|
if (ids.length === 0)
|
|
@@ -23212,7 +23466,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23212
23466
|
}));
|
|
23213
23467
|
}, "chatCoverage");
|
|
23214
23468
|
|
|
23215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23216
23470
|
var DAY = 864e5;
|
|
23217
23471
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23218
23472
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23459,7 +23713,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23459
23713
|
};
|
|
23460
23714
|
}, "agendaItem");
|
|
23461
23715
|
|
|
23462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23463
23717
|
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");
|
|
23464
23718
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23465
23719
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23475,7 +23729,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23475
23729
|
}, "excerpt");
|
|
23476
23730
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23477
23731
|
|
|
23478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
23479
23733
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23480
23734
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
23481
23735
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -23514,7 +23768,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
23514
23768
|
return found;
|
|
23515
23769
|
}, "identitiesIn");
|
|
23516
23770
|
|
|
23517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
23518
23772
|
var SEARCH_LIMIT = 500;
|
|
23519
23773
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
23520
23774
|
var aliasHits = {
|
|
@@ -23563,7 +23817,7 @@ var aliasHits = {
|
|
|
23563
23817
|
}, "candidates")
|
|
23564
23818
|
};
|
|
23565
23819
|
|
|
23566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
23567
23821
|
var WEIGHT = 0.5;
|
|
23568
23822
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
23569
23823
|
var LARGE_GROUP = 30;
|
|
@@ -23615,7 +23869,7 @@ var chatSenders = {
|
|
|
23615
23869
|
}, "candidates")
|
|
23616
23870
|
};
|
|
23617
23871
|
|
|
23618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
23619
23873
|
var WEIGHT2 = 0.7;
|
|
23620
23874
|
var chatTitle = {
|
|
23621
23875
|
id: "chat-title",
|
|
@@ -23654,7 +23908,7 @@ var chatTitle = {
|
|
|
23654
23908
|
}, "candidates")
|
|
23655
23909
|
};
|
|
23656
23910
|
|
|
23657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
23658
23912
|
var WEIGHT3 = 0.3;
|
|
23659
23913
|
var CONTACTS = 500;
|
|
23660
23914
|
var MOST_PAIRS = 200;
|
|
@@ -23715,7 +23969,7 @@ var emailDomain = {
|
|
|
23715
23969
|
}, "candidates")
|
|
23716
23970
|
};
|
|
23717
23971
|
|
|
23718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
23719
23973
|
var NAMED = 0.7;
|
|
23720
23974
|
var MEMBER_ONLY = 0.3;
|
|
23721
23975
|
var READ_LIMIT2 = 500;
|
|
@@ -23788,7 +24042,7 @@ var mailThread = {
|
|
|
23788
24042
|
}, "candidates")
|
|
23789
24043
|
};
|
|
23790
24044
|
|
|
23791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
23792
24046
|
var WEIGHT4 = 0.5;
|
|
23793
24047
|
var memberChats = {
|
|
23794
24048
|
id: "member-chats",
|
|
@@ -23828,7 +24082,7 @@ var memberChats = {
|
|
|
23828
24082
|
}, "candidates")
|
|
23829
24083
|
};
|
|
23830
24084
|
|
|
23831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
23832
24086
|
var WEIGHT5 = 0.6;
|
|
23833
24087
|
var memberDialog = {
|
|
23834
24088
|
id: "member-dialog",
|
|
@@ -23862,7 +24116,7 @@ var memberDialog = {
|
|
|
23862
24116
|
}, "candidates")
|
|
23863
24117
|
};
|
|
23864
24118
|
|
|
23865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
23866
24120
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
23867
24121
|
async around(ref, window3) {
|
|
23868
24122
|
const at = parseLocator(ref);
|
|
@@ -23958,7 +24212,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23958
24212
|
};
|
|
23959
24213
|
}, "storedNeighbours");
|
|
23960
24214
|
|
|
23961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
23962
24216
|
import { createHash as createHash2 } from "node:crypto";
|
|
23963
24217
|
var DAY2 = 864e5;
|
|
23964
24218
|
var MAX_TIME = 864e13;
|
|
@@ -24274,7 +24528,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24274
24528
|
return value;
|
|
24275
24529
|
}, "decodeCheckpoint");
|
|
24276
24530
|
|
|
24277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24278
24532
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24279
24533
|
var PAGE2 = 20;
|
|
24280
24534
|
var PEOPLE = 20;
|
|
@@ -24678,7 +24932,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
24678
24932
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
24679
24933
|
}, "peopleOf");
|
|
24680
24934
|
|
|
24681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
24682
24936
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
24683
24937
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
24684
24938
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -24722,7 +24976,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
24722
24976
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
24723
24977
|
}, "matchVocabularyTerms");
|
|
24724
24978
|
|
|
24725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
24726
24980
|
var KINDS = ["project", "tag", "topic"];
|
|
24727
24981
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
24728
24982
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -24777,7 +25031,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
24777
25031
|
};
|
|
24778
25032
|
}, "findEvidenceMentions");
|
|
24779
25033
|
|
|
24780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
24781
25035
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
24782
25036
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
24783
25037
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25083,7 +25337,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25083
25337
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25084
25338
|
}, "purposeHintOf");
|
|
25085
25339
|
|
|
25086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
25087
25341
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25088
25342
|
var PERSON_SCORERS = [emailDomain];
|
|
25089
25343
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25291,18 +25545,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25291
25545
|
}, "referenceOf");
|
|
25292
25546
|
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");
|
|
25293
25547
|
|
|
25294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25295
25549
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25296
25550
|
|
|
25297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25298
25552
|
import { lstat } from "node:fs/promises";
|
|
25299
25553
|
|
|
25300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25301
25555
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25302
25556
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25303
25557
|
import { join as join2 } from "node:path";
|
|
25304
25558
|
|
|
25305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25306
25560
|
import { createHash as createHash3 } from "node:crypto";
|
|
25307
25561
|
var metadataLimit = 16384;
|
|
25308
25562
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25362,7 +25616,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25362
25616
|
}
|
|
25363
25617
|
}, "readPartialMetadata");
|
|
25364
25618
|
|
|
25365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25366
25620
|
import { randomUUID } from "node:crypto";
|
|
25367
25621
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25368
25622
|
import { join } from "node:path";
|
|
@@ -25454,7 +25708,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25454
25708
|
};
|
|
25455
25709
|
}, "partialWriter");
|
|
25456
25710
|
|
|
25457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25458
25712
|
var NativeRecordingPartialStore = class {
|
|
25459
25713
|
static {
|
|
25460
25714
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25561,12 +25815,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25561
25815
|
}
|
|
25562
25816
|
};
|
|
25563
25817
|
|
|
25564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25565
25819
|
import { createHash as createHash5 } from "node:crypto";
|
|
25566
25820
|
import { link as link2 } from "node:fs/promises";
|
|
25567
25821
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
25568
25822
|
|
|
25569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25570
25824
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25571
25825
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25572
25826
|
signal?.throwIfAborted();
|
|
@@ -25601,7 +25855,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25601
25855
|
signal?.throwIfAborted();
|
|
25602
25856
|
}, "commitPublication");
|
|
25603
25857
|
|
|
25604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25605
25859
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
25606
25860
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25607
25861
|
import { join as join3 } from "node:path";
|
|
@@ -25674,7 +25928,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25674
25928
|
}
|
|
25675
25929
|
}, "writePublicationJournal");
|
|
25676
25930
|
|
|
25677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25678
25932
|
var NativeRecordingPublication = class {
|
|
25679
25933
|
static {
|
|
25680
25934
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25747,7 +26001,7 @@ var NativeRecordingPublication = class {
|
|
|
25747
26001
|
}
|
|
25748
26002
|
};
|
|
25749
26003
|
|
|
25750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25751
26005
|
import { createHash as createHash6 } from "node:crypto";
|
|
25752
26006
|
import { readdir } from "node:fs/promises";
|
|
25753
26007
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -25834,7 +26088,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
25834
26088
|
beforePublish
|
|
25835
26089
|
}), "commitMediaEntry");
|
|
25836
26090
|
|
|
25837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25838
26092
|
var validator = '"media-completed-v1"';
|
|
25839
26093
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
25840
26094
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -25935,7 +26189,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
25935
26189
|
return entry;
|
|
25936
26190
|
}, "archiveMediaFile");
|
|
25937
26191
|
|
|
25938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
25939
26193
|
import { mkdir, realpath } from "node:fs/promises";
|
|
25940
26194
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
25941
26195
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26002,7 +26256,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26002
26256
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26003
26257
|
}, "withMediaArchiveLocks");
|
|
26004
26258
|
|
|
26005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26006
26260
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26007
26261
|
if (value === void 0)
|
|
26008
26262
|
return void 0;
|
|
@@ -26155,7 +26409,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26155
26409
|
}, { create: true });
|
|
26156
26410
|
}, "archiveMedia");
|
|
26157
26411
|
|
|
26158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26159
26413
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26160
26414
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26161
26415
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26308,7 +26562,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26308
26562
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26309
26563
|
}, "moveMediaArchive");
|
|
26310
26564
|
|
|
26311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26312
26566
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26313
26567
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26314
26568
|
}, "progress") }) => {
|
|
@@ -26331,7 +26585,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26331
26585
|
}
|
|
26332
26586
|
await nativeRuntime({ env, progress });
|
|
26333
26587
|
progress(`${model.id}: loading it once to check it works`);
|
|
26334
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26588
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-CQJ42S5C.js");
|
|
26335
26589
|
const embedder = await openEmbedder2(model, directory2);
|
|
26336
26590
|
try {
|
|
26337
26591
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26352,7 +26606,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26352
26606
|
}
|
|
26353
26607
|
await nativeRuntime({ env, progress });
|
|
26354
26608
|
progress(`${model.id}: loading it once to check it works`);
|
|
26355
|
-
const { openReranker } = await import("./rerank-
|
|
26609
|
+
const { openReranker } = await import("./rerank-UKOVVZM6.js");
|
|
26356
26610
|
const reranker = await openReranker(model, directory2);
|
|
26357
26611
|
try {
|
|
26358
26612
|
await reranker.score("check", ["check"]);
|
|
@@ -26370,7 +26624,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26370
26624
|
await installFiles(placedImage(model, directory2), { progress });
|
|
26371
26625
|
}
|
|
26372
26626
|
progress(`${model.id}: loading it once to check it works`);
|
|
26373
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26627
|
+
const { openPictureEmbedder } = await import("./embedder-EDXLEJ27.js");
|
|
26374
26628
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26375
26629
|
try {
|
|
26376
26630
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26382,7 +26636,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26382
26636
|
return { model, directory: directory2 };
|
|
26383
26637
|
}, "downloadImageModel");
|
|
26384
26638
|
|
|
26385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26386
26640
|
var MONEY_REQUEST = "money-request";
|
|
26387
26641
|
var MONEY_DONE = "money-done";
|
|
26388
26642
|
var PROMISE = "promise";
|
|
@@ -26416,10 +26670,10 @@ var MONEY_WORDS = [
|
|
|
26416
26670
|
}
|
|
26417
26671
|
];
|
|
26418
26672
|
|
|
26419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26420
26674
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26421
26675
|
|
|
26422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26423
26677
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26424
26678
|
var MONEY_DONE_FORMS = words([
|
|
26425
26679
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26459,7 +26713,7 @@ var PROMISE_FORMS = words([
|
|
|
26459
26713
|
"estar\xE1 listo"
|
|
26460
26714
|
]);
|
|
26461
26715
|
|
|
26462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26463
26717
|
var EXCERPT_CHARS = 80;
|
|
26464
26718
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26465
26719
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26481,7 +26735,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26481
26735
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26482
26736
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26483
26737
|
|
|
26484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26485
26739
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26486
26740
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26487
26741
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26561,7 +26815,7 @@ var amounts = {
|
|
|
26561
26815
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
26562
26816
|
};
|
|
26563
26817
|
|
|
26564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26565
26819
|
var children = {
|
|
26566
26820
|
id: "children",
|
|
26567
26821
|
version: 1,
|
|
@@ -26590,7 +26844,7 @@ var children = {
|
|
|
26590
26844
|
}, "read")
|
|
26591
26845
|
};
|
|
26592
26846
|
|
|
26593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26594
26848
|
var coverage = {
|
|
26595
26849
|
id: "coverage",
|
|
26596
26850
|
version: 1,
|
|
@@ -26619,7 +26873,7 @@ var coverage = {
|
|
|
26619
26873
|
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")
|
|
26620
26874
|
};
|
|
26621
26875
|
|
|
26622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/signals/last-message.js
|
|
26623
26877
|
var lastMessage = {
|
|
26624
26878
|
id: "last-message",
|
|
26625
26879
|
version: 1,
|
|
@@ -26641,7 +26895,7 @@ var lastMessage = {
|
|
|
26641
26895
|
}, "read")
|
|
26642
26896
|
};
|
|
26643
26897
|
|
|
26644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26645
26899
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26646
26900
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26647
26901
|
signal: "payments",
|
|
@@ -26691,7 +26945,7 @@ var payments = {
|
|
|
26691
26945
|
}, "read")
|
|
26692
26946
|
};
|
|
26693
26947
|
|
|
26694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26695
26949
|
var PATTERNS_PER_CHAT = 3;
|
|
26696
26950
|
var DAY3 = 864e5;
|
|
26697
26951
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26780,7 +27034,7 @@ var promises = {
|
|
|
26780
27034
|
}, "read")
|
|
26781
27035
|
};
|
|
26782
27036
|
|
|
26783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26784
27038
|
var PER_SIDE = 5;
|
|
26785
27039
|
var WEEK = 7 * 864e5;
|
|
26786
27040
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26811,7 +27065,7 @@ var questions2 = {
|
|
|
26811
27065
|
}, "attention")
|
|
26812
27066
|
};
|
|
26813
27067
|
|
|
26814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26815
27069
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26816
27070
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
26817
27071
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -26879,7 +27133,7 @@ var replyNext = {
|
|
|
26879
27133
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
26880
27134
|
};
|
|
26881
27135
|
|
|
26882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
26883
27137
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
26884
27138
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
26885
27139
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -26925,7 +27179,7 @@ var topics = {
|
|
|
26925
27179
|
}, "read")
|
|
26926
27180
|
};
|
|
26927
27181
|
|
|
26928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
26929
27183
|
var STATUS_SIGNALS = [
|
|
26930
27184
|
lastMessage,
|
|
26931
27185
|
replyNext,
|
|
@@ -26938,7 +27192,7 @@ var STATUS_SIGNALS = [
|
|
|
26938
27192
|
children
|
|
26939
27193
|
];
|
|
26940
27194
|
|
|
26941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
26942
27196
|
var DAY4 = 864e5;
|
|
26943
27197
|
var STATUS_WINDOW = 300;
|
|
26944
27198
|
var STATUS_CHATS = 16;
|
|
@@ -27120,7 +27374,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27120
27374
|
};
|
|
27121
27375
|
}, "projectStatus");
|
|
27122
27376
|
|
|
27123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27124
27378
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27125
27379
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27126
27380
|
if (deps.offline)
|
|
@@ -27192,7 +27446,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27192
27446
|
};
|
|
27193
27447
|
}, "accountService");
|
|
27194
27448
|
|
|
27195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27196
27450
|
var MINUTE = 6e4;
|
|
27197
27451
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27198
27452
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27211,7 +27465,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27211
27465
|
return new Date(at - at % MINUTE).toISOString();
|
|
27212
27466
|
}, "sendTime");
|
|
27213
27467
|
|
|
27214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27215
27469
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27216
27470
|
try {
|
|
27217
27471
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27458,7 +27712,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27458
27712
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27459
27713
|
}, "linkLimits");
|
|
27460
27714
|
|
|
27461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27462
27716
|
var THREADS_PAGE = 500;
|
|
27463
27717
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27464
27718
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27537,7 +27791,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27537
27791
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27538
27792
|
}, "readMail");
|
|
27539
27793
|
|
|
27540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27541
27795
|
var NO_MAIL = "no_mail";
|
|
27542
27796
|
var MAIL = "email";
|
|
27543
27797
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27584,7 +27838,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27584
27838
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27585
27839
|
}, "accountsOfKind");
|
|
27586
27840
|
|
|
27587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27588
27842
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27589
27843
|
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");
|
|
27590
27844
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -27932,7 +28186,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
27932
28186
|
};
|
|
27933
28187
|
}, "statsLucene");
|
|
27934
28188
|
|
|
27935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
27936
28190
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
27937
28191
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
27938
28192
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28101,7 +28355,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28101
28355
|
};
|
|
28102
28356
|
}, "readRankingSelection");
|
|
28103
28357
|
|
|
28104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28105
28359
|
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");
|
|
28106
28360
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28107
28361
|
command,
|
|
@@ -28111,7 +28365,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28111
28365
|
fieldsVersion: FIELD_VERSION
|
|
28112
28366
|
}), "searchRecordOf");
|
|
28113
28367
|
|
|
28114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28115
28369
|
function invalid2(message) {
|
|
28116
28370
|
throw new CliError("validation_error", message);
|
|
28117
28371
|
}
|
|
@@ -28405,7 +28659,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28405
28659
|
}, "evidence")
|
|
28406
28660
|
}), "adminStatisticsService");
|
|
28407
28661
|
|
|
28408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28409
28663
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28410
28664
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28411
28665
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28542,16 +28796,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28542
28796
|
return { plan, repair };
|
|
28543
28797
|
}, "gapsService");
|
|
28544
28798
|
|
|
28545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28546
28800
|
import { createHash as createHash9 } from "node:crypto";
|
|
28547
28801
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28548
28802
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28549
28803
|
|
|
28550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28551
28805
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28552
28806
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28553
28807
|
|
|
28554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
28555
28809
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28556
28810
|
import { open as open4, stat } from "node:fs/promises";
|
|
28557
28811
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -28753,7 +29007,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
28753
29007
|
return { name, source };
|
|
28754
29008
|
}, "readStickerFile");
|
|
28755
29009
|
|
|
28756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28757
29011
|
var MAX_FILES = 1e4;
|
|
28758
29012
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
28759
29013
|
if (refusedPlace(directory2, app, env))
|
|
@@ -28822,15 +29076,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28822
29076
|
return choices;
|
|
28823
29077
|
}, "directoryPaths");
|
|
28824
29078
|
|
|
28825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28826
29080
|
import { posix } from "node:path";
|
|
28827
29081
|
|
|
28828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28829
29083
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28830
29084
|
import { crc32 } from "node:zlib";
|
|
28831
29085
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28832
29086
|
|
|
28833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28834
29088
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28835
29089
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28836
29090
|
var SAMPLE = 65536;
|
|
@@ -28932,7 +29186,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28932
29186
|
return result.text;
|
|
28933
29187
|
}, "decodeXml");
|
|
28934
29188
|
|
|
28935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28936
29190
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28937
29191
|
var MAX_ENTRIES = 1e3;
|
|
28938
29192
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29147,7 +29401,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29147
29401
|
return found;
|
|
29148
29402
|
}, "elements");
|
|
29149
29403
|
|
|
29150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29151
29405
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29152
29406
|
let name = "";
|
|
29153
29407
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29202,7 +29456,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29202
29456
|
return { text: parts.join("").trim(), truncated: false };
|
|
29203
29457
|
}, "sheetText");
|
|
29204
29458
|
|
|
29205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29206
29460
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29207
29461
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29208
29462
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29602,10 +29856,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29602
29856
|
}
|
|
29603
29857
|
}, "readDocument");
|
|
29604
29858
|
|
|
29605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29606
29860
|
import { extname as extname3 } from "node:path";
|
|
29607
29861
|
|
|
29608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29609
29863
|
import { readFileSync } from "node:fs";
|
|
29610
29864
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29611
29865
|
import { fileURLToPath } from "node:url";
|
|
@@ -29666,7 +29920,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29666
29920
|
}
|
|
29667
29921
|
}, "derived");
|
|
29668
29922
|
|
|
29669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29670
29924
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29671
29925
|
var image2 = {
|
|
29672
29926
|
id: "image",
|
|
@@ -29675,7 +29929,7 @@ var image2 = {
|
|
|
29675
29929
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29676
29930
|
};
|
|
29677
29931
|
|
|
29678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29679
29933
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29680
29934
|
var doc = {
|
|
29681
29935
|
id: "doc",
|
|
@@ -29687,7 +29941,7 @@ var doc = {
|
|
|
29687
29941
|
}), "read")
|
|
29688
29942
|
};
|
|
29689
29943
|
|
|
29690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29691
29945
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29692
29946
|
var docx = {
|
|
29693
29947
|
id: "docx",
|
|
@@ -29700,7 +29954,7 @@ var docx = {
|
|
|
29700
29954
|
}), "read")
|
|
29701
29955
|
};
|
|
29702
29956
|
|
|
29703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29704
29958
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29705
29959
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29706
29960
|
"fonttbl",
|
|
@@ -29876,7 +30130,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
29876
30130
|
}, "htmlText");
|
|
29877
30131
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
29878
30132
|
|
|
29879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29880
30134
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29881
30135
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29882
30136
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29932,7 +30186,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29932
30186
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29933
30187
|
}, "markdownSections");
|
|
29934
30188
|
|
|
29935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29936
30190
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29937
30191
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29938
30192
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30003,7 +30257,7 @@ var html = {
|
|
|
30003
30257
|
}, "read")
|
|
30004
30258
|
};
|
|
30005
30259
|
|
|
30006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30007
30261
|
var office = {
|
|
30008
30262
|
id: "office",
|
|
30009
30263
|
version: documentExtractor("odt"),
|
|
@@ -30014,7 +30268,7 @@ var office = {
|
|
|
30014
30268
|
}, "read")
|
|
30015
30269
|
};
|
|
30016
30270
|
|
|
30017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30018
30272
|
var pdf = {
|
|
30019
30273
|
id: "pdf",
|
|
30020
30274
|
version: "unpdf",
|
|
@@ -30081,7 +30335,7 @@ var pdf = {
|
|
|
30081
30335
|
}), "read")
|
|
30082
30336
|
};
|
|
30083
30337
|
|
|
30084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30085
30339
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30086
30340
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30087
30341
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30101,7 +30355,7 @@ var plain = {
|
|
|
30101
30355
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30102
30356
|
};
|
|
30103
30357
|
|
|
30104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30105
30359
|
var rtf = {
|
|
30106
30360
|
id: "rtf",
|
|
30107
30361
|
version: "v1",
|
|
@@ -30109,10 +30363,10 @@ var rtf = {
|
|
|
30109
30363
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30110
30364
|
};
|
|
30111
30365
|
|
|
30112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30113
30367
|
import { basename as basename5 } from "node:path";
|
|
30114
30368
|
|
|
30115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30116
30370
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30117
30371
|
const cells = [];
|
|
30118
30372
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30150,7 +30404,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30150
30404
|
return { cells, truncated };
|
|
30151
30405
|
}, "delimitedSpans");
|
|
30152
30406
|
|
|
30153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30154
30408
|
var DELIMITED = {
|
|
30155
30409
|
".csv": ",",
|
|
30156
30410
|
".tsv": " ",
|
|
@@ -30189,7 +30443,7 @@ var sheets = {
|
|
|
30189
30443
|
}, "read")
|
|
30190
30444
|
};
|
|
30191
30445
|
|
|
30192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30193
30447
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30194
30448
|
var HEAD_BYTES = 1024;
|
|
30195
30449
|
var readers = [...BUILT_INS2];
|
|
@@ -30199,7 +30453,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30199
30453
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30200
30454
|
}, "readWithRegistry");
|
|
30201
30455
|
|
|
30202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30203
30457
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30204
30458
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30205
30459
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31278,7 +31532,7 @@ function imageSize(input) {
|
|
|
31278
31532
|
}
|
|
31279
31533
|
__name(imageSize, "imageSize");
|
|
31280
31534
|
|
|
31281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31282
31536
|
var MAX_PAGES = 20;
|
|
31283
31537
|
var MAX_PIXELS = 2e7;
|
|
31284
31538
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31429,7 +31683,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31429
31683
|
}
|
|
31430
31684
|
}, "ocrPdf");
|
|
31431
31685
|
|
|
31432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31433
31687
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31434
31688
|
const limits = pdfPreviewLimits(env);
|
|
31435
31689
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31506,7 +31760,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31506
31760
|
}
|
|
31507
31761
|
}, "pdfPreview");
|
|
31508
31762
|
|
|
31509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31510
31764
|
import { createHash as createHash8 } from "node:crypto";
|
|
31511
31765
|
import { constants } from "node:fs";
|
|
31512
31766
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31614,7 +31868,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31614
31868
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31615
31869
|
}, "transferMime");
|
|
31616
31870
|
|
|
31617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31618
31872
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31619
31873
|
import { link as link3, rm } from "node:fs/promises";
|
|
31620
31874
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -31728,7 +31982,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
31728
31982
|
}
|
|
31729
31983
|
}, "save");
|
|
31730
31984
|
|
|
31731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31732
31986
|
var ATTACHMENT_QUERY = {
|
|
31733
31987
|
entity: "attachment",
|
|
31734
31988
|
backend: "sql",
|
|
@@ -32151,7 +32405,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32151
32405
|
}, "setText")
|
|
32152
32406
|
}), "attachmentsService");
|
|
32153
32407
|
|
|
32154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32155
32409
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32156
32410
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32157
32411
|
const store = await accountStore(deps);
|
|
@@ -32181,7 +32435,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32181
32435
|
}, "list")
|
|
32182
32436
|
}), "chatDocumentsService");
|
|
32183
32437
|
|
|
32184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32185
32439
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32186
32440
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32187
32441
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32268,7 +32522,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32268
32522
|
}
|
|
32269
32523
|
}, "isRetentionSelection");
|
|
32270
32524
|
|
|
32271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32272
32526
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32273
32527
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32274
32528
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32475,7 +32729,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32475
32729
|
};
|
|
32476
32730
|
}, "countersService");
|
|
32477
32731
|
|
|
32478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32479
32733
|
var SYNC_KEY = "messages.sync-first";
|
|
32480
32734
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32481
32735
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32607,7 +32861,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32607
32861
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32608
32862
|
}), "withRefresh");
|
|
32609
32863
|
|
|
32610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32611
32865
|
var CANDIDATES = 50;
|
|
32612
32866
|
var WORD_HITS = 200;
|
|
32613
32867
|
var RRF_K = 60;
|
|
@@ -32873,22 +33127,22 @@ var searchReadiness = /* @__PURE__ */ __name((chats, meaning, outside) => {
|
|
|
32873
33127
|
};
|
|
32874
33128
|
}, "searchReadiness");
|
|
32875
33129
|
var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
32876
|
-
const
|
|
33130
|
+
const mean2 = new Float32Array(vectors[0]?.length ?? 0);
|
|
32877
33131
|
for (const vector of vectors) {
|
|
32878
|
-
for (let index = 0; index <
|
|
32879
|
-
|
|
33132
|
+
for (let index = 0; index < mean2.length; index++)
|
|
33133
|
+
mean2[index] = mean2[index] + vector[index];
|
|
32880
33134
|
}
|
|
32881
|
-
const length = Math.hypot(...
|
|
32882
|
-
return
|
|
33135
|
+
const length = Math.hypot(...mean2) || 1;
|
|
33136
|
+
return mean2.map((value) => value / length);
|
|
32883
33137
|
}, "meanOf");
|
|
32884
33138
|
|
|
32885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
32886
33140
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
32887
33141
|
...embeddingsMaintenance(deps),
|
|
32888
33142
|
...embeddingsSearch(deps)
|
|
32889
33143
|
}), "embeddingsService");
|
|
32890
33144
|
|
|
32891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
32892
33146
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
32893
33147
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
32894
33148
|
if (deps.offline)
|
|
@@ -33029,7 +33283,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33029
33283
|
};
|
|
33030
33284
|
}, "foldersService");
|
|
33031
33285
|
|
|
33032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33033
33287
|
var REVIEW_COUNT = 500;
|
|
33034
33288
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33035
33289
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33108,7 +33362,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33108
33362
|
};
|
|
33109
33363
|
}, "mentionsService");
|
|
33110
33364
|
|
|
33111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
33112
33366
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33113
33367
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33114
33368
|
const { text: text2, spans } = formatted2;
|
|
@@ -33168,7 +33422,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33168
33422
|
};
|
|
33169
33423
|
}, "visibleFormattedText");
|
|
33170
33424
|
|
|
33171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33172
33426
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33173
33427
|
position,
|
|
33174
33428
|
kind,
|
|
@@ -33217,7 +33471,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33217
33471
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33218
33472
|
}, "validatePermalink");
|
|
33219
33473
|
|
|
33220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33221
33475
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33222
33476
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33223
33477
|
return `${seconds / 86400}d`;
|
|
@@ -33249,7 +33503,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33249
33503
|
return seconds;
|
|
33250
33504
|
}, "pinDurationOf");
|
|
33251
33505
|
|
|
33252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33253
33507
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33254
33508
|
if (sendAs === void 0) {
|
|
33255
33509
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33274,7 +33528,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33274
33528
|
return sendAs;
|
|
33275
33529
|
}, "typedSendAs");
|
|
33276
33530
|
|
|
33277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33278
33532
|
var TOTAL_CAP = 1e4;
|
|
33279
33533
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33280
33534
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33285,7 +33539,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33285
33539
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33286
33540
|
}, "totalOf");
|
|
33287
33541
|
|
|
33288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33289
33543
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33290
33544
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33291
33545
|
let narrows = false;
|
|
@@ -33314,7 +33568,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33314
33568
|
return wanted(root).join(" ").trim();
|
|
33315
33569
|
}, "meaningWords");
|
|
33316
33570
|
|
|
33317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33318
33572
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33319
33573
|
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"));
|
|
33320
33574
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33428,8 +33682,25 @@ function planQuestion(text2, strict = false) {
|
|
|
33428
33682
|
return { changed: true, natural: true, queries, scope, terms, rankingTerms: original, removed, aliases: changes };
|
|
33429
33683
|
}
|
|
33430
33684
|
__name(planQuestion, "planQuestion");
|
|
33685
|
+
var questionText = /* @__PURE__ */ __name((text2) => text2.replace(new RegExp("(?<=\\p{L})\\?(?=\\s|$)", "gu"), "").replace(/"(?:[^"\\]|\\.)*"|(?<=\d):(?=\d)/gu, (found) => found === ":" ? " " : found), "questionText");
|
|
33686
|
+
var lookupTerms = /* @__PURE__ */ __name((plan) => [
|
|
33687
|
+
...new Set(plan.terms.concat(plan.aliases.flatMap((alias) => words2(alias.split(" -> ")[1] ?? ""))))
|
|
33688
|
+
], "lookupTerms");
|
|
33689
|
+
var anyOfTerms = /* @__PURE__ */ __name((terms, scope) => `(${terms.join(" OR ")})${scope ? ` ${scope}` : ""}`, "anyOfTerms");
|
|
33690
|
+
var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
33691
|
+
let plan;
|
|
33692
|
+
try {
|
|
33693
|
+
plan = planQuestion(questionText(text2));
|
|
33694
|
+
} catch (error) {
|
|
33695
|
+
if (error instanceof CliError)
|
|
33696
|
+
return void 0;
|
|
33697
|
+
throw error;
|
|
33698
|
+
}
|
|
33699
|
+
const terms = plan.changed ? lookupTerms(plan) : [];
|
|
33700
|
+
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33701
|
+
}, "questionLookup");
|
|
33431
33702
|
|
|
33432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33433
33704
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33434
33705
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33435
33706
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33622,7 +33893,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33622
33893
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33623
33894
|
}, "signals");
|
|
33624
33895
|
|
|
33625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33626
33897
|
var MEANING_DEPTH = 100;
|
|
33627
33898
|
var RRF_K2 = 60;
|
|
33628
33899
|
var RERANK_DEPTH = 50;
|
|
@@ -33644,10 +33915,7 @@ var EVERY_MESSAGE = {
|
|
|
33644
33915
|
upper_inclusive: true
|
|
33645
33916
|
};
|
|
33646
33917
|
var scopeOf2 = /* @__PURE__ */ __name((root) => root === void 0 ? {} : { ast: { version: 1, language: "lucene-v1", root } }, "scopeOf");
|
|
33647
|
-
var discoveryRequest = /* @__PURE__ */ __name((asked) => asked.ast !== void 0 || asked.exact || !asked.text ? asked : {
|
|
33648
|
-
...asked,
|
|
33649
|
-
text: asked.text.replace(new RegExp("(?<=\\p{L})\\?(?=\\s|$)", "gu"), "").replace(/"(?:[^"\\]|\\.)*"|(?<=\d):(?=\d)/gu, (found) => found === ":" ? " " : found)
|
|
33650
|
-
}, "discoveryRequest");
|
|
33918
|
+
var discoveryRequest = /* @__PURE__ */ __name((asked) => asked.ast !== void 0 || asked.exact || !asked.text ? asked : { ...asked, text: questionText(asked.text) }, "discoveryRequest");
|
|
33651
33919
|
var searchDiscovery = /* @__PURE__ */ __name(async (store, account, asked, messenger = {}, meaning, rerank) => {
|
|
33652
33920
|
const request = discoveryRequest(asked);
|
|
33653
33921
|
const original = await prepareLucene(store, account, request, messenger);
|
|
@@ -33661,7 +33929,7 @@ var searchDiscovery = /* @__PURE__ */ __name(async (store, account, asked, messe
|
|
|
33661
33929
|
const question = root === void 0 ? text2 : meaningWords(root);
|
|
33662
33930
|
if (!question)
|
|
33663
33931
|
return searchLucene(store, account, request, messenger);
|
|
33664
|
-
const terms = root === void 0 ?
|
|
33932
|
+
const terms = root === void 0 ? lookupTerms(plan) : [...new Set(words2(question))];
|
|
33665
33933
|
if (!terms.length)
|
|
33666
33934
|
return searchLucene(store, account, request, messenger);
|
|
33667
33935
|
if (terms.length > 64)
|
|
@@ -33698,7 +33966,7 @@ var searchDiscovery = /* @__PURE__ */ __name(async (store, account, asked, messe
|
|
|
33698
33966
|
truncated ||= found.hasMore || found.query.combined.truncated;
|
|
33699
33967
|
}
|
|
33700
33968
|
check2();
|
|
33701
|
-
const relaxed = root === void 0 ?
|
|
33969
|
+
const relaxed = root === void 0 ? anyOfTerms(terms, plan.scope) : text2;
|
|
33702
33970
|
const partialRequest = { ...request, text: relaxed, ast: void 0, limit: 300, context: 0, thread: void 0 };
|
|
33703
33971
|
const partial = await searchLucene(store, account, partialRequest, messenger);
|
|
33704
33972
|
add(partial.items);
|
|
@@ -33950,7 +34218,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
33950
34218
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
33951
34219
|
}, "mixedWithReranker");
|
|
33952
34220
|
|
|
33953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
33954
34222
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
33955
34223
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
33956
34224
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34149,7 +34417,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34149
34417
|
return result;
|
|
34150
34418
|
}, "readThreadContext");
|
|
34151
34419
|
|
|
34152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34153
34421
|
var SEARCH_FILL_MS = 200;
|
|
34154
34422
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34155
34423
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34216,12 +34484,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34216
34484
|
}, "accountOf");
|
|
34217
34485
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34218
34486
|
|
|
34219
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34220
34488
|
import { createHash as createHash10 } from "node:crypto";
|
|
34221
34489
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34222
34490
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34223
34491
|
|
|
34224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34225
34493
|
var GROUP_SETTINGS = [
|
|
34226
34494
|
"allCanPin",
|
|
34227
34495
|
"onlyAdminsAdd",
|
|
@@ -34235,7 +34503,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34235
34503
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34236
34504
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34237
34505
|
|
|
34238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34239
34507
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34240
34508
|
var PICTURE_FLOOR = 0.25;
|
|
34241
34509
|
var PAGE4 = 50;
|
|
@@ -34252,7 +34520,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34252
34520
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34253
34521
|
if (!isImageModelInstalled(model2, directory2))
|
|
34254
34522
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34255
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34523
|
+
const { openPictureEmbedder } = await import("./embedder-EDXLEJ27.js");
|
|
34256
34524
|
return openPictureEmbedder(model2, directory2);
|
|
34257
34525
|
}, "open");
|
|
34258
34526
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34449,7 +34717,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34449
34717
|
}, "search")
|
|
34450
34718
|
}), "withPictures");
|
|
34451
34719
|
|
|
34452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34453
34721
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34454
34722
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34455
34723
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34460,9 +34728,16 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34460
34728
|
const store = await deps.store();
|
|
34461
34729
|
const ready = [];
|
|
34462
34730
|
const without = [];
|
|
34463
|
-
|
|
34464
|
-
|
|
34465
|
-
|
|
34731
|
+
const mail = /* @__PURE__ */ new Map();
|
|
34732
|
+
const stored = await store.accounts.storedAccounts();
|
|
34733
|
+
for (const one2 of accounts) {
|
|
34734
|
+
const id2 = one2.provider === "email" ? stored.find(({ provider, account }) => provider === one2.provider && account === one2.account)?.id : void 0;
|
|
34735
|
+
if (id2 !== void 0)
|
|
34736
|
+
mail.set(one2, Number(id2));
|
|
34737
|
+
else
|
|
34738
|
+
(await store.vectors.hasMessageVectors(one2, target2.key) ? ready : without).push(one2);
|
|
34739
|
+
}
|
|
34740
|
+
if (ready.length === 0 && mail.size === 0)
|
|
34466
34741
|
return skipped("no message has a vector yet", "conversations.rebuild");
|
|
34467
34742
|
const words3 = plainWords(question);
|
|
34468
34743
|
try {
|
|
@@ -34480,12 +34755,24 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34480
34755
|
for (const { chatId, messageId, score } of near2)
|
|
34481
34756
|
ranked.push({ ...one2, chatId, id: messageId, score });
|
|
34482
34757
|
}
|
|
34758
|
+
for (const [one2, accountId] of mail) {
|
|
34759
|
+
const near2 = await store.mail.nearest(target2.key, query, {
|
|
34760
|
+
accountId,
|
|
34761
|
+
limit: MEANING_DEPTH
|
|
34762
|
+
});
|
|
34763
|
+
if (near2.length === 0)
|
|
34764
|
+
without.push(one2);
|
|
34765
|
+
for (const { threadExternalId, externalId, score } of near2)
|
|
34766
|
+
ranked.push({ ...one2, chatId: threadExternalId, id: externalId, score });
|
|
34767
|
+
}
|
|
34483
34768
|
}, "lookUp");
|
|
34484
34769
|
if (shared && !deps.embedders)
|
|
34485
34770
|
await lookUp(await shared.get(target2.key, () => target2.open()));
|
|
34486
34771
|
else
|
|
34487
34772
|
await withEmbedder(deps, target2, DEFAULT_TEXT_MODEL, {}, lookUp);
|
|
34488
34773
|
}
|
|
34774
|
+
if (ranked.length === 0 && without.length === accounts.length)
|
|
34775
|
+
return skipped("no message has a vector yet", "conversations.rebuild");
|
|
34489
34776
|
return {
|
|
34490
34777
|
model: target2.id,
|
|
34491
34778
|
ranked: ranked.sort((a, b) => b.score - a.score).slice(0, MEANING_DEPTH),
|
|
@@ -34498,7 +34785,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34498
34785
|
}
|
|
34499
34786
|
}, "meaningLane");
|
|
34500
34787
|
|
|
34501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34502
34789
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34503
34790
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34504
34791
|
if (choice === "off")
|
|
@@ -34510,9 +34797,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34510
34797
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34511
34798
|
try {
|
|
34512
34799
|
const warm = deps.embedders;
|
|
34513
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34800
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-HIEJXYW6.js")).openRerankerProcess(model, directory2, {
|
|
34514
34801
|
threads: defaultThreads()
|
|
34515
|
-
})) : await (await import("./rerank-
|
|
34802
|
+
})) : await (await import("./rerank-UKOVVZM6.js")).openReranker(model, directory2);
|
|
34516
34803
|
return {
|
|
34517
34804
|
model: model.id,
|
|
34518
34805
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34532,17 +34819,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34532
34819
|
};
|
|
34533
34820
|
}, "rerankLane");
|
|
34534
34821
|
|
|
34535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34536
34823
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34537
34824
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34538
34825
|
const directory2 = imageModelsDirectory(env);
|
|
34539
34826
|
if (!isImageModelInstalled(model, directory2))
|
|
34540
34827
|
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 });
|
|
34541
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34828
|
+
const { openPictureEmbedder } = await import("./embedder-EDXLEJ27.js");
|
|
34542
34829
|
return openPictureEmbedder(model, directory2);
|
|
34543
34830
|
}, "openPictureEmbedderFor");
|
|
34544
34831
|
|
|
34545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34546
34833
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34547
34834
|
const metadata = note2.frontMatter;
|
|
34548
34835
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34557,7 +34844,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34557
34844
|
};
|
|
34558
34845
|
}, "documentSource");
|
|
34559
34846
|
|
|
34560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34561
34848
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34562
34849
|
let root;
|
|
34563
34850
|
try {
|
|
@@ -34584,7 +34871,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
34584
34871
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34585
34872
|
}, "titleTiers");
|
|
34586
34873
|
|
|
34587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34588
34875
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34589
34876
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34590
34877
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -34825,19 +35112,21 @@ var notesTotal = /* @__PURE__ */ __name(async (store, text2, { exact, scope, sho
|
|
|
34825
35112
|
const count4 = (/* @__PURE__ */ new Set([...words3.refs, ...others])).size + (words3.hasMore ? 1 : 0);
|
|
34826
35113
|
return totalOf(count4, shown, hasMore, othersComplete);
|
|
34827
35114
|
}, "notesTotal");
|
|
34828
|
-
var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, tag, filter: expression, folderIds, withInternal, source: given, exact = false, timezone, env, command, embedders, pictures: withPictures2 = false, pictureLimit = 5, pictureEmbedder } = {}) => {
|
|
35115
|
+
var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, tag, filter: expression, folderIds, withInternal, source: given, exact = false, discover = false, timezone, env, command, embedders, pictures: withPictures2 = false, pictureLimit = 5, pictureEmbedder } = {}) => {
|
|
34829
35116
|
const typed = noteSourceOfQuery(query);
|
|
34830
35117
|
const source = given ?? typed.source;
|
|
34831
35118
|
const rest = typed.source !== void 0 && typed.source === source ? typed.rest : query;
|
|
34832
35119
|
const label = tag === void 0 ? void 0 : normalizeTag(tag);
|
|
34833
35120
|
const filter = [expression ? `(${expression})` : "", label === void 0 ? "" : `tag:${label}`].filter(Boolean).join(" AND ") || void 0;
|
|
34834
|
-
const
|
|
35121
|
+
const lookup2 = discover && !exact ? questionLookup(query) : void 0;
|
|
35122
|
+
const parsed = query.trim() ? parsedQuery(lookup2 === void 0 ? query : questionText(query), exact) : void 0;
|
|
34835
35123
|
const words3 = parsed === void 0 ? "" : meaningWords(parsed);
|
|
34836
35124
|
const narrowing = allOf([
|
|
34837
35125
|
...parsed === void 0 ? [] : [fieldsOfQuery2(parsed)].filter((node) => node !== void 0),
|
|
34838
35126
|
...filter === void 0 ? [] : [parsedQuery(filter)]
|
|
34839
35127
|
]);
|
|
34840
|
-
const
|
|
35128
|
+
const asked = lookup2 ?? query;
|
|
35129
|
+
const text2 = [asked.trim() ? `(${asked})` : "", filter ?? ""].filter(Boolean).join(" AND ");
|
|
34841
35130
|
const window3 = offset + limit;
|
|
34842
35131
|
const scope = {
|
|
34843
35132
|
...folderIds === void 0 ? {} : { folderIds },
|
|
@@ -34847,6 +35136,7 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
34847
35136
|
};
|
|
34848
35137
|
let meaningSkipped;
|
|
34849
35138
|
let meaning;
|
|
35139
|
+
const cosines = /* @__PURE__ */ new Map();
|
|
34850
35140
|
let meaningRefs;
|
|
34851
35141
|
let meaningComplete = true;
|
|
34852
35142
|
if (exact)
|
|
@@ -34873,8 +35163,10 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
34873
35163
|
nearest = ranked2.slice(0, depth);
|
|
34874
35164
|
}
|
|
34875
35165
|
const allowed = await matching(store, nearest.map(({ ref }) => ref), narrowing, scope);
|
|
34876
|
-
meaning = nearest.flatMap(({ ref }) => {
|
|
35166
|
+
meaning = nearest.flatMap(({ ref, score }) => {
|
|
34877
35167
|
const found = allowed.get(ref);
|
|
35168
|
+
if (found)
|
|
35169
|
+
cosines.set(ref, score);
|
|
34878
35170
|
return found ? [{ ref, ...found }] : [];
|
|
34879
35171
|
});
|
|
34880
35172
|
meaningRefs ??= new Set(meaning.map(({ ref }) => ref));
|
|
@@ -34905,9 +35197,11 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
34905
35197
|
if (tierRefs.has(ref))
|
|
34906
35198
|
return;
|
|
34907
35199
|
const held = ranked.get(ref) ?? { note: note2, at, score: 0, foundBy: [] };
|
|
34908
|
-
held.score += 1 / (RRF_K3 + rank + 1);
|
|
34909
35200
|
held.foundBy.push(by);
|
|
34910
35201
|
ranked.set(ref, held);
|
|
35202
|
+
if (by === "meaning" && lookup2 !== void 0 && held.foundBy.includes("words"))
|
|
35203
|
+
return;
|
|
35204
|
+
held.score += 1 / (RRF_K3 + rank + 1);
|
|
34911
35205
|
}), "add");
|
|
34912
35206
|
add(matched.items, "words");
|
|
34913
35207
|
if (meaning !== void 0)
|
|
@@ -34940,7 +35234,8 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
34940
35234
|
updated_at: at,
|
|
34941
35235
|
excerpt: firstLine(note2.text, words3),
|
|
34942
35236
|
links,
|
|
34943
|
-
found_by: foundBy
|
|
35237
|
+
found_by: foundBy,
|
|
35238
|
+
...cosines.has(ref) ? { meaning_score: cosines.get(ref) } : {}
|
|
34944
35239
|
});
|
|
34945
35240
|
for (const link4 of new Map(links.map((link5) => [link5.to ?? `?${link5.target_text}`, link5])).values()) {
|
|
34946
35241
|
const key = link4.to ?? `?${link4.target_text}`;
|
|
@@ -35019,7 +35314,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35019
35314
|
};
|
|
35020
35315
|
}, "searchNotesOf");
|
|
35021
35316
|
|
|
35022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35023
35318
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35024
35319
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35025
35320
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35053,17 +35348,18 @@ var nearestEvents = /* @__PURE__ */ __name(async (store, words3, { limit, accoun
|
|
|
35053
35348
|
return (await store.calendar.nearest(key, vector, { limit, ...accountIds ? { accountIds } : {} })).filter(({ score }) => score > floor);
|
|
35054
35349
|
}, "nearestEvents");
|
|
35055
35350
|
var keyOf4 = /* @__PURE__ */ __name(({ event }) => event.eventSeriesId === null ? `e${event.id}` : `s${event.eventSeriesId}`, "keyOf");
|
|
35056
|
-
var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, accounts, exact, newest, timezone, signal, candidates, env, command, embedders } = {}) => {
|
|
35351
|
+
var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, accounts, exact, discover, newest, timezone, signal, candidates, env, command, embedders } = {}) => {
|
|
35057
35352
|
if (!query.trim())
|
|
35058
35353
|
throw new CliError("validation_error", "say what to find in the events");
|
|
35059
|
-
const
|
|
35354
|
+
const asked = discover && !exact && !newest ? questionLookup(query) : void 0;
|
|
35355
|
+
const { root, stemmer } = await storeQuery(store, asked ?? query, {
|
|
35060
35356
|
...exact ? { exact: true } : {},
|
|
35061
35357
|
...timezone === void 0 ? {} : { timezone }
|
|
35062
35358
|
});
|
|
35063
35359
|
const accountIds = accounts === void 0 ? void 0 : await accountIdsOf(store, accounts);
|
|
35064
35360
|
if (accountIds?.length === 0)
|
|
35065
35361
|
return { query, by: "words", hits: [], has_more: false };
|
|
35066
|
-
const words3 = plainQueryWords(query);
|
|
35362
|
+
const words3 = plainQueryWords(asked === void 0 ? query : questionText(query));
|
|
35067
35363
|
const window3 = offset + limit;
|
|
35068
35364
|
let meaningSkipped;
|
|
35069
35365
|
let meaning;
|
|
@@ -35119,19 +35415,23 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35119
35415
|
}), "add");
|
|
35120
35416
|
add(found.items, "words");
|
|
35121
35417
|
add(meaning, "meaning");
|
|
35418
|
+
const cosines = new Map(meaning.map((hit) => [keyOf4(hit), hit.score]));
|
|
35122
35419
|
const ordered = [...ranked.values()].sort((a, b) => b.score - a.score);
|
|
35123
35420
|
const hasMore = ordered.length > window3 || found.hasMore;
|
|
35124
35421
|
return {
|
|
35125
35422
|
query,
|
|
35126
35423
|
by,
|
|
35127
|
-
hits: ordered.slice(offset, window3).map(({ hit, by: halves }) =>
|
|
35424
|
+
hits: ordered.slice(offset, window3).map(({ hit, by: halves }) => {
|
|
35425
|
+
const cosine = cosines.get(keyOf4(hit));
|
|
35426
|
+
return { ...foundEvent(hit, query, halves), ...cosine === void 0 ? {} : { meaning_score: cosine } };
|
|
35427
|
+
}),
|
|
35128
35428
|
has_more: hasMore,
|
|
35129
35429
|
...hasMore && window3 <= MAX_EVENTS_OFFSET ? { next_offset: window3 } : {},
|
|
35130
35430
|
...truncated
|
|
35131
35431
|
};
|
|
35132
35432
|
}, "searchEvents");
|
|
35133
35433
|
|
|
35134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35135
35435
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
35136
35436
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35137
35437
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -35156,11 +35456,14 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35156
35456
|
let hasMore = false;
|
|
35157
35457
|
let notes;
|
|
35158
35458
|
let events;
|
|
35159
|
-
|
|
35459
|
+
const by = {};
|
|
35160
35460
|
let server;
|
|
35461
|
+
const discover = !request.exact && questionLookup(request.text) !== void 0;
|
|
35462
|
+
const cosines = /* @__PURE__ */ new Map();
|
|
35161
35463
|
let coverage2;
|
|
35162
35464
|
const messagesOf = /* @__PURE__ */ __name(async (kind) => {
|
|
35163
35465
|
const given = request.scope?.[kind];
|
|
35466
|
+
const discovers = discover && (kind === "mail" || request.backend !== "server");
|
|
35164
35467
|
const query = {
|
|
35165
35468
|
text: request.text,
|
|
35166
35469
|
kind,
|
|
@@ -35173,6 +35476,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35173
35476
|
} : {},
|
|
35174
35477
|
limit: window3,
|
|
35175
35478
|
...request.exact ? { exact: true } : {},
|
|
35479
|
+
...discovers ? { discover: true } : {},
|
|
35176
35480
|
...request.timezone === void 0 ? {} : { timezone: request.timezone },
|
|
35177
35481
|
...request.signal === void 0 ? {} : { signal: request.signal }
|
|
35178
35482
|
};
|
|
@@ -35205,7 +35509,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35205
35509
|
};
|
|
35206
35510
|
}, "itemOf");
|
|
35207
35511
|
const byWords = found.items.map((hit) => itemOf3(hit, ["words"]));
|
|
35208
|
-
if (
|
|
35512
|
+
if (!meaning || request.exact || kind === "messages" && request.backend === "server")
|
|
35209
35513
|
return byWords;
|
|
35210
35514
|
const filters = filtersBeside(request.text);
|
|
35211
35515
|
const lane = filters === void 0 ? {
|
|
@@ -35215,19 +35519,22 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35215
35519
|
}
|
|
35216
35520
|
} : await meaning(request.text, read2, embedders);
|
|
35217
35521
|
if ("skipped" in lane) {
|
|
35218
|
-
|
|
35522
|
+
by[kind] = { by: "words", meaningSkipped: lane.skipped };
|
|
35219
35523
|
return byWords;
|
|
35220
35524
|
}
|
|
35221
|
-
|
|
35525
|
+
by[kind] = { by: "words and meaning", ...lane.partly ? { meaningSkipped: lane.partly } : {} };
|
|
35222
35526
|
const near2 = await nearEligible(store, account, query, messenger, lane.ranked, filters ? { text: filters } : {});
|
|
35223
35527
|
const fused2 = /* @__PURE__ */ new Map();
|
|
35224
35528
|
byWords.forEach((item2, rank) => {
|
|
35225
35529
|
fused2.set(item2.ref, { item: item2, score: 1 / (RRF_K3 + rank + 1) });
|
|
35226
35530
|
});
|
|
35227
35531
|
near2.forEach((hit, rank) => {
|
|
35532
|
+
cosines.set(hit.locator, hit.cosine);
|
|
35228
35533
|
const held = fused2.get(hit.locator);
|
|
35229
35534
|
if (held)
|
|
35230
35535
|
held.item.foundBy = ["words", "meaning"];
|
|
35536
|
+
if (held && discovers)
|
|
35537
|
+
return;
|
|
35231
35538
|
fused2.set(hit.locator, {
|
|
35232
35539
|
item: held?.item ?? itemOf3(hit, ["meaning"]),
|
|
35233
35540
|
score: (held?.score ?? 0) + 1 / (RRF_K3 + rank + 1)
|
|
@@ -35247,6 +35554,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35247
35554
|
embedders,
|
|
35248
35555
|
...chosen === void 0 ? {} : notesScopeOf(chosen),
|
|
35249
35556
|
...request.exact ? { exact: true } : {},
|
|
35557
|
+
...discover ? { discover: true } : {},
|
|
35250
35558
|
...request.timezone === void 0 ? {} : { timezone: request.timezone },
|
|
35251
35559
|
...request.env === void 0 ? {} : { env: request.env }
|
|
35252
35560
|
});
|
|
@@ -35255,6 +35563,9 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35255
35563
|
by: found.by,
|
|
35256
35564
|
...found.meaning_skipped === void 0 ? {} : { meaningSkipped: found.meaning_skipped }
|
|
35257
35565
|
};
|
|
35566
|
+
for (const hit of found.hits)
|
|
35567
|
+
if (hit.meaning_score !== void 0)
|
|
35568
|
+
cosines.set(hit.ref, hit.meaning_score);
|
|
35258
35569
|
lists.push(found.hits.map((hit) => ({
|
|
35259
35570
|
kind: hit.kind ?? "note",
|
|
35260
35571
|
ref: hit.ref,
|
|
@@ -35283,6 +35594,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35283
35594
|
...command === void 0 ? {} : { command },
|
|
35284
35595
|
...request.env === void 0 ? {} : { env: request.env },
|
|
35285
35596
|
...request.exact ? { exact: true } : {},
|
|
35597
|
+
...discover ? { discover: true } : {},
|
|
35286
35598
|
...request.timezone === void 0 ? {} : { timezone: request.timezone },
|
|
35287
35599
|
...request.signal === void 0 ? {} : { signal: request.signal }
|
|
35288
35600
|
});
|
|
@@ -35291,6 +35603,9 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35291
35603
|
by: found.by,
|
|
35292
35604
|
...found.meaning_skipped === void 0 ? {} : { meaningSkipped: found.meaning_skipped }
|
|
35293
35605
|
};
|
|
35606
|
+
for (const hit of found.hits)
|
|
35607
|
+
if (hit.meaning_score !== void 0)
|
|
35608
|
+
cosines.set(hit.ref, hit.meaning_score);
|
|
35294
35609
|
lists.push(found.hits.map((hit) => ({
|
|
35295
35610
|
kind: "event",
|
|
35296
35611
|
ref: hit.ref,
|
|
@@ -35315,14 +35630,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35315
35630
|
} finally {
|
|
35316
35631
|
await embedders.close();
|
|
35317
35632
|
}
|
|
35318
|
-
const
|
|
35319
|
-
for (const list3 of lists)
|
|
35320
|
-
list3.forEach((item2, rank) => {
|
|
35321
|
-
const held = ranked.get(item2.ref) ?? { item: item2, score: 0 };
|
|
35322
|
-
held.score += 1 / (RRF_K3 + rank + 1);
|
|
35323
|
-
ranked.set(item2.ref, held);
|
|
35324
|
-
});
|
|
35325
|
-
const ordered = [...ranked.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
35633
|
+
const ordered = oneList(lists, cosines);
|
|
35326
35634
|
const more = hasMore || ordered.length > window3;
|
|
35327
35635
|
return {
|
|
35328
35636
|
query: request.text,
|
|
@@ -35334,13 +35642,25 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35334
35642
|
skipped,
|
|
35335
35643
|
...notes === void 0 ? {} : { notes },
|
|
35336
35644
|
...events === void 0 ? {} : { events },
|
|
35337
|
-
...
|
|
35645
|
+
...by.messages === void 0 ? {} : { messages: by.messages },
|
|
35646
|
+
...by.mail === void 0 ? {} : { mail: by.mail },
|
|
35338
35647
|
...server === void 0 ? {} : { server },
|
|
35339
35648
|
...coverage2 === void 0 ? {} : { coverage: coverage2 }
|
|
35340
35649
|
};
|
|
35341
35650
|
}, "searchAll");
|
|
35651
|
+
var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
35652
|
+
const place = /* @__PURE__ */ new Map();
|
|
35653
|
+
for (const list3 of lists)
|
|
35654
|
+
list3.forEach((item2, rank) => {
|
|
35655
|
+
const held = place.get(item2.ref);
|
|
35656
|
+
if (!held || rank < held.rank)
|
|
35657
|
+
place.set(item2.ref, { item: item2, rank });
|
|
35658
|
+
});
|
|
35659
|
+
const cosine = /* @__PURE__ */ __name((ref) => cosines.get(ref) ?? Number.NEGATIVE_INFINITY, "cosine");
|
|
35660
|
+
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
35661
|
+
}, "oneList");
|
|
35342
35662
|
|
|
35343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35344
35664
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35345
35665
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35346
35666
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -35593,7 +35913,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
35593
35913
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
35594
35914
|
}, "searchAllOfSource");
|
|
35595
35915
|
|
|
35596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
35597
35917
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
35598
35918
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
35599
35919
|
var DEFAULT_BACKEND = "both";
|
|
@@ -35782,7 +36102,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
35782
36102
|
return { report, sources };
|
|
35783
36103
|
}, "searchServer");
|
|
35784
36104
|
|
|
35785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
35786
36106
|
var DELETE_AT_ONCE = 10;
|
|
35787
36107
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
35788
36108
|
const files = fileLinks(attachments);
|
|
@@ -35798,18 +36118,18 @@ var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35798
36118
|
return;
|
|
35799
36119
|
await ensureAccount({ text: target2.text, account: target2.account }, { account: account.account, ...deps.profile === void 0 ? {} : { profile: deps.profile } });
|
|
35800
36120
|
}, "ownTarget");
|
|
35801
|
-
const serverThenStore = /* @__PURE__ */ __name(async (store, account, query) => {
|
|
36121
|
+
const serverThenStore = /* @__PURE__ */ __name(async (store, account, query, lanes = true) => {
|
|
35802
36122
|
const server = await searchServer(deps, query);
|
|
35803
36123
|
const only = query.backend === "server" && server ? [...server.sources.keys()].map((key) => {
|
|
35804
36124
|
const [chatId, id2] = JSON.parse(key);
|
|
35805
36125
|
return { ...account, chatId, id: id2 };
|
|
35806
36126
|
}) : void 0;
|
|
35807
|
-
const found = await searchStore(store, account, only ? { ...query, only } : query, deps.messenger, query.discover && query.kind !== "mail" ? meaningLane(deps) : void 0, query.discover && query.kind !== "mail" ? rerankLane(deps) : void 0);
|
|
36127
|
+
const found = await searchStore(store, account, only ? { ...query, only } : query, deps.messenger, lanes && query.discover && query.kind !== "mail" ? meaningLane(deps) : void 0, lanes && query.discover && query.kind !== "mail" ? rerankLane(deps) : void 0);
|
|
35808
36128
|
return { found, server };
|
|
35809
36129
|
}, "serverThenStore");
|
|
35810
36130
|
const unifiedMessages = /* @__PURE__ */ __name((store, account) => async (query) => {
|
|
35811
36131
|
await topUp(store);
|
|
35812
|
-
const { found, server } = await serverThenStore(store, account, query);
|
|
36132
|
+
const { found, server } = await serverThenStore(store, account, query, false);
|
|
35813
36133
|
return withServer(found, account, server);
|
|
35814
36134
|
}, "unifiedMessages");
|
|
35815
36135
|
const remember = /* @__PURE__ */ __name(async (store, command, query) => {
|
|
@@ -36223,7 +36543,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36223
36543
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36224
36544
|
}, "checkMediaOptions");
|
|
36225
36545
|
|
|
36226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36227
36547
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36228
36548
|
var RULES = {
|
|
36229
36549
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36238,7 +36558,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36238
36558
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36239
36559
|
}), "classifyChannel");
|
|
36240
36560
|
|
|
36241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36242
36562
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36243
36563
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36244
36564
|
const store = await deps.store();
|
|
@@ -36324,7 +36644,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36324
36644
|
};
|
|
36325
36645
|
}, "metadataService");
|
|
36326
36646
|
|
|
36327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
36328
36648
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36329
36649
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36330
36650
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36512,7 +36832,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36512
36832
|
}, "nextPoint");
|
|
36513
36833
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36514
36834
|
|
|
36515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
36516
36836
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36517
36837
|
import { join as join11 } from "node:path";
|
|
36518
36838
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -36655,7 +36975,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
36655
36975
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
36656
36976
|
}, "assign");
|
|
36657
36977
|
|
|
36658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
36659
36979
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
36660
36980
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
36661
36981
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -36692,7 +37012,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
36692
37012
|
return { chatId, rows, notes };
|
|
36693
37013
|
}, "moderateWith");
|
|
36694
37014
|
|
|
36695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
36696
37016
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
36697
37017
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
36698
37018
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -36770,7 +37090,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
36770
37090
|
}, "removePerson")
|
|
36771
37091
|
}), "moderatorOf");
|
|
36772
37092
|
|
|
36773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
36774
37094
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
36775
37095
|
id: note2.id,
|
|
36776
37096
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -36814,7 +37134,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
36814
37134
|
};
|
|
36815
37135
|
}, "privatePeopleService");
|
|
36816
37136
|
|
|
36817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
36818
37138
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
36819
37139
|
total: 0,
|
|
36820
37140
|
population: 0,
|
|
@@ -37070,7 +37390,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37070
37390
|
}, "evidence")
|
|
37071
37391
|
}), "rankingsService");
|
|
37072
37392
|
|
|
37073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37074
37394
|
var FIELDS = ["date", "chat", "kind"];
|
|
37075
37395
|
var WAITING_TAIL = 100;
|
|
37076
37396
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37197,7 +37517,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37197
37517
|
};
|
|
37198
37518
|
}, "replyStatsService");
|
|
37199
37519
|
|
|
37200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37201
37521
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37202
37522
|
id: one2.id,
|
|
37203
37523
|
name: one2.name,
|
|
@@ -37326,7 +37646,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37326
37646
|
};
|
|
37327
37647
|
}, "searchesService");
|
|
37328
37648
|
|
|
37329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37330
37650
|
var TAGGING_QUERY = {
|
|
37331
37651
|
entity: "tagging",
|
|
37332
37652
|
backend: "sql",
|
|
@@ -37410,7 +37730,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37410
37730
|
};
|
|
37411
37731
|
}, "tagsService");
|
|
37412
37732
|
|
|
37413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37414
37734
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37415
37735
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37416
37736
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37609,7 +37929,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37609
37929
|
};
|
|
37610
37930
|
}, "topicsService");
|
|
37611
37931
|
|
|
37612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
37613
37933
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
37614
37934
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37615
37935
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -37683,7 +38003,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
37683
38003
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
37684
38004
|
}, "prepareEvidencePacket");
|
|
37685
38005
|
|
|
37686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
37687
38007
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
37688
38008
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
37689
38009
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -37703,7 +38023,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
37703
38023
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
37704
38024
|
}, "readEvidencePacket");
|
|
37705
38025
|
|
|
37706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
37707
38027
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
37708
38028
|
let before2 = Number.POSITIVE_INFINITY;
|
|
37709
38029
|
for (; ; ) {
|
|
@@ -37765,7 +38085,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
37765
38085
|
return { ...result, selection };
|
|
37766
38086
|
}, "searchMeetingHits");
|
|
37767
38087
|
|
|
37768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
37769
38089
|
import { createHash as createHash12 } from "node:crypto";
|
|
37770
38090
|
var scopeKeys = [
|
|
37771
38091
|
"accountId",
|
|
@@ -37900,7 +38220,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
37900
38220
|
};
|
|
37901
38221
|
}, "readMeetingProjectDiscovery");
|
|
37902
38222
|
|
|
37903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
37904
38224
|
import { createHash as createHash13 } from "node:crypto";
|
|
37905
38225
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
37906
38226
|
ref: cue.reference,
|
|
@@ -38018,7 +38338,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38018
38338
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38019
38339
|
}, "readMeetingHitContext");
|
|
38020
38340
|
|
|
38021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
38022
38342
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
38023
38343
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38024
38344
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38094,7 +38414,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38094
38414
|
return { packet, content };
|
|
38095
38415
|
}, "readMeetingPassage");
|
|
38096
38416
|
|
|
38097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38098
38418
|
var communicationFields = {
|
|
38099
38419
|
sources: pipe(array(strictObject({
|
|
38100
38420
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38126,7 +38446,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38126
38446
|
return { ...input, after, before: before2 };
|
|
38127
38447
|
}, "communicationRequest");
|
|
38128
38448
|
|
|
38129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38130
38450
|
var MEETING_PREPARATION_LIMITS = {
|
|
38131
38451
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38132
38452
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38212,7 +38532,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38212
38532
|
return { ...input, history };
|
|
38213
38533
|
}, "preparationRequest");
|
|
38214
38534
|
|
|
38215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
38216
38536
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38217
38537
|
const section = {
|
|
38218
38538
|
readUsage: plan.reader.usage(),
|
|
@@ -38317,7 +38637,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38317
38637
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38318
38638
|
}, "appendPreparationCommunications");
|
|
38319
38639
|
|
|
38320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38321
38641
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38322
38642
|
if (port === void 0)
|
|
38323
38643
|
return void 0;
|
|
@@ -38422,7 +38742,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38422
38742
|
}
|
|
38423
38743
|
}, "validatePreparationCommunications");
|
|
38424
38744
|
|
|
38425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
38426
38746
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38427
38747
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38428
38748
|
}, "invalid");
|
|
@@ -38491,7 +38811,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38491
38811
|
}
|
|
38492
38812
|
}, "appendKnowledgePreparation");
|
|
38493
38813
|
|
|
38494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
38495
38815
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38496
38816
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38497
38817
|
}, "invalid");
|
|
@@ -38565,7 +38885,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38565
38885
|
}
|
|
38566
38886
|
}, "appendNotesPreparation");
|
|
38567
38887
|
|
|
38568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
38569
38889
|
var PAGE_LIMIT = 4;
|
|
38570
38890
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38571
38891
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -38615,7 +38935,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
38615
38935
|
}
|
|
38616
38936
|
}, "appendProjectPreparation");
|
|
38617
38937
|
|
|
38618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
38619
38939
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
38620
38940
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
38621
38941
|
return;
|
|
@@ -38687,7 +39007,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
38687
39007
|
}
|
|
38688
39008
|
}, "appendRelatedPreparation");
|
|
38689
39009
|
|
|
38690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
38691
39011
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38692
39012
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
38693
39013
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -38825,7 +39145,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
38825
39145
|
};
|
|
38826
39146
|
}, "createMeetingPreparationService");
|
|
38827
39147
|
|
|
38828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
38829
39149
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
38830
39150
|
const installer = ports.installer();
|
|
38831
39151
|
const argv = updateCommand(installer, packageName);
|
|
@@ -38890,7 +39210,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
38890
39210
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
38891
39211
|
}, "dayAfter");
|
|
38892
39212
|
|
|
38893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
38894
39214
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
38895
39215
|
const pictures = picturesService(deps);
|
|
38896
39216
|
const base = {
|
|
@@ -38927,7 +39247,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38927
39247
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
38928
39248
|
}, "servicesFor");
|
|
38929
39249
|
|
|
38930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
38931
39251
|
import { createHash as createHash14 } from "node:crypto";
|
|
38932
39252
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
38933
39253
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39075,7 +39395,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39075
39395
|
}
|
|
39076
39396
|
}, "serve");
|
|
39077
39397
|
|
|
39078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39079
39399
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39080
39400
|
close: /* @__PURE__ */ __name(async () => {
|
|
39081
39401
|
}, "close"),
|
|
@@ -39312,7 +39632,9 @@ export {
|
|
|
39312
39632
|
REMINDERS_QUERY,
|
|
39313
39633
|
previewProjectAnnotationSnapshot,
|
|
39314
39634
|
snapshotProjectAnnotations,
|
|
39635
|
+
TASK_STATS_BY,
|
|
39315
39636
|
TASK_QUERY,
|
|
39637
|
+
TASK_STATS_QUERY,
|
|
39316
39638
|
TASK_PAIR_QUERY,
|
|
39317
39639
|
CLAIM_LEASE_MS,
|
|
39318
39640
|
taskTypeOf,
|