@wirecat/mail-cli 0.15.0 → 0.16.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 +11 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-PKXL5TKP.js → all-profiles-TUDREUUW.js} +6 -6
- package/dist/bundle/{anthropic-DFDNZU7C.js → anthropic-KQOVSP6C.js} +3 -3
- package/dist/bundle/{app-server-WOZAOCKX.js → app-server-QK7PKVT7.js} +40 -40
- package/dist/bundle/{bun-DKZAL6ML.js → bun-2NMWL5YB.js} +2 -2
- package/dist/bundle/{bun-sqlite-2A7FS5GD.js → bun-sqlite-Y4FP6SDX.js} +2 -2
- package/dist/bundle/{chunk-WIU733D2.js → chunk-3CVDHJER.js} +1 -1
- package/dist/bundle/{chunk-QJQV6KG2.js → chunk-3ZJE5TIG.js} +1 -1
- package/dist/bundle/{chunk-FEWWBU2I.js → chunk-4IEDXIUN.js} +208 -210
- package/dist/bundle/{chunk-WTDYN3TQ.js → chunk-4IIH5PXR.js} +26 -26
- package/dist/bundle/{chunk-YWIU4HOT.js → chunk-5FPQGUJA.js} +1 -1
- package/dist/bundle/{chunk-U3VX3UUC.js → chunk-6DVPPLAN.js} +3 -3
- package/dist/bundle/{chunk-IA6U76ZY.js → chunk-7LMTWOTP.js} +1 -1
- package/dist/bundle/{chunk-YRHXVXLQ.js → chunk-ANFIIXBL.js} +1 -1
- package/dist/bundle/{chunk-QSGT4ZH4.js → chunk-ARDUJR5Z.js} +1 -1
- package/dist/bundle/{chunk-BKF7XIJ5.js → chunk-B2NDDA2W.js} +8 -8
- package/dist/bundle/{chunk-BIKMEGC7.js → chunk-CGH6UH3T.js} +7 -7
- package/dist/bundle/{chunk-4HVY3QPF.js → chunk-CRYWPLJP.js} +1 -1
- package/dist/bundle/{chunk-LRBAQSU3.js → chunk-CT2MIWXY.js} +2 -2
- package/dist/bundle/{chunk-JQTIB4WJ.js → chunk-DDQXDX4U.js} +4 -4
- package/dist/bundle/{chunk-NNLYS4IR.js → chunk-DKIAHQRN.js} +7 -7
- package/dist/bundle/{chunk-XKUAEYJV.js → chunk-EBEYU7RW.js} +9 -9
- package/dist/bundle/{chunk-6AYJDBHT.js → chunk-EZIJPXDZ.js} +5 -5
- package/dist/bundle/{chunk-NDZK466U.js → chunk-FHY664YS.js} +3 -3
- package/dist/bundle/{chunk-4YECCESG.js → chunk-FROWEHK7.js} +2 -2
- package/dist/bundle/{chunk-73SQQXSU.js → chunk-GAYW2JRW.js} +7 -7
- package/dist/bundle/{chunk-KJYCA6IC.js → chunk-GIKNAOER.js} +3 -3
- package/dist/bundle/{chunk-M5DF6QNT.js → chunk-HN3EDDVX.js} +12 -12
- package/dist/bundle/{chunk-RFDP45QO.js → chunk-HVAXTTOT.js} +2 -2
- package/dist/bundle/{chunk-M5VHTDJZ.js → chunk-I3K6JG4I.js} +16 -16
- package/dist/bundle/{chunk-SPQY3PJX.js → chunk-IJYYD2JU.js} +296 -169
- package/dist/bundle/{chunk-K4N5UG64.js → chunk-K2OQCQ2N.js} +4 -4
- package/dist/bundle/{chunk-3MKCLPQV.js → chunk-KJV3BI7S.js} +9 -9
- package/dist/bundle/{chunk-HGOYQUT7.js → chunk-KMZRXGTF.js} +1 -1
- package/dist/bundle/{chunk-XGNC5OJG.js → chunk-LMN7SYX4.js} +1 -1
- package/dist/bundle/{chunk-6Z7VBDFR.js → chunk-M24BGP7M.js} +1 -1
- package/dist/bundle/{chunk-5W7D5H2R.js → chunk-M6O4DH5F.js} +1 -1
- package/dist/bundle/{chunk-R6UG66IM.js → chunk-MLWN27HF.js} +214 -214
- package/dist/bundle/{chunk-P4SV3VKP.js → chunk-N7DLDEFU.js} +2 -2
- package/dist/bundle/{chunk-LARQTWIL.js → chunk-OYB3FUYQ.js} +1 -1
- package/dist/bundle/{chunk-RBNL3DBQ.js → chunk-POS35G6D.js} +1 -1
- package/dist/bundle/{chunk-PI5P457W.js → chunk-PWTEWT4M.js} +4 -4
- package/dist/bundle/{chunk-BY5S3JEZ.js → chunk-PYX6K527.js} +44 -44
- package/dist/bundle/{chunk-2BHY4GFP.js → chunk-Q4T2HBZP.js} +2 -2
- package/dist/bundle/{chunk-QTD3BVS5.js → chunk-R6SBRHVG.js} +5 -5
- package/dist/bundle/{chunk-OJEIUOMW.js → chunk-RPEW7E3S.js} +10 -10
- package/dist/bundle/{chunk-OZVGHHFZ.js → chunk-TTOKDZQX.js} +1 -1
- package/dist/bundle/{chunk-4TPNRJER.js → chunk-UBLFUQ7O.js} +6 -6
- package/dist/bundle/{chunk-4XRIALMN.js → chunk-VD6GZ3W2.js} +1 -1
- package/dist/bundle/{chunk-VQQFOA4O.js → chunk-VP5FL5JQ.js} +6 -6
- package/dist/bundle/{chunk-PXLVTHMH.js → chunk-VTJ5TMGN.js} +2 -2
- package/dist/bundle/{chunk-5C3L2QER.js → chunk-WKHHCCJE.js} +21 -21
- package/dist/bundle/{chunk-2A4Z3WOC.js → chunk-X7EBOXBY.js} +278 -274
- package/dist/bundle/{chunk-SRHKHE4C.js → chunk-XAANQN4R.js} +13 -13
- package/dist/bundle/{chunk-ENZTLYTS.js → chunk-XEIGKPYU.js} +6 -3
- package/dist/bundle/{chunk-4DGOI6JB.js → chunk-YGJO5VNR.js} +22 -22
- package/dist/bundle/{chunk-A6O3WHBD.js → chunk-ZNW4E3SG.js} +2 -2
- package/dist/bundle/{chunk-WOV3ABQR.js → chunk-ZS6YKNYS.js} +3 -3
- package/dist/bundle/{command-contract-4E4NYRR7.js → command-contract-GVNLRXWS.js} +13 -13
- package/dist/bundle/{decode-LX4FPSI7.js → decode-WCS4KOHV.js} +2 -2
- package/dist/bundle/{dist-HQIZDYNQ.js → dist-FL422DTA.js} +10 -10
- package/dist/bundle/{echarts-BGBPRGR5.js → echarts-45D6USAX.js} +2 -2
- package/dist/bundle/{embed-ASAE3H5I.js → embed-4B4ATLCN.js} +3 -3
- package/dist/bundle/{embedder-QYDZRKBX.js → embedder-ASWGJXNV.js} +6 -6
- package/dist/bundle/{first-run-EFNNGFCB.js → first-run-5K3UD4BU.js} +5 -5
- package/dist/bundle/{first-screen-XHM3TT6G.js → first-screen-NNX54MYC.js} +14 -14
- package/dist/bundle/{instructions-6LPDSKAD.js → instructions-6EFSPC7C.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-IB246NCQ.js → node-OXC26QXO.js} +2 -2
- package/dist/bundle/{node-sqlite-UROXM4VR.js → node-sqlite-PXHZAG7Y.js} +3 -3
- package/dist/bundle/{oauth-VSCKHS4T.js → oauth-YK2QLC7U.js} +4 -4
- package/dist/bundle/{open-R4LVB63T.js → open-SABDXZ4B.js} +2 -2
- package/dist/bundle/{openai-MKCEOFKL.js → openai-DPURPXEU.js} +10 -10
- package/dist/bundle/{process-SWPJGPQC.js → process-YWPAOI6G.js} +1 -1
- package/dist/bundle/{program-CJ2YDRUY.js → program-L43S7DRF.js} +1351 -1223
- package/dist/bundle/{prompt-TWWJ5VAM.js → prompt-GKVNFGFE.js} +2 -2
- package/dist/bundle/{recognize-XMO5ETQU.js → recognize-344YDSLX.js} +1 -1
- package/dist/bundle/{remote-N6VAWJWE.js → remote-53UZUJJU.js} +4 -4
- package/dist/bundle/{rerank-XNAMC6FH.js → rerank-PAIRND6R.js} +4 -4
- package/dist/bundle/{serve-IJ32WEBH.js → serve-DZSO7LJK.js} +6 -6
- package/dist/bundle/{server-KEYSE5OL.js → server-EGG3V67I.js} +32 -32
- package/dist/bundle/server-SGGMRV2K.js +64 -0
- package/dist/bundle/{sqlite-runtime-NFBRN7OF.js → sqlite-runtime-ZQ6F3VYZ.js} +3 -3
- package/dist/bundle/{state-7WPJEW2Z.js → state-LXPOWLZ5.js} +3 -3
- package/dist/bundle/{store-PKQCNACC.js → store-4ZMSK5R5.js} +11 -11
- package/dist/bundle/{store-KHVHOGQR.js → store-PHT75I6S.js} +13 -13
- package/dist/bundle/store-maintenance-command-C6ONZNRX.js +54 -0
- package/dist/commands/context.d.ts +1 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/config.d.ts +3 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -1
- package/dist/config.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-CRVR4L2E.js +0 -64
- package/dist/bundle/store-maintenance-command-5MODJN6R.js +0 -54
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HN3EDDVX.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_ACTIONS,
|
|
14
14
|
ModerationRules,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
someUndone,
|
|
27
27
|
validateFormattedText,
|
|
28
28
|
visibleFormattedText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GAYW2JRW.js";
|
|
30
30
|
import {
|
|
31
31
|
MAX_MODEL_IMAGE_BYTES
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3ZJE5TIG.js";
|
|
33
33
|
import {
|
|
34
34
|
Command,
|
|
35
35
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -69,17 +69,17 @@ import {
|
|
|
69
69
|
typedCommand,
|
|
70
70
|
vectorModelKey,
|
|
71
71
|
withAttempt
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-IJYYD2JU.js";
|
|
73
73
|
import {
|
|
74
74
|
isCliFailure
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-DKIAHQRN.js";
|
|
76
76
|
import {
|
|
77
77
|
isNewer,
|
|
78
78
|
updateCommand
|
|
79
79
|
} from "./chunk-EDJQDR5X.js";
|
|
80
80
|
import {
|
|
81
81
|
remoteKey
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-HVAXTTOT.js";
|
|
83
83
|
import {
|
|
84
84
|
Unzip,
|
|
85
85
|
UnzipInflate,
|
|
@@ -90,11 +90,11 @@ import {
|
|
|
90
90
|
placedText,
|
|
91
91
|
runEmbedders,
|
|
92
92
|
textModelsDirectory
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-R6SBRHVG.js";
|
|
94
94
|
import {
|
|
95
95
|
installFiles,
|
|
96
96
|
megabytes
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-ZS6YKNYS.js";
|
|
98
98
|
import {
|
|
99
99
|
AGENDA_COLUMNS,
|
|
100
100
|
CHAT_COLUMNS,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
validateAst,
|
|
158
158
|
validateFields,
|
|
159
159
|
withoutField
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-X7EBOXBY.js";
|
|
161
161
|
import {
|
|
162
162
|
COUNTER_FIELDS,
|
|
163
163
|
INTERNAL_NOTES,
|
|
@@ -177,13 +177,13 @@ import {
|
|
|
177
177
|
providerNamed,
|
|
178
178
|
rankingOptions,
|
|
179
179
|
rankingQuestion
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-EBEYU7RW.js";
|
|
181
181
|
import {
|
|
182
182
|
TASK_KINDS,
|
|
183
183
|
TASK_STATES,
|
|
184
184
|
createTaskService,
|
|
185
185
|
isClosedState
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-UBLFUQ7O.js";
|
|
187
187
|
import {
|
|
188
188
|
EVENT_QUERY,
|
|
189
189
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -224,21 +224,21 @@ import {
|
|
|
224
224
|
validateQuery,
|
|
225
225
|
walkQuery,
|
|
226
226
|
zonedMoment
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-4IEDXIUN.js";
|
|
228
228
|
import {
|
|
229
229
|
DEFAULT_STEMMERS,
|
|
230
230
|
createStemmer,
|
|
231
231
|
fold,
|
|
232
232
|
normalize
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-CGH6UH3T.js";
|
|
234
234
|
import {
|
|
235
235
|
DEFAULT_TASK_CATEGORIES,
|
|
236
236
|
FALLBACK_CATEGORY
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-K2OQCQ2N.js";
|
|
238
238
|
import {
|
|
239
239
|
storePath,
|
|
240
240
|
wirecatDirectory
|
|
241
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-TTOKDZQX.js";
|
|
242
242
|
import {
|
|
243
243
|
resolvePaths
|
|
244
244
|
} from "./chunk-QCNK3YUZ.js";
|
|
@@ -16883,10 +16883,10 @@ var require_lib3 = __commonJS({
|
|
|
16883
16883
|
}
|
|
16884
16884
|
});
|
|
16885
16885
|
|
|
16886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16887
16887
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16888
16888
|
|
|
16889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16890
16890
|
var RULES_VERSION = 5;
|
|
16891
16891
|
var LOOK_BACK = 50;
|
|
16892
16892
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16976,7 +16976,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16976
16976
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16977
16977
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16978
16978
|
|
|
16979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
16980
16980
|
var COMMAND_NEEDS = {
|
|
16981
16981
|
"account update": ["updateProfile", "change the profile"],
|
|
16982
16982
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17026,7 +17026,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17026
17026
|
return group;
|
|
17027
17027
|
}, "hideNever");
|
|
17028
17028
|
|
|
17029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17030
17030
|
var AUDIT_PAGE = 200;
|
|
17031
17031
|
var AUDIT_BUDGET = 10;
|
|
17032
17032
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17106,7 +17106,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17106
17106
|
return found;
|
|
17107
17107
|
}, "burstJoins");
|
|
17108
17108
|
|
|
17109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17110
17110
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17111
17111
|
command.allowUnknownOption();
|
|
17112
17112
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17126,7 +17126,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17126
17126
|
return command;
|
|
17127
17127
|
}, "queryWordsAfterOptions");
|
|
17128
17128
|
|
|
17129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17130
17130
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17131
17131
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17132
17132
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17168,7 +17168,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17168
17168
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17169
17169
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17170
17170
|
|
|
17171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17172
17172
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
17173
17173
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17174
17174
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17191,7 +17191,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17191
17191
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17192
17192
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17193
17193
|
|
|
17194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17195
17195
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17196
17196
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17197
17197
|
const zone = timezoneOf();
|
|
@@ -17277,7 +17277,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17277
17277
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17278
17278
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17279
17279
|
|
|
17280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17281
17281
|
var integer3 = /* @__PURE__ */ __name((text2) => {
|
|
17282
17282
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17283
17283
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17409,7 +17409,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17409
17409
|
}, "addMeetingCommandsDefinition");
|
|
17410
17410
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17411
17411
|
|
|
17412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17413
17413
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17414
17414
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17415
17415
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17542,7 +17542,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17542
17542
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17543
17543
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17544
17544
|
|
|
17545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17546
17546
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17547
17547
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17548
17548
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17551,7 +17551,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17551
17551
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
17552
17552
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17553
17553
|
|
|
17554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17555
17555
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17556
17556
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17557
17557
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17813,7 +17813,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17813
17813
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17814
17814
|
}), "sessionAnswer");
|
|
17815
17815
|
|
|
17816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17817
17817
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17818
17818
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17819
17819
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17877,7 +17877,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17877
17877
|
}), "storedDeps");
|
|
17878
17878
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17879
17879
|
|
|
17880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17881
17881
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17882
17882
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17883
17883
|
if (key in own)
|
|
@@ -17894,12 +17894,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17894
17894
|
return found.bind(adapter);
|
|
17895
17895
|
}, "capability");
|
|
17896
17896
|
|
|
17897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17898
17898
|
import { randomBytes } from "node:crypto";
|
|
17899
17899
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17900
17900
|
var newOperationId = newSendId;
|
|
17901
17901
|
|
|
17902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17903
17903
|
var LINKS = /https?:\/\/\S+/g;
|
|
17904
17904
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
|
|
17905
17905
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17929,7 +17929,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17929
17929
|
});
|
|
17930
17930
|
}, "questions");
|
|
17931
17931
|
|
|
17932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17933
17933
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17934
17934
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17935
17935
|
const name = typed.trim().toLowerCase();
|
|
@@ -17986,7 +17986,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
17986
17986
|
return best.name;
|
|
17987
17987
|
}, "categorize");
|
|
17988
17988
|
|
|
17989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
17990
17990
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17991
17991
|
var RULES_IN = {
|
|
17992
17992
|
dialog: "all",
|
|
@@ -18192,7 +18192,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18192
18192
|
return passes;
|
|
18193
18193
|
}, "applyTaskRulesToChats");
|
|
18194
18194
|
|
|
18195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18196
18196
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18197
18197
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18198
18198
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18232,7 +18232,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18232
18232
|
};
|
|
18233
18233
|
}, "dateWindow");
|
|
18234
18234
|
|
|
18235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18236
18236
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18237
18237
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18238
18238
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18255,10 +18255,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18255
18255
|
}
|
|
18256
18256
|
}, "patiently");
|
|
18257
18257
|
|
|
18258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18259
18259
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18260
18260
|
|
|
18261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18262
18262
|
var REQUEST_MS = 400;
|
|
18263
18263
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18264
18264
|
const lowest = ranges[0];
|
|
@@ -18281,13 +18281,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18281
18281
|
};
|
|
18282
18282
|
}, "estimateBackfill");
|
|
18283
18283
|
|
|
18284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18285
18285
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18286
18286
|
...error,
|
|
18287
18287
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18288
18288
|
}), "withRecovery");
|
|
18289
18289
|
|
|
18290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18291
18291
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18292
18292
|
if (isCliFailure(error))
|
|
18293
18293
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18370,7 +18370,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18370
18370
|
};
|
|
18371
18371
|
}, "mergeBatches");
|
|
18372
18372
|
|
|
18373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18374
18374
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18375
18375
|
if (deps.reads !== "store")
|
|
18376
18376
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18529,7 +18529,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18529
18529
|
}
|
|
18530
18530
|
}, "senderAmong");
|
|
18531
18531
|
|
|
18532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18533
18533
|
var CONTEXT_MESSAGES = 3;
|
|
18534
18534
|
var CONTEXT_MINUTES = 10;
|
|
18535
18535
|
var MAX_CHARS = 1200;
|
|
@@ -18553,12 +18553,12 @@ var context = {
|
|
|
18553
18553
|
}, "describe")
|
|
18554
18554
|
};
|
|
18555
18555
|
|
|
18556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18557
18557
|
var BUILT_INS = [context];
|
|
18558
18558
|
var providers = [...BUILT_INS];
|
|
18559
18559
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18560
18560
|
|
|
18561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18562
18562
|
var READ_PAGE = 5e3;
|
|
18563
18563
|
var CHAIN = 50;
|
|
18564
18564
|
var CONVERSATION_QUERY = {
|
|
@@ -18710,7 +18710,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18710
18710
|
return size2;
|
|
18711
18711
|
}, "sized");
|
|
18712
18712
|
|
|
18713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18714
18714
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18715
18715
|
var MESSAGE_PAGE = 5e3;
|
|
18716
18716
|
var PER_SESSION = 8;
|
|
@@ -18729,7 +18729,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18729
18729
|
price: remote.price,
|
|
18730
18730
|
installed: true,
|
|
18731
18731
|
perBatch: PER_REQUEST * concurrency,
|
|
18732
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18732
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-53UZUJJU.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18733
18733
|
};
|
|
18734
18734
|
}
|
|
18735
18735
|
const model = textModel(choice);
|
|
@@ -18746,7 +18746,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18746
18746
|
if (!isTextModelInstalled(model, directory2))
|
|
18747
18747
|
throw notDownloaded(model.id);
|
|
18748
18748
|
if (apart) {
|
|
18749
|
-
const { openProcess } = await import("./process-
|
|
18749
|
+
const { openProcess } = await import("./process-YWPAOI6G.js");
|
|
18750
18750
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18751
18751
|
}
|
|
18752
18752
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19035,7 +19035,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19035
19035
|
return { ...one, state };
|
|
19036
19036
|
}, "shaped");
|
|
19037
19037
|
|
|
19038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19039
19039
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19040
19040
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19041
19041
|
for (const [key, value, maximum] of [
|
|
@@ -19088,7 +19088,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19088
19088
|
}
|
|
19089
19089
|
}, "catchUpSearch");
|
|
19090
19090
|
|
|
19091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19092
19092
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19093
19093
|
if (deps.reads === "store") {
|
|
19094
19094
|
throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -19454,7 +19454,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19454
19454
|
return message?.timestamp ?? fallback;
|
|
19455
19455
|
}, "timeOfKey");
|
|
19456
19456
|
|
|
19457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
19458
19458
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
19459
19459
|
import { open, stat } from "node:fs/promises";
|
|
19460
19460
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -19656,7 +19656,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
19656
19656
|
return { name, source };
|
|
19657
19657
|
}, "readStickerFile");
|
|
19658
19658
|
|
|
19659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19660
19660
|
var DAY_MS = 864e5;
|
|
19661
19661
|
var NEW_DAYS = 30;
|
|
19662
19662
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19733,7 +19733,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19733
19733
|
};
|
|
19734
19734
|
}, "scorePerson");
|
|
19735
19735
|
|
|
19736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19737
19737
|
var REGISTRIES = {
|
|
19738
19738
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19739
19739
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19818,7 +19818,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19818
19818
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19819
19819
|
})), "notCovered");
|
|
19820
19820
|
|
|
19821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19822
19822
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19823
19823
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19824
19824
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19906,7 +19906,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19906
19906
|
};
|
|
19907
19907
|
}, "botCheckService");
|
|
19908
19908
|
|
|
19909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19910
19910
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19911
19911
|
if (value === void 0)
|
|
19912
19912
|
return void 0;
|
|
@@ -19916,7 +19916,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19916
19916
|
return id2;
|
|
19917
19917
|
}, "threadIdOf");
|
|
19918
19918
|
|
|
19919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19920
19920
|
var TOP_POSTS = 5;
|
|
19921
19921
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19922
19922
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20033,7 +20033,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20033
20033
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20034
20034
|
}, "median");
|
|
20035
20035
|
|
|
20036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20037
20037
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20038
20038
|
const events = [];
|
|
20039
20039
|
for (const stay of stays) {
|
|
@@ -20065,7 +20065,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20065
20065
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20066
20066
|
}, "memberEvents");
|
|
20067
20067
|
|
|
20068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20069
20069
|
var EVENTS_DAYS = 7;
|
|
20070
20070
|
var TRACKED_DAYS = 30;
|
|
20071
20071
|
var STATS_PAGE = 1e3;
|
|
@@ -20360,7 +20360,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20360
20360
|
return members.length === 0 ? null : members;
|
|
20361
20361
|
}, "storedMembers");
|
|
20362
20362
|
|
|
20363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20364
20364
|
var INBOX_CHATS = 20;
|
|
20365
20365
|
var REVIEW_DAYS = 3;
|
|
20366
20366
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20568,7 +20568,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20568
20568
|
};
|
|
20569
20569
|
}, "inboxService");
|
|
20570
20570
|
|
|
20571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20572
20572
|
var CONTEXT_MESSAGES2 = 10;
|
|
20573
20573
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20574
20574
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20829,10 +20829,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20829
20829
|
};
|
|
20830
20830
|
}, "personMessages");
|
|
20831
20831
|
|
|
20832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20833
20833
|
import { createHash } from "node:crypto";
|
|
20834
20834
|
|
|
20835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20836
20836
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20837
20837
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20838
20838
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20850,7 +20850,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20850
20850
|
return { parsed, meeting };
|
|
20851
20851
|
}, "authorizedMeetingMetadata");
|
|
20852
20852
|
|
|
20853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20854
20854
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20855
20855
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20856
20856
|
if (signal?.aborted)
|
|
@@ -21049,7 +21049,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21049
21049
|
return { ...packet, fingerprint: hash(packet) };
|
|
21050
21050
|
}, "readMeetingEvidence");
|
|
21051
21051
|
|
|
21052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21053
21053
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21054
21054
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21055
21055
|
const requestedAccounts = options.accountIds;
|
|
@@ -21148,7 +21148,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21148
21148
|
};
|
|
21149
21149
|
}, "personMeetingContext");
|
|
21150
21150
|
|
|
21151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21152
21152
|
var PREPARE_BYTES = 96 * 1024;
|
|
21153
21153
|
var MEETINGS = 5;
|
|
21154
21154
|
var CUES = 3;
|
|
@@ -21265,7 +21265,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21265
21265
|
}
|
|
21266
21266
|
}, "meetingsOf");
|
|
21267
21267
|
|
|
21268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21269
21269
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21270
21270
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21271
21271
|
const held = await storeIfOpen(deps);
|
|
@@ -21335,7 +21335,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21335
21335
|
complete: false
|
|
21336
21336
|
})), "quiet");
|
|
21337
21337
|
|
|
21338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21339
21339
|
var TIMELINE_ITEMS = 50;
|
|
21340
21340
|
var TIMELINE_MAX = 500;
|
|
21341
21341
|
var SCOPES = ["personal", "work"];
|
|
@@ -21390,7 +21390,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21390
21390
|
};
|
|
21391
21391
|
}, "personTimeline");
|
|
21392
21392
|
|
|
21393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21394
21394
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21395
21395
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21396
21396
|
const held = await storeIfOpen(deps);
|
|
@@ -21617,7 +21617,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21617
21617
|
return rest;
|
|
21618
21618
|
}, "withoutPhone");
|
|
21619
21619
|
|
|
21620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21621
21621
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21622
21622
|
var PERIOD_FIELD = "created";
|
|
21623
21623
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21720,7 +21720,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21720
21720
|
}));
|
|
21721
21721
|
}, "meetingNames");
|
|
21722
21722
|
|
|
21723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21724
21724
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21725
21725
|
const tags = /* @__PURE__ */ new Map();
|
|
21726
21726
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21729,7 +21729,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21729
21729
|
return tags;
|
|
21730
21730
|
}, "taskTagFilters");
|
|
21731
21731
|
|
|
21732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21733
21733
|
var TASK_QUERY = {
|
|
21734
21734
|
entity: "task",
|
|
21735
21735
|
backend: "sql",
|
|
@@ -22221,7 +22221,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22221
22221
|
};
|
|
22222
22222
|
}, "taskView");
|
|
22223
22223
|
|
|
22224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22225
22225
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22226
22226
|
if (newest === null)
|
|
22227
22227
|
return null;
|
|
@@ -22230,7 +22230,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22230
22230
|
return newest.addressed ? "owed" : null;
|
|
22231
22231
|
}, "mailTurn");
|
|
22232
22232
|
|
|
22233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22234
22234
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22235
22235
|
if (error instanceof CliError && error.code === "not_found")
|
|
22236
22236
|
return void 0;
|
|
@@ -22288,7 +22288,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22288
22288
|
};
|
|
22289
22289
|
}, "mailActivity");
|
|
22290
22290
|
|
|
22291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22292
22292
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22293
22293
|
const ids = [...new Set(chatIds)];
|
|
22294
22294
|
if (ids.length === 0)
|
|
@@ -22314,7 +22314,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22314
22314
|
}));
|
|
22315
22315
|
}, "chatCoverage");
|
|
22316
22316
|
|
|
22317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
22318
22318
|
var DAY = 864e5;
|
|
22319
22319
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22320
22320
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22561,7 +22561,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22561
22561
|
};
|
|
22562
22562
|
}, "agendaItem");
|
|
22563
22563
|
|
|
22564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22565
22565
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22566
22566
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22567
22567
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22625,7 +22625,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22625
22625
|
}
|
|
22626
22626
|
}, "validateContextEvidencePage");
|
|
22627
22627
|
|
|
22628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22629
22629
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22630
22630
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22631
22631
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22678,7 +22678,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22678
22678
|
};
|
|
22679
22679
|
}, "contextReadBudget");
|
|
22680
22680
|
|
|
22681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22682
22682
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22683
22683
|
if (!port || typeof port.read !== "function")
|
|
22684
22684
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22722,7 +22722,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22722
22722
|
};
|
|
22723
22723
|
}, "createContextEvidenceReader");
|
|
22724
22724
|
|
|
22725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22726
22726
|
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");
|
|
22727
22727
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
22728
22728
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22738,7 +22738,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
22738
22738
|
}, "excerpt");
|
|
22739
22739
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22740
22740
|
|
|
22741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
22742
22742
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22743
22743
|
var DEFAULT_PURPOSES = ["work"];
|
|
22744
22744
|
var LINK_PURPOSE = "work";
|
|
@@ -22768,7 +22768,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22768
22768
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22769
22769
|
], "purposeList");
|
|
22770
22770
|
|
|
22771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22772
22772
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22773
22773
|
async around(ref, window3) {
|
|
22774
22774
|
const at = parseLocator(ref);
|
|
@@ -22863,7 +22863,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22863
22863
|
};
|
|
22864
22864
|
}, "storedNeighbours");
|
|
22865
22865
|
|
|
22866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22867
22867
|
import { createHash as createHash2 } from "node:crypto";
|
|
22868
22868
|
var DAY2 = 864e5;
|
|
22869
22869
|
var MAX_TIME = 864e13;
|
|
@@ -23179,7 +23179,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23179
23179
|
return value;
|
|
23180
23180
|
}, "decodeCheckpoint");
|
|
23181
23181
|
|
|
23182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23183
23183
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23184
23184
|
var PAGE2 = 20;
|
|
23185
23185
|
var PEOPLE = 20;
|
|
@@ -23583,7 +23583,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23583
23583
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23584
23584
|
}, "peopleOf");
|
|
23585
23585
|
|
|
23586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23587
23587
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23588
23588
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23589
23589
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23627,7 +23627,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23627
23627
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23628
23628
|
}, "matchVocabularyTerms");
|
|
23629
23629
|
|
|
23630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23631
23631
|
var KINDS = ["project", "tag", "topic"];
|
|
23632
23632
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23633
23633
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23682,7 +23682,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23682
23682
|
};
|
|
23683
23683
|
}, "findEvidenceMentions");
|
|
23684
23684
|
|
|
23685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23686
23686
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23687
23687
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23688
23688
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23988,18 +23988,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23988
23988
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23989
23989
|
}, "purposeHintOf");
|
|
23990
23990
|
|
|
23991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
23992
23992
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
23993
23993
|
|
|
23994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
23995
23995
|
import { lstat } from "node:fs/promises";
|
|
23996
23996
|
|
|
23997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
23998
23998
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
23999
23999
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
24000
24000
|
import { join as join2 } from "node:path";
|
|
24001
24001
|
|
|
24002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
24003
24003
|
import { createHash as createHash3 } from "node:crypto";
|
|
24004
24004
|
var metadataLimit = 16384;
|
|
24005
24005
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -24059,7 +24059,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
24059
24059
|
}
|
|
24060
24060
|
}, "readPartialMetadata");
|
|
24061
24061
|
|
|
24062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
24063
24063
|
import { randomUUID } from "node:crypto";
|
|
24064
24064
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
24065
24065
|
import { join } from "node:path";
|
|
@@ -24151,7 +24151,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24151
24151
|
};
|
|
24152
24152
|
}, "partialWriter");
|
|
24153
24153
|
|
|
24154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24155
24155
|
var NativeRecordingPartialStore = class {
|
|
24156
24156
|
static {
|
|
24157
24157
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24258,12 +24258,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24258
24258
|
}
|
|
24259
24259
|
};
|
|
24260
24260
|
|
|
24261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24262
24262
|
import { createHash as createHash5 } from "node:crypto";
|
|
24263
24263
|
import { link as link2 } from "node:fs/promises";
|
|
24264
24264
|
import { basename as basename2, dirname as dirname2, join as join4, resolve as resolve2 } from "node:path";
|
|
24265
24265
|
|
|
24266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24267
24267
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24268
24268
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24269
24269
|
signal?.throwIfAborted();
|
|
@@ -24298,7 +24298,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24298
24298
|
signal?.throwIfAborted();
|
|
24299
24299
|
}, "commitPublication");
|
|
24300
24300
|
|
|
24301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24302
24302
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24303
24303
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24304
24304
|
import { join as join3 } from "node:path";
|
|
@@ -24371,7 +24371,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24371
24371
|
}
|
|
24372
24372
|
}, "writePublicationJournal");
|
|
24373
24373
|
|
|
24374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24375
24375
|
var NativeRecordingPublication = class {
|
|
24376
24376
|
static {
|
|
24377
24377
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24444,7 +24444,7 @@ var NativeRecordingPublication = class {
|
|
|
24444
24444
|
}
|
|
24445
24445
|
};
|
|
24446
24446
|
|
|
24447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24448
24448
|
import { createHash as createHash6 } from "node:crypto";
|
|
24449
24449
|
import { readdir } from "node:fs/promises";
|
|
24450
24450
|
import { isAbsolute as isAbsolute2, join as join5, resolve as resolve3 } from "node:path";
|
|
@@ -24531,7 +24531,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24531
24531
|
beforePublish
|
|
24532
24532
|
}), "commitMediaEntry");
|
|
24533
24533
|
|
|
24534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24535
24535
|
var validator = '"media-completed-v1"';
|
|
24536
24536
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24537
24537
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24632,7 +24632,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
24632
24632
|
return entry;
|
|
24633
24633
|
}, "archiveMediaFile");
|
|
24634
24634
|
|
|
24635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
24636
24636
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24637
24637
|
import { join as join6, resolve as resolve4 } from "node:path";
|
|
24638
24638
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24699,7 +24699,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24699
24699
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24700
24700
|
}, "withMediaArchiveLocks");
|
|
24701
24701
|
|
|
24702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24703
24703
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24704
24704
|
if (value === void 0)
|
|
24705
24705
|
return void 0;
|
|
@@ -24852,7 +24852,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
24852
24852
|
}, { create: true });
|
|
24853
24853
|
}, "archiveMedia");
|
|
24854
24854
|
|
|
24855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
24856
24856
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24857
24857
|
import { basename as basename3, dirname as dirname3, join as join7, resolve as resolve5 } from "node:path";
|
|
24858
24858
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -25005,7 +25005,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
25005
25005
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
25006
25006
|
}, "moveMediaArchive");
|
|
25007
25007
|
|
|
25008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
25009
25009
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
25010
25010
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
25011
25011
|
}, "progress") }) => {
|
|
@@ -25028,7 +25028,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25028
25028
|
}
|
|
25029
25029
|
await nativeRuntime({ env, progress });
|
|
25030
25030
|
progress(`${model.id}: loading it once to check it works`);
|
|
25031
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
25031
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-4B4ATLCN.js");
|
|
25032
25032
|
const embedder = await openEmbedder2(model, directory2);
|
|
25033
25033
|
try {
|
|
25034
25034
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -25049,7 +25049,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
25049
25049
|
}
|
|
25050
25050
|
await nativeRuntime({ env, progress });
|
|
25051
25051
|
progress(`${model.id}: loading it once to check it works`);
|
|
25052
|
-
const { openReranker } = await import("./rerank-
|
|
25052
|
+
const { openReranker } = await import("./rerank-PAIRND6R.js");
|
|
25053
25053
|
const reranker = await openReranker(model, directory2);
|
|
25054
25054
|
try {
|
|
25055
25055
|
await reranker.score("check", ["check"]);
|
|
@@ -25067,7 +25067,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25067
25067
|
await installFiles(placedImage(model, directory2), { progress });
|
|
25068
25068
|
}
|
|
25069
25069
|
progress(`${model.id}: loading it once to check it works`);
|
|
25070
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
25070
|
+
const { openPictureEmbedder } = await import("./embedder-ASWGJXNV.js");
|
|
25071
25071
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
25072
25072
|
try {
|
|
25073
25073
|
const vector = await embedder.embedQuery("check");
|
|
@@ -25079,7 +25079,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25079
25079
|
return { model, directory: directory2 };
|
|
25080
25080
|
}, "downloadImageModel");
|
|
25081
25081
|
|
|
25082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
25083
25083
|
var MONEY_REQUEST = "money-request";
|
|
25084
25084
|
var MONEY_DONE = "money-done";
|
|
25085
25085
|
var PROMISE = "promise";
|
|
@@ -25113,10 +25113,10 @@ var MONEY_WORDS = [
|
|
|
25113
25113
|
}
|
|
25114
25114
|
];
|
|
25115
25115
|
|
|
25116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25117
25117
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25118
25118
|
|
|
25119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25120
25120
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25121
25121
|
var MONEY_DONE_FORMS = words([
|
|
25122
25122
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25156,7 +25156,7 @@ var PROMISE_FORMS = words([
|
|
|
25156
25156
|
"estar\xE1 listo"
|
|
25157
25157
|
]);
|
|
25158
25158
|
|
|
25159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25160
25160
|
var EXCERPT_CHARS = 80;
|
|
25161
25161
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25162
25162
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25178,7 +25178,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25178
25178
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25179
25179
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25180
25180
|
|
|
25181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25182
25182
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25183
25183
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25184
25184
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25258,7 +25258,7 @@ var amounts = {
|
|
|
25258
25258
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
25259
25259
|
};
|
|
25260
25260
|
|
|
25261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25262
25262
|
var children = {
|
|
25263
25263
|
id: "children",
|
|
25264
25264
|
version: 1,
|
|
@@ -25287,7 +25287,7 @@ var children = {
|
|
|
25287
25287
|
}, "read")
|
|
25288
25288
|
};
|
|
25289
25289
|
|
|
25290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25291
25291
|
var coverage = {
|
|
25292
25292
|
id: "coverage",
|
|
25293
25293
|
version: 1,
|
|
@@ -25316,7 +25316,7 @@ var coverage = {
|
|
|
25316
25316
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
|
|
25317
25317
|
};
|
|
25318
25318
|
|
|
25319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/last-message.js
|
|
25320
25320
|
var lastMessage = {
|
|
25321
25321
|
id: "last-message",
|
|
25322
25322
|
version: 1,
|
|
@@ -25338,7 +25338,7 @@ var lastMessage = {
|
|
|
25338
25338
|
}, "read")
|
|
25339
25339
|
};
|
|
25340
25340
|
|
|
25341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25342
25342
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25343
25343
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25344
25344
|
signal: "payments",
|
|
@@ -25388,7 +25388,7 @@ var payments = {
|
|
|
25388
25388
|
}, "read")
|
|
25389
25389
|
};
|
|
25390
25390
|
|
|
25391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25392
25392
|
var PATTERNS_PER_CHAT = 3;
|
|
25393
25393
|
var DAY3 = 864e5;
|
|
25394
25394
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25477,7 +25477,7 @@ var promises = {
|
|
|
25477
25477
|
}, "read")
|
|
25478
25478
|
};
|
|
25479
25479
|
|
|
25480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25481
25481
|
var PER_SIDE = 5;
|
|
25482
25482
|
var WEEK = 7 * 864e5;
|
|
25483
25483
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25508,7 +25508,7 @@ var questions2 = {
|
|
|
25508
25508
|
}, "attention")
|
|
25509
25509
|
};
|
|
25510
25510
|
|
|
25511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25512
25512
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25513
25513
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25514
25514
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25576,7 +25576,7 @@ var replyNext = {
|
|
|
25576
25576
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25577
25577
|
};
|
|
25578
25578
|
|
|
25579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
25580
25580
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25581
25581
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25582
25582
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25622,7 +25622,7 @@ var topics = {
|
|
|
25622
25622
|
}, "read")
|
|
25623
25623
|
};
|
|
25624
25624
|
|
|
25625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
25626
25626
|
var STATUS_SIGNALS = [
|
|
25627
25627
|
lastMessage,
|
|
25628
25628
|
replyNext,
|
|
@@ -25635,7 +25635,7 @@ var STATUS_SIGNALS = [
|
|
|
25635
25635
|
children
|
|
25636
25636
|
];
|
|
25637
25637
|
|
|
25638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
25639
25639
|
var DAY4 = 864e5;
|
|
25640
25640
|
var STATUS_WINDOW = 300;
|
|
25641
25641
|
var STATUS_CHATS = 16;
|
|
@@ -25817,7 +25817,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25817
25817
|
};
|
|
25818
25818
|
}, "projectStatus");
|
|
25819
25819
|
|
|
25820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
25821
25821
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25822
25822
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25823
25823
|
if (deps.offline)
|
|
@@ -25889,7 +25889,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25889
25889
|
};
|
|
25890
25890
|
}, "accountService");
|
|
25891
25891
|
|
|
25892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
25893
25893
|
var MINUTE = 6e4;
|
|
25894
25894
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25895
25895
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25908,7 +25908,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25908
25908
|
return new Date(at - at % MINUTE).toISOString();
|
|
25909
25909
|
}, "sendTime");
|
|
25910
25910
|
|
|
25911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
25912
25912
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
25913
25913
|
try {
|
|
25914
25914
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -26155,7 +26155,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26155
26155
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26156
26156
|
}, "linkLimits");
|
|
26157
26157
|
|
|
26158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26159
26159
|
var THREADS_PAGE = 500;
|
|
26160
26160
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26161
26161
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26234,7 +26234,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26234
26234
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26235
26235
|
}, "readMail");
|
|
26236
26236
|
|
|
26237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26238
26238
|
var NO_MAIL = "no_mail";
|
|
26239
26239
|
var MAIL = "email";
|
|
26240
26240
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26281,7 +26281,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26281
26281
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26282
26282
|
}, "accountsOfKind");
|
|
26283
26283
|
|
|
26284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26285
26285
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26286
26286
|
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");
|
|
26287
26287
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26629,7 +26629,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26629
26629
|
};
|
|
26630
26630
|
}, "statsLucene");
|
|
26631
26631
|
|
|
26632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
26633
26633
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26634
26634
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26635
26635
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26798,7 +26798,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26798
26798
|
};
|
|
26799
26799
|
}, "readRankingSelection");
|
|
26800
26800
|
|
|
26801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
26802
26802
|
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");
|
|
26803
26803
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26804
26804
|
command,
|
|
@@ -26808,7 +26808,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26808
26808
|
fieldsVersion: FIELD_VERSION
|
|
26809
26809
|
}), "searchRecordOf");
|
|
26810
26810
|
|
|
26811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
26812
26812
|
function invalid2(message) {
|
|
26813
26813
|
throw new CliError("validation_error", message);
|
|
26814
26814
|
}
|
|
@@ -27102,7 +27102,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
27102
27102
|
}, "evidence")
|
|
27103
27103
|
}), "adminStatisticsService");
|
|
27104
27104
|
|
|
27105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
27106
27106
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
27107
27107
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
27108
27108
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27239,12 +27239,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27239
27239
|
return { plan, repair };
|
|
27240
27240
|
}, "gapsService");
|
|
27241
27241
|
|
|
27242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27243
27243
|
import { createHash as createHash9 } from "node:crypto";
|
|
27244
27244
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27245
27245
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27246
27246
|
|
|
27247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27248
27248
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27249
27249
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27250
27250
|
var MAX_FILES = 1e4;
|
|
@@ -27315,15 +27315,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27315
27315
|
return choices;
|
|
27316
27316
|
}, "directoryPaths");
|
|
27317
27317
|
|
|
27318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27319
27319
|
import { posix } from "node:path";
|
|
27320
27320
|
|
|
27321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27322
27322
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27323
27323
|
import { crc32 } from "node:zlib";
|
|
27324
27324
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27325
27325
|
|
|
27326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
27327
27327
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27328
27328
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27329
27329
|
var SAMPLE = 65536;
|
|
@@ -27425,7 +27425,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27425
27425
|
return result.text;
|
|
27426
27426
|
}, "decodeXml");
|
|
27427
27427
|
|
|
27428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27429
27429
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27430
27430
|
var MAX_ENTRIES = 1e3;
|
|
27431
27431
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27640,7 +27640,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27640
27640
|
return found;
|
|
27641
27641
|
}, "elements");
|
|
27642
27642
|
|
|
27643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27644
27644
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27645
27645
|
let name = "";
|
|
27646
27646
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27695,7 +27695,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27695
27695
|
return { text: parts.join("").trim(), truncated: false };
|
|
27696
27696
|
}, "sheetText");
|
|
27697
27697
|
|
|
27698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27699
27699
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27700
27700
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27701
27701
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28095,10 +28095,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28095
28095
|
}
|
|
28096
28096
|
}, "readDocument");
|
|
28097
28097
|
|
|
28098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28099
28099
|
import { extname as extname3 } from "node:path";
|
|
28100
28100
|
|
|
28101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28102
28102
|
import { readFileSync } from "node:fs";
|
|
28103
28103
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28104
28104
|
import { fileURLToPath } from "node:url";
|
|
@@ -28159,7 +28159,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
28159
28159
|
}
|
|
28160
28160
|
}, "derived");
|
|
28161
28161
|
|
|
28162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28163
28163
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28164
28164
|
var image2 = {
|
|
28165
28165
|
id: "image",
|
|
@@ -28168,7 +28168,7 @@ var image2 = {
|
|
|
28168
28168
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28169
28169
|
};
|
|
28170
28170
|
|
|
28171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28172
28172
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28173
28173
|
var doc = {
|
|
28174
28174
|
id: "doc",
|
|
@@ -28180,7 +28180,7 @@ var doc = {
|
|
|
28180
28180
|
}), "read")
|
|
28181
28181
|
};
|
|
28182
28182
|
|
|
28183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28184
28184
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28185
28185
|
var docx = {
|
|
28186
28186
|
id: "docx",
|
|
@@ -28193,7 +28193,7 @@ var docx = {
|
|
|
28193
28193
|
}), "read")
|
|
28194
28194
|
};
|
|
28195
28195
|
|
|
28196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28197
28197
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28198
28198
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28199
28199
|
"fonttbl",
|
|
@@ -28369,7 +28369,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28369
28369
|
}, "htmlText");
|
|
28370
28370
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28371
28371
|
|
|
28372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
28373
28373
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28374
28374
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28375
28375
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28425,7 +28425,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28425
28425
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28426
28426
|
}, "markdownSections");
|
|
28427
28427
|
|
|
28428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28429
28429
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28430
28430
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28431
28431
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28496,7 +28496,7 @@ var html = {
|
|
|
28496
28496
|
}, "read")
|
|
28497
28497
|
};
|
|
28498
28498
|
|
|
28499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28500
28500
|
var office = {
|
|
28501
28501
|
id: "office",
|
|
28502
28502
|
version: documentExtractor("odt"),
|
|
@@ -28507,7 +28507,7 @@ var office = {
|
|
|
28507
28507
|
}, "read")
|
|
28508
28508
|
};
|
|
28509
28509
|
|
|
28510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28511
28511
|
var pdf = {
|
|
28512
28512
|
id: "pdf",
|
|
28513
28513
|
version: "unpdf",
|
|
@@ -28574,7 +28574,7 @@ var pdf = {
|
|
|
28574
28574
|
}), "read")
|
|
28575
28575
|
};
|
|
28576
28576
|
|
|
28577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28578
28578
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28579
28579
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28580
28580
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28594,7 +28594,7 @@ var plain = {
|
|
|
28594
28594
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28595
28595
|
};
|
|
28596
28596
|
|
|
28597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28598
28598
|
var rtf = {
|
|
28599
28599
|
id: "rtf",
|
|
28600
28600
|
version: "v1",
|
|
@@ -28602,10 +28602,10 @@ var rtf = {
|
|
|
28602
28602
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28603
28603
|
};
|
|
28604
28604
|
|
|
28605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28606
28606
|
import { basename as basename5 } from "node:path";
|
|
28607
28607
|
|
|
28608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28609
28609
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28610
28610
|
const cells = [];
|
|
28611
28611
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28643,7 +28643,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28643
28643
|
return { cells, truncated };
|
|
28644
28644
|
}, "delimitedSpans");
|
|
28645
28645
|
|
|
28646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28647
28647
|
var DELIMITED = {
|
|
28648
28648
|
".csv": ",",
|
|
28649
28649
|
".tsv": " ",
|
|
@@ -28682,7 +28682,7 @@ var sheets = {
|
|
|
28682
28682
|
}, "read")
|
|
28683
28683
|
};
|
|
28684
28684
|
|
|
28685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28686
28686
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28687
28687
|
var HEAD_BYTES = 1024;
|
|
28688
28688
|
var readers = [...BUILT_INS2];
|
|
@@ -28692,7 +28692,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28692
28692
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28693
28693
|
}, "readWithRegistry");
|
|
28694
28694
|
|
|
28695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28696
28696
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28697
28697
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28698
28698
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29771,7 +29771,7 @@ function imageSize(input) {
|
|
|
29771
29771
|
}
|
|
29772
29772
|
__name(imageSize, "imageSize");
|
|
29773
29773
|
|
|
29774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29775
29775
|
var MAX_PAGES = 20;
|
|
29776
29776
|
var MAX_PIXELS = 2e7;
|
|
29777
29777
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29922,7 +29922,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29922
29922
|
}
|
|
29923
29923
|
}, "ocrPdf");
|
|
29924
29924
|
|
|
29925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29926
29926
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29927
29927
|
const limits = pdfPreviewLimits(env);
|
|
29928
29928
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -29999,7 +29999,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29999
29999
|
}
|
|
30000
30000
|
}, "pdfPreview");
|
|
30001
30001
|
|
|
30002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
30003
30003
|
import { createHash as createHash8 } from "node:crypto";
|
|
30004
30004
|
import { constants } from "node:fs";
|
|
30005
30005
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30107,7 +30107,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30107
30107
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30108
30108
|
}, "transferMime");
|
|
30109
30109
|
|
|
30110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30111
30111
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30112
30112
|
import { link as link3, rm } from "node:fs/promises";
|
|
30113
30113
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30221,7 +30221,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
30221
30221
|
}
|
|
30222
30222
|
}, "save");
|
|
30223
30223
|
|
|
30224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30225
30225
|
var ATTACHMENT_QUERY = {
|
|
30226
30226
|
entity: "attachment",
|
|
30227
30227
|
backend: "sql",
|
|
@@ -30644,7 +30644,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30644
30644
|
}, "setText")
|
|
30645
30645
|
}), "attachmentsService");
|
|
30646
30646
|
|
|
30647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30648
30648
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30649
30649
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30650
30650
|
const store = await accountStore(deps);
|
|
@@ -30674,7 +30674,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30674
30674
|
}, "list")
|
|
30675
30675
|
}), "chatDocumentsService");
|
|
30676
30676
|
|
|
30677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30678
30678
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30679
30679
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30680
30680
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30761,7 +30761,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30761
30761
|
}
|
|
30762
30762
|
}, "isRetentionSelection");
|
|
30763
30763
|
|
|
30764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30765
30765
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30766
30766
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30767
30767
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -30968,7 +30968,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30968
30968
|
};
|
|
30969
30969
|
}, "countersService");
|
|
30970
30970
|
|
|
30971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30972
30972
|
var SYNC_KEY = "messages.sync-first";
|
|
30973
30973
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30974
30974
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31100,7 +31100,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31100
31100
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31101
31101
|
}), "withRefresh");
|
|
31102
31102
|
|
|
31103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31104
31104
|
var CANDIDATES = 50;
|
|
31105
31105
|
var WORD_HITS = 200;
|
|
31106
31106
|
var RRF_K = 60;
|
|
@@ -31375,13 +31375,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
31375
31375
|
return mean2.map((value) => value / length);
|
|
31376
31376
|
}, "meanOf");
|
|
31377
31377
|
|
|
31378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
31379
31379
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31380
31380
|
...embeddingsMaintenance(deps),
|
|
31381
31381
|
...embeddingsSearch(deps)
|
|
31382
31382
|
}), "embeddingsService");
|
|
31383
31383
|
|
|
31384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31385
31385
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31386
31386
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31387
31387
|
if (deps.offline)
|
|
@@ -31522,7 +31522,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31522
31522
|
};
|
|
31523
31523
|
}, "foldersService");
|
|
31524
31524
|
|
|
31525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31526
31526
|
var REVIEW_COUNT = 500;
|
|
31527
31527
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31528
31528
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31601,7 +31601,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31601
31601
|
};
|
|
31602
31602
|
}, "mentionsService");
|
|
31603
31603
|
|
|
31604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31605
31605
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31606
31606
|
position,
|
|
31607
31607
|
kind,
|
|
@@ -31650,7 +31650,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31650
31650
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31651
31651
|
}, "validatePermalink");
|
|
31652
31652
|
|
|
31653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31654
31654
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31655
31655
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31656
31656
|
return `${seconds / 86400}d`;
|
|
@@ -31682,7 +31682,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31682
31682
|
return seconds;
|
|
31683
31683
|
}, "pinDurationOf");
|
|
31684
31684
|
|
|
31685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31686
31686
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31687
31687
|
if (sendAs === void 0) {
|
|
31688
31688
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31707,7 +31707,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31707
31707
|
return sendAs;
|
|
31708
31708
|
}, "typedSendAs");
|
|
31709
31709
|
|
|
31710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31711
31711
|
var TOTAL_CAP = 1e4;
|
|
31712
31712
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31713
31713
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31718,7 +31718,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31718
31718
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31719
31719
|
}, "totalOf");
|
|
31720
31720
|
|
|
31721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31722
31722
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31723
31723
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31724
31724
|
let narrows = false;
|
|
@@ -31747,7 +31747,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31747
31747
|
return wanted(root).join(" ").trim();
|
|
31748
31748
|
}, "meaningWords");
|
|
31749
31749
|
|
|
31750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31751
31751
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31752
31752
|
var scaffolding = new Set(words2("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
31753
31753
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31879,7 +31879,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31879
31879
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31880
31880
|
}, "questionLookup");
|
|
31881
31881
|
|
|
31882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31883
31883
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31884
31884
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31885
31885
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32072,7 +32072,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32072
32072
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32073
32073
|
}, "signals");
|
|
32074
32074
|
|
|
32075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32076
32076
|
var MEANING_DEPTH = 100;
|
|
32077
32077
|
var RRF_K2 = 60;
|
|
32078
32078
|
var RERANK_DEPTH = 50;
|
|
@@ -32397,7 +32397,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32397
32397
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32398
32398
|
}, "mixedWithReranker");
|
|
32399
32399
|
|
|
32400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32401
32401
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32402
32402
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32403
32403
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32596,7 +32596,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32596
32596
|
return result;
|
|
32597
32597
|
}, "readThreadContext");
|
|
32598
32598
|
|
|
32599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32600
32600
|
var SEARCH_FILL_MS = 200;
|
|
32601
32601
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32602
32602
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32663,12 +32663,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32663
32663
|
}, "accountOf");
|
|
32664
32664
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32665
32665
|
|
|
32666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32667
32667
|
import { createHash as createHash10 } from "node:crypto";
|
|
32668
32668
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32669
32669
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32670
32670
|
|
|
32671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32672
32672
|
var GROUP_SETTINGS = [
|
|
32673
32673
|
"allCanPin",
|
|
32674
32674
|
"onlyAdminsAdd",
|
|
@@ -32682,7 +32682,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32682
32682
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32683
32683
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32684
32684
|
|
|
32685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32686
32686
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32687
32687
|
var PICTURE_FLOOR = 0.25;
|
|
32688
32688
|
var PAGE4 = 50;
|
|
@@ -32699,7 +32699,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32699
32699
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32700
32700
|
if (!isImageModelInstalled(model2, directory2))
|
|
32701
32701
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32702
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32702
|
+
const { openPictureEmbedder } = await import("./embedder-ASWGJXNV.js");
|
|
32703
32703
|
return openPictureEmbedder(model2, directory2);
|
|
32704
32704
|
}, "open");
|
|
32705
32705
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32896,7 +32896,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32896
32896
|
}, "search")
|
|
32897
32897
|
}), "withPictures");
|
|
32898
32898
|
|
|
32899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32900
32900
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
32901
32901
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
32902
32902
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -32964,7 +32964,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32964
32964
|
}
|
|
32965
32965
|
}, "meaningLane");
|
|
32966
32966
|
|
|
32967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32968
32968
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32969
32969
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32970
32970
|
if (choice === "off")
|
|
@@ -32976,9 +32976,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32976
32976
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32977
32977
|
try {
|
|
32978
32978
|
const warm = deps.embedders;
|
|
32979
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32979
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-YWPAOI6G.js")).openRerankerProcess(model, directory2, {
|
|
32980
32980
|
threads: defaultThreads()
|
|
32981
|
-
})) : await (await import("./rerank-
|
|
32981
|
+
})) : await (await import("./rerank-PAIRND6R.js")).openReranker(model, directory2);
|
|
32982
32982
|
return {
|
|
32983
32983
|
model: model.id,
|
|
32984
32984
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32998,17 +32998,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32998
32998
|
};
|
|
32999
32999
|
}, "rerankLane");
|
|
33000
33000
|
|
|
33001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33002
33002
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33003
33003
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33004
33004
|
const directory2 = imageModelsDirectory(env);
|
|
33005
33005
|
if (!isImageModelInstalled(model, directory2))
|
|
33006
33006
|
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 });
|
|
33007
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33007
|
+
const { openPictureEmbedder } = await import("./embedder-ASWGJXNV.js");
|
|
33008
33008
|
return openPictureEmbedder(model, directory2);
|
|
33009
33009
|
}, "openPictureEmbedderFor");
|
|
33010
33010
|
|
|
33011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33012
33012
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
33013
33013
|
const metadata = note.frontMatter;
|
|
33014
33014
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -33023,7 +33023,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
33023
33023
|
};
|
|
33024
33024
|
}, "documentSource");
|
|
33025
33025
|
|
|
33026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33027
33027
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33028
33028
|
let root;
|
|
33029
33029
|
try {
|
|
@@ -33050,7 +33050,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33050
33050
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33051
33051
|
}, "titleTiers");
|
|
33052
33052
|
|
|
33053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33054
33054
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33055
33055
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33056
33056
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33467,7 +33467,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33467
33467
|
};
|
|
33468
33468
|
}, "searchNotesOf");
|
|
33469
33469
|
|
|
33470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33471
33471
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33472
33472
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33473
33473
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33584,7 +33584,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33584
33584
|
};
|
|
33585
33585
|
}, "searchEvents");
|
|
33586
33586
|
|
|
33587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
33588
33588
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
33589
33589
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
33590
33590
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -33813,7 +33813,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
33813
33813
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
33814
33814
|
}, "oneList");
|
|
33815
33815
|
|
|
33816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33817
33817
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
33818
33818
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
33819
33819
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34066,7 +34066,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34066
34066
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34067
34067
|
}, "searchAllOfSource");
|
|
34068
34068
|
|
|
34069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34070
34070
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34071
34071
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34072
34072
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34255,7 +34255,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34255
34255
|
return { report, sources };
|
|
34256
34256
|
}, "searchServer");
|
|
34257
34257
|
|
|
34258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34259
34259
|
var DELETE_AT_ONCE = 10;
|
|
34260
34260
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34261
34261
|
const files = fileLinks(attachments);
|
|
@@ -34696,7 +34696,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
34696
34696
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
34697
34697
|
}, "checkMediaOptions");
|
|
34698
34698
|
|
|
34699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
34700
34700
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
34701
34701
|
var RULES = {
|
|
34702
34702
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -34711,7 +34711,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
34711
34711
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
34712
34712
|
}), "classifyChannel");
|
|
34713
34713
|
|
|
34714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
34715
34715
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
34716
34716
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
34717
34717
|
const store = await deps.store();
|
|
@@ -34797,7 +34797,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
34797
34797
|
};
|
|
34798
34798
|
}, "metadataService");
|
|
34799
34799
|
|
|
34800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
34801
34801
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
34802
34802
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
34803
34803
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -34834,7 +34834,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
34834
34834
|
return { chatId, rows, notes };
|
|
34835
34835
|
}, "moderateWith");
|
|
34836
34836
|
|
|
34837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
34838
34838
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
34839
34839
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
34840
34840
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -34912,7 +34912,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
34912
34912
|
}, "removePerson")
|
|
34913
34913
|
}), "moderatorOf");
|
|
34914
34914
|
|
|
34915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
34916
34916
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
34917
34917
|
id: note.id,
|
|
34918
34918
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -34956,7 +34956,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
34956
34956
|
};
|
|
34957
34957
|
}, "privatePeopleService");
|
|
34958
34958
|
|
|
34959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
34960
34960
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
34961
34961
|
total: 0,
|
|
34962
34962
|
population: 0,
|
|
@@ -35212,7 +35212,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35212
35212
|
}, "evidence")
|
|
35213
35213
|
}), "rankingsService");
|
|
35214
35214
|
|
|
35215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
35216
35216
|
var FIELDS = ["date", "chat", "kind"];
|
|
35217
35217
|
var WAITING_TAIL = 100;
|
|
35218
35218
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35339,7 +35339,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35339
35339
|
};
|
|
35340
35340
|
}, "replyStatsService");
|
|
35341
35341
|
|
|
35342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
35343
35343
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35344
35344
|
id: one.id,
|
|
35345
35345
|
name: one.name,
|
|
@@ -35468,7 +35468,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35468
35468
|
};
|
|
35469
35469
|
}, "searchesService");
|
|
35470
35470
|
|
|
35471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
35472
35472
|
var TAGGING_QUERY = {
|
|
35473
35473
|
entity: "tagging",
|
|
35474
35474
|
backend: "sql",
|
|
@@ -35552,7 +35552,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35552
35552
|
};
|
|
35553
35553
|
}, "tagsService");
|
|
35554
35554
|
|
|
35555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
35556
35556
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
35557
35557
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
35558
35558
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -35751,7 +35751,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35751
35751
|
};
|
|
35752
35752
|
}, "topicsService");
|
|
35753
35753
|
|
|
35754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
35755
35755
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
35756
35756
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
35757
35757
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -35825,7 +35825,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
35825
35825
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
35826
35826
|
}, "prepareEvidencePacket");
|
|
35827
35827
|
|
|
35828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
35829
35829
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
35830
35830
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
35831
35831
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -35845,7 +35845,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
35845
35845
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
35846
35846
|
}, "readEvidencePacket");
|
|
35847
35847
|
|
|
35848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
35849
35849
|
var scopeKeys = [
|
|
35850
35850
|
"accountId",
|
|
35851
35851
|
"meetingId",
|
|
@@ -35867,7 +35867,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
35867
35867
|
"maxVocabularyReadBytes"
|
|
35868
35868
|
]);
|
|
35869
35869
|
|
|
35870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
35871
35871
|
var communicationFields = {
|
|
35872
35872
|
sources: pipe(array(strictObject({
|
|
35873
35873
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -35899,7 +35899,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
35899
35899
|
return { ...input, after, before: before2 };
|
|
35900
35900
|
}, "communicationRequest");
|
|
35901
35901
|
|
|
35902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
35903
35903
|
var MEETING_PREPARATION_LIMITS = {
|
|
35904
35904
|
meetings: { min: 1, max: 20, default: 5 },
|
|
35905
35905
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -35972,7 +35972,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
35972
35972
|
};
|
|
35973
35973
|
}, "validateMeetingPreparationRequest");
|
|
35974
35974
|
|
|
35975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
35976
35976
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
35977
35977
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
35978
35978
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -36020,7 +36020,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
36020
36020
|
}
|
|
36021
36021
|
}, "validatePreparationCommunications");
|
|
36022
36022
|
|
|
36023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
36024
36024
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
36025
36025
|
const installer = ports.installer();
|
|
36026
36026
|
const argv = updateCommand(installer, packageName);
|
|
@@ -36085,7 +36085,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
36085
36085
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
36086
36086
|
}, "dayAfter");
|
|
36087
36087
|
|
|
36088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
36089
36089
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
36090
36090
|
const pictures = picturesService(deps);
|
|
36091
36091
|
const base = {
|
|
@@ -36122,7 +36122,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
36122
36122
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
36123
36123
|
}, "servicesFor");
|
|
36124
36124
|
|
|
36125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
36126
36126
|
import { createHash as createHash12 } from "node:crypto";
|
|
36127
36127
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
36128
36128
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36343,7 +36343,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
36343
36343
|
}, () => finish({ error: stopped() }));
|
|
36344
36344
|
}), "relayCommand");
|
|
36345
36345
|
|
|
36346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
36347
36347
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36348
36348
|
close: /* @__PURE__ */ __name(async () => {
|
|
36349
36349
|
}, "close"),
|