@wirecat/cli-memo 0.131.35 → 0.131.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-6666YYUZ.js → all-profiles-W26PFZ2J.js} +5 -5
- package/dist/bundle/{anthropic-23OB7KWO.js → anthropic-SY6QPTQW.js} +3 -3
- package/dist/bundle/{app-server-2S5OS3OH.js → app-server-WUXDTYU4.js} +35 -35
- package/dist/bundle/auto-U76QA2DW.js +86 -0
- package/dist/bundle/{bun-BNVO37ZD.js → bun-O3KE32D7.js} +2 -2
- package/dist/bundle/{bun-sqlite-USZ27VKM.js → bun-sqlite-5X2NBSLA.js} +2 -2
- package/dist/bundle/{chunk-EIYLAELT.js → chunk-2EDP7PDR.js} +259 -259
- package/dist/bundle/{chunk-ME5RGIHV.js → chunk-2IST54UV.js} +9 -9
- package/dist/bundle/{chunk-GLFFCRRX.js → chunk-2Q4DYGNU.js} +2 -2
- package/dist/bundle/{chunk-BU4LJSW2.js → chunk-32WLB6I3.js} +1 -1
- package/dist/bundle/{chunk-NYELWBUA.js → chunk-374FSLTB.js} +5 -5
- package/dist/bundle/{chunk-DYMUJFDK.js → chunk-3G63U4VK.js} +13 -9
- package/dist/bundle/{chunk-736NNFPY.js → chunk-43CMY3YD.js} +1 -1
- package/dist/bundle/{chunk-DMU5PAKY.js → chunk-4AXSD77N.js} +1 -1
- package/dist/bundle/{chunk-WIK6SGHZ.js → chunk-4CADISNA.js} +1 -1
- package/dist/bundle/{chunk-3ZZ5OCUO.js → chunk-4CD37FZU.js} +5 -5
- package/dist/bundle/{chunk-N2Y6FTPK.js → chunk-4NJQJZRO.js} +1 -1
- package/dist/bundle/{chunk-XLKJSFQN.js → chunk-4OF64T67.js} +1 -1
- package/dist/bundle/{chunk-6D47X4KD.js → chunk-5EBYGKZB.js} +1 -1
- package/dist/bundle/{chunk-FYT6A3UY.js → chunk-5J5RTJUJ.js} +1 -1
- package/dist/bundle/chunk-5ZKNRR6O.js +7592 -0
- package/dist/bundle/{chunk-V5N65VRU.js → chunk-75QQ7MLH.js} +8 -8
- package/dist/bundle/{chunk-4OR4HFSL.js → chunk-7P3PM3OL.js} +7 -7
- package/dist/bundle/{chunk-26PVWAKE.js → chunk-AJ4SVCBD.js} +269 -251
- package/dist/bundle/{chunk-SRHG24V7.js → chunk-AOFYLQK2.js} +2 -2
- package/dist/bundle/{chunk-OCIE3POS.js → chunk-B4LT2DHH.js} +4 -4
- package/dist/bundle/{chunk-XZPE2E3O.js → chunk-CEENCS5P.js} +6 -6
- package/dist/bundle/{chunk-GAWGZN4F.js → chunk-CEOXSWU3.js} +2 -2
- package/dist/bundle/{chunk-I55VXEI2.js → chunk-CVCL77DZ.js} +4 -4
- package/dist/bundle/{chunk-RUZOQ7QN.js → chunk-CXWKBOKQ.js} +3 -3
- package/dist/bundle/{chunk-L3SMTWCF.js → chunk-DHGQTARJ.js} +4 -4
- package/dist/bundle/{chunk-LQHW4G6G.js → chunk-DZA5OWKD.js} +5 -5
- package/dist/bundle/{chunk-URQ7ZL5K.js → chunk-F4BXYTIW.js} +7 -7
- package/dist/bundle/{chunk-VJSWU4JX.js → chunk-FOQBIEL5.js} +1 -1
- package/dist/bundle/{chunk-YGW3JZVB.js → chunk-GXCXOITM.js} +20 -20
- package/dist/bundle/{chunk-JIWQNA2J.js → chunk-J7FP7PRV.js} +160 -151
- package/dist/bundle/{chunk-GNLCVNP7.js → chunk-JT36R23P.js} +7 -7
- package/dist/bundle/{chunk-2PFOLWD3.js → chunk-K3GMQLFM.js} +2 -2
- package/dist/bundle/{chunk-ICBWD2OL.js → chunk-L2M3LTQQ.js} +1 -1
- package/dist/bundle/{chunk-VYYPW7YP.js → chunk-LV6FBPUQ.js} +11 -11
- package/dist/bundle/{chunk-6H6EXCZY.js → chunk-O762IE2F.js} +1 -1
- package/dist/bundle/{chunk-T3AUEF46.js → chunk-QM5CNTGT.js} +20 -20
- package/dist/bundle/{chunk-BHDNHN55.js → chunk-QMY4EZ6B.js} +5 -5
- package/dist/bundle/{chunk-2Y4UU4DB.js → chunk-QP7BTVMT.js} +2 -2
- package/dist/bundle/{chunk-DMUIMBCE.js → chunk-QTLYWZXB.js} +3 -3
- package/dist/bundle/{chunk-WRUD4OYQ.js → chunk-RBCI432I.js} +3 -3
- package/dist/bundle/{chunk-FXG3SUIQ.js → chunk-S2K3FWLA.js} +12 -12
- package/dist/bundle/{chunk-DCBBLYCI.js → chunk-S5KSC4B3.js} +27 -27
- package/dist/bundle/{chunk-LBDMVVVW.js → chunk-SDIKN2OR.js} +10 -10
- package/dist/bundle/{chunk-DQ66H456.js → chunk-SSQDA7X6.js} +4 -4
- package/dist/bundle/{chunk-L7AB7Y4Z.js → chunk-TJNW4L7P.js} +43 -43
- package/dist/bundle/{chunk-C2XCIZND.js → chunk-TJXVMLK4.js} +1 -1
- package/dist/bundle/{chunk-SKVRUW57.js → chunk-TXJYVD5U.js} +1 -1
- package/dist/bundle/{chunk-SKBMXSQ3.js → chunk-UOJWRYVD.js} +7 -1
- package/dist/bundle/{chunk-CLHGYKYZ.js → chunk-UUD4QHAN.js} +4 -4
- package/dist/bundle/{chunk-MMRM6ZMM.js → chunk-UWJ3RJF4.js} +2 -2
- package/dist/bundle/{chunk-VMXESPNG.js → chunk-VHYJIRK7.js} +4 -4
- package/dist/bundle/{chunk-PYQU4GLK.js → chunk-WRZP6DJT.js} +71 -57
- package/dist/bundle/{chunk-AYIUZUGD.js → chunk-WVXTZWH3.js} +1 -1
- package/dist/bundle/{chunk-IKDHJLSH.js → chunk-XCAGVFRC.js} +10404 -375
- package/dist/bundle/{chunk-2DTUMEN2.js → chunk-XLUOKHFN.js} +3 -3
- package/dist/bundle/{chunk-SMJAJWYW.js → chunk-ZMZVRVCK.js} +2 -2
- package/dist/bundle/{chunk-MNKCFCI7.js → chunk-ZP7F76D3.js} +1 -1
- package/dist/bundle/{command-contract-TBZCPYWZ.js → command-contract-FRRW2Z4S.js} +11 -11
- package/dist/bundle/{decode-RMAOEVTY.js → decode-RVPTVZ3W.js} +2 -2
- package/dist/bundle/{echarts-R2MI4OEU.js → echarts-CW6DTALT.js} +2 -2
- package/dist/bundle/{embed-BG2XPLWM.js → embed-VXWYSZ7X.js} +3 -3
- package/dist/bundle/{embedder-65SA34CZ.js → embedder-QX3GSPBN.js} +6 -6
- package/dist/bundle/{entry-DX3D4TWF.js → entry-LBDVYMDG.js} +4 -4
- package/dist/bundle/failure-NMC4BQ2P.js +66 -0
- package/dist/bundle/{first-run-ZUQRYWEZ.js → first-run-VPR5YFMD.js} +5 -5
- package/dist/bundle/{first-screen-O5X3OT77.js → first-screen-WRKQ4GAM.js} +12 -12
- package/dist/bundle/{instructions-ZDWGTLMU.js → instructions-2XLUHPQH.js} +1 -1
- package/dist/bundle/{mcp-B5CUHAKS.js → mcp-RD54TNKO.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-43BSSPFC.js → node-AQ7O3PGH.js} +2 -2
- package/dist/bundle/{node-sqlite-RPWFR6H3.js → node-sqlite-RKDBK624.js} +3 -3
- package/dist/bundle/{oauth-AYAADVSS.js → oauth-ZQCL2HPA.js} +4 -4
- package/dist/bundle/{open-XEZ5CPLR.js → open-ME6M3BWL.js} +2 -2
- package/dist/bundle/{openai-SQS7OBEI.js → openai-PHW5QKNC.js} +7 -7
- package/dist/bundle/{process-HJWMNCUC.js → process-4HJLMEHS.js} +1 -1
- package/dist/bundle/{program-RQO3ZNVL.js → program-GVEBIXZL.js} +111 -69
- package/dist/bundle/{prompt-STQZGLH7.js → prompt-U5JMQJPC.js} +2 -2
- package/dist/bundle/{recognize-HJ6G4OWB.js → recognize-OYKFXOLL.js} +1 -1
- package/dist/bundle/{remote-HDTQYFBP.js → remote-IXABNXVH.js} +4 -4
- package/dist/bundle/{rerank-GBKN7RN4.js → rerank-6ASLHI5I.js} +4 -4
- package/dist/bundle/{serve-KPTYHWUY.js → serve-ZYQO2Z23.js} +6 -6
- package/dist/bundle/server-BMXFJO2T.js +61 -0
- package/dist/bundle/{server-ASCI46TB.js → server-DMU7GDV2.js} +50 -50
- package/dist/bundle/server-V7JU6YLA.js +48 -0
- package/dist/bundle/{state-22MNHAQY.js → state-5W7BQVQO.js} +3 -3
- package/dist/bundle/{store-R7QBCWWM.js → store-6WW7XV2O.js} +9 -9
- package/dist/bundle/store-maintenance-command-YPNP663U.js +48 -0
- package/dist/bundle/update-GLX3YE67.js +69 -0
- package/dist/examples.js +1 -1
- package/dist/examples.js.map +1 -1
- package/dist/mail/findings-command.d.ts +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +58 -12
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/mail/review-command.d.ts.map +1 -1
- package/dist/mail/review-command.js +1 -0
- package/dist/mail/review-command.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/cli-memo/topics/mail.md +2 -1
- package/skills/mail-triage/SKILL.md +66 -24
- package/dist/bundle/auto-XDBIEURD.js +0 -86
- package/dist/bundle/chunk-CMMKWXFG.js +0 -17421
- package/dist/bundle/failure-76A5ZD6Y.js +0 -66
- package/dist/bundle/server-DJVWUOO7.js +0 -61
- package/dist/bundle/server-TEOK5SHM.js +0 -48
- package/dist/bundle/store-maintenance-command-BZXFY2NT.js +0 -48
- package/dist/bundle/update-I5HTAMBY.js +0 -69
- /package/dist/bundle/{chunk-QMNLI4NV.js → chunk-FEJOKQPV.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S2K3FWLA.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -51,17 +51,17 @@ import {
|
|
|
51
51
|
typedCommand,
|
|
52
52
|
vectorModelKey,
|
|
53
53
|
withAttempt
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-J7FP7PRV.js";
|
|
55
55
|
import {
|
|
56
56
|
isCliFailure
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-JT36R23P.js";
|
|
58
58
|
import {
|
|
59
59
|
isNewer,
|
|
60
60
|
updateCommand
|
|
61
61
|
} from "./chunk-JY34MQW4.js";
|
|
62
62
|
import {
|
|
63
63
|
readOnlyLockOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-4NJQJZRO.js";
|
|
65
65
|
import {
|
|
66
66
|
AGENDA_COLUMNS,
|
|
67
67
|
CHAT_COLUMNS,
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
validateAst,
|
|
164
164
|
validateFields,
|
|
165
165
|
withoutField
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-XCAGVFRC.js";
|
|
167
167
|
import {
|
|
168
168
|
EVENT_QUERY,
|
|
169
169
|
MEETING_FINDINGS_KIND,
|
|
@@ -217,23 +217,23 @@ import {
|
|
|
217
217
|
validateQuery,
|
|
218
218
|
walkQuery,
|
|
219
219
|
zonedMoment
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-WRZP6DJT.js";
|
|
221
221
|
import {
|
|
222
222
|
DEFAULT_STEMMERS,
|
|
223
223
|
createStemmer,
|
|
224
224
|
fold,
|
|
225
225
|
normalize
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-7P3PM3OL.js";
|
|
227
227
|
import {
|
|
228
228
|
DEFAULT_TASK_CATEGORIES,
|
|
229
229
|
FALLBACK_CATEGORY
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-B4LT2DHH.js";
|
|
231
231
|
import {
|
|
232
232
|
MAX_MODEL_IMAGE_BYTES
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-TJXVMLK4.js";
|
|
234
234
|
import {
|
|
235
235
|
remoteKey
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-CEOXSWU3.js";
|
|
237
237
|
import {
|
|
238
238
|
Unzip,
|
|
239
239
|
UnzipInflate,
|
|
@@ -244,15 +244,15 @@ import {
|
|
|
244
244
|
placedText,
|
|
245
245
|
runEmbedders,
|
|
246
246
|
textModelsDirectory
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-4CD37FZU.js";
|
|
248
248
|
import {
|
|
249
249
|
installFiles,
|
|
250
250
|
megabytes
|
|
251
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-QTLYWZXB.js";
|
|
252
252
|
import {
|
|
253
253
|
storePath,
|
|
254
254
|
wirecatDirectory
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-4CADISNA.js";
|
|
256
256
|
import {
|
|
257
257
|
resolvePaths,
|
|
258
258
|
writeSecurely
|
|
@@ -16905,7 +16905,7 @@ var require_lib3 = __commonJS({
|
|
|
16905
16905
|
}
|
|
16906
16906
|
});
|
|
16907
16907
|
|
|
16908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16909
16909
|
var RULES_VERSION = 5;
|
|
16910
16910
|
var LOOK_BACK = 50;
|
|
16911
16911
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16995,13 +16995,13 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16995
16995
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16996
16996
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16997
16997
|
|
|
16998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16999
16999
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17000
17000
|
|
|
17001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
17002
17002
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17003
17003
|
|
|
17004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
17005
17005
|
var ORGANIZATIONS_QUERY = {
|
|
17006
17006
|
entity: "organization",
|
|
17007
17007
|
backend: "sql",
|
|
@@ -17036,7 +17036,7 @@ var REMINDERS_QUERY = {
|
|
|
17036
17036
|
})
|
|
17037
17037
|
};
|
|
17038
17038
|
|
|
17039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17040
17040
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17041
17041
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17042
17042
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17058,7 +17058,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17058
17058
|
}
|
|
17059
17059
|
}, "previewProjectAnnotationSnapshot");
|
|
17060
17060
|
|
|
17061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17062
17062
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17063
17063
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17064
17064
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17079,7 +17079,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17079
17079
|
}
|
|
17080
17080
|
}, "snapshotProjectAnnotations");
|
|
17081
17081
|
|
|
17082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17083
17083
|
var COMMAND_NEEDS = {
|
|
17084
17084
|
"account update": ["updateProfile", "change the profile"],
|
|
17085
17085
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17129,7 +17129,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17129
17129
|
return group;
|
|
17130
17130
|
}, "hideNever");
|
|
17131
17131
|
|
|
17132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17133
17133
|
var AUDIT_PAGE = 200;
|
|
17134
17134
|
var AUDIT_BUDGET = 10;
|
|
17135
17135
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17209,7 +17209,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17209
17209
|
return found;
|
|
17210
17210
|
}, "burstJoins");
|
|
17211
17211
|
|
|
17212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17213
17213
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17214
17214
|
command.allowUnknownOption();
|
|
17215
17215
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17229,7 +17229,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17229
17229
|
return command;
|
|
17230
17230
|
}, "queryWordsAfterOptions");
|
|
17231
17231
|
|
|
17232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17233
17233
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17234
17234
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17235
17235
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17271,7 +17271,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17271
17271
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17272
17272
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17273
17273
|
|
|
17274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17275
17275
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17276
17276
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17277
17277
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17294,7 +17294,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17294
17294
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17295
17295
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17296
17296
|
|
|
17297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17298
17298
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17299
17299
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17300
17300
|
const zone = timezoneOf();
|
|
@@ -17380,7 +17380,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17380
17380
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17381
17381
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17382
17382
|
|
|
17383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17384
17384
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17385
17385
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17386
17386
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17512,7 +17512,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17512
17512
|
}, "addMeetingCommandsDefinition");
|
|
17513
17513
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17514
17514
|
|
|
17515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17516
17516
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17517
17517
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17518
17518
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17645,7 +17645,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17645
17645
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17646
17646
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17647
17647
|
|
|
17648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17649
17649
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17650
17650
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17651
17651
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17654,7 +17654,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17654
17654
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
17655
17655
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17656
17656
|
|
|
17657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17658
17658
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17659
17659
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17660
17660
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17916,7 +17916,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17916
17916
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17917
17917
|
}), "sessionAnswer");
|
|
17918
17918
|
|
|
17919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17920
17920
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17921
17921
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17922
17922
|
if (key in own)
|
|
@@ -17933,12 +17933,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17933
17933
|
return found.bind(adapter);
|
|
17934
17934
|
}, "capability");
|
|
17935
17935
|
|
|
17936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17937
17937
|
import { randomBytes } from "node:crypto";
|
|
17938
17938
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17939
17939
|
var newOperationId = newSendId;
|
|
17940
17940
|
|
|
17941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17942
17942
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17943
17943
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17944
17944
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18015,7 +18015,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18015
18015
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18016
18016
|
}, "storeOnlyDeps");
|
|
18017
18017
|
|
|
18018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18019
18019
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18020
18020
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18021
18021
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18038,10 +18038,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18038
18038
|
}
|
|
18039
18039
|
}, "patiently");
|
|
18040
18040
|
|
|
18041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18042
18042
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18043
18043
|
|
|
18044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18045
18045
|
var REQUEST_MS = 400;
|
|
18046
18046
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18047
18047
|
const lowest = ranges[0];
|
|
@@ -18064,13 +18064,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18064
18064
|
};
|
|
18065
18065
|
}, "estimateBackfill");
|
|
18066
18066
|
|
|
18067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18068
18068
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18069
18069
|
...error,
|
|
18070
18070
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18071
18071
|
}), "withRecovery");
|
|
18072
18072
|
|
|
18073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18074
18074
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18075
18075
|
if (isCliFailure(error))
|
|
18076
18076
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18153,7 +18153,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18153
18153
|
};
|
|
18154
18154
|
}, "mergeBatches");
|
|
18155
18155
|
|
|
18156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18157
18157
|
var TAKES = {
|
|
18158
18158
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18159
18159
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18213,7 +18213,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18213
18213
|
throw wrongAccount(reference, scope, profiles);
|
|
18214
18214
|
}, "ensureAccount");
|
|
18215
18215
|
|
|
18216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18217
18217
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18218
18218
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18219
18219
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18258,7 +18258,7 @@ ${lines3}`, { candidates });
|
|
|
18258
18258
|
}, "ambiguous");
|
|
18259
18259
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18260
18260
|
|
|
18261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18262
18262
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18263
18263
|
if (deps.reads !== "store")
|
|
18264
18264
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18417,7 +18417,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18417
18417
|
}
|
|
18418
18418
|
}, "senderAmong");
|
|
18419
18419
|
|
|
18420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18421
18421
|
var CONTEXT_MESSAGES = 3;
|
|
18422
18422
|
var CONTEXT_MINUTES = 10;
|
|
18423
18423
|
var MAX_CHARS = 1200;
|
|
@@ -18441,12 +18441,12 @@ var context = {
|
|
|
18441
18441
|
}, "describe")
|
|
18442
18442
|
};
|
|
18443
18443
|
|
|
18444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18445
18445
|
var BUILT_INS = [context];
|
|
18446
18446
|
var providers = [...BUILT_INS];
|
|
18447
18447
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18448
18448
|
|
|
18449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18450
18450
|
var READ_PAGE = 5e3;
|
|
18451
18451
|
var CHAIN = 50;
|
|
18452
18452
|
var CONVERSATION_QUERY = {
|
|
@@ -18598,7 +18598,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18598
18598
|
return size4;
|
|
18599
18599
|
}, "sized");
|
|
18600
18600
|
|
|
18601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18602
18602
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18603
18603
|
var MESSAGE_PAGE = 5e3;
|
|
18604
18604
|
var PER_SESSION = 8;
|
|
@@ -18617,7 +18617,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18617
18617
|
price: remote.price,
|
|
18618
18618
|
installed: true,
|
|
18619
18619
|
perBatch: PER_REQUEST * concurrency,
|
|
18620
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18620
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-IXABNXVH.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18621
18621
|
};
|
|
18622
18622
|
}
|
|
18623
18623
|
const model = textModel(choice);
|
|
@@ -18634,7 +18634,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18634
18634
|
if (!isTextModelInstalled(model, directory2))
|
|
18635
18635
|
throw notDownloaded(model.id);
|
|
18636
18636
|
if (apart) {
|
|
18637
|
-
const { openProcess } = await import("./process-
|
|
18637
|
+
const { openProcess } = await import("./process-4HJLMEHS.js");
|
|
18638
18638
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18639
18639
|
}
|
|
18640
18640
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -18923,7 +18923,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
18923
18923
|
return { ...one2, state };
|
|
18924
18924
|
}, "shaped");
|
|
18925
18925
|
|
|
18926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
18927
18927
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
18928
18928
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
18929
18929
|
for (const [key, value, maximum] of [
|
|
@@ -18976,7 +18976,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
18976
18976
|
}
|
|
18977
18977
|
}, "catchUpSearch");
|
|
18978
18978
|
|
|
18979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18980
18980
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
18981
18981
|
if (deps.reads === "store") {
|
|
18982
18982
|
throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -19342,7 +19342,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19342
19342
|
return message?.timestamp ?? fallback;
|
|
19343
19343
|
}, "timeOfKey");
|
|
19344
19344
|
|
|
19345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19346
19346
|
var LINKS = /https?:\/\/\S+/g;
|
|
19347
19347
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
|
|
19348
19348
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19372,7 +19372,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19372
19372
|
});
|
|
19373
19373
|
}, "questions");
|
|
19374
19374
|
|
|
19375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19376
19376
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19377
19377
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19378
19378
|
const name = typed.trim().toLowerCase();
|
|
@@ -19429,7 +19429,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19429
19429
|
return best.name;
|
|
19430
19430
|
}, "categorize");
|
|
19431
19431
|
|
|
19432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19433
19433
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19434
19434
|
var RULES_IN = {
|
|
19435
19435
|
dialog: "all",
|
|
@@ -19635,7 +19635,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19635
19635
|
return passes;
|
|
19636
19636
|
}, "applyTaskRulesToChats");
|
|
19637
19637
|
|
|
19638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19639
19639
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19640
19640
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19641
19641
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19699,7 +19699,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19699
19699
|
}
|
|
19700
19700
|
}, "validateContextEvidencePage");
|
|
19701
19701
|
|
|
19702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19703
19703
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19704
19704
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19705
19705
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19752,7 +19752,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19752
19752
|
};
|
|
19753
19753
|
}, "contextReadBudget");
|
|
19754
19754
|
|
|
19755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19756
19756
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19757
19757
|
if (!port || typeof port.read !== "function")
|
|
19758
19758
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19796,7 +19796,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19796
19796
|
};
|
|
19797
19797
|
}, "createContextEvidenceReader");
|
|
19798
19798
|
|
|
19799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19800
19800
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19801
19801
|
dryRun,
|
|
19802
19802
|
source: null,
|
|
@@ -19871,7 +19871,7 @@ var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun =
|
|
|
19871
19871
|
return receipt;
|
|
19872
19872
|
}, "ingest");
|
|
19873
19873
|
|
|
19874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19875
19875
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19876
19876
|
var DEFAULT_PURPOSES = ["work"];
|
|
19877
19877
|
var LINK_PURPOSE = "work";
|
|
@@ -19901,7 +19901,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19901
19901
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19902
19902
|
], "purposeList");
|
|
19903
19903
|
|
|
19904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19905
19905
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19906
19906
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19907
19907
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19941,7 +19941,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19941
19941
|
};
|
|
19942
19942
|
}, "dateWindow");
|
|
19943
19943
|
|
|
19944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19945
19945
|
var DAY_MS = 864e5;
|
|
19946
19946
|
var NEW_DAYS = 30;
|
|
19947
19947
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20018,7 +20018,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20018
20018
|
};
|
|
20019
20019
|
}, "scorePerson");
|
|
20020
20020
|
|
|
20021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20022
20022
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20023
20023
|
const controller = new AbortController();
|
|
20024
20024
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20034,7 +20034,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
20034
20034
|
}
|
|
20035
20035
|
}, "withTimeLimit");
|
|
20036
20036
|
|
|
20037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20038
20038
|
var REGISTRIES = {
|
|
20039
20039
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20040
20040
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20121,7 +20121,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20121
20121
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20122
20122
|
})), "notCovered");
|
|
20123
20123
|
|
|
20124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20125
20125
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20126
20126
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20127
20127
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20209,7 +20209,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20209
20209
|
};
|
|
20210
20210
|
}, "botCheckService");
|
|
20211
20211
|
|
|
20212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20213
20213
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20214
20214
|
if (value === void 0)
|
|
20215
20215
|
return void 0;
|
|
@@ -20219,7 +20219,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20219
20219
|
return id2;
|
|
20220
20220
|
}, "threadIdOf");
|
|
20221
20221
|
|
|
20222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20223
20223
|
var TOP_POSTS = 5;
|
|
20224
20224
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20225
20225
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20336,7 +20336,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20336
20336
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20337
20337
|
}, "median");
|
|
20338
20338
|
|
|
20339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20340
20340
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20341
20341
|
const events = [];
|
|
20342
20342
|
for (const stay of stays) {
|
|
@@ -20368,7 +20368,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20368
20368
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20369
20369
|
}, "memberEvents");
|
|
20370
20370
|
|
|
20371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20372
20372
|
var EVENTS_DAYS = 7;
|
|
20373
20373
|
var TRACKED_DAYS = 30;
|
|
20374
20374
|
var STATS_PAGE = 1e3;
|
|
@@ -20663,7 +20663,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20663
20663
|
return members.length === 0 ? null : members;
|
|
20664
20664
|
}, "storedMembers");
|
|
20665
20665
|
|
|
20666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20667
20667
|
var INBOX_CHATS = 20;
|
|
20668
20668
|
var REVIEW_DAYS = 3;
|
|
20669
20669
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20871,7 +20871,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20871
20871
|
};
|
|
20872
20872
|
}, "inboxService");
|
|
20873
20873
|
|
|
20874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20875
20875
|
var CONTEXT_MESSAGES2 = 10;
|
|
20876
20876
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20877
20877
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21132,10 +21132,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21132
21132
|
};
|
|
21133
21133
|
}, "personMessages");
|
|
21134
21134
|
|
|
21135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21136
21136
|
import { createHash } from "node:crypto";
|
|
21137
21137
|
|
|
21138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21139
21139
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21140
21140
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21141
21141
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21153,7 +21153,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21153
21153
|
return { parsed, meeting };
|
|
21154
21154
|
}, "authorizedMeetingMetadata");
|
|
21155
21155
|
|
|
21156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21157
21157
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21158
21158
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21159
21159
|
if (signal?.aborted)
|
|
@@ -21352,7 +21352,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21352
21352
|
return { ...packet, fingerprint: hash(packet) };
|
|
21353
21353
|
}, "readMeetingEvidence");
|
|
21354
21354
|
|
|
21355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21356
21356
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21357
21357
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21358
21358
|
const requestedAccounts = options.accountIds;
|
|
@@ -21451,7 +21451,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21451
21451
|
};
|
|
21452
21452
|
}, "personMeetingContext");
|
|
21453
21453
|
|
|
21454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21455
21455
|
var PREPARE_BYTES = 96 * 1024;
|
|
21456
21456
|
var MEETINGS = 5;
|
|
21457
21457
|
var CUES = 3;
|
|
@@ -21568,7 +21568,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21568
21568
|
}
|
|
21569
21569
|
}, "meetingsOf");
|
|
21570
21570
|
|
|
21571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21572
21572
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21573
21573
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21574
21574
|
const held = await storeIfOpen(deps);
|
|
@@ -21638,7 +21638,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21638
21638
|
complete: false
|
|
21639
21639
|
})), "quiet");
|
|
21640
21640
|
|
|
21641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21642
21642
|
var TIMELINE_ITEMS = 50;
|
|
21643
21643
|
var TIMELINE_MAX = 500;
|
|
21644
21644
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21693,7 +21693,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21693
21693
|
};
|
|
21694
21694
|
}, "personTimeline");
|
|
21695
21695
|
|
|
21696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21697
21697
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21698
21698
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21699
21699
|
const held = await storeIfOpen(deps);
|
|
@@ -21920,7 +21920,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21920
21920
|
return rest;
|
|
21921
21921
|
}, "withoutPhone");
|
|
21922
21922
|
|
|
21923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21924
21924
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21925
21925
|
var PERIOD_FIELD = "created";
|
|
21926
21926
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -22023,7 +22023,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
22023
22023
|
}));
|
|
22024
22024
|
}, "meetingNames");
|
|
22025
22025
|
|
|
22026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
22027
22027
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
22028
22028
|
const tags = /* @__PURE__ */ new Map();
|
|
22029
22029
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -22032,7 +22032,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
22032
22032
|
return tags;
|
|
22033
22033
|
}, "taskTagFilters");
|
|
22034
22034
|
|
|
22035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
22036
22036
|
var TASK_QUERY = {
|
|
22037
22037
|
entity: "task",
|
|
22038
22038
|
backend: "sql",
|
|
@@ -22524,7 +22524,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22524
22524
|
};
|
|
22525
22525
|
}, "taskView");
|
|
22526
22526
|
|
|
22527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22528
22528
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22529
22529
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22530
22530
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22547,7 +22547,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22547
22547
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22548
22548
|
}, "approveAsTask");
|
|
22549
22549
|
|
|
22550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22551
22551
|
var MAX_IDS = 500;
|
|
22552
22552
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22553
22553
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22589,7 +22589,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22589
22589
|
return ids;
|
|
22590
22590
|
}, "parseProposalIds");
|
|
22591
22591
|
|
|
22592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22593
22593
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22594
22594
|
if (author.type === "person")
|
|
22595
22595
|
return { type: "person", id: author.id };
|
|
@@ -22631,7 +22631,7 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22631
22631
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22632
22632
|
}, "storedStatus");
|
|
22633
22633
|
|
|
22634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
22635
22635
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
22636
22636
|
var rowOf = /* @__PURE__ */ __name((action2) => {
|
|
22637
22637
|
const { name, kind } = action2.payload;
|
|
@@ -22683,7 +22683,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22683
22683
|
}, "decide")
|
|
22684
22684
|
}), "organizationKind");
|
|
22685
22685
|
|
|
22686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22687
22687
|
var rowOf2 = /* @__PURE__ */ __name((action2) => ({
|
|
22688
22688
|
id: action2.id,
|
|
22689
22689
|
kind: "action",
|
|
@@ -22723,7 +22723,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22723
22723
|
}, "decide")
|
|
22724
22724
|
}), "actionKind");
|
|
22725
22725
|
|
|
22726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22727
22727
|
var STATUS = {
|
|
22728
22728
|
proposed: "proposed",
|
|
22729
22729
|
accepted: "confirmed",
|
|
@@ -22766,7 +22766,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22766
22766
|
}, "decide")
|
|
22767
22767
|
}), "factKind");
|
|
22768
22768
|
|
|
22769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22770
22770
|
var rowOf4 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22771
22771
|
id: entry.ref,
|
|
22772
22772
|
kind,
|
|
@@ -22801,7 +22801,7 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22801
22801
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22802
22802
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22803
22803
|
|
|
22804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22805
22805
|
var FACT_SUMMARIES = {
|
|
22806
22806
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22807
22807
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22873,7 +22873,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22873
22873
|
};
|
|
22874
22874
|
}, "findingsKind");
|
|
22875
22875
|
|
|
22876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22877
22877
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22878
22878
|
id: `key:${link4.id}`,
|
|
22879
22879
|
kind: "key_document",
|
|
@@ -22941,7 +22941,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22941
22941
|
};
|
|
22942
22942
|
}, "keyDocumentKind");
|
|
22943
22943
|
|
|
22944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
22945
22945
|
var words = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
22946
22946
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22947
22947
|
switch (finding.kind) {
|
|
@@ -22958,7 +22958,7 @@ var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
|
22958
22958
|
case "new_contact":
|
|
22959
22959
|
return `${finding.name} <${finding.address}>`;
|
|
22960
22960
|
case "invoice":
|
|
22961
|
-
return words("invoice", finding.number, finding.total, finding.currency, `\xB7 ${finding.reason}`);
|
|
22961
|
+
return words("invoice", finding.number, finding.total, finding.currency, finding.counterpartyName, `\xB7 ${finding.reason}`);
|
|
22962
22962
|
case "payment":
|
|
22963
22963
|
return words("payment", finding.amount, finding.currency, finding.date, `\xB7 ${finding.reason}`);
|
|
22964
22964
|
case "order":
|
|
@@ -23029,7 +23029,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23029
23029
|
};
|
|
23030
23030
|
}, "mailFindingsKind");
|
|
23031
23031
|
|
|
23032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
23033
23033
|
var rowOf7 = /* @__PURE__ */ __name((action2, batch) => {
|
|
23034
23034
|
const findings = batch.input.findings;
|
|
23035
23035
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -23093,7 +23093,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23093
23093
|
};
|
|
23094
23094
|
}, "meetingFindingsKind");
|
|
23095
23095
|
|
|
23096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23097
23097
|
var STATUS2 = {
|
|
23098
23098
|
proposed: "proposed",
|
|
23099
23099
|
confirmed: "confirmed",
|
|
@@ -23134,7 +23134,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23134
23134
|
}, "decide")
|
|
23135
23135
|
}), "memoryKind");
|
|
23136
23136
|
|
|
23137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23138
23138
|
var rowOf9 = /* @__PURE__ */ __name((order) => ({
|
|
23139
23139
|
id: order.ref,
|
|
23140
23140
|
kind: "order",
|
|
@@ -23166,7 +23166,7 @@ var orderKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23166
23166
|
}, "decide")
|
|
23167
23167
|
}), "orderKind");
|
|
23168
23168
|
|
|
23169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23170
23170
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23171
23171
|
id: `link:${link4.id}`,
|
|
23172
23172
|
kind: "relationship",
|
|
@@ -23240,7 +23240,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23240
23240
|
};
|
|
23241
23241
|
}, "relationshipKind");
|
|
23242
23242
|
|
|
23243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23244
23244
|
var KIND = "relationship_update";
|
|
23245
23245
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23246
23246
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23290,7 +23290,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23290
23290
|
}, "decide")
|
|
23291
23291
|
}), "relationshipUpdateKind");
|
|
23292
23292
|
|
|
23293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23294
23294
|
var rowOf11 = /* @__PURE__ */ __name((task2) => {
|
|
23295
23295
|
const suggestion = task2.closeSuggestion;
|
|
23296
23296
|
if (suggestion === null)
|
|
@@ -23358,7 +23358,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23358
23358
|
};
|
|
23359
23359
|
}, "taskCloseKind");
|
|
23360
23360
|
|
|
23361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23362
23362
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23363
23363
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23364
23364
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23486,7 +23486,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23486
23486
|
return registry;
|
|
23487
23487
|
}, "proposalRegistry");
|
|
23488
23488
|
|
|
23489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23490
23490
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23491
23491
|
if (newest === null)
|
|
23492
23492
|
return null;
|
|
@@ -23495,7 +23495,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23495
23495
|
return newest.addressed ? "owed" : null;
|
|
23496
23496
|
}, "mailTurn");
|
|
23497
23497
|
|
|
23498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23499
23499
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23500
23500
|
if (error instanceof CliError && error.code === "not_found")
|
|
23501
23501
|
return void 0;
|
|
@@ -23553,7 +23553,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23553
23553
|
};
|
|
23554
23554
|
}, "mailActivity");
|
|
23555
23555
|
|
|
23556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23557
23557
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23558
23558
|
const ids = [...new Set(chatIds)];
|
|
23559
23559
|
if (ids.length === 0)
|
|
@@ -23579,7 +23579,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23579
23579
|
}));
|
|
23580
23580
|
}, "chatCoverage");
|
|
23581
23581
|
|
|
23582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23583
23583
|
var DAY = 864e5;
|
|
23584
23584
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23585
23585
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23826,7 +23826,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23826
23826
|
};
|
|
23827
23827
|
}, "agendaItem");
|
|
23828
23828
|
|
|
23829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23830
23830
|
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");
|
|
23831
23831
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23832
23832
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23842,7 +23842,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23842
23842
|
}, "excerpt");
|
|
23843
23843
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23844
23844
|
|
|
23845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
23846
23846
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23847
23847
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
23848
23848
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -23881,7 +23881,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
23881
23881
|
return found;
|
|
23882
23882
|
}, "identitiesIn");
|
|
23883
23883
|
|
|
23884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
23885
23885
|
var SEARCH_LIMIT = 500;
|
|
23886
23886
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
23887
23887
|
var aliasHits = {
|
|
@@ -23930,7 +23930,7 @@ var aliasHits = {
|
|
|
23930
23930
|
}, "candidates")
|
|
23931
23931
|
};
|
|
23932
23932
|
|
|
23933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
23934
23934
|
var WEIGHT = 0.5;
|
|
23935
23935
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
23936
23936
|
var LARGE_GROUP = 30;
|
|
@@ -23982,7 +23982,7 @@ var chatSenders = {
|
|
|
23982
23982
|
}, "candidates")
|
|
23983
23983
|
};
|
|
23984
23984
|
|
|
23985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
23986
23986
|
var WEIGHT2 = 0.7;
|
|
23987
23987
|
var chatTitle = {
|
|
23988
23988
|
id: "chat-title",
|
|
@@ -24021,7 +24021,7 @@ var chatTitle = {
|
|
|
24021
24021
|
}, "candidates")
|
|
24022
24022
|
};
|
|
24023
24023
|
|
|
24024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
24025
24025
|
var WEIGHT3 = 0.3;
|
|
24026
24026
|
var CONTACTS = 500;
|
|
24027
24027
|
var MOST_PAIRS = 200;
|
|
@@ -24082,7 +24082,7 @@ var emailDomain = {
|
|
|
24082
24082
|
}, "candidates")
|
|
24083
24083
|
};
|
|
24084
24084
|
|
|
24085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
24086
24086
|
var NAMED = 0.7;
|
|
24087
24087
|
var MEMBER_ONLY = 0.3;
|
|
24088
24088
|
var READ_LIMIT2 = 500;
|
|
@@ -24155,7 +24155,7 @@ var mailThread = {
|
|
|
24155
24155
|
}, "candidates")
|
|
24156
24156
|
};
|
|
24157
24157
|
|
|
24158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
24159
24159
|
var WEIGHT4 = 0.5;
|
|
24160
24160
|
var memberChats = {
|
|
24161
24161
|
id: "member-chats",
|
|
@@ -24195,7 +24195,7 @@ var memberChats = {
|
|
|
24195
24195
|
}, "candidates")
|
|
24196
24196
|
};
|
|
24197
24197
|
|
|
24198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
24199
24199
|
var WEIGHT5 = 0.6;
|
|
24200
24200
|
var memberDialog = {
|
|
24201
24201
|
id: "member-dialog",
|
|
@@ -24229,7 +24229,7 @@ var memberDialog = {
|
|
|
24229
24229
|
}, "candidates")
|
|
24230
24230
|
};
|
|
24231
24231
|
|
|
24232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
24233
24233
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
24234
24234
|
async around(ref, window3) {
|
|
24235
24235
|
const at = parseLocator(ref);
|
|
@@ -24325,7 +24325,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
24325
24325
|
};
|
|
24326
24326
|
}, "storedNeighbours");
|
|
24327
24327
|
|
|
24328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
24329
24329
|
import { createHash as createHash2 } from "node:crypto";
|
|
24330
24330
|
var DAY2 = 864e5;
|
|
24331
24331
|
var MAX_TIME = 864e13;
|
|
@@ -24641,7 +24641,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24641
24641
|
return value;
|
|
24642
24642
|
}, "decodeCheckpoint");
|
|
24643
24643
|
|
|
24644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24645
24645
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24646
24646
|
var PAGE2 = 20;
|
|
24647
24647
|
var PEOPLE = 20;
|
|
@@ -25045,7 +25045,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
25045
25045
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
25046
25046
|
}, "peopleOf");
|
|
25047
25047
|
|
|
25048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
25049
25049
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
25050
25050
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
25051
25051
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -25089,7 +25089,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
25089
25089
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
25090
25090
|
}, "matchVocabularyTerms");
|
|
25091
25091
|
|
|
25092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
25093
25093
|
var KINDS = ["project", "tag", "topic"];
|
|
25094
25094
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
25095
25095
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -25144,7 +25144,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
25144
25144
|
};
|
|
25145
25145
|
}, "findEvidenceMentions");
|
|
25146
25146
|
|
|
25147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
25148
25148
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
25149
25149
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
25150
25150
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25450,7 +25450,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25450
25450
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25451
25451
|
}, "purposeHintOf");
|
|
25452
25452
|
|
|
25453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
25454
25454
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25455
25455
|
var PERSON_SCORERS = [emailDomain];
|
|
25456
25456
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25658,18 +25658,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25658
25658
|
}, "referenceOf");
|
|
25659
25659
|
var rejectedReversed = /* @__PURE__ */ __name(async (store, candidate) => candidate.kind === "related-to" && candidate.to.startsWith("person:") && ((await store.knowledge.relationState(null, { from: candidate.to, to: candidate.from, kind: candidate.kind }))?.rejected ?? false), "rejectedReversed");
|
|
25660
25660
|
|
|
25661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25662
25662
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25663
25663
|
|
|
25664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25665
25665
|
import { lstat } from "node:fs/promises";
|
|
25666
25666
|
|
|
25667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25668
25668
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25669
25669
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25670
25670
|
import { join as join2 } from "node:path";
|
|
25671
25671
|
|
|
25672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25673
25673
|
import { createHash as createHash3 } from "node:crypto";
|
|
25674
25674
|
var metadataLimit = 16384;
|
|
25675
25675
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25729,7 +25729,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25729
25729
|
}
|
|
25730
25730
|
}, "readPartialMetadata");
|
|
25731
25731
|
|
|
25732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25733
25733
|
import { randomUUID } from "node:crypto";
|
|
25734
25734
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25735
25735
|
import { join } from "node:path";
|
|
@@ -25821,7 +25821,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25821
25821
|
};
|
|
25822
25822
|
}, "partialWriter");
|
|
25823
25823
|
|
|
25824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25825
25825
|
var NativeRecordingPartialStore = class {
|
|
25826
25826
|
static {
|
|
25827
25827
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25928,12 +25928,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25928
25928
|
}
|
|
25929
25929
|
};
|
|
25930
25930
|
|
|
25931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25932
25932
|
import { createHash as createHash5 } from "node:crypto";
|
|
25933
25933
|
import { link as link2 } from "node:fs/promises";
|
|
25934
25934
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
25935
25935
|
|
|
25936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25937
25937
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25938
25938
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25939
25939
|
signal?.throwIfAborted();
|
|
@@ -25968,7 +25968,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25968
25968
|
signal?.throwIfAborted();
|
|
25969
25969
|
}, "commitPublication");
|
|
25970
25970
|
|
|
25971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25972
25972
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
25973
25973
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25974
25974
|
import { join as join3 } from "node:path";
|
|
@@ -26041,7 +26041,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
26041
26041
|
}
|
|
26042
26042
|
}, "writePublicationJournal");
|
|
26043
26043
|
|
|
26044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
26045
26045
|
var NativeRecordingPublication = class {
|
|
26046
26046
|
static {
|
|
26047
26047
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26114,7 +26114,7 @@ var NativeRecordingPublication = class {
|
|
|
26114
26114
|
}
|
|
26115
26115
|
};
|
|
26116
26116
|
|
|
26117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
26118
26118
|
import { createHash as createHash6 } from "node:crypto";
|
|
26119
26119
|
import { readdir } from "node:fs/promises";
|
|
26120
26120
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -26201,7 +26201,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
26201
26201
|
beforePublish
|
|
26202
26202
|
}), "commitMediaEntry");
|
|
26203
26203
|
|
|
26204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26205
26205
|
var validator = '"media-completed-v1"';
|
|
26206
26206
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26207
26207
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26302,7 +26302,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26302
26302
|
return entry;
|
|
26303
26303
|
}, "archiveMediaFile");
|
|
26304
26304
|
|
|
26305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26306
26306
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26307
26307
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
26308
26308
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26369,7 +26369,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26369
26369
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26370
26370
|
}, "withMediaArchiveLocks");
|
|
26371
26371
|
|
|
26372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26373
26373
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26374
26374
|
if (value === void 0)
|
|
26375
26375
|
return void 0;
|
|
@@ -26522,7 +26522,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26522
26522
|
}, { create: true });
|
|
26523
26523
|
}, "archiveMedia");
|
|
26524
26524
|
|
|
26525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26526
26526
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26527
26527
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26528
26528
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26675,7 +26675,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26675
26675
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26676
26676
|
}, "moveMediaArchive");
|
|
26677
26677
|
|
|
26678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26679
26679
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26680
26680
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26681
26681
|
}, "progress") }) => {
|
|
@@ -26698,7 +26698,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26698
26698
|
}
|
|
26699
26699
|
await nativeRuntime({ env, progress });
|
|
26700
26700
|
progress(`${model.id}: loading it once to check it works`);
|
|
26701
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26701
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-VXWYSZ7X.js");
|
|
26702
26702
|
const embedder = await openEmbedder2(model, directory2);
|
|
26703
26703
|
try {
|
|
26704
26704
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26719,7 +26719,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26719
26719
|
}
|
|
26720
26720
|
await nativeRuntime({ env, progress });
|
|
26721
26721
|
progress(`${model.id}: loading it once to check it works`);
|
|
26722
|
-
const { openReranker } = await import("./rerank-
|
|
26722
|
+
const { openReranker } = await import("./rerank-6ASLHI5I.js");
|
|
26723
26723
|
const reranker = await openReranker(model, directory2);
|
|
26724
26724
|
try {
|
|
26725
26725
|
await reranker.score("check", ["check"]);
|
|
@@ -26737,7 +26737,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26737
26737
|
await installFiles(placedImage(model, directory2), { progress });
|
|
26738
26738
|
}
|
|
26739
26739
|
progress(`${model.id}: loading it once to check it works`);
|
|
26740
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26740
|
+
const { openPictureEmbedder } = await import("./embedder-QX3GSPBN.js");
|
|
26741
26741
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26742
26742
|
try {
|
|
26743
26743
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26749,7 +26749,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26749
26749
|
return { model, directory: directory2 };
|
|
26750
26750
|
}, "downloadImageModel");
|
|
26751
26751
|
|
|
26752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26753
26753
|
var MONEY_REQUEST = "money-request";
|
|
26754
26754
|
var MONEY_DONE = "money-done";
|
|
26755
26755
|
var PROMISE = "promise";
|
|
@@ -26783,10 +26783,10 @@ var MONEY_WORDS = [
|
|
|
26783
26783
|
}
|
|
26784
26784
|
];
|
|
26785
26785
|
|
|
26786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26787
26787
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26788
26788
|
|
|
26789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26790
26790
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26791
26791
|
var MONEY_DONE_FORMS = words2([
|
|
26792
26792
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26826,7 +26826,7 @@ var PROMISE_FORMS = words2([
|
|
|
26826
26826
|
"estar\xE1 listo"
|
|
26827
26827
|
]);
|
|
26828
26828
|
|
|
26829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26830
26830
|
var EXCERPT_CHARS = 80;
|
|
26831
26831
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26832
26832
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26848,7 +26848,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26848
26848
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26849
26849
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26850
26850
|
|
|
26851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26852
26852
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26853
26853
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26854
26854
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26928,7 +26928,7 @@ var amounts = {
|
|
|
26928
26928
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
26929
26929
|
};
|
|
26930
26930
|
|
|
26931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26932
26932
|
var children = {
|
|
26933
26933
|
id: "children",
|
|
26934
26934
|
version: 1,
|
|
@@ -26957,7 +26957,7 @@ var children = {
|
|
|
26957
26957
|
}, "read")
|
|
26958
26958
|
};
|
|
26959
26959
|
|
|
26960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26961
26961
|
var coverage = {
|
|
26962
26962
|
id: "coverage",
|
|
26963
26963
|
version: 1,
|
|
@@ -26986,7 +26986,7 @@ var coverage = {
|
|
|
26986
26986
|
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")
|
|
26987
26987
|
};
|
|
26988
26988
|
|
|
26989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26990
26990
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26991
26991
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26992
26992
|
signal: "payments",
|
|
@@ -27036,7 +27036,7 @@ var payments = {
|
|
|
27036
27036
|
}, "read")
|
|
27037
27037
|
};
|
|
27038
27038
|
|
|
27039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
27040
27040
|
var PATTERNS_PER_CHAT = 3;
|
|
27041
27041
|
var DAY3 = 864e5;
|
|
27042
27042
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27125,7 +27125,7 @@ var promises = {
|
|
|
27125
27125
|
}, "read")
|
|
27126
27126
|
};
|
|
27127
27127
|
|
|
27128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
27129
27129
|
var PER_SIDE = 5;
|
|
27130
27130
|
var WEEK = 7 * 864e5;
|
|
27131
27131
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27156,7 +27156,7 @@ var questions2 = {
|
|
|
27156
27156
|
}, "attention")
|
|
27157
27157
|
};
|
|
27158
27158
|
|
|
27159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
27160
27160
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27161
27161
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
27162
27162
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27224,7 +27224,7 @@ var replyNext = {
|
|
|
27224
27224
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27225
27225
|
};
|
|
27226
27226
|
|
|
27227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27228
27228
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27229
27229
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27230
27230
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27270,7 +27270,7 @@ var topics = {
|
|
|
27270
27270
|
}, "read")
|
|
27271
27271
|
};
|
|
27272
27272
|
|
|
27273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27274
27274
|
var STATUS_SIGNALS = [
|
|
27275
27275
|
replyNext,
|
|
27276
27276
|
questions2,
|
|
@@ -27282,7 +27282,7 @@ var STATUS_SIGNALS = [
|
|
|
27282
27282
|
children
|
|
27283
27283
|
];
|
|
27284
27284
|
|
|
27285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27286
27286
|
var DAY4 = 864e5;
|
|
27287
27287
|
var STATUS_WINDOW = 300;
|
|
27288
27288
|
var STATUS_CHATS = 16;
|
|
@@ -27464,7 +27464,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27464
27464
|
};
|
|
27465
27465
|
}, "projectStatus");
|
|
27466
27466
|
|
|
27467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27468
27468
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27469
27469
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27470
27470
|
if (deps.offline)
|
|
@@ -27536,7 +27536,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27536
27536
|
};
|
|
27537
27537
|
}, "accountService");
|
|
27538
27538
|
|
|
27539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27540
27540
|
var MINUTE = 6e4;
|
|
27541
27541
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27542
27542
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27555,7 +27555,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27555
27555
|
return new Date(at - at % MINUTE).toISOString();
|
|
27556
27556
|
}, "sendTime");
|
|
27557
27557
|
|
|
27558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27559
27559
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27560
27560
|
try {
|
|
27561
27561
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27802,7 +27802,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27802
27802
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27803
27803
|
}, "linkLimits");
|
|
27804
27804
|
|
|
27805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27806
27806
|
var THREADS_PAGE = 500;
|
|
27807
27807
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27808
27808
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27881,7 +27881,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27881
27881
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27882
27882
|
}, "readMail");
|
|
27883
27883
|
|
|
27884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27885
27885
|
var NO_MAIL = "no_mail";
|
|
27886
27886
|
var MAIL = "email";
|
|
27887
27887
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27928,7 +27928,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27928
27928
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27929
27929
|
}, "accountsOfKind");
|
|
27930
27930
|
|
|
27931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27932
27932
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27933
27933
|
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");
|
|
27934
27934
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -28276,7 +28276,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28276
28276
|
};
|
|
28277
28277
|
}, "statsLucene");
|
|
28278
28278
|
|
|
28279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28280
28280
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28281
28281
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28282
28282
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28445,7 +28445,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28445
28445
|
};
|
|
28446
28446
|
}, "readRankingSelection");
|
|
28447
28447
|
|
|
28448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28449
28449
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one2) => canonical(one2, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one2]) => one2 !== void 0 && (nested || one2 !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one2]) => [key, canonical(one2, true)])) : value, "canonical");
|
|
28450
28450
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28451
28451
|
command,
|
|
@@ -28455,7 +28455,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28455
28455
|
fieldsVersion: FIELD_VERSION
|
|
28456
28456
|
}), "searchRecordOf");
|
|
28457
28457
|
|
|
28458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28459
28459
|
function invalid2(message) {
|
|
28460
28460
|
throw new CliError("validation_error", message);
|
|
28461
28461
|
}
|
|
@@ -28749,7 +28749,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28749
28749
|
}, "evidence")
|
|
28750
28750
|
}), "adminStatisticsService");
|
|
28751
28751
|
|
|
28752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28753
28753
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28754
28754
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28755
28755
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28886,16 +28886,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28886
28886
|
return { plan, repair };
|
|
28887
28887
|
}, "gapsService");
|
|
28888
28888
|
|
|
28889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28890
28890
|
import { createHash as createHash9 } from "node:crypto";
|
|
28891
28891
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28892
28892
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28893
28893
|
|
|
28894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28895
28895
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28896
28896
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28897
28897
|
|
|
28898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
28899
28899
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28900
28900
|
import { open as open4, stat } from "node:fs/promises";
|
|
28901
28901
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -29097,7 +29097,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
29097
29097
|
return { name, source };
|
|
29098
29098
|
}, "readStickerFile");
|
|
29099
29099
|
|
|
29100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
29101
29101
|
var MAX_FILES = 1e4;
|
|
29102
29102
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
29103
29103
|
if (refusedPlace(directory2, app, env))
|
|
@@ -29166,15 +29166,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29166
29166
|
return choices;
|
|
29167
29167
|
}, "directoryPaths");
|
|
29168
29168
|
|
|
29169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29170
29170
|
import { posix } from "node:path";
|
|
29171
29171
|
|
|
29172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29173
29173
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29174
29174
|
import { crc32 } from "node:zlib";
|
|
29175
29175
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29176
29176
|
|
|
29177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
29178
29178
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29179
29179
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29180
29180
|
var SAMPLE = 65536;
|
|
@@ -29276,7 +29276,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29276
29276
|
return result.text;
|
|
29277
29277
|
}, "decodeXml");
|
|
29278
29278
|
|
|
29279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29280
29280
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29281
29281
|
var MAX_ENTRIES = 1e3;
|
|
29282
29282
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29491,7 +29491,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29491
29491
|
return found;
|
|
29492
29492
|
}, "elements");
|
|
29493
29493
|
|
|
29494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29495
29495
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29496
29496
|
let name = "";
|
|
29497
29497
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29546,7 +29546,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29546
29546
|
return { text: parts.join("").trim(), truncated: false };
|
|
29547
29547
|
}, "sheetText");
|
|
29548
29548
|
|
|
29549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29550
29550
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29551
29551
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29552
29552
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29946,10 +29946,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29946
29946
|
}
|
|
29947
29947
|
}, "readDocument");
|
|
29948
29948
|
|
|
29949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29950
29950
|
import { extname as extname3 } from "node:path";
|
|
29951
29951
|
|
|
29952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29953
29953
|
import { readFileSync } from "node:fs";
|
|
29954
29954
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29955
29955
|
import { fileURLToPath } from "node:url";
|
|
@@ -30010,7 +30010,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
30010
30010
|
}
|
|
30011
30011
|
}, "derived");
|
|
30012
30012
|
|
|
30013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
30014
30014
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
30015
30015
|
var image2 = {
|
|
30016
30016
|
id: "image",
|
|
@@ -30019,7 +30019,7 @@ var image2 = {
|
|
|
30019
30019
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
30020
30020
|
};
|
|
30021
30021
|
|
|
30022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
30023
30023
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
30024
30024
|
var doc = {
|
|
30025
30025
|
id: "doc",
|
|
@@ -30031,7 +30031,7 @@ var doc = {
|
|
|
30031
30031
|
}), "read")
|
|
30032
30032
|
};
|
|
30033
30033
|
|
|
30034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
30035
30035
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
30036
30036
|
var docx = {
|
|
30037
30037
|
id: "docx",
|
|
@@ -30044,7 +30044,7 @@ var docx = {
|
|
|
30044
30044
|
}), "read")
|
|
30045
30045
|
};
|
|
30046
30046
|
|
|
30047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
30048
30048
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
30049
30049
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
30050
30050
|
"fonttbl",
|
|
@@ -30220,7 +30220,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30220
30220
|
}, "htmlText");
|
|
30221
30221
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
30222
30222
|
|
|
30223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
30224
30224
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30225
30225
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30226
30226
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30276,7 +30276,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30276
30276
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30277
30277
|
}, "markdownSections");
|
|
30278
30278
|
|
|
30279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
30280
30280
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30281
30281
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30282
30282
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30347,7 +30347,7 @@ var html = {
|
|
|
30347
30347
|
}, "read")
|
|
30348
30348
|
};
|
|
30349
30349
|
|
|
30350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30351
30351
|
var office = {
|
|
30352
30352
|
id: "office",
|
|
30353
30353
|
version: documentExtractor("odt"),
|
|
@@ -30358,7 +30358,7 @@ var office = {
|
|
|
30358
30358
|
}, "read")
|
|
30359
30359
|
};
|
|
30360
30360
|
|
|
30361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30362
30362
|
var pdf = {
|
|
30363
30363
|
id: "pdf",
|
|
30364
30364
|
version: "unpdf",
|
|
@@ -30425,7 +30425,7 @@ var pdf = {
|
|
|
30425
30425
|
}), "read")
|
|
30426
30426
|
};
|
|
30427
30427
|
|
|
30428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30429
30429
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30430
30430
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30431
30431
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30445,7 +30445,7 @@ var plain = {
|
|
|
30445
30445
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30446
30446
|
};
|
|
30447
30447
|
|
|
30448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30449
30449
|
var rtf = {
|
|
30450
30450
|
id: "rtf",
|
|
30451
30451
|
version: "v1",
|
|
@@ -30453,10 +30453,10 @@ var rtf = {
|
|
|
30453
30453
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30454
30454
|
};
|
|
30455
30455
|
|
|
30456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30457
30457
|
import { basename as basename5 } from "node:path";
|
|
30458
30458
|
|
|
30459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30460
30460
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30461
30461
|
const cells = [];
|
|
30462
30462
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30494,7 +30494,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30494
30494
|
return { cells, truncated };
|
|
30495
30495
|
}, "delimitedSpans");
|
|
30496
30496
|
|
|
30497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30498
30498
|
var DELIMITED = {
|
|
30499
30499
|
".csv": ",",
|
|
30500
30500
|
".tsv": " ",
|
|
@@ -30533,7 +30533,7 @@ var sheets = {
|
|
|
30533
30533
|
}, "read")
|
|
30534
30534
|
};
|
|
30535
30535
|
|
|
30536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30537
30537
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30538
30538
|
var HEAD_BYTES = 1024;
|
|
30539
30539
|
var readers = [...BUILT_INS2];
|
|
@@ -30543,7 +30543,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30543
30543
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30544
30544
|
}, "readWithRegistry");
|
|
30545
30545
|
|
|
30546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30547
30547
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30548
30548
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30549
30549
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31622,7 +31622,7 @@ function imageSize(input) {
|
|
|
31622
31622
|
}
|
|
31623
31623
|
__name(imageSize, "imageSize");
|
|
31624
31624
|
|
|
31625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31626
31626
|
var MAX_PAGES = 20;
|
|
31627
31627
|
var MAX_PIXELS = 2e7;
|
|
31628
31628
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31773,7 +31773,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31773
31773
|
}
|
|
31774
31774
|
}, "ocrPdf");
|
|
31775
31775
|
|
|
31776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31777
31777
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31778
31778
|
const limits = pdfPreviewLimits(env);
|
|
31779
31779
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31850,7 +31850,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31850
31850
|
}
|
|
31851
31851
|
}, "pdfPreview");
|
|
31852
31852
|
|
|
31853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31854
31854
|
import { createHash as createHash8 } from "node:crypto";
|
|
31855
31855
|
import { constants } from "node:fs";
|
|
31856
31856
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31958,7 +31958,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31958
31958
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31959
31959
|
}, "transferMime");
|
|
31960
31960
|
|
|
31961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31962
31962
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31963
31963
|
import { link as link3, rm } from "node:fs/promises";
|
|
31964
31964
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -32072,7 +32072,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32072
32072
|
}
|
|
32073
32073
|
}, "save");
|
|
32074
32074
|
|
|
32075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32076
32076
|
var ATTACHMENT_QUERY = {
|
|
32077
32077
|
entity: "attachment",
|
|
32078
32078
|
backend: "sql",
|
|
@@ -32495,7 +32495,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32495
32495
|
}, "setText")
|
|
32496
32496
|
}), "attachmentsService");
|
|
32497
32497
|
|
|
32498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32499
32499
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32500
32500
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32501
32501
|
const store = await accountStore(deps);
|
|
@@ -32525,7 +32525,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32525
32525
|
}, "list")
|
|
32526
32526
|
}), "chatDocumentsService");
|
|
32527
32527
|
|
|
32528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32529
32529
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32530
32530
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32531
32531
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32612,7 +32612,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32612
32612
|
}
|
|
32613
32613
|
}, "isRetentionSelection");
|
|
32614
32614
|
|
|
32615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32616
32616
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32617
32617
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32618
32618
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32819,7 +32819,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32819
32819
|
};
|
|
32820
32820
|
}, "countersService");
|
|
32821
32821
|
|
|
32822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32823
32823
|
var SYNC_KEY = "messages.sync-first";
|
|
32824
32824
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32825
32825
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32951,7 +32951,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32951
32951
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32952
32952
|
}), "withRefresh");
|
|
32953
32953
|
|
|
32954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32955
32955
|
var CANDIDATES = 50;
|
|
32956
32956
|
var WORD_HITS = 200;
|
|
32957
32957
|
var RRF_K = 60;
|
|
@@ -33226,13 +33226,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33226
33226
|
return mean2.map((value) => value / length);
|
|
33227
33227
|
}, "meanOf");
|
|
33228
33228
|
|
|
33229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33230
33230
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33231
33231
|
...embeddingsMaintenance(deps),
|
|
33232
33232
|
...embeddingsSearch(deps)
|
|
33233
33233
|
}), "embeddingsService");
|
|
33234
33234
|
|
|
33235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33236
33236
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33237
33237
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33238
33238
|
if (deps.offline)
|
|
@@ -33373,7 +33373,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33373
33373
|
};
|
|
33374
33374
|
}, "foldersService");
|
|
33375
33375
|
|
|
33376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33377
33377
|
var REVIEW_COUNT = 500;
|
|
33378
33378
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33379
33379
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33452,7 +33452,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33452
33452
|
};
|
|
33453
33453
|
}, "mentionsService");
|
|
33454
33454
|
|
|
33455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
33456
33456
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33457
33457
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33458
33458
|
const { text: text2, spans } = formatted2;
|
|
@@ -33512,7 +33512,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33512
33512
|
};
|
|
33513
33513
|
}, "visibleFormattedText");
|
|
33514
33514
|
|
|
33515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33516
33516
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33517
33517
|
position,
|
|
33518
33518
|
kind,
|
|
@@ -33561,7 +33561,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33561
33561
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33562
33562
|
}, "validatePermalink");
|
|
33563
33563
|
|
|
33564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33565
33565
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33566
33566
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33567
33567
|
return `${seconds / 86400}d`;
|
|
@@ -33593,7 +33593,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33593
33593
|
return seconds;
|
|
33594
33594
|
}, "pinDurationOf");
|
|
33595
33595
|
|
|
33596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33597
33597
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33598
33598
|
if (sendAs === void 0) {
|
|
33599
33599
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33618,7 +33618,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33618
33618
|
return sendAs;
|
|
33619
33619
|
}, "typedSendAs");
|
|
33620
33620
|
|
|
33621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33622
33622
|
var TOTAL_CAP = 1e4;
|
|
33623
33623
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33624
33624
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33629,7 +33629,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33629
33629
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33630
33630
|
}, "totalOf");
|
|
33631
33631
|
|
|
33632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33633
33633
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33634
33634
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33635
33635
|
let narrows = false;
|
|
@@ -33658,7 +33658,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33658
33658
|
return wanted(root).join(" ").trim();
|
|
33659
33659
|
}, "meaningWords");
|
|
33660
33660
|
|
|
33661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33662
33662
|
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33663
33663
|
var scaffolding = new Set(words3("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"));
|
|
33664
33664
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33790,7 +33790,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33790
33790
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33791
33791
|
}, "questionLookup");
|
|
33792
33792
|
|
|
33793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33794
33794
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33795
33795
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33796
33796
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33983,7 +33983,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33983
33983
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33984
33984
|
}, "signals");
|
|
33985
33985
|
|
|
33986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33987
33987
|
var MEANING_DEPTH = 100;
|
|
33988
33988
|
var RRF_K2 = 60;
|
|
33989
33989
|
var RERANK_DEPTH = 50;
|
|
@@ -34308,7 +34308,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34308
34308
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34309
34309
|
}, "mixedWithReranker");
|
|
34310
34310
|
|
|
34311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34312
34312
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34313
34313
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34314
34314
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34507,7 +34507,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34507
34507
|
return result;
|
|
34508
34508
|
}, "readThreadContext");
|
|
34509
34509
|
|
|
34510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34511
34511
|
var SEARCH_FILL_MS = 200;
|
|
34512
34512
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34513
34513
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34574,12 +34574,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34574
34574
|
}, "accountOf");
|
|
34575
34575
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34576
34576
|
|
|
34577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34578
34578
|
import { createHash as createHash10 } from "node:crypto";
|
|
34579
34579
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34580
34580
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34581
34581
|
|
|
34582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34583
34583
|
var GROUP_SETTINGS = [
|
|
34584
34584
|
"allCanPin",
|
|
34585
34585
|
"onlyAdminsAdd",
|
|
@@ -34593,7 +34593,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34593
34593
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34594
34594
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34595
34595
|
|
|
34596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34597
34597
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34598
34598
|
var PICTURE_FLOOR = 0.25;
|
|
34599
34599
|
var PAGE4 = 50;
|
|
@@ -34610,7 +34610,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34610
34610
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34611
34611
|
if (!isImageModelInstalled(model2, directory2))
|
|
34612
34612
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34613
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34613
|
+
const { openPictureEmbedder } = await import("./embedder-QX3GSPBN.js");
|
|
34614
34614
|
return openPictureEmbedder(model2, directory2);
|
|
34615
34615
|
}, "open");
|
|
34616
34616
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34807,7 +34807,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34807
34807
|
}, "search")
|
|
34808
34808
|
}), "withPictures");
|
|
34809
34809
|
|
|
34810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34811
34811
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34812
34812
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34813
34813
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34875,7 +34875,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34875
34875
|
}
|
|
34876
34876
|
}, "meaningLane");
|
|
34877
34877
|
|
|
34878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34879
34879
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34880
34880
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34881
34881
|
if (choice === "off")
|
|
@@ -34887,9 +34887,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34887
34887
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34888
34888
|
try {
|
|
34889
34889
|
const warm = deps.embedders;
|
|
34890
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34890
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-4HJLMEHS.js")).openRerankerProcess(model, directory2, {
|
|
34891
34891
|
threads: defaultThreads()
|
|
34892
|
-
})) : await (await import("./rerank-
|
|
34892
|
+
})) : await (await import("./rerank-6ASLHI5I.js")).openReranker(model, directory2);
|
|
34893
34893
|
return {
|
|
34894
34894
|
model: model.id,
|
|
34895
34895
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34909,17 +34909,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34909
34909
|
};
|
|
34910
34910
|
}, "rerankLane");
|
|
34911
34911
|
|
|
34912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34913
34913
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34914
34914
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34915
34915
|
const directory2 = imageModelsDirectory(env);
|
|
34916
34916
|
if (!isImageModelInstalled(model, directory2))
|
|
34917
34917
|
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 });
|
|
34918
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34918
|
+
const { openPictureEmbedder } = await import("./embedder-QX3GSPBN.js");
|
|
34919
34919
|
return openPictureEmbedder(model, directory2);
|
|
34920
34920
|
}, "openPictureEmbedderFor");
|
|
34921
34921
|
|
|
34922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34923
34923
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34924
34924
|
const metadata = note2.frontMatter;
|
|
34925
34925
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34934,7 +34934,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34934
34934
|
};
|
|
34935
34935
|
}, "documentSource");
|
|
34936
34936
|
|
|
34937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34938
34938
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34939
34939
|
let root;
|
|
34940
34940
|
try {
|
|
@@ -34961,7 +34961,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
34961
34961
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34962
34962
|
}, "titleTiers");
|
|
34963
34963
|
|
|
34964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34965
34965
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34966
34966
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34967
34967
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35404,7 +35404,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35404
35404
|
};
|
|
35405
35405
|
}, "searchNotesOf");
|
|
35406
35406
|
|
|
35407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35408
35408
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35409
35409
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35410
35410
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35521,7 +35521,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35521
35521
|
};
|
|
35522
35522
|
}, "searchEvents");
|
|
35523
35523
|
|
|
35524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35525
35525
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
35526
35526
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35527
35527
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -35750,7 +35750,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
35750
35750
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
35751
35751
|
}, "oneList");
|
|
35752
35752
|
|
|
35753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35754
35754
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35755
35755
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35756
35756
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -36003,7 +36003,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
36003
36003
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
36004
36004
|
}, "searchAllOfSource");
|
|
36005
36005
|
|
|
36006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36007
36007
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36008
36008
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36009
36009
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36192,7 +36192,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36192
36192
|
return { report, sources };
|
|
36193
36193
|
}, "searchServer");
|
|
36194
36194
|
|
|
36195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36196
36196
|
var DELETE_AT_ONCE = 10;
|
|
36197
36197
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36198
36198
|
const files = fileLinks(attachments);
|
|
@@ -36633,7 +36633,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36633
36633
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36634
36634
|
}, "checkMediaOptions");
|
|
36635
36635
|
|
|
36636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36637
36637
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36638
36638
|
var RULES = {
|
|
36639
36639
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36648,7 +36648,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36648
36648
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36649
36649
|
}), "classifyChannel");
|
|
36650
36650
|
|
|
36651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36652
36652
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36653
36653
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36654
36654
|
const store = await deps.store();
|
|
@@ -36734,7 +36734,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36734
36734
|
};
|
|
36735
36735
|
}, "metadataService");
|
|
36736
36736
|
|
|
36737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
36738
36738
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36739
36739
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36740
36740
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36922,7 +36922,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36922
36922
|
}, "nextPoint");
|
|
36923
36923
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36924
36924
|
|
|
36925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
36926
36926
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36927
36927
|
import { join as join11 } from "node:path";
|
|
36928
36928
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -37065,7 +37065,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
37065
37065
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
37066
37066
|
}, "assign");
|
|
37067
37067
|
|
|
37068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37069
37069
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37070
37070
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
37071
37071
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -37102,7 +37102,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
37102
37102
|
return { chatId, rows, notes };
|
|
37103
37103
|
}, "moderateWith");
|
|
37104
37104
|
|
|
37105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37106
37106
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37107
37107
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37108
37108
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37180,7 +37180,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37180
37180
|
}, "removePerson")
|
|
37181
37181
|
}), "moderatorOf");
|
|
37182
37182
|
|
|
37183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37184
37184
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37185
37185
|
id: note2.id,
|
|
37186
37186
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37224,7 +37224,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37224
37224
|
};
|
|
37225
37225
|
}, "privatePeopleService");
|
|
37226
37226
|
|
|
37227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37228
37228
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37229
37229
|
total: 0,
|
|
37230
37230
|
population: 0,
|
|
@@ -37480,7 +37480,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37480
37480
|
}, "evidence")
|
|
37481
37481
|
}), "rankingsService");
|
|
37482
37482
|
|
|
37483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37484
37484
|
var FIELDS = ["date", "chat", "kind"];
|
|
37485
37485
|
var WAITING_TAIL = 100;
|
|
37486
37486
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37607,7 +37607,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37607
37607
|
};
|
|
37608
37608
|
}, "replyStatsService");
|
|
37609
37609
|
|
|
37610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37611
37611
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37612
37612
|
id: one2.id,
|
|
37613
37613
|
name: one2.name,
|
|
@@ -37736,7 +37736,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37736
37736
|
};
|
|
37737
37737
|
}, "searchesService");
|
|
37738
37738
|
|
|
37739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37740
37740
|
var TAGGING_QUERY = {
|
|
37741
37741
|
entity: "tagging",
|
|
37742
37742
|
backend: "sql",
|
|
@@ -37820,7 +37820,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37820
37820
|
};
|
|
37821
37821
|
}, "tagsService");
|
|
37822
37822
|
|
|
37823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37824
37824
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37825
37825
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37826
37826
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38019,7 +38019,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38019
38019
|
};
|
|
38020
38020
|
}, "topicsService");
|
|
38021
38021
|
|
|
38022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
38023
38023
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
38024
38024
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38025
38025
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38093,7 +38093,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38093
38093
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
38094
38094
|
}, "prepareEvidencePacket");
|
|
38095
38095
|
|
|
38096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38097
38097
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38098
38098
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38099
38099
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38113,7 +38113,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38113
38113
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38114
38114
|
}, "readEvidencePacket");
|
|
38115
38115
|
|
|
38116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
38117
38117
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
38118
38118
|
let before2 = Number.POSITIVE_INFINITY;
|
|
38119
38119
|
for (; ; ) {
|
|
@@ -38175,7 +38175,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
38175
38175
|
return { ...result, selection };
|
|
38176
38176
|
}, "searchMeetingHits");
|
|
38177
38177
|
|
|
38178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38179
38179
|
import { createHash as createHash12 } from "node:crypto";
|
|
38180
38180
|
var scopeKeys = [
|
|
38181
38181
|
"accountId",
|
|
@@ -38310,7 +38310,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
38310
38310
|
};
|
|
38311
38311
|
}, "readMeetingProjectDiscovery");
|
|
38312
38312
|
|
|
38313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
38314
38314
|
import { createHash as createHash13 } from "node:crypto";
|
|
38315
38315
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
38316
38316
|
ref: cue.reference,
|
|
@@ -38428,7 +38428,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38428
38428
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38429
38429
|
}, "readMeetingHitContext");
|
|
38430
38430
|
|
|
38431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
38432
38432
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
38433
38433
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38434
38434
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38504,7 +38504,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38504
38504
|
return { packet, content };
|
|
38505
38505
|
}, "readMeetingPassage");
|
|
38506
38506
|
|
|
38507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38508
38508
|
var communicationFields = {
|
|
38509
38509
|
sources: pipe(array(strictObject({
|
|
38510
38510
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38536,7 +38536,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38536
38536
|
return { ...input, after, before: before2 };
|
|
38537
38537
|
}, "communicationRequest");
|
|
38538
38538
|
|
|
38539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38540
38540
|
var MEETING_PREPARATION_LIMITS = {
|
|
38541
38541
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38542
38542
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38622,7 +38622,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38622
38622
|
return { ...input, history };
|
|
38623
38623
|
}, "preparationRequest");
|
|
38624
38624
|
|
|
38625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
38626
38626
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38627
38627
|
const section = {
|
|
38628
38628
|
readUsage: plan.reader.usage(),
|
|
@@ -38727,7 +38727,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38727
38727
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38728
38728
|
}, "appendPreparationCommunications");
|
|
38729
38729
|
|
|
38730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38731
38731
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38732
38732
|
if (port === void 0)
|
|
38733
38733
|
return void 0;
|
|
@@ -38832,7 +38832,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38832
38832
|
}
|
|
38833
38833
|
}, "validatePreparationCommunications");
|
|
38834
38834
|
|
|
38835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
38836
38836
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38837
38837
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38838
38838
|
}, "invalid");
|
|
@@ -38901,7 +38901,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38901
38901
|
}
|
|
38902
38902
|
}, "appendKnowledgePreparation");
|
|
38903
38903
|
|
|
38904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
38905
38905
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38906
38906
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38907
38907
|
}, "invalid");
|
|
@@ -38975,7 +38975,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38975
38975
|
}
|
|
38976
38976
|
}, "appendNotesPreparation");
|
|
38977
38977
|
|
|
38978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
38979
38979
|
var PAGE_LIMIT = 4;
|
|
38980
38980
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38981
38981
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -39025,7 +39025,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
39025
39025
|
}
|
|
39026
39026
|
}, "appendProjectPreparation");
|
|
39027
39027
|
|
|
39028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
39029
39029
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
39030
39030
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
39031
39031
|
return;
|
|
@@ -39097,7 +39097,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
39097
39097
|
}
|
|
39098
39098
|
}, "appendRelatedPreparation");
|
|
39099
39099
|
|
|
39100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
39101
39101
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39102
39102
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39103
39103
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -39235,7 +39235,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
39235
39235
|
};
|
|
39236
39236
|
}, "createMeetingPreparationService");
|
|
39237
39237
|
|
|
39238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39239
39239
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39240
39240
|
const installer = ports.installer();
|
|
39241
39241
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39300,7 +39300,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39300
39300
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39301
39301
|
}, "dayAfter");
|
|
39302
39302
|
|
|
39303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39304
39304
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39305
39305
|
const pictures = picturesService(deps);
|
|
39306
39306
|
const base = {
|
|
@@ -39337,7 +39337,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39337
39337
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39338
39338
|
}, "servicesFor");
|
|
39339
39339
|
|
|
39340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
39341
39341
|
import { createHash as createHash14 } from "node:crypto";
|
|
39342
39342
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
39343
39343
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39485,7 +39485,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39485
39485
|
}
|
|
39486
39486
|
}, "serve");
|
|
39487
39487
|
|
|
39488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39489
39489
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39490
39490
|
close: /* @__PURE__ */ __name(async () => {
|
|
39491
39491
|
}, "close"),
|