@wirecat/mail-cli 0.2.0 → 0.4.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 +23 -0
- package/README.md +10 -7
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-7WILOT5E.js → all-profiles-55XPXQHY.js} +5 -5
- package/dist/bundle/{anthropic-NHWLIMEZ.js → anthropic-K5B6I4LB.js} +3 -3
- package/dist/bundle/{app-server-XDMYCJLV.js → app-server-VWWLQLTZ.js} +39 -39
- package/dist/bundle/{bun-GTG5IYLQ.js → bun-EO7AI6YP.js} +2 -2
- package/dist/bundle/{bun-sqlite-KGH5F33G.js → bun-sqlite-F24A4IOP.js} +2 -2
- package/dist/bundle/{chunk-DDMJ3RVO.js → chunk-2ADB5DSG.js} +2 -2
- package/dist/bundle/{chunk-76IKLP2M.js → chunk-2LP46EUH.js} +96 -91
- package/dist/bundle/{chunk-EKE3R36Y.js → chunk-2NZGUKYK.js} +6 -6
- package/dist/bundle/{chunk-SVNTRF5O.js → chunk-4KLJN3LK.js} +11 -11
- package/dist/bundle/{chunk-7REG25RM.js → chunk-5RUTHKXZ.js} +3 -3
- package/dist/bundle/{chunk-WJ3LUWRN.js → chunk-6BNMEOVS.js} +3 -3
- package/dist/bundle/{chunk-S2GSU4MT.js → chunk-6BR6JMCR.js} +9 -9
- package/dist/bundle/{chunk-5FLW25US.js → chunk-7IYDIU4P.js} +5 -5
- package/dist/bundle/{chunk-D7UZXUSB.js → chunk-7QQ4EMYF.js} +2 -2
- package/dist/bundle/{chunk-UZR3IKS7.js → chunk-7X64JS6S.js} +1 -1
- package/dist/bundle/{chunk-Z6F7EXT2.js → chunk-ANRI6EZY.js} +7 -7
- package/dist/bundle/{chunk-YQAUH3PN.js → chunk-BHKI5OCD.js} +1 -1
- package/dist/bundle/{chunk-H66ZMBDD.js → chunk-CADRRSQK.js} +1 -1
- package/dist/bundle/{chunk-BKZEYTLU.js → chunk-CCNHVZ3G.js} +412 -324
- package/dist/bundle/{chunk-AJIT2T3F.js → chunk-CSI73XJ5.js} +6 -6
- package/dist/bundle/{chunk-7LKJDJNS.js → chunk-EDKV6D6T.js} +1 -1
- package/dist/bundle/{chunk-Y6KUKIQZ.js → chunk-EOEYP7CJ.js} +2 -2
- package/dist/bundle/{chunk-H5BW7454.js → chunk-F6JTOQIK.js} +5 -4
- package/dist/bundle/{chunk-6HIW7IJL.js → chunk-F7KAJNNK.js} +4 -4
- package/dist/bundle/{chunk-ETPT7TPW.js → chunk-FFKNUVVD.js} +1 -1
- package/dist/bundle/{chunk-QUGFBY7O.js → chunk-H7K2DN3R.js} +7 -7
- package/dist/bundle/{chunk-VBLFQJY3.js → chunk-HJEMHZRU.js} +1 -1
- package/dist/bundle/{chunk-R5JD4GMA.js → chunk-HORM6VRV.js} +1 -1
- package/dist/bundle/{chunk-GQKYSGIA.js → chunk-HUB42T2Z.js} +46 -46
- package/dist/bundle/{chunk-QJHCKFFC.js → chunk-ID24SLH3.js} +16 -16
- package/dist/bundle/{chunk-BUOSCMCD.js → chunk-IIO6NXCA.js} +2 -2
- package/dist/bundle/{chunk-AROBJF5P.js → chunk-JKHI3PH7.js} +1 -1
- package/dist/bundle/{chunk-THVLMTH7.js → chunk-JZFIHVRB.js} +26 -26
- package/dist/bundle/{chunk-VWO3XXSF.js → chunk-LKDK5YMI.js} +1 -1
- package/dist/bundle/{chunk-MDVXIPA3.js → chunk-M4NTQ247.js} +10 -10
- package/dist/bundle/{chunk-H7NUGJPV.js → chunk-MGBGE2Y4.js} +2 -2
- package/dist/bundle/{chunk-Y5WA7AOA.js → chunk-NL5LNYGX.js} +21 -21
- package/dist/bundle/{chunk-GPAAQ6LY.js → chunk-OM4ZBLT7.js} +13 -13
- package/dist/bundle/{chunk-QUSZWBZF.js → chunk-ORYYYM5Y.js} +32 -22
- package/dist/bundle/{chunk-VRQRBVKT.js → chunk-QYWDC7NP.js} +43 -43
- package/dist/bundle/{chunk-4I3YT5KK.js → chunk-RLSGMMGC.js} +4 -4
- package/dist/bundle/{chunk-77VHMI3A.js → chunk-SWRNMYDL.js} +1 -1
- package/dist/bundle/{chunk-BPF7IXJT.js → chunk-SY3SP7EI.js} +5 -5
- package/dist/bundle/{chunk-TMVIQJCG.js → chunk-UJYCKCFR.js} +2 -2
- package/dist/bundle/{chunk-HJRUFT5Y.js → chunk-UO7X2VW4.js} +5 -5
- package/dist/bundle/{chunk-5JOKRFWE.js → chunk-UZDHK26H.js} +1 -1
- package/dist/bundle/{chunk-ZKH5CHGI.js → chunk-VP5GCMHM.js} +5 -5
- package/dist/bundle/{chunk-2X4WYZPA.js → chunk-VWHRIGYJ.js} +2 -2
- package/dist/bundle/{chunk-7QEE5I7H.js → chunk-VWXCEEUH.js} +2 -2
- package/dist/bundle/{chunk-CT7NG7BI.js → chunk-WFBTPZK3.js} +3 -3
- package/dist/bundle/{chunk-STC45HZX.js → chunk-X7AXH2IC.js} +196 -196
- package/dist/bundle/{chunk-MABCR67K.js → chunk-XJ5TBPCK.js} +2 -2
- package/dist/bundle/{chunk-H7XOHNRY.js → chunk-YSSMDVT3.js} +1 -1
- package/dist/bundle/{chunk-ZNYJG4AY.js → chunk-YYTWV5GU.js} +42 -42
- package/dist/bundle/{chunk-QLYHLW54.js → chunk-ZAR67WKR.js} +5 -5
- package/dist/bundle/{command-contract-Y42ULKE5.js → command-contract-L65UZ7AF.js} +13 -13
- package/dist/bundle/{decode-L4X542L3.js → decode-ON4KBMEX.js} +2 -2
- package/dist/bundle/{dist-WKIRHOLK.js → dist-FMN7UZ7R.js} +14 -14
- package/dist/bundle/{echarts-G6QLXR4X.js → echarts-XPA226QR.js} +2 -2
- package/dist/bundle/{embed-E33ZBHQR.js → embed-QERDAB73.js} +3 -3
- package/dist/bundle/{embedder-EMBCIVGF.js → embedder-I76YT3E5.js} +6 -6
- package/dist/bundle/{first-run-WF2HF5FI.js → first-run-KZJFR55N.js} +5 -5
- package/dist/bundle/{first-screen-DZFOUUZC.js → first-screen-EORANEAK.js} +14 -14
- package/dist/bundle/{instructions-DUH7265J.js → instructions-NN3BCFIM.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-73PKCCE7.js → node-2S75QJ6B.js} +2 -2
- package/dist/bundle/{node-sqlite-FDD5N6GC.js → node-sqlite-RC7WM3EG.js} +2 -2
- package/dist/bundle/{oauth-ND3K2F7B.js → oauth-FUHLZCKV.js} +4 -4
- package/dist/bundle/{open-FZYY6TKE.js → open-JOKT7LKY.js} +1 -1
- package/dist/bundle/{openai-BXOF6XIM.js → openai-U3IMQ6UI.js} +10 -10
- package/dist/bundle/{process-TXIK4VJP.js → process-LKODK722.js} +1 -1
- package/dist/bundle/{program-2SUR4WOS.js → program-RMLIQXCA.js} +944 -613
- package/dist/bundle/{prompt-I5GCP73M.js → prompt-23VYMNNB.js} +2 -2
- package/dist/bundle/{recognize-ILYEKXVB.js → recognize-TXO3462R.js} +1 -1
- package/dist/bundle/{remote-SSPZEAJ7.js → remote-5F4ZOASM.js} +4 -4
- package/dist/bundle/{rerank-NAO5RMGB.js → rerank-TXSDPEFE.js} +4 -4
- package/dist/bundle/{serve-UDXIEQKC.js → serve-TWYECYWM.js} +6 -6
- package/dist/bundle/server-2GEAXKX2.js +63 -0
- package/dist/bundle/{server-KTPELKAN.js → server-3S3BKE6D.js} +31 -31
- package/dist/bundle/{sqlite-runtime-AONFLND6.js → sqlite-runtime-BEOBGC6K.js} +2 -2
- package/dist/bundle/{state-I4PLX3UB.js → state-ERWIUTQQ.js} +3 -3
- package/dist/bundle/{store-ZPPRXGPY.js → store-2JO4JGQL.js} +11 -9
- package/dist/bundle/{store-OHQH3MGN.js → store-4RY5UMOP.js} +11 -11
- package/dist/bundle/store-maintenance-command-T7D4OTN7.js +52 -0
- package/dist/commands/read.d.ts +3 -0
- package/dist/commands/read.d.ts.map +1 -0
- package/dist/commands/read.js +33 -0
- package/dist/commands/read.js.map +1 -0
- package/dist/identity.js +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +10 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/mail-cli/SKILL.md +6 -2
- package/dist/bundle/server-UZFSEKNJ.js +0 -63
- package/dist/bundle/store-maintenance-command-QOYXEBT6.js +0 -52
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
sameOrdinaryFile,
|
|
8
8
|
syncDirectory,
|
|
9
9
|
writeFileAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4KLJN3LK.js";
|
|
11
11
|
import {
|
|
12
12
|
MAX_ACTIONS,
|
|
13
13
|
ModerationRules,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
someUndone,
|
|
24
24
|
validateFormattedText,
|
|
25
25
|
visibleFormattedText
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VP5GCMHM.js";
|
|
27
27
|
import {
|
|
28
28
|
MAX_MODEL_IMAGE_BYTES
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BHKI5OCD.js";
|
|
30
30
|
import {
|
|
31
31
|
Command,
|
|
32
32
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -65,17 +65,17 @@ import {
|
|
|
65
65
|
typedCommand,
|
|
66
66
|
vectorModelKey,
|
|
67
67
|
withAttempt
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-HUB42T2Z.js";
|
|
69
69
|
import {
|
|
70
70
|
isCliFailure
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-H7K2DN3R.js";
|
|
72
72
|
import {
|
|
73
73
|
isNewer,
|
|
74
74
|
updateCommand
|
|
75
75
|
} from "./chunk-ZD3WUGR2.js";
|
|
76
76
|
import {
|
|
77
77
|
remoteKey
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-UJYCKCFR.js";
|
|
79
79
|
import {
|
|
80
80
|
AGENDA_COLUMNS,
|
|
81
81
|
CHAT_COLUMNS,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
threadConversation,
|
|
131
131
|
validateAst,
|
|
132
132
|
validateFields
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-CCNHVZ3G.js";
|
|
134
134
|
import {
|
|
135
135
|
COUNTER_FIELDS,
|
|
136
136
|
INTERNAL_NOTES,
|
|
@@ -149,13 +149,13 @@ import {
|
|
|
149
149
|
parseReference,
|
|
150
150
|
providerNamed,
|
|
151
151
|
rankingOptions
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-SY3SP7EI.js";
|
|
153
153
|
import {
|
|
154
154
|
TASK_KINDS,
|
|
155
155
|
TASK_STATES,
|
|
156
156
|
createTaskService,
|
|
157
157
|
isClosedState
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-2NZGUKYK.js";
|
|
159
159
|
import {
|
|
160
160
|
EVENT_QUERY,
|
|
161
161
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -196,17 +196,17 @@ import {
|
|
|
196
196
|
validateQuery,
|
|
197
197
|
walkQuery,
|
|
198
198
|
zonedMoment
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-YYTWV5GU.js";
|
|
200
200
|
import {
|
|
201
201
|
DEFAULT_STEMMERS,
|
|
202
202
|
createStemmer,
|
|
203
203
|
fold,
|
|
204
204
|
normalize
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-ANRI6EZY.js";
|
|
206
206
|
import {
|
|
207
207
|
DEFAULT_TASK_CATEGORIES,
|
|
208
208
|
FALLBACK_CATEGORY
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-F7KAJNNK.js";
|
|
210
210
|
import {
|
|
211
211
|
Unzip,
|
|
212
212
|
UnzipInflate,
|
|
@@ -217,15 +217,15 @@ import {
|
|
|
217
217
|
placedText,
|
|
218
218
|
runEmbedders,
|
|
219
219
|
textModelsDirectory
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-ZAR67WKR.js";
|
|
221
221
|
import {
|
|
222
222
|
installFiles,
|
|
223
223
|
megabytes
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-WFBTPZK3.js";
|
|
225
225
|
import {
|
|
226
226
|
storePath,
|
|
227
227
|
wirecatDirectory
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-UZDHK26H.js";
|
|
229
229
|
import {
|
|
230
230
|
resolvePaths
|
|
231
231
|
} from "./chunk-J3QXTBD2.js";
|
|
@@ -16870,10 +16870,10 @@ var require_lib3 = __commonJS({
|
|
|
16870
16870
|
}
|
|
16871
16871
|
});
|
|
16872
16872
|
|
|
16873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16874
16874
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16875
16875
|
|
|
16876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16877
16877
|
var RULES_VERSION = 5;
|
|
16878
16878
|
var LOOK_BACK = 50;
|
|
16879
16879
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16963,7 +16963,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16963
16963
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16964
16964
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16965
16965
|
|
|
16966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
16967
16967
|
var COMMAND_NEEDS = {
|
|
16968
16968
|
"account update": ["updateProfile", "change the profile"],
|
|
16969
16969
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17013,7 +17013,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17013
17013
|
return group;
|
|
17014
17014
|
}, "hideNever");
|
|
17015
17015
|
|
|
17016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17017
17017
|
var AUDIT_PAGE = 200;
|
|
17018
17018
|
var AUDIT_BUDGET = 10;
|
|
17019
17019
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17093,7 +17093,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17093
17093
|
return found;
|
|
17094
17094
|
}, "burstJoins");
|
|
17095
17095
|
|
|
17096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17097
17097
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17098
17098
|
command.allowUnknownOption();
|
|
17099
17099
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17113,7 +17113,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17113
17113
|
return command;
|
|
17114
17114
|
}, "queryWordsAfterOptions");
|
|
17115
17115
|
|
|
17116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17117
17117
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17118
17118
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17119
17119
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17155,7 +17155,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17155
17155
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17156
17156
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17157
17157
|
|
|
17158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17159
17159
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
17160
17160
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17161
17161
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17178,7 +17178,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17178
17178
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17179
17179
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17180
17180
|
|
|
17181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17182
17182
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17183
17183
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17184
17184
|
const zone = timezoneOf();
|
|
@@ -17264,7 +17264,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17264
17264
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17265
17265
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17266
17266
|
|
|
17267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17268
17268
|
var integer3 = /* @__PURE__ */ __name((text2) => {
|
|
17269
17269
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17270
17270
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17384,7 +17384,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17384
17384
|
}, "addMeetingCommandsDefinition");
|
|
17385
17385
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17386
17386
|
|
|
17387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17388
17388
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17389
17389
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
17390
17390
|
const query = defineQuery(registry);
|
|
@@ -17500,7 +17500,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17500
17500
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17501
17501
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17502
17502
|
|
|
17503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17504
17504
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17505
17505
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17506
17506
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17509,7 +17509,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17509
17509
|
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");
|
|
17510
17510
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17511
17511
|
|
|
17512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17513
17513
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17514
17514
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17515
17515
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17771,7 +17771,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17771
17771
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17772
17772
|
}), "sessionAnswer");
|
|
17773
17773
|
|
|
17774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17775
17775
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17776
17776
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17777
17777
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17836,7 +17836,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17836
17836
|
}), "storedDeps");
|
|
17837
17837
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17838
17838
|
|
|
17839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17840
17840
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17841
17841
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17842
17842
|
if (key in own)
|
|
@@ -17853,12 +17853,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17853
17853
|
return found.bind(adapter);
|
|
17854
17854
|
}, "capability");
|
|
17855
17855
|
|
|
17856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17857
17857
|
import { randomBytes } from "node:crypto";
|
|
17858
17858
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17859
17859
|
var newOperationId = newSendId;
|
|
17860
17860
|
|
|
17861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
17862
17862
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
17863
17863
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
17864
17864
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -17898,7 +17898,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
17898
17898
|
};
|
|
17899
17899
|
}, "dateWindow");
|
|
17900
17900
|
|
|
17901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17902
17902
|
var LINKS = /https?:\/\/\S+/g;
|
|
17903
17903
|
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");
|
|
17904
17904
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) => {
|
|
@@ -17925,7 +17925,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) =>
|
|
|
17925
17925
|
});
|
|
17926
17926
|
}, "questions");
|
|
17927
17927
|
|
|
17928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17929
17929
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17930
17930
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17931
17931
|
const name = typed.trim().toLowerCase();
|
|
@@ -17975,7 +17975,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
17975
17975
|
return best.name;
|
|
17976
17976
|
}, "categorize");
|
|
17977
17977
|
|
|
17978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
17979
17979
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17980
17980
|
var RULES_IN = {
|
|
17981
17981
|
dialog: "all",
|
|
@@ -18181,7 +18181,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18181
18181
|
return passes;
|
|
18182
18182
|
}, "applyTaskRulesToChats");
|
|
18183
18183
|
|
|
18184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
18185
18185
|
var DAY_MS = 864e5;
|
|
18186
18186
|
var NEW_DAYS = 30;
|
|
18187
18187
|
var SAME_TEXT_MIN = 20;
|
|
@@ -18258,7 +18258,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
18258
18258
|
};
|
|
18259
18259
|
}, "scorePerson");
|
|
18260
18260
|
|
|
18261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
18262
18262
|
var REGISTRIES = {
|
|
18263
18263
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
18264
18264
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -18343,7 +18343,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
18343
18343
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
18344
18344
|
})), "notCovered");
|
|
18345
18345
|
|
|
18346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
18347
18347
|
var ACTIVITY_MESSAGES = 1e3;
|
|
18348
18348
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
18349
18349
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -18431,7 +18431,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
18431
18431
|
};
|
|
18432
18432
|
}, "botCheckService");
|
|
18433
18433
|
|
|
18434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
18435
18435
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
18436
18436
|
if (value === void 0)
|
|
18437
18437
|
return void 0;
|
|
@@ -18441,7 +18441,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
18441
18441
|
return id2;
|
|
18442
18442
|
}, "threadIdOf");
|
|
18443
18443
|
|
|
18444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
18445
18445
|
var TOP_POSTS = 5;
|
|
18446
18446
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
18447
18447
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -18558,7 +18558,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
18558
18558
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
18559
18559
|
}, "median");
|
|
18560
18560
|
|
|
18561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
18562
18562
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
18563
18563
|
const events = [];
|
|
18564
18564
|
for (const stay of stays) {
|
|
@@ -18590,7 +18590,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
18590
18590
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
18591
18591
|
}, "memberEvents");
|
|
18592
18592
|
|
|
18593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18594
18594
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18595
18595
|
if (deps.reads !== "store")
|
|
18596
18596
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18737,7 +18737,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18737
18737
|
}
|
|
18738
18738
|
}, "senderAmong");
|
|
18739
18739
|
|
|
18740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
18741
18741
|
var EVENTS_DAYS = 7;
|
|
18742
18742
|
var TRACKED_DAYS = 30;
|
|
18743
18743
|
var STATS_PAGE = 1e3;
|
|
@@ -19032,7 +19032,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
19032
19032
|
return members.length === 0 ? null : members;
|
|
19033
19033
|
}, "storedMembers");
|
|
19034
19034
|
|
|
19035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
19036
19036
|
var INBOX_CHATS = 20;
|
|
19037
19037
|
var REVIEW_DAYS = 3;
|
|
19038
19038
|
var UNANSWERED_HOURS = 24;
|
|
@@ -19240,7 +19240,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
19240
19240
|
};
|
|
19241
19241
|
}, "inboxService");
|
|
19242
19242
|
|
|
19243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
19244
19244
|
var CONTEXT_MESSAGES = 10;
|
|
19245
19245
|
var CONTEXT_BYTES = 64 * 1024;
|
|
19246
19246
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle) => ({
|
|
@@ -19496,10 +19496,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
19496
19496
|
};
|
|
19497
19497
|
}, "personMessages");
|
|
19498
19498
|
|
|
19499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
19500
19500
|
import { createHash } from "node:crypto";
|
|
19501
19501
|
|
|
19502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
19503
19503
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
19504
19504
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
19505
19505
|
const parsed = parseMeetingReference(reference);
|
|
@@ -19517,7 +19517,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
19517
19517
|
return { parsed, meeting };
|
|
19518
19518
|
}, "authorizedMeetingMetadata");
|
|
19519
19519
|
|
|
19520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
19521
19521
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
19522
19522
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
19523
19523
|
if (signal?.aborted)
|
|
@@ -19716,7 +19716,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
19716
19716
|
return { ...packet, fingerprint: hash(packet) };
|
|
19717
19717
|
}, "readMeetingEvidence");
|
|
19718
19718
|
|
|
19719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
19720
19720
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
19721
19721
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
19722
19722
|
const requestedAccounts = options.accountIds;
|
|
@@ -19815,7 +19815,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
19815
19815
|
};
|
|
19816
19816
|
}, "personMeetingContext");
|
|
19817
19817
|
|
|
19818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
19819
19819
|
var PREPARE_BYTES = 96 * 1024;
|
|
19820
19820
|
var MEETINGS = 5;
|
|
19821
19821
|
var CUES = 3;
|
|
@@ -19932,7 +19932,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
19932
19932
|
}
|
|
19933
19933
|
}, "meetingsOf");
|
|
19934
19934
|
|
|
19935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
19936
19936
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
19937
19937
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
19938
19938
|
const held = await storeIfOpen(deps);
|
|
@@ -20002,7 +20002,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
20002
20002
|
complete: false
|
|
20003
20003
|
})), "quiet");
|
|
20004
20004
|
|
|
20005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
20006
20006
|
var TIMELINE_ITEMS = 50;
|
|
20007
20007
|
var TIMELINE_MAX = 500;
|
|
20008
20008
|
var SCOPES = ["personal", "work"];
|
|
@@ -20057,7 +20057,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
20057
20057
|
};
|
|
20058
20058
|
}, "personTimeline");
|
|
20059
20059
|
|
|
20060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
20061
20061
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
20062
20062
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
20063
20063
|
const held = await storeIfOpen(deps);
|
|
@@ -20284,7 +20284,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
20284
20284
|
return rest;
|
|
20285
20285
|
}, "withoutPhone");
|
|
20286
20286
|
|
|
20287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
20288
20288
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
20289
20289
|
const tags = /* @__PURE__ */ new Map();
|
|
20290
20290
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -20293,7 +20293,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
20293
20293
|
return tags;
|
|
20294
20294
|
}, "taskTagFilters");
|
|
20295
20295
|
|
|
20296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
20297
20297
|
var TASK_QUERY = {
|
|
20298
20298
|
entity: "task",
|
|
20299
20299
|
backend: "sql",
|
|
@@ -20773,7 +20773,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
20773
20773
|
};
|
|
20774
20774
|
}, "taskView");
|
|
20775
20775
|
|
|
20776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
20777
20777
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
20778
20778
|
const ids = [...new Set(chatIds)];
|
|
20779
20779
|
if (ids.length === 0)
|
|
@@ -20799,7 +20799,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
20799
20799
|
}));
|
|
20800
20800
|
}, "chatCoverage");
|
|
20801
20801
|
|
|
20802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
20803
20803
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
20804
20804
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
20805
20805
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -20863,7 +20863,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
20863
20863
|
}
|
|
20864
20864
|
}, "validateContextEvidencePage");
|
|
20865
20865
|
|
|
20866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
20867
20867
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
20868
20868
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
20869
20869
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -20916,7 +20916,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
20916
20916
|
};
|
|
20917
20917
|
}, "contextReadBudget");
|
|
20918
20918
|
|
|
20919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
20920
20920
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
20921
20921
|
if (!port || typeof port.read !== "function")
|
|
20922
20922
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -20960,7 +20960,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
20960
20960
|
};
|
|
20961
20961
|
}, "createContextEvidenceReader");
|
|
20962
20962
|
|
|
20963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
20964
20964
|
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");
|
|
20965
20965
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
20966
20966
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -20976,18 +20976,18 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
20976
20976
|
}, "excerpt");
|
|
20977
20977
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
20978
20978
|
|
|
20979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
20980
20980
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
20981
20981
|
|
|
20982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
20983
20983
|
import { lstat } from "node:fs/promises";
|
|
20984
20984
|
|
|
20985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
20986
20986
|
import { createHash as createHash3, randomUUID as randomUUID2 } from "node:crypto";
|
|
20987
20987
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
20988
20988
|
import { join as join2 } from "node:path";
|
|
20989
20989
|
|
|
20990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
20991
20991
|
import { createHash as createHash2 } from "node:crypto";
|
|
20992
20992
|
var metadataLimit = 16384;
|
|
20993
20993
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -21047,7 +21047,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
21047
21047
|
}
|
|
21048
21048
|
}, "readPartialMetadata");
|
|
21049
21049
|
|
|
21050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
21051
21051
|
import { randomUUID } from "node:crypto";
|
|
21052
21052
|
import { open, rename, unlink } from "node:fs/promises";
|
|
21053
21053
|
import { join } from "node:path";
|
|
@@ -21139,7 +21139,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
21139
21139
|
};
|
|
21140
21140
|
}, "partialWriter");
|
|
21141
21141
|
|
|
21142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21143
21143
|
var NativeRecordingPartialStore = class {
|
|
21144
21144
|
static {
|
|
21145
21145
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -21246,12 +21246,12 @@ var NativeRecordingPartialStore = class {
|
|
|
21246
21246
|
}
|
|
21247
21247
|
};
|
|
21248
21248
|
|
|
21249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21250
21250
|
import { createHash as createHash4 } from "node:crypto";
|
|
21251
21251
|
import { link as link2 } from "node:fs/promises";
|
|
21252
21252
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
21253
21253
|
|
|
21254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
21255
21255
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
21256
21256
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected, signal, writable = false) => {
|
|
21257
21257
|
signal?.throwIfAborted();
|
|
@@ -21286,7 +21286,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
21286
21286
|
signal?.throwIfAborted();
|
|
21287
21287
|
}, "commitPublication");
|
|
21288
21288
|
|
|
21289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
21290
21290
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
21291
21291
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
21292
21292
|
import { join as join3 } from "node:path";
|
|
@@ -21359,7 +21359,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
21359
21359
|
}
|
|
21360
21360
|
}, "writePublicationJournal");
|
|
21361
21361
|
|
|
21362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21363
21363
|
var NativeRecordingPublication = class {
|
|
21364
21364
|
static {
|
|
21365
21365
|
__name(this, "NativeRecordingPublication");
|
|
@@ -21432,7 +21432,7 @@ var NativeRecordingPublication = class {
|
|
|
21432
21432
|
}
|
|
21433
21433
|
};
|
|
21434
21434
|
|
|
21435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
21436
21436
|
import { createHash as createHash5 } from "node:crypto";
|
|
21437
21437
|
import { readdir } from "node:fs/promises";
|
|
21438
21438
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -21519,7 +21519,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
21519
21519
|
beforePublish
|
|
21520
21520
|
}), "commitMediaEntry");
|
|
21521
21521
|
|
|
21522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21523
21523
|
var validator = '"media-completed-v1"';
|
|
21524
21524
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
21525
21525
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -21620,7 +21620,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
21620
21620
|
return entry;
|
|
21621
21621
|
}, "archiveMediaFile");
|
|
21622
21622
|
|
|
21623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
21624
21624
|
import { mkdir, realpath } from "node:fs/promises";
|
|
21625
21625
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
21626
21626
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -21687,7 +21687,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
21687
21687
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
21688
21688
|
}, "withMediaArchiveLocks");
|
|
21689
21689
|
|
|
21690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
21691
21691
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
21692
21692
|
if (value === void 0)
|
|
21693
21693
|
return void 0;
|
|
@@ -21840,7 +21840,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
21840
21840
|
}, { create: true });
|
|
21841
21841
|
}, "archiveMedia");
|
|
21842
21842
|
|
|
21843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
21844
21844
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
21845
21845
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
21846
21846
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -21993,7 +21993,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
21993
21993
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
21994
21994
|
}, "moveMediaArchive");
|
|
21995
21995
|
|
|
21996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
21997
21997
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
21998
21998
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
21999
21999
|
}, "progress") }) => {
|
|
@@ -22016,7 +22016,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22016
22016
|
}
|
|
22017
22017
|
await nativeRuntime({ env, progress });
|
|
22018
22018
|
progress(`${model.id}: loading it once to check it works`);
|
|
22019
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
22019
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-QERDAB73.js");
|
|
22020
22020
|
const embedder = await openEmbedder2(model, directory2);
|
|
22021
22021
|
try {
|
|
22022
22022
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -22037,7 +22037,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
22037
22037
|
}
|
|
22038
22038
|
await nativeRuntime({ env, progress });
|
|
22039
22039
|
progress(`${model.id}: loading it once to check it works`);
|
|
22040
|
-
const { openReranker } = await import("./rerank-
|
|
22040
|
+
const { openReranker } = await import("./rerank-TXSDPEFE.js");
|
|
22041
22041
|
const reranker = await openReranker(model, directory2);
|
|
22042
22042
|
try {
|
|
22043
22043
|
await reranker.score("check", ["check"]);
|
|
@@ -22055,7 +22055,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22055
22055
|
await installFiles(placedImage(model, directory2), { progress });
|
|
22056
22056
|
}
|
|
22057
22057
|
progress(`${model.id}: loading it once to check it works`);
|
|
22058
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
22058
|
+
const { openPictureEmbedder } = await import("./embedder-I76YT3E5.js");
|
|
22059
22059
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
22060
22060
|
try {
|
|
22061
22061
|
const vector = await embedder.embedQuery("check");
|
|
@@ -22067,7 +22067,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22067
22067
|
return { model, directory: directory2 };
|
|
22068
22068
|
}, "downloadImageModel");
|
|
22069
22069
|
|
|
22070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22071
22071
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22072
22072
|
async around(ref, window3) {
|
|
22073
22073
|
const at = parseLocator(ref);
|
|
@@ -22162,7 +22162,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22162
22162
|
};
|
|
22163
22163
|
}, "storedNeighbours");
|
|
22164
22164
|
|
|
22165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22166
22166
|
import { createHash as createHash6 } from "node:crypto";
|
|
22167
22167
|
var DAY = 864e5;
|
|
22168
22168
|
var MAX_TIME = 864e13;
|
|
@@ -22478,7 +22478,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
22478
22478
|
return value;
|
|
22479
22479
|
}, "decodeCheckpoint");
|
|
22480
22480
|
|
|
22481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
22482
22482
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
22483
22483
|
var PAGE = 20;
|
|
22484
22484
|
var PEOPLE = 20;
|
|
@@ -22882,7 +22882,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
22882
22882
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
22883
22883
|
}, "peopleOf");
|
|
22884
22884
|
|
|
22885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
22886
22886
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
22887
22887
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
22888
22888
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -22926,7 +22926,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
22926
22926
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
22927
22927
|
}, "matchVocabularyTerms");
|
|
22928
22928
|
|
|
22929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
22930
22930
|
var KINDS = ["project", "tag", "topic"];
|
|
22931
22931
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
22932
22932
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -22981,7 +22981,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
22981
22981
|
};
|
|
22982
22982
|
}, "findEvidenceMentions");
|
|
22983
22983
|
|
|
22984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
22985
22985
|
var PROJECT_ID = /^project:[1-9]\d*$/;
|
|
22986
22986
|
var canonicalProjectRef = /* @__PURE__ */ __name(async (store, reference) => {
|
|
22987
22987
|
if (PROJECT_ID.test(reference)) {
|
|
@@ -23147,7 +23147,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23147
23147
|
return { projectRef: project.ref, unreadSources: [...unread, ...unreadChats, ...members.left], ...gathered, mentions };
|
|
23148
23148
|
}, "gatherStoredProject");
|
|
23149
23149
|
|
|
23150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
23151
23151
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
23152
23152
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
23153
23153
|
if (deps.offline)
|
|
@@ -23219,7 +23219,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
23219
23219
|
};
|
|
23220
23220
|
}, "accountService");
|
|
23221
23221
|
|
|
23222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
23223
23223
|
var MINUTE = 6e4;
|
|
23224
23224
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
23225
23225
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -23238,7 +23238,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
23238
23238
|
return new Date(at - at % MINUTE).toISOString();
|
|
23239
23239
|
}, "sendTime");
|
|
23240
23240
|
|
|
23241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
23242
23242
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
23243
23243
|
try {
|
|
23244
23244
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -23485,7 +23485,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
23485
23485
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
23486
23486
|
}, "linkLimits");
|
|
23487
23487
|
|
|
23488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
23489
23489
|
var THREADS_PAGE = 500;
|
|
23490
23490
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
23491
23491
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -23564,7 +23564,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
23564
23564
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
23565
23565
|
}, "readMail");
|
|
23566
23566
|
|
|
23567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
23568
23568
|
var NO_MAIL = "no_mail";
|
|
23569
23569
|
var MAIL = "email";
|
|
23570
23570
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -23611,7 +23611,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
23611
23611
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
23612
23612
|
}, "accountsOfKind");
|
|
23613
23613
|
|
|
23614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
23615
23615
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
23616
23616
|
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");
|
|
23617
23617
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -23959,7 +23959,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
23959
23959
|
};
|
|
23960
23960
|
}, "statsLucene");
|
|
23961
23961
|
|
|
23962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
23963
23963
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
23964
23964
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
23965
23965
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -24128,7 +24128,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24128
24128
|
};
|
|
24129
24129
|
}, "readRankingSelection");
|
|
24130
24130
|
|
|
24131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
24132
24132
|
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");
|
|
24133
24133
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
24134
24134
|
command,
|
|
@@ -24138,7 +24138,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
24138
24138
|
fieldsVersion: FIELD_VERSION
|
|
24139
24139
|
}), "searchRecordOf");
|
|
24140
24140
|
|
|
24141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
24142
24142
|
function invalid2(message) {
|
|
24143
24143
|
throw new CliError("validation_error", message);
|
|
24144
24144
|
}
|
|
@@ -24432,7 +24432,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
24432
24432
|
}, "evidence")
|
|
24433
24433
|
}), "adminStatisticsService");
|
|
24434
24434
|
|
|
24435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
24436
24436
|
var DAY2 = 864e5;
|
|
24437
24437
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
24438
24438
|
var TASK_FIELDS = /* @__PURE__ */ new Set(["tag", "category", "claimed"]);
|
|
@@ -24674,10 +24674,10 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
24674
24674
|
};
|
|
24675
24675
|
}, "agendaItem");
|
|
24676
24676
|
|
|
24677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
24678
24678
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24679
24679
|
|
|
24680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
24681
24681
|
var REQUEST_MS = 400;
|
|
24682
24682
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
24683
24683
|
const lowest = ranges[0];
|
|
@@ -24700,13 +24700,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
24700
24700
|
};
|
|
24701
24701
|
}, "estimateBackfill");
|
|
24702
24702
|
|
|
24703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
24704
24704
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
24705
24705
|
...error,
|
|
24706
24706
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
24707
24707
|
}), "withRecovery");
|
|
24708
24708
|
|
|
24709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
24710
24710
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
24711
24711
|
if (isCliFailure(error))
|
|
24712
24712
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -24789,7 +24789,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
24789
24789
|
};
|
|
24790
24790
|
}, "mergeBatches");
|
|
24791
24791
|
|
|
24792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
24793
24793
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
24794
24794
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
24795
24795
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -24812,7 +24812,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
24812
24812
|
}
|
|
24813
24813
|
}, "patiently");
|
|
24814
24814
|
|
|
24815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
24816
24816
|
var CONTEXT_MESSAGES2 = 3;
|
|
24817
24817
|
var CONTEXT_MINUTES = 10;
|
|
24818
24818
|
var MAX_CHARS = 1200;
|
|
@@ -24836,12 +24836,12 @@ var context = {
|
|
|
24836
24836
|
}, "describe")
|
|
24837
24837
|
};
|
|
24838
24838
|
|
|
24839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
24840
24840
|
var BUILT_INS = [context];
|
|
24841
24841
|
var providers = [...BUILT_INS];
|
|
24842
24842
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
24843
24843
|
|
|
24844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
24845
24845
|
var READ_PAGE = 5e3;
|
|
24846
24846
|
var CHAIN = 50;
|
|
24847
24847
|
var CONVERSATION_QUERY = {
|
|
@@ -24993,7 +24993,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
24993
24993
|
return size2;
|
|
24994
24994
|
}, "sized");
|
|
24995
24995
|
|
|
24996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
24997
24997
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
24998
24998
|
var MESSAGE_PAGE = 5e3;
|
|
24999
24999
|
var PER_SESSION = 8;
|
|
@@ -25012,7 +25012,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
25012
25012
|
price: remote.price,
|
|
25013
25013
|
installed: true,
|
|
25014
25014
|
perBatch: PER_REQUEST * concurrency,
|
|
25015
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
25015
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-5F4ZOASM.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
25016
25016
|
};
|
|
25017
25017
|
}
|
|
25018
25018
|
const model = textModel(choice);
|
|
@@ -25029,7 +25029,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
25029
25029
|
if (!isTextModelInstalled(model, directory2))
|
|
25030
25030
|
throw notDownloaded(model.id);
|
|
25031
25031
|
if (apart) {
|
|
25032
|
-
const { openProcess } = await import("./process-
|
|
25032
|
+
const { openProcess } = await import("./process-LKODK722.js");
|
|
25033
25033
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
25034
25034
|
}
|
|
25035
25035
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25318,7 +25318,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25318
25318
|
return { ...one, state };
|
|
25319
25319
|
}, "shaped");
|
|
25320
25320
|
|
|
25321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
25322
25322
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25323
25323
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
25324
25324
|
for (const [key, value, maximum] of [
|
|
@@ -25371,7 +25371,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
25371
25371
|
}
|
|
25372
25372
|
}, "catchUpSearch");
|
|
25373
25373
|
|
|
25374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25375
25375
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
25376
25376
|
if (deps.reads === "store") {
|
|
25377
25377
|
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`);
|
|
@@ -25643,7 +25643,7 @@ var fetchInto = /* @__PURE__ */ __name(async ({ history, store, account, fetchin
|
|
|
25643
25643
|
}
|
|
25644
25644
|
const boundary = window3 === void 0 ? held.from : low;
|
|
25645
25645
|
before2 = byTime ? new Date(boundary + (fresh > 0 && !(window3 && fetching.beforeInclusive) ? 1 : 0)).toISOString() : String(boundary);
|
|
25646
|
-
note(`${fetched} messages so far, back to ${
|
|
25646
|
+
note(`${fetched} messages so far, back to ${fromAt.slice(0, 10)}`);
|
|
25647
25647
|
const wait = fetching.jitter ? pauseMs * (1 + Math.random()) : pauseMs;
|
|
25648
25648
|
await sleep3(wait, void 0, { signal: stop }).catch(() => {
|
|
25649
25649
|
});
|
|
@@ -25692,7 +25692,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
25692
25692
|
return message?.timestamp ?? fallback;
|
|
25693
25693
|
}, "timeOfKey");
|
|
25694
25694
|
|
|
25695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
25696
25696
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
25697
25697
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
25698
25698
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -25829,16 +25829,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
25829
25829
|
return { plan, repair };
|
|
25830
25830
|
}, "gapsService");
|
|
25831
25831
|
|
|
25832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
25833
25833
|
import { createHash as createHash9 } from "node:crypto";
|
|
25834
25834
|
import { constants as constants2 } from "node:fs";
|
|
25835
25835
|
import { open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
25836
25836
|
|
|
25837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
25838
25838
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
25839
25839
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
25840
25840
|
|
|
25841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
25842
25842
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
25843
25843
|
import { open as open4, stat } from "node:fs/promises";
|
|
25844
25844
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -26040,7 +26040,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
26040
26040
|
return { name, source };
|
|
26041
26041
|
}, "readStickerFile");
|
|
26042
26042
|
|
|
26043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26044
26044
|
var MAX_FILES = 1e4;
|
|
26045
26045
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
26046
26046
|
if (refusedPlace(directory2, app, env))
|
|
@@ -26109,15 +26109,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
26109
26109
|
return choices;
|
|
26110
26110
|
}, "directoryPaths");
|
|
26111
26111
|
|
|
26112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26113
26113
|
import { posix } from "node:path";
|
|
26114
26114
|
|
|
26115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26116
26116
|
import { setImmediate as tick } from "node:timers/promises";
|
|
26117
26117
|
import { crc32 } from "node:zlib";
|
|
26118
26118
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
26119
26119
|
|
|
26120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
26121
26121
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26122
26122
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26123
26123
|
var SAMPLE = 65536;
|
|
@@ -26219,7 +26219,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26219
26219
|
return result.text;
|
|
26220
26220
|
}, "decodeXml");
|
|
26221
26221
|
|
|
26222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26223
26223
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26224
26224
|
var MAX_ENTRIES = 1e3;
|
|
26225
26225
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -26434,7 +26434,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
26434
26434
|
return found;
|
|
26435
26435
|
}, "elements");
|
|
26436
26436
|
|
|
26437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
26438
26438
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
26439
26439
|
let name = "";
|
|
26440
26440
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -26489,7 +26489,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
26489
26489
|
return { text: parts.join("").trim(), truncated: false };
|
|
26490
26490
|
}, "sheetText");
|
|
26491
26491
|
|
|
26492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26493
26493
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
26494
26494
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
26495
26495
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -26889,10 +26889,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
26889
26889
|
}
|
|
26890
26890
|
}, "readDocument");
|
|
26891
26891
|
|
|
26892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
26893
26893
|
import { extname as extname3 } from "node:path";
|
|
26894
26894
|
|
|
26895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
26896
26896
|
import { readFileSync } from "node:fs";
|
|
26897
26897
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
26898
26898
|
import { fileURLToPath } from "node:url";
|
|
@@ -26953,7 +26953,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
26953
26953
|
}
|
|
26954
26954
|
}, "derived");
|
|
26955
26955
|
|
|
26956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
26957
26957
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
26958
26958
|
var image2 = {
|
|
26959
26959
|
id: "image",
|
|
@@ -26962,7 +26962,7 @@ var image2 = {
|
|
|
26962
26962
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
26963
26963
|
};
|
|
26964
26964
|
|
|
26965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
26966
26966
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
26967
26967
|
var doc = {
|
|
26968
26968
|
id: "doc",
|
|
@@ -26974,7 +26974,7 @@ var doc = {
|
|
|
26974
26974
|
}), "read")
|
|
26975
26975
|
};
|
|
26976
26976
|
|
|
26977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
26978
26978
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
26979
26979
|
var docx = {
|
|
26980
26980
|
id: "docx",
|
|
@@ -26987,7 +26987,7 @@ var docx = {
|
|
|
26987
26987
|
}), "read")
|
|
26988
26988
|
};
|
|
26989
26989
|
|
|
26990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
26991
26991
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
26992
26992
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
26993
26993
|
"fonttbl",
|
|
@@ -27163,7 +27163,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27163
27163
|
}, "htmlText");
|
|
27164
27164
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
27165
27165
|
|
|
27166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
27167
27167
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27168
27168
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27169
27169
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27219,7 +27219,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
27219
27219
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
27220
27220
|
}, "markdownSections");
|
|
27221
27221
|
|
|
27222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
27223
27223
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27224
27224
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27225
27225
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -27290,7 +27290,7 @@ var html = {
|
|
|
27290
27290
|
}, "read")
|
|
27291
27291
|
};
|
|
27292
27292
|
|
|
27293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
27294
27294
|
var office = {
|
|
27295
27295
|
id: "office",
|
|
27296
27296
|
version: documentExtractor("odt"),
|
|
@@ -27301,7 +27301,7 @@ var office = {
|
|
|
27301
27301
|
}, "read")
|
|
27302
27302
|
};
|
|
27303
27303
|
|
|
27304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
27305
27305
|
var pdf = {
|
|
27306
27306
|
id: "pdf",
|
|
27307
27307
|
version: "unpdf",
|
|
@@ -27368,7 +27368,7 @@ var pdf = {
|
|
|
27368
27368
|
}), "read")
|
|
27369
27369
|
};
|
|
27370
27370
|
|
|
27371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
27372
27372
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
27373
27373
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
27374
27374
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -27388,7 +27388,7 @@ var plain = {
|
|
|
27388
27388
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
27389
27389
|
};
|
|
27390
27390
|
|
|
27391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
27392
27392
|
var rtf = {
|
|
27393
27393
|
id: "rtf",
|
|
27394
27394
|
version: "v1",
|
|
@@ -27396,10 +27396,10 @@ var rtf = {
|
|
|
27396
27396
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
27397
27397
|
};
|
|
27398
27398
|
|
|
27399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27400
27400
|
import { basename as basename5 } from "node:path";
|
|
27401
27401
|
|
|
27402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
27403
27403
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
27404
27404
|
const cells = [];
|
|
27405
27405
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -27437,7 +27437,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
27437
27437
|
return { cells, truncated };
|
|
27438
27438
|
}, "delimitedSpans");
|
|
27439
27439
|
|
|
27440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27441
27441
|
var DELIMITED = {
|
|
27442
27442
|
".csv": ",",
|
|
27443
27443
|
".tsv": " ",
|
|
@@ -27476,7 +27476,7 @@ var sheets = {
|
|
|
27476
27476
|
}, "read")
|
|
27477
27477
|
};
|
|
27478
27478
|
|
|
27479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
27480
27480
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
27481
27481
|
var HEAD_BYTES = 1024;
|
|
27482
27482
|
var readers = [...BUILT_INS2];
|
|
@@ -27486,7 +27486,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
27486
27486
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
27487
27487
|
}, "readWithRegistry");
|
|
27488
27488
|
|
|
27489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27490
27490
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
27491
27491
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
27492
27492
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -28565,7 +28565,7 @@ function imageSize(input) {
|
|
|
28565
28565
|
}
|
|
28566
28566
|
__name(imageSize, "imageSize");
|
|
28567
28567
|
|
|
28568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
28569
28569
|
var MAX_PAGES = 20;
|
|
28570
28570
|
var MAX_PIXELS = 2e7;
|
|
28571
28571
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -28716,7 +28716,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
28716
28716
|
}
|
|
28717
28717
|
}, "ocrPdf");
|
|
28718
28718
|
|
|
28719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
28720
28720
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
28721
28721
|
const limits = pdfPreviewLimits(env);
|
|
28722
28722
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -28793,7 +28793,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
28793
28793
|
}
|
|
28794
28794
|
}, "pdfPreview");
|
|
28795
28795
|
|
|
28796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
28797
28797
|
import { createHash as createHash8 } from "node:crypto";
|
|
28798
28798
|
import { constants } from "node:fs";
|
|
28799
28799
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -28901,7 +28901,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
28901
28901
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
28902
28902
|
}, "transferMime");
|
|
28903
28903
|
|
|
28904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28905
28905
|
var ATTACHMENT_QUERY = {
|
|
28906
28906
|
entity: "attachment",
|
|
28907
28907
|
backend: "sql",
|
|
@@ -29282,7 +29282,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29282
29282
|
}, "setText")
|
|
29283
29283
|
}), "attachmentsService");
|
|
29284
29284
|
|
|
29285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
29286
29286
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
29287
29287
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
29288
29288
|
const store = await accountStore(deps);
|
|
@@ -29312,7 +29312,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29312
29312
|
}, "list")
|
|
29313
29313
|
}), "chatDocumentsService");
|
|
29314
29314
|
|
|
29315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
29316
29316
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
29317
29317
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
29318
29318
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -29399,7 +29399,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
29399
29399
|
}
|
|
29400
29400
|
}, "isRetentionSelection");
|
|
29401
29401
|
|
|
29402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
29403
29403
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
29404
29404
|
const fields = text2.split(",").map((one) => one.trim());
|
|
29405
29405
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -29606,7 +29606,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
29606
29606
|
};
|
|
29607
29607
|
}, "countersService");
|
|
29608
29608
|
|
|
29609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
29610
29610
|
var SYNC_KEY = "messages.sync-first";
|
|
29611
29611
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
29612
29612
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -29738,7 +29738,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
29738
29738
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
29739
29739
|
}), "withRefresh");
|
|
29740
29740
|
|
|
29741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
29742
29742
|
var CANDIDATES = 50;
|
|
29743
29743
|
var WORD_HITS = 200;
|
|
29744
29744
|
var RRF_K = 60;
|
|
@@ -30013,13 +30013,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30013
30013
|
return mean.map((value) => value / length);
|
|
30014
30014
|
}, "meanOf");
|
|
30015
30015
|
|
|
30016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
30017
30017
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30018
30018
|
...embeddingsMaintenance(deps),
|
|
30019
30019
|
...embeddingsSearch(deps)
|
|
30020
30020
|
}), "embeddingsService");
|
|
30021
30021
|
|
|
30022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
30023
30023
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30024
30024
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30025
30025
|
if (deps.offline)
|
|
@@ -30160,7 +30160,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30160
30160
|
};
|
|
30161
30161
|
}, "foldersService");
|
|
30162
30162
|
|
|
30163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
30164
30164
|
var REVIEW_COUNT = 500;
|
|
30165
30165
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
30166
30166
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -30239,7 +30239,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
30239
30239
|
};
|
|
30240
30240
|
}, "mentionsService");
|
|
30241
30241
|
|
|
30242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
30243
30243
|
var messageLinkTarget = /* @__PURE__ */ __name((reference, message, provider) => {
|
|
30244
30244
|
if (isLocator(reference)) {
|
|
30245
30245
|
if (message !== void 0)
|
|
@@ -30286,7 +30286,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
30286
30286
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
30287
30287
|
}, "validatePermalink");
|
|
30288
30288
|
|
|
30289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
30290
30290
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
30291
30291
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
30292
30292
|
return `${seconds / 86400}d`;
|
|
@@ -30318,7 +30318,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
30318
30318
|
return seconds;
|
|
30319
30319
|
}, "pinDurationOf");
|
|
30320
30320
|
|
|
30321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
30322
30322
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
30323
30323
|
if (sendAs === void 0) {
|
|
30324
30324
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -30343,7 +30343,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
30343
30343
|
return sendAs;
|
|
30344
30344
|
}, "typedSendAs");
|
|
30345
30345
|
|
|
30346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
30347
30347
|
var TOTAL_CAP = 1e4;
|
|
30348
30348
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
30349
30349
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -30354,7 +30354,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
30354
30354
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
30355
30355
|
}, "totalOf");
|
|
30356
30356
|
|
|
30357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
30358
30358
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
30359
30359
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
30360
30360
|
let narrows = false;
|
|
@@ -30383,7 +30383,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
30383
30383
|
return wanted(root).join(" ").trim();
|
|
30384
30384
|
}, "meaningWords");
|
|
30385
30385
|
|
|
30386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
30387
30387
|
var words = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
30388
30388
|
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"));
|
|
30389
30389
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -30498,7 +30498,7 @@ function planQuestion(text2, strict = false) {
|
|
|
30498
30498
|
}
|
|
30499
30499
|
__name(planQuestion, "planQuestion");
|
|
30500
30500
|
|
|
30501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
30502
30502
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
30503
30503
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
30504
30504
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -30691,7 +30691,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
30691
30691
|
return mode === "coverage" ? coverage * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage * 4 + proximity + phrase;
|
|
30692
30692
|
}, "signals");
|
|
30693
30693
|
|
|
30694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
30695
30695
|
var MEANING_DEPTH = 100;
|
|
30696
30696
|
var RRF_K2 = 60;
|
|
30697
30697
|
var RERANK_DEPTH = 50;
|
|
@@ -31019,7 +31019,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
31019
31019
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
31020
31020
|
}, "mixedWithReranker");
|
|
31021
31021
|
|
|
31022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
31023
31023
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
31024
31024
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
31025
31025
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -31218,7 +31218,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
31218
31218
|
return result;
|
|
31219
31219
|
}, "readThreadContext");
|
|
31220
31220
|
|
|
31221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
31222
31222
|
var SEARCH_FILL_MS = 200;
|
|
31223
31223
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
31224
31224
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -31285,12 +31285,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
31285
31285
|
}, "accountOf");
|
|
31286
31286
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
31287
31287
|
|
|
31288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31289
31289
|
import { createHash as createHash10 } from "node:crypto";
|
|
31290
31290
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
31291
31291
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31292
31292
|
|
|
31293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
31294
31294
|
var GROUP_SETTINGS = [
|
|
31295
31295
|
"allCanPin",
|
|
31296
31296
|
"onlyAdminsAdd",
|
|
@@ -31304,7 +31304,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31304
31304
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31305
31305
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31306
31306
|
|
|
31307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31308
31308
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31309
31309
|
import { link as link3, rm } from "node:fs/promises";
|
|
31310
31310
|
import { basename as basename6, join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -31427,7 +31427,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
31427
31427
|
}
|
|
31428
31428
|
}, "save");
|
|
31429
31429
|
|
|
31430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31431
31431
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31432
31432
|
var PICTURE_FLOOR = 0.25;
|
|
31433
31433
|
var PAGE4 = 50;
|
|
@@ -31444,7 +31444,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31444
31444
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31445
31445
|
if (!isImageModelInstalled(model2, directory2))
|
|
31446
31446
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31447
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31447
|
+
const { openPictureEmbedder } = await import("./embedder-I76YT3E5.js");
|
|
31448
31448
|
return openPictureEmbedder(model2, directory2);
|
|
31449
31449
|
}, "open");
|
|
31450
31450
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -31641,7 +31641,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
31641
31641
|
}, "search")
|
|
31642
31642
|
}), "withPictures");
|
|
31643
31643
|
|
|
31644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
31645
31645
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
31646
31646
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
31647
31647
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -31690,7 +31690,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
31690
31690
|
}
|
|
31691
31691
|
}, "meaningLane");
|
|
31692
31692
|
|
|
31693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
31694
31694
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
31695
31695
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
31696
31696
|
if (choice === "off")
|
|
@@ -31702,9 +31702,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
31702
31702
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
31703
31703
|
try {
|
|
31704
31704
|
const warm = deps.embedders;
|
|
31705
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
31705
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-LKODK722.js")).openRerankerProcess(model, directory2, {
|
|
31706
31706
|
threads: defaultThreads()
|
|
31707
|
-
})) : await (await import("./rerank-
|
|
31707
|
+
})) : await (await import("./rerank-TXSDPEFE.js")).openReranker(model, directory2);
|
|
31708
31708
|
return {
|
|
31709
31709
|
model: model.id,
|
|
31710
31710
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -31724,17 +31724,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
31724
31724
|
};
|
|
31725
31725
|
}, "rerankLane");
|
|
31726
31726
|
|
|
31727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
31728
31728
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
31729
31729
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
31730
31730
|
const directory2 = imageModelsDirectory(env);
|
|
31731
31731
|
if (!isImageModelInstalled(model, directory2))
|
|
31732
31732
|
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 });
|
|
31733
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31733
|
+
const { openPictureEmbedder } = await import("./embedder-I76YT3E5.js");
|
|
31734
31734
|
return openPictureEmbedder(model, directory2);
|
|
31735
31735
|
}, "openPictureEmbedderFor");
|
|
31736
31736
|
|
|
31737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
31738
31738
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
31739
31739
|
const metadata = note.frontMatter;
|
|
31740
31740
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -31749,7 +31749,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
31749
31749
|
};
|
|
31750
31750
|
}, "documentSource");
|
|
31751
31751
|
|
|
31752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
31753
31753
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
31754
31754
|
let root;
|
|
31755
31755
|
try {
|
|
@@ -31776,7 +31776,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words2) => {
|
|
|
31776
31776
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
31777
31777
|
}, "titleTiers");
|
|
31778
31778
|
|
|
31779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
31780
31780
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
31781
31781
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
31782
31782
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -32186,7 +32186,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
32186
32186
|
};
|
|
32187
32187
|
}, "searchNotesOf");
|
|
32188
32188
|
|
|
32189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
32190
32190
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
32191
32191
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
32192
32192
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -32298,7 +32298,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
32298
32298
|
};
|
|
32299
32299
|
}, "searchEvents");
|
|
32300
32300
|
|
|
32301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
32302
32302
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
32303
32303
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
32304
32304
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -32506,7 +32506,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
32506
32506
|
};
|
|
32507
32507
|
}, "searchAll");
|
|
32508
32508
|
|
|
32509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
32510
32510
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
32511
32511
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
32512
32512
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -32753,7 +32753,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
32753
32753
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
32754
32754
|
}, "searchAllOfSource");
|
|
32755
32755
|
|
|
32756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
32757
32757
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
32758
32758
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3 };
|
|
32759
32759
|
var DEFAULT_BACKEND = "both";
|
|
@@ -32942,7 +32942,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
32942
32942
|
return { report, sources };
|
|
32943
32943
|
}, "searchServer");
|
|
32944
32944
|
|
|
32945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
32946
32946
|
var DELETE_AT_ONCE = 10;
|
|
32947
32947
|
var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
32948
32948
|
const { guard } = deps;
|
|
@@ -33368,7 +33368,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
33368
33368
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
33369
33369
|
}, "checkMediaOptions");
|
|
33370
33370
|
|
|
33371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
33372
33372
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
33373
33373
|
var RULES = {
|
|
33374
33374
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -33383,7 +33383,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
33383
33383
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
33384
33384
|
}), "classifyChannel");
|
|
33385
33385
|
|
|
33386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
33387
33387
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
33388
33388
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
33389
33389
|
const store = await deps.store();
|
|
@@ -33469,7 +33469,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
33469
33469
|
};
|
|
33470
33470
|
}, "metadataService");
|
|
33471
33471
|
|
|
33472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
33473
33473
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
33474
33474
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
33475
33475
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -33506,7 +33506,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
33506
33506
|
return { chatId, rows, notes };
|
|
33507
33507
|
}, "moderateWith");
|
|
33508
33508
|
|
|
33509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
33510
33510
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
33511
33511
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
33512
33512
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -33584,7 +33584,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
33584
33584
|
}, "removePerson")
|
|
33585
33585
|
}), "moderatorOf");
|
|
33586
33586
|
|
|
33587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
33588
33588
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
33589
33589
|
id: note.id,
|
|
33590
33590
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -33628,7 +33628,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
33628
33628
|
};
|
|
33629
33629
|
}, "privatePeopleService");
|
|
33630
33630
|
|
|
33631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
33632
33632
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
33633
33633
|
total: 0,
|
|
33634
33634
|
population: 0,
|
|
@@ -33884,7 +33884,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
33884
33884
|
}, "evidence")
|
|
33885
33885
|
}), "rankingsService");
|
|
33886
33886
|
|
|
33887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
33888
33888
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
33889
33889
|
id: one.id,
|
|
33890
33890
|
name: one.name,
|
|
@@ -34013,7 +34013,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34013
34013
|
};
|
|
34014
34014
|
}, "searchesService");
|
|
34015
34015
|
|
|
34016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
34017
34017
|
var TAGGING_QUERY = {
|
|
34018
34018
|
entity: "tagging",
|
|
34019
34019
|
backend: "sql",
|
|
@@ -34097,7 +34097,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34097
34097
|
};
|
|
34098
34098
|
}, "tagsService");
|
|
34099
34099
|
|
|
34100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
34101
34101
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden }) => {
|
|
34102
34102
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
34103
34103
|
if (title !== void 0 || set !== 1)
|
|
@@ -34282,7 +34282,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
34282
34282
|
};
|
|
34283
34283
|
}, "topicsService");
|
|
34284
34284
|
|
|
34285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
34286
34286
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
34287
34287
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
34288
34288
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -34356,7 +34356,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
34356
34356
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
34357
34357
|
}, "prepareEvidencePacket");
|
|
34358
34358
|
|
|
34359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
34360
34360
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
34361
34361
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
34362
34362
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -34376,7 +34376,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
34376
34376
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
34377
34377
|
}, "readEvidencePacket");
|
|
34378
34378
|
|
|
34379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
34380
34380
|
var scopeKeys = [
|
|
34381
34381
|
"accountId",
|
|
34382
34382
|
"meetingId",
|
|
@@ -34398,7 +34398,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
34398
34398
|
"maxVocabularyReadBytes"
|
|
34399
34399
|
]);
|
|
34400
34400
|
|
|
34401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
34402
34402
|
var communicationFields = {
|
|
34403
34403
|
sources: pipe(array(strictObject({
|
|
34404
34404
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -34430,7 +34430,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
34430
34430
|
return { ...input, after, before: before2 };
|
|
34431
34431
|
}, "communicationRequest");
|
|
34432
34432
|
|
|
34433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
34434
34434
|
var MEETING_PREPARATION_LIMITS = {
|
|
34435
34435
|
meetings: { min: 1, max: 20, default: 5 },
|
|
34436
34436
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -34503,7 +34503,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
34503
34503
|
};
|
|
34504
34504
|
}, "validateMeetingPreparationRequest");
|
|
34505
34505
|
|
|
34506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
34507
34507
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
34508
34508
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
34509
34509
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -34551,7 +34551,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
34551
34551
|
}
|
|
34552
34552
|
}, "validatePreparationCommunications");
|
|
34553
34553
|
|
|
34554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
34555
34555
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
34556
34556
|
const installer = ports.installer();
|
|
34557
34557
|
const argv = updateCommand(installer, packageName);
|
|
@@ -34616,7 +34616,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
34616
34616
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
34617
34617
|
}, "dayAfter");
|
|
34618
34618
|
|
|
34619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
34620
34620
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
34621
34621
|
const pictures = picturesService(deps);
|
|
34622
34622
|
const base = {
|
|
@@ -34652,7 +34652,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
34652
34652
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
34653
34653
|
}, "servicesFor");
|
|
34654
34654
|
|
|
34655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
34656
34656
|
import { createHash as createHash12 } from "node:crypto";
|
|
34657
34657
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync2, rmSync } from "node:fs";
|
|
34658
34658
|
import { createConnection, createServer } from "node:net";
|
|
@@ -34873,7 +34873,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
34873
34873
|
}, () => finish({ error: stopped() }));
|
|
34874
34874
|
}), "relayCommand");
|
|
34875
34875
|
|
|
34876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
34877
34877
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
34878
34878
|
close: /* @__PURE__ */ __name(async () => {
|
|
34879
34879
|
}, "close"),
|