@wirecat/tg-cli 0.121.0 → 0.122.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-GVSBFSBY.js → adapter-ZI57T2L5.js} +41 -41
- package/dist/bundle/{all-profiles-CTOGU4XR.js → all-profiles-7VXJF42C.js} +6 -6
- package/dist/bundle/{anthropic-7472H6ES.js → anthropic-DKRXIWVV.js} +2 -2
- package/dist/bundle/{app-server-GZWV4NPR.js → app-server-F5MKHZ7S.js} +37 -37
- package/dist/bundle/{bot-api-PPVAKICN.js → bot-api-F24NWJT3.js} +42 -42
- package/dist/bundle/{bot-history-7YY7MCR4.js → bot-history-U3WM3A7S.js} +12 -12
- package/dist/bundle/{bun-KCN62RMD.js → bun-OMTJAXGK.js} +2 -2
- package/dist/bundle/{bun-sqlite-2BNE56MY.js → bun-sqlite-HSYLO46A.js} +2 -2
- package/dist/bundle/{chunk-7MXRFFIT.js → chunk-27SVHRHV.js} +2 -2
- package/dist/bundle/{chunk-6SQAE7NM.js → chunk-2FXA32RJ.js} +6 -6
- package/dist/bundle/{chunk-KPAUPIC3.js → chunk-2UHANFLM.js} +2 -2
- package/dist/bundle/{chunk-24DWSW6H.js → chunk-33ELXJRR.js} +11 -10
- package/dist/bundle/{chunk-3EGVR7OF.js → chunk-4MFMUBHH.js} +95 -79
- package/dist/bundle/{chunk-SHIHW2YN.js → chunk-4N2WJYLE.js} +2 -2
- package/dist/bundle/{chunk-SQWTUENZ.js → chunk-6DLRATDC.js} +242 -239
- package/dist/bundle/{chunk-QQ264PXQ.js → chunk-6LMEIELG.js} +1 -1
- package/dist/bundle/{chunk-AYDLA27G.js → chunk-7FWU4RON.js} +3 -3
- package/dist/bundle/{chunk-KKD5ZPGD.js → chunk-7GCVON7M.js} +5 -5
- package/dist/bundle/{chunk-TEMCXODM.js → chunk-7X6YLKTK.js} +1 -1
- package/dist/bundle/{chunk-ESLV57MC.js → chunk-ALW7ROTM.js} +1 -1
- package/dist/bundle/{chunk-MAPJUOTD.js → chunk-ARKB3M5X.js} +3 -3
- package/dist/bundle/{chunk-GB55EDOF.js → chunk-C5CB6RIX.js} +1 -1
- package/dist/bundle/{chunk-S7P5X23R.js → chunk-CB6AHU6H.js} +27 -9
- package/dist/bundle/{chunk-YMJKHMHX.js → chunk-CW3C7FSO.js} +1 -1
- package/dist/bundle/{chunk-QNNUNGPL.js → chunk-D3ODL4P7.js} +2 -2
- package/dist/bundle/{chunk-T7ONSJAA.js → chunk-DCGGZUNJ.js} +2 -2
- package/dist/bundle/{chunk-3HNI6GI7.js → chunk-DDSAJKPO.js} +4 -4
- package/dist/bundle/{chunk-7UIMMQOV.js → chunk-DTTONQW7.js} +1 -1
- package/dist/bundle/{chunk-VPNLTNQD.js → chunk-E3MFMMVY.js} +5 -5
- package/dist/bundle/{chunk-W77WC6ZK.js → chunk-FHWUOFWX.js} +2 -2
- package/dist/bundle/{chunk-5P43K3GL.js → chunk-FYHFAOPM.js} +1505 -1014
- package/dist/bundle/{chunk-ZSW7LN7T.js → chunk-FZKHFTKH.js} +13 -13
- package/dist/bundle/{chunk-CPDYPZIG.js → chunk-GJBGZQHN.js} +177 -151
- package/dist/bundle/{chunk-3E35VJME.js → chunk-GJFICFQB.js} +1 -1
- package/dist/bundle/{chunk-YRY752BB.js → chunk-HAR76KJG.js} +4 -4
- package/dist/bundle/{chunk-CLMRF6XR.js → chunk-LQRZUNYF.js} +2 -2
- package/dist/bundle/{chunk-LTAHG7BO.js → chunk-MFWWZ6XL.js} +2 -2
- package/dist/bundle/{chunk-NR7PGYPO.js → chunk-N7WDVH2O.js} +28 -28
- package/dist/bundle/{chunk-KVW7LCZK.js → chunk-NE3EGYPD.js} +3 -3
- package/dist/bundle/{chunk-RPBO5XL3.js → chunk-NU4RMUMQ.js} +10 -10
- package/dist/bundle/{chunk-CMEWPXKU.js → chunk-O5A4IS2D.js} +1 -1
- package/dist/bundle/{chunk-M47CXY5J.js → chunk-PG3V225O.js} +21 -21
- package/dist/bundle/{chunk-DAK2J3FG.js → chunk-QROAXWDU.js} +7 -7
- package/dist/bundle/{chunk-4HJCWFPN.js → chunk-R2IW6JBV.js} +46 -46
- package/dist/bundle/{chunk-FERGNQYA.js → chunk-RFFU6KQ5.js} +12 -12
- package/dist/bundle/{chunk-M73VM67N.js → chunk-SODUFMDW.js} +727 -382
- package/dist/bundle/{chunk-4J34T6IQ.js → chunk-TKJZENAZ.js} +1 -1
- package/dist/bundle/{chunk-QMNUQTA2.js → chunk-UGEYQWEO.js} +1 -1
- package/dist/bundle/chunk-V4BPS7MH.js +185 -0
- package/dist/bundle/{chunk-6LRKWXCS.js → chunk-VC6J7X76.js} +10 -10
- package/dist/bundle/{chunk-MKAKM3V7.js → chunk-VDFEWSCS.js} +2 -2
- package/dist/bundle/{chunk-Y4CSR5RP.js → chunk-VQL4RVXZ.js} +1 -1
- package/dist/bundle/{chunk-R6KXHBMW.js → chunk-W34QQMBK.js} +1 -1
- package/dist/bundle/{chunk-54KFRAHF.js → chunk-Y52T5EMB.js} +1 -1
- package/dist/bundle/{chunk-VAAZL6OD.js → chunk-Y74WJL3M.js} +2 -2
- package/dist/bundle/{chunk-PLBEUSZP.js → chunk-YDMKP7PO.js} +1 -1
- package/dist/bundle/{chunk-RZX7RDXY.js → chunk-YFEH7OWG.js} +12 -12
- package/dist/bundle/{chunk-DG44ORQ3.js → chunk-ZKHXWSKD.js} +4 -4
- package/dist/bundle/{chunk-BJTJBNR7.js → chunk-ZNPRTCUO.js} +6 -6
- package/dist/bundle/{command-contract-3W73W27G.js → command-contract-247AKZTE.js} +12 -12
- package/dist/bundle/{command-server-entry-37PKBJ5A.js → command-server-entry-N32NX4QW.js} +67 -51
- package/dist/bundle/{decode-F7KC7WT4.js → decode-ZKJWSFXF.js} +2 -2
- package/dist/bundle/{echarts-4VYG66GX.js → echarts-QLVLIP73.js} +2 -2
- package/dist/bundle/{embed-ENZ6R4HF.js → embed-LC6K7P3S.js} +3 -3
- package/dist/bundle/{embedder-4CBICMFO.js → embedder-6C3OQBOV.js} +6 -6
- package/dist/bundle/{entry-XQ562EDO.js → entry-5H6LB3MP.js} +5 -5
- package/dist/bundle/{first-run-PPXOC6ID.js → first-run-IOYQ4XQK.js} +5 -5
- package/dist/bundle/{first-screen-JC6BYZYD.js → first-screen-NVK7PFX4.js} +13 -13
- package/dist/bundle/{instructions-XLCMJ5PJ.js → instructions-SZUMEDY3.js} +1 -1
- package/dist/bundle/{node-SSAC67R5.js → node-V76RRFIA.js} +2 -2
- package/dist/bundle/{node-sqlite-SUUUSYSZ.js → node-sqlite-2DTVOT7L.js} +3 -3
- package/dist/bundle/{oauth-2ZNHMPEX.js → oauth-CT7EBDRY.js} +4 -4
- package/dist/bundle/{open-EFNT7V2Q.js → open-G3VHOOMV.js} +2 -2
- package/dist/bundle/{openai-7STFVJXA.js → openai-F4K7MVTZ.js} +10 -10
- package/dist/bundle/{process-63F4PNWH.js → process-XH3KEHSF.js} +1 -1
- package/dist/bundle/{program-C2E3TQNK.js → program-FLGIHTHM.js} +44 -44
- package/dist/bundle/{prompt-QPO7EKD5.js → prompt-JWQ6UQ6R.js} +2 -2
- package/dist/bundle/{recognize-MLXEHFYL.js → recognize-Z26T3SYD.js} +1 -1
- package/dist/bundle/{remote-DO7FLJEF.js → remote-7KHT6V3O.js} +4 -4
- package/dist/bundle/{rerank-W3WSBDAM.js → rerank-6QVI74QY.js} +4 -4
- package/dist/bundle/{serve-Z3TOTEMQ.js → serve-WYDZTONY.js} +6 -6
- package/dist/bundle/server-UXQT7LZT.js +61 -0
- package/dist/bundle/{server-BYSOJCUA.js → server-Y4J2NCFA.js} +28 -28
- package/dist/bundle/{state-PKRPBCMY.js → state-YCXBKOD2.js} +3 -3
- package/dist/bundle/{store-Y4G7CNJT.js → store-QECSDJRP.js} +9 -9
- package/dist/bundle/store-maintenance-command-5YW6TRJA.js +49 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-GNGYV5NX.js +0 -116
- package/dist/bundle/server-IRUVLXD4.js +0 -61
- package/dist/bundle/store-maintenance-command-PHK43OSM.js +0 -49
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RFFU6KQ5.js";
|
|
12
12
|
import {
|
|
13
13
|
remoteKey
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-D3ODL4P7.js";
|
|
15
15
|
import {
|
|
16
16
|
isNewer,
|
|
17
17
|
updateCommand
|
|
@@ -89,13 +89,13 @@ import {
|
|
|
89
89
|
validateAst,
|
|
90
90
|
validateFields,
|
|
91
91
|
withoutField
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-FYHFAOPM.js";
|
|
93
93
|
import {
|
|
94
94
|
DEFAULT_STEMMERS,
|
|
95
95
|
createStemmer,
|
|
96
96
|
fold,
|
|
97
97
|
normalize
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-QROAXWDU.js";
|
|
99
99
|
import {
|
|
100
100
|
MAX_MODEL_IMAGE_BYTES,
|
|
101
101
|
checkedOptions,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
range,
|
|
104
104
|
systemFor,
|
|
105
105
|
validateImages
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-VDFEWSCS.js";
|
|
107
107
|
import {
|
|
108
108
|
Unzip,
|
|
109
109
|
UnzipInflate,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
placedText,
|
|
115
115
|
runEmbedders,
|
|
116
116
|
textModelsDirectory
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-7GCVON7M.js";
|
|
118
118
|
import {
|
|
119
119
|
CEILING_KEY,
|
|
120
120
|
Command,
|
|
@@ -164,13 +164,13 @@ import {
|
|
|
164
164
|
textModels,
|
|
165
165
|
vectorModelKey,
|
|
166
166
|
writeTextModelsSection
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-GJBGZQHN.js";
|
|
168
168
|
import {
|
|
169
169
|
MESSENGER_CHANGE_REFUSAL,
|
|
170
170
|
envName,
|
|
171
171
|
readOnlyLockOf,
|
|
172
172
|
readOnlyRefusal
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-GJFICFQB.js";
|
|
174
174
|
import {
|
|
175
175
|
EVENT_QUERY,
|
|
176
176
|
INTERNAL_NOTES,
|
|
@@ -252,26 +252,26 @@ import {
|
|
|
252
252
|
walkQuery,
|
|
253
253
|
withAttempt,
|
|
254
254
|
zonedMoment
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-4MFMUBHH.js";
|
|
256
256
|
import {
|
|
257
257
|
isCliFailure,
|
|
258
258
|
sqliteCode
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-27SVHRHV.js";
|
|
260
260
|
import {
|
|
261
261
|
DEFAULT_TASK_CATEGORIES,
|
|
262
262
|
FALLBACK_CATEGORY,
|
|
263
263
|
readSharedSection,
|
|
264
264
|
sharedConfigPath,
|
|
265
265
|
writeSharedSection
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-HAR76KJG.js";
|
|
267
267
|
import {
|
|
268
268
|
installFiles,
|
|
269
269
|
megabytes
|
|
270
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-7FWU4RON.js";
|
|
271
271
|
import {
|
|
272
272
|
storePath,
|
|
273
273
|
wirecatDirectory
|
|
274
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-Y52T5EMB.js";
|
|
275
275
|
import {
|
|
276
276
|
Credentials,
|
|
277
277
|
logRecordOf,
|
|
@@ -16933,7 +16933,7 @@ var require_lib3 = __commonJS({
|
|
|
16933
16933
|
}
|
|
16934
16934
|
});
|
|
16935
16935
|
|
|
16936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16937
16937
|
var RULES_VERSION = 5;
|
|
16938
16938
|
var LOOK_BACK = 50;
|
|
16939
16939
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17023,15 +17023,15 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17023
17023
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17024
17024
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17025
17025
|
|
|
17026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17027
17027
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17028
17028
|
|
|
17029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17030
17030
|
import { randomBytes } from "node:crypto";
|
|
17031
17031
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17032
17032
|
var newOperationId = newSendId;
|
|
17033
17033
|
|
|
17034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17035
17035
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17036
17036
|
import { open, stat } from "node:fs/promises";
|
|
17037
17037
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17252,10 +17252,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
17252
17252
|
return { name, source };
|
|
17253
17253
|
}, "readStickerFile");
|
|
17254
17254
|
|
|
17255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17256
17256
|
import { randomUUID } from "node:crypto";
|
|
17257
17257
|
|
|
17258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17259
17259
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17260
17260
|
import { dirname as dirname2, join } from "node:path";
|
|
17261
17261
|
var MOST_DEADLINES = 50;
|
|
@@ -17339,11 +17339,11 @@ var FloodMemory = class {
|
|
|
17339
17339
|
}
|
|
17340
17340
|
};
|
|
17341
17341
|
|
|
17342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17343
17343
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17344
17344
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17345
17345
|
|
|
17346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17347
17347
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17348
17348
|
import { dirname as dirname3 } from "node:path";
|
|
17349
17349
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17410,7 +17410,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17410
17410
|
}
|
|
17411
17411
|
}, "lockTime");
|
|
17412
17412
|
|
|
17413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17414
17414
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17415
17415
|
var SendJournal = class {
|
|
17416
17416
|
static {
|
|
@@ -17487,7 +17487,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17487
17487
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17488
17488
|
}, "withSendId");
|
|
17489
17489
|
|
|
17490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17491
17491
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17492
17492
|
import { join as join3 } from "node:path";
|
|
17493
17493
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17599,7 +17599,7 @@ var RecipientList = class {
|
|
|
17599
17599
|
}
|
|
17600
17600
|
};
|
|
17601
17601
|
|
|
17602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17603
17603
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17604
17604
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
17605
17605
|
"attachments.extract",
|
|
@@ -17792,7 +17792,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17792
17792
|
}), "guardFor");
|
|
17793
17793
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17794
17794
|
|
|
17795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17796
17796
|
var COMMAND_NEEDS = {
|
|
17797
17797
|
"account update": ["updateProfile", "change the profile"],
|
|
17798
17798
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17842,7 +17842,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17842
17842
|
return group;
|
|
17843
17843
|
}, "hideNever");
|
|
17844
17844
|
|
|
17845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17846
17846
|
var AUDIT_PAGE = 200;
|
|
17847
17847
|
var AUDIT_BUDGET = 10;
|
|
17848
17848
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17922,7 +17922,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17922
17922
|
return found;
|
|
17923
17923
|
}, "burstJoins");
|
|
17924
17924
|
|
|
17925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17926
17926
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17927
17927
|
command.allowUnknownOption();
|
|
17928
17928
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -17942,7 +17942,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17942
17942
|
return command;
|
|
17943
17943
|
}, "queryWordsAfterOptions");
|
|
17944
17944
|
|
|
17945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17946
17946
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17947
17947
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17948
17948
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17984,7 +17984,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17984
17984
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17985
17985
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17986
17986
|
|
|
17987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17988
17988
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17989
17989
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17990
17990
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -18007,7 +18007,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
18007
18007
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
18008
18008
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
18009
18009
|
|
|
18010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
18011
18011
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
18012
18012
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
18013
18013
|
const zone = timezoneOf();
|
|
@@ -18093,7 +18093,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
18093
18093
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
18094
18094
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
18095
18095
|
|
|
18096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
18097
18097
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
18098
18098
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
18099
18099
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -18237,7 +18237,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
18237
18237
|
}, "addMeetingCommandsDefinition");
|
|
18238
18238
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
18239
18239
|
|
|
18240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
18241
18241
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
18242
18242
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
18243
18243
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -18370,7 +18370,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
18370
18370
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
18371
18371
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
18372
18372
|
|
|
18373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
18374
18374
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
18375
18375
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
18376
18376
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -18379,7 +18379,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
18379
18379
|
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");
|
|
18380
18380
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
18381
18381
|
|
|
18382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
18383
18383
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
18384
18384
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
18385
18385
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18641,7 +18641,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18641
18641
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18642
18642
|
}), "sessionAnswer");
|
|
18643
18643
|
|
|
18644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18645
18645
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18646
18646
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18647
18647
|
if (key in own)
|
|
@@ -18658,7 +18658,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18658
18658
|
return found.bind(adapter);
|
|
18659
18659
|
}, "capability");
|
|
18660
18660
|
|
|
18661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18662
18662
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18663
18663
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18664
18664
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18720,7 +18720,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18720
18720
|
}), "storedDeps");
|
|
18721
18721
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18722
18722
|
|
|
18723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18724
18724
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18725
18725
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18726
18726
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18743,10 +18743,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18743
18743
|
}
|
|
18744
18744
|
}, "patiently");
|
|
18745
18745
|
|
|
18746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18747
18747
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18748
18748
|
|
|
18749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18750
18750
|
var REQUEST_MS = 400;
|
|
18751
18751
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18752
18752
|
const lowest = ranges[0];
|
|
@@ -18769,13 +18769,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18769
18769
|
};
|
|
18770
18770
|
}, "estimateBackfill");
|
|
18771
18771
|
|
|
18772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18773
18773
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18774
18774
|
...error,
|
|
18775
18775
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18776
18776
|
}), "withRecovery");
|
|
18777
18777
|
|
|
18778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18779
18779
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18780
18780
|
if (isCliFailure(error))
|
|
18781
18781
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18858,7 +18858,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18858
18858
|
};
|
|
18859
18859
|
}, "mergeBatches");
|
|
18860
18860
|
|
|
18861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18862
18862
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18863
18863
|
if (deps.reads !== "store")
|
|
18864
18864
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19017,7 +19017,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
19017
19017
|
}
|
|
19018
19018
|
}, "senderAmong");
|
|
19019
19019
|
|
|
19020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
19021
19021
|
var CONTEXT_MESSAGES = 3;
|
|
19022
19022
|
var CONTEXT_MINUTES = 10;
|
|
19023
19023
|
var MAX_CHARS = 1200;
|
|
@@ -19041,12 +19041,12 @@ var context = {
|
|
|
19041
19041
|
}, "describe")
|
|
19042
19042
|
};
|
|
19043
19043
|
|
|
19044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
19045
19045
|
var BUILT_INS = [context];
|
|
19046
19046
|
var providers = [...BUILT_INS];
|
|
19047
19047
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
19048
19048
|
|
|
19049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
19050
19050
|
var READ_PAGE = 5e3;
|
|
19051
19051
|
var CHAIN = 50;
|
|
19052
19052
|
var CONVERSATION_QUERY = {
|
|
@@ -19198,7 +19198,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19198
19198
|
return size2;
|
|
19199
19199
|
}, "sized");
|
|
19200
19200
|
|
|
19201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19202
19202
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19203
19203
|
var MESSAGE_PAGE = 5e3;
|
|
19204
19204
|
var PER_SESSION = 8;
|
|
@@ -19217,7 +19217,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19217
19217
|
price: remote.price,
|
|
19218
19218
|
installed: true,
|
|
19219
19219
|
perBatch: PER_REQUEST * concurrency,
|
|
19220
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19220
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-7KHT6V3O.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
19221
19221
|
};
|
|
19222
19222
|
}
|
|
19223
19223
|
const model = textModel(choice, deps.env);
|
|
@@ -19234,7 +19234,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19234
19234
|
if (!isTextModelInstalled(model, directory2))
|
|
19235
19235
|
throw notDownloaded(model.id);
|
|
19236
19236
|
if (apart) {
|
|
19237
|
-
const { openProcess } = await import("./process-
|
|
19237
|
+
const { openProcess } = await import("./process-XH3KEHSF.js");
|
|
19238
19238
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19239
19239
|
}
|
|
19240
19240
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19523,7 +19523,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19523
19523
|
return { ...one, state };
|
|
19524
19524
|
}, "shaped");
|
|
19525
19525
|
|
|
19526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19527
19527
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19528
19528
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19529
19529
|
for (const [key, value, maximum] of [
|
|
@@ -19576,7 +19576,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19576
19576
|
}
|
|
19577
19577
|
}, "catchUpSearch");
|
|
19578
19578
|
|
|
19579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19580
19580
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19581
19581
|
if (deps.reads === "store") {
|
|
19582
19582
|
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`);
|
|
@@ -19957,7 +19957,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19957
19957
|
return message?.timestamp ?? fallback;
|
|
19958
19958
|
}, "timeOfKey");
|
|
19959
19959
|
|
|
19960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19961
19961
|
var LINKS = /https?:\/\/\S+/g;
|
|
19962
19962
|
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");
|
|
19963
19963
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19987,7 +19987,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19987
19987
|
});
|
|
19988
19988
|
}, "questions");
|
|
19989
19989
|
|
|
19990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19991
19991
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19992
19992
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19993
19993
|
const name = typed.trim().toLowerCase();
|
|
@@ -20044,7 +20044,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
20044
20044
|
return best.name;
|
|
20045
20045
|
}, "categorize");
|
|
20046
20046
|
|
|
20047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
20048
20048
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
20049
20049
|
var RULES_IN = {
|
|
20050
20050
|
dialog: "all",
|
|
@@ -20250,11 +20250,11 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
20250
20250
|
return passes;
|
|
20251
20251
|
}, "applyTaskRulesToChats");
|
|
20252
20252
|
|
|
20253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
20254
20254
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
20255
20255
|
var encoder = new TextEncoder();
|
|
20256
20256
|
|
|
20257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
20258
20258
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
20259
20259
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
20260
20260
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -20294,7 +20294,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
20294
20294
|
};
|
|
20295
20295
|
}, "dateWindow");
|
|
20296
20296
|
|
|
20297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
20298
20298
|
var DAY_MS = 864e5;
|
|
20299
20299
|
var NEW_DAYS = 30;
|
|
20300
20300
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20371,7 +20371,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20371
20371
|
};
|
|
20372
20372
|
}, "scorePerson");
|
|
20373
20373
|
|
|
20374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20375
20375
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20376
20376
|
const controller = new AbortController();
|
|
20377
20377
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20387,7 +20387,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
20387
20387
|
}
|
|
20388
20388
|
}, "withTimeLimit");
|
|
20389
20389
|
|
|
20390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20391
20391
|
var REGISTRIES = {
|
|
20392
20392
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20393
20393
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20474,7 +20474,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20474
20474
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20475
20475
|
})), "notCovered");
|
|
20476
20476
|
|
|
20477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20478
20478
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20479
20479
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20480
20480
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20562,7 +20562,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20562
20562
|
};
|
|
20563
20563
|
}, "botCheckService");
|
|
20564
20564
|
|
|
20565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20566
20566
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20567
20567
|
if (value === void 0)
|
|
20568
20568
|
return void 0;
|
|
@@ -20572,7 +20572,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20572
20572
|
return id2;
|
|
20573
20573
|
}, "threadIdOf");
|
|
20574
20574
|
|
|
20575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20576
20576
|
var TOP_POSTS = 5;
|
|
20577
20577
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20578
20578
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20689,7 +20689,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20689
20689
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20690
20690
|
}, "median");
|
|
20691
20691
|
|
|
20692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20693
20693
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20694
20694
|
const events = [];
|
|
20695
20695
|
for (const stay of stays) {
|
|
@@ -20721,7 +20721,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20721
20721
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20722
20722
|
}, "memberEvents");
|
|
20723
20723
|
|
|
20724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20725
20725
|
var EVENTS_DAYS = 7;
|
|
20726
20726
|
var TRACKED_DAYS = 30;
|
|
20727
20727
|
var STATS_PAGE = 1e3;
|
|
@@ -21016,7 +21016,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
21016
21016
|
return members.length === 0 ? null : members;
|
|
21017
21017
|
}, "storedMembers");
|
|
21018
21018
|
|
|
21019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
21020
21020
|
var INBOX_CHATS = 20;
|
|
21021
21021
|
var REVIEW_DAYS = 3;
|
|
21022
21022
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21224,7 +21224,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21224
21224
|
};
|
|
21225
21225
|
}, "inboxService");
|
|
21226
21226
|
|
|
21227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
21228
21228
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
21229
21229
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
21230
21230
|
const { text: text2, spans } = formatted2;
|
|
@@ -21284,7 +21284,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
21284
21284
|
};
|
|
21285
21285
|
}, "visibleFormattedText");
|
|
21286
21286
|
|
|
21287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
21288
21288
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
21289
21289
|
var LINK2 = /https?:\/\/\S+/i;
|
|
21290
21290
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -21472,7 +21472,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
21472
21472
|
}, "nextPoint");
|
|
21473
21473
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
21474
21474
|
|
|
21475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
21476
21476
|
import { existsSync as existsSync2, readFileSync as readFileSync4 } from "node:fs";
|
|
21477
21477
|
import { join as join4 } from "node:path";
|
|
21478
21478
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -21615,7 +21615,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
21615
21615
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
21616
21616
|
}, "assign");
|
|
21617
21617
|
|
|
21618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
21619
21619
|
var CONTEXT_MESSAGES2 = 10;
|
|
21620
21620
|
var CONTEXT_BYTES = 64 * 1024;
|
|
21621
21621
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21914,10 +21914,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21914
21914
|
};
|
|
21915
21915
|
}, "personMessages");
|
|
21916
21916
|
|
|
21917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21918
21918
|
import { createHash } from "node:crypto";
|
|
21919
21919
|
|
|
21920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21921
21921
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21922
21922
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
21923
21923
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21935,7 +21935,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21935
21935
|
return { parsed, meeting };
|
|
21936
21936
|
}, "authorizedMeetingMetadata");
|
|
21937
21937
|
|
|
21938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21939
21939
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21940
21940
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21941
21941
|
if (signal?.aborted)
|
|
@@ -22134,7 +22134,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
22134
22134
|
return { ...packet, fingerprint: hash(packet) };
|
|
22135
22135
|
}, "readMeetingEvidence");
|
|
22136
22136
|
|
|
22137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
22138
22138
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
22139
22139
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
22140
22140
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22233,7 +22233,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22233
22233
|
};
|
|
22234
22234
|
}, "personMeetingContext");
|
|
22235
22235
|
|
|
22236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
22237
22237
|
var PREPARE_BYTES = 96 * 1024;
|
|
22238
22238
|
var MEETINGS = 5;
|
|
22239
22239
|
var CUES = 3;
|
|
@@ -22356,7 +22356,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22356
22356
|
}
|
|
22357
22357
|
}, "meetingsOf");
|
|
22358
22358
|
|
|
22359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
22360
22360
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22361
22361
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22362
22362
|
const held = await storeIfOpen(deps);
|
|
@@ -22426,7 +22426,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
22426
22426
|
complete: false
|
|
22427
22427
|
})), "quiet");
|
|
22428
22428
|
|
|
22429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
22430
22430
|
var TIMELINE_ITEMS = 50;
|
|
22431
22431
|
var TIMELINE_MAX = 500;
|
|
22432
22432
|
var SCOPES = ["personal", "work"];
|
|
@@ -22488,7 +22488,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22488
22488
|
};
|
|
22489
22489
|
}, "personTimeline");
|
|
22490
22490
|
|
|
22491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
22492
22492
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
22493
22493
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
22494
22494
|
const held = await storeIfOpen(deps);
|
|
@@ -22742,7 +22742,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
22742
22742
|
return rest;
|
|
22743
22743
|
}, "withoutPhone");
|
|
22744
22744
|
|
|
22745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
22746
22746
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
22747
22747
|
var PERIOD_FIELD = "created";
|
|
22748
22748
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -22845,7 +22845,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
22845
22845
|
}));
|
|
22846
22846
|
}, "meetingNames");
|
|
22847
22847
|
|
|
22848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
22849
22849
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
22850
22850
|
const tags = /* @__PURE__ */ new Map();
|
|
22851
22851
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -22854,7 +22854,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
22854
22854
|
return tags;
|
|
22855
22855
|
}, "taskTagFilters");
|
|
22856
22856
|
|
|
22857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
22858
22858
|
var TASK_QUERY = {
|
|
22859
22859
|
entity: "task",
|
|
22860
22860
|
backend: "sql",
|
|
@@ -23346,7 +23346,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
23346
23346
|
};
|
|
23347
23347
|
}, "taskView");
|
|
23348
23348
|
|
|
23349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23350
23350
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23351
23351
|
if (newest === null)
|
|
23352
23352
|
return null;
|
|
@@ -23355,7 +23355,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23355
23355
|
return newest.addressed ? "owed" : null;
|
|
23356
23356
|
}, "mailTurn");
|
|
23357
23357
|
|
|
23358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23359
23359
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23360
23360
|
if (error instanceof CliError && error.code === "not_found")
|
|
23361
23361
|
return void 0;
|
|
@@ -23413,7 +23413,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23413
23413
|
};
|
|
23414
23414
|
}, "mailActivity");
|
|
23415
23415
|
|
|
23416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23417
23417
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23418
23418
|
const ids = [...new Set(chatIds)];
|
|
23419
23419
|
if (ids.length === 0)
|
|
@@ -23439,7 +23439,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23439
23439
|
}));
|
|
23440
23440
|
}, "chatCoverage");
|
|
23441
23441
|
|
|
23442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23443
23443
|
var DAY = 864e5;
|
|
23444
23444
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23445
23445
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23686,7 +23686,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23686
23686
|
};
|
|
23687
23687
|
}, "agendaItem");
|
|
23688
23688
|
|
|
23689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
23690
23690
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
23691
23691
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
23692
23692
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -23750,7 +23750,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
23750
23750
|
}
|
|
23751
23751
|
}, "validateContextEvidencePage");
|
|
23752
23752
|
|
|
23753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
23754
23754
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
23755
23755
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
23756
23756
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -23803,7 +23803,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
23803
23803
|
};
|
|
23804
23804
|
}, "contextReadBudget");
|
|
23805
23805
|
|
|
23806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
23807
23807
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
23808
23808
|
if (!port || typeof port.read !== "function")
|
|
23809
23809
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -23847,7 +23847,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
23847
23847
|
};
|
|
23848
23848
|
}, "createContextEvidenceReader");
|
|
23849
23849
|
|
|
23850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23851
23851
|
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");
|
|
23852
23852
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
23853
23853
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23863,7 +23863,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
|
|
|
23863
23863
|
}, "excerpt");
|
|
23864
23864
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23865
23865
|
|
|
23866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
23867
23867
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
23868
23868
|
var DEFAULT_PURPOSES = ["work"];
|
|
23869
23869
|
var LINK_PURPOSE = "work";
|
|
@@ -23893,7 +23893,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
23893
23893
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
23894
23894
|
], "purposeList");
|
|
23895
23895
|
|
|
23896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
23897
23897
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
23898
23898
|
async around(ref, window3) {
|
|
23899
23899
|
const at = parseLocator(ref);
|
|
@@ -23988,7 +23988,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23988
23988
|
};
|
|
23989
23989
|
}, "storedNeighbours");
|
|
23990
23990
|
|
|
23991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
23992
23992
|
import { createHash as createHash2 } from "node:crypto";
|
|
23993
23993
|
var DAY2 = 864e5;
|
|
23994
23994
|
var MAX_TIME = 864e13;
|
|
@@ -24304,7 +24304,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24304
24304
|
return value;
|
|
24305
24305
|
}, "decodeCheckpoint");
|
|
24306
24306
|
|
|
24307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24308
24308
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24309
24309
|
var PAGE3 = 20;
|
|
24310
24310
|
var PEOPLE = 20;
|
|
@@ -24708,7 +24708,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
24708
24708
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
24709
24709
|
}, "peopleOf");
|
|
24710
24710
|
|
|
24711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
24712
24712
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
24713
24713
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
24714
24714
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -24752,7 +24752,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
24752
24752
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
24753
24753
|
}, "matchVocabularyTerms");
|
|
24754
24754
|
|
|
24755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
24756
24756
|
var KINDS = ["project", "tag", "topic"];
|
|
24757
24757
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
24758
24758
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -24807,7 +24807,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
24807
24807
|
};
|
|
24808
24808
|
}, "findEvidenceMentions");
|
|
24809
24809
|
|
|
24810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
24811
24811
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
24812
24812
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
24813
24813
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25113,18 +25113,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25113
25113
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25114
25114
|
}, "purposeHintOf");
|
|
25115
25115
|
|
|
25116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25117
25117
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25118
25118
|
|
|
25119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25120
25120
|
import { lstat } from "node:fs/promises";
|
|
25121
25121
|
|
|
25122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25123
25123
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25124
25124
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25125
25125
|
import { join as join6 } from "node:path";
|
|
25126
25126
|
|
|
25127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25128
25128
|
import { createHash as createHash3 } from "node:crypto";
|
|
25129
25129
|
var metadataLimit = 16384;
|
|
25130
25130
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25184,7 +25184,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25184
25184
|
}
|
|
25185
25185
|
}, "readPartialMetadata");
|
|
25186
25186
|
|
|
25187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25188
25188
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25189
25189
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25190
25190
|
import { join as join5 } from "node:path";
|
|
@@ -25276,7 +25276,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25276
25276
|
};
|
|
25277
25277
|
}, "partialWriter");
|
|
25278
25278
|
|
|
25279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25280
25280
|
var NativeRecordingPartialStore = class {
|
|
25281
25281
|
static {
|
|
25282
25282
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25383,12 +25383,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25383
25383
|
}
|
|
25384
25384
|
};
|
|
25385
25385
|
|
|
25386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25387
25387
|
import { createHash as createHash5 } from "node:crypto";
|
|
25388
25388
|
import { link as link2 } from "node:fs/promises";
|
|
25389
25389
|
import { basename as basename2, dirname as dirname5, join as join8, resolve as resolve2 } from "node:path";
|
|
25390
25390
|
|
|
25391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25392
25392
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25393
25393
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25394
25394
|
signal?.throwIfAborted();
|
|
@@ -25423,7 +25423,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25423
25423
|
signal?.throwIfAborted();
|
|
25424
25424
|
}, "commitPublication");
|
|
25425
25425
|
|
|
25426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25427
25427
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
25428
25428
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25429
25429
|
import { join as join7 } from "node:path";
|
|
@@ -25496,7 +25496,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25496
25496
|
}
|
|
25497
25497
|
}, "writePublicationJournal");
|
|
25498
25498
|
|
|
25499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25500
25500
|
var NativeRecordingPublication = class {
|
|
25501
25501
|
static {
|
|
25502
25502
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25569,7 +25569,7 @@ var NativeRecordingPublication = class {
|
|
|
25569
25569
|
}
|
|
25570
25570
|
};
|
|
25571
25571
|
|
|
25572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25573
25573
|
import { createHash as createHash6 } from "node:crypto";
|
|
25574
25574
|
import { readdir } from "node:fs/promises";
|
|
25575
25575
|
import { isAbsolute as isAbsolute2, join as join9, resolve as resolve3 } from "node:path";
|
|
@@ -25656,7 +25656,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
25656
25656
|
beforePublish
|
|
25657
25657
|
}), "commitMediaEntry");
|
|
25658
25658
|
|
|
25659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25660
25660
|
var validator = '"media-completed-v1"';
|
|
25661
25661
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
25662
25662
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -25757,7 +25757,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
25757
25757
|
return entry;
|
|
25758
25758
|
}, "archiveMediaFile");
|
|
25759
25759
|
|
|
25760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
25761
25761
|
import { mkdir, realpath } from "node:fs/promises";
|
|
25762
25762
|
import { join as join10, resolve as resolve4 } from "node:path";
|
|
25763
25763
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -25824,7 +25824,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
25824
25824
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
25825
25825
|
}, "withMediaArchiveLocks");
|
|
25826
25826
|
|
|
25827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25828
25828
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
25829
25829
|
if (value === void 0)
|
|
25830
25830
|
return void 0;
|
|
@@ -25977,7 +25977,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
25977
25977
|
}, { create: true });
|
|
25978
25978
|
}, "archiveMedia");
|
|
25979
25979
|
|
|
25980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
25981
25981
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
25982
25982
|
import { basename as basename3, dirname as dirname6, join as join11, resolve as resolve5 } from "node:path";
|
|
25983
25983
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26130,7 +26130,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26130
26130
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26131
26131
|
}, "moveMediaArchive");
|
|
26132
26132
|
|
|
26133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26134
26134
|
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
26135
26135
|
import { join as join12 } from "node:path";
|
|
26136
26136
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -26155,7 +26155,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26155
26155
|
`);
|
|
26156
26156
|
await nativeRuntime({ env, progress });
|
|
26157
26157
|
progress(`${model.id}: loading it once to check it works`);
|
|
26158
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26158
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-LC6K7P3S.js");
|
|
26159
26159
|
const embedder = await openEmbedder2(model, directory2);
|
|
26160
26160
|
try {
|
|
26161
26161
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26176,7 +26176,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26176
26176
|
}
|
|
26177
26177
|
await nativeRuntime({ env, progress });
|
|
26178
26178
|
progress(`${model.id}: loading it once to check it works`);
|
|
26179
|
-
const { openReranker } = await import("./rerank-
|
|
26179
|
+
const { openReranker } = await import("./rerank-6QVI74QY.js");
|
|
26180
26180
|
const reranker = await openReranker(model, directory2);
|
|
26181
26181
|
try {
|
|
26182
26182
|
await reranker.score("check", ["check"]);
|
|
@@ -26194,7 +26194,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26194
26194
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26195
26195
|
}
|
|
26196
26196
|
progress(`${model.id}: loading it once to check it works`);
|
|
26197
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26197
|
+
const { openPictureEmbedder } = await import("./embedder-6C3OQBOV.js");
|
|
26198
26198
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26199
26199
|
try {
|
|
26200
26200
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26206,7 +26206,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26206
26206
|
return { model, directory: directory2 };
|
|
26207
26207
|
}, "downloadImageModel");
|
|
26208
26208
|
|
|
26209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26210
26210
|
var MONEY_REQUEST = "money-request";
|
|
26211
26211
|
var MONEY_DONE = "money-done";
|
|
26212
26212
|
var PROMISE = "promise";
|
|
@@ -26240,10 +26240,10 @@ var MONEY_WORDS = [
|
|
|
26240
26240
|
}
|
|
26241
26241
|
];
|
|
26242
26242
|
|
|
26243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26244
26244
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26245
26245
|
|
|
26246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26247
26247
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26248
26248
|
var MONEY_DONE_FORMS = words([
|
|
26249
26249
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26283,7 +26283,7 @@ var PROMISE_FORMS = words([
|
|
|
26283
26283
|
"estar\xE1 listo"
|
|
26284
26284
|
]);
|
|
26285
26285
|
|
|
26286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26287
26287
|
var EXCERPT_CHARS = 80;
|
|
26288
26288
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26289
26289
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26305,7 +26305,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26305
26305
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26306
26306
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26307
26307
|
|
|
26308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26309
26309
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26310
26310
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26311
26311
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26386,7 +26386,7 @@ var amounts = {
|
|
|
26386
26386
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26387
26387
|
};
|
|
26388
26388
|
|
|
26389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26390
26390
|
var children = {
|
|
26391
26391
|
id: "children",
|
|
26392
26392
|
version: 1,
|
|
@@ -26415,7 +26415,7 @@ var children = {
|
|
|
26415
26415
|
}, "read")
|
|
26416
26416
|
};
|
|
26417
26417
|
|
|
26418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26419
26419
|
var coverage = {
|
|
26420
26420
|
id: "coverage",
|
|
26421
26421
|
version: 1,
|
|
@@ -26444,7 +26444,7 @@ var coverage = {
|
|
|
26444
26444
|
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")
|
|
26445
26445
|
};
|
|
26446
26446
|
|
|
26447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26448
26448
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26449
26449
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26450
26450
|
signal: "payments",
|
|
@@ -26494,7 +26494,7 @@ var payments = {
|
|
|
26494
26494
|
}, "read")
|
|
26495
26495
|
};
|
|
26496
26496
|
|
|
26497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26498
26498
|
var PATTERNS_PER_CHAT = 3;
|
|
26499
26499
|
var DAY3 = 864e5;
|
|
26500
26500
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26583,7 +26583,7 @@ var promises = {
|
|
|
26583
26583
|
}, "read")
|
|
26584
26584
|
};
|
|
26585
26585
|
|
|
26586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26587
26587
|
var PER_SIDE = 5;
|
|
26588
26588
|
var WEEK = 7 * 864e5;
|
|
26589
26589
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26614,7 +26614,7 @@ var questions2 = {
|
|
|
26614
26614
|
}, "attention")
|
|
26615
26615
|
};
|
|
26616
26616
|
|
|
26617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26618
26618
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26619
26619
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
26620
26620
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -26682,7 +26682,7 @@ var replyNext = {
|
|
|
26682
26682
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
26683
26683
|
};
|
|
26684
26684
|
|
|
26685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
26686
26686
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
26687
26687
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
26688
26688
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -26728,7 +26728,7 @@ var topics = {
|
|
|
26728
26728
|
}, "read")
|
|
26729
26729
|
};
|
|
26730
26730
|
|
|
26731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
26732
26732
|
var STATUS_SIGNALS = [
|
|
26733
26733
|
replyNext,
|
|
26734
26734
|
questions2,
|
|
@@ -26740,7 +26740,7 @@ var STATUS_SIGNALS = [
|
|
|
26740
26740
|
children
|
|
26741
26741
|
];
|
|
26742
26742
|
|
|
26743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
26744
26744
|
var DAY4 = 864e5;
|
|
26745
26745
|
var STATUS_WINDOW = 300;
|
|
26746
26746
|
var STATUS_CHATS = 16;
|
|
@@ -26929,7 +26929,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26929
26929
|
};
|
|
26930
26930
|
}, "projectStatus");
|
|
26931
26931
|
|
|
26932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
26933
26933
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
26934
26934
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
26935
26935
|
if (deps.offline)
|
|
@@ -27001,7 +27001,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27001
27001
|
};
|
|
27002
27002
|
}, "accountService");
|
|
27003
27003
|
|
|
27004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27005
27005
|
var MINUTE = 6e4;
|
|
27006
27006
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27007
27007
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27020,7 +27020,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27020
27020
|
return new Date(at - at % MINUTE).toISOString();
|
|
27021
27021
|
}, "sendTime");
|
|
27022
27022
|
|
|
27023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27024
27024
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
27025
27025
|
try {
|
|
27026
27026
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27267,7 +27267,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27267
27267
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27268
27268
|
}, "linkLimits");
|
|
27269
27269
|
|
|
27270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27271
27271
|
var THREADS_PAGE = 500;
|
|
27272
27272
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27273
27273
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27346,7 +27346,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27346
27346
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27347
27347
|
}, "readMail");
|
|
27348
27348
|
|
|
27349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
27350
27350
|
var ALL = "all";
|
|
27351
27351
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
27352
27352
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -27417,7 +27417,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
27417
27417
|
[ALL]: [ALL]
|
|
27418
27418
|
}), "groupEntries");
|
|
27419
27419
|
|
|
27420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27421
27421
|
var NO_MAIL = "no_mail";
|
|
27422
27422
|
var MAIL = "email";
|
|
27423
27423
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -27491,7 +27491,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27491
27491
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27492
27492
|
}, "accountsOfKind");
|
|
27493
27493
|
|
|
27494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27495
27495
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27496
27496
|
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");
|
|
27497
27497
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -27840,7 +27840,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
27840
27840
|
};
|
|
27841
27841
|
}, "statsLucene");
|
|
27842
27842
|
|
|
27843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
27844
27844
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
27845
27845
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
27846
27846
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28009,7 +28009,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28009
28009
|
};
|
|
28010
28010
|
}, "readRankingSelection");
|
|
28011
28011
|
|
|
28012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28013
28013
|
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");
|
|
28014
28014
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28015
28015
|
command,
|
|
@@ -28019,7 +28019,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28019
28019
|
fieldsVersion: FIELD_VERSION
|
|
28020
28020
|
}), "searchRecordOf");
|
|
28021
28021
|
|
|
28022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28023
28023
|
function invalid4(message) {
|
|
28024
28024
|
throw new CliError("validation_error", message);
|
|
28025
28025
|
}
|
|
@@ -28313,7 +28313,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28313
28313
|
}, "evidence")
|
|
28314
28314
|
}), "adminStatisticsService");
|
|
28315
28315
|
|
|
28316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28317
28317
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28318
28318
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28319
28319
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28450,12 +28450,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28450
28450
|
return { plan, repair };
|
|
28451
28451
|
}, "gapsService");
|
|
28452
28452
|
|
|
28453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28454
28454
|
import { createHash as createHash9 } from "node:crypto";
|
|
28455
28455
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28456
28456
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28457
28457
|
|
|
28458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28459
28459
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28460
28460
|
import { basename as basename4, join as join13, relative as relative2, sep as sep2 } from "node:path";
|
|
28461
28461
|
var MAX_FILES = 1e4;
|
|
@@ -28526,15 +28526,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28526
28526
|
return choices;
|
|
28527
28527
|
}, "directoryPaths");
|
|
28528
28528
|
|
|
28529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28530
28530
|
import { posix } from "node:path";
|
|
28531
28531
|
|
|
28532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28533
28533
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28534
28534
|
import { crc32 } from "node:zlib";
|
|
28535
28535
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28536
28536
|
|
|
28537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28538
28538
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28539
28539
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28540
28540
|
var SAMPLE = 65536;
|
|
@@ -28636,7 +28636,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28636
28636
|
return result.text;
|
|
28637
28637
|
}, "decodeXml");
|
|
28638
28638
|
|
|
28639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28640
28640
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28641
28641
|
var MAX_ENTRIES = 1e3;
|
|
28642
28642
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -28851,7 +28851,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
28851
28851
|
return found;
|
|
28852
28852
|
}, "elements");
|
|
28853
28853
|
|
|
28854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
28855
28855
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
28856
28856
|
let name = "";
|
|
28857
28857
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -28906,7 +28906,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
28906
28906
|
return { text: parts.join("").trim(), truncated: false };
|
|
28907
28907
|
}, "sheetText");
|
|
28908
28908
|
|
|
28909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28910
28910
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
28911
28911
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
28912
28912
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29306,10 +29306,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29306
29306
|
}
|
|
29307
29307
|
}, "readDocument");
|
|
29308
29308
|
|
|
29309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29310
29310
|
import { extname as extname3 } from "node:path";
|
|
29311
29311
|
|
|
29312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29313
29313
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
29314
29314
|
import { dirname as dirname7, extname as extname2, join as join14 } from "node:path";
|
|
29315
29315
|
import { fileURLToPath } from "node:url";
|
|
@@ -29370,7 +29370,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
29370
29370
|
}
|
|
29371
29371
|
}, "derived");
|
|
29372
29372
|
|
|
29373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29374
29374
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29375
29375
|
var image2 = {
|
|
29376
29376
|
id: "image",
|
|
@@ -29379,7 +29379,7 @@ var image2 = {
|
|
|
29379
29379
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29380
29380
|
};
|
|
29381
29381
|
|
|
29382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29383
29383
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29384
29384
|
var doc = {
|
|
29385
29385
|
id: "doc",
|
|
@@ -29391,7 +29391,7 @@ var doc = {
|
|
|
29391
29391
|
}), "read")
|
|
29392
29392
|
};
|
|
29393
29393
|
|
|
29394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29395
29395
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29396
29396
|
var docx = {
|
|
29397
29397
|
id: "docx",
|
|
@@ -29404,7 +29404,7 @@ var docx = {
|
|
|
29404
29404
|
}), "read")
|
|
29405
29405
|
};
|
|
29406
29406
|
|
|
29407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29408
29408
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29409
29409
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29410
29410
|
"fonttbl",
|
|
@@ -29580,7 +29580,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
29580
29580
|
}, "htmlText");
|
|
29581
29581
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
29582
29582
|
|
|
29583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29584
29584
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29585
29585
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29586
29586
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29636,7 +29636,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29636
29636
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29637
29637
|
}, "markdownSections");
|
|
29638
29638
|
|
|
29639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29640
29640
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29641
29641
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29642
29642
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -29707,7 +29707,7 @@ var html = {
|
|
|
29707
29707
|
}, "read")
|
|
29708
29708
|
};
|
|
29709
29709
|
|
|
29710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
29711
29711
|
var office = {
|
|
29712
29712
|
id: "office",
|
|
29713
29713
|
version: documentExtractor("odt"),
|
|
@@ -29718,7 +29718,7 @@ var office = {
|
|
|
29718
29718
|
}, "read")
|
|
29719
29719
|
};
|
|
29720
29720
|
|
|
29721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
29722
29722
|
var pdf = {
|
|
29723
29723
|
id: "pdf",
|
|
29724
29724
|
version: "unpdf",
|
|
@@ -29785,7 +29785,7 @@ var pdf = {
|
|
|
29785
29785
|
}), "read")
|
|
29786
29786
|
};
|
|
29787
29787
|
|
|
29788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
29789
29789
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
29790
29790
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
29791
29791
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -29805,7 +29805,7 @@ var plain = {
|
|
|
29805
29805
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
29806
29806
|
};
|
|
29807
29807
|
|
|
29808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
29809
29809
|
var rtf = {
|
|
29810
29810
|
id: "rtf",
|
|
29811
29811
|
version: "v1",
|
|
@@ -29813,10 +29813,10 @@ var rtf = {
|
|
|
29813
29813
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
29814
29814
|
};
|
|
29815
29815
|
|
|
29816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29817
29817
|
import { basename as basename5 } from "node:path";
|
|
29818
29818
|
|
|
29819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
29820
29820
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
29821
29821
|
const cells = [];
|
|
29822
29822
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -29854,7 +29854,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
29854
29854
|
return { cells, truncated };
|
|
29855
29855
|
}, "delimitedSpans");
|
|
29856
29856
|
|
|
29857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29858
29858
|
var DELIMITED = {
|
|
29859
29859
|
".csv": ",",
|
|
29860
29860
|
".tsv": " ",
|
|
@@ -29893,7 +29893,7 @@ var sheets = {
|
|
|
29893
29893
|
}, "read")
|
|
29894
29894
|
};
|
|
29895
29895
|
|
|
29896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
29897
29897
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
29898
29898
|
var HEAD_BYTES = 1024;
|
|
29899
29899
|
var readers = [...BUILT_INS2];
|
|
@@ -29903,7 +29903,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
29903
29903
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
29904
29904
|
}, "readWithRegistry");
|
|
29905
29905
|
|
|
29906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29907
29907
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
29908
29908
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
29909
29909
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -30982,7 +30982,7 @@ function imageSize(input) {
|
|
|
30982
30982
|
}
|
|
30983
30983
|
__name(imageSize, "imageSize");
|
|
30984
30984
|
|
|
30985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
30986
30986
|
var MAX_PAGES = 20;
|
|
30987
30987
|
var MAX_PIXELS = 2e7;
|
|
30988
30988
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31133,7 +31133,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31133
31133
|
}
|
|
31134
31134
|
}, "ocrPdf");
|
|
31135
31135
|
|
|
31136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31137
31137
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31138
31138
|
const limits = pdfPreviewLimits(env);
|
|
31139
31139
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -31210,7 +31210,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31210
31210
|
}
|
|
31211
31211
|
}, "pdfPreview");
|
|
31212
31212
|
|
|
31213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31214
31214
|
import { createHash as createHash8 } from "node:crypto";
|
|
31215
31215
|
import { constants } from "node:fs";
|
|
31216
31216
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31318,7 +31318,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31318
31318
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31319
31319
|
}, "transferMime");
|
|
31320
31320
|
|
|
31321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31322
31322
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
31323
31323
|
import { link as link3, rm } from "node:fs/promises";
|
|
31324
31324
|
import { join as join15, resolve as resolve6 } from "node:path";
|
|
@@ -31432,7 +31432,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
31432
31432
|
}
|
|
31433
31433
|
}, "save");
|
|
31434
31434
|
|
|
31435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31436
31436
|
var ATTACHMENT_QUERY = {
|
|
31437
31437
|
entity: "attachment",
|
|
31438
31438
|
backend: "sql",
|
|
@@ -31855,7 +31855,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31855
31855
|
}, "setText")
|
|
31856
31856
|
}), "attachmentsService");
|
|
31857
31857
|
|
|
31858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
31859
31859
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
31860
31860
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
31861
31861
|
const store = await accountStore(deps);
|
|
@@ -31885,7 +31885,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
31885
31885
|
}, "list")
|
|
31886
31886
|
}), "chatDocumentsService");
|
|
31887
31887
|
|
|
31888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
31889
31889
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
31890
31890
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
31891
31891
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -31972,7 +31972,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
31972
31972
|
}
|
|
31973
31973
|
}, "isRetentionSelection");
|
|
31974
31974
|
|
|
31975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
31976
31976
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
31977
31977
|
const fields = text2.split(",").map((one) => one.trim());
|
|
31978
31978
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -32179,7 +32179,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32179
32179
|
};
|
|
32180
32180
|
}, "countersService");
|
|
32181
32181
|
|
|
32182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32183
32183
|
var SYNC_KEY = "messages.sync-first";
|
|
32184
32184
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32185
32185
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32311,7 +32311,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32311
32311
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32312
32312
|
}), "withRefresh");
|
|
32313
32313
|
|
|
32314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32315
32315
|
var CANDIDATES = 50;
|
|
32316
32316
|
var WORD_HITS = 200;
|
|
32317
32317
|
var RRF_K = 60;
|
|
@@ -32586,13 +32586,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
32586
32586
|
return mean2.map((value) => value / length);
|
|
32587
32587
|
}, "meanOf");
|
|
32588
32588
|
|
|
32589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
32590
32590
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
32591
32591
|
...embeddingsMaintenance(deps),
|
|
32592
32592
|
...embeddingsSearch(deps)
|
|
32593
32593
|
}), "embeddingsService");
|
|
32594
32594
|
|
|
32595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
32596
32596
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
32597
32597
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
32598
32598
|
if (deps.offline)
|
|
@@ -32733,7 +32733,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32733
32733
|
};
|
|
32734
32734
|
}, "foldersService");
|
|
32735
32735
|
|
|
32736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
32737
32737
|
var REVIEW_COUNT = 500;
|
|
32738
32738
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
32739
32739
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -32812,7 +32812,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
32812
32812
|
};
|
|
32813
32813
|
}, "mentionsService");
|
|
32814
32814
|
|
|
32815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
32816
32816
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
32817
32817
|
position,
|
|
32818
32818
|
kind,
|
|
@@ -32861,7 +32861,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
32861
32861
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
32862
32862
|
}, "validatePermalink");
|
|
32863
32863
|
|
|
32864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
32865
32865
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
32866
32866
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
32867
32867
|
return `${seconds / 86400}d`;
|
|
@@ -32893,7 +32893,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
32893
32893
|
return seconds;
|
|
32894
32894
|
}, "pinDurationOf");
|
|
32895
32895
|
|
|
32896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
32897
32897
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
32898
32898
|
if (sendAs === void 0) {
|
|
32899
32899
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -32918,7 +32918,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
32918
32918
|
return sendAs;
|
|
32919
32919
|
}, "typedSendAs");
|
|
32920
32920
|
|
|
32921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
32922
32922
|
var TOTAL_CAP = 1e4;
|
|
32923
32923
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
32924
32924
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -32929,7 +32929,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
32929
32929
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
32930
32930
|
}, "totalOf");
|
|
32931
32931
|
|
|
32932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
32933
32933
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
32934
32934
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
32935
32935
|
let narrows = false;
|
|
@@ -32958,7 +32958,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
32958
32958
|
return wanted(root).join(" ").trim();
|
|
32959
32959
|
}, "meaningWords");
|
|
32960
32960
|
|
|
32961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
32962
32962
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
32963
32963
|
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"));
|
|
32964
32964
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33091,7 +33091,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33091
33091
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33092
33092
|
}, "questionLookup");
|
|
33093
33093
|
|
|
33094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33095
33095
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33096
33096
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33097
33097
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -33285,7 +33285,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33285
33285
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
33286
33286
|
}, "signals");
|
|
33287
33287
|
|
|
33288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33289
33289
|
var MEANING_DEPTH = 100;
|
|
33290
33290
|
var RRF_K2 = 60;
|
|
33291
33291
|
var RERANK_DEPTH = 50;
|
|
@@ -33611,7 +33611,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
33611
33611
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
33612
33612
|
}, "mixedWithReranker");
|
|
33613
33613
|
|
|
33614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
33615
33615
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
33616
33616
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
33617
33617
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -33810,7 +33810,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
33810
33810
|
return result;
|
|
33811
33811
|
}, "readThreadContext");
|
|
33812
33812
|
|
|
33813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
33814
33814
|
var SEARCH_FILL_MS = 200;
|
|
33815
33815
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
33816
33816
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -33879,7 +33879,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
33879
33879
|
}, "accountOf");
|
|
33880
33880
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
33881
33881
|
|
|
33882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
33883
33883
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
33884
33884
|
const chosen = chosenTextModel(env);
|
|
33885
33885
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -33894,12 +33894,12 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
33894
33894
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
33895
33895
|
}, "meaningModel");
|
|
33896
33896
|
|
|
33897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
33898
33898
|
import { createHash as createHash10 } from "node:crypto";
|
|
33899
33899
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
33900
33900
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
33901
33901
|
|
|
33902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
33903
33903
|
var GROUP_SETTINGS = [
|
|
33904
33904
|
"allCanPin",
|
|
33905
33905
|
"onlyAdminsAdd",
|
|
@@ -33913,7 +33913,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
33913
33913
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
33914
33914
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
33915
33915
|
|
|
33916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
33917
33917
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
33918
33918
|
var PICTURE_FLOOR = 0.25;
|
|
33919
33919
|
var PAGE5 = 50;
|
|
@@ -33930,7 +33930,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
33930
33930
|
const directory2 = imageModelsDirectory(deps.env);
|
|
33931
33931
|
if (!isImageModelInstalled(model2, directory2))
|
|
33932
33932
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
33933
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33933
|
+
const { openPictureEmbedder } = await import("./embedder-6C3OQBOV.js");
|
|
33934
33934
|
return openPictureEmbedder(model2, directory2);
|
|
33935
33935
|
}, "open");
|
|
33936
33936
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34127,7 +34127,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34127
34127
|
}, "search")
|
|
34128
34128
|
}), "withPictures");
|
|
34129
34129
|
|
|
34130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34131
34131
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34132
34132
|
try {
|
|
34133
34133
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34206,7 +34206,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34206
34206
|
}
|
|
34207
34207
|
}, "meaningLane");
|
|
34208
34208
|
|
|
34209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34210
34210
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34211
34211
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34212
34212
|
if (choice === "off")
|
|
@@ -34218,9 +34218,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34218
34218
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34219
34219
|
try {
|
|
34220
34220
|
const warm = deps.embedders;
|
|
34221
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34221
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-XH3KEHSF.js")).openRerankerProcess(model, directory2, {
|
|
34222
34222
|
threads: defaultThreads()
|
|
34223
|
-
})) : await (await import("./rerank-
|
|
34223
|
+
})) : await (await import("./rerank-6QVI74QY.js")).openReranker(model, directory2);
|
|
34224
34224
|
return {
|
|
34225
34225
|
model: model.id,
|
|
34226
34226
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34240,7 +34240,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34240
34240
|
};
|
|
34241
34241
|
}, "rerankLane");
|
|
34242
34242
|
|
|
34243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
34244
34244
|
var DAY5 = 864e5;
|
|
34245
34245
|
var SPAN = { start: 0, end: 0 };
|
|
34246
34246
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -34365,17 +34365,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
34365
34365
|
};
|
|
34366
34366
|
}, "questionPeriod");
|
|
34367
34367
|
|
|
34368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34369
34369
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34370
34370
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34371
34371
|
const directory2 = imageModelsDirectory(env);
|
|
34372
34372
|
if (!isImageModelInstalled(model, directory2))
|
|
34373
34373
|
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 });
|
|
34374
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34374
|
+
const { openPictureEmbedder } = await import("./embedder-6C3OQBOV.js");
|
|
34375
34375
|
return openPictureEmbedder(model, directory2);
|
|
34376
34376
|
}, "openPictureEmbedderFor");
|
|
34377
34377
|
|
|
34378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34379
34379
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
34380
34380
|
const metadata = note.frontMatter;
|
|
34381
34381
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -34390,7 +34390,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
34390
34390
|
};
|
|
34391
34391
|
}, "documentSource");
|
|
34392
34392
|
|
|
34393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
34394
34394
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
34395
34395
|
const host = new URL(baseUrl).host;
|
|
34396
34396
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -34423,7 +34423,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
34423
34423
|
};
|
|
34424
34424
|
}, "embeddingKeys");
|
|
34425
34425
|
|
|
34426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
34427
34427
|
var options = strictObject({
|
|
34428
34428
|
temperature: range(0, 2),
|
|
34429
34429
|
top_p: range(0, 1),
|
|
@@ -34477,7 +34477,7 @@ var openai = {
|
|
|
34477
34477
|
}), "complete")
|
|
34478
34478
|
};
|
|
34479
34479
|
|
|
34480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
34481
34481
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
34482
34482
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
34483
34483
|
if (deps.signal?.aborted)
|
|
@@ -34492,7 +34492,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34492
34492
|
if (!adapter && target2.provider === "openai")
|
|
34493
34493
|
adapter = openai;
|
|
34494
34494
|
if (!adapter && target2.provider === "anthropic")
|
|
34495
|
-
adapter = (await import("./anthropic-
|
|
34495
|
+
adapter = (await import("./anthropic-DKRXIWVV.js")).anthropic;
|
|
34496
34496
|
if (!adapter)
|
|
34497
34497
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
34498
34498
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -34510,6 +34510,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34510
34510
|
let limited = false;
|
|
34511
34511
|
let unreachable = false;
|
|
34512
34512
|
let refused = false;
|
|
34513
|
+
let status;
|
|
34513
34514
|
const cancellable = /* @__PURE__ */ __name(async (input, init) => {
|
|
34514
34515
|
const signal = init?.signal ?? (input instanceof Request ? input.signal : void 0);
|
|
34515
34516
|
let response;
|
|
@@ -34522,6 +34523,8 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34522
34523
|
unreachable = true;
|
|
34523
34524
|
throw error;
|
|
34524
34525
|
}
|
|
34526
|
+
if (!response.ok)
|
|
34527
|
+
status = response.status;
|
|
34525
34528
|
if (response.status === 429)
|
|
34526
34529
|
limited = true;
|
|
34527
34530
|
if (response.status === 401 || response.status === 403)
|
|
@@ -34539,12 +34542,12 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34539
34542
|
if (limited)
|
|
34540
34543
|
throw new CliError("rate_limited", `${request.purpose} provider rate limit reached; no result was stored`);
|
|
34541
34544
|
const reason = refused ? "model.key-rejected" : unreachable && !deps.signal?.aborted ? "model.unreachable" : void 0;
|
|
34542
|
-
throw new CliError("invalid_response", `${request.purpose} provider failed or returned an incomplete response; no result was stored`, reason === void 0 ? void 0 : { reason });
|
|
34545
|
+
throw new CliError("invalid_response", `${request.purpose} provider failed or returned an incomplete response; no result was stored`, reason === void 0 && status === void 0 ? void 0 : { ...reason === void 0 ? {} : { reason }, ...status === void 0 ? {} : { status } });
|
|
34543
34546
|
}
|
|
34544
34547
|
}, "complete")
|
|
34545
34548
|
}), "modelGateway");
|
|
34546
34549
|
|
|
34547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
34548
34551
|
var SECTION = "enrichment";
|
|
34549
34552
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
34550
34553
|
var DEFAULT_BASE_URLS = {
|
|
@@ -34619,7 +34622,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
34619
34622
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
34620
34623
|
}, "costOf");
|
|
34621
34624
|
|
|
34622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
34623
34626
|
var ENRICH_PER_RUN = 600;
|
|
34624
34627
|
var MAX_LINE = 400;
|
|
34625
34628
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -34695,7 +34698,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
34695
34698
|
};
|
|
34696
34699
|
}, "enrichmentState");
|
|
34697
34700
|
|
|
34698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34699
34702
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34700
34703
|
let root;
|
|
34701
34704
|
try {
|
|
@@ -34722,7 +34725,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
34722
34725
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34723
34726
|
}, "titleTiers");
|
|
34724
34727
|
|
|
34725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34726
34729
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34727
34730
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34728
34731
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35147,7 +35150,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35147
35150
|
};
|
|
35148
35151
|
}, "searchNotesOf");
|
|
35149
35152
|
|
|
35150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35151
35154
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35152
35155
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35153
35156
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35265,7 +35268,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35265
35268
|
};
|
|
35266
35269
|
}, "searchEvents");
|
|
35267
35270
|
|
|
35268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
35269
35272
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
35270
35273
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
35271
35274
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -35296,7 +35299,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
35296
35299
|
};
|
|
35297
35300
|
}, "searchBusiness");
|
|
35298
35301
|
|
|
35299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
35300
35303
|
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
35301
35304
|
const { project, tag, topic, ...input } = request;
|
|
35302
35305
|
input.signal?.throwIfAborted();
|
|
@@ -35334,7 +35337,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
35334
35337
|
return { input, selection };
|
|
35335
35338
|
}, "resolveMeetingSelection");
|
|
35336
35339
|
|
|
35337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35338
35341
|
var MOST_HITS_PER_MEETING = 3;
|
|
35339
35342
|
var PAGE_ROWS = 200;
|
|
35340
35343
|
var MOST_PAGES = 25;
|
|
@@ -35562,7 +35565,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
35562
35565
|
foundBy: ["title"]
|
|
35563
35566
|
}), "titleItem");
|
|
35564
35567
|
|
|
35565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
35566
35569
|
var SECTION2 = "search_harder";
|
|
35567
35570
|
var HARDER_MODELS = {
|
|
35568
35571
|
anthropic: "claude-haiku-5-5",
|
|
@@ -35782,7 +35785,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
35782
35785
|
};
|
|
35783
35786
|
}, "reorderHarder");
|
|
35784
35787
|
|
|
35785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35786
35789
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
35787
35790
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
35788
35791
|
const { reason, span } = error.details ?? {};
|
|
@@ -36156,7 +36159,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36156
36159
|
return ordered.map((item2, rank) => ({ item: item2, score: 1 - rank / PERIOD_DEPTH + (inside2(item2) ? PERIOD_BOOST : 0) })).sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
36157
36160
|
}, "insidePeriodFirst");
|
|
36158
36161
|
|
|
36159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36160
36163
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36161
36164
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36162
36165
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36345,7 +36348,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36345
36348
|
return { report, sources };
|
|
36346
36349
|
}, "searchServer");
|
|
36347
36350
|
|
|
36348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36349
36352
|
var DELETE_AT_ONCE = 10;
|
|
36350
36353
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36351
36354
|
const files = fileLinks(attachments);
|
|
@@ -36785,7 +36788,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36785
36788
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36786
36789
|
}, "checkMediaOptions");
|
|
36787
36790
|
|
|
36788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36789
36792
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36790
36793
|
var RULES2 = {
|
|
36791
36794
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36800,7 +36803,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
36800
36803
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36801
36804
|
}), "classifyChannel");
|
|
36802
36805
|
|
|
36803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36804
36807
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36805
36808
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36806
36809
|
const store = await deps.store();
|
|
@@ -36886,7 +36889,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36886
36889
|
};
|
|
36887
36890
|
}, "metadataService");
|
|
36888
36891
|
|
|
36889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
36890
36893
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
36891
36894
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
36892
36895
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -36923,7 +36926,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
36923
36926
|
return { chatId, rows, notes };
|
|
36924
36927
|
}, "moderateWith");
|
|
36925
36928
|
|
|
36926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
36927
36930
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
36928
36931
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
36929
36932
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37001,7 +37004,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37001
37004
|
}, "removePerson")
|
|
37002
37005
|
}), "moderatorOf");
|
|
37003
37006
|
|
|
37004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37005
37008
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37006
37009
|
id: note.id,
|
|
37007
37010
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37045,7 +37048,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37045
37048
|
};
|
|
37046
37049
|
}, "privatePeopleService");
|
|
37047
37050
|
|
|
37048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37049
37052
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37050
37053
|
total: 0,
|
|
37051
37054
|
population: 0,
|
|
@@ -37301,7 +37304,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37301
37304
|
}, "evidence")
|
|
37302
37305
|
}), "rankingsService");
|
|
37303
37306
|
|
|
37304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37305
37308
|
var FIELDS = ["date", "chat", "kind"];
|
|
37306
37309
|
var WAITING_TAIL = 100;
|
|
37307
37310
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37428,7 +37431,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37428
37431
|
};
|
|
37429
37432
|
}, "replyStatsService");
|
|
37430
37433
|
|
|
37431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37432
37435
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
37433
37436
|
id: one.id,
|
|
37434
37437
|
name: one.name,
|
|
@@ -37557,7 +37560,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37557
37560
|
};
|
|
37558
37561
|
}, "searchesService");
|
|
37559
37562
|
|
|
37560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37561
37564
|
var TAGGING_QUERY = {
|
|
37562
37565
|
entity: "tagging",
|
|
37563
37566
|
backend: "sql",
|
|
@@ -37641,7 +37644,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37641
37644
|
};
|
|
37642
37645
|
}, "tagsService");
|
|
37643
37646
|
|
|
37644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37645
37648
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37646
37649
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
37647
37650
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37840,10 +37843,10 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37840
37843
|
};
|
|
37841
37844
|
}, "topicsService");
|
|
37842
37845
|
|
|
37843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
37844
37847
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
37845
37848
|
|
|
37846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
37847
37850
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
37848
37851
|
var CRM_WRITE_DEFAULTS = {
|
|
37849
37852
|
"deals.delete": "ask",
|
|
@@ -37851,7 +37854,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
37851
37854
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
37852
37855
|
};
|
|
37853
37856
|
|
|
37854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
37855
37858
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
37856
37859
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37857
37860
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -37925,7 +37928,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
37925
37928
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
37926
37929
|
}, "prepareEvidencePacket");
|
|
37927
37930
|
|
|
37928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
37929
37932
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
37930
37933
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
37931
37934
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -37945,7 +37948,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
37945
37948
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
37946
37949
|
}, "readEvidencePacket");
|
|
37947
37950
|
|
|
37948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
37949
37952
|
var scopeKeys = [
|
|
37950
37953
|
"accountId",
|
|
37951
37954
|
"meetingId",
|
|
@@ -37967,7 +37970,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
37967
37970
|
"maxVocabularyReadBytes"
|
|
37968
37971
|
]);
|
|
37969
37972
|
|
|
37970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
37971
37974
|
import { createHash as createHash12 } from "node:crypto";
|
|
37972
37975
|
import { existsSync as existsSync3 } from "node:fs";
|
|
37973
37976
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -38098,7 +38101,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
38098
38101
|
return { ...checked2.output, custom: true };
|
|
38099
38102
|
}, "addCustomTextModel");
|
|
38100
38103
|
|
|
38101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38102
38105
|
var communicationFields = {
|
|
38103
38106
|
sources: pipe(array(strictObject({
|
|
38104
38107
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38130,7 +38133,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38130
38133
|
return { ...input, after, before: before2 };
|
|
38131
38134
|
}, "communicationRequest");
|
|
38132
38135
|
|
|
38133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38134
38137
|
var MEETING_PREPARATION_LIMITS = {
|
|
38135
38138
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38136
38139
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38203,7 +38206,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
38203
38206
|
};
|
|
38204
38207
|
}, "validateMeetingPreparationRequest");
|
|
38205
38208
|
|
|
38206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38207
38210
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
38208
38211
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
38209
38212
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -38251,7 +38254,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38251
38254
|
}
|
|
38252
38255
|
}, "validatePreparationCommunications");
|
|
38253
38256
|
|
|
38254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
38255
38258
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
38256
38259
|
const installer = ports.installer();
|
|
38257
38260
|
const argv = updateCommand(installer, packageName);
|
|
@@ -38316,7 +38319,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
38316
38319
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
38317
38320
|
}, "dayAfter");
|
|
38318
38321
|
|
|
38319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
38320
38323
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
38321
38324
|
const pictures = picturesService(deps);
|
|
38322
38325
|
const base = {
|
|
@@ -38353,7 +38356,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38353
38356
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
38354
38357
|
}, "servicesFor");
|
|
38355
38358
|
|
|
38356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
38357
38360
|
import { createHash as createHash13 } from "node:crypto";
|
|
38358
38361
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync2 } from "node:fs";
|
|
38359
38362
|
import { createConnection, createServer } from "node:net";
|
|
@@ -38574,7 +38577,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
38574
38577
|
}, () => finish({ error: stopped() }));
|
|
38575
38578
|
}), "relayCommand");
|
|
38576
38579
|
|
|
38577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
38578
38581
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
38579
38582
|
close: /* @__PURE__ */ __name(async () => {
|
|
38580
38583
|
}, "close"),
|