@wirecat/mail-cli 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-MXGDUBAM.js → all-profiles-X6ROLLMF.js} +5 -5
- package/dist/bundle/{anthropic-A2QA4W7L.js → anthropic-MPARKCMJ.js} +3 -3
- package/dist/bundle/{app-server-PMIMK6FK.js → app-server-JQ5XCXWT.js} +39 -39
- package/dist/bundle/{bun-3UW3LFNL.js → bun-H7LT5433.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGFZFKAX.js → bun-sqlite-AGK2BHAN.js} +2 -2
- package/dist/bundle/{chunk-QBBKSCQD.js → chunk-24MHYGNE.js} +247 -247
- package/dist/bundle/{chunk-DM4ULDS3.js → chunk-25N52S7U.js} +5 -5
- package/dist/bundle/{chunk-NI6WX55Z.js → chunk-2FDROA4Q.js} +2 -2
- package/dist/bundle/{chunk-6U6Z3GXR.js → chunk-3LMWAO6A.js} +5 -5
- package/dist/bundle/{chunk-RVZ4JIRR.js → chunk-3W6VSSQQ.js} +1 -1
- package/dist/bundle/{chunk-CRS63C3T.js → chunk-3Y7H3CXI.js} +1 -1
- package/dist/bundle/{chunk-EVO77D3Y.js → chunk-4EFKQXA5.js} +7 -7
- package/dist/bundle/{chunk-WS4L47DG.js → chunk-4MIC7S7B.js} +1 -1
- package/dist/bundle/{chunk-U4IF2MOB.js → chunk-5NYUCY5W.js} +1 -1
- package/dist/bundle/{chunk-W5J6I5GW.js → chunk-64FN5JK6.js} +2 -2
- package/dist/bundle/{chunk-2KZJWBXB.js → chunk-65SVO3T7.js} +2 -2
- package/dist/bundle/{chunk-PXCIM6D5.js → chunk-6FBBDIX6.js} +5 -5
- package/dist/bundle/{chunk-BEUQ2X7U.js → chunk-BNPCRWZ6.js} +6 -6
- package/dist/bundle/{chunk-BCDPLG7T.js → chunk-CHK3V7FG.js} +1 -1
- package/dist/bundle/{chunk-6J3DKKOV.js → chunk-DL32PWLR.js} +10 -10
- package/dist/bundle/{chunk-SZ5PKNDF.js → chunk-DQHAXX33.js} +6 -6
- package/dist/bundle/{chunk-4QDBMYK4.js → chunk-EUJTQY43.js} +42 -42
- package/dist/bundle/{chunk-NSODLSEL.js → chunk-EVG7MOAH.js} +91 -91
- package/dist/bundle/{chunk-Z5GDZ3QF.js → chunk-FEA5E7WQ.js} +2 -2
- package/dist/bundle/{chunk-AO3XYONW.js → chunk-FUDHVV4R.js} +21 -21
- package/dist/bundle/{chunk-OAQ4UB6V.js → chunk-GPCKNZIA.js} +3 -3
- package/dist/bundle/{chunk-2MQXXPPK.js → chunk-HWLAV2HM.js} +16 -16
- package/dist/bundle/{chunk-XWNCXFR5.js → chunk-HZ42NO25.js} +1 -1
- package/dist/bundle/{chunk-J5RKMQ6A.js → chunk-INVEYTAL.js} +43 -43
- package/dist/bundle/{chunk-W7H3PZ67.js → chunk-IYC3IHEZ.js} +2 -2
- package/dist/bundle/{chunk-RFWTPSJX.js → chunk-J4MY3QIN.js} +14 -14
- package/dist/bundle/{chunk-KEZHPPMI.js → chunk-JYVZDJNO.js} +2 -2
- package/dist/bundle/{chunk-DYCPBLUC.js → chunk-JZMPDFM4.js} +1 -1
- package/dist/bundle/{chunk-LN7TNZIS.js → chunk-K3RWO7LR.js} +5 -5
- package/dist/bundle/{chunk-EU35YQXE.js → chunk-KWHFDVAF.js} +21 -21
- package/dist/bundle/{chunk-J6ACLZKV.js → chunk-M55XFZMG.js} +7 -7
- package/dist/bundle/{chunk-FSBKLJXM.js → chunk-N6YA4OQI.js} +194 -194
- package/dist/bundle/{chunk-TMQA4KR7.js → chunk-NTWORG4T.js} +1 -1
- package/dist/bundle/{chunk-NWKLBZN5.js → chunk-OZGDPG6I.js} +26 -26
- package/dist/bundle/{chunk-EN3UZPGB.js → chunk-PC3AFEEA.js} +3 -3
- package/dist/bundle/{chunk-7JUTNCQX.js → chunk-PTDJXPXG.js} +9 -9
- package/dist/bundle/{chunk-5W74YMCK.js → chunk-PXQ7A5HQ.js} +2 -2
- package/dist/bundle/{chunk-6JK46V5X.js → chunk-QO4K6R7K.js} +4 -4
- package/dist/bundle/{chunk-KF4YULWC.js → chunk-QXXBDW6N.js} +8 -8
- package/dist/bundle/{chunk-NEBO3NZU.js → chunk-RGM66WZ3.js} +2 -2
- package/dist/bundle/{chunk-TCWJYOZV.js → chunk-SEL7SJCM.js} +4 -4
- package/dist/bundle/{chunk-WWNAQ75T.js → chunk-SUB4DRMA.js} +1 -1
- package/dist/bundle/{chunk-L2ZHPIFC.js → chunk-SYFBRZ5F.js} +1 -1
- package/dist/bundle/{chunk-VGR3AGAC.js → chunk-TKFQ3GNY.js} +5 -5
- package/dist/bundle/{chunk-KBKEZV4L.js → chunk-TVZFDVZP.js} +12 -12
- package/dist/bundle/{chunk-ZKAT6I2I.js → chunk-U6BDAY55.js} +1 -1
- package/dist/bundle/{chunk-Q5DOXSBM.js → chunk-UHBCL66Y.js} +1 -1
- package/dist/bundle/{chunk-UR6WHUJF.js → chunk-VOGSDGVL.js} +1 -1
- package/dist/bundle/{chunk-CMNFLAUG.js → chunk-YLSV3WOO.js} +4 -4
- package/dist/bundle/{chunk-YS2WUWY7.js → chunk-YXQIZORE.js} +3 -3
- package/dist/bundle/{chunk-VSDVH2M2.js → chunk-Z3TZTOR2.js} +46 -46
- package/dist/bundle/{command-contract-Q32SL5KX.js → command-contract-T3H5CAX3.js} +13 -13
- package/dist/bundle/{decode-NF4TGOR3.js → decode-ZATANRER.js} +2 -2
- package/dist/bundle/{dist-DVYY3YFG.js → dist-JN22LNLZ.js} +9 -9
- package/dist/bundle/{echarts-F3USGP5B.js → echarts-WKTVUY3O.js} +2 -2
- package/dist/bundle/{embed-2RXV3BEC.js → embed-AVKPYK4V.js} +3 -3
- package/dist/bundle/{embedder-I2SJMC6N.js → embedder-PSV2E5TR.js} +6 -6
- package/dist/bundle/{first-run-3GA7YCKZ.js → first-run-YN4SF5RZ.js} +5 -5
- package/dist/bundle/{first-screen-JFIXKYAK.js → first-screen-IJJZJP6Q.js} +14 -14
- package/dist/bundle/{instructions-VHI5CWH5.js → instructions-W5SJW23S.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-4RBB3RDY.js → node-BHBFRH6H.js} +2 -2
- package/dist/bundle/{node-sqlite-FWYX3P2D.js → node-sqlite-7FHC3W5U.js} +2 -2
- package/dist/bundle/{oauth-6JKKRGLX.js → oauth-ORPM6FLL.js} +4 -4
- package/dist/bundle/{open-7JSNC3MR.js → open-AY5KLPWO.js} +1 -1
- package/dist/bundle/{openai-ASLWL3D6.js → openai-U7VALRI7.js} +10 -10
- package/dist/bundle/{process-AB2D2G2Q.js → process-7AWARSC5.js} +1 -1
- package/dist/bundle/{program-ZJPQ3IDU.js → program-2W4J47LM.js} +317 -303
- package/dist/bundle/{prompt-JDFVQR3L.js → prompt-STNX6JL7.js} +2 -2
- package/dist/bundle/{recognize-PKYA4HRC.js → recognize-2XWWTN6Y.js} +1 -1
- package/dist/bundle/{remote-USBVVO4O.js → remote-OIC32DKQ.js} +4 -4
- package/dist/bundle/{rerank-UBMV6KO6.js → rerank-IFTSO576.js} +4 -4
- package/dist/bundle/{serve-SVS3YOYS.js → serve-P2D2AJAU.js} +6 -6
- package/dist/bundle/server-6D7W5Q4A.js +63 -0
- package/dist/bundle/{server-7PZMYXY6.js → server-DFEJBMXO.js} +31 -31
- package/dist/bundle/{sqlite-runtime-IDPTXAM7.js → sqlite-runtime-DD4Y35DQ.js} +2 -2
- package/dist/bundle/{state-6G2TSVP7.js → state-XUSQMIKJ.js} +3 -3
- package/dist/bundle/{store-L56GFI4P.js → store-EQC5DKSY.js} +9 -9
- package/dist/bundle/{store-7A464D4X.js → store-T3PKOLER.js} +11 -11
- package/dist/bundle/store-maintenance-command-7YQZXE4V.js +52 -0
- package/dist/oauth.d.ts +2 -5
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +4 -7
- package/dist/oauth.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-KA7Q5XCL.js +0 -63
- package/dist/bundle/store-maintenance-command-2LM4GOI3.js +0 -52
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TVZFDVZP.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_ACTIONS,
|
|
14
14
|
ModerationRules,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
someUndone,
|
|
25
25
|
validateFormattedText,
|
|
26
26
|
visibleFormattedText
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-K3RWO7LR.js";
|
|
28
28
|
import {
|
|
29
29
|
MAX_MODEL_IMAGE_BYTES
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VOGSDGVL.js";
|
|
31
31
|
import {
|
|
32
32
|
Command,
|
|
33
33
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -66,17 +66,17 @@ import {
|
|
|
66
66
|
typedCommand,
|
|
67
67
|
vectorModelKey,
|
|
68
68
|
withAttempt
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-Z3TZTOR2.js";
|
|
70
70
|
import {
|
|
71
71
|
isCliFailure
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-M55XFZMG.js";
|
|
73
73
|
import {
|
|
74
74
|
isNewer,
|
|
75
75
|
updateCommand
|
|
76
76
|
} from "./chunk-5PWKPRTD.js";
|
|
77
77
|
import {
|
|
78
78
|
remoteKey
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-PXQ7A5HQ.js";
|
|
80
80
|
import {
|
|
81
81
|
AGENDA_COLUMNS,
|
|
82
82
|
CHAT_COLUMNS,
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
threadConversation,
|
|
133
133
|
validateAst,
|
|
134
134
|
validateFields
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-24MHYGNE.js";
|
|
136
136
|
import {
|
|
137
137
|
COUNTER_FIELDS,
|
|
138
138
|
INTERNAL_NOTES,
|
|
@@ -151,13 +151,13 @@ import {
|
|
|
151
151
|
parseReference,
|
|
152
152
|
providerNamed,
|
|
153
153
|
rankingOptions
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-TKFQ3GNY.js";
|
|
155
155
|
import {
|
|
156
156
|
TASK_KINDS,
|
|
157
157
|
TASK_STATES,
|
|
158
158
|
createTaskService,
|
|
159
159
|
isClosedState
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-DQHAXX33.js";
|
|
161
161
|
import {
|
|
162
162
|
EVENT_QUERY,
|
|
163
163
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -198,17 +198,17 @@ import {
|
|
|
198
198
|
validateQuery,
|
|
199
199
|
walkQuery,
|
|
200
200
|
zonedMoment
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-EUJTQY43.js";
|
|
202
202
|
import {
|
|
203
203
|
DEFAULT_STEMMERS,
|
|
204
204
|
createStemmer,
|
|
205
205
|
fold,
|
|
206
206
|
normalize
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-4EFKQXA5.js";
|
|
208
208
|
import {
|
|
209
209
|
DEFAULT_TASK_CATEGORIES,
|
|
210
210
|
FALLBACK_CATEGORY
|
|
211
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-QO4K6R7K.js";
|
|
212
212
|
import {
|
|
213
213
|
Unzip,
|
|
214
214
|
UnzipInflate,
|
|
@@ -219,15 +219,15 @@ import {
|
|
|
219
219
|
placedText,
|
|
220
220
|
runEmbedders,
|
|
221
221
|
textModelsDirectory
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-3LMWAO6A.js";
|
|
223
223
|
import {
|
|
224
224
|
installFiles,
|
|
225
225
|
megabytes
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-PC3AFEEA.js";
|
|
227
227
|
import {
|
|
228
228
|
storePath,
|
|
229
229
|
wirecatDirectory
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-HZ42NO25.js";
|
|
231
231
|
import {
|
|
232
232
|
resolvePaths
|
|
233
233
|
} from "./chunk-ZISFMUYB.js";
|
|
@@ -16872,10 +16872,10 @@ var require_lib3 = __commonJS({
|
|
|
16872
16872
|
}
|
|
16873
16873
|
});
|
|
16874
16874
|
|
|
16875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16876
16876
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16877
16877
|
|
|
16878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16879
16879
|
var RULES_VERSION = 5;
|
|
16880
16880
|
var LOOK_BACK = 50;
|
|
16881
16881
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16965,7 +16965,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16965
16965
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16966
16966
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16967
16967
|
|
|
16968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
16969
16969
|
var COMMAND_NEEDS = {
|
|
16970
16970
|
"account update": ["updateProfile", "change the profile"],
|
|
16971
16971
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17015,7 +17015,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17015
17015
|
return group;
|
|
17016
17016
|
}, "hideNever");
|
|
17017
17017
|
|
|
17018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17019
17019
|
var AUDIT_PAGE = 200;
|
|
17020
17020
|
var AUDIT_BUDGET = 10;
|
|
17021
17021
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17095,7 +17095,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17095
17095
|
return found;
|
|
17096
17096
|
}, "burstJoins");
|
|
17097
17097
|
|
|
17098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17099
17099
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17100
17100
|
command.allowUnknownOption();
|
|
17101
17101
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17115,7 +17115,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17115
17115
|
return command;
|
|
17116
17116
|
}, "queryWordsAfterOptions");
|
|
17117
17117
|
|
|
17118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17119
17119
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17120
17120
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17121
17121
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17157,7 +17157,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17157
17157
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17158
17158
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17159
17159
|
|
|
17160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17161
17161
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
17162
17162
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17163
17163
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17180,7 +17180,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17180
17180
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17181
17181
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17182
17182
|
|
|
17183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17184
17184
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17185
17185
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17186
17186
|
const zone = timezoneOf();
|
|
@@ -17266,7 +17266,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17266
17266
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17267
17267
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17268
17268
|
|
|
17269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17270
17270
|
var integer3 = /* @__PURE__ */ __name((text2) => {
|
|
17271
17271
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17272
17272
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17386,7 +17386,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17386
17386
|
}, "addMeetingCommandsDefinition");
|
|
17387
17387
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17388
17388
|
|
|
17389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17390
17390
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17391
17391
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17392
17392
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17519,7 +17519,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17519
17519
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17520
17520
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17521
17521
|
|
|
17522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17523
17523
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17524
17524
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17525
17525
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17528,7 +17528,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17528
17528
|
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");
|
|
17529
17529
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17530
17530
|
|
|
17531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17532
17532
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17533
17533
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17534
17534
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17790,7 +17790,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17790
17790
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17791
17791
|
}), "sessionAnswer");
|
|
17792
17792
|
|
|
17793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17794
17794
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17795
17795
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17796
17796
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17855,7 +17855,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17855
17855
|
}), "storedDeps");
|
|
17856
17856
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17857
17857
|
|
|
17858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17859
17859
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17860
17860
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17861
17861
|
if (key in own)
|
|
@@ -17872,12 +17872,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17872
17872
|
return found.bind(adapter);
|
|
17873
17873
|
}, "capability");
|
|
17874
17874
|
|
|
17875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17876
17876
|
import { randomBytes } from "node:crypto";
|
|
17877
17877
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17878
17878
|
var newOperationId = newSendId;
|
|
17879
17879
|
|
|
17880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
17881
17881
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
17882
17882
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
17883
17883
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -17917,7 +17917,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
17917
17917
|
};
|
|
17918
17918
|
}, "dateWindow");
|
|
17919
17919
|
|
|
17920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17921
17921
|
var LINKS = /https?:\/\/\S+/g;
|
|
17922
17922
|
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");
|
|
17923
17923
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) => {
|
|
@@ -17944,7 +17944,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) =>
|
|
|
17944
17944
|
});
|
|
17945
17945
|
}, "questions");
|
|
17946
17946
|
|
|
17947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17948
17948
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17949
17949
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17950
17950
|
const name = typed.trim().toLowerCase();
|
|
@@ -17994,7 +17994,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
17994
17994
|
return best.name;
|
|
17995
17995
|
}, "categorize");
|
|
17996
17996
|
|
|
17997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
17998
17998
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17999
17999
|
var RULES_IN = {
|
|
18000
18000
|
dialog: "all",
|
|
@@ -18200,7 +18200,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18200
18200
|
return passes;
|
|
18201
18201
|
}, "applyTaskRulesToChats");
|
|
18202
18202
|
|
|
18203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
18204
18204
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
18205
18205
|
import { open, stat } from "node:fs/promises";
|
|
18206
18206
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -18402,7 +18402,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
18402
18402
|
return { name, source };
|
|
18403
18403
|
}, "readStickerFile");
|
|
18404
18404
|
|
|
18405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
18406
18406
|
var DAY_MS = 864e5;
|
|
18407
18407
|
var NEW_DAYS = 30;
|
|
18408
18408
|
var SAME_TEXT_MIN = 20;
|
|
@@ -18479,7 +18479,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
18479
18479
|
};
|
|
18480
18480
|
}, "scorePerson");
|
|
18481
18481
|
|
|
18482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
18483
18483
|
var REGISTRIES = {
|
|
18484
18484
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
18485
18485
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -18564,7 +18564,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
18564
18564
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
18565
18565
|
})), "notCovered");
|
|
18566
18566
|
|
|
18567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
18568
18568
|
var ACTIVITY_MESSAGES = 1e3;
|
|
18569
18569
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
18570
18570
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -18652,7 +18652,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
18652
18652
|
};
|
|
18653
18653
|
}, "botCheckService");
|
|
18654
18654
|
|
|
18655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
18656
18656
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
18657
18657
|
if (value === void 0)
|
|
18658
18658
|
return void 0;
|
|
@@ -18662,7 +18662,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
18662
18662
|
return id2;
|
|
18663
18663
|
}, "threadIdOf");
|
|
18664
18664
|
|
|
18665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
18666
18666
|
var TOP_POSTS = 5;
|
|
18667
18667
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
18668
18668
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -18779,7 +18779,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
18779
18779
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
18780
18780
|
}, "median");
|
|
18781
18781
|
|
|
18782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
18783
18783
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
18784
18784
|
const events = [];
|
|
18785
18785
|
for (const stay of stays) {
|
|
@@ -18811,7 +18811,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
18811
18811
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
18812
18812
|
}, "memberEvents");
|
|
18813
18813
|
|
|
18814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18815
18815
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18816
18816
|
if (deps.reads !== "store")
|
|
18817
18817
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18958,7 +18958,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18958
18958
|
}
|
|
18959
18959
|
}, "senderAmong");
|
|
18960
18960
|
|
|
18961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
18962
18962
|
var EVENTS_DAYS = 7;
|
|
18963
18963
|
var TRACKED_DAYS = 30;
|
|
18964
18964
|
var STATS_PAGE = 1e3;
|
|
@@ -19253,7 +19253,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
19253
19253
|
return members.length === 0 ? null : members;
|
|
19254
19254
|
}, "storedMembers");
|
|
19255
19255
|
|
|
19256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
19257
19257
|
var INBOX_CHATS = 20;
|
|
19258
19258
|
var REVIEW_DAYS = 3;
|
|
19259
19259
|
var UNANSWERED_HOURS = 24;
|
|
@@ -19461,7 +19461,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
19461
19461
|
};
|
|
19462
19462
|
}, "inboxService");
|
|
19463
19463
|
|
|
19464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
19465
19465
|
var CONTEXT_MESSAGES = 10;
|
|
19466
19466
|
var CONTEXT_BYTES = 64 * 1024;
|
|
19467
19467
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle) => ({
|
|
@@ -19722,10 +19722,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
19722
19722
|
};
|
|
19723
19723
|
}, "personMessages");
|
|
19724
19724
|
|
|
19725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
19726
19726
|
import { createHash } from "node:crypto";
|
|
19727
19727
|
|
|
19728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
19729
19729
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
19730
19730
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
19731
19731
|
const parsed = parseMeetingReference(reference);
|
|
@@ -19743,7 +19743,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
19743
19743
|
return { parsed, meeting };
|
|
19744
19744
|
}, "authorizedMeetingMetadata");
|
|
19745
19745
|
|
|
19746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
19747
19747
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
19748
19748
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
19749
19749
|
if (signal?.aborted)
|
|
@@ -19942,7 +19942,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
19942
19942
|
return { ...packet, fingerprint: hash(packet) };
|
|
19943
19943
|
}, "readMeetingEvidence");
|
|
19944
19944
|
|
|
19945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
19946
19946
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
19947
19947
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
19948
19948
|
const requestedAccounts = options.accountIds;
|
|
@@ -20041,7 +20041,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
20041
20041
|
};
|
|
20042
20042
|
}, "personMeetingContext");
|
|
20043
20043
|
|
|
20044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
20045
20045
|
var PREPARE_BYTES = 96 * 1024;
|
|
20046
20046
|
var MEETINGS = 5;
|
|
20047
20047
|
var CUES = 3;
|
|
@@ -20158,7 +20158,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
20158
20158
|
}
|
|
20159
20159
|
}, "meetingsOf");
|
|
20160
20160
|
|
|
20161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
20162
20162
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
20163
20163
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
20164
20164
|
const held = await storeIfOpen(deps);
|
|
@@ -20228,7 +20228,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
20228
20228
|
complete: false
|
|
20229
20229
|
})), "quiet");
|
|
20230
20230
|
|
|
20231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
20232
20232
|
var TIMELINE_ITEMS = 50;
|
|
20233
20233
|
var TIMELINE_MAX = 500;
|
|
20234
20234
|
var SCOPES = ["personal", "work"];
|
|
@@ -20283,7 +20283,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
20283
20283
|
};
|
|
20284
20284
|
}, "personTimeline");
|
|
20285
20285
|
|
|
20286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
20287
20287
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
20288
20288
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
20289
20289
|
const held = await storeIfOpen(deps);
|
|
@@ -20510,7 +20510,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
20510
20510
|
return rest;
|
|
20511
20511
|
}, "withoutPhone");
|
|
20512
20512
|
|
|
20513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
20514
20514
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
20515
20515
|
const tags = /* @__PURE__ */ new Map();
|
|
20516
20516
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -20519,7 +20519,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
20519
20519
|
return tags;
|
|
20520
20520
|
}, "taskTagFilters");
|
|
20521
20521
|
|
|
20522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
20523
20523
|
var TASK_QUERY = {
|
|
20524
20524
|
entity: "task",
|
|
20525
20525
|
backend: "sql",
|
|
@@ -20999,7 +20999,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
20999
20999
|
};
|
|
21000
21000
|
}, "taskView");
|
|
21001
21001
|
|
|
21002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
21003
21003
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
21004
21004
|
const ids = [...new Set(chatIds)];
|
|
21005
21005
|
if (ids.length === 0)
|
|
@@ -21025,7 +21025,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
21025
21025
|
}));
|
|
21026
21026
|
}, "chatCoverage");
|
|
21027
21027
|
|
|
21028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
21029
21029
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
21030
21030
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
21031
21031
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -21089,7 +21089,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
21089
21089
|
}
|
|
21090
21090
|
}, "validateContextEvidencePage");
|
|
21091
21091
|
|
|
21092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
21093
21093
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
21094
21094
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
21095
21095
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -21142,7 +21142,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
21142
21142
|
};
|
|
21143
21143
|
}, "contextReadBudget");
|
|
21144
21144
|
|
|
21145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
21146
21146
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
21147
21147
|
if (!port || typeof port.read !== "function")
|
|
21148
21148
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -21186,7 +21186,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
21186
21186
|
};
|
|
21187
21187
|
}, "createContextEvidenceReader");
|
|
21188
21188
|
|
|
21189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
21190
21190
|
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");
|
|
21191
21191
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
21192
21192
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -21202,18 +21202,18 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
21202
21202
|
}, "excerpt");
|
|
21203
21203
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
21204
21204
|
|
|
21205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
21206
21206
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21207
21207
|
|
|
21208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21209
21209
|
import { lstat } from "node:fs/promises";
|
|
21210
21210
|
|
|
21211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21212
21212
|
import { createHash as createHash3, randomUUID as randomUUID2 } from "node:crypto";
|
|
21213
21213
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
21214
21214
|
import { join as join2 } from "node:path";
|
|
21215
21215
|
|
|
21216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
21217
21217
|
import { createHash as createHash2 } from "node:crypto";
|
|
21218
21218
|
var metadataLimit = 16384;
|
|
21219
21219
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -21273,7 +21273,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
21273
21273
|
}
|
|
21274
21274
|
}, "readPartialMetadata");
|
|
21275
21275
|
|
|
21276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
21277
21277
|
import { randomUUID } from "node:crypto";
|
|
21278
21278
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
21279
21279
|
import { join } from "node:path";
|
|
@@ -21365,7 +21365,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
21365
21365
|
};
|
|
21366
21366
|
}, "partialWriter");
|
|
21367
21367
|
|
|
21368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21369
21369
|
var NativeRecordingPartialStore = class {
|
|
21370
21370
|
static {
|
|
21371
21371
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -21472,12 +21472,12 @@ var NativeRecordingPartialStore = class {
|
|
|
21472
21472
|
}
|
|
21473
21473
|
};
|
|
21474
21474
|
|
|
21475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21476
21476
|
import { createHash as createHash4 } from "node:crypto";
|
|
21477
21477
|
import { link as link2 } from "node:fs/promises";
|
|
21478
21478
|
import { basename as basename2, dirname as dirname2, join as join4, resolve as resolve2 } from "node:path";
|
|
21479
21479
|
|
|
21480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
21481
21481
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
21482
21482
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected, signal, writable = false) => {
|
|
21483
21483
|
signal?.throwIfAborted();
|
|
@@ -21512,7 +21512,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
21512
21512
|
signal?.throwIfAborted();
|
|
21513
21513
|
}, "commitPublication");
|
|
21514
21514
|
|
|
21515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
21516
21516
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
21517
21517
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
21518
21518
|
import { join as join3 } from "node:path";
|
|
@@ -21585,7 +21585,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
21585
21585
|
}
|
|
21586
21586
|
}, "writePublicationJournal");
|
|
21587
21587
|
|
|
21588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21589
21589
|
var NativeRecordingPublication = class {
|
|
21590
21590
|
static {
|
|
21591
21591
|
__name(this, "NativeRecordingPublication");
|
|
@@ -21658,7 +21658,7 @@ var NativeRecordingPublication = class {
|
|
|
21658
21658
|
}
|
|
21659
21659
|
};
|
|
21660
21660
|
|
|
21661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
21662
21662
|
import { createHash as createHash5 } from "node:crypto";
|
|
21663
21663
|
import { readdir } from "node:fs/promises";
|
|
21664
21664
|
import { isAbsolute as isAbsolute2, join as join5, resolve as resolve3 } from "node:path";
|
|
@@ -21745,7 +21745,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
21745
21745
|
beforePublish
|
|
21746
21746
|
}), "commitMediaEntry");
|
|
21747
21747
|
|
|
21748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21749
21749
|
var validator = '"media-completed-v1"';
|
|
21750
21750
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
21751
21751
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -21846,7 +21846,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
21846
21846
|
return entry;
|
|
21847
21847
|
}, "archiveMediaFile");
|
|
21848
21848
|
|
|
21849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
21850
21850
|
import { mkdir, realpath } from "node:fs/promises";
|
|
21851
21851
|
import { join as join6, resolve as resolve4 } from "node:path";
|
|
21852
21852
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -21913,7 +21913,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
21913
21913
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
21914
21914
|
}, "withMediaArchiveLocks");
|
|
21915
21915
|
|
|
21916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
21917
21917
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
21918
21918
|
if (value === void 0)
|
|
21919
21919
|
return void 0;
|
|
@@ -22066,7 +22066,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
22066
22066
|
}, { create: true });
|
|
22067
22067
|
}, "archiveMedia");
|
|
22068
22068
|
|
|
22069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
22070
22070
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
22071
22071
|
import { basename as basename3, dirname as dirname3, join as join7, resolve as resolve5 } from "node:path";
|
|
22072
22072
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -22219,7 +22219,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
22219
22219
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
22220
22220
|
}, "moveMediaArchive");
|
|
22221
22221
|
|
|
22222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
22223
22223
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
22224
22224
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
22225
22225
|
}, "progress") }) => {
|
|
@@ -22242,7 +22242,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22242
22242
|
}
|
|
22243
22243
|
await nativeRuntime({ env, progress });
|
|
22244
22244
|
progress(`${model.id}: loading it once to check it works`);
|
|
22245
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
22245
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-AVKPYK4V.js");
|
|
22246
22246
|
const embedder = await openEmbedder2(model, directory2);
|
|
22247
22247
|
try {
|
|
22248
22248
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -22263,7 +22263,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
22263
22263
|
}
|
|
22264
22264
|
await nativeRuntime({ env, progress });
|
|
22265
22265
|
progress(`${model.id}: loading it once to check it works`);
|
|
22266
|
-
const { openReranker } = await import("./rerank-
|
|
22266
|
+
const { openReranker } = await import("./rerank-IFTSO576.js");
|
|
22267
22267
|
const reranker = await openReranker(model, directory2);
|
|
22268
22268
|
try {
|
|
22269
22269
|
await reranker.score("check", ["check"]);
|
|
@@ -22281,7 +22281,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22281
22281
|
await installFiles(placedImage(model, directory2), { progress });
|
|
22282
22282
|
}
|
|
22283
22283
|
progress(`${model.id}: loading it once to check it works`);
|
|
22284
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
22284
|
+
const { openPictureEmbedder } = await import("./embedder-PSV2E5TR.js");
|
|
22285
22285
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
22286
22286
|
try {
|
|
22287
22287
|
const vector = await embedder.embedQuery("check");
|
|
@@ -22293,7 +22293,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22293
22293
|
return { model, directory: directory2 };
|
|
22294
22294
|
}, "downloadImageModel");
|
|
22295
22295
|
|
|
22296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22297
22297
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22298
22298
|
async around(ref, window3) {
|
|
22299
22299
|
const at = parseLocator(ref);
|
|
@@ -22388,7 +22388,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22388
22388
|
};
|
|
22389
22389
|
}, "storedNeighbours");
|
|
22390
22390
|
|
|
22391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22392
22392
|
import { createHash as createHash6 } from "node:crypto";
|
|
22393
22393
|
var DAY = 864e5;
|
|
22394
22394
|
var MAX_TIME = 864e13;
|
|
@@ -22704,7 +22704,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
22704
22704
|
return value;
|
|
22705
22705
|
}, "decodeCheckpoint");
|
|
22706
22706
|
|
|
22707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
22708
22708
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
22709
22709
|
var PAGE = 20;
|
|
22710
22710
|
var PEOPLE = 20;
|
|
@@ -23108,7 +23108,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23108
23108
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23109
23109
|
}, "peopleOf");
|
|
23110
23110
|
|
|
23111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23112
23112
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23113
23113
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23114
23114
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23152,7 +23152,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23152
23152
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23153
23153
|
}, "matchVocabularyTerms");
|
|
23154
23154
|
|
|
23155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23156
23156
|
var KINDS = ["project", "tag", "topic"];
|
|
23157
23157
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23158
23158
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23207,7 +23207,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23207
23207
|
};
|
|
23208
23208
|
}, "findEvidenceMentions");
|
|
23209
23209
|
|
|
23210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23211
23211
|
var PROJECT_ID = /^project:[1-9]\d*$/;
|
|
23212
23212
|
var canonicalProjectRef = /* @__PURE__ */ __name(async (store, reference) => {
|
|
23213
23213
|
if (PROJECT_ID.test(reference)) {
|
|
@@ -23373,7 +23373,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23373
23373
|
return { projectRef: project.ref, unreadSources: [...unread, ...unreadChats, ...members.left], ...gathered, mentions };
|
|
23374
23374
|
}, "gatherStoredProject");
|
|
23375
23375
|
|
|
23376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
23377
23377
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
23378
23378
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
23379
23379
|
if (deps.offline)
|
|
@@ -23445,7 +23445,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
23445
23445
|
};
|
|
23446
23446
|
}, "accountService");
|
|
23447
23447
|
|
|
23448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
23449
23449
|
var MINUTE = 6e4;
|
|
23450
23450
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
23451
23451
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -23464,7 +23464,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
23464
23464
|
return new Date(at - at % MINUTE).toISOString();
|
|
23465
23465
|
}, "sendTime");
|
|
23466
23466
|
|
|
23467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
23468
23468
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
23469
23469
|
try {
|
|
23470
23470
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -23711,7 +23711,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
23711
23711
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
23712
23712
|
}, "linkLimits");
|
|
23713
23713
|
|
|
23714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
23715
23715
|
var THREADS_PAGE = 500;
|
|
23716
23716
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
23717
23717
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -23790,7 +23790,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
23790
23790
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
23791
23791
|
}, "readMail");
|
|
23792
23792
|
|
|
23793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
23794
23794
|
var NO_MAIL = "no_mail";
|
|
23795
23795
|
var MAIL = "email";
|
|
23796
23796
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -23837,7 +23837,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
23837
23837
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
23838
23838
|
}, "accountsOfKind");
|
|
23839
23839
|
|
|
23840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
23841
23841
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
23842
23842
|
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");
|
|
23843
23843
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -24185,7 +24185,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
24185
24185
|
};
|
|
24186
24186
|
}, "statsLucene");
|
|
24187
24187
|
|
|
24188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
24189
24189
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
24190
24190
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
24191
24191
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -24354,7 +24354,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24354
24354
|
};
|
|
24355
24355
|
}, "readRankingSelection");
|
|
24356
24356
|
|
|
24357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
24358
24358
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one) => canonical(one, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0 && (nested || one !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one]) => [key, canonical(one, true)])) : value, "canonical");
|
|
24359
24359
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
24360
24360
|
command,
|
|
@@ -24364,7 +24364,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
24364
24364
|
fieldsVersion: FIELD_VERSION
|
|
24365
24365
|
}), "searchRecordOf");
|
|
24366
24366
|
|
|
24367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
24368
24368
|
function invalid2(message) {
|
|
24369
24369
|
throw new CliError("validation_error", message);
|
|
24370
24370
|
}
|
|
@@ -24658,7 +24658,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
24658
24658
|
}, "evidence")
|
|
24659
24659
|
}), "adminStatisticsService");
|
|
24660
24660
|
|
|
24661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
24662
24662
|
var DAY2 = 864e5;
|
|
24663
24663
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
24664
24664
|
var TASK_FIELDS = /* @__PURE__ */ new Set(["tag", "category", "claimed"]);
|
|
@@ -24900,10 +24900,10 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
24900
24900
|
};
|
|
24901
24901
|
}, "agendaItem");
|
|
24902
24902
|
|
|
24903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
24904
24904
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24905
24905
|
|
|
24906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
24907
24907
|
var REQUEST_MS = 400;
|
|
24908
24908
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
24909
24909
|
const lowest = ranges[0];
|
|
@@ -24926,13 +24926,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
24926
24926
|
};
|
|
24927
24927
|
}, "estimateBackfill");
|
|
24928
24928
|
|
|
24929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
24930
24930
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
24931
24931
|
...error,
|
|
24932
24932
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
24933
24933
|
}), "withRecovery");
|
|
24934
24934
|
|
|
24935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
24936
24936
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
24937
24937
|
if (isCliFailure(error))
|
|
24938
24938
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -25015,7 +25015,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
25015
25015
|
};
|
|
25016
25016
|
}, "mergeBatches");
|
|
25017
25017
|
|
|
25018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
25019
25019
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
25020
25020
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
25021
25021
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -25038,7 +25038,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
25038
25038
|
}
|
|
25039
25039
|
}, "patiently");
|
|
25040
25040
|
|
|
25041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
25042
25042
|
var CONTEXT_MESSAGES2 = 3;
|
|
25043
25043
|
var CONTEXT_MINUTES = 10;
|
|
25044
25044
|
var MAX_CHARS = 1200;
|
|
@@ -25062,12 +25062,12 @@ var context = {
|
|
|
25062
25062
|
}, "describe")
|
|
25063
25063
|
};
|
|
25064
25064
|
|
|
25065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
25066
25066
|
var BUILT_INS = [context];
|
|
25067
25067
|
var providers = [...BUILT_INS];
|
|
25068
25068
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
25069
25069
|
|
|
25070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
25071
25071
|
var READ_PAGE = 5e3;
|
|
25072
25072
|
var CHAIN = 50;
|
|
25073
25073
|
var CONVERSATION_QUERY = {
|
|
@@ -25219,7 +25219,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
25219
25219
|
return size2;
|
|
25220
25220
|
}, "sized");
|
|
25221
25221
|
|
|
25222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
25223
25223
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
25224
25224
|
var MESSAGE_PAGE = 5e3;
|
|
25225
25225
|
var PER_SESSION = 8;
|
|
@@ -25238,7 +25238,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
25238
25238
|
price: remote.price,
|
|
25239
25239
|
installed: true,
|
|
25240
25240
|
perBatch: PER_REQUEST * concurrency,
|
|
25241
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
25241
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-OIC32DKQ.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
25242
25242
|
};
|
|
25243
25243
|
}
|
|
25244
25244
|
const model = textModel(choice);
|
|
@@ -25255,7 +25255,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
25255
25255
|
if (!isTextModelInstalled(model, directory2))
|
|
25256
25256
|
throw notDownloaded(model.id);
|
|
25257
25257
|
if (apart) {
|
|
25258
|
-
const { openProcess } = await import("./process-
|
|
25258
|
+
const { openProcess } = await import("./process-7AWARSC5.js");
|
|
25259
25259
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
25260
25260
|
}
|
|
25261
25261
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25544,7 +25544,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25544
25544
|
return { ...one, state };
|
|
25545
25545
|
}, "shaped");
|
|
25546
25546
|
|
|
25547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
25548
25548
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25549
25549
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
25550
25550
|
for (const [key, value, maximum] of [
|
|
@@ -25597,7 +25597,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
25597
25597
|
}
|
|
25598
25598
|
}, "catchUpSearch");
|
|
25599
25599
|
|
|
25600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25601
25601
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
25602
25602
|
if (deps.reads === "store") {
|
|
25603
25603
|
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`);
|
|
@@ -25918,7 +25918,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
25918
25918
|
return message?.timestamp ?? fallback;
|
|
25919
25919
|
}, "timeOfKey");
|
|
25920
25920
|
|
|
25921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
25922
25922
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
25923
25923
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
25924
25924
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -26055,12 +26055,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
26055
26055
|
return { plan, repair };
|
|
26056
26056
|
}, "gapsService");
|
|
26057
26057
|
|
|
26058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
26059
26059
|
import { createHash as createHash9 } from "node:crypto";
|
|
26060
26060
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
26061
26061
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
26062
26062
|
|
|
26063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26064
26064
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
26065
26065
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
26066
26066
|
var MAX_FILES = 1e4;
|
|
@@ -26131,15 +26131,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
26131
26131
|
return choices;
|
|
26132
26132
|
}, "directoryPaths");
|
|
26133
26133
|
|
|
26134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26135
26135
|
import { posix } from "node:path";
|
|
26136
26136
|
|
|
26137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26138
26138
|
import { setImmediate as tick } from "node:timers/promises";
|
|
26139
26139
|
import { crc32 } from "node:zlib";
|
|
26140
26140
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
26141
26141
|
|
|
26142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
26143
26143
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26144
26144
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26145
26145
|
var SAMPLE = 65536;
|
|
@@ -26241,7 +26241,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26241
26241
|
return result.text;
|
|
26242
26242
|
}, "decodeXml");
|
|
26243
26243
|
|
|
26244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26245
26245
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26246
26246
|
var MAX_ENTRIES = 1e3;
|
|
26247
26247
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -26456,7 +26456,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
26456
26456
|
return found;
|
|
26457
26457
|
}, "elements");
|
|
26458
26458
|
|
|
26459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
26460
26460
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
26461
26461
|
let name = "";
|
|
26462
26462
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -26511,7 +26511,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
26511
26511
|
return { text: parts.join("").trim(), truncated: false };
|
|
26512
26512
|
}, "sheetText");
|
|
26513
26513
|
|
|
26514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26515
26515
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
26516
26516
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
26517
26517
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -26911,10 +26911,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
26911
26911
|
}
|
|
26912
26912
|
}, "readDocument");
|
|
26913
26913
|
|
|
26914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
26915
26915
|
import { extname as extname3 } from "node:path";
|
|
26916
26916
|
|
|
26917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
26918
26918
|
import { readFileSync } from "node:fs";
|
|
26919
26919
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
26920
26920
|
import { fileURLToPath } from "node:url";
|
|
@@ -26975,7 +26975,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
26975
26975
|
}
|
|
26976
26976
|
}, "derived");
|
|
26977
26977
|
|
|
26978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
26979
26979
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
26980
26980
|
var image2 = {
|
|
26981
26981
|
id: "image",
|
|
@@ -26984,7 +26984,7 @@ var image2 = {
|
|
|
26984
26984
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
26985
26985
|
};
|
|
26986
26986
|
|
|
26987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
26988
26988
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
26989
26989
|
var doc = {
|
|
26990
26990
|
id: "doc",
|
|
@@ -26996,7 +26996,7 @@ var doc = {
|
|
|
26996
26996
|
}), "read")
|
|
26997
26997
|
};
|
|
26998
26998
|
|
|
26999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
27000
27000
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
27001
27001
|
var docx = {
|
|
27002
27002
|
id: "docx",
|
|
@@ -27009,7 +27009,7 @@ var docx = {
|
|
|
27009
27009
|
}), "read")
|
|
27010
27010
|
};
|
|
27011
27011
|
|
|
27012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
27013
27013
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
27014
27014
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
27015
27015
|
"fonttbl",
|
|
@@ -27185,7 +27185,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27185
27185
|
}, "htmlText");
|
|
27186
27186
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
27187
27187
|
|
|
27188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
27189
27189
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27190
27190
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27191
27191
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27241,7 +27241,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
27241
27241
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
27242
27242
|
}, "markdownSections");
|
|
27243
27243
|
|
|
27244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
27245
27245
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27246
27246
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27247
27247
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -27312,7 +27312,7 @@ var html = {
|
|
|
27312
27312
|
}, "read")
|
|
27313
27313
|
};
|
|
27314
27314
|
|
|
27315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
27316
27316
|
var office = {
|
|
27317
27317
|
id: "office",
|
|
27318
27318
|
version: documentExtractor("odt"),
|
|
@@ -27323,7 +27323,7 @@ var office = {
|
|
|
27323
27323
|
}, "read")
|
|
27324
27324
|
};
|
|
27325
27325
|
|
|
27326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
27327
27327
|
var pdf = {
|
|
27328
27328
|
id: "pdf",
|
|
27329
27329
|
version: "unpdf",
|
|
@@ -27390,7 +27390,7 @@ var pdf = {
|
|
|
27390
27390
|
}), "read")
|
|
27391
27391
|
};
|
|
27392
27392
|
|
|
27393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
27394
27394
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
27395
27395
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
27396
27396
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -27410,7 +27410,7 @@ var plain = {
|
|
|
27410
27410
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
27411
27411
|
};
|
|
27412
27412
|
|
|
27413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
27414
27414
|
var rtf = {
|
|
27415
27415
|
id: "rtf",
|
|
27416
27416
|
version: "v1",
|
|
@@ -27418,10 +27418,10 @@ var rtf = {
|
|
|
27418
27418
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
27419
27419
|
};
|
|
27420
27420
|
|
|
27421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27422
27422
|
import { basename as basename5 } from "node:path";
|
|
27423
27423
|
|
|
27424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
27425
27425
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
27426
27426
|
const cells = [];
|
|
27427
27427
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -27459,7 +27459,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
27459
27459
|
return { cells, truncated };
|
|
27460
27460
|
}, "delimitedSpans");
|
|
27461
27461
|
|
|
27462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27463
27463
|
var DELIMITED = {
|
|
27464
27464
|
".csv": ",",
|
|
27465
27465
|
".tsv": " ",
|
|
@@ -27498,7 +27498,7 @@ var sheets = {
|
|
|
27498
27498
|
}, "read")
|
|
27499
27499
|
};
|
|
27500
27500
|
|
|
27501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
27502
27502
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
27503
27503
|
var HEAD_BYTES = 1024;
|
|
27504
27504
|
var readers = [...BUILT_INS2];
|
|
@@ -27508,7 +27508,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
27508
27508
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
27509
27509
|
}, "readWithRegistry");
|
|
27510
27510
|
|
|
27511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27512
27512
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
27513
27513
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
27514
27514
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -28587,7 +28587,7 @@ function imageSize(input) {
|
|
|
28587
28587
|
}
|
|
28588
28588
|
__name(imageSize, "imageSize");
|
|
28589
28589
|
|
|
28590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
28591
28591
|
var MAX_PAGES = 20;
|
|
28592
28592
|
var MAX_PIXELS = 2e7;
|
|
28593
28593
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -28738,7 +28738,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
28738
28738
|
}
|
|
28739
28739
|
}, "ocrPdf");
|
|
28740
28740
|
|
|
28741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
28742
28742
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
28743
28743
|
const limits = pdfPreviewLimits(env);
|
|
28744
28744
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -28815,7 +28815,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
28815
28815
|
}
|
|
28816
28816
|
}, "pdfPreview");
|
|
28817
28817
|
|
|
28818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
28819
28819
|
import { createHash as createHash8 } from "node:crypto";
|
|
28820
28820
|
import { constants } from "node:fs";
|
|
28821
28821
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -28923,7 +28923,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
28923
28923
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
28924
28924
|
}, "transferMime");
|
|
28925
28925
|
|
|
28926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
28927
28927
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
28928
28928
|
import { link as link3, rm } from "node:fs/promises";
|
|
28929
28929
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -29037,7 +29037,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
29037
29037
|
}
|
|
29038
29038
|
}, "save");
|
|
29039
29039
|
|
|
29040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
29041
29041
|
var ATTACHMENT_QUERY = {
|
|
29042
29042
|
entity: "attachment",
|
|
29043
29043
|
backend: "sql",
|
|
@@ -29460,7 +29460,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29460
29460
|
}, "setText")
|
|
29461
29461
|
}), "attachmentsService");
|
|
29462
29462
|
|
|
29463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
29464
29464
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
29465
29465
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
29466
29466
|
const store = await accountStore(deps);
|
|
@@ -29490,7 +29490,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29490
29490
|
}, "list")
|
|
29491
29491
|
}), "chatDocumentsService");
|
|
29492
29492
|
|
|
29493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
29494
29494
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
29495
29495
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
29496
29496
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -29577,7 +29577,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
29577
29577
|
}
|
|
29578
29578
|
}, "isRetentionSelection");
|
|
29579
29579
|
|
|
29580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
29581
29581
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
29582
29582
|
const fields = text2.split(",").map((one) => one.trim());
|
|
29583
29583
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -29784,7 +29784,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
29784
29784
|
};
|
|
29785
29785
|
}, "countersService");
|
|
29786
29786
|
|
|
29787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
29788
29788
|
var SYNC_KEY = "messages.sync-first";
|
|
29789
29789
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
29790
29790
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -29916,7 +29916,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
29916
29916
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
29917
29917
|
}), "withRefresh");
|
|
29918
29918
|
|
|
29919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
29920
29920
|
var CANDIDATES = 50;
|
|
29921
29921
|
var WORD_HITS = 200;
|
|
29922
29922
|
var RRF_K = 60;
|
|
@@ -30191,13 +30191,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30191
30191
|
return mean.map((value) => value / length);
|
|
30192
30192
|
}, "meanOf");
|
|
30193
30193
|
|
|
30194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
30195
30195
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30196
30196
|
...embeddingsMaintenance(deps),
|
|
30197
30197
|
...embeddingsSearch(deps)
|
|
30198
30198
|
}), "embeddingsService");
|
|
30199
30199
|
|
|
30200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
30201
30201
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30202
30202
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30203
30203
|
if (deps.offline)
|
|
@@ -30338,7 +30338,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30338
30338
|
};
|
|
30339
30339
|
}, "foldersService");
|
|
30340
30340
|
|
|
30341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
30342
30342
|
var REVIEW_COUNT = 500;
|
|
30343
30343
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
30344
30344
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -30417,7 +30417,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
30417
30417
|
};
|
|
30418
30418
|
}, "mentionsService");
|
|
30419
30419
|
|
|
30420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
30421
30421
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
30422
30422
|
position,
|
|
30423
30423
|
kind,
|
|
@@ -30471,7 +30471,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
30471
30471
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
30472
30472
|
}, "validatePermalink");
|
|
30473
30473
|
|
|
30474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
30475
30475
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
30476
30476
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
30477
30477
|
return `${seconds / 86400}d`;
|
|
@@ -30503,7 +30503,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
30503
30503
|
return seconds;
|
|
30504
30504
|
}, "pinDurationOf");
|
|
30505
30505
|
|
|
30506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
30507
30507
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
30508
30508
|
if (sendAs === void 0) {
|
|
30509
30509
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -30528,7 +30528,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
30528
30528
|
return sendAs;
|
|
30529
30529
|
}, "typedSendAs");
|
|
30530
30530
|
|
|
30531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
30532
30532
|
var TOTAL_CAP = 1e4;
|
|
30533
30533
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
30534
30534
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -30539,7 +30539,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
30539
30539
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
30540
30540
|
}, "totalOf");
|
|
30541
30541
|
|
|
30542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
30543
30543
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
30544
30544
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
30545
30545
|
let narrows = false;
|
|
@@ -30568,7 +30568,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
30568
30568
|
return wanted(root).join(" ").trim();
|
|
30569
30569
|
}, "meaningWords");
|
|
30570
30570
|
|
|
30571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
30572
30572
|
var words = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
30573
30573
|
var scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
30574
30574
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -30683,7 +30683,7 @@ function planQuestion(text2, strict = false) {
|
|
|
30683
30683
|
}
|
|
30684
30684
|
__name(planQuestion, "planQuestion");
|
|
30685
30685
|
|
|
30686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
30687
30687
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
30688
30688
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
30689
30689
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -30876,7 +30876,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
30876
30876
|
return mode === "coverage" ? coverage * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage * 4 + proximity + phrase;
|
|
30877
30877
|
}, "signals");
|
|
30878
30878
|
|
|
30879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
30880
30880
|
var MEANING_DEPTH = 100;
|
|
30881
30881
|
var RRF_K2 = 60;
|
|
30882
30882
|
var RERANK_DEPTH = 50;
|
|
@@ -31204,7 +31204,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
31204
31204
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
31205
31205
|
}, "mixedWithReranker");
|
|
31206
31206
|
|
|
31207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
31208
31208
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
31209
31209
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
31210
31210
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -31403,7 +31403,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
31403
31403
|
return result;
|
|
31404
31404
|
}, "readThreadContext");
|
|
31405
31405
|
|
|
31406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
31407
31407
|
var SEARCH_FILL_MS = 200;
|
|
31408
31408
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
31409
31409
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -31470,12 +31470,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
31470
31470
|
}, "accountOf");
|
|
31471
31471
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
31472
31472
|
|
|
31473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31474
31474
|
import { createHash as createHash10 } from "node:crypto";
|
|
31475
31475
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
31476
31476
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31477
31477
|
|
|
31478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
31479
31479
|
var GROUP_SETTINGS = [
|
|
31480
31480
|
"allCanPin",
|
|
31481
31481
|
"onlyAdminsAdd",
|
|
@@ -31489,7 +31489,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31489
31489
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31490
31490
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31491
31491
|
|
|
31492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31493
31493
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31494
31494
|
var PICTURE_FLOOR = 0.25;
|
|
31495
31495
|
var PAGE4 = 50;
|
|
@@ -31506,7 +31506,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31506
31506
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31507
31507
|
if (!isImageModelInstalled(model2, directory2))
|
|
31508
31508
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31509
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31509
|
+
const { openPictureEmbedder } = await import("./embedder-PSV2E5TR.js");
|
|
31510
31510
|
return openPictureEmbedder(model2, directory2);
|
|
31511
31511
|
}, "open");
|
|
31512
31512
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -31703,7 +31703,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
31703
31703
|
}, "search")
|
|
31704
31704
|
}), "withPictures");
|
|
31705
31705
|
|
|
31706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
31707
31707
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
31708
31708
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
31709
31709
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -31752,7 +31752,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
31752
31752
|
}
|
|
31753
31753
|
}, "meaningLane");
|
|
31754
31754
|
|
|
31755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
31756
31756
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
31757
31757
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
31758
31758
|
if (choice === "off")
|
|
@@ -31764,9 +31764,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
31764
31764
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
31765
31765
|
try {
|
|
31766
31766
|
const warm = deps.embedders;
|
|
31767
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
31767
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-7AWARSC5.js")).openRerankerProcess(model, directory2, {
|
|
31768
31768
|
threads: defaultThreads()
|
|
31769
|
-
})) : await (await import("./rerank-
|
|
31769
|
+
})) : await (await import("./rerank-IFTSO576.js")).openReranker(model, directory2);
|
|
31770
31770
|
return {
|
|
31771
31771
|
model: model.id,
|
|
31772
31772
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -31786,17 +31786,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
31786
31786
|
};
|
|
31787
31787
|
}, "rerankLane");
|
|
31788
31788
|
|
|
31789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
31790
31790
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
31791
31791
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
31792
31792
|
const directory2 = imageModelsDirectory(env);
|
|
31793
31793
|
if (!isImageModelInstalled(model, directory2))
|
|
31794
31794
|
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 });
|
|
31795
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31795
|
+
const { openPictureEmbedder } = await import("./embedder-PSV2E5TR.js");
|
|
31796
31796
|
return openPictureEmbedder(model, directory2);
|
|
31797
31797
|
}, "openPictureEmbedderFor");
|
|
31798
31798
|
|
|
31799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
31800
31800
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
31801
31801
|
const metadata = note.frontMatter;
|
|
31802
31802
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -31811,7 +31811,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
31811
31811
|
};
|
|
31812
31812
|
}, "documentSource");
|
|
31813
31813
|
|
|
31814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
31815
31815
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
31816
31816
|
let root;
|
|
31817
31817
|
try {
|
|
@@ -31838,7 +31838,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words2) => {
|
|
|
31838
31838
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
31839
31839
|
}, "titleTiers");
|
|
31840
31840
|
|
|
31841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
31842
31842
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
31843
31843
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
31844
31844
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -32248,7 +32248,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
32248
32248
|
};
|
|
32249
32249
|
}, "searchNotesOf");
|
|
32250
32250
|
|
|
32251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
32252
32252
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
32253
32253
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
32254
32254
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -32360,7 +32360,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
32360
32360
|
};
|
|
32361
32361
|
}, "searchEvents");
|
|
32362
32362
|
|
|
32363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
32364
32364
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
32365
32365
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
32366
32366
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -32569,7 +32569,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
32569
32569
|
};
|
|
32570
32570
|
}, "searchAll");
|
|
32571
32571
|
|
|
32572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
32573
32573
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
32574
32574
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
32575
32575
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -32817,7 +32817,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
32817
32817
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
32818
32818
|
}, "searchAllOfSource");
|
|
32819
32819
|
|
|
32820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
32821
32821
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
32822
32822
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, maxMessageBytes: 5e6 };
|
|
32823
32823
|
var DEFAULT_BACKEND = "both";
|
|
@@ -33006,7 +33006,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
33006
33006
|
return { report, sources };
|
|
33007
33007
|
}, "searchServer");
|
|
33008
33008
|
|
|
33009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
33010
33010
|
var DELETE_AT_ONCE = 10;
|
|
33011
33011
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
33012
33012
|
const files = fileLinks(attachments);
|
|
@@ -33445,7 +33445,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
33445
33445
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
33446
33446
|
}, "checkMediaOptions");
|
|
33447
33447
|
|
|
33448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
33449
33449
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
33450
33450
|
var RULES = {
|
|
33451
33451
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -33460,7 +33460,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
33460
33460
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
33461
33461
|
}), "classifyChannel");
|
|
33462
33462
|
|
|
33463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
33464
33464
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
33465
33465
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
33466
33466
|
const store = await deps.store();
|
|
@@ -33546,7 +33546,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
33546
33546
|
};
|
|
33547
33547
|
}, "metadataService");
|
|
33548
33548
|
|
|
33549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
33550
33550
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
33551
33551
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
33552
33552
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -33583,7 +33583,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
33583
33583
|
return { chatId, rows, notes };
|
|
33584
33584
|
}, "moderateWith");
|
|
33585
33585
|
|
|
33586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
33587
33587
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
33588
33588
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
33589
33589
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -33661,7 +33661,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
33661
33661
|
}, "removePerson")
|
|
33662
33662
|
}), "moderatorOf");
|
|
33663
33663
|
|
|
33664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
33665
33665
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
33666
33666
|
id: note.id,
|
|
33667
33667
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -33705,7 +33705,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
33705
33705
|
};
|
|
33706
33706
|
}, "privatePeopleService");
|
|
33707
33707
|
|
|
33708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
33709
33709
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
33710
33710
|
total: 0,
|
|
33711
33711
|
population: 0,
|
|
@@ -33961,7 +33961,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
33961
33961
|
}, "evidence")
|
|
33962
33962
|
}), "rankingsService");
|
|
33963
33963
|
|
|
33964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
33965
33965
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
33966
33966
|
id: one.id,
|
|
33967
33967
|
name: one.name,
|
|
@@ -34090,7 +34090,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34090
34090
|
};
|
|
34091
34091
|
}, "searchesService");
|
|
34092
34092
|
|
|
34093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
34094
34094
|
var TAGGING_QUERY = {
|
|
34095
34095
|
entity: "tagging",
|
|
34096
34096
|
backend: "sql",
|
|
@@ -34174,7 +34174,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34174
34174
|
};
|
|
34175
34175
|
}, "tagsService");
|
|
34176
34176
|
|
|
34177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
34178
34178
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
34179
34179
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
34180
34180
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -34373,7 +34373,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34373
34373
|
};
|
|
34374
34374
|
}, "topicsService");
|
|
34375
34375
|
|
|
34376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
34377
34377
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
34378
34378
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
34379
34379
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -34447,7 +34447,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
34447
34447
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
34448
34448
|
}, "prepareEvidencePacket");
|
|
34449
34449
|
|
|
34450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
34451
34451
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
34452
34452
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
34453
34453
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -34467,7 +34467,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
34467
34467
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
34468
34468
|
}, "readEvidencePacket");
|
|
34469
34469
|
|
|
34470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
34471
34471
|
var scopeKeys = [
|
|
34472
34472
|
"accountId",
|
|
34473
34473
|
"meetingId",
|
|
@@ -34489,7 +34489,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
34489
34489
|
"maxVocabularyReadBytes"
|
|
34490
34490
|
]);
|
|
34491
34491
|
|
|
34492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
34493
34493
|
var communicationFields = {
|
|
34494
34494
|
sources: pipe(array(strictObject({
|
|
34495
34495
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -34521,7 +34521,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
34521
34521
|
return { ...input, after, before: before2 };
|
|
34522
34522
|
}, "communicationRequest");
|
|
34523
34523
|
|
|
34524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
34525
34525
|
var MEETING_PREPARATION_LIMITS = {
|
|
34526
34526
|
meetings: { min: 1, max: 20, default: 5 },
|
|
34527
34527
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -34594,7 +34594,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
34594
34594
|
};
|
|
34595
34595
|
}, "validateMeetingPreparationRequest");
|
|
34596
34596
|
|
|
34597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
34598
34598
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
34599
34599
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
34600
34600
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -34642,7 +34642,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
34642
34642
|
}
|
|
34643
34643
|
}, "validatePreparationCommunications");
|
|
34644
34644
|
|
|
34645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
34646
34646
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
34647
34647
|
const installer = ports.installer();
|
|
34648
34648
|
const argv = updateCommand(installer, packageName);
|
|
@@ -34707,7 +34707,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
34707
34707
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
34708
34708
|
}, "dayAfter");
|
|
34709
34709
|
|
|
34710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
34711
34711
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
34712
34712
|
const pictures = picturesService(deps);
|
|
34713
34713
|
const base = {
|
|
@@ -34743,7 +34743,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
34743
34743
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
34744
34744
|
}, "servicesFor");
|
|
34745
34745
|
|
|
34746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
34747
34747
|
import { createHash as createHash12 } from "node:crypto";
|
|
34748
34748
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
34749
34749
|
import { createConnection, createServer } from "node:net";
|
|
@@ -34964,7 +34964,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
34964
34964
|
}, () => finish({ error: stopped() }));
|
|
34965
34965
|
}), "relayCommand");
|
|
34966
34966
|
|
|
34967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
34968
34968
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
34969
34969
|
close: /* @__PURE__ */ __name(async () => {
|
|
34970
34970
|
}, "close"),
|