@wirecat/cli-memo 0.131.38 → 0.131.40
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-W26PFZ2J.js → all-profiles-QFW2NKJY.js} +5 -5
- package/dist/bundle/{anthropic-SY6QPTQW.js → anthropic-IARLHPYJ.js} +3 -3
- package/dist/bundle/{app-server-WUXDTYU4.js → app-server-L4N5IWJF.js} +35 -35
- package/dist/bundle/auto-24I3FBUW.js +86 -0
- package/dist/bundle/{bun-O3KE32D7.js → bun-NWKIEX53.js} +2 -2
- package/dist/bundle/{bun-sqlite-5X2NBSLA.js → bun-sqlite-HORFVNNY.js} +2 -2
- package/dist/bundle/{chunk-5EBYGKZB.js → chunk-2SZEKYBN.js} +1 -1
- package/dist/bundle/{chunk-5J5RTJUJ.js → chunk-2YJBI3NK.js} +1 -1
- package/dist/bundle/{chunk-32WLB6I3.js → chunk-4EZK5PGX.js} +1 -1
- package/dist/bundle/{chunk-SDIKN2OR.js → chunk-5G3NNIJQ.js} +10 -10
- package/dist/bundle/{chunk-ZP7F76D3.js → chunk-5HSR6U4Z.js} +1 -1
- package/dist/bundle/{chunk-TJNW4L7P.js → chunk-5HXLRQ4Q.js} +43 -43
- package/dist/bundle/{chunk-UUD4QHAN.js → chunk-6E4DCMJ5.js} +4 -4
- package/dist/bundle/{chunk-LV6FBPUQ.js → chunk-6RAU7FD2.js} +11 -11
- package/dist/bundle/{chunk-2Q4DYGNU.js → chunk-756VKGKO.js} +2 -2
- package/dist/bundle/{chunk-XCAGVFRC.js → chunk-A7M74RZH.js} +560 -500
- package/dist/bundle/{chunk-UWJ3RJF4.js → chunk-A7MXWBIX.js} +2 -2
- package/dist/bundle/{chunk-GSVNF5TX.js → chunk-ADMB7OK5.js} +4 -4
- package/dist/bundle/{chunk-2EDP7PDR.js → chunk-AKSNCK5L.js} +279 -303
- package/dist/bundle/{chunk-QTLYWZXB.js → chunk-ASVVDNAS.js} +3 -3
- package/dist/bundle/{chunk-75QQ7MLH.js → chunk-ATR65D7K.js} +8 -8
- package/dist/bundle/{chunk-3G63U4VK.js → chunk-B4XRE67Q.js} +10 -9
- package/dist/bundle/{chunk-L2M3LTQQ.js → chunk-BWNNUEHG.js} +1 -1
- package/dist/bundle/{chunk-WRZP6DJT.js → chunk-CB34NXQP.js} +309 -225
- package/dist/bundle/{chunk-RS5WAI7D.js → chunk-DNZH53VQ.js} +3 -3
- package/dist/bundle/{chunk-K3GMQLFM.js → chunk-EGQCBZVM.js} +2 -2
- package/dist/bundle/{chunk-DVHDIQBI.js → chunk-EGRI2NUT.js} +4 -4
- package/dist/bundle/{chunk-4AXSD77N.js → chunk-EIFPQD57.js} +1 -1
- package/dist/bundle/{chunk-374FSLTB.js → chunk-EQQWJM6B.js} +5 -5
- package/dist/bundle/{chunk-O762IE2F.js → chunk-FBREYLY5.js} +1 -1
- package/dist/bundle/{chunk-S5KSC4B3.js → chunk-FTX3OPWV.js} +27 -27
- package/dist/bundle/{chunk-M3TUIVRK.js → chunk-G3IO2TLK.js} +5 -5
- package/dist/bundle/{chunk-CXWKBOKQ.js → chunk-JGDZ3G4P.js} +3 -3
- package/dist/bundle/{chunk-J7FP7PRV.js → chunk-KAU67PDK.js} +580 -599
- package/dist/bundle/{chunk-4CD37FZU.js → chunk-KGXVJO2V.js} +5 -5
- package/dist/bundle/{chunk-7P3PM3OL.js → chunk-KWGNPUIV.js} +7 -7
- package/dist/bundle/{chunk-JT36R23P.js → chunk-LL5HPYW5.js} +7 -7
- package/dist/bundle/{chunk-2IST54UV.js → chunk-LXQQ7Q34.js} +9 -9
- package/dist/bundle/{chunk-43CMY3YD.js → chunk-M7UHHXSH.js} +1 -1
- package/dist/bundle/{chunk-ZMZVRVCK.js → chunk-MLHRER2H.js} +2 -2
- package/dist/bundle/{chunk-XLUOKHFN.js → chunk-NCC3RXUX.js} +3 -3
- package/dist/bundle/{chunk-TXJYVD5U.js → chunk-OGHWLR5E.js} +1 -1
- package/dist/bundle/{chunk-AJ4SVCBD.js → chunk-OSDA5EZW.js} +286 -274
- package/dist/bundle/{chunk-AOFYLQK2.js → chunk-OZF7QBTS.js} +2 -2
- package/dist/bundle/{chunk-QM5CNTGT.js → chunk-PAE2NZ7S.js} +20 -20
- package/dist/bundle/{chunk-SSQDA7X6.js → chunk-QR5KWOZ2.js} +4 -4
- package/dist/bundle/{chunk-L2CXODLV.js → chunk-RZ3UQFLE.js} +1 -1
- package/dist/bundle/{chunk-FOQBIEL5.js → chunk-SRYOICSG.js} +1 -1
- package/dist/bundle/{chunk-QP7BTVMT.js → chunk-THIXDXP3.js} +2 -2
- package/dist/bundle/{chunk-S2K3FWLA.js → chunk-TWC6UJD2.js} +12 -12
- package/dist/bundle/{chunk-CEENCS5P.js → chunk-U5WIWLWM.js} +6 -6
- package/dist/bundle/{chunk-B4LT2DHH.js → chunk-UEG3BDCX.js} +4 -4
- package/dist/bundle/{chunk-4NJQJZRO.js → chunk-UGHYNVWQ.js} +1 -1
- package/dist/bundle/{chunk-4OF64T67.js → chunk-W3SMUCMB.js} +1 -1
- package/dist/bundle/{chunk-GXCXOITM.js → chunk-WAZWM4KZ.js} +20 -20
- package/dist/bundle/{chunk-F4BXYTIW.js → chunk-WHWACGZX.js} +7 -7
- package/dist/bundle/{chunk-HJTDA7AE.js → chunk-WU6PDHXY.js} +5 -5
- package/dist/bundle/{chunk-4CADISNA.js → chunk-XAWB4WEC.js} +1 -1
- package/dist/bundle/{chunk-5ZKNRR6O.js → chunk-XF7TG5VK.js} +43 -40
- package/dist/bundle/{chunk-CVCL77DZ.js → chunk-XV7M6VWX.js} +4 -4
- package/dist/bundle/{chunk-TJXVMLK4.js → chunk-YWWTEWX3.js} +1 -1
- package/dist/bundle/{chunk-WVXTZWH3.js → chunk-Z6OKSDP3.js} +1 -1
- package/dist/bundle/{chunk-CEOXSWU3.js → chunk-ZH43Q2JO.js} +2 -2
- package/dist/bundle/{command-contract-FRRW2Z4S.js → command-contract-ZRJPMWWI.js} +11 -11
- package/dist/bundle/{decode-RVPTVZ3W.js → decode-MDCEP64X.js} +2 -2
- package/dist/bundle/{echarts-CW6DTALT.js → echarts-RFIQAWMT.js} +2 -2
- package/dist/bundle/{embed-VXWYSZ7X.js → embed-443F7XR4.js} +3 -3
- package/dist/bundle/{embedder-QX3GSPBN.js → embedder-VRDPZFWC.js} +6 -6
- package/dist/bundle/{entry-LBDVYMDG.js → entry-36KBOBA4.js} +4 -4
- package/dist/bundle/failure-QKFNHYKC.js +66 -0
- package/dist/bundle/{first-run-VPR5YFMD.js → first-run-CYZSGJTG.js} +5 -5
- package/dist/bundle/{first-screen-WRKQ4GAM.js → first-screen-UY54KNVU.js} +12 -12
- package/dist/bundle/{instructions-2XLUHPQH.js → instructions-RI2WFMBA.js} +1 -1
- package/dist/bundle/{mcp-RD54TNKO.js → mcp-DHX4GF3A.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-AQ7O3PGH.js → node-H7LWGE5H.js} +2 -2
- package/dist/bundle/{node-sqlite-RKDBK624.js → node-sqlite-N4POELFM.js} +3 -3
- package/dist/bundle/{oauth-ZQCL2HPA.js → oauth-OOUASPSL.js} +4 -4
- package/dist/bundle/{open-ME6M3BWL.js → open-2T52CQDG.js} +2 -2
- package/dist/bundle/{openai-PHW5QKNC.js → openai-76CJYDRJ.js} +7 -7
- package/dist/bundle/{process-4HJLMEHS.js → process-7YATIAKW.js} +1 -1
- package/dist/bundle/{program-EVPU3PMC.js → program-O4I2BGM2.js} +81 -60
- package/dist/bundle/{prompt-U5JMQJPC.js → prompt-MHD5EI75.js} +2 -2
- package/dist/bundle/{recognize-OYKFXOLL.js → recognize-ARCD7XPJ.js} +1 -1
- package/dist/bundle/{remote-IXABNXVH.js → remote-OQ7TUXN3.js} +4 -4
- package/dist/bundle/{rerank-6ASLHI5I.js → rerank-422D4DZR.js} +4 -4
- package/dist/bundle/{serve-ZYQO2Z23.js → serve-ZOT62JRM.js} +6 -6
- package/dist/bundle/server-EISBI6O6.js +61 -0
- package/dist/bundle/{server-5XHYKDVY.js → server-HAZC3T7X.js} +50 -50
- package/dist/bundle/server-NNQ3YRBV.js +48 -0
- package/dist/bundle/{state-5W7BQVQO.js → state-KBW7BI2G.js} +3 -3
- package/dist/bundle/{store-6WW7XV2O.js → store-KZY5FZPD.js} +9 -9
- package/dist/bundle/store-maintenance-command-ZFQOMCLZ.js +48 -0
- package/dist/bundle/update-SAX5XN2C.js +69 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +5 -1
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +23 -1
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/project-status-command.js +1 -1
- package/dist/knowledge/project-status-command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/mail-triage/SKILL.md +2 -2
- package/dist/bundle/auto-2TNLCAEM.js +0 -86
- package/dist/bundle/failure-NBJBRA6G.js +0 -66
- package/dist/bundle/server-BMXFJO2T.js +0 -61
- package/dist/bundle/server-V7JU6YLA.js +0 -48
- package/dist/bundle/store-maintenance-command-YPNP663U.js +0 -48
- package/dist/bundle/update-CVHXLX72.js +0 -69
- /package/dist/bundle/{chunk-FEJOKQPV.js → chunk-5VKETWNU.js} +0 -0
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
providerErrorKey,
|
|
11
11
|
renderEvent,
|
|
12
12
|
runContextOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LL5HPYW5.js";
|
|
14
14
|
import {
|
|
15
15
|
permissionCeiling
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NCC3RXUX.js";
|
|
17
17
|
import {
|
|
18
18
|
envName,
|
|
19
19
|
readOnlyLockOf,
|
|
20
20
|
readOnlyRefusal
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UGHYNVWQ.js";
|
|
22
22
|
import {
|
|
23
23
|
carries
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2SZEKYBN.js";
|
|
25
25
|
import {
|
|
26
26
|
FACT_STATUSES,
|
|
27
27
|
FACT_TYPES,
|
|
@@ -46,8 +46,12 @@ import {
|
|
|
46
46
|
TASK_TYPES,
|
|
47
47
|
TASK_VERDICTS,
|
|
48
48
|
WORK_TASK_TYPES,
|
|
49
|
+
author,
|
|
50
|
+
count,
|
|
49
51
|
describeQuery,
|
|
50
52
|
event,
|
|
53
|
+
evidenceSource,
|
|
54
|
+
id,
|
|
51
55
|
meeting,
|
|
52
56
|
meetingCounts,
|
|
53
57
|
meetingDetails,
|
|
@@ -60,18 +64,25 @@ import {
|
|
|
60
64
|
meetingSpeaker,
|
|
61
65
|
meetingStats,
|
|
62
66
|
meetingSummary,
|
|
63
|
-
meetingTranscript
|
|
64
|
-
|
|
67
|
+
meetingTranscript,
|
|
68
|
+
organization,
|
|
69
|
+
project,
|
|
70
|
+
providerMetadata,
|
|
71
|
+
reminder,
|
|
72
|
+
text,
|
|
73
|
+
time,
|
|
74
|
+
untrusted
|
|
75
|
+
} from "./chunk-CB34NXQP.js";
|
|
65
76
|
import {
|
|
66
77
|
sharedConfigPath
|
|
67
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-UEG3BDCX.js";
|
|
68
79
|
import {
|
|
69
80
|
filesPresent,
|
|
70
81
|
sharedModelsDirectory
|
|
71
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-ASVVDNAS.js";
|
|
72
83
|
import {
|
|
73
84
|
storePath
|
|
74
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-XAWB4WEC.js";
|
|
75
86
|
import {
|
|
76
87
|
configFilePath,
|
|
77
88
|
createRecordLog,
|
|
@@ -101,7 +112,6 @@ import {
|
|
|
101
112
|
integer,
|
|
102
113
|
isoDate,
|
|
103
114
|
isoTime,
|
|
104
|
-
isoTimestamp,
|
|
105
115
|
itemEnvelopeSchema,
|
|
106
116
|
jsonSchemaOf,
|
|
107
117
|
jsonlOf,
|
|
@@ -3837,8 +3847,8 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3837
3847
|
}
|
|
3838
3848
|
}, "adopt");
|
|
3839
3849
|
adopt(reference2, command);
|
|
3840
|
-
const
|
|
3841
|
-
if (!Array.isArray(expectedOverrides) || !same(
|
|
3850
|
+
const ordered2 = /* @__PURE__ */ __name((records) => [...records].sort((a, b) => JSON.stringify([a.command, a.field]).localeCompare(JSON.stringify([b.command, b.field]))), "ordered");
|
|
3851
|
+
if (!Array.isArray(expectedOverrides) || !same(ordered2(edits), ordered2(expectedOverrides)))
|
|
3842
3852
|
throw new CliError("configuration_error", `provider shell ${command.name()} differs from its reviewed shared contract overrides; review Core and provider definitions before updating the explicit declarations`, { reason: "contract.unacknowledged-override", expected: expectedOverrides ?? null, actual: edits });
|
|
3843
3853
|
for (const { command: own, record: record2 } of pending) {
|
|
3844
3854
|
protectedCommands.set(own, record2);
|
|
@@ -3936,7 +3946,7 @@ var commandsDocument = /* @__PURE__ */ __name((root, about) => ({
|
|
|
3936
3946
|
exit_codes: { ok: 0, internal_error: GENERIC_FAILURE, ...EXIT_CODES }
|
|
3937
3947
|
}), "commandsDocument");
|
|
3938
3948
|
|
|
3939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3940
3950
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3941
3951
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3942
3952
|
messageId: message2.id,
|
|
@@ -4042,7 +4052,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4042
4052
|
}, "guardedWrite");
|
|
4043
4053
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4044
4054
|
|
|
4045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4046
4056
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4047
4057
|
try {
|
|
4048
4058
|
return work();
|
|
@@ -4069,7 +4079,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4069
4079
|
return projectFields(value, fields);
|
|
4070
4080
|
}), "projectFields");
|
|
4071
4081
|
|
|
4072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4073
4083
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4074
4084
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
4075
4085
|
var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
|
|
@@ -4091,7 +4101,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4091
4101
|
}
|
|
4092
4102
|
}, "withAbort");
|
|
4093
4103
|
|
|
4094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4095
4105
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4096
4106
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4097
4107
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4487,7 +4497,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4487
4497
|
}
|
|
4488
4498
|
}, "assertRetentionEvidenceRead");
|
|
4489
4499
|
|
|
4490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4491
4501
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4492
4502
|
import { join } from "node:path";
|
|
4493
4503
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4509,12 +4519,12 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4509
4519
|
}, "profilesWithAccounts");
|
|
4510
4520
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4511
4521
|
|
|
4512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4513
4523
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4514
4524
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4515
4525
|
var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
|
|
4516
4526
|
|
|
4517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4518
4528
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4519
4529
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4520
4530
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -4550,7 +4560,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4550
4560
|
return value;
|
|
4551
4561
|
}, "atDetail");
|
|
4552
4562
|
|
|
4553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/output.js
|
|
4554
4564
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
4555
4565
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
4556
4566
|
if (other)
|
|
@@ -4614,7 +4624,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4614
4624
|
}, "warn")
|
|
4615
4625
|
}), "silence");
|
|
4616
4626
|
|
|
4617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4618
4628
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4619
4629
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4620
4630
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4648,7 +4658,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4648
4658
|
cache: "cache.answered"
|
|
4649
4659
|
};
|
|
4650
4660
|
|
|
4651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4652
4662
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4653
4663
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4654
4664
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4661,13 +4671,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4661
4671
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4662
4672
|
}), "snakeLogger");
|
|
4663
4673
|
|
|
4664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4665
4675
|
import { randomUUID } from "node:crypto";
|
|
4666
4676
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4667
4677
|
import { userInfo } from "node:os";
|
|
4668
4678
|
import { join as join2, sep } from "node:path";
|
|
4669
4679
|
|
|
4670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4671
4681
|
var diagnostic = {
|
|
4672
4682
|
event: true,
|
|
4673
4683
|
operation: true,
|
|
@@ -4737,7 +4747,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4737
4747
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4738
4748
|
].sort();
|
|
4739
4749
|
|
|
4740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4741
4751
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4742
4752
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4743
4753
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5090,7 +5100,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5090
5100
|
};
|
|
5091
5101
|
}, "metadataOf");
|
|
5092
5102
|
|
|
5093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5094
5104
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5095
5105
|
import { randomBytes } from "node:crypto";
|
|
5096
5106
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5125,7 +5135,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
|
|
|
5125
5135
|
var attempts = new AsyncLocalStorage2();
|
|
5126
5136
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5127
5137
|
|
|
5128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5129
5139
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5130
5140
|
const recording = startRecording(options);
|
|
5131
5141
|
try {
|
|
@@ -5310,7 +5320,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5310
5320
|
return void 0;
|
|
5311
5321
|
}, "partialOutcome");
|
|
5312
5322
|
|
|
5313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5314
5324
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
5315
5325
|
if (ms2 === void 0)
|
|
5316
5326
|
return body();
|
|
@@ -5336,7 +5346,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
5336
5346
|
}
|
|
5337
5347
|
}, "withDeadline");
|
|
5338
5348
|
|
|
5339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5340
5350
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5341
5351
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5342
5352
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5378,10 +5388,10 @@ var rootOf = /* @__PURE__ */ __name((command) => {
|
|
|
5378
5388
|
return root;
|
|
5379
5389
|
}, "rootOf");
|
|
5380
5390
|
|
|
5381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5382
5392
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5383
5393
|
|
|
5384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5385
5395
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5386
5396
|
try {
|
|
5387
5397
|
const url2 = new URL(value);
|
|
@@ -5391,7 +5401,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5391
5401
|
}
|
|
5392
5402
|
}, "endpoint");
|
|
5393
5403
|
|
|
5394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5395
5405
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5396
5406
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5397
5407
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5460,7 +5470,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5460
5470
|
};
|
|
5461
5471
|
}, "modelTarget");
|
|
5462
5472
|
|
|
5463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5464
5474
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5465
5475
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5466
5476
|
var AI_FIELDS = {
|
|
@@ -5504,7 +5514,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5504
5514
|
};
|
|
5505
5515
|
}, "resolveAISettings");
|
|
5506
5516
|
|
|
5507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5508
5518
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5509
5519
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5510
5520
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5518,7 +5528,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5518
5528
|
return ms2;
|
|
5519
5529
|
}, "parseDuration");
|
|
5520
5530
|
|
|
5521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5522
5532
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5523
5533
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5524
5534
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5677,7 +5687,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5677
5687
|
var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
|
|
5678
5688
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5679
5689
|
|
|
5680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5681
5691
|
var HISTORY_MAX_DAYS = 1095;
|
|
5682
5692
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5683
5693
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -5724,7 +5734,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5724
5734
|
return { batch: { ...batch, messages }, skipped };
|
|
5725
5735
|
}, "limitBatch");
|
|
5726
5736
|
|
|
5727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
5728
5738
|
import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
5729
5739
|
import { join as join3 } from "node:path";
|
|
5730
5740
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -5813,10 +5823,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
5813
5823
|
return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
5814
5824
|
}, "registryProfiles");
|
|
5815
5825
|
|
|
5816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5817
5827
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
5818
5828
|
|
|
5819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
5820
5830
|
var REPAIR_WORDS = {
|
|
5821
5831
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
5822
5832
|
comment: "a comment, which JSON does not allow",
|
|
@@ -6057,7 +6067,7 @@ ${parts.join(",\n")}
|
|
|
6057
6067
|
${indent}${close}`;
|
|
6058
6068
|
}, "serialise");
|
|
6059
6069
|
|
|
6060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6061
6071
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6062
6072
|
var SECTIONS = ["personal", "bot"];
|
|
6063
6073
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -6352,7 +6362,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6352
6362
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6353
6363
|
}, "readConfigFile");
|
|
6354
6364
|
|
|
6355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6356
6366
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6357
6367
|
import { dirname, join as join4 } from "node:path";
|
|
6358
6368
|
var DEFAULT_CONFIG = {
|
|
@@ -6381,7 +6391,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6381
6391
|
}
|
|
6382
6392
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6383
6393
|
|
|
6384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6385
6395
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6386
6396
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6387
6397
|
const path2 = key.split(".");
|
|
@@ -6414,7 +6424,7 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
|
|
|
6414
6424
|
};
|
|
6415
6425
|
}), "settingRows");
|
|
6416
6426
|
|
|
6417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6418
6428
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6419
6429
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6420
6430
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6427,7 +6437,7 @@ var withCeiling = /* @__PURE__ */ __name((permissions, env) => {
|
|
|
6427
6437
|
}, "withCeiling");
|
|
6428
6438
|
var plain = /* @__PURE__ */ __name((rule) => (issue) => `${rule}, not ${issue.received}`, "plain");
|
|
6429
6439
|
var wholeNumber = plain("has to be a whole number, 1 or more");
|
|
6430
|
-
var
|
|
6440
|
+
var count2 = pipe(number(wholeNumber), integer(wholeNumber), minValue(1, wholeNumber));
|
|
6431
6441
|
var zeroOrMore = plain("has to be a whole number, 0 or more");
|
|
6432
6442
|
var countOrZero = pipe(number(zeroOrMore), integer(zeroOrMore), minValue(0, zeroOrMore));
|
|
6433
6443
|
var flag = boolean(plain("has to be true or false"));
|
|
@@ -6445,24 +6455,24 @@ var permissionLevels = levelsOf(pipe(string(), regex(RESOURCE_KEY, (issue) => `$
|
|
|
6445
6455
|
var commandPathLevels = levelsOf(pipe(string(), regex(COMMAND_PATH_KEY, (issue) => `${issue.input} is not a command path, like api or events.delete`)), "events.delete");
|
|
6446
6456
|
var objectMessage = /* @__PURE__ */ __name((issue) => issue.expected === "never" ? "unknown setting" : "has to be an object, in braces", "objectMessage");
|
|
6447
6457
|
var SHARED_PROFILE_ENTRIES = {
|
|
6448
|
-
limit: optional(
|
|
6449
|
-
timeout_ms: optional(
|
|
6458
|
+
limit: optional(count2),
|
|
6459
|
+
timeout_ms: optional(count2),
|
|
6450
6460
|
color: optional(flag),
|
|
6451
6461
|
sender_colors: optional(flag),
|
|
6452
6462
|
record: optional(flag),
|
|
6453
6463
|
record_input: optional(recordInputSetting),
|
|
6454
|
-
keep_runs_for_days: optional(
|
|
6455
|
-
keep_successful_runs_for_days: optional(
|
|
6456
|
-
runs_size_limit_mb: optional(
|
|
6464
|
+
keep_runs_for_days: optional(count2),
|
|
6465
|
+
keep_successful_runs_for_days: optional(count2),
|
|
6466
|
+
runs_size_limit_mb: optional(count2),
|
|
6457
6467
|
permissions: optional(permissionLevels),
|
|
6458
|
-
sends_per_hour: optional(
|
|
6468
|
+
sends_per_hour: optional(count2),
|
|
6459
6469
|
requests_per_minute: optional(countOrZero),
|
|
6460
6470
|
transcribe_with: optional(picklist(["auto", "messenger", "local"], plain("has to be auto, messenger or local"))),
|
|
6461
6471
|
speech_model: optional(string(plain("has to be a model id from `models list`, in quotes"))),
|
|
6462
6472
|
search_catch_up: optional(flag),
|
|
6463
6473
|
history_dialog_days: optional(historyDays),
|
|
6464
6474
|
history_group_days: optional(historyDays),
|
|
6465
|
-
history_group_members_max: optional(
|
|
6475
|
+
history_group_members_max: optional(count2),
|
|
6466
6476
|
picture_search: optional(flag),
|
|
6467
6477
|
search_reranker: optional(picklist([...RERANK_MODELS.map((model3) => model3.id), "off"], plain(`has to be off or a reranker id: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`))),
|
|
6468
6478
|
...AI_ENTRIES
|
|
@@ -6924,7 +6934,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6924
6934
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6925
6935
|
}, "given");
|
|
6926
6936
|
|
|
6927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6928
6938
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
6929
6939
|
const slot = environmentOf(command).exit;
|
|
6930
6940
|
if (slot)
|
|
@@ -7037,7 +7047,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
7037
7047
|
return words.join(" ");
|
|
7038
7048
|
}, "commandPath");
|
|
7039
7049
|
|
|
7040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
7041
7051
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
7042
7052
|
var FETCH = { remote: "read", local: "write" };
|
|
7043
7053
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -7144,31 +7154,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
7144
7154
|
throw readOnlyRefusal(lock, what);
|
|
7145
7155
|
}, "refuseUnderReadOnly");
|
|
7146
7156
|
|
|
7147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7148
|
-
var text = string();
|
|
7149
|
-
var id = pipe(string(), minLength(1));
|
|
7150
|
-
var time = isoTime;
|
|
7151
|
-
var zonedTime = pipe(string(), isoTimestamp("an ISO 8601 time with a zone"));
|
|
7152
|
-
var count2 = pipe(number(), integer(), minValue(0));
|
|
7153
|
-
var untrusted = optional(array(text));
|
|
7154
|
-
var providerMetadata = optional(record(string(), unknown()));
|
|
7155
|
-
var evidenceSource = strictObject({
|
|
7156
|
-
ref: nullable(reference),
|
|
7157
|
-
kind: text,
|
|
7158
|
-
title: nullable(text),
|
|
7159
|
-
sender: nullable(text),
|
|
7160
|
-
at: nullable(time),
|
|
7161
|
-
excerpt: nullable(text),
|
|
7162
|
-
tool: nullable(text),
|
|
7163
|
-
missing: boolean()
|
|
7164
|
-
});
|
|
7165
|
-
var author = strictObject({
|
|
7166
|
-
type: picklist(["person", "bot"]),
|
|
7167
|
-
id,
|
|
7168
|
-
name: nullable(text)
|
|
7169
|
-
});
|
|
7170
|
-
|
|
7171
|
-
// 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/entities/account.js
|
|
7157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
7172
7158
|
var account = strictObject({
|
|
7173
7159
|
provider: text,
|
|
7174
7160
|
id,
|
|
@@ -7178,7 +7164,7 @@ var account = strictObject({
|
|
|
7178
7164
|
scope: optional(picklist(["personal", "work"]))
|
|
7179
7165
|
});
|
|
7180
7166
|
|
|
7181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
7182
7168
|
var accountSession = strictObject({
|
|
7183
7169
|
current: boolean(),
|
|
7184
7170
|
client: nullable(text),
|
|
@@ -7188,7 +7174,7 @@ var accountSession = strictObject({
|
|
|
7188
7174
|
created_at: optional(nullable(time))
|
|
7189
7175
|
});
|
|
7190
7176
|
|
|
7191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
7192
7178
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
7193
7179
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
7194
7180
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -7206,7 +7192,7 @@ var accountPrivacy = strictObject({
|
|
|
7206
7192
|
});
|
|
7207
7193
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
7208
7194
|
|
|
7209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
7210
7196
|
var accountProfile = strictObject({
|
|
7211
7197
|
profile: id,
|
|
7212
7198
|
current: boolean(),
|
|
@@ -7218,7 +7204,7 @@ var accountProfile = strictObject({
|
|
|
7218
7204
|
bot: optional(literal(true))
|
|
7219
7205
|
});
|
|
7220
7206
|
|
|
7221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
7222
7208
|
var milliseconds = pipe(number(), minValue(0));
|
|
7223
7209
|
var counterReading = strictObject({
|
|
7224
7210
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7230,7 +7216,7 @@ var counterReading = strictObject({
|
|
|
7230
7216
|
});
|
|
7231
7217
|
var selection = record(string(), unknown());
|
|
7232
7218
|
|
|
7233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7234
7220
|
var adminRow = strictObject({
|
|
7235
7221
|
ref: reference,
|
|
7236
7222
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7239,17 +7225,17 @@ var adminRow = strictObject({
|
|
|
7239
7225
|
chat_ref: optional(reference),
|
|
7240
7226
|
person_ref: optional(reference),
|
|
7241
7227
|
identity_known: optional(boolean()),
|
|
7242
|
-
questions: optional(
|
|
7243
|
-
answered: optional(
|
|
7228
|
+
questions: optional(count),
|
|
7229
|
+
answered: optional(count),
|
|
7244
7230
|
median_ms: optional(nullable(milliseconds)),
|
|
7245
7231
|
p90_ms: optional(nullable(milliseconds)),
|
|
7246
7232
|
age_ms: optional(milliseconds),
|
|
7247
7233
|
joined_at: optional(time),
|
|
7248
7234
|
window_end: optional(time),
|
|
7249
7235
|
pending: optional(boolean()),
|
|
7250
|
-
views: optional(
|
|
7251
|
-
observed_replies: optional(
|
|
7252
|
-
comment_snapshot: optional(nullable(
|
|
7236
|
+
views: optional(count),
|
|
7237
|
+
observed_replies: optional(count),
|
|
7238
|
+
comment_snapshot: optional(nullable(count)),
|
|
7253
7239
|
counters: optional(array(counterReading)),
|
|
7254
7240
|
selection
|
|
7255
7241
|
});
|
|
@@ -7257,25 +7243,25 @@ var adminReport = strictObject({
|
|
|
7257
7243
|
report: picklist(["unanswered", "responses", "newcomers", "discussion"]),
|
|
7258
7244
|
cutoff: time,
|
|
7259
7245
|
/** Rows the report found; `rows` holds the first `--limit` of them. */
|
|
7260
|
-
total:
|
|
7246
|
+
total: count,
|
|
7261
7247
|
summary: strictObject({
|
|
7262
|
-
questions:
|
|
7263
|
-
answered:
|
|
7264
|
-
no_observed_answer:
|
|
7265
|
-
excluded_future:
|
|
7266
|
-
unknown_join:
|
|
7267
|
-
missing_views:
|
|
7248
|
+
questions: count,
|
|
7249
|
+
answered: count,
|
|
7250
|
+
no_observed_answer: count,
|
|
7251
|
+
excluded_future: count,
|
|
7252
|
+
unknown_join: count,
|
|
7253
|
+
missing_views: count
|
|
7268
7254
|
}),
|
|
7269
7255
|
quality: strictObject({
|
|
7270
7256
|
graph: strictObject({
|
|
7271
|
-
unknown_links:
|
|
7272
|
-
unknown_authors:
|
|
7273
|
-
missing_parents:
|
|
7274
|
-
cycles:
|
|
7257
|
+
unknown_links: count,
|
|
7258
|
+
unknown_authors: count,
|
|
7259
|
+
missing_parents: count,
|
|
7260
|
+
cycles: count,
|
|
7275
7261
|
complete: boolean()
|
|
7276
7262
|
}),
|
|
7277
7263
|
archives: array(strictObject({ chat_ref: reference, state: text, fetched_at: nullable(time) })),
|
|
7278
|
-
archives_total:
|
|
7264
|
+
archives_total: count,
|
|
7279
7265
|
membership: text,
|
|
7280
7266
|
counter_freshness: text,
|
|
7281
7267
|
answerer_roles: text
|
|
@@ -7283,7 +7269,7 @@ var adminReport = strictObject({
|
|
|
7283
7269
|
rows: array(adminRow)
|
|
7284
7270
|
});
|
|
7285
7271
|
|
|
7286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7287
7273
|
var closeSuggestion = strictObject({
|
|
7288
7274
|
as: picklist(["done", "dismissed"]),
|
|
7289
7275
|
/** The agent's name. */
|
|
@@ -7345,7 +7331,7 @@ var task = strictObject({
|
|
|
7345
7331
|
updated_at: optional(time)
|
|
7346
7332
|
});
|
|
7347
7333
|
|
|
7348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7349
7335
|
var agendaChat = strictObject({
|
|
7350
7336
|
chat: reference,
|
|
7351
7337
|
title: nullable(text),
|
|
@@ -7415,30 +7401,30 @@ var agenda = strictObject({
|
|
|
7415
7401
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7416
7402
|
});
|
|
7417
7403
|
|
|
7418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7419
7405
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7420
7406
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7421
7407
|
|
|
7422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7423
7409
|
var attachment = strictObject({
|
|
7424
7410
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7425
7411
|
message: optional(reference),
|
|
7426
7412
|
/** Lower-cased: `photo`, `video`, `file`, `voice`… */
|
|
7427
7413
|
kind: text,
|
|
7428
7414
|
/** Its place among the message's attachments, from 1, as `attachments show --attachment` takes it. */
|
|
7429
|
-
position: optional(
|
|
7415
|
+
position: optional(count),
|
|
7430
7416
|
url: optional(text),
|
|
7431
7417
|
name: optional(text),
|
|
7432
7418
|
title: optional(text),
|
|
7433
7419
|
mime: optional(text),
|
|
7434
|
-
size: optional(
|
|
7435
|
-
width: optional(
|
|
7436
|
-
height: optional(
|
|
7420
|
+
size: optional(count),
|
|
7421
|
+
width: optional(count),
|
|
7422
|
+
height: optional(count),
|
|
7437
7423
|
/** Seconds, for audio and video. */
|
|
7438
7424
|
duration: optional(number()),
|
|
7439
7425
|
/** The text read out of it; how it was read is `extraction`. */
|
|
7440
7426
|
text: optional(text),
|
|
7441
|
-
extraction: optional(strictObject({ origin: text, extractor: text, chars:
|
|
7427
|
+
extraction: optional(strictObject({ origin: text, extractor: text, chars: count, error: optional(text) })),
|
|
7442
7428
|
local_path: optional(text),
|
|
7443
7429
|
/** A shared contact card (`kind: "contact"`); the phone is the whole number as the sender put it. */
|
|
7444
7430
|
contact: optional(strictObject({
|
|
@@ -7455,9 +7441,9 @@ var attachment = strictObject({
|
|
|
7455
7441
|
url: optional(text)
|
|
7456
7442
|
}))))
|
|
7457
7443
|
});
|
|
7458
|
-
var hitFile = strictObject({ position:
|
|
7444
|
+
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7459
7445
|
|
|
7460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7461
7447
|
var actionableError = objectWithRest({
|
|
7462
7448
|
code: text,
|
|
7463
7449
|
message: text,
|
|
@@ -7465,63 +7451,63 @@ var actionableError = objectWithRest({
|
|
|
7465
7451
|
retry_after_ms: optional(number())
|
|
7466
7452
|
}, unknown());
|
|
7467
7453
|
var batchResult = strictObject({
|
|
7468
|
-
attempted:
|
|
7469
|
-
succeeded:
|
|
7470
|
-
failed:
|
|
7454
|
+
attempted: count,
|
|
7455
|
+
succeeded: count,
|
|
7456
|
+
failed: count,
|
|
7471
7457
|
error_rate: number(),
|
|
7472
|
-
failures: array(strictObject({ id, stage: text, error: actionableError, attachment: optional(
|
|
7458
|
+
failures: array(strictObject({ id, stage: text, error: actionableError, attachment: optional(count) })),
|
|
7473
7459
|
stop_reason: optional(picklist(["rate_limited", "authentication", "error_rate", "cancelled"])),
|
|
7474
|
-
max_error_percent:
|
|
7460
|
+
max_error_percent: count
|
|
7475
7461
|
});
|
|
7476
7462
|
|
|
7477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7478
7464
|
var extractionItem = strictObject({
|
|
7479
7465
|
ref: reference,
|
|
7480
|
-
attachment:
|
|
7466
|
+
attachment: count,
|
|
7481
7467
|
kind: text,
|
|
7482
7468
|
name: nullable(text),
|
|
7483
7469
|
status: picklist(["extracted", "needs-agent", "unreadable", "engine-missing", "too-large", "missing"]),
|
|
7484
7470
|
extractor: optional(text),
|
|
7485
|
-
chars: optional(
|
|
7471
|
+
chars: optional(count),
|
|
7486
7472
|
local_path: optional(text),
|
|
7487
|
-
pages: optional(
|
|
7488
|
-
ocr_pages: optional(
|
|
7473
|
+
pages: optional(count),
|
|
7474
|
+
ocr_pages: optional(count),
|
|
7489
7475
|
error: optional(text),
|
|
7490
7476
|
issue: optional(actionableError)
|
|
7491
7477
|
});
|
|
7492
7478
|
var extractionSummary = strictObject({
|
|
7493
|
-
extracted:
|
|
7494
|
-
failed:
|
|
7495
|
-
needs_agent:
|
|
7479
|
+
extracted: count,
|
|
7480
|
+
failed: count,
|
|
7481
|
+
needs_agent: count,
|
|
7496
7482
|
complete: boolean(),
|
|
7497
7483
|
batch: optional(batchResult)
|
|
7498
7484
|
});
|
|
7499
7485
|
var extractionReport = strictObject({
|
|
7500
7486
|
...extractionSummary.entries,
|
|
7501
7487
|
items: array(extractionItem),
|
|
7502
|
-
unchanged:
|
|
7503
|
-
not_downloaded:
|
|
7504
|
-
unsupported:
|
|
7488
|
+
unchanged: count,
|
|
7489
|
+
not_downloaded: count,
|
|
7490
|
+
unsupported: count,
|
|
7505
7491
|
/** Reader package names, such as unpdf or @napi-rs/canvas. */
|
|
7506
7492
|
engines_missing: array(text),
|
|
7507
7493
|
cursor: optional(text)
|
|
7508
7494
|
});
|
|
7509
7495
|
|
|
7510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7511
7497
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7512
7498
|
var attachmentBytes = strictObject({
|
|
7513
7499
|
ref: reference,
|
|
7514
|
-
attachment:
|
|
7500
|
+
attachment: count,
|
|
7515
7501
|
name: nullable(text),
|
|
7516
7502
|
mime_type: text,
|
|
7517
|
-
total_bytes:
|
|
7503
|
+
total_bytes: count,
|
|
7518
7504
|
sha256: fingerprint,
|
|
7519
|
-
offset_bytes:
|
|
7520
|
-
read_bytes:
|
|
7521
|
-
next_offset_bytes: nullable(
|
|
7505
|
+
offset_bytes: count,
|
|
7506
|
+
read_bytes: count,
|
|
7507
|
+
next_offset_bytes: nullable(count),
|
|
7522
7508
|
complete: boolean(),
|
|
7523
7509
|
base64: optional(text),
|
|
7524
|
-
pdf: optional(strictObject({ page:
|
|
7510
|
+
pdf: optional(strictObject({ page: count, page_count: count, source_sha256: fingerprint, source_bytes: count }))
|
|
7525
7511
|
});
|
|
7526
7512
|
var attachmentExtraction = union([
|
|
7527
7513
|
strictObject({ ...omit(extractionReport, ["items"]).entries, files: array(extractionItem) }),
|
|
@@ -7529,13 +7515,13 @@ var attachmentExtraction = union([
|
|
|
7529
7515
|
]);
|
|
7530
7516
|
var attachmentTextChange = strictObject({
|
|
7531
7517
|
ref: reference,
|
|
7532
|
-
attachment:
|
|
7518
|
+
attachment: count,
|
|
7533
7519
|
origin: literal("agent"),
|
|
7534
|
-
chars:
|
|
7520
|
+
chars: count,
|
|
7535
7521
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7536
7522
|
});
|
|
7537
7523
|
|
|
7538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7539
7525
|
var chart = strictObject({
|
|
7540
7526
|
version: literal(1),
|
|
7541
7527
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7547,10 +7533,10 @@ var chart = strictObject({
|
|
|
7547
7533
|
/** Lower bounds: the store or the events did not hold the whole period. */
|
|
7548
7534
|
partial: boolean(),
|
|
7549
7535
|
reasons: array(picklist(["store-incomplete", "events-incomplete"])),
|
|
7550
|
-
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width:
|
|
7536
|
+
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7551
7537
|
});
|
|
7552
7538
|
|
|
7553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7554
7540
|
var member = strictObject({
|
|
7555
7541
|
id,
|
|
7556
7542
|
name: nullable(text),
|
|
@@ -7567,13 +7553,13 @@ var member = strictObject({
|
|
|
7567
7553
|
flagged: optional(picklist(["scam", "fake"])),
|
|
7568
7554
|
has_photo: optional(boolean()),
|
|
7569
7555
|
/** `chats members check`: how much they look like a bot — a hint, never a verdict. */
|
|
7570
|
-
score: optional(
|
|
7556
|
+
score: optional(count),
|
|
7571
7557
|
reasons: optional(array(text)),
|
|
7572
7558
|
/** `chats members check --deep`: the whole person check, as `contacts check` answers it. */
|
|
7573
7559
|
check: optional(record(string(), unknown()))
|
|
7574
7560
|
});
|
|
7575
7561
|
|
|
7576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7577
7563
|
var setting = optional(nullable(boolean()));
|
|
7578
7564
|
var chat = strictObject({
|
|
7579
7565
|
ref: reference,
|
|
@@ -7582,10 +7568,10 @@ var chat = strictObject({
|
|
|
7582
7568
|
account: optional(text),
|
|
7583
7569
|
title: nullable(text),
|
|
7584
7570
|
kind: picklist(["dialog", "group", "channel", "saved", "unknown"]),
|
|
7585
|
-
unread_count: nullable(
|
|
7586
|
-
unread_mentions: optional(
|
|
7571
|
+
unread_count: nullable(count),
|
|
7572
|
+
unread_mentions: optional(count),
|
|
7587
7573
|
last_message_at: nullable(time),
|
|
7588
|
-
participants_count: nullable(
|
|
7574
|
+
participants_count: nullable(count),
|
|
7589
7575
|
muted: optional(boolean()),
|
|
7590
7576
|
/** When the mute ends; absent with `muted` true is for good. */
|
|
7591
7577
|
muted_until: optional(time),
|
|
@@ -7608,13 +7594,13 @@ var chat = strictObject({
|
|
|
7608
7594
|
join_approval: setting,
|
|
7609
7595
|
only_admins_send: setting,
|
|
7610
7596
|
only_admins_edit_info: setting,
|
|
7611
|
-
disappearing_seconds: optional(nullable(
|
|
7597
|
+
disappearing_seconds: optional(nullable(count))
|
|
7612
7598
|
})),
|
|
7613
7599
|
/** `chats show`: absent when no roster is known; an empty list is a known empty roster. */
|
|
7614
7600
|
members: optional(array(member))
|
|
7615
7601
|
});
|
|
7616
7602
|
|
|
7617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7618
7604
|
var named2 = strictObject({
|
|
7619
7605
|
id,
|
|
7620
7606
|
title: nullable(text),
|
|
@@ -7637,7 +7623,7 @@ var folder = strictObject({
|
|
|
7637
7623
|
excluded_chats: optional(array(named2))
|
|
7638
7624
|
});
|
|
7639
7625
|
|
|
7640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7641
7627
|
var inviteLink = strictObject({
|
|
7642
7628
|
link: text,
|
|
7643
7629
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7645,15 +7631,15 @@ var inviteLink = strictObject({
|
|
|
7645
7631
|
/** `null` when it never expires. */
|
|
7646
7632
|
expires_at: nullable(time),
|
|
7647
7633
|
/** `null` for no limit. */
|
|
7648
|
-
max_uses: nullable(
|
|
7634
|
+
max_uses: nullable(count),
|
|
7649
7635
|
/** The group's own link; revoking it makes the messenger issue a new one. */
|
|
7650
7636
|
primary: optional(boolean()),
|
|
7651
7637
|
revoked: optional(boolean()),
|
|
7652
|
-
pending_count: optional(
|
|
7653
|
-
joined_count: optional(
|
|
7638
|
+
pending_count: optional(count),
|
|
7639
|
+
joined_count: optional(count)
|
|
7654
7640
|
});
|
|
7655
7641
|
|
|
7656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7657
7643
|
var operated = { operation_id: id, chat_id: id };
|
|
7658
7644
|
var group = strictObject({
|
|
7659
7645
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7679,7 +7665,7 @@ var chatInspection = strictObject({
|
|
|
7679
7665
|
title: nullable(text),
|
|
7680
7666
|
id: nullable(id),
|
|
7681
7667
|
username: nullable(text),
|
|
7682
|
-
participants_count: nullable(
|
|
7668
|
+
participants_count: nullable(count),
|
|
7683
7669
|
description: nullable(text),
|
|
7684
7670
|
member: nullable(boolean()),
|
|
7685
7671
|
approval_needed: optional(boolean())
|
|
@@ -7697,8 +7683,8 @@ var chatMembersFetch = strictObject({
|
|
|
7697
7683
|
joined: array(id),
|
|
7698
7684
|
gone: array(id),
|
|
7699
7685
|
changed: array(id),
|
|
7700
|
-
read:
|
|
7701
|
-
participants: nullable(
|
|
7686
|
+
read: count,
|
|
7687
|
+
participants: nullable(count),
|
|
7702
7688
|
complete: boolean(),
|
|
7703
7689
|
more: boolean(),
|
|
7704
7690
|
tracked: boolean()
|
|
@@ -7711,12 +7697,12 @@ var chatInvite = strictObject({ chat_id: id, title: nullable(text), link: text }
|
|
|
7711
7697
|
var chatInviteChange = strictObject({
|
|
7712
7698
|
...operated,
|
|
7713
7699
|
...omit(inviteLink, ["pending_count", "joined_count"]).entries,
|
|
7714
|
-
pending: optional(
|
|
7715
|
-
joined: optional(
|
|
7700
|
+
pending: optional(count),
|
|
7701
|
+
joined: optional(count)
|
|
7716
7702
|
});
|
|
7717
7703
|
var chatRequestChange = union([
|
|
7718
7704
|
strictObject({ ...operated, person_id: id, accepted: boolean(), already: boolean() }),
|
|
7719
|
-
strictObject({ chat_id: id, accepted: boolean(), counted:
|
|
7705
|
+
strictObject({ chat_id: id, accepted: boolean(), counted: count, operation_id: optional(id) })
|
|
7720
7706
|
]);
|
|
7721
7707
|
var chatAdminChange = strictObject({
|
|
7722
7708
|
...operated,
|
|
@@ -7733,7 +7719,7 @@ var chatFolderOrder = strictObject({
|
|
|
7733
7719
|
folders: array(strictObject({ id, title: text }))
|
|
7734
7720
|
});
|
|
7735
7721
|
|
|
7736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7737
7723
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7738
7724
|
var chatRemoval = strictObject(operated2);
|
|
7739
7725
|
var chatMuting = strictObject({
|
|
@@ -7744,7 +7730,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7744
7730
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7745
7731
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7746
7732
|
|
|
7747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7748
7734
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7749
7735
|
var chatEvent = strictObject({
|
|
7750
7736
|
chat_id: id,
|
|
@@ -7761,7 +7747,7 @@ var chatEvent = strictObject({
|
|
|
7761
7747
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7762
7748
|
});
|
|
7763
7749
|
|
|
7764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7765
7751
|
var chatMetadata = strictObject({
|
|
7766
7752
|
chat_id: id,
|
|
7767
7753
|
title: nullable(text),
|
|
@@ -7776,7 +7762,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7776
7762
|
has_more: boolean()
|
|
7777
7763
|
});
|
|
7778
7764
|
|
|
7779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7780
7766
|
var action = picklist(["report", "delete", "remove"]);
|
|
7781
7767
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7782
7768
|
var chatRules = strictObject({
|
|
@@ -7793,8 +7779,8 @@ var chatRules = strictObject({
|
|
|
7793
7779
|
invites: action,
|
|
7794
7780
|
forwards: action,
|
|
7795
7781
|
blocked_people: action,
|
|
7796
|
-
flood: strictObject({ messages:
|
|
7797
|
-
new_account: strictObject({ days:
|
|
7782
|
+
flood: strictObject({ messages: count, minutes: count, action }),
|
|
7783
|
+
new_account: strictObject({ days: count, action: picklist(["report", "remove"]) }),
|
|
7798
7784
|
consent: strictObject({ delete: level, remove: level })
|
|
7799
7785
|
})
|
|
7800
7786
|
});
|
|
@@ -7813,8 +7799,8 @@ var chatModeration = strictObject({
|
|
|
7813
7799
|
}))
|
|
7814
7800
|
});
|
|
7815
7801
|
|
|
7816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7817
|
-
var optionalCount = optional(
|
|
7802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7803
|
+
var optionalCount = optional(count);
|
|
7818
7804
|
var minutes = nullable(number());
|
|
7819
7805
|
var chatStats = strictObject({
|
|
7820
7806
|
chat: reference,
|
|
@@ -7829,47 +7815,47 @@ var chatStats = strictObject({
|
|
|
7829
7815
|
reaches_start: boolean(),
|
|
7830
7816
|
fetched_at: nullable(time)
|
|
7831
7817
|
}),
|
|
7832
|
-
messages:
|
|
7833
|
-
senders:
|
|
7834
|
-
replies:
|
|
7835
|
-
threads:
|
|
7836
|
-
reactions:
|
|
7818
|
+
messages: count,
|
|
7819
|
+
senders: count,
|
|
7820
|
+
replies: count,
|
|
7821
|
+
threads: count,
|
|
7822
|
+
reactions: count,
|
|
7837
7823
|
views: optionalCount,
|
|
7838
7824
|
forwards: optionalCount,
|
|
7839
7825
|
comments: optionalCount,
|
|
7840
7826
|
top_posts: array(strictObject({
|
|
7841
7827
|
ref: reference,
|
|
7842
7828
|
timestamp: time,
|
|
7843
|
-
reactions:
|
|
7829
|
+
reactions: count,
|
|
7844
7830
|
views: optionalCount,
|
|
7845
7831
|
forwards: optionalCount,
|
|
7846
7832
|
comments: optionalCount
|
|
7847
7833
|
})),
|
|
7848
7834
|
questions: strictObject({
|
|
7849
|
-
asked:
|
|
7850
|
-
answered:
|
|
7835
|
+
asked: count,
|
|
7836
|
+
answered: count,
|
|
7851
7837
|
median_minutes_to_answer: minutes,
|
|
7852
7838
|
answered_by: picklist(["owner", "owner-and-admins"])
|
|
7853
7839
|
}),
|
|
7854
|
-
member_counts: optional(array(strictObject({ day: text, participants: nullable(
|
|
7840
|
+
member_counts: optional(array(strictObject({ day: text, participants: nullable(count), listed: count, complete: boolean() }))),
|
|
7855
7841
|
/** Absent where joins and leaves were not asked, or not recorded for the chat yet (then `missing` says so). */
|
|
7856
7842
|
members: optional(strictObject({
|
|
7857
|
-
joined:
|
|
7858
|
-
left:
|
|
7843
|
+
joined: count,
|
|
7844
|
+
left: count,
|
|
7859
7845
|
net: number(),
|
|
7860
|
-
wrote:
|
|
7846
|
+
wrote: count,
|
|
7861
7847
|
median_minutes_to_first_message: minutes,
|
|
7862
7848
|
/** The messenger stopped reading its history before `since`: the counts are lower bounds. */
|
|
7863
7849
|
more: boolean()
|
|
7864
7850
|
})),
|
|
7865
|
-
series: optional(array(strictObject({ key: text, messages:
|
|
7851
|
+
series: optional(array(strictObject({ key: text, messages: count, senders: count, joined: optionalCount, left: optionalCount })))
|
|
7866
7852
|
});
|
|
7867
7853
|
var ms = nullable(pipe(number(), minValue(0)));
|
|
7868
7854
|
var taskStats = strictObject({
|
|
7869
7855
|
/** Open tasks across every row. */
|
|
7870
|
-
open:
|
|
7871
|
-
created:
|
|
7872
|
-
closed:
|
|
7856
|
+
open: count,
|
|
7857
|
+
created: count,
|
|
7858
|
+
closed: count,
|
|
7873
7859
|
median_close_ms: ms,
|
|
7874
7860
|
mean_open_age_ms: ms,
|
|
7875
7861
|
rows: array(strictObject({
|
|
@@ -7878,20 +7864,20 @@ var taskStats = strictObject({
|
|
|
7878
7864
|
/** The chat reference, `meeting:<account>/<meeting>` or `project:<id>`. */
|
|
7879
7865
|
key: text,
|
|
7880
7866
|
name: nullable(text),
|
|
7881
|
-
open:
|
|
7882
|
-
created:
|
|
7883
|
-
closed:
|
|
7867
|
+
open: count,
|
|
7868
|
+
created: count,
|
|
7869
|
+
closed: count,
|
|
7884
7870
|
oldest_open_at: nullable(time),
|
|
7885
7871
|
median_close_ms: ms,
|
|
7886
7872
|
mean_open_age_ms: ms
|
|
7887
7873
|
}))
|
|
7888
7874
|
});
|
|
7889
7875
|
|
|
7890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7891
7877
|
var memberCount = strictObject({
|
|
7892
7878
|
day: pipe(text, isoDate()),
|
|
7893
|
-
participants: nullable(
|
|
7894
|
-
listed:
|
|
7879
|
+
participants: nullable(count),
|
|
7880
|
+
listed: count,
|
|
7895
7881
|
complete: boolean()
|
|
7896
7882
|
});
|
|
7897
7883
|
var trackedChat = strictObject({
|
|
@@ -7910,9 +7896,9 @@ var chatTracking = strictObject({
|
|
|
7910
7896
|
tracked: boolean()
|
|
7911
7897
|
});
|
|
7912
7898
|
|
|
7913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7914
7900
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7915
|
-
var contactSync = strictObject({ added:
|
|
7901
|
+
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7916
7902
|
var profileFields = {
|
|
7917
7903
|
usernames: array(text),
|
|
7918
7904
|
birthday: optional(nullable(text)),
|
|
@@ -7930,7 +7916,7 @@ var profileFields = {
|
|
|
7930
7916
|
seen: optional(text),
|
|
7931
7917
|
contact: optional(boolean()),
|
|
7932
7918
|
mutual_contact: optional(boolean()),
|
|
7933
|
-
common_chats_count: optional(nullable(
|
|
7919
|
+
common_chats_count: optional(nullable(count)),
|
|
7934
7920
|
registered: optional(nullable(strictObject({
|
|
7935
7921
|
at: text,
|
|
7936
7922
|
source: picklist(["telegram", "max", "estimate"]),
|
|
@@ -7948,7 +7934,7 @@ var profileFields = {
|
|
|
7948
7934
|
}))
|
|
7949
7935
|
};
|
|
7950
7936
|
|
|
7951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7952
7938
|
var contact = strictObject({
|
|
7953
7939
|
ref: reference,
|
|
7954
7940
|
id,
|
|
@@ -7967,7 +7953,7 @@ var contact = strictObject({
|
|
|
7967
7953
|
chats: optional(array(strictObject({
|
|
7968
7954
|
...pick(chat, ["ref", "id", "title", "kind", "last_message_at"]).entries,
|
|
7969
7955
|
/** Their messages stored; a floor unless `complete`. */
|
|
7970
|
-
their_messages: optional(
|
|
7956
|
+
their_messages: optional(count),
|
|
7971
7957
|
first_at: optional(nullable(time)),
|
|
7972
7958
|
last_at: optional(nullable(time)),
|
|
7973
7959
|
/** The store holds the whole chat, so the count is the real one. */
|
|
@@ -7976,10 +7962,10 @@ var contact = strictObject({
|
|
|
7976
7962
|
/** `contacts show`: what the messenger says about them, or with `--offline` what the store saw of them. */
|
|
7977
7963
|
...partial(strictObject(profileFields)).entries,
|
|
7978
7964
|
/** `contacts show --with-notes`: the owner's private notes about them. */
|
|
7979
|
-
notes: optional(array(strictObject({ id, text, revision:
|
|
7965
|
+
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7980
7966
|
});
|
|
7981
7967
|
|
|
7982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7983
7969
|
var WEIGHTS = {
|
|
7984
7970
|
bot: 3,
|
|
7985
7971
|
scam: 3,
|
|
@@ -8004,7 +7990,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
8004
7990
|
var DIGITS = /\d{5,}/;
|
|
8005
7991
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
8006
7992
|
|
|
8007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
8008
7994
|
var linkedIdentity = strictObject({
|
|
8009
7995
|
provider: text,
|
|
8010
7996
|
id,
|
|
@@ -8020,20 +8006,20 @@ var linkedPerson = strictObject({ uid: id, name: nullable(text), identities: arr
|
|
|
8020
8006
|
var contactActivity = strictObject({
|
|
8021
8007
|
at: time,
|
|
8022
8008
|
subject: text,
|
|
8023
|
-
subject_id:
|
|
8009
|
+
subject_id: count,
|
|
8024
8010
|
role: text,
|
|
8025
8011
|
scope: text,
|
|
8026
8012
|
provider: nullable(text),
|
|
8027
8013
|
account: nullable(text),
|
|
8028
8014
|
chat_id: nullable(text),
|
|
8029
8015
|
locator: nullable(text),
|
|
8030
|
-
project_id: nullable(
|
|
8016
|
+
project_id: nullable(count)
|
|
8031
8017
|
});
|
|
8032
8018
|
var botReason = picklist(Object.keys(WEIGHTS));
|
|
8033
8019
|
var contactCheck = strictObject({
|
|
8034
8020
|
person: strictObject({ id, name: nullable(text), username: nullable(text), provider: text }),
|
|
8035
|
-
score:
|
|
8036
|
-
reasons: array(strictObject({ reason: botReason, weight:
|
|
8021
|
+
score: count,
|
|
8022
|
+
reasons: array(strictObject({ reason: botReason, weight: count, source: text, detail: optional(text) })),
|
|
8037
8023
|
registries: array(strictObject({
|
|
8038
8024
|
name: picklist(["cas", "lols"]),
|
|
8039
8025
|
answer: picklist(["listed", "clean", "unknown"]),
|
|
@@ -8045,7 +8031,7 @@ var contactCheck = strictObject({
|
|
|
8045
8031
|
checked_at: time
|
|
8046
8032
|
});
|
|
8047
8033
|
|
|
8048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
8049
8035
|
var quoted = strictObject({
|
|
8050
8036
|
id,
|
|
8051
8037
|
sender_id: nullable(id),
|
|
@@ -8124,9 +8110,9 @@ var message = strictObject({
|
|
|
8124
8110
|
thread_id: optional(id),
|
|
8125
8111
|
thread_root_id: optional(id),
|
|
8126
8112
|
reactions: optional(nullable(strictObject({
|
|
8127
|
-
counts: array(strictObject({ reaction: text, count
|
|
8113
|
+
counts: array(strictObject({ reaction: text, count })),
|
|
8128
8114
|
mine: nullable(text),
|
|
8129
|
-
total:
|
|
8115
|
+
total: count
|
|
8130
8116
|
}))),
|
|
8131
8117
|
scheduled_for: optional(time),
|
|
8132
8118
|
/** The owner starred it; only where the messenger has stars, and only when set. */
|
|
@@ -8164,7 +8150,7 @@ var message = strictObject({
|
|
|
8164
8150
|
provider_metadata: providerMetadata
|
|
8165
8151
|
});
|
|
8166
8152
|
|
|
8167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
8168
8154
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
8169
8155
|
var contextMessage = strictObject({
|
|
8170
8156
|
locator: reference,
|
|
@@ -8208,7 +8194,7 @@ var context = strictObject({
|
|
|
8208
8194
|
mentions: array(contextMessage),
|
|
8209
8195
|
/** Calendar events they are invited to, one occurrence per series. */
|
|
8210
8196
|
events: optional(strictObject({ upcoming: array(contextEvent), recent: array(contextEvent) })),
|
|
8211
|
-
limits: strictObject({ messages:
|
|
8197
|
+
limits: strictObject({ messages: count, bytes: count }),
|
|
8212
8198
|
complete: boolean(),
|
|
8213
8199
|
not_read: array(strictObject({
|
|
8214
8200
|
provider: text,
|
|
@@ -8277,23 +8263,23 @@ var contactMessages = strictObject({
|
|
|
8277
8263
|
complete: boolean(),
|
|
8278
8264
|
more: boolean()
|
|
8279
8265
|
})),
|
|
8280
|
-
limits: strictObject({ messages:
|
|
8266
|
+
limits: strictObject({ messages: count })
|
|
8281
8267
|
});
|
|
8282
8268
|
var contactContext = union([context, contactMessages]);
|
|
8283
8269
|
var coverage = strictObject({
|
|
8284
|
-
included:
|
|
8270
|
+
included: count,
|
|
8285
8271
|
has_more: boolean(),
|
|
8286
8272
|
cut_by: nullable(picklist(["limit", "bytes"]))
|
|
8287
8273
|
});
|
|
8288
8274
|
var meetingCue = strictObject({
|
|
8289
8275
|
reference,
|
|
8290
8276
|
fingerprint: text,
|
|
8291
|
-
transcript_id:
|
|
8277
|
+
transcript_id: count,
|
|
8292
8278
|
content_hash: nullable(text),
|
|
8293
|
-
position:
|
|
8294
|
-
start_ms:
|
|
8295
|
-
end_ms:
|
|
8296
|
-
speaker_participant_id: nullable(
|
|
8279
|
+
position: count,
|
|
8280
|
+
start_ms: count,
|
|
8281
|
+
end_ms: count,
|
|
8282
|
+
speaker_participant_id: nullable(count),
|
|
8297
8283
|
speaker_name: nullable(text),
|
|
8298
8284
|
text,
|
|
8299
8285
|
revision: picklist(["current", "superseded"])
|
|
@@ -8326,13 +8312,13 @@ var contactPreparation = strictObject({
|
|
|
8326
8312
|
project: nullable(reference),
|
|
8327
8313
|
updated_at: time
|
|
8328
8314
|
})),
|
|
8329
|
-
notes: array(strictObject({ ref: reference, title: nullable(text), text, revision:
|
|
8315
|
+
notes: array(strictObject({ ref: reference, title: nullable(text), text, revision: count, updated_at: time })),
|
|
8330
8316
|
meetings: array(strictObject({
|
|
8331
8317
|
reference,
|
|
8332
8318
|
cues: array(meetingCue),
|
|
8333
|
-
cue_coverage: strictObject({ included:
|
|
8319
|
+
cue_coverage: strictObject({ included: count, omitted: nullable(count), has_more: boolean() })
|
|
8334
8320
|
})),
|
|
8335
|
-
limits: strictObject({ items:
|
|
8321
|
+
limits: strictObject({ items: count, bytes: count }),
|
|
8336
8322
|
coverage: strictObject({
|
|
8337
8323
|
waiting: strictObject({
|
|
8338
8324
|
...coverage.entries,
|
|
@@ -8356,31 +8342,31 @@ var contactPreparation = strictObject({
|
|
|
8356
8342
|
...coverage.entries,
|
|
8357
8343
|
read: literal("every account of the store that saw them"),
|
|
8358
8344
|
accounts: array(text),
|
|
8359
|
-
pending:
|
|
8345
|
+
pending: count
|
|
8360
8346
|
})
|
|
8361
8347
|
})
|
|
8362
8348
|
})
|
|
8363
8349
|
});
|
|
8364
8350
|
|
|
8365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8366
8352
|
var contactNote = strictObject({
|
|
8367
8353
|
id,
|
|
8368
8354
|
/** The contact, as a `contact:` reference. */
|
|
8369
8355
|
contact: reference,
|
|
8370
8356
|
text,
|
|
8371
8357
|
/** Starts at 1; an edit names the revision it read. */
|
|
8372
|
-
revision:
|
|
8358
|
+
revision: count,
|
|
8373
8359
|
created_at: time,
|
|
8374
8360
|
updated_at: time
|
|
8375
8361
|
});
|
|
8376
8362
|
|
|
8377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8378
8364
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8379
8365
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8380
8366
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8381
|
-
var contactImport = strictObject({ operation_id: id, sent:
|
|
8367
|
+
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8382
8368
|
|
|
8383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8384
8370
|
var conversation = strictObject({
|
|
8385
8371
|
id,
|
|
8386
8372
|
chat: reference,
|
|
@@ -8388,23 +8374,23 @@ var conversation = strictObject({
|
|
|
8388
8374
|
first_message: reference,
|
|
8389
8375
|
started_at: time,
|
|
8390
8376
|
ended_at: time,
|
|
8391
|
-
messages_count:
|
|
8377
|
+
messages_count: count,
|
|
8392
8378
|
/** How many people wrote in it. */
|
|
8393
|
-
senders_count:
|
|
8379
|
+
senders_count: count,
|
|
8394
8380
|
built_at: time,
|
|
8395
|
-
rules_version:
|
|
8381
|
+
rules_version: count
|
|
8396
8382
|
});
|
|
8397
8383
|
|
|
8398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8399
8385
|
var conversationBuild = strictObject({
|
|
8400
8386
|
chat: id,
|
|
8401
|
-
messages:
|
|
8402
|
-
links:
|
|
8403
|
-
conversations:
|
|
8387
|
+
messages: count,
|
|
8388
|
+
links: count,
|
|
8389
|
+
conversations: count,
|
|
8404
8390
|
built_at: time,
|
|
8405
|
-
rules_version:
|
|
8391
|
+
rules_version: count
|
|
8406
8392
|
});
|
|
8407
|
-
var chatEmbedding = strictObject({ chat: id, model: text, embedded:
|
|
8393
|
+
var chatEmbedding = strictObject({ chat: id, model: text, embedded: count, skipped: count });
|
|
8408
8394
|
var conversationPreparation = strictObject({
|
|
8409
8395
|
model: text,
|
|
8410
8396
|
model_available: boolean(),
|
|
@@ -8412,7 +8398,7 @@ var conversationPreparation = strictObject({
|
|
|
8412
8398
|
embedded: array(chatEmbedding),
|
|
8413
8399
|
left: array(strictObject({ chat: id, needs: picklist(["build", "embed"]) })),
|
|
8414
8400
|
/** Messages given their own vector, which `search messages --discover` reads, and how many still lack one. */
|
|
8415
|
-
messages: optional(strictObject({ embedded:
|
|
8401
|
+
messages: optional(strictObject({ embedded: count, left: count }))
|
|
8416
8402
|
});
|
|
8417
8403
|
var catchUpPreparation = strictObject({
|
|
8418
8404
|
complete: boolean(),
|
|
@@ -8420,17 +8406,17 @@ var catchUpPreparation = strictObject({
|
|
|
8420
8406
|
prepared: optional(conversationPreparation)
|
|
8421
8407
|
});
|
|
8422
8408
|
|
|
8423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8424
8410
|
var conversationDetails = union([
|
|
8425
8411
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8426
8412
|
message
|
|
8427
8413
|
]);
|
|
8428
8414
|
var conversationBatchStatus = strictObject({
|
|
8429
8415
|
chat: id,
|
|
8430
|
-
messages:
|
|
8431
|
-
characters:
|
|
8432
|
-
batches:
|
|
8433
|
-
tokens_estimate:
|
|
8416
|
+
messages: count,
|
|
8417
|
+
characters: count,
|
|
8418
|
+
batches: count,
|
|
8419
|
+
tokens_estimate: count
|
|
8434
8420
|
});
|
|
8435
8421
|
var batchMessage = strictObject({
|
|
8436
8422
|
id,
|
|
@@ -8449,17 +8435,17 @@ var conversationBatch = union([
|
|
|
8449
8435
|
batch: id,
|
|
8450
8436
|
chat: id,
|
|
8451
8437
|
messages: array(batchMessage),
|
|
8452
|
-
remaining: strictObject({ messages:
|
|
8438
|
+
remaining: strictObject({ messages: count, characters: count })
|
|
8453
8439
|
})
|
|
8454
8440
|
]);
|
|
8455
8441
|
var analyzedConversation = strictObject({
|
|
8456
8442
|
chat: id,
|
|
8457
8443
|
model: text,
|
|
8458
|
-
batches:
|
|
8459
|
-
stored:
|
|
8460
|
-
tokens:
|
|
8461
|
-
reserved_tokens:
|
|
8462
|
-
max_tokens:
|
|
8444
|
+
batches: count,
|
|
8445
|
+
stored: count,
|
|
8446
|
+
tokens: count,
|
|
8447
|
+
reserved_tokens: count,
|
|
8448
|
+
max_tokens: count,
|
|
8463
8449
|
stopped: picklist(["complete", "budget"]),
|
|
8464
8450
|
remaining: conversationBatchStatus,
|
|
8465
8451
|
built: optional(conversationBuild)
|
|
@@ -8467,25 +8453,25 @@ var analyzedConversation = strictObject({
|
|
|
8467
8453
|
var conversationBuildResult = union([conversationBuild, conversationPreparation, analyzedConversation]);
|
|
8468
8454
|
var conversationEmbedding = union([chatEmbedding, conversationPreparation]);
|
|
8469
8455
|
var conversationChange = union([
|
|
8470
|
-
strictObject({ chat: id, stored:
|
|
8471
|
-
strictObject({ chat: id, cleared:
|
|
8456
|
+
strictObject({ chat: id, stored: count }),
|
|
8457
|
+
strictObject({ chat: id, cleared: count })
|
|
8472
8458
|
]);
|
|
8473
8459
|
var conversationReadiness = strictObject({
|
|
8474
8460
|
chat: id,
|
|
8475
8461
|
model: text,
|
|
8476
8462
|
state: picklist(["ready", "stale", "partial", "words-only", "not-built"]),
|
|
8477
|
-
graph: nullable(strictObject({ built_at: time, rules_version: nullable(
|
|
8478
|
-
pending: strictObject({ new:
|
|
8479
|
-
vectors: strictObject({ chunks:
|
|
8463
|
+
graph: nullable(strictObject({ built_at: time, rules_version: nullable(count), outdated_rules: boolean() })),
|
|
8464
|
+
pending: strictObject({ new: count, edited: count, deleted: count }),
|
|
8465
|
+
vectors: strictObject({ chunks: count, current: count, stale: count, missing: count })
|
|
8480
8466
|
});
|
|
8481
8467
|
var conversationEmbeddingStatus = strictObject({
|
|
8482
8468
|
chat: id,
|
|
8483
8469
|
model: text,
|
|
8484
|
-
chunks:
|
|
8485
|
-
embedded:
|
|
8486
|
-
left:
|
|
8470
|
+
chunks: count,
|
|
8471
|
+
embedded: count,
|
|
8472
|
+
left: count,
|
|
8487
8473
|
estimate_seconds: nullable(number()),
|
|
8488
|
-
tokens_at_most:
|
|
8474
|
+
tokens_at_most: count,
|
|
8489
8475
|
price_at_most: optional(strictObject({ usd: number(), read: text }))
|
|
8490
8476
|
});
|
|
8491
8477
|
var summary = strictObject({
|
|
@@ -8494,10 +8480,10 @@ var summary = strictObject({
|
|
|
8494
8480
|
first_message_id: id,
|
|
8495
8481
|
first_at: time,
|
|
8496
8482
|
last_at: time,
|
|
8497
|
-
message_count:
|
|
8498
|
-
senders:
|
|
8483
|
+
message_count: count,
|
|
8484
|
+
senders: count,
|
|
8499
8485
|
built_at: time,
|
|
8500
|
-
algorithm_version:
|
|
8486
|
+
algorithm_version: count
|
|
8501
8487
|
});
|
|
8502
8488
|
var conversationHit = strictObject({
|
|
8503
8489
|
source: optional(strictObject({ provider: text, account: id })),
|
|
@@ -8510,7 +8496,7 @@ var conversationHit = strictObject({
|
|
|
8510
8496
|
stale: boolean()
|
|
8511
8497
|
});
|
|
8512
8498
|
|
|
8513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8514
8500
|
var counters = strictObject({
|
|
8515
8501
|
cutoff: time,
|
|
8516
8502
|
max_age_ms: milliseconds,
|
|
@@ -8528,7 +8514,7 @@ var counterRefresh = strictObject({
|
|
|
8528
8514
|
counters: array(text),
|
|
8529
8515
|
supported: array(text),
|
|
8530
8516
|
unsupported: array(text),
|
|
8531
|
-
max_messages:
|
|
8517
|
+
max_messages: count,
|
|
8532
8518
|
time_ms: milliseconds,
|
|
8533
8519
|
results: optional(array(strictObject({
|
|
8534
8520
|
ref: reference,
|
|
@@ -8540,14 +8526,14 @@ var counterRefresh = strictObject({
|
|
|
8540
8526
|
complete: optional(boolean())
|
|
8541
8527
|
});
|
|
8542
8528
|
|
|
8543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8544
8530
|
var document = strictObject({
|
|
8545
8531
|
ref: reference,
|
|
8546
8532
|
id,
|
|
8547
8533
|
title: nullable(text),
|
|
8548
8534
|
url: nullable(text),
|
|
8549
8535
|
mime: optional(text),
|
|
8550
|
-
size: optional(
|
|
8536
|
+
size: optional(count),
|
|
8551
8537
|
/** When its source last changed it. */
|
|
8552
8538
|
source_modified_at: nullable(time),
|
|
8553
8539
|
/** When the store last read it; not the source's time. */
|
|
@@ -8555,7 +8541,7 @@ var document = strictObject({
|
|
|
8555
8541
|
owners: optional(array(text))
|
|
8556
8542
|
});
|
|
8557
8543
|
|
|
8558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8559
8545
|
var documentLink = strictObject({
|
|
8560
8546
|
ref: reference,
|
|
8561
8547
|
url: text,
|
|
@@ -8566,7 +8552,7 @@ var documentLink = strictObject({
|
|
|
8566
8552
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8567
8553
|
});
|
|
8568
8554
|
|
|
8569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8570
8556
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8571
8557
|
var contribution = strictObject({
|
|
8572
8558
|
message: evidenceMessage,
|
|
@@ -8596,7 +8582,7 @@ var retentionStay = strictObject({
|
|
|
8596
8582
|
});
|
|
8597
8583
|
var evidence = union([contribution, retentionStay]);
|
|
8598
8584
|
|
|
8599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8600
8586
|
var fact = strictObject({
|
|
8601
8587
|
ref: reference,
|
|
8602
8588
|
id,
|
|
@@ -8626,7 +8612,7 @@ var fact = strictObject({
|
|
|
8626
8612
|
updated_at: time
|
|
8627
8613
|
});
|
|
8628
8614
|
|
|
8629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8630
8616
|
var hit = strictObject({
|
|
8631
8617
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
|
|
8632
8618
|
ref: reference,
|
|
@@ -8646,7 +8632,7 @@ var hit = strictObject({
|
|
|
8646
8632
|
sender_ref: optional(nullable(reference)),
|
|
8647
8633
|
found_by: optional(array(picklist(["title", "words", "meaning"]))),
|
|
8648
8634
|
/** How far into the meeting the passage is. */
|
|
8649
|
-
offset_ms: optional(nullable(
|
|
8635
|
+
offset_ms: optional(nullable(count)),
|
|
8650
8636
|
/** A meeting passage's place: its transcript, chat or summary. */
|
|
8651
8637
|
scope: optional(picklist(["transcript", "chat", "summary"])),
|
|
8652
8638
|
/** A meeting transcript hit's cue, which `meetings passage` opens with the lines around it. */
|
|
@@ -8654,8 +8640,8 @@ var hit = strictObject({
|
|
|
8654
8640
|
/** A meeting transcript hit's transcript language (`ru`, `en`…), `null` when unknown. */
|
|
8655
8641
|
language: optional(nullable(text)),
|
|
8656
8642
|
/** A meeting transcript hit's line, from 1, of `lines_total` lines in its transcript. */
|
|
8657
|
-
line: optional(pipe(
|
|
8658
|
-
lines_total: optional(
|
|
8643
|
+
line: optional(pipe(count, minValue(1))),
|
|
8644
|
+
lines_total: optional(count),
|
|
8659
8645
|
/** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
|
|
8660
8646
|
id: optional(pipe(string(), minLength(1))),
|
|
8661
8647
|
/** A message's files; absent when it has none. */
|
|
@@ -8664,7 +8650,7 @@ var hit = strictObject({
|
|
|
8664
8650
|
untrusted
|
|
8665
8651
|
});
|
|
8666
8652
|
|
|
8667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8668
8654
|
var identity = strictObject({
|
|
8669
8655
|
ref: reference,
|
|
8670
8656
|
provider: text,
|
|
@@ -8677,22 +8663,22 @@ var identity = strictObject({
|
|
|
8677
8663
|
person: optional(nullable(reference))
|
|
8678
8664
|
});
|
|
8679
8665
|
|
|
8680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8681
8667
|
var imageEmbedding = strictObject({
|
|
8682
8668
|
model: text,
|
|
8683
|
-
embedded:
|
|
8684
|
-
skipped:
|
|
8685
|
-
failed:
|
|
8669
|
+
embedded: count,
|
|
8670
|
+
skipped: count,
|
|
8671
|
+
failed: count,
|
|
8686
8672
|
more: boolean()
|
|
8687
8673
|
});
|
|
8688
8674
|
|
|
8689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8690
8676
|
import { spawn } from "node:child_process";
|
|
8691
8677
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8692
8678
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8693
8679
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8694
8680
|
|
|
8695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8696
8682
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8697
8683
|
const total = input.total ?? null;
|
|
8698
8684
|
const updated = input.updatedAt ?? null;
|
|
@@ -8708,7 +8694,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8708
8694
|
};
|
|
8709
8695
|
}, "progressOf");
|
|
8710
8696
|
|
|
8711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8712
8698
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8713
8699
|
const run = currentRun();
|
|
8714
8700
|
const trace = traceId ?? run.traceId;
|
|
@@ -8722,7 +8708,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8722
8708
|
}));
|
|
8723
8709
|
}, "recordLogFor");
|
|
8724
8710
|
|
|
8725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8726
8712
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8727
8713
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8728
8714
|
const out = openSync(log, "a", 384);
|
|
@@ -8877,22 +8863,22 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8877
8863
|
return { job: id6, pid, chat: input.chat, log };
|
|
8878
8864
|
}, "startArchiveJob");
|
|
8879
8865
|
|
|
8880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8881
8867
|
var problem = strictObject({ code: text, message: text });
|
|
8882
8868
|
var job = strictObject({
|
|
8883
8869
|
id,
|
|
8884
8870
|
/** The chat as the sync was given it. */
|
|
8885
8871
|
chat: text,
|
|
8886
8872
|
state: picklist(JOB_STATES),
|
|
8887
|
-
pid:
|
|
8873
|
+
pid: count,
|
|
8888
8874
|
started_at: time,
|
|
8889
8875
|
finished_at: optional(time),
|
|
8890
8876
|
/** Messages fetched so far, or in all once it finished. */
|
|
8891
|
-
fetched:
|
|
8877
|
+
fetched: count,
|
|
8892
8878
|
/** The `--limit` the sync was started with: how many messages it may fetch. */
|
|
8893
|
-
message_limit: optional(
|
|
8894
|
-
page_size: optional(
|
|
8895
|
-
last: optional(
|
|
8879
|
+
message_limit: optional(count),
|
|
8880
|
+
page_size: optional(count),
|
|
8881
|
+
last: optional(count),
|
|
8896
8882
|
/** Whether the sync reached its window; set once it finished. */
|
|
8897
8883
|
complete: optional(boolean()),
|
|
8898
8884
|
/** Why a partial job stopped short; `store jobs retry` resumes it. */
|
|
@@ -8900,7 +8886,7 @@ var job = strictObject({
|
|
|
8900
8886
|
error: optional(problem)
|
|
8901
8887
|
});
|
|
8902
8888
|
|
|
8903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8904
8890
|
var joinRequest = strictObject({
|
|
8905
8891
|
person_id: id,
|
|
8906
8892
|
name: nullable(text),
|
|
@@ -8911,37 +8897,7 @@ var joinRequest = strictObject({
|
|
|
8911
8897
|
about: optional(text)
|
|
8912
8898
|
});
|
|
8913
8899
|
|
|
8914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8915
|
-
var organization = strictObject({
|
|
8916
|
-
id,
|
|
8917
|
-
ref: reference,
|
|
8918
|
-
kind: picklist(["company", "team", "family", "community"]),
|
|
8919
|
-
name: text,
|
|
8920
|
-
scope: picklist(["personal", "work"]),
|
|
8921
|
-
created_at: time
|
|
8922
|
-
});
|
|
8923
|
-
var project = strictObject({
|
|
8924
|
-
id,
|
|
8925
|
-
ref: reference,
|
|
8926
|
-
key: text,
|
|
8927
|
-
name: text,
|
|
8928
|
-
kind: picklist(["project", "inbox"]),
|
|
8929
|
-
type: picklist(["work", "client", "personal", "oss", "other"]),
|
|
8930
|
-
organization_id: nullable(id),
|
|
8931
|
-
scope: picklist(["personal", "work"]),
|
|
8932
|
-
created_at: time
|
|
8933
|
-
});
|
|
8934
|
-
var reminder = strictObject({
|
|
8935
|
-
id,
|
|
8936
|
-
task: text,
|
|
8937
|
-
due_at: time,
|
|
8938
|
-
timezone: text,
|
|
8939
|
-
state: picklist(["pending", "leased", "delivered", "cancelled"]),
|
|
8940
|
-
revision: number(),
|
|
8941
|
-
receipt: nullable(text)
|
|
8942
|
-
});
|
|
8943
|
-
|
|
8944
|
-
// 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/entities/list-results.js
|
|
8900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8945
8901
|
var botProfile = strictObject({
|
|
8946
8902
|
name: text,
|
|
8947
8903
|
token: text,
|
|
@@ -9009,7 +8965,7 @@ var stickerInventory = strictObject({
|
|
|
9009
8965
|
url: optional(nullable(text))
|
|
9010
8966
|
});
|
|
9011
8967
|
|
|
9012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
9013
8969
|
var pollVote = strictObject({
|
|
9014
8970
|
person_id: id,
|
|
9015
8971
|
name: nullable(text),
|
|
@@ -9019,7 +8975,7 @@ var pollVote = strictObject({
|
|
|
9019
8975
|
voted_at: time
|
|
9020
8976
|
});
|
|
9021
8977
|
|
|
9022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
9023
8979
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
9024
8980
|
var observation = strictObject({
|
|
9025
8981
|
value: pipe(number(), minValue(0)),
|
|
@@ -9048,35 +9004,35 @@ var messageEvent = variant("event", [
|
|
|
9048
9004
|
strictObject({ event: literal("chat_event"), chat_id: id, chat_title: nullable(text), change: chatEvent })
|
|
9049
9005
|
]);
|
|
9050
9006
|
var watchItem = union([watchedMessage, messageEvent]);
|
|
9051
|
-
var totals = record(text,
|
|
9007
|
+
var totals = record(text, count);
|
|
9052
9008
|
var serveSummary = strictObject({
|
|
9053
9009
|
profile: text,
|
|
9054
9010
|
started_at: time,
|
|
9055
9011
|
stopped_at: time,
|
|
9056
9012
|
kept: totals,
|
|
9057
9013
|
replies: optional(strictObject({ sent: totals, skipped: totals, tasks: optional(totals) })),
|
|
9058
|
-
members: optional(strictObject({ fetched:
|
|
9059
|
-
stems: optional(strictObject({ stemmed:
|
|
9060
|
-
caught_up: optional(strictObject({ chats:
|
|
9061
|
-
tasks: optional(strictObject({ added:
|
|
9014
|
+
members: optional(strictObject({ fetched: count, failed: count })),
|
|
9015
|
+
stems: optional(strictObject({ stemmed: count })),
|
|
9016
|
+
caught_up: optional(strictObject({ chats: count, fetched: count, failed: count, stopped: boolean() })),
|
|
9017
|
+
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
9062
9018
|
});
|
|
9063
9019
|
|
|
9064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
9065
9021
|
var mailCounts = strictObject({
|
|
9066
9022
|
by: picklist(["day", "week", "sender"]),
|
|
9067
|
-
received:
|
|
9068
|
-
sent:
|
|
9023
|
+
received: count,
|
|
9024
|
+
sent: count,
|
|
9069
9025
|
rows: array(strictObject({
|
|
9070
9026
|
/** `YYYY-MM-DD`, or the sender's address. */
|
|
9071
9027
|
key: text,
|
|
9072
9028
|
name: nullable(text),
|
|
9073
|
-
received:
|
|
9029
|
+
received: count,
|
|
9074
9030
|
/** Always 0 by sender: the owner sends that mail. */
|
|
9075
|
-
sent:
|
|
9031
|
+
sent: count
|
|
9076
9032
|
}))
|
|
9077
9033
|
});
|
|
9078
9034
|
|
|
9079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
9080
9036
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
9081
9037
|
var base = { id, evidence: array(evidence2) };
|
|
9082
9038
|
var finding = variant("kind", [
|
|
@@ -9103,7 +9059,9 @@ var finding = variant("kind", [
|
|
|
9103
9059
|
project: optional(reference),
|
|
9104
9060
|
subject: optional(reference),
|
|
9105
9061
|
type: picklist(FACT_TYPES),
|
|
9106
|
-
statement: text
|
|
9062
|
+
statement: text,
|
|
9063
|
+
/** Every new finding gives one; a batch staged before reason was needed on every kind has none. */
|
|
9064
|
+
reason: optional(text)
|
|
9107
9065
|
}),
|
|
9108
9066
|
strictObject({
|
|
9109
9067
|
...base,
|
|
@@ -9121,7 +9079,8 @@ var finding = variant("kind", [
|
|
|
9121
9079
|
scope: picklist(MEMORY_SCOPES),
|
|
9122
9080
|
body: text,
|
|
9123
9081
|
subject: optional(reference),
|
|
9124
|
-
project: optional(reference)
|
|
9082
|
+
project: optional(reference),
|
|
9083
|
+
reason: optional(text)
|
|
9125
9084
|
}),
|
|
9126
9085
|
strictObject({ ...base, kind: literal("link"), from: reference, to: reference, reason: text }),
|
|
9127
9086
|
strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) }),
|
|
@@ -9217,29 +9176,29 @@ var mailFindings = strictObject({
|
|
|
9217
9176
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
|
|
9218
9177
|
});
|
|
9219
9178
|
|
|
9220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9221
9180
|
var mediaArchive = strictObject({
|
|
9222
9181
|
directory: text,
|
|
9223
|
-
chats:
|
|
9224
|
-
saved:
|
|
9225
|
-
existing:
|
|
9182
|
+
chats: count,
|
|
9183
|
+
saved: count,
|
|
9184
|
+
existing: count,
|
|
9226
9185
|
complete: boolean()
|
|
9227
9186
|
});
|
|
9228
9187
|
var mediaArchiveCheck = strictObject({
|
|
9229
9188
|
valid: boolean(),
|
|
9230
|
-
checked:
|
|
9189
|
+
checked: count,
|
|
9231
9190
|
files: array(strictObject({ path: text, valid: boolean(), archive_directory: optional(text) }))
|
|
9232
9191
|
});
|
|
9233
9192
|
var mediaArchiveMove = strictObject({
|
|
9234
9193
|
directory: text,
|
|
9235
9194
|
archive_directory: text,
|
|
9236
9195
|
before_time: time,
|
|
9237
|
-
selected:
|
|
9238
|
-
selected_bytes:
|
|
9239
|
-
moved:
|
|
9240
|
-
moved_bytes:
|
|
9241
|
-
already_archived:
|
|
9242
|
-
undated:
|
|
9196
|
+
selected: count,
|
|
9197
|
+
selected_bytes: count,
|
|
9198
|
+
moved: count,
|
|
9199
|
+
moved_bytes: count,
|
|
9200
|
+
already_archived: count,
|
|
9201
|
+
undated: count,
|
|
9243
9202
|
complete: boolean(),
|
|
9244
9203
|
dry_run: boolean()
|
|
9245
9204
|
});
|
|
@@ -9249,7 +9208,7 @@ var mediaArchiveTimer = union([
|
|
|
9249
9208
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9250
9209
|
]);
|
|
9251
9210
|
|
|
9252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9253
9212
|
var preparationId = pipe(string(), minLength(1));
|
|
9254
9213
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9255
9214
|
var preparationTime = nullable(isoTime);
|
|
@@ -9341,7 +9300,7 @@ var preparationMeeting = strictObject({
|
|
|
9341
9300
|
updated_at: isoTime
|
|
9342
9301
|
});
|
|
9343
9302
|
|
|
9344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9345
9304
|
var meetingEvidence = preparationEvidence;
|
|
9346
9305
|
var meetingPersonContext = strictObject({
|
|
9347
9306
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9363,7 +9322,7 @@ var meetingPersonContext = strictObject({
|
|
|
9363
9322
|
})
|
|
9364
9323
|
});
|
|
9365
9324
|
|
|
9366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9367
9326
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9368
9327
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9369
9328
|
var finding2 = variant("kind", [
|
|
@@ -9401,7 +9360,7 @@ var meetingFindings = strictObject({
|
|
|
9401
9360
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9402
9361
|
});
|
|
9403
9362
|
|
|
9404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9405
9364
|
var communicationCoverage = strictObject({
|
|
9406
9365
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9407
9366
|
query: string(),
|
|
@@ -9446,7 +9405,7 @@ var preparationCommunications = strictObject({
|
|
|
9446
9405
|
}))
|
|
9447
9406
|
});
|
|
9448
9407
|
|
|
9449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9450
9409
|
var meetingPreparation = strictObject({
|
|
9451
9410
|
communications: optional(preparationCommunications),
|
|
9452
9411
|
schema_version: literal(1),
|
|
@@ -9559,7 +9518,7 @@ var meetingPreparation = strictObject({
|
|
|
9559
9518
|
})
|
|
9560
9519
|
});
|
|
9561
9520
|
|
|
9562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9563
9522
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9564
9523
|
var id3 = pipe(string(), minLength(1));
|
|
9565
9524
|
var text3 = string();
|
|
@@ -9623,7 +9582,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9623
9582
|
})
|
|
9624
9583
|
});
|
|
9625
9584
|
|
|
9626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9627
9586
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9628
9587
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9629
9588
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9653,7 +9612,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9653
9612
|
})
|
|
9654
9613
|
});
|
|
9655
9614
|
|
|
9656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9657
9616
|
var text4 = string();
|
|
9658
9617
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9659
9618
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9670,7 +9629,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9670
9629
|
persistence: literal("proposal-only")
|
|
9671
9630
|
});
|
|
9672
9631
|
|
|
9673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9674
9633
|
var memory = strictObject({
|
|
9675
9634
|
ref: reference,
|
|
9676
9635
|
id,
|
|
@@ -9697,11 +9656,11 @@ var memory = strictObject({
|
|
|
9697
9656
|
updated_at: time
|
|
9698
9657
|
});
|
|
9699
9658
|
|
|
9700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9701
9660
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9702
9661
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9703
9662
|
var mention = strictObject({
|
|
9704
|
-
id:
|
|
9663
|
+
id: count,
|
|
9705
9664
|
kind,
|
|
9706
9665
|
value: text,
|
|
9707
9666
|
domain: nullable(text),
|
|
@@ -9719,34 +9678,34 @@ var mentionDetails = strictObject({
|
|
|
9719
9678
|
...mention.entries,
|
|
9720
9679
|
before: text,
|
|
9721
9680
|
after: text,
|
|
9722
|
-
same_value:
|
|
9681
|
+
same_value: count,
|
|
9723
9682
|
candidates: array(reference)
|
|
9724
9683
|
});
|
|
9725
|
-
var mentionDomain = strictObject({ domain: text, links:
|
|
9726
|
-
var place = strictObject({ id:
|
|
9684
|
+
var mentionDomain = strictObject({ domain: text, links: count, chats: count, first_at: time, last_at: time });
|
|
9685
|
+
var place = strictObject({ id: count, address: text, mentions: count });
|
|
9727
9686
|
var mentionDecision = strictObject({
|
|
9728
9687
|
kind,
|
|
9729
9688
|
value: text,
|
|
9730
9689
|
status,
|
|
9731
9690
|
target: nullable(reference),
|
|
9732
|
-
mentions:
|
|
9691
|
+
mentions: count
|
|
9733
9692
|
});
|
|
9734
9693
|
var mentionRebuild = strictObject({
|
|
9735
|
-
messages:
|
|
9736
|
-
attachments:
|
|
9737
|
-
documents:
|
|
9738
|
-
notes:
|
|
9739
|
-
emails:
|
|
9740
|
-
mentions:
|
|
9694
|
+
messages: count,
|
|
9695
|
+
attachments: count,
|
|
9696
|
+
documents: count,
|
|
9697
|
+
notes: count,
|
|
9698
|
+
emails: count,
|
|
9699
|
+
mentions: count
|
|
9741
9700
|
});
|
|
9742
9701
|
|
|
9743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9744
9703
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9745
9704
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9746
9705
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9747
9706
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9748
9707
|
|
|
9749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9750
9709
|
var messageTranscript = strictObject({
|
|
9751
9710
|
message_id: id,
|
|
9752
9711
|
text,
|
|
@@ -9778,12 +9737,12 @@ var evidencePacket = strictObject({
|
|
|
9778
9737
|
kind: picklist(["chats", "news", "person"]),
|
|
9779
9738
|
source: strictObject({ provider: text, account: id, chat: id }),
|
|
9780
9739
|
fingerprint: fingerprint2,
|
|
9781
|
-
limits: strictObject({ messages:
|
|
9782
|
-
content_bytes:
|
|
9740
|
+
limits: strictObject({ messages: count, bytes: count }),
|
|
9741
|
+
content_bytes: count,
|
|
9783
9742
|
coverage: strictObject({
|
|
9784
|
-
provided:
|
|
9785
|
-
included:
|
|
9786
|
-
omitted:
|
|
9743
|
+
provided: count,
|
|
9744
|
+
included: count,
|
|
9745
|
+
omitted: count,
|
|
9787
9746
|
has_more: boolean(),
|
|
9788
9747
|
history: literal("unknown"),
|
|
9789
9748
|
truncated_by: nullable(picklist(["messages", "bytes"]))
|
|
@@ -9804,7 +9763,7 @@ var evidencePacket = strictObject({
|
|
|
9804
9763
|
}))
|
|
9805
9764
|
});
|
|
9806
9765
|
|
|
9807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9808
9767
|
var messageThread = strictObject({
|
|
9809
9768
|
ref: reference,
|
|
9810
9769
|
chat: id,
|
|
@@ -9817,24 +9776,24 @@ var messageThread = strictObject({
|
|
|
9817
9776
|
stale: boolean(),
|
|
9818
9777
|
built_at: nullable(time),
|
|
9819
9778
|
stopped: array(picklist(["hops", "messages", "bytes", "time", "links", "cycle", "aborted", "thread"])),
|
|
9820
|
-
bounds: strictObject({ max_hops:
|
|
9779
|
+
bounds: strictObject({ max_hops: count, max_messages: count, max_bytes: count, within_ms: count })
|
|
9821
9780
|
});
|
|
9822
9781
|
var messageContext = union([message, messageThread]);
|
|
9823
9782
|
|
|
9824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9825
9784
|
var messageCounts = strictObject({
|
|
9826
9785
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9827
|
-
total:
|
|
9786
|
+
total: count,
|
|
9828
9787
|
rows: array(strictObject({
|
|
9829
9788
|
/** The chat or sender id, or the calendar day or hour. */
|
|
9830
9789
|
key: text,
|
|
9831
9790
|
ref: optional(reference),
|
|
9832
9791
|
name: nullable(text),
|
|
9833
|
-
count
|
|
9792
|
+
count
|
|
9834
9793
|
}))
|
|
9835
9794
|
});
|
|
9836
9795
|
|
|
9837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9838
9797
|
var messageLink = strictObject({
|
|
9839
9798
|
ref: reference,
|
|
9840
9799
|
url: nullable(text),
|
|
@@ -9843,7 +9802,7 @@ var messageLink = strictObject({
|
|
|
9843
9802
|
reason: nullable(picklist(["unsupported_chat", "unsupported_provider", "offline"])),
|
|
9844
9803
|
/** The message's files, each with its own link where the messenger gives one; absent when it has none. */
|
|
9845
9804
|
files: optional(array(strictObject({
|
|
9846
|
-
position:
|
|
9805
|
+
position: count,
|
|
9847
9806
|
kind: text,
|
|
9848
9807
|
name: optional(text),
|
|
9849
9808
|
url: nullable(text),
|
|
@@ -9851,11 +9810,11 @@ var messageLink = strictObject({
|
|
|
9851
9810
|
})))
|
|
9852
9811
|
});
|
|
9853
9812
|
|
|
9854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9855
9814
|
var savedMessageFile = strictObject({
|
|
9856
9815
|
kind: text,
|
|
9857
9816
|
path: text,
|
|
9858
|
-
bytes:
|
|
9817
|
+
bytes: count,
|
|
9859
9818
|
existing: optional(literal(true))
|
|
9860
9819
|
});
|
|
9861
9820
|
var files = array(savedMessageFile);
|
|
@@ -9869,8 +9828,8 @@ var messageDownload = union([
|
|
|
9869
9828
|
strictObject({
|
|
9870
9829
|
files,
|
|
9871
9830
|
chat: nullable(id),
|
|
9872
|
-
saved:
|
|
9873
|
-
existing:
|
|
9831
|
+
saved: count,
|
|
9832
|
+
existing: count,
|
|
9874
9833
|
complete: boolean(),
|
|
9875
9834
|
batch: optional(batchResult),
|
|
9876
9835
|
stopped: optional(literal(true)),
|
|
@@ -9880,19 +9839,19 @@ var messageDownload = union([
|
|
|
9880
9839
|
var historyRange = strictObject({ from: number(), to: number() });
|
|
9881
9840
|
var messageSyncEstimate = strictObject({
|
|
9882
9841
|
chat: id,
|
|
9883
|
-
held:
|
|
9842
|
+
held: count,
|
|
9884
9843
|
ranges: array(historyRange),
|
|
9885
|
-
missing: nullable(
|
|
9886
|
-
requests: nullable(
|
|
9887
|
-
runs: nullable(
|
|
9888
|
-
seconds: nullable(
|
|
9844
|
+
missing: nullable(count),
|
|
9845
|
+
requests: nullable(count),
|
|
9846
|
+
runs: nullable(count),
|
|
9847
|
+
seconds: nullable(count)
|
|
9889
9848
|
});
|
|
9890
9849
|
var tasks = optional(strictObject({
|
|
9891
|
-
added:
|
|
9892
|
-
closed:
|
|
9893
|
-
review:
|
|
9894
|
-
held: optional(
|
|
9895
|
-
held_chats: optional(
|
|
9850
|
+
added: count,
|
|
9851
|
+
closed: count,
|
|
9852
|
+
review: count,
|
|
9853
|
+
held: optional(count),
|
|
9854
|
+
held_chats: optional(count)
|
|
9896
9855
|
}));
|
|
9897
9856
|
var historyLimited = picklist(["group_too_large", "older_than_window"]);
|
|
9898
9857
|
var messageSyncChat = strictObject({
|
|
@@ -9900,9 +9859,9 @@ var messageSyncChat = strictObject({
|
|
|
9900
9859
|
resume: optional(strictObject({ before: optional(text) })),
|
|
9901
9860
|
prepared: optional(catchUpPreparation),
|
|
9902
9861
|
window_complete: optional(boolean()),
|
|
9903
|
-
requests: optional(
|
|
9862
|
+
requests: optional(count),
|
|
9904
9863
|
chat: nullable(id),
|
|
9905
|
-
fetched:
|
|
9864
|
+
fetched: count,
|
|
9906
9865
|
complete: boolean(),
|
|
9907
9866
|
ranges: array(historyRange),
|
|
9908
9867
|
reached_since: optional(literal(true)),
|
|
@@ -9916,14 +9875,14 @@ var messageSyncChat = strictObject({
|
|
|
9916
9875
|
});
|
|
9917
9876
|
var messageSyncAll = strictObject({
|
|
9918
9877
|
batch: optional(batchResult),
|
|
9919
|
-
chats:
|
|
9920
|
-
fetched:
|
|
9878
|
+
chats: count,
|
|
9879
|
+
fetched: count,
|
|
9921
9880
|
complete: boolean(),
|
|
9922
9881
|
stopped: optional(literal(true)),
|
|
9923
9882
|
items: array(strictObject({
|
|
9924
9883
|
chat: id,
|
|
9925
9884
|
title: nullable(text),
|
|
9926
|
-
fetched:
|
|
9885
|
+
fetched: count,
|
|
9927
9886
|
complete: boolean(),
|
|
9928
9887
|
current: optional(literal(true)),
|
|
9929
9888
|
stopped: optional(literal(true)),
|
|
@@ -9932,13 +9891,13 @@ var messageSyncAll = strictObject({
|
|
|
9932
9891
|
limited: optional(historyLimited)
|
|
9933
9892
|
})),
|
|
9934
9893
|
/** How many chats the history limits left unread (big groups) or read only to the window's start. */
|
|
9935
|
-
limited: optional(strictObject({ group_too_large:
|
|
9894
|
+
limited: optional(strictObject({ group_too_large: count, older_than_window: count })),
|
|
9936
9895
|
tasks
|
|
9937
9896
|
});
|
|
9938
|
-
var messageSyncStarted = strictObject({ job: id, pid:
|
|
9897
|
+
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9939
9898
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9940
9899
|
|
|
9941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9942
9901
|
var messageWrite = strictObject({
|
|
9943
9902
|
operation_id: id,
|
|
9944
9903
|
message,
|
|
@@ -9953,7 +9912,7 @@ var draftWrite = strictObject({
|
|
|
9953
9912
|
});
|
|
9954
9913
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9955
9914
|
|
|
9956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9957
9916
|
var model2 = strictObject({
|
|
9958
9917
|
id,
|
|
9959
9918
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9962,7 +9921,7 @@ var model2 = strictObject({
|
|
|
9962
9921
|
languages: text,
|
|
9963
9922
|
licence: optional(text),
|
|
9964
9923
|
/** What its files take on disk once downloaded. */
|
|
9965
|
-
size_bytes:
|
|
9924
|
+
size_bytes: count,
|
|
9966
9925
|
downloaded: boolean(),
|
|
9967
9926
|
/** The one used when no model is named. */
|
|
9968
9927
|
default: boolean(),
|
|
@@ -9970,7 +9929,7 @@ var model2 = strictObject({
|
|
|
9970
9929
|
path: text
|
|
9971
9930
|
});
|
|
9972
9931
|
|
|
9973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9974
9933
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9975
9934
|
var modelKey = strictObject({
|
|
9976
9935
|
provider: text,
|
|
@@ -9980,7 +9939,7 @@ var modelKey = strictObject({
|
|
|
9980
9939
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9981
9940
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9982
9941
|
|
|
9983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
9984
9943
|
var link = {
|
|
9985
9944
|
target_text: nullable(text),
|
|
9986
9945
|
kind: text,
|
|
@@ -9999,7 +9958,7 @@ var note = strictObject({
|
|
|
9999
9958
|
title: nullable(text),
|
|
10000
9959
|
text,
|
|
10001
9960
|
/** Raises on every edit; `notes edit --revision` takes it, so an edit made meanwhile is refused, not lost. */
|
|
10002
|
-
revision:
|
|
9961
|
+
revision: count,
|
|
10003
9962
|
/** A file's front matter as parsed, keys as the file writes them; null for a note without it. */
|
|
10004
9963
|
front_matter: nullable(record(string(), unknown())),
|
|
10005
9964
|
/** The hash of a file's bytes when last imported; null for a note written here. */
|
|
@@ -10021,7 +9980,7 @@ var note = strictObject({
|
|
|
10021
9980
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
10022
9981
|
});
|
|
10023
9982
|
|
|
10024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
10025
9984
|
var versus = strictObject({ current: number(), previous: number() });
|
|
10026
9985
|
var person = { person_ref: reference, name: nullable(text) };
|
|
10027
9986
|
var graph = strictObject({
|
|
@@ -10039,54 +9998,54 @@ var officialStats = strictObject({
|
|
|
10039
9998
|
until: time,
|
|
10040
9999
|
totals: record(string(), versus),
|
|
10041
10000
|
top: optional(strictObject({
|
|
10042
|
-
posters: array(strictObject({ ...person, messages:
|
|
10043
|
-
admins: array(strictObject({ ...person, deleted:
|
|
10044
|
-
inviters: array(strictObject({ ...person, invited:
|
|
10001
|
+
posters: array(strictObject({ ...person, messages: count, average_chars: number() })),
|
|
10002
|
+
admins: array(strictObject({ ...person, deleted: count, removed: count, banned: count })),
|
|
10003
|
+
inviters: array(strictObject({ ...person, invited: count }))
|
|
10045
10004
|
})),
|
|
10046
|
-
notifications: optional(strictObject({ enabled:
|
|
10005
|
+
notifications: optional(strictObject({ enabled: count, total: count })),
|
|
10047
10006
|
recent_posts: optional(array(strictObject({
|
|
10048
10007
|
kind: picklist(["message", "story"]),
|
|
10049
10008
|
id,
|
|
10050
|
-
views:
|
|
10051
|
-
forwards:
|
|
10052
|
-
reactions:
|
|
10009
|
+
views: count,
|
|
10010
|
+
forwards: count,
|
|
10011
|
+
reactions: count
|
|
10053
10012
|
}))),
|
|
10054
10013
|
/** A graph the messenger did not give is `{ error }`; the others still answer. */
|
|
10055
10014
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
10056
10015
|
});
|
|
10057
10016
|
|
|
10058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
10059
10018
|
var person2 = strictObject({
|
|
10060
10019
|
ref: reference,
|
|
10061
10020
|
name: nullable(text),
|
|
10062
10021
|
identities: optional(array(identity))
|
|
10063
10022
|
});
|
|
10064
10023
|
|
|
10065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
10066
10025
|
var poll = strictObject({
|
|
10067
10026
|
chat_id: id,
|
|
10068
10027
|
message_id: id,
|
|
10069
10028
|
question: text,
|
|
10070
|
-
answers: array(strictObject({ id, text, voters: nullable(
|
|
10029
|
+
answers: array(strictObject({ id, text, voters: nullable(count), chosen: boolean() })),
|
|
10071
10030
|
closed: boolean(),
|
|
10072
10031
|
multiple: boolean(),
|
|
10073
10032
|
anonymous: boolean(),
|
|
10074
|
-
voters: nullable(
|
|
10033
|
+
voters: nullable(count),
|
|
10075
10034
|
quiz: optional(boolean()),
|
|
10076
10035
|
revote: optional(boolean()),
|
|
10077
10036
|
creator: optional(boolean())
|
|
10078
10037
|
});
|
|
10079
10038
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10080
10039
|
|
|
10081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10082
10041
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10083
10042
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10084
10043
|
|
|
10085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10086
10045
|
var figures = record(string(), number());
|
|
10087
10046
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10088
10047
|
var rankingRow = strictObject({
|
|
10089
|
-
rank:
|
|
10048
|
+
rank: count,
|
|
10090
10049
|
/** The message's locator, or the author's `contact:` reference. */
|
|
10091
10050
|
ref: reference,
|
|
10092
10051
|
/** The message or person id, as `stats * evidence` takes it. */
|
|
@@ -10097,10 +10056,10 @@ var rankingRow = strictObject({
|
|
|
10097
10056
|
kind: nullable(text),
|
|
10098
10057
|
value: number(),
|
|
10099
10058
|
components: record(string(), nullable(number())),
|
|
10100
|
-
messages:
|
|
10101
|
-
known_reactions:
|
|
10102
|
-
unknown_reactions:
|
|
10103
|
-
reactions: optional(array(strictObject({ reaction: string(), count
|
|
10059
|
+
messages: count,
|
|
10060
|
+
known_reactions: count,
|
|
10061
|
+
unknown_reactions: count,
|
|
10062
|
+
reactions: optional(array(strictObject({ reaction: string(), count }))),
|
|
10104
10063
|
score: nullable(strictObject({ score: number(), normalized: figures, contributions: figures })),
|
|
10105
10064
|
quality: strictObject({
|
|
10106
10065
|
reactions: picklist(["known", "partial", "unknown"]),
|
|
@@ -10116,20 +10075,20 @@ var ranking = strictObject({
|
|
|
10116
10075
|
order: picklist(["ascending", "descending"]),
|
|
10117
10076
|
preset: nullable(text),
|
|
10118
10077
|
weights: nullable(figures),
|
|
10119
|
-
min_messages:
|
|
10078
|
+
min_messages: count,
|
|
10120
10079
|
message_kind: text,
|
|
10121
10080
|
/** Messages the query selected. */
|
|
10122
|
-
total:
|
|
10123
|
-
population:
|
|
10124
|
-
eligible:
|
|
10125
|
-
excluded: strictObject({ minimum:
|
|
10081
|
+
total: count,
|
|
10082
|
+
population: count,
|
|
10083
|
+
eligible: count,
|
|
10084
|
+
excluded: strictObject({ minimum: count, missing: count, unknown_sender: count, unknown_kind: count }),
|
|
10126
10085
|
maxima: figures,
|
|
10127
10086
|
counter_freshness: freshness,
|
|
10128
10087
|
expanded_discussion_chats: optional(array(text)),
|
|
10129
10088
|
rows: array(rankingRow)
|
|
10130
10089
|
});
|
|
10131
10090
|
|
|
10132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10133
10092
|
var reaction = strictObject({
|
|
10134
10093
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10135
10094
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10137,7 +10096,7 @@ var reaction = strictObject({
|
|
|
10137
10096
|
reacted_at: time
|
|
10138
10097
|
});
|
|
10139
10098
|
|
|
10140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10141
10100
|
var reactionChange = strictObject({
|
|
10142
10101
|
operation_id: id,
|
|
10143
10102
|
chat_id: id,
|
|
@@ -10145,7 +10104,7 @@ var reactionChange = strictObject({
|
|
|
10145
10104
|
reaction: nullable(text)
|
|
10146
10105
|
});
|
|
10147
10106
|
|
|
10148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10149
10108
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10150
10109
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10151
10110
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10156,7 +10115,7 @@ var recipientChange = strictObject({
|
|
|
10156
10115
|
...partial(recipientOff).entries
|
|
10157
10116
|
});
|
|
10158
10117
|
|
|
10159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10160
10119
|
var events = array(record(string(), unknown()));
|
|
10161
10120
|
var recordedRun = strictObject({
|
|
10162
10121
|
run_id: id,
|
|
@@ -10165,17 +10124,17 @@ var recordedRun = strictObject({
|
|
|
10165
10124
|
started_at: time,
|
|
10166
10125
|
completed_at: optional(time),
|
|
10167
10126
|
status: picklist(["success", "failed", "partial", "running"]),
|
|
10168
|
-
requests: optional(
|
|
10169
|
-
duration_ms: optional(
|
|
10127
|
+
requests: optional(count),
|
|
10128
|
+
duration_ms: optional(count),
|
|
10170
10129
|
cli_version: text,
|
|
10171
10130
|
runtime: optional(text),
|
|
10172
10131
|
platform: optional(text),
|
|
10173
10132
|
arch: optional(text),
|
|
10174
10133
|
error_code: optional(text),
|
|
10175
10134
|
partial: optional(strictObject({
|
|
10176
|
-
failed:
|
|
10135
|
+
failed: count,
|
|
10177
10136
|
stop_reason: optional(text),
|
|
10178
|
-
failures: array(strictObject({ id: text, stage: text, error_code: text, attachment: optional(
|
|
10137
|
+
failures: array(strictObject({ id: text, stage: text, error_code: text, attachment: optional(count) }))
|
|
10179
10138
|
})),
|
|
10180
10139
|
provider_error: optional(text),
|
|
10181
10140
|
kept_because_failed: optional(boolean()),
|
|
@@ -10198,27 +10157,27 @@ var recordedRun = strictObject({
|
|
|
10198
10157
|
connection_id: optional(text),
|
|
10199
10158
|
proxied: optional(literal(true))
|
|
10200
10159
|
})),
|
|
10201
|
-
events_dropped: optional(
|
|
10160
|
+
events_dropped: optional(count),
|
|
10202
10161
|
error: optional(strictObject({
|
|
10203
10162
|
class: text,
|
|
10204
10163
|
code: optional(text),
|
|
10205
10164
|
reason: optional(text),
|
|
10206
10165
|
message: optional(text),
|
|
10207
10166
|
operation: optional(text),
|
|
10208
|
-
http: optional(strictObject({ method: optional(text), endpoint_template: optional(text), status: optional(
|
|
10167
|
+
http: optional(strictObject({ method: optional(text), endpoint_template: optional(text), status: optional(count) })),
|
|
10209
10168
|
provider: optional(strictObject({ key: optional(text), code: optional(number()) })),
|
|
10210
10169
|
causes: optional(array(strictObject({ class: text, message: optional(text) }))),
|
|
10211
10170
|
stack: optional(array(text))
|
|
10212
10171
|
})),
|
|
10213
10172
|
directory: optional(text),
|
|
10214
|
-
event_count: optional(
|
|
10173
|
+
event_count: optional(count),
|
|
10215
10174
|
events: optional(events),
|
|
10216
10175
|
events_truncated: optional(boolean())
|
|
10217
10176
|
});
|
|
10218
10177
|
var runDetails = strictObject({
|
|
10219
10178
|
...omit(recordedRun, ["events_truncated"]).entries,
|
|
10220
10179
|
directory: text,
|
|
10221
|
-
event_count:
|
|
10180
|
+
event_count: count,
|
|
10222
10181
|
events
|
|
10223
10182
|
});
|
|
10224
10183
|
var runHit = strictObject({
|
|
@@ -10228,7 +10187,7 @@ var runHit = strictObject({
|
|
|
10228
10187
|
});
|
|
10229
10188
|
var runLocation = strictObject({ path: text });
|
|
10230
10189
|
|
|
10231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10232
10191
|
var relationship = strictObject({
|
|
10233
10192
|
id,
|
|
10234
10193
|
from: reference,
|
|
@@ -10245,40 +10204,40 @@ var relationship = strictObject({
|
|
|
10245
10204
|
created_at: time
|
|
10246
10205
|
});
|
|
10247
10206
|
|
|
10248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10249
10208
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10250
|
-
var figures2 = { replies:
|
|
10209
|
+
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10251
10210
|
var responseTimes = strictObject({
|
|
10252
10211
|
who: picklist(["me", "others"]),
|
|
10253
10212
|
...figures2,
|
|
10254
|
-
buckets: strictObject({ under_5m:
|
|
10213
|
+
buckets: strictObject({ under_5m: count, under_1h: count, under_1d: count, over_1d: count }),
|
|
10255
10214
|
/** One row per calendar day of the reply; empty with `--by total`. */
|
|
10256
10215
|
rows: array(strictObject({ key: text, ...figures2 }))
|
|
10257
10216
|
});
|
|
10258
10217
|
var waitingChats = strictObject({
|
|
10259
|
-
chats:
|
|
10260
|
-
messages:
|
|
10218
|
+
chats: count,
|
|
10219
|
+
messages: count,
|
|
10261
10220
|
oldest_at: nullable(time),
|
|
10262
|
-
by_kind: strictObject({ private:
|
|
10221
|
+
by_kind: strictObject({ private: count, group: count })
|
|
10263
10222
|
});
|
|
10264
10223
|
|
|
10265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10266
10225
|
var retentionCohort = strictObject({
|
|
10267
10226
|
/** The first day of the joining day or week. */
|
|
10268
10227
|
cohort: text,
|
|
10269
|
-
stays:
|
|
10228
|
+
stays: count,
|
|
10270
10229
|
checkpoints: array(strictObject({
|
|
10271
10230
|
age_ms: milliseconds,
|
|
10272
|
-
eligible:
|
|
10273
|
-
observable:
|
|
10274
|
-
present:
|
|
10275
|
-
absent:
|
|
10276
|
-
unknown:
|
|
10277
|
-
pending:
|
|
10231
|
+
eligible: count,
|
|
10232
|
+
observable: count,
|
|
10233
|
+
present: count,
|
|
10234
|
+
absent: count,
|
|
10235
|
+
unknown: count,
|
|
10236
|
+
pending: count,
|
|
10278
10237
|
rate: nullable(number())
|
|
10279
10238
|
})),
|
|
10280
|
-
activity: strictObject({ observed:
|
|
10281
|
-
early_departure: strictObject({ observed:
|
|
10239
|
+
activity: strictObject({ observed: count, no_observed: count, pending: count, archive_covered: count }),
|
|
10240
|
+
early_departure: strictObject({ observed: count, not_observed: count, unknown: count, pending: count }),
|
|
10282
10241
|
selection
|
|
10283
10242
|
});
|
|
10284
10243
|
var retention = strictObject({
|
|
@@ -10291,9 +10250,9 @@ var retention = strictObject({
|
|
|
10291
10250
|
by: picklist(["day", "week"]),
|
|
10292
10251
|
timezone: text,
|
|
10293
10252
|
/** Cohorts found; `rows` holds the first `--limit` of them. */
|
|
10294
|
-
total:
|
|
10295
|
-
unknown_join:
|
|
10296
|
-
eligible_stays:
|
|
10253
|
+
total: count,
|
|
10254
|
+
unknown_join: count,
|
|
10255
|
+
eligible_stays: count,
|
|
10297
10256
|
quality: strictObject({
|
|
10298
10257
|
membership: text,
|
|
10299
10258
|
tolerance_ms: milliseconds,
|
|
@@ -10310,7 +10269,7 @@ var retention = strictObject({
|
|
|
10310
10269
|
rows: array(retentionCohort)
|
|
10311
10270
|
});
|
|
10312
10271
|
|
|
10313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10314
10273
|
var savedSearch = strictObject({
|
|
10315
10274
|
id,
|
|
10316
10275
|
/** `null` for a run in the history. */
|
|
@@ -10319,15 +10278,15 @@ var savedSearch = strictObject({
|
|
|
10319
10278
|
/** The query and the options it runs with, as the command took them. */
|
|
10320
10279
|
params: record(string(), unknown()),
|
|
10321
10280
|
language: text,
|
|
10322
|
-
version:
|
|
10323
|
-
fields_version:
|
|
10281
|
+
version: count,
|
|
10282
|
+
fields_version: count,
|
|
10324
10283
|
created_at: time,
|
|
10325
10284
|
last_run_at: nullable(time),
|
|
10326
|
-
runs:
|
|
10285
|
+
runs: count
|
|
10327
10286
|
});
|
|
10328
|
-
var searchHistoryClear = strictObject({ cleared:
|
|
10287
|
+
var searchHistoryClear = strictObject({ cleared: count });
|
|
10329
10288
|
|
|
10330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10331
10290
|
var sendAttempt = strictObject({
|
|
10332
10291
|
at: time,
|
|
10333
10292
|
profile: text,
|
|
@@ -10335,10 +10294,10 @@ var sendAttempt = strictObject({
|
|
|
10335
10294
|
outcome: picklist(["sent", "outcome_unknown", "refused", "failed", "reserved"]),
|
|
10336
10295
|
kind: optional(picklist(["message", "reaction", "edit", "forward", "pin", "read", "delete", "chat", "account"])),
|
|
10337
10296
|
action: optional(text),
|
|
10338
|
-
people: optional(
|
|
10297
|
+
people: optional(count),
|
|
10339
10298
|
message_id: optional(id),
|
|
10340
10299
|
key: optional(text),
|
|
10341
|
-
count: optional(
|
|
10300
|
+
count: optional(count),
|
|
10342
10301
|
for_everyone: optional(boolean()),
|
|
10343
10302
|
operation_id: optional(id),
|
|
10344
10303
|
parent_operation_id: optional(id),
|
|
@@ -10346,8 +10305,8 @@ var sendAttempt = strictObject({
|
|
|
10346
10305
|
thread_id: optional(id),
|
|
10347
10306
|
send_as: optional(id),
|
|
10348
10307
|
result_chat_id: optional(id),
|
|
10349
|
-
length: optional(
|
|
10350
|
-
attachments: optional(array(strictObject({ kind: picklist(["photo", "file", "video", "voice", "sticker"]), bytes:
|
|
10308
|
+
length: optional(count),
|
|
10309
|
+
attachments: optional(array(strictObject({ kind: picklist(["photo", "file", "video", "voice", "sticker"]), bytes: count }))),
|
|
10351
10310
|
scheduled_for: optional(time),
|
|
10352
10311
|
notify: optional(boolean()),
|
|
10353
10312
|
origin: optional(text),
|
|
@@ -10355,29 +10314,29 @@ var sendAttempt = strictObject({
|
|
|
10355
10314
|
error_code: optional(text)
|
|
10356
10315
|
});
|
|
10357
10316
|
|
|
10358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10359
10318
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10360
|
-
var schema = strictObject({ version:
|
|
10319
|
+
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10361
10320
|
var infoSchema = strictObject({
|
|
10362
10321
|
...schema.entries,
|
|
10363
10322
|
reason: picklist(["missing", "older", "current", "newer", "too_new"]),
|
|
10364
|
-
upgrade: nullable(strictObject({ version:
|
|
10323
|
+
upgrade: nullable(strictObject({ version: count, min_compatible: count }))
|
|
10365
10324
|
});
|
|
10366
|
-
var client = strictObject({ command: text, version: text, core: text, speaks:
|
|
10325
|
+
var client = strictObject({ command: text, version: text, core: text, speaks: count, seen_at: time });
|
|
10367
10326
|
var wordIndex = strictObject({
|
|
10368
|
-
watermark:
|
|
10369
|
-
filled_through:
|
|
10370
|
-
pending_normalization:
|
|
10327
|
+
watermark: count,
|
|
10328
|
+
filled_through: count,
|
|
10329
|
+
pending_normalization: count,
|
|
10371
10330
|
ready: boolean(),
|
|
10372
|
-
terms_through:
|
|
10373
|
-
newest:
|
|
10331
|
+
terms_through: count,
|
|
10332
|
+
newest: count,
|
|
10374
10333
|
terms_ready: boolean(),
|
|
10375
10334
|
built_at: nullable(time)
|
|
10376
10335
|
});
|
|
10377
10336
|
var stemIndex = strictObject({
|
|
10378
|
-
watermark:
|
|
10379
|
-
filled_through:
|
|
10380
|
-
pending:
|
|
10337
|
+
watermark: count,
|
|
10338
|
+
filled_through: count,
|
|
10339
|
+
pending: count,
|
|
10381
10340
|
built: nullable(text),
|
|
10382
10341
|
wanted: text,
|
|
10383
10342
|
ready: boolean(),
|
|
@@ -10386,44 +10345,44 @@ var stemIndex = strictObject({
|
|
|
10386
10345
|
});
|
|
10387
10346
|
var readFailure = { path: text, exists: literal(true), opens: literal(false), error: text };
|
|
10388
10347
|
var rows = partial(strictObject({
|
|
10389
|
-
accounts:
|
|
10390
|
-
chats:
|
|
10391
|
-
messages:
|
|
10392
|
-
emails:
|
|
10393
|
-
documents:
|
|
10394
|
-
meetings:
|
|
10395
|
-
events:
|
|
10396
|
-
attachments:
|
|
10397
|
-
identities:
|
|
10348
|
+
accounts: count,
|
|
10349
|
+
chats: count,
|
|
10350
|
+
messages: count,
|
|
10351
|
+
emails: count,
|
|
10352
|
+
documents: count,
|
|
10353
|
+
meetings: count,
|
|
10354
|
+
events: count,
|
|
10355
|
+
attachments: count,
|
|
10356
|
+
identities: count
|
|
10398
10357
|
}));
|
|
10399
|
-
var perAccount = { chats:
|
|
10358
|
+
var perAccount = { chats: count, messages: count, emails: count, documents: count, meetings: count };
|
|
10400
10359
|
var contents = {
|
|
10401
|
-
by_provider: optional(array(strictObject({ provider: text, accounts:
|
|
10402
|
-
by_chat_kind: optional(array(strictObject({ provider: text, kind: text, chats:
|
|
10360
|
+
by_provider: optional(array(strictObject({ provider: text, accounts: count, ...perAccount }))),
|
|
10361
|
+
by_chat_kind: optional(array(strictObject({ provider: text, kind: text, chats: count, messages: count }))),
|
|
10403
10362
|
/** `name` is the one `account list` shows; the messenger's own id for the account is left out. */
|
|
10404
|
-
by_account: optional(array(strictObject({ provider: text, account_id:
|
|
10363
|
+
by_account: optional(array(strictObject({ provider: text, account_id: count, name: nullable(text), ...perAccount }))),
|
|
10405
10364
|
/** Calendar years in UTC. */
|
|
10406
|
-
by_year: optional(array(strictObject({ provider: text, year:
|
|
10365
|
+
by_year: optional(array(strictObject({ provider: text, year: count, messages: count }))),
|
|
10407
10366
|
/** `type` is what the file is attached to: a message, an email, a document… `bytes` counts the sizes known. */
|
|
10408
|
-
by_attachment_kind: optional(array(strictObject({ type: text, kind: text, count
|
|
10367
|
+
by_attachment_kind: optional(array(strictObject({ type: text, kind: text, count, bytes: count })))
|
|
10409
10368
|
};
|
|
10410
10369
|
var storeInfo = union([
|
|
10411
10370
|
strictObject({ ...absent.entries, schema: infoSchema }),
|
|
10412
|
-
strictObject({ ...readFailure, schema: strictObject({ speaks:
|
|
10371
|
+
strictObject({ ...readFailure, schema: strictObject({ speaks: count }) }),
|
|
10413
10372
|
strictObject({
|
|
10414
10373
|
path: text,
|
|
10415
10374
|
exists: literal(true),
|
|
10416
|
-
bytes: strictObject({ file:
|
|
10375
|
+
bytes: strictObject({ file: count, wal: count }),
|
|
10417
10376
|
journal_mode: text,
|
|
10418
10377
|
/** `free` pages hold nothing; a `VACUUM` would give them back. */
|
|
10419
|
-
pages: strictObject({ size:
|
|
10420
|
-
migrations: array(strictObject({ version:
|
|
10378
|
+
pages: strictObject({ size: count, count, free: count }),
|
|
10379
|
+
migrations: array(strictObject({ version: count, min_compatible: count, applied_at: time })),
|
|
10421
10380
|
/** From the marker a backup job leaves in `backups/last.json` beside the store; null without one. */
|
|
10422
10381
|
backup: nullable(strictObject({ at: time, file: nullable(text), checked: nullable(text) })),
|
|
10423
10382
|
schema: infoSchema,
|
|
10424
10383
|
clients: array(client),
|
|
10425
10384
|
rows,
|
|
10426
|
-
pending_normalization: nullable(
|
|
10385
|
+
pending_normalization: nullable(count),
|
|
10427
10386
|
word_index: nullable(wordIndex),
|
|
10428
10387
|
stem_index: nullable(stemIndex),
|
|
10429
10388
|
...contents
|
|
@@ -10447,10 +10406,10 @@ var storeCheck = union([
|
|
|
10447
10406
|
}),
|
|
10448
10407
|
schema,
|
|
10449
10408
|
integrity: array(text),
|
|
10450
|
-
foreign_key_violations:
|
|
10409
|
+
foreign_key_violations: count,
|
|
10451
10410
|
search_indexes: record(text, text),
|
|
10452
|
-
disk: strictObject({ free:
|
|
10453
|
-
pending_normalization: nullable(
|
|
10411
|
+
disk: strictObject({ free: count, needed: count }),
|
|
10412
|
+
pending_normalization: nullable(count),
|
|
10454
10413
|
word_index: nullable(wordIndex),
|
|
10455
10414
|
stem_index: nullable(stemIndex),
|
|
10456
10415
|
chats_behind: array(strictObject({
|
|
@@ -10462,33 +10421,33 @@ var storeCheck = union([
|
|
|
10462
10421
|
held: nullable(time),
|
|
10463
10422
|
refreshed: time
|
|
10464
10423
|
})),
|
|
10465
|
-
orphan_pointers: array(strictObject({ table: text, pointer: text, type: text, count
|
|
10424
|
+
orphan_pointers: array(strictObject({ table: text, pointer: text, type: text, count, known: boolean() })),
|
|
10466
10425
|
conversations: array(strictObject({
|
|
10467
10426
|
provider: text,
|
|
10468
10427
|
account: text,
|
|
10469
10428
|
chat: text,
|
|
10470
10429
|
title: nullable(text),
|
|
10471
10430
|
built_at: nullable(time),
|
|
10472
|
-
rules_version: nullable(
|
|
10431
|
+
rules_version: nullable(count),
|
|
10473
10432
|
current: boolean(),
|
|
10474
|
-
stale_agent_links:
|
|
10433
|
+
stale_agent_links: count
|
|
10475
10434
|
})),
|
|
10476
|
-
vectors: nullable(strictObject({ models: record(text,
|
|
10435
|
+
vectors: nullable(strictObject({ models: record(text, count), unused: count })),
|
|
10477
10436
|
vector_indexes: array(strictObject({
|
|
10478
10437
|
model: text,
|
|
10479
|
-
dims:
|
|
10438
|
+
dims: count,
|
|
10480
10439
|
ready: boolean(),
|
|
10481
|
-
indexed:
|
|
10482
|
-
expected:
|
|
10483
|
-
missing:
|
|
10484
|
-
extra:
|
|
10440
|
+
indexed: count,
|
|
10441
|
+
expected: count,
|
|
10442
|
+
missing: count,
|
|
10443
|
+
extra: count
|
|
10485
10444
|
}))
|
|
10486
10445
|
})
|
|
10487
10446
|
]);
|
|
10488
|
-
var indexed = { normalized:
|
|
10447
|
+
var indexed = { normalized: count, indexed: count, terms: count, stemmed: count, notes_indexed: count };
|
|
10489
10448
|
var storeMigration = union([
|
|
10490
10449
|
absent,
|
|
10491
|
-
strictObject({ path: text, exists: literal(true), from:
|
|
10450
|
+
strictObject({ path: text, exists: literal(true), from: count, to: count, ...indexed })
|
|
10492
10451
|
]);
|
|
10493
10452
|
var storeReindex = union([
|
|
10494
10453
|
absent,
|
|
@@ -10496,25 +10455,25 @@ var storeReindex = union([
|
|
|
10496
10455
|
path: text,
|
|
10497
10456
|
exists: literal(true),
|
|
10498
10457
|
...indexed,
|
|
10499
|
-
file_texts:
|
|
10500
|
-
involvements:
|
|
10501
|
-
unused_vectors_dropped:
|
|
10458
|
+
file_texts: count,
|
|
10459
|
+
involvements: count,
|
|
10460
|
+
unused_vectors_dropped: count
|
|
10502
10461
|
})
|
|
10503
10462
|
]);
|
|
10504
10463
|
var storeBackup = strictObject({
|
|
10505
10464
|
path: text,
|
|
10506
10465
|
from: text,
|
|
10507
|
-
bytes:
|
|
10508
|
-
schema:
|
|
10509
|
-
rows: strictObject({ chats:
|
|
10466
|
+
bytes: count,
|
|
10467
|
+
schema: count,
|
|
10468
|
+
rows: strictObject({ chats: count, messages: count }),
|
|
10510
10469
|
encrypted: optional(literal(true))
|
|
10511
10470
|
});
|
|
10512
|
-
var storeDecrypt = strictObject({ path: text, from: text, bytes:
|
|
10471
|
+
var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
|
|
10513
10472
|
var storeRestore = strictObject({
|
|
10514
10473
|
path: text,
|
|
10515
10474
|
restored_from: text,
|
|
10516
10475
|
kept_at: nullable(text),
|
|
10517
|
-
schema:
|
|
10476
|
+
schema: count
|
|
10518
10477
|
});
|
|
10519
10478
|
var storeReset = union([
|
|
10520
10479
|
strictObject({ ...absent.entries, reset: literal(false) }),
|
|
@@ -10524,9 +10483,9 @@ var storeReset = union([
|
|
|
10524
10483
|
reset: literal(false),
|
|
10525
10484
|
dry_run: literal(true),
|
|
10526
10485
|
files: array(text),
|
|
10527
|
-
bytes:
|
|
10528
|
-
schema:
|
|
10529
|
-
tables: array(strictObject({ name: text, rows:
|
|
10486
|
+
bytes: count,
|
|
10487
|
+
schema: count,
|
|
10488
|
+
tables: array(strictObject({ name: text, rows: count })),
|
|
10530
10489
|
backup_first: boolean(),
|
|
10531
10490
|
in_use: nullable(boolean())
|
|
10532
10491
|
}),
|
|
@@ -10535,8 +10494,8 @@ var storeReset = union([
|
|
|
10535
10494
|
exists: literal(true),
|
|
10536
10495
|
reset: literal(true),
|
|
10537
10496
|
backup: nullable(text),
|
|
10538
|
-
backed_up: nullable(strictObject({ schema:
|
|
10539
|
-
schema:
|
|
10497
|
+
backed_up: nullable(strictObject({ schema: count, rows: partial(strictObject({ chats: count, messages: count })) })),
|
|
10498
|
+
schema: count
|
|
10540
10499
|
})
|
|
10541
10500
|
]);
|
|
10542
10501
|
var storeRepair = union([
|
|
@@ -10549,58 +10508,58 @@ var storeRepair = union([
|
|
|
10549
10508
|
action: picklist(["created", "columns-added", "rebuilt"]),
|
|
10550
10509
|
columns_added: optional(array(text)),
|
|
10551
10510
|
copy: optional(text),
|
|
10552
|
-
rows_in_copy: optional(
|
|
10553
|
-
rows_copied: optional(
|
|
10511
|
+
rows_in_copy: optional(count),
|
|
10512
|
+
rows_copied: optional(count),
|
|
10554
10513
|
only_in_copy: optional(array(text)),
|
|
10555
10514
|
dropped_from_copy: optional(array(text))
|
|
10556
10515
|
})),
|
|
10557
10516
|
indexes_created: array(text),
|
|
10558
10517
|
triggers_created: array(text),
|
|
10559
10518
|
mismatches: array(strictObject({ table: text, what: text })),
|
|
10560
|
-
foreign_key_violations: array(strictObject({ table: text, rows:
|
|
10561
|
-
copies: array(strictObject({ name: text, rows:
|
|
10519
|
+
foreign_key_violations: array(strictObject({ table: text, rows: count })),
|
|
10520
|
+
copies: array(strictObject({ name: text, rows: count }))
|
|
10562
10521
|
})
|
|
10563
10522
|
]);
|
|
10564
|
-
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows:
|
|
10523
|
+
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10565
10524
|
|
|
10566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10567
10526
|
var range = strictObject({ from: number(), to: number() });
|
|
10568
10527
|
var storeChatStatus = strictObject({
|
|
10569
10528
|
chat_id: id,
|
|
10570
10529
|
title: nullable(text),
|
|
10571
10530
|
kind: chat.entries.kind,
|
|
10572
|
-
messages:
|
|
10531
|
+
messages: count,
|
|
10573
10532
|
oldest_at: nullable(time),
|
|
10574
10533
|
newest_at: nullable(time),
|
|
10575
10534
|
last_stored_at: nullable(time),
|
|
10576
10535
|
held: array(range)
|
|
10577
10536
|
});
|
|
10578
10537
|
var chatCoverage = strictObject({
|
|
10579
|
-
chats:
|
|
10580
|
-
fetched:
|
|
10581
|
-
partial:
|
|
10582
|
-
never:
|
|
10538
|
+
chats: count,
|
|
10539
|
+
fetched: count,
|
|
10540
|
+
partial: count,
|
|
10541
|
+
never: count,
|
|
10583
10542
|
oldest_message_at: nullable(time)
|
|
10584
10543
|
});
|
|
10585
10544
|
var storeClear = strictObject({
|
|
10586
10545
|
cleared: boolean(),
|
|
10587
10546
|
dry_run: optional(literal(true)),
|
|
10588
|
-
chats:
|
|
10589
|
-
messages:
|
|
10590
|
-
left: array(strictObject({ id, title: nullable(text), messages:
|
|
10547
|
+
chats: count,
|
|
10548
|
+
messages: count,
|
|
10549
|
+
left: array(strictObject({ id, title: nullable(text), messages: count }))
|
|
10591
10550
|
});
|
|
10592
10551
|
var storeExport = union([
|
|
10593
10552
|
message,
|
|
10594
10553
|
strictObject({
|
|
10595
10554
|
path: text,
|
|
10596
10555
|
format: picklist(["jsonl", "markdown"]),
|
|
10597
|
-
count
|
|
10556
|
+
count,
|
|
10598
10557
|
encrypted: optional(literal(true))
|
|
10599
10558
|
}),
|
|
10600
10559
|
strictObject({
|
|
10601
10560
|
path: text,
|
|
10602
10561
|
encrypted: optional(literal(true)),
|
|
10603
|
-
chats: array(strictObject({ id, title: nullable(text), file: nullable(text), messages:
|
|
10562
|
+
chats: array(strictObject({ id, title: nullable(text), file: nullable(text), messages: count, deleted: count }))
|
|
10604
10563
|
})
|
|
10605
10564
|
]);
|
|
10606
10565
|
var storeGapPlan = strictObject({
|
|
@@ -10613,7 +10572,7 @@ var storeGapPlan = strictObject({
|
|
|
10613
10572
|
gaps: array(range),
|
|
10614
10573
|
unknown: strictObject({ older: boolean(), newer: literal(true) }),
|
|
10615
10574
|
fingerprint: text,
|
|
10616
|
-
limits: strictObject({ max_gaps:
|
|
10575
|
+
limits: strictObject({ max_gaps: count, limit: count, time_ms: count, page_size: count })
|
|
10617
10576
|
});
|
|
10618
10577
|
var storeGapRepair = union([
|
|
10619
10578
|
messageSyncStarted,
|
|
@@ -10624,8 +10583,8 @@ var storeGapRepair = union([
|
|
|
10624
10583
|
before: storeGapPlan,
|
|
10625
10584
|
after: storeGapPlan,
|
|
10626
10585
|
repaired: array(range),
|
|
10627
|
-
fetched:
|
|
10628
|
-
requests:
|
|
10586
|
+
fetched: count,
|
|
10587
|
+
requests: count,
|
|
10629
10588
|
complete: boolean(),
|
|
10630
10589
|
prepared: optional(catchUpPreparation),
|
|
10631
10590
|
stopped: optional(picklist(["bound", "partial_or_inaccessible", "fetch_failed"]))
|
|
@@ -10635,12 +10594,12 @@ var problem2 = objectWithRest({ code: text, message: text, retryable: optional(b
|
|
|
10635
10594
|
var progress = strictObject({
|
|
10636
10595
|
job: id,
|
|
10637
10596
|
profile: text,
|
|
10638
|
-
done:
|
|
10639
|
-
total: nullable(
|
|
10640
|
-
remaining: nullable(
|
|
10597
|
+
done: count,
|
|
10598
|
+
total: nullable(count),
|
|
10599
|
+
remaining: nullable(count),
|
|
10641
10600
|
state: picklist(["partial", "complete"]),
|
|
10642
10601
|
updated_at: nullable(time),
|
|
10643
|
-
cursor_age_ms: nullable(
|
|
10602
|
+
cursor_age_ms: nullable(count)
|
|
10644
10603
|
});
|
|
10645
10604
|
var storeJobDetails = strictObject({
|
|
10646
10605
|
...omit(job, ["id", "issue", "error"]).entries,
|
|
@@ -10661,16 +10620,16 @@ var storeJobRetry = union([
|
|
|
10661
10620
|
]);
|
|
10662
10621
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10663
10622
|
|
|
10664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10665
10624
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10666
10625
|
var storeTable = strictObject({
|
|
10667
10626
|
name: text,
|
|
10668
10627
|
kind: picklist(TABLE_KINDS),
|
|
10669
|
-
rows: nullable(
|
|
10670
|
-
bytes: optional(nullable(
|
|
10628
|
+
rows: nullable(count),
|
|
10629
|
+
bytes: optional(nullable(count))
|
|
10671
10630
|
});
|
|
10672
10631
|
|
|
10673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10674
10633
|
var tagTarget = variant("type", [
|
|
10675
10634
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10676
10635
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10701,7 +10660,7 @@ var automaticTags = strictObject({
|
|
|
10701
10660
|
dry_run: boolean()
|
|
10702
10661
|
});
|
|
10703
10662
|
|
|
10704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10705
10664
|
var tagging = strictObject({
|
|
10706
10665
|
tag: text,
|
|
10707
10666
|
type: picklist(TAG_TYPES),
|
|
@@ -10714,7 +10673,7 @@ var tagging = strictObject({
|
|
|
10714
10673
|
created_at: time
|
|
10715
10674
|
});
|
|
10716
10675
|
|
|
10717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10718
10677
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10719
10678
|
var taskPair = strictObject({
|
|
10720
10679
|
task: nullable(side),
|
|
@@ -10737,7 +10696,7 @@ var taskPair = strictObject({
|
|
|
10737
10696
|
created_at: time
|
|
10738
10697
|
});
|
|
10739
10698
|
|
|
10740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10741
10700
|
var nullableTime = nullable(time);
|
|
10742
10701
|
var link2 = strictObject({
|
|
10743
10702
|
id,
|
|
@@ -10817,7 +10776,7 @@ var taskCreated = strictObject({
|
|
|
10817
10776
|
...taskView.entries,
|
|
10818
10777
|
created: boolean(),
|
|
10819
10778
|
attached: optional(literal(true)),
|
|
10820
|
-
review: optional(
|
|
10779
|
+
review: optional(count),
|
|
10821
10780
|
follow_up_of: optional(taskPair.entries.other),
|
|
10822
10781
|
card: optional(taskCard)
|
|
10823
10782
|
});
|
|
@@ -10827,7 +10786,7 @@ var taskClosed = strictObject({
|
|
|
10827
10786
|
close_suggestion: nullable(closeSuggestion)
|
|
10828
10787
|
});
|
|
10829
10788
|
var taskLinks = union([
|
|
10830
|
-
strictObject({ ...taskCard.entries, review: optional(
|
|
10789
|
+
strictObject({ ...taskCard.entries, review: optional(count) }),
|
|
10831
10790
|
strictObject({
|
|
10832
10791
|
relations: array(strictObject({
|
|
10833
10792
|
id,
|
|
@@ -10848,9 +10807,9 @@ var taskSimilar = strictObject({
|
|
|
10848
10807
|
band: taskPair.entries.band,
|
|
10849
10808
|
levels: taskPair.entries.levels,
|
|
10850
10809
|
reasons: array(text),
|
|
10851
|
-
text: strictObject({ shared_stems:
|
|
10810
|
+
text: strictObject({ shared_stems: count, all_stems: count, stems: number(), trigrams: number() })
|
|
10852
10811
|
});
|
|
10853
|
-
var taskMerge = strictObject({ pair: taskPair, linked:
|
|
10812
|
+
var taskMerge = strictObject({ pair: taskPair, linked: count, review: count, task: taskCard });
|
|
10854
10813
|
var taskUnmerge = strictObject({ pair: taskPair, task: taskCard });
|
|
10855
10814
|
var taskCategories = strictObject({
|
|
10856
10815
|
categories: array(strictObject({
|
|
@@ -10858,17 +10817,17 @@ var taskCategories = strictObject({
|
|
|
10858
10817
|
meaning: text,
|
|
10859
10818
|
triggers: strictObject({ en: array(text), ru: array(text), es: array(text) })
|
|
10860
10819
|
})),
|
|
10861
|
-
unlisted: array(strictObject({ name: text, open:
|
|
10820
|
+
unlisted: array(strictObject({ name: text, open: count, total: count })),
|
|
10862
10821
|
file: nullable(text)
|
|
10863
10822
|
});
|
|
10864
10823
|
var taskScan = strictObject({
|
|
10865
10824
|
chat: text,
|
|
10866
|
-
messages:
|
|
10867
|
-
added:
|
|
10868
|
-
closed:
|
|
10869
|
-
review:
|
|
10870
|
-
held: optional(
|
|
10871
|
-
held_chats: optional(
|
|
10825
|
+
messages: count,
|
|
10826
|
+
added: count,
|
|
10827
|
+
closed: count,
|
|
10828
|
+
review: count,
|
|
10829
|
+
held: optional(count),
|
|
10830
|
+
held_chats: optional(count),
|
|
10872
10831
|
tasks: array(strictObject({ source: text, kind: picklist(TASK_KINDS), category: nullable(text) }))
|
|
10873
10832
|
});
|
|
10874
10833
|
var taskAnalysisMark = strictObject({
|
|
@@ -10888,15 +10847,15 @@ var taskAnalysis = strictObject({
|
|
|
10888
10847
|
kind: text,
|
|
10889
10848
|
newest_at: nullableTime,
|
|
10890
10849
|
mark: nullable(taskAnalysisMark),
|
|
10891
|
-
waiting:
|
|
10892
|
-
late:
|
|
10850
|
+
waiting: count,
|
|
10851
|
+
late: count,
|
|
10893
10852
|
untrusted
|
|
10894
10853
|
});
|
|
10895
10854
|
var taskReview = strictObject({
|
|
10896
10855
|
chat: text,
|
|
10897
10856
|
from: time,
|
|
10898
10857
|
mark: nullable(taskAnalysisMark),
|
|
10899
|
-
late:
|
|
10858
|
+
late: count,
|
|
10900
10859
|
has_more: boolean(),
|
|
10901
10860
|
through: nullable(reference),
|
|
10902
10861
|
messages: array(strictObject({
|
|
@@ -10911,7 +10870,7 @@ var taskReview = strictObject({
|
|
|
10911
10870
|
untrusted
|
|
10912
10871
|
});
|
|
10913
10872
|
|
|
10914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10915
10874
|
var topic = strictObject({
|
|
10916
10875
|
id,
|
|
10917
10876
|
title: text,
|
|
@@ -10919,13 +10878,13 @@ var topic = strictObject({
|
|
|
10919
10878
|
pinned: boolean(),
|
|
10920
10879
|
/** The General topic only, where the messenger says. */
|
|
10921
10880
|
hidden: optional(boolean()),
|
|
10922
|
-
unread_count: nullable(
|
|
10881
|
+
unread_count: nullable(count),
|
|
10923
10882
|
last_message_at: nullable(time),
|
|
10924
10883
|
created_at: nullable(time),
|
|
10925
10884
|
untrusted
|
|
10926
10885
|
});
|
|
10927
10886
|
|
|
10928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10929
10888
|
var ENTITIES = {
|
|
10930
10889
|
sync_progress: progress,
|
|
10931
10890
|
...MEETING_RESULT_ENTITIES,
|
|
@@ -11207,7 +11166,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11207
11166
|
return [name, definition];
|
|
11208
11167
|
})), "entityDefinitions");
|
|
11209
11168
|
|
|
11210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11211
11170
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11212
11171
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11213
11172
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11241,7 +11200,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11241
11200
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11242
11201
|
}, "answerRow");
|
|
11243
11202
|
|
|
11244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11245
11204
|
import { join as join6 } from "node:path";
|
|
11246
11205
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11247
11206
|
var IMAGE_MODELS = [
|
|
@@ -11295,7 +11254,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11295
11254
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11296
11255
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11297
11256
|
|
|
11298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11299
11258
|
var STEPS2 = defineSteps([
|
|
11300
11259
|
...STEPS,
|
|
11301
11260
|
{
|
|
@@ -11567,7 +11526,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11567
11526
|
].join(" ");
|
|
11568
11527
|
}, "stepLine");
|
|
11569
11528
|
|
|
11570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11571
11530
|
var where = [{ field: "ref" }];
|
|
11572
11531
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11573
11532
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11580,7 +11539,7 @@ var STATUS_SIGNAL_ROWS = {
|
|
|
11580
11539
|
columns: [
|
|
11581
11540
|
...where,
|
|
11582
11541
|
{ field: "at", as: "day" },
|
|
11583
|
-
{ field: "
|
|
11542
|
+
{ field: "basis" },
|
|
11584
11543
|
{ field: "data.side" },
|
|
11585
11544
|
{ field: "data.due", as: "day" },
|
|
11586
11545
|
{ field: "data.status" }
|
|
@@ -11659,7 +11618,7 @@ var STATUS_ROWS = {
|
|
|
11659
11618
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11660
11619
|
};
|
|
11661
11620
|
|
|
11662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11663
11622
|
var TEXT_CHARS = 400;
|
|
11664
11623
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11665
11624
|
var messageRow = {
|
|
@@ -11845,7 +11804,7 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
|
|
|
11845
11804
|
if (!parts)
|
|
11846
11805
|
return { text: clean(iso) };
|
|
11847
11806
|
const day2 = parts.date.slice(5);
|
|
11848
|
-
return
|
|
11807
|
+
return column.as === "day" ? { text: day2, date: parts.date } : { text: `${day2} ${parts.time}`, date: parts.date, time: parts.time };
|
|
11849
11808
|
}
|
|
11850
11809
|
case "count":
|
|
11851
11810
|
return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
|
|
@@ -11893,6 +11852,17 @@ var sameEverywhere = /* @__PURE__ */ __name((rows2, index) => {
|
|
|
11893
11852
|
const first2 = rows2[0]?.cells[index]?.text;
|
|
11894
11853
|
return first2 !== void 0 && rows2.every(({ cells }) => cells[index]?.text === first2);
|
|
11895
11854
|
}, "sameEverywhere");
|
|
11855
|
+
var ordered = /* @__PURE__ */ __name((dates) => dates.every((one, at2) => at2 === 0 || one >= dates[at2 - 1]) || dates.every((one, at2) => at2 === 0 || one <= dates[at2 - 1]), "ordered");
|
|
11856
|
+
var dayColumn = /* @__PURE__ */ __name((rows2, shape, hoisted) => {
|
|
11857
|
+
const index = shape.columns.findIndex((column, at2) => column.as === "time" && !hoisted[at2]);
|
|
11858
|
+
if (index < 0)
|
|
11859
|
+
return -1;
|
|
11860
|
+
const dates = rows2.map(({ cells }) => cells[index]?.date);
|
|
11861
|
+
if (dates.some((one) => one === void 0))
|
|
11862
|
+
return -1;
|
|
11863
|
+
const days2 = dates;
|
|
11864
|
+
return ordered(days2) && new Set(days2).size * 3 <= days2.length ? index : -1;
|
|
11865
|
+
}, "dayColumn");
|
|
11896
11866
|
var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
11897
11867
|
const dates = [];
|
|
11898
11868
|
const rows2 = items.map((item) => {
|
|
@@ -11915,18 +11885,31 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
|
11915
11885
|
return [];
|
|
11916
11886
|
return [`${sourceOf(item, column) ?? fieldsOfColumn(column.field)[0]}: ${rows2[0]?.cells[index]?.text}`];
|
|
11917
11887
|
});
|
|
11918
|
-
const
|
|
11919
|
-
|
|
11888
|
+
const byDay = dayColumn(rows2, shape, hoisted);
|
|
11889
|
+
let shownDay;
|
|
11890
|
+
const lines = rows2.flatMap(({ cells, text: text5, item }) => {
|
|
11891
|
+
const parts = cells.map((cell2, index) => hoisted[index] ? void 0 : cell2?.text);
|
|
11892
|
+
const dayLine = [];
|
|
11893
|
+
const cell = cells[byDay];
|
|
11894
|
+
if (byDay >= 0 && cell?.date && cell.time) {
|
|
11895
|
+
if (cell.date !== shownDay)
|
|
11896
|
+
dayLine.push(`# ${cell.date}`);
|
|
11897
|
+
shownDay = cell.date;
|
|
11898
|
+
parts[byDay] = cell.time;
|
|
11899
|
+
}
|
|
11920
11900
|
const shortened = prefix ? clean(prefix) : void 0;
|
|
11921
11901
|
if (shortened && parts[0]?.startsWith(shortened))
|
|
11922
11902
|
parts[0] = `#${parts[0].slice(shortened.length)}`;
|
|
11923
11903
|
const shown = [...parts, text5].filter((part) => part !== void 0 && part !== "");
|
|
11924
|
-
return guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "");
|
|
11904
|
+
return [...dayLine, guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "")];
|
|
11925
11905
|
});
|
|
11926
|
-
const
|
|
11927
|
-
|
|
11928
|
-
return { header, lines };
|
|
11906
|
+
const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named3];
|
|
11907
|
+
return { header, lines, dates };
|
|
11929
11908
|
}, "rowsOfItems");
|
|
11909
|
+
var spanOf = /* @__PURE__ */ __name((dates, clock) => {
|
|
11910
|
+
const when = span(dates);
|
|
11911
|
+
return when ? [when, clock.zone] : [];
|
|
11912
|
+
}, "spanOf");
|
|
11930
11913
|
var blockLine = /* @__PURE__ */ __name((fields, chars) => blockOf(fields, chars).join(" "), "blockLine");
|
|
11931
11914
|
var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "", whole = []) => Object.entries(fields).filter(([name]) => !(name === "priority" && "priority_label" in fields)).filter(([, value]) => present(value) || value === false).flatMap(([name, value]) => {
|
|
11932
11915
|
const label = `${indent}${clean(name)}:`;
|
|
@@ -11977,25 +11960,31 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11977
11960
|
const chars = options.textChars ?? TEXT_CHARS;
|
|
11978
11961
|
let lines = [];
|
|
11979
11962
|
if ("items" in body) {
|
|
11980
|
-
const { header, lines: rows2 } = rowsOfItems(body.items, shape, clock, chars);
|
|
11981
|
-
|
|
11963
|
+
const { header, lines: rows2, dates } = rowsOfItems(body.items, shape, clock, chars);
|
|
11964
|
+
const head = [...header, ...spanOf(dates, clock)];
|
|
11965
|
+
lines = (head.length ? [`# ${head.join(" \xB7 ")}`] : []).concat(rows2.length ? rows2 : ["# nothing found"]);
|
|
11982
11966
|
} else if (isFields(body.item)) {
|
|
11983
11967
|
const sections = shape.sections ?? {};
|
|
11984
11968
|
const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name) && !shape.hidden?.includes(name)));
|
|
11985
11969
|
lines = blockOf(rest, chars, "", shape.whole).map(guarded);
|
|
11970
|
+
let dates = [];
|
|
11971
|
+
let drawn = [];
|
|
11986
11972
|
for (const [name, entity] of Object.entries(sections)) {
|
|
11987
11973
|
const list = body.item[name];
|
|
11988
11974
|
if (!Array.isArray(list))
|
|
11989
11975
|
continue;
|
|
11990
|
-
const { header, lines: rows2 } = rowsOfItems(list, rowsOf(entity), clock, chars);
|
|
11991
|
-
|
|
11976
|
+
const { header, lines: rows2, dates: more } = rowsOfItems(list, rowsOf(entity), clock, chars);
|
|
11977
|
+
dates = dates.concat(more);
|
|
11978
|
+
drawn = drawn.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
|
|
11992
11979
|
}
|
|
11980
|
+
const when = spanOf(dates, clock);
|
|
11981
|
+
lines = lines.concat(when.length ? [`# ${when.join(" \xB7 ")}`] : [], drawn);
|
|
11993
11982
|
} else if (present(body.item))
|
|
11994
11983
|
lines = [guarded(cut(clean(String(body.item)), chars))];
|
|
11995
11984
|
return lines.concat(footerOf(body)).join("\n");
|
|
11996
11985
|
}, "compactText");
|
|
11997
11986
|
|
|
11998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11999
11988
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12000
11989
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12001
11990
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12042,7 +12031,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12042
12031
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12043
12032
|
}, "largeAnswerSteps");
|
|
12044
12033
|
|
|
12045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12046
12035
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12047
12036
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12048
12037
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12056,7 +12045,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12056
12045
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12057
12046
|
}, "strip");
|
|
12058
12047
|
|
|
12059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.583.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_8615f98b0983d1fbb51a11cdebd6e805/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12060
12049
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12061
12050
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12062
12051
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12346,11 +12335,6 @@ export {
|
|
|
12346
12335
|
judgedEffects,
|
|
12347
12336
|
judgedTargets,
|
|
12348
12337
|
refuseUnderReadOnly,
|
|
12349
|
-
text,
|
|
12350
|
-
time,
|
|
12351
|
-
zonedTime,
|
|
12352
|
-
count2 as count,
|
|
12353
|
-
untrusted,
|
|
12354
12338
|
accountSession,
|
|
12355
12339
|
accountProfile,
|
|
12356
12340
|
task,
|
|
@@ -12387,9 +12371,6 @@ export {
|
|
|
12387
12371
|
startArchiveJob,
|
|
12388
12372
|
job,
|
|
12389
12373
|
joinRequest,
|
|
12390
|
-
organization,
|
|
12391
|
-
project,
|
|
12392
|
-
reminder,
|
|
12393
12374
|
botProfile,
|
|
12394
12375
|
botSeenChat,
|
|
12395
12376
|
botAdmin,
|