@wirecat/cli-memo 0.131.37 → 0.131.39
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-5CXMPAOF.js} +5 -5
- package/dist/bundle/{anthropic-SY6QPTQW.js → anthropic-KJECM7MD.js} +3 -3
- package/dist/bundle/{app-server-WUXDTYU4.js → app-server-ZO7Z7RMA.js} +35 -35
- package/dist/bundle/auto-MA47DOER.js +86 -0
- package/dist/bundle/{bun-O3KE32D7.js → bun-V2HGEGFF.js} +2 -2
- package/dist/bundle/{bun-sqlite-5X2NBSLA.js → bun-sqlite-DSFSAFNQ.js} +2 -2
- package/dist/bundle/{chunk-TJXVMLK4.js → chunk-3ZEH35NH.js} +1 -1
- package/dist/bundle/{chunk-2EDP7PDR.js → chunk-4GA7IMXD.js} +279 -303
- package/dist/bundle/{chunk-QTLYWZXB.js → chunk-4MFNKTQQ.js} +3 -3
- package/dist/bundle/{chunk-DHGQTARJ.js → chunk-552IRBSA.js} +4 -4
- package/dist/bundle/{chunk-J7FP7PRV.js → chunk-5I75PUEK.js} +531 -583
- package/dist/bundle/{chunk-5ZKNRR6O.js → chunk-6BJPSIFE.js} +36 -36
- package/dist/bundle/{chunk-UOJWRYVD.js → chunk-72DBFKCI.js} +1 -1
- package/dist/bundle/{chunk-ZP7F76D3.js → chunk-7DMTHV2P.js} +1 -1
- package/dist/bundle/{chunk-QMY4EZ6B.js → chunk-7VBSW2RI.js} +5 -5
- package/dist/bundle/{chunk-CXWKBOKQ.js → chunk-AKLFOL4C.js} +3 -3
- package/dist/bundle/{chunk-F4BXYTIW.js → chunk-AX6AMVVY.js} +7 -7
- package/dist/bundle/{chunk-WVXTZWH3.js → chunk-B2YW6VOA.js} +1 -1
- package/dist/bundle/{chunk-WRZP6DJT.js → chunk-BHBLLZAO.js} +279 -210
- package/dist/bundle/{chunk-75QQ7MLH.js → chunk-CHAA2BOM.js} +8 -8
- package/dist/bundle/{chunk-GXCXOITM.js → chunk-CQJO22KN.js} +20 -20
- package/dist/bundle/{chunk-CEOXSWU3.js → chunk-D7JMUN36.js} +2 -2
- package/dist/bundle/{chunk-DZA5OWKD.js → chunk-DMY2YVJ7.js} +5 -5
- package/dist/bundle/{chunk-XCAGVFRC.js → chunk-DZBNKSE2.js} +487 -421
- package/dist/bundle/{chunk-4NJQJZRO.js → chunk-EP5U5WCQ.js} +1 -1
- package/dist/bundle/{chunk-CVCL77DZ.js → chunk-ER7SUNTY.js} +4 -4
- package/dist/bundle/{chunk-LV6FBPUQ.js → chunk-EY42TTWE.js} +11 -11
- package/dist/bundle/{chunk-374FSLTB.js → chunk-G35CZBBF.js} +5 -5
- package/dist/bundle/{chunk-SSQDA7X6.js → chunk-GANKKP5F.js} +4 -4
- package/dist/bundle/{chunk-B4LT2DHH.js → chunk-GRTELFME.js} +4 -4
- package/dist/bundle/{chunk-K3GMQLFM.js → chunk-H4DBYU2J.js} +2 -2
- package/dist/bundle/{chunk-S5KSC4B3.js → chunk-H4GQZLTW.js} +27 -27
- package/dist/bundle/{chunk-3G63U4VK.js → chunk-HB3YU52J.js} +9 -9
- package/dist/bundle/{chunk-JT36R23P.js → chunk-JQSFIPWA.js} +7 -7
- package/dist/bundle/{chunk-RBCI432I.js → chunk-KBDZG6XU.js} +3 -3
- package/dist/bundle/{chunk-UUD4QHAN.js → chunk-LXNWBHCK.js} +4 -4
- package/dist/bundle/{chunk-4OF64T67.js → chunk-O6ZLAFWQ.js} +1 -1
- package/dist/bundle/{chunk-QM5CNTGT.js → chunk-OJBM56FX.js} +20 -20
- package/dist/bundle/{chunk-5EBYGKZB.js → chunk-P357OGUL.js} +1 -1
- package/dist/bundle/{chunk-5J5RTJUJ.js → chunk-P3QBCCBA.js} +1 -1
- package/dist/bundle/{chunk-SDIKN2OR.js → chunk-PWVNSJBL.js} +10 -10
- package/dist/bundle/{chunk-FOQBIEL5.js → chunk-Q35DHKBZ.js} +1 -1
- package/dist/bundle/{chunk-AOFYLQK2.js → chunk-Q3O7N35U.js} +2 -2
- package/dist/bundle/{chunk-32WLB6I3.js → chunk-QAFJG52K.js} +1 -1
- package/dist/bundle/{chunk-2Q4DYGNU.js → chunk-QL2YLPB5.js} +2 -2
- package/dist/bundle/{chunk-UWJ3RJF4.js → chunk-QMDVWF3C.js} +2 -2
- package/dist/bundle/{chunk-ZMZVRVCK.js → chunk-QUJXYDYY.js} +2 -2
- package/dist/bundle/{chunk-2IST54UV.js → chunk-QZABT7XH.js} +9 -9
- package/dist/bundle/{chunk-CEENCS5P.js → chunk-RBLUTSSL.js} +6 -6
- package/dist/bundle/{chunk-AJ4SVCBD.js → chunk-S7W5GFOI.js} +249 -249
- package/dist/bundle/{chunk-TXJYVD5U.js → chunk-SANEKFUF.js} +1 -1
- package/dist/bundle/{chunk-S2K3FWLA.js → chunk-SB7V3HFM.js} +12 -12
- package/dist/bundle/{chunk-7P3PM3OL.js → chunk-TOZ2COFV.js} +7 -7
- package/dist/bundle/{chunk-4AXSD77N.js → chunk-TSGJRL2S.js} +1 -1
- package/dist/bundle/{chunk-XLUOKHFN.js → chunk-U5B2ORUM.js} +3 -3
- package/dist/bundle/{chunk-VHYJIRK7.js → chunk-UECWAAZ3.js} +4 -4
- package/dist/bundle/{chunk-4CADISNA.js → chunk-UIUMG7AY.js} +1 -1
- package/dist/bundle/{chunk-43CMY3YD.js → chunk-WBWFH7ZT.js} +1 -1
- package/dist/bundle/{chunk-TJNW4L7P.js → chunk-WDDYMCLD.js} +43 -43
- package/dist/bundle/{chunk-O762IE2F.js → chunk-WJCBQFEM.js} +1 -1
- package/dist/bundle/{chunk-L2M3LTQQ.js → chunk-XED6NO7E.js} +1 -1
- package/dist/bundle/{chunk-QP7BTVMT.js → chunk-YFBNICKS.js} +2 -2
- package/dist/bundle/{chunk-4CD37FZU.js → chunk-ZQTFPZ36.js} +5 -5
- package/dist/bundle/{command-contract-FRRW2Z4S.js → command-contract-JXLIGF3U.js} +11 -11
- package/dist/bundle/{decode-RVPTVZ3W.js → decode-HXMDIZKS.js} +2 -2
- package/dist/bundle/{echarts-CW6DTALT.js → echarts-MRWQC3FY.js} +2 -2
- package/dist/bundle/{embed-VXWYSZ7X.js → embed-IEJFYZ7N.js} +3 -3
- package/dist/bundle/{embedder-QX3GSPBN.js → embedder-N2TXC47Z.js} +6 -6
- package/dist/bundle/{entry-LBDVYMDG.js → entry-VX4RACD7.js} +4 -4
- package/dist/bundle/failure-LU3CYK3U.js +66 -0
- package/dist/bundle/{first-run-VPR5YFMD.js → first-run-2GXQUNFV.js} +5 -5
- package/dist/bundle/{first-screen-WRKQ4GAM.js → first-screen-JRKMDJPK.js} +12 -12
- package/dist/bundle/{instructions-2XLUHPQH.js → instructions-FR4H42RI.js} +1 -1
- package/dist/bundle/{mcp-RD54TNKO.js → mcp-IP3FEW24.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-AQ7O3PGH.js → node-QWBBKDHE.js} +2 -2
- package/dist/bundle/{node-sqlite-RKDBK624.js → node-sqlite-GKJHUPHC.js} +3 -3
- package/dist/bundle/{oauth-ZQCL2HPA.js → oauth-ZQ7B32ZI.js} +4 -4
- package/dist/bundle/{open-ME6M3BWL.js → open-TDGXVXNV.js} +2 -2
- package/dist/bundle/{openai-PHW5QKNC.js → openai-3T4YGUZM.js} +7 -7
- package/dist/bundle/{process-4HJLMEHS.js → process-OBTDURL4.js} +1 -1
- package/dist/bundle/{program-GVEBIXZL.js → program-6UJEO4TI.js} +80 -59
- package/dist/bundle/{prompt-U5JMQJPC.js → prompt-JZIIKSM4.js} +2 -2
- package/dist/bundle/{recognize-OYKFXOLL.js → recognize-47F6WJYE.js} +1 -1
- package/dist/bundle/{remote-IXABNXVH.js → remote-NHSYSI2S.js} +4 -4
- package/dist/bundle/{rerank-6ASLHI5I.js → rerank-HONNCBTA.js} +4 -4
- package/dist/bundle/{serve-ZYQO2Z23.js → serve-63BFDEQS.js} +6 -6
- package/dist/bundle/server-I6M5QH5W.js +48 -0
- package/dist/bundle/{server-DMU7GDV2.js → server-QWJPOH7K.js} +50 -50
- package/dist/bundle/server-XYUNBCYP.js +61 -0
- package/dist/bundle/{state-5W7BQVQO.js → state-ZLODXERO.js} +3 -3
- package/dist/bundle/{store-6WW7XV2O.js → store-Q36VLED7.js} +9 -9
- package/dist/bundle/store-maintenance-command-EM53HVOY.js +48 -0
- package/dist/bundle/update-UKMV74FK.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/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/mail-triage/SKILL.md +16 -37
- package/dist/bundle/auto-U76QA2DW.js +0 -86
- package/dist/bundle/failure-NMC4BQ2P.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-GLX3YE67.js +0 -69
- /package/dist/bundle/{chunk-FEJOKQPV.js → chunk-TYQAAHHM.js} +0 -0
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
providerErrorKey,
|
|
11
11
|
renderEvent,
|
|
12
12
|
runContextOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JQSFIPWA.js";
|
|
14
14
|
import {
|
|
15
15
|
permissionCeiling
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-U5B2ORUM.js";
|
|
17
17
|
import {
|
|
18
18
|
envName,
|
|
19
19
|
readOnlyLockOf,
|
|
20
20
|
readOnlyRefusal
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EP5U5WCQ.js";
|
|
22
22
|
import {
|
|
23
23
|
carries
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-P357OGUL.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-BHBLLZAO.js";
|
|
65
76
|
import {
|
|
66
77
|
sharedConfigPath
|
|
67
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-GRTELFME.js";
|
|
68
79
|
import {
|
|
69
80
|
filesPresent,
|
|
70
81
|
sharedModelsDirectory
|
|
71
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-4MFNKTQQ.js";
|
|
72
83
|
import {
|
|
73
84
|
storePath
|
|
74
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-UIUMG7AY.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,
|
|
@@ -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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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", [
|
|
@@ -9217,29 +9173,29 @@ var mailFindings = strictObject({
|
|
|
9217
9173
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
|
|
9218
9174
|
});
|
|
9219
9175
|
|
|
9220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9221
9177
|
var mediaArchive = strictObject({
|
|
9222
9178
|
directory: text,
|
|
9223
|
-
chats:
|
|
9224
|
-
saved:
|
|
9225
|
-
existing:
|
|
9179
|
+
chats: count,
|
|
9180
|
+
saved: count,
|
|
9181
|
+
existing: count,
|
|
9226
9182
|
complete: boolean()
|
|
9227
9183
|
});
|
|
9228
9184
|
var mediaArchiveCheck = strictObject({
|
|
9229
9185
|
valid: boolean(),
|
|
9230
|
-
checked:
|
|
9186
|
+
checked: count,
|
|
9231
9187
|
files: array(strictObject({ path: text, valid: boolean(), archive_directory: optional(text) }))
|
|
9232
9188
|
});
|
|
9233
9189
|
var mediaArchiveMove = strictObject({
|
|
9234
9190
|
directory: text,
|
|
9235
9191
|
archive_directory: text,
|
|
9236
9192
|
before_time: time,
|
|
9237
|
-
selected:
|
|
9238
|
-
selected_bytes:
|
|
9239
|
-
moved:
|
|
9240
|
-
moved_bytes:
|
|
9241
|
-
already_archived:
|
|
9242
|
-
undated:
|
|
9193
|
+
selected: count,
|
|
9194
|
+
selected_bytes: count,
|
|
9195
|
+
moved: count,
|
|
9196
|
+
moved_bytes: count,
|
|
9197
|
+
already_archived: count,
|
|
9198
|
+
undated: count,
|
|
9243
9199
|
complete: boolean(),
|
|
9244
9200
|
dry_run: boolean()
|
|
9245
9201
|
});
|
|
@@ -9249,7 +9205,7 @@ var mediaArchiveTimer = union([
|
|
|
9249
9205
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9250
9206
|
]);
|
|
9251
9207
|
|
|
9252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9253
9209
|
var preparationId = pipe(string(), minLength(1));
|
|
9254
9210
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9255
9211
|
var preparationTime = nullable(isoTime);
|
|
@@ -9341,7 +9297,7 @@ var preparationMeeting = strictObject({
|
|
|
9341
9297
|
updated_at: isoTime
|
|
9342
9298
|
});
|
|
9343
9299
|
|
|
9344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9345
9301
|
var meetingEvidence = preparationEvidence;
|
|
9346
9302
|
var meetingPersonContext = strictObject({
|
|
9347
9303
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9363,7 +9319,7 @@ var meetingPersonContext = strictObject({
|
|
|
9363
9319
|
})
|
|
9364
9320
|
});
|
|
9365
9321
|
|
|
9366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9367
9323
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9368
9324
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9369
9325
|
var finding2 = variant("kind", [
|
|
@@ -9401,7 +9357,7 @@ var meetingFindings = strictObject({
|
|
|
9401
9357
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9402
9358
|
});
|
|
9403
9359
|
|
|
9404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9405
9361
|
var communicationCoverage = strictObject({
|
|
9406
9362
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9407
9363
|
query: string(),
|
|
@@ -9446,7 +9402,7 @@ var preparationCommunications = strictObject({
|
|
|
9446
9402
|
}))
|
|
9447
9403
|
});
|
|
9448
9404
|
|
|
9449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9450
9406
|
var meetingPreparation = strictObject({
|
|
9451
9407
|
communications: optional(preparationCommunications),
|
|
9452
9408
|
schema_version: literal(1),
|
|
@@ -9559,7 +9515,7 @@ var meetingPreparation = strictObject({
|
|
|
9559
9515
|
})
|
|
9560
9516
|
});
|
|
9561
9517
|
|
|
9562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9563
9519
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9564
9520
|
var id3 = pipe(string(), minLength(1));
|
|
9565
9521
|
var text3 = string();
|
|
@@ -9623,7 +9579,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9623
9579
|
})
|
|
9624
9580
|
});
|
|
9625
9581
|
|
|
9626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9627
9583
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9628
9584
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9629
9585
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9653,7 +9609,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9653
9609
|
})
|
|
9654
9610
|
});
|
|
9655
9611
|
|
|
9656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9657
9613
|
var text4 = string();
|
|
9658
9614
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9659
9615
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9670,7 +9626,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9670
9626
|
persistence: literal("proposal-only")
|
|
9671
9627
|
});
|
|
9672
9628
|
|
|
9673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9674
9630
|
var memory = strictObject({
|
|
9675
9631
|
ref: reference,
|
|
9676
9632
|
id,
|
|
@@ -9697,11 +9653,11 @@ var memory = strictObject({
|
|
|
9697
9653
|
updated_at: time
|
|
9698
9654
|
});
|
|
9699
9655
|
|
|
9700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9701
9657
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9702
9658
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9703
9659
|
var mention = strictObject({
|
|
9704
|
-
id:
|
|
9660
|
+
id: count,
|
|
9705
9661
|
kind,
|
|
9706
9662
|
value: text,
|
|
9707
9663
|
domain: nullable(text),
|
|
@@ -9719,34 +9675,34 @@ var mentionDetails = strictObject({
|
|
|
9719
9675
|
...mention.entries,
|
|
9720
9676
|
before: text,
|
|
9721
9677
|
after: text,
|
|
9722
|
-
same_value:
|
|
9678
|
+
same_value: count,
|
|
9723
9679
|
candidates: array(reference)
|
|
9724
9680
|
});
|
|
9725
|
-
var mentionDomain = strictObject({ domain: text, links:
|
|
9726
|
-
var place = strictObject({ id:
|
|
9681
|
+
var mentionDomain = strictObject({ domain: text, links: count, chats: count, first_at: time, last_at: time });
|
|
9682
|
+
var place = strictObject({ id: count, address: text, mentions: count });
|
|
9727
9683
|
var mentionDecision = strictObject({
|
|
9728
9684
|
kind,
|
|
9729
9685
|
value: text,
|
|
9730
9686
|
status,
|
|
9731
9687
|
target: nullable(reference),
|
|
9732
|
-
mentions:
|
|
9688
|
+
mentions: count
|
|
9733
9689
|
});
|
|
9734
9690
|
var mentionRebuild = strictObject({
|
|
9735
|
-
messages:
|
|
9736
|
-
attachments:
|
|
9737
|
-
documents:
|
|
9738
|
-
notes:
|
|
9739
|
-
emails:
|
|
9740
|
-
mentions:
|
|
9691
|
+
messages: count,
|
|
9692
|
+
attachments: count,
|
|
9693
|
+
documents: count,
|
|
9694
|
+
notes: count,
|
|
9695
|
+
emails: count,
|
|
9696
|
+
mentions: count
|
|
9741
9697
|
});
|
|
9742
9698
|
|
|
9743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9744
9700
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9745
9701
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9746
9702
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9747
9703
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9748
9704
|
|
|
9749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9750
9706
|
var messageTranscript = strictObject({
|
|
9751
9707
|
message_id: id,
|
|
9752
9708
|
text,
|
|
@@ -9778,12 +9734,12 @@ var evidencePacket = strictObject({
|
|
|
9778
9734
|
kind: picklist(["chats", "news", "person"]),
|
|
9779
9735
|
source: strictObject({ provider: text, account: id, chat: id }),
|
|
9780
9736
|
fingerprint: fingerprint2,
|
|
9781
|
-
limits: strictObject({ messages:
|
|
9782
|
-
content_bytes:
|
|
9737
|
+
limits: strictObject({ messages: count, bytes: count }),
|
|
9738
|
+
content_bytes: count,
|
|
9783
9739
|
coverage: strictObject({
|
|
9784
|
-
provided:
|
|
9785
|
-
included:
|
|
9786
|
-
omitted:
|
|
9740
|
+
provided: count,
|
|
9741
|
+
included: count,
|
|
9742
|
+
omitted: count,
|
|
9787
9743
|
has_more: boolean(),
|
|
9788
9744
|
history: literal("unknown"),
|
|
9789
9745
|
truncated_by: nullable(picklist(["messages", "bytes"]))
|
|
@@ -9804,7 +9760,7 @@ var evidencePacket = strictObject({
|
|
|
9804
9760
|
}))
|
|
9805
9761
|
});
|
|
9806
9762
|
|
|
9807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9808
9764
|
var messageThread = strictObject({
|
|
9809
9765
|
ref: reference,
|
|
9810
9766
|
chat: id,
|
|
@@ -9817,24 +9773,24 @@ var messageThread = strictObject({
|
|
|
9817
9773
|
stale: boolean(),
|
|
9818
9774
|
built_at: nullable(time),
|
|
9819
9775
|
stopped: array(picklist(["hops", "messages", "bytes", "time", "links", "cycle", "aborted", "thread"])),
|
|
9820
|
-
bounds: strictObject({ max_hops:
|
|
9776
|
+
bounds: strictObject({ max_hops: count, max_messages: count, max_bytes: count, within_ms: count })
|
|
9821
9777
|
});
|
|
9822
9778
|
var messageContext = union([message, messageThread]);
|
|
9823
9779
|
|
|
9824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9825
9781
|
var messageCounts = strictObject({
|
|
9826
9782
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9827
|
-
total:
|
|
9783
|
+
total: count,
|
|
9828
9784
|
rows: array(strictObject({
|
|
9829
9785
|
/** The chat or sender id, or the calendar day or hour. */
|
|
9830
9786
|
key: text,
|
|
9831
9787
|
ref: optional(reference),
|
|
9832
9788
|
name: nullable(text),
|
|
9833
|
-
count
|
|
9789
|
+
count
|
|
9834
9790
|
}))
|
|
9835
9791
|
});
|
|
9836
9792
|
|
|
9837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9838
9794
|
var messageLink = strictObject({
|
|
9839
9795
|
ref: reference,
|
|
9840
9796
|
url: nullable(text),
|
|
@@ -9843,7 +9799,7 @@ var messageLink = strictObject({
|
|
|
9843
9799
|
reason: nullable(picklist(["unsupported_chat", "unsupported_provider", "offline"])),
|
|
9844
9800
|
/** The message's files, each with its own link where the messenger gives one; absent when it has none. */
|
|
9845
9801
|
files: optional(array(strictObject({
|
|
9846
|
-
position:
|
|
9802
|
+
position: count,
|
|
9847
9803
|
kind: text,
|
|
9848
9804
|
name: optional(text),
|
|
9849
9805
|
url: nullable(text),
|
|
@@ -9851,11 +9807,11 @@ var messageLink = strictObject({
|
|
|
9851
9807
|
})))
|
|
9852
9808
|
});
|
|
9853
9809
|
|
|
9854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9855
9811
|
var savedMessageFile = strictObject({
|
|
9856
9812
|
kind: text,
|
|
9857
9813
|
path: text,
|
|
9858
|
-
bytes:
|
|
9814
|
+
bytes: count,
|
|
9859
9815
|
existing: optional(literal(true))
|
|
9860
9816
|
});
|
|
9861
9817
|
var files = array(savedMessageFile);
|
|
@@ -9869,8 +9825,8 @@ var messageDownload = union([
|
|
|
9869
9825
|
strictObject({
|
|
9870
9826
|
files,
|
|
9871
9827
|
chat: nullable(id),
|
|
9872
|
-
saved:
|
|
9873
|
-
existing:
|
|
9828
|
+
saved: count,
|
|
9829
|
+
existing: count,
|
|
9874
9830
|
complete: boolean(),
|
|
9875
9831
|
batch: optional(batchResult),
|
|
9876
9832
|
stopped: optional(literal(true)),
|
|
@@ -9880,19 +9836,19 @@ var messageDownload = union([
|
|
|
9880
9836
|
var historyRange = strictObject({ from: number(), to: number() });
|
|
9881
9837
|
var messageSyncEstimate = strictObject({
|
|
9882
9838
|
chat: id,
|
|
9883
|
-
held:
|
|
9839
|
+
held: count,
|
|
9884
9840
|
ranges: array(historyRange),
|
|
9885
|
-
missing: nullable(
|
|
9886
|
-
requests: nullable(
|
|
9887
|
-
runs: nullable(
|
|
9888
|
-
seconds: nullable(
|
|
9841
|
+
missing: nullable(count),
|
|
9842
|
+
requests: nullable(count),
|
|
9843
|
+
runs: nullable(count),
|
|
9844
|
+
seconds: nullable(count)
|
|
9889
9845
|
});
|
|
9890
9846
|
var tasks = optional(strictObject({
|
|
9891
|
-
added:
|
|
9892
|
-
closed:
|
|
9893
|
-
review:
|
|
9894
|
-
held: optional(
|
|
9895
|
-
held_chats: optional(
|
|
9847
|
+
added: count,
|
|
9848
|
+
closed: count,
|
|
9849
|
+
review: count,
|
|
9850
|
+
held: optional(count),
|
|
9851
|
+
held_chats: optional(count)
|
|
9896
9852
|
}));
|
|
9897
9853
|
var historyLimited = picklist(["group_too_large", "older_than_window"]);
|
|
9898
9854
|
var messageSyncChat = strictObject({
|
|
@@ -9900,9 +9856,9 @@ var messageSyncChat = strictObject({
|
|
|
9900
9856
|
resume: optional(strictObject({ before: optional(text) })),
|
|
9901
9857
|
prepared: optional(catchUpPreparation),
|
|
9902
9858
|
window_complete: optional(boolean()),
|
|
9903
|
-
requests: optional(
|
|
9859
|
+
requests: optional(count),
|
|
9904
9860
|
chat: nullable(id),
|
|
9905
|
-
fetched:
|
|
9861
|
+
fetched: count,
|
|
9906
9862
|
complete: boolean(),
|
|
9907
9863
|
ranges: array(historyRange),
|
|
9908
9864
|
reached_since: optional(literal(true)),
|
|
@@ -9916,14 +9872,14 @@ var messageSyncChat = strictObject({
|
|
|
9916
9872
|
});
|
|
9917
9873
|
var messageSyncAll = strictObject({
|
|
9918
9874
|
batch: optional(batchResult),
|
|
9919
|
-
chats:
|
|
9920
|
-
fetched:
|
|
9875
|
+
chats: count,
|
|
9876
|
+
fetched: count,
|
|
9921
9877
|
complete: boolean(),
|
|
9922
9878
|
stopped: optional(literal(true)),
|
|
9923
9879
|
items: array(strictObject({
|
|
9924
9880
|
chat: id,
|
|
9925
9881
|
title: nullable(text),
|
|
9926
|
-
fetched:
|
|
9882
|
+
fetched: count,
|
|
9927
9883
|
complete: boolean(),
|
|
9928
9884
|
current: optional(literal(true)),
|
|
9929
9885
|
stopped: optional(literal(true)),
|
|
@@ -9932,13 +9888,13 @@ var messageSyncAll = strictObject({
|
|
|
9932
9888
|
limited: optional(historyLimited)
|
|
9933
9889
|
})),
|
|
9934
9890
|
/** 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:
|
|
9891
|
+
limited: optional(strictObject({ group_too_large: count, older_than_window: count })),
|
|
9936
9892
|
tasks
|
|
9937
9893
|
});
|
|
9938
|
-
var messageSyncStarted = strictObject({ job: id, pid:
|
|
9894
|
+
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9939
9895
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9940
9896
|
|
|
9941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9942
9898
|
var messageWrite = strictObject({
|
|
9943
9899
|
operation_id: id,
|
|
9944
9900
|
message,
|
|
@@ -9953,7 +9909,7 @@ var draftWrite = strictObject({
|
|
|
9953
9909
|
});
|
|
9954
9910
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9955
9911
|
|
|
9956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9957
9913
|
var model2 = strictObject({
|
|
9958
9914
|
id,
|
|
9959
9915
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9962,7 +9918,7 @@ var model2 = strictObject({
|
|
|
9962
9918
|
languages: text,
|
|
9963
9919
|
licence: optional(text),
|
|
9964
9920
|
/** What its files take on disk once downloaded. */
|
|
9965
|
-
size_bytes:
|
|
9921
|
+
size_bytes: count,
|
|
9966
9922
|
downloaded: boolean(),
|
|
9967
9923
|
/** The one used when no model is named. */
|
|
9968
9924
|
default: boolean(),
|
|
@@ -9970,7 +9926,7 @@ var model2 = strictObject({
|
|
|
9970
9926
|
path: text
|
|
9971
9927
|
});
|
|
9972
9928
|
|
|
9973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9974
9930
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9975
9931
|
var modelKey = strictObject({
|
|
9976
9932
|
provider: text,
|
|
@@ -9980,7 +9936,7 @@ var modelKey = strictObject({
|
|
|
9980
9936
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9981
9937
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9982
9938
|
|
|
9983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
9984
9940
|
var link = {
|
|
9985
9941
|
target_text: nullable(text),
|
|
9986
9942
|
kind: text,
|
|
@@ -9999,7 +9955,7 @@ var note = strictObject({
|
|
|
9999
9955
|
title: nullable(text),
|
|
10000
9956
|
text,
|
|
10001
9957
|
/** Raises on every edit; `notes edit --revision` takes it, so an edit made meanwhile is refused, not lost. */
|
|
10002
|
-
revision:
|
|
9958
|
+
revision: count,
|
|
10003
9959
|
/** A file's front matter as parsed, keys as the file writes them; null for a note without it. */
|
|
10004
9960
|
front_matter: nullable(record(string(), unknown())),
|
|
10005
9961
|
/** The hash of a file's bytes when last imported; null for a note written here. */
|
|
@@ -10021,7 +9977,7 @@ var note = strictObject({
|
|
|
10021
9977
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
10022
9978
|
});
|
|
10023
9979
|
|
|
10024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
10025
9981
|
var versus = strictObject({ current: number(), previous: number() });
|
|
10026
9982
|
var person = { person_ref: reference, name: nullable(text) };
|
|
10027
9983
|
var graph = strictObject({
|
|
@@ -10039,54 +9995,54 @@ var officialStats = strictObject({
|
|
|
10039
9995
|
until: time,
|
|
10040
9996
|
totals: record(string(), versus),
|
|
10041
9997
|
top: optional(strictObject({
|
|
10042
|
-
posters: array(strictObject({ ...person, messages:
|
|
10043
|
-
admins: array(strictObject({ ...person, deleted:
|
|
10044
|
-
inviters: array(strictObject({ ...person, invited:
|
|
9998
|
+
posters: array(strictObject({ ...person, messages: count, average_chars: number() })),
|
|
9999
|
+
admins: array(strictObject({ ...person, deleted: count, removed: count, banned: count })),
|
|
10000
|
+
inviters: array(strictObject({ ...person, invited: count }))
|
|
10045
10001
|
})),
|
|
10046
|
-
notifications: optional(strictObject({ enabled:
|
|
10002
|
+
notifications: optional(strictObject({ enabled: count, total: count })),
|
|
10047
10003
|
recent_posts: optional(array(strictObject({
|
|
10048
10004
|
kind: picklist(["message", "story"]),
|
|
10049
10005
|
id,
|
|
10050
|
-
views:
|
|
10051
|
-
forwards:
|
|
10052
|
-
reactions:
|
|
10006
|
+
views: count,
|
|
10007
|
+
forwards: count,
|
|
10008
|
+
reactions: count
|
|
10053
10009
|
}))),
|
|
10054
10010
|
/** A graph the messenger did not give is `{ error }`; the others still answer. */
|
|
10055
10011
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
10056
10012
|
});
|
|
10057
10013
|
|
|
10058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
10059
10015
|
var person2 = strictObject({
|
|
10060
10016
|
ref: reference,
|
|
10061
10017
|
name: nullable(text),
|
|
10062
10018
|
identities: optional(array(identity))
|
|
10063
10019
|
});
|
|
10064
10020
|
|
|
10065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
10066
10022
|
var poll = strictObject({
|
|
10067
10023
|
chat_id: id,
|
|
10068
10024
|
message_id: id,
|
|
10069
10025
|
question: text,
|
|
10070
|
-
answers: array(strictObject({ id, text, voters: nullable(
|
|
10026
|
+
answers: array(strictObject({ id, text, voters: nullable(count), chosen: boolean() })),
|
|
10071
10027
|
closed: boolean(),
|
|
10072
10028
|
multiple: boolean(),
|
|
10073
10029
|
anonymous: boolean(),
|
|
10074
|
-
voters: nullable(
|
|
10030
|
+
voters: nullable(count),
|
|
10075
10031
|
quiz: optional(boolean()),
|
|
10076
10032
|
revote: optional(boolean()),
|
|
10077
10033
|
creator: optional(boolean())
|
|
10078
10034
|
});
|
|
10079
10035
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10080
10036
|
|
|
10081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10082
10038
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10083
10039
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10084
10040
|
|
|
10085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10086
10042
|
var figures = record(string(), number());
|
|
10087
10043
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10088
10044
|
var rankingRow = strictObject({
|
|
10089
|
-
rank:
|
|
10045
|
+
rank: count,
|
|
10090
10046
|
/** The message's locator, or the author's `contact:` reference. */
|
|
10091
10047
|
ref: reference,
|
|
10092
10048
|
/** The message or person id, as `stats * evidence` takes it. */
|
|
@@ -10097,10 +10053,10 @@ var rankingRow = strictObject({
|
|
|
10097
10053
|
kind: nullable(text),
|
|
10098
10054
|
value: number(),
|
|
10099
10055
|
components: record(string(), nullable(number())),
|
|
10100
|
-
messages:
|
|
10101
|
-
known_reactions:
|
|
10102
|
-
unknown_reactions:
|
|
10103
|
-
reactions: optional(array(strictObject({ reaction: string(), count
|
|
10056
|
+
messages: count,
|
|
10057
|
+
known_reactions: count,
|
|
10058
|
+
unknown_reactions: count,
|
|
10059
|
+
reactions: optional(array(strictObject({ reaction: string(), count }))),
|
|
10104
10060
|
score: nullable(strictObject({ score: number(), normalized: figures, contributions: figures })),
|
|
10105
10061
|
quality: strictObject({
|
|
10106
10062
|
reactions: picklist(["known", "partial", "unknown"]),
|
|
@@ -10116,20 +10072,20 @@ var ranking = strictObject({
|
|
|
10116
10072
|
order: picklist(["ascending", "descending"]),
|
|
10117
10073
|
preset: nullable(text),
|
|
10118
10074
|
weights: nullable(figures),
|
|
10119
|
-
min_messages:
|
|
10075
|
+
min_messages: count,
|
|
10120
10076
|
message_kind: text,
|
|
10121
10077
|
/** Messages the query selected. */
|
|
10122
|
-
total:
|
|
10123
|
-
population:
|
|
10124
|
-
eligible:
|
|
10125
|
-
excluded: strictObject({ minimum:
|
|
10078
|
+
total: count,
|
|
10079
|
+
population: count,
|
|
10080
|
+
eligible: count,
|
|
10081
|
+
excluded: strictObject({ minimum: count, missing: count, unknown_sender: count, unknown_kind: count }),
|
|
10126
10082
|
maxima: figures,
|
|
10127
10083
|
counter_freshness: freshness,
|
|
10128
10084
|
expanded_discussion_chats: optional(array(text)),
|
|
10129
10085
|
rows: array(rankingRow)
|
|
10130
10086
|
});
|
|
10131
10087
|
|
|
10132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10133
10089
|
var reaction = strictObject({
|
|
10134
10090
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10135
10091
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10137,7 +10093,7 @@ var reaction = strictObject({
|
|
|
10137
10093
|
reacted_at: time
|
|
10138
10094
|
});
|
|
10139
10095
|
|
|
10140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10141
10097
|
var reactionChange = strictObject({
|
|
10142
10098
|
operation_id: id,
|
|
10143
10099
|
chat_id: id,
|
|
@@ -10145,7 +10101,7 @@ var reactionChange = strictObject({
|
|
|
10145
10101
|
reaction: nullable(text)
|
|
10146
10102
|
});
|
|
10147
10103
|
|
|
10148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10149
10105
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10150
10106
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10151
10107
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10156,7 +10112,7 @@ var recipientChange = strictObject({
|
|
|
10156
10112
|
...partial(recipientOff).entries
|
|
10157
10113
|
});
|
|
10158
10114
|
|
|
10159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10160
10116
|
var events = array(record(string(), unknown()));
|
|
10161
10117
|
var recordedRun = strictObject({
|
|
10162
10118
|
run_id: id,
|
|
@@ -10165,17 +10121,17 @@ var recordedRun = strictObject({
|
|
|
10165
10121
|
started_at: time,
|
|
10166
10122
|
completed_at: optional(time),
|
|
10167
10123
|
status: picklist(["success", "failed", "partial", "running"]),
|
|
10168
|
-
requests: optional(
|
|
10169
|
-
duration_ms: optional(
|
|
10124
|
+
requests: optional(count),
|
|
10125
|
+
duration_ms: optional(count),
|
|
10170
10126
|
cli_version: text,
|
|
10171
10127
|
runtime: optional(text),
|
|
10172
10128
|
platform: optional(text),
|
|
10173
10129
|
arch: optional(text),
|
|
10174
10130
|
error_code: optional(text),
|
|
10175
10131
|
partial: optional(strictObject({
|
|
10176
|
-
failed:
|
|
10132
|
+
failed: count,
|
|
10177
10133
|
stop_reason: optional(text),
|
|
10178
|
-
failures: array(strictObject({ id: text, stage: text, error_code: text, attachment: optional(
|
|
10134
|
+
failures: array(strictObject({ id: text, stage: text, error_code: text, attachment: optional(count) }))
|
|
10179
10135
|
})),
|
|
10180
10136
|
provider_error: optional(text),
|
|
10181
10137
|
kept_because_failed: optional(boolean()),
|
|
@@ -10198,27 +10154,27 @@ var recordedRun = strictObject({
|
|
|
10198
10154
|
connection_id: optional(text),
|
|
10199
10155
|
proxied: optional(literal(true))
|
|
10200
10156
|
})),
|
|
10201
|
-
events_dropped: optional(
|
|
10157
|
+
events_dropped: optional(count),
|
|
10202
10158
|
error: optional(strictObject({
|
|
10203
10159
|
class: text,
|
|
10204
10160
|
code: optional(text),
|
|
10205
10161
|
reason: optional(text),
|
|
10206
10162
|
message: optional(text),
|
|
10207
10163
|
operation: optional(text),
|
|
10208
|
-
http: optional(strictObject({ method: optional(text), endpoint_template: optional(text), status: optional(
|
|
10164
|
+
http: optional(strictObject({ method: optional(text), endpoint_template: optional(text), status: optional(count) })),
|
|
10209
10165
|
provider: optional(strictObject({ key: optional(text), code: optional(number()) })),
|
|
10210
10166
|
causes: optional(array(strictObject({ class: text, message: optional(text) }))),
|
|
10211
10167
|
stack: optional(array(text))
|
|
10212
10168
|
})),
|
|
10213
10169
|
directory: optional(text),
|
|
10214
|
-
event_count: optional(
|
|
10170
|
+
event_count: optional(count),
|
|
10215
10171
|
events: optional(events),
|
|
10216
10172
|
events_truncated: optional(boolean())
|
|
10217
10173
|
});
|
|
10218
10174
|
var runDetails = strictObject({
|
|
10219
10175
|
...omit(recordedRun, ["events_truncated"]).entries,
|
|
10220
10176
|
directory: text,
|
|
10221
|
-
event_count:
|
|
10177
|
+
event_count: count,
|
|
10222
10178
|
events
|
|
10223
10179
|
});
|
|
10224
10180
|
var runHit = strictObject({
|
|
@@ -10228,7 +10184,7 @@ var runHit = strictObject({
|
|
|
10228
10184
|
});
|
|
10229
10185
|
var runLocation = strictObject({ path: text });
|
|
10230
10186
|
|
|
10231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10232
10188
|
var relationship = strictObject({
|
|
10233
10189
|
id,
|
|
10234
10190
|
from: reference,
|
|
@@ -10245,40 +10201,40 @@ var relationship = strictObject({
|
|
|
10245
10201
|
created_at: time
|
|
10246
10202
|
});
|
|
10247
10203
|
|
|
10248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10249
10205
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10250
|
-
var figures2 = { replies:
|
|
10206
|
+
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10251
10207
|
var responseTimes = strictObject({
|
|
10252
10208
|
who: picklist(["me", "others"]),
|
|
10253
10209
|
...figures2,
|
|
10254
|
-
buckets: strictObject({ under_5m:
|
|
10210
|
+
buckets: strictObject({ under_5m: count, under_1h: count, under_1d: count, over_1d: count }),
|
|
10255
10211
|
/** One row per calendar day of the reply; empty with `--by total`. */
|
|
10256
10212
|
rows: array(strictObject({ key: text, ...figures2 }))
|
|
10257
10213
|
});
|
|
10258
10214
|
var waitingChats = strictObject({
|
|
10259
|
-
chats:
|
|
10260
|
-
messages:
|
|
10215
|
+
chats: count,
|
|
10216
|
+
messages: count,
|
|
10261
10217
|
oldest_at: nullable(time),
|
|
10262
|
-
by_kind: strictObject({ private:
|
|
10218
|
+
by_kind: strictObject({ private: count, group: count })
|
|
10263
10219
|
});
|
|
10264
10220
|
|
|
10265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10266
10222
|
var retentionCohort = strictObject({
|
|
10267
10223
|
/** The first day of the joining day or week. */
|
|
10268
10224
|
cohort: text,
|
|
10269
|
-
stays:
|
|
10225
|
+
stays: count,
|
|
10270
10226
|
checkpoints: array(strictObject({
|
|
10271
10227
|
age_ms: milliseconds,
|
|
10272
|
-
eligible:
|
|
10273
|
-
observable:
|
|
10274
|
-
present:
|
|
10275
|
-
absent:
|
|
10276
|
-
unknown:
|
|
10277
|
-
pending:
|
|
10228
|
+
eligible: count,
|
|
10229
|
+
observable: count,
|
|
10230
|
+
present: count,
|
|
10231
|
+
absent: count,
|
|
10232
|
+
unknown: count,
|
|
10233
|
+
pending: count,
|
|
10278
10234
|
rate: nullable(number())
|
|
10279
10235
|
})),
|
|
10280
|
-
activity: strictObject({ observed:
|
|
10281
|
-
early_departure: strictObject({ observed:
|
|
10236
|
+
activity: strictObject({ observed: count, no_observed: count, pending: count, archive_covered: count }),
|
|
10237
|
+
early_departure: strictObject({ observed: count, not_observed: count, unknown: count, pending: count }),
|
|
10282
10238
|
selection
|
|
10283
10239
|
});
|
|
10284
10240
|
var retention = strictObject({
|
|
@@ -10291,9 +10247,9 @@ var retention = strictObject({
|
|
|
10291
10247
|
by: picklist(["day", "week"]),
|
|
10292
10248
|
timezone: text,
|
|
10293
10249
|
/** Cohorts found; `rows` holds the first `--limit` of them. */
|
|
10294
|
-
total:
|
|
10295
|
-
unknown_join:
|
|
10296
|
-
eligible_stays:
|
|
10250
|
+
total: count,
|
|
10251
|
+
unknown_join: count,
|
|
10252
|
+
eligible_stays: count,
|
|
10297
10253
|
quality: strictObject({
|
|
10298
10254
|
membership: text,
|
|
10299
10255
|
tolerance_ms: milliseconds,
|
|
@@ -10310,7 +10266,7 @@ var retention = strictObject({
|
|
|
10310
10266
|
rows: array(retentionCohort)
|
|
10311
10267
|
});
|
|
10312
10268
|
|
|
10313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10314
10270
|
var savedSearch = strictObject({
|
|
10315
10271
|
id,
|
|
10316
10272
|
/** `null` for a run in the history. */
|
|
@@ -10319,15 +10275,15 @@ var savedSearch = strictObject({
|
|
|
10319
10275
|
/** The query and the options it runs with, as the command took them. */
|
|
10320
10276
|
params: record(string(), unknown()),
|
|
10321
10277
|
language: text,
|
|
10322
|
-
version:
|
|
10323
|
-
fields_version:
|
|
10278
|
+
version: count,
|
|
10279
|
+
fields_version: count,
|
|
10324
10280
|
created_at: time,
|
|
10325
10281
|
last_run_at: nullable(time),
|
|
10326
|
-
runs:
|
|
10282
|
+
runs: count
|
|
10327
10283
|
});
|
|
10328
|
-
var searchHistoryClear = strictObject({ cleared:
|
|
10284
|
+
var searchHistoryClear = strictObject({ cleared: count });
|
|
10329
10285
|
|
|
10330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10331
10287
|
var sendAttempt = strictObject({
|
|
10332
10288
|
at: time,
|
|
10333
10289
|
profile: text,
|
|
@@ -10335,10 +10291,10 @@ var sendAttempt = strictObject({
|
|
|
10335
10291
|
outcome: picklist(["sent", "outcome_unknown", "refused", "failed", "reserved"]),
|
|
10336
10292
|
kind: optional(picklist(["message", "reaction", "edit", "forward", "pin", "read", "delete", "chat", "account"])),
|
|
10337
10293
|
action: optional(text),
|
|
10338
|
-
people: optional(
|
|
10294
|
+
people: optional(count),
|
|
10339
10295
|
message_id: optional(id),
|
|
10340
10296
|
key: optional(text),
|
|
10341
|
-
count: optional(
|
|
10297
|
+
count: optional(count),
|
|
10342
10298
|
for_everyone: optional(boolean()),
|
|
10343
10299
|
operation_id: optional(id),
|
|
10344
10300
|
parent_operation_id: optional(id),
|
|
@@ -10346,8 +10302,8 @@ var sendAttempt = strictObject({
|
|
|
10346
10302
|
thread_id: optional(id),
|
|
10347
10303
|
send_as: optional(id),
|
|
10348
10304
|
result_chat_id: optional(id),
|
|
10349
|
-
length: optional(
|
|
10350
|
-
attachments: optional(array(strictObject({ kind: picklist(["photo", "file", "video", "voice", "sticker"]), bytes:
|
|
10305
|
+
length: optional(count),
|
|
10306
|
+
attachments: optional(array(strictObject({ kind: picklist(["photo", "file", "video", "voice", "sticker"]), bytes: count }))),
|
|
10351
10307
|
scheduled_for: optional(time),
|
|
10352
10308
|
notify: optional(boolean()),
|
|
10353
10309
|
origin: optional(text),
|
|
@@ -10355,29 +10311,29 @@ var sendAttempt = strictObject({
|
|
|
10355
10311
|
error_code: optional(text)
|
|
10356
10312
|
});
|
|
10357
10313
|
|
|
10358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10359
10315
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10360
|
-
var schema = strictObject({ version:
|
|
10316
|
+
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10361
10317
|
var infoSchema = strictObject({
|
|
10362
10318
|
...schema.entries,
|
|
10363
10319
|
reason: picklist(["missing", "older", "current", "newer", "too_new"]),
|
|
10364
|
-
upgrade: nullable(strictObject({ version:
|
|
10320
|
+
upgrade: nullable(strictObject({ version: count, min_compatible: count }))
|
|
10365
10321
|
});
|
|
10366
|
-
var client = strictObject({ command: text, version: text, core: text, speaks:
|
|
10322
|
+
var client = strictObject({ command: text, version: text, core: text, speaks: count, seen_at: time });
|
|
10367
10323
|
var wordIndex = strictObject({
|
|
10368
|
-
watermark:
|
|
10369
|
-
filled_through:
|
|
10370
|
-
pending_normalization:
|
|
10324
|
+
watermark: count,
|
|
10325
|
+
filled_through: count,
|
|
10326
|
+
pending_normalization: count,
|
|
10371
10327
|
ready: boolean(),
|
|
10372
|
-
terms_through:
|
|
10373
|
-
newest:
|
|
10328
|
+
terms_through: count,
|
|
10329
|
+
newest: count,
|
|
10374
10330
|
terms_ready: boolean(),
|
|
10375
10331
|
built_at: nullable(time)
|
|
10376
10332
|
});
|
|
10377
10333
|
var stemIndex = strictObject({
|
|
10378
|
-
watermark:
|
|
10379
|
-
filled_through:
|
|
10380
|
-
pending:
|
|
10334
|
+
watermark: count,
|
|
10335
|
+
filled_through: count,
|
|
10336
|
+
pending: count,
|
|
10381
10337
|
built: nullable(text),
|
|
10382
10338
|
wanted: text,
|
|
10383
10339
|
ready: boolean(),
|
|
@@ -10386,44 +10342,44 @@ var stemIndex = strictObject({
|
|
|
10386
10342
|
});
|
|
10387
10343
|
var readFailure = { path: text, exists: literal(true), opens: literal(false), error: text };
|
|
10388
10344
|
var rows = partial(strictObject({
|
|
10389
|
-
accounts:
|
|
10390
|
-
chats:
|
|
10391
|
-
messages:
|
|
10392
|
-
emails:
|
|
10393
|
-
documents:
|
|
10394
|
-
meetings:
|
|
10395
|
-
events:
|
|
10396
|
-
attachments:
|
|
10397
|
-
identities:
|
|
10345
|
+
accounts: count,
|
|
10346
|
+
chats: count,
|
|
10347
|
+
messages: count,
|
|
10348
|
+
emails: count,
|
|
10349
|
+
documents: count,
|
|
10350
|
+
meetings: count,
|
|
10351
|
+
events: count,
|
|
10352
|
+
attachments: count,
|
|
10353
|
+
identities: count
|
|
10398
10354
|
}));
|
|
10399
|
-
var perAccount = { chats:
|
|
10355
|
+
var perAccount = { chats: count, messages: count, emails: count, documents: count, meetings: count };
|
|
10400
10356
|
var contents = {
|
|
10401
|
-
by_provider: optional(array(strictObject({ provider: text, accounts:
|
|
10402
|
-
by_chat_kind: optional(array(strictObject({ provider: text, kind: text, chats:
|
|
10357
|
+
by_provider: optional(array(strictObject({ provider: text, accounts: count, ...perAccount }))),
|
|
10358
|
+
by_chat_kind: optional(array(strictObject({ provider: text, kind: text, chats: count, messages: count }))),
|
|
10403
10359
|
/** `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:
|
|
10360
|
+
by_account: optional(array(strictObject({ provider: text, account_id: count, name: nullable(text), ...perAccount }))),
|
|
10405
10361
|
/** Calendar years in UTC. */
|
|
10406
|
-
by_year: optional(array(strictObject({ provider: text, year:
|
|
10362
|
+
by_year: optional(array(strictObject({ provider: text, year: count, messages: count }))),
|
|
10407
10363
|
/** `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
|
|
10364
|
+
by_attachment_kind: optional(array(strictObject({ type: text, kind: text, count, bytes: count })))
|
|
10409
10365
|
};
|
|
10410
10366
|
var storeInfo = union([
|
|
10411
10367
|
strictObject({ ...absent.entries, schema: infoSchema }),
|
|
10412
|
-
strictObject({ ...readFailure, schema: strictObject({ speaks:
|
|
10368
|
+
strictObject({ ...readFailure, schema: strictObject({ speaks: count }) }),
|
|
10413
10369
|
strictObject({
|
|
10414
10370
|
path: text,
|
|
10415
10371
|
exists: literal(true),
|
|
10416
|
-
bytes: strictObject({ file:
|
|
10372
|
+
bytes: strictObject({ file: count, wal: count }),
|
|
10417
10373
|
journal_mode: text,
|
|
10418
10374
|
/** `free` pages hold nothing; a `VACUUM` would give them back. */
|
|
10419
|
-
pages: strictObject({ size:
|
|
10420
|
-
migrations: array(strictObject({ version:
|
|
10375
|
+
pages: strictObject({ size: count, count, free: count }),
|
|
10376
|
+
migrations: array(strictObject({ version: count, min_compatible: count, applied_at: time })),
|
|
10421
10377
|
/** From the marker a backup job leaves in `backups/last.json` beside the store; null without one. */
|
|
10422
10378
|
backup: nullable(strictObject({ at: time, file: nullable(text), checked: nullable(text) })),
|
|
10423
10379
|
schema: infoSchema,
|
|
10424
10380
|
clients: array(client),
|
|
10425
10381
|
rows,
|
|
10426
|
-
pending_normalization: nullable(
|
|
10382
|
+
pending_normalization: nullable(count),
|
|
10427
10383
|
word_index: nullable(wordIndex),
|
|
10428
10384
|
stem_index: nullable(stemIndex),
|
|
10429
10385
|
...contents
|
|
@@ -10447,10 +10403,10 @@ var storeCheck = union([
|
|
|
10447
10403
|
}),
|
|
10448
10404
|
schema,
|
|
10449
10405
|
integrity: array(text),
|
|
10450
|
-
foreign_key_violations:
|
|
10406
|
+
foreign_key_violations: count,
|
|
10451
10407
|
search_indexes: record(text, text),
|
|
10452
|
-
disk: strictObject({ free:
|
|
10453
|
-
pending_normalization: nullable(
|
|
10408
|
+
disk: strictObject({ free: count, needed: count }),
|
|
10409
|
+
pending_normalization: nullable(count),
|
|
10454
10410
|
word_index: nullable(wordIndex),
|
|
10455
10411
|
stem_index: nullable(stemIndex),
|
|
10456
10412
|
chats_behind: array(strictObject({
|
|
@@ -10462,33 +10418,33 @@ var storeCheck = union([
|
|
|
10462
10418
|
held: nullable(time),
|
|
10463
10419
|
refreshed: time
|
|
10464
10420
|
})),
|
|
10465
|
-
orphan_pointers: array(strictObject({ table: text, pointer: text, type: text, count
|
|
10421
|
+
orphan_pointers: array(strictObject({ table: text, pointer: text, type: text, count, known: boolean() })),
|
|
10466
10422
|
conversations: array(strictObject({
|
|
10467
10423
|
provider: text,
|
|
10468
10424
|
account: text,
|
|
10469
10425
|
chat: text,
|
|
10470
10426
|
title: nullable(text),
|
|
10471
10427
|
built_at: nullable(time),
|
|
10472
|
-
rules_version: nullable(
|
|
10428
|
+
rules_version: nullable(count),
|
|
10473
10429
|
current: boolean(),
|
|
10474
|
-
stale_agent_links:
|
|
10430
|
+
stale_agent_links: count
|
|
10475
10431
|
})),
|
|
10476
|
-
vectors: nullable(strictObject({ models: record(text,
|
|
10432
|
+
vectors: nullable(strictObject({ models: record(text, count), unused: count })),
|
|
10477
10433
|
vector_indexes: array(strictObject({
|
|
10478
10434
|
model: text,
|
|
10479
|
-
dims:
|
|
10435
|
+
dims: count,
|
|
10480
10436
|
ready: boolean(),
|
|
10481
|
-
indexed:
|
|
10482
|
-
expected:
|
|
10483
|
-
missing:
|
|
10484
|
-
extra:
|
|
10437
|
+
indexed: count,
|
|
10438
|
+
expected: count,
|
|
10439
|
+
missing: count,
|
|
10440
|
+
extra: count
|
|
10485
10441
|
}))
|
|
10486
10442
|
})
|
|
10487
10443
|
]);
|
|
10488
|
-
var indexed = { normalized:
|
|
10444
|
+
var indexed = { normalized: count, indexed: count, terms: count, stemmed: count, notes_indexed: count };
|
|
10489
10445
|
var storeMigration = union([
|
|
10490
10446
|
absent,
|
|
10491
|
-
strictObject({ path: text, exists: literal(true), from:
|
|
10447
|
+
strictObject({ path: text, exists: literal(true), from: count, to: count, ...indexed })
|
|
10492
10448
|
]);
|
|
10493
10449
|
var storeReindex = union([
|
|
10494
10450
|
absent,
|
|
@@ -10496,25 +10452,25 @@ var storeReindex = union([
|
|
|
10496
10452
|
path: text,
|
|
10497
10453
|
exists: literal(true),
|
|
10498
10454
|
...indexed,
|
|
10499
|
-
file_texts:
|
|
10500
|
-
involvements:
|
|
10501
|
-
unused_vectors_dropped:
|
|
10455
|
+
file_texts: count,
|
|
10456
|
+
involvements: count,
|
|
10457
|
+
unused_vectors_dropped: count
|
|
10502
10458
|
})
|
|
10503
10459
|
]);
|
|
10504
10460
|
var storeBackup = strictObject({
|
|
10505
10461
|
path: text,
|
|
10506
10462
|
from: text,
|
|
10507
|
-
bytes:
|
|
10508
|
-
schema:
|
|
10509
|
-
rows: strictObject({ chats:
|
|
10463
|
+
bytes: count,
|
|
10464
|
+
schema: count,
|
|
10465
|
+
rows: strictObject({ chats: count, messages: count }),
|
|
10510
10466
|
encrypted: optional(literal(true))
|
|
10511
10467
|
});
|
|
10512
|
-
var storeDecrypt = strictObject({ path: text, from: text, bytes:
|
|
10468
|
+
var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
|
|
10513
10469
|
var storeRestore = strictObject({
|
|
10514
10470
|
path: text,
|
|
10515
10471
|
restored_from: text,
|
|
10516
10472
|
kept_at: nullable(text),
|
|
10517
|
-
schema:
|
|
10473
|
+
schema: count
|
|
10518
10474
|
});
|
|
10519
10475
|
var storeReset = union([
|
|
10520
10476
|
strictObject({ ...absent.entries, reset: literal(false) }),
|
|
@@ -10524,9 +10480,9 @@ var storeReset = union([
|
|
|
10524
10480
|
reset: literal(false),
|
|
10525
10481
|
dry_run: literal(true),
|
|
10526
10482
|
files: array(text),
|
|
10527
|
-
bytes:
|
|
10528
|
-
schema:
|
|
10529
|
-
tables: array(strictObject({ name: text, rows:
|
|
10483
|
+
bytes: count,
|
|
10484
|
+
schema: count,
|
|
10485
|
+
tables: array(strictObject({ name: text, rows: count })),
|
|
10530
10486
|
backup_first: boolean(),
|
|
10531
10487
|
in_use: nullable(boolean())
|
|
10532
10488
|
}),
|
|
@@ -10535,8 +10491,8 @@ var storeReset = union([
|
|
|
10535
10491
|
exists: literal(true),
|
|
10536
10492
|
reset: literal(true),
|
|
10537
10493
|
backup: nullable(text),
|
|
10538
|
-
backed_up: nullable(strictObject({ schema:
|
|
10539
|
-
schema:
|
|
10494
|
+
backed_up: nullable(strictObject({ schema: count, rows: partial(strictObject({ chats: count, messages: count })) })),
|
|
10495
|
+
schema: count
|
|
10540
10496
|
})
|
|
10541
10497
|
]);
|
|
10542
10498
|
var storeRepair = union([
|
|
@@ -10549,58 +10505,58 @@ var storeRepair = union([
|
|
|
10549
10505
|
action: picklist(["created", "columns-added", "rebuilt"]),
|
|
10550
10506
|
columns_added: optional(array(text)),
|
|
10551
10507
|
copy: optional(text),
|
|
10552
|
-
rows_in_copy: optional(
|
|
10553
|
-
rows_copied: optional(
|
|
10508
|
+
rows_in_copy: optional(count),
|
|
10509
|
+
rows_copied: optional(count),
|
|
10554
10510
|
only_in_copy: optional(array(text)),
|
|
10555
10511
|
dropped_from_copy: optional(array(text))
|
|
10556
10512
|
})),
|
|
10557
10513
|
indexes_created: array(text),
|
|
10558
10514
|
triggers_created: array(text),
|
|
10559
10515
|
mismatches: array(strictObject({ table: text, what: text })),
|
|
10560
|
-
foreign_key_violations: array(strictObject({ table: text, rows:
|
|
10561
|
-
copies: array(strictObject({ name: text, rows:
|
|
10516
|
+
foreign_key_violations: array(strictObject({ table: text, rows: count })),
|
|
10517
|
+
copies: array(strictObject({ name: text, rows: count }))
|
|
10562
10518
|
})
|
|
10563
10519
|
]);
|
|
10564
|
-
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows:
|
|
10520
|
+
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10565
10521
|
|
|
10566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10567
10523
|
var range = strictObject({ from: number(), to: number() });
|
|
10568
10524
|
var storeChatStatus = strictObject({
|
|
10569
10525
|
chat_id: id,
|
|
10570
10526
|
title: nullable(text),
|
|
10571
10527
|
kind: chat.entries.kind,
|
|
10572
|
-
messages:
|
|
10528
|
+
messages: count,
|
|
10573
10529
|
oldest_at: nullable(time),
|
|
10574
10530
|
newest_at: nullable(time),
|
|
10575
10531
|
last_stored_at: nullable(time),
|
|
10576
10532
|
held: array(range)
|
|
10577
10533
|
});
|
|
10578
10534
|
var chatCoverage = strictObject({
|
|
10579
|
-
chats:
|
|
10580
|
-
fetched:
|
|
10581
|
-
partial:
|
|
10582
|
-
never:
|
|
10535
|
+
chats: count,
|
|
10536
|
+
fetched: count,
|
|
10537
|
+
partial: count,
|
|
10538
|
+
never: count,
|
|
10583
10539
|
oldest_message_at: nullable(time)
|
|
10584
10540
|
});
|
|
10585
10541
|
var storeClear = strictObject({
|
|
10586
10542
|
cleared: boolean(),
|
|
10587
10543
|
dry_run: optional(literal(true)),
|
|
10588
|
-
chats:
|
|
10589
|
-
messages:
|
|
10590
|
-
left: array(strictObject({ id, title: nullable(text), messages:
|
|
10544
|
+
chats: count,
|
|
10545
|
+
messages: count,
|
|
10546
|
+
left: array(strictObject({ id, title: nullable(text), messages: count }))
|
|
10591
10547
|
});
|
|
10592
10548
|
var storeExport = union([
|
|
10593
10549
|
message,
|
|
10594
10550
|
strictObject({
|
|
10595
10551
|
path: text,
|
|
10596
10552
|
format: picklist(["jsonl", "markdown"]),
|
|
10597
|
-
count
|
|
10553
|
+
count,
|
|
10598
10554
|
encrypted: optional(literal(true))
|
|
10599
10555
|
}),
|
|
10600
10556
|
strictObject({
|
|
10601
10557
|
path: text,
|
|
10602
10558
|
encrypted: optional(literal(true)),
|
|
10603
|
-
chats: array(strictObject({ id, title: nullable(text), file: nullable(text), messages:
|
|
10559
|
+
chats: array(strictObject({ id, title: nullable(text), file: nullable(text), messages: count, deleted: count }))
|
|
10604
10560
|
})
|
|
10605
10561
|
]);
|
|
10606
10562
|
var storeGapPlan = strictObject({
|
|
@@ -10613,7 +10569,7 @@ var storeGapPlan = strictObject({
|
|
|
10613
10569
|
gaps: array(range),
|
|
10614
10570
|
unknown: strictObject({ older: boolean(), newer: literal(true) }),
|
|
10615
10571
|
fingerprint: text,
|
|
10616
|
-
limits: strictObject({ max_gaps:
|
|
10572
|
+
limits: strictObject({ max_gaps: count, limit: count, time_ms: count, page_size: count })
|
|
10617
10573
|
});
|
|
10618
10574
|
var storeGapRepair = union([
|
|
10619
10575
|
messageSyncStarted,
|
|
@@ -10624,8 +10580,8 @@ var storeGapRepair = union([
|
|
|
10624
10580
|
before: storeGapPlan,
|
|
10625
10581
|
after: storeGapPlan,
|
|
10626
10582
|
repaired: array(range),
|
|
10627
|
-
fetched:
|
|
10628
|
-
requests:
|
|
10583
|
+
fetched: count,
|
|
10584
|
+
requests: count,
|
|
10629
10585
|
complete: boolean(),
|
|
10630
10586
|
prepared: optional(catchUpPreparation),
|
|
10631
10587
|
stopped: optional(picklist(["bound", "partial_or_inaccessible", "fetch_failed"]))
|
|
@@ -10635,12 +10591,12 @@ var problem2 = objectWithRest({ code: text, message: text, retryable: optional(b
|
|
|
10635
10591
|
var progress = strictObject({
|
|
10636
10592
|
job: id,
|
|
10637
10593
|
profile: text,
|
|
10638
|
-
done:
|
|
10639
|
-
total: nullable(
|
|
10640
|
-
remaining: nullable(
|
|
10594
|
+
done: count,
|
|
10595
|
+
total: nullable(count),
|
|
10596
|
+
remaining: nullable(count),
|
|
10641
10597
|
state: picklist(["partial", "complete"]),
|
|
10642
10598
|
updated_at: nullable(time),
|
|
10643
|
-
cursor_age_ms: nullable(
|
|
10599
|
+
cursor_age_ms: nullable(count)
|
|
10644
10600
|
});
|
|
10645
10601
|
var storeJobDetails = strictObject({
|
|
10646
10602
|
...omit(job, ["id", "issue", "error"]).entries,
|
|
@@ -10661,16 +10617,16 @@ var storeJobRetry = union([
|
|
|
10661
10617
|
]);
|
|
10662
10618
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10663
10619
|
|
|
10664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10665
10621
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10666
10622
|
var storeTable = strictObject({
|
|
10667
10623
|
name: text,
|
|
10668
10624
|
kind: picklist(TABLE_KINDS),
|
|
10669
|
-
rows: nullable(
|
|
10670
|
-
bytes: optional(nullable(
|
|
10625
|
+
rows: nullable(count),
|
|
10626
|
+
bytes: optional(nullable(count))
|
|
10671
10627
|
});
|
|
10672
10628
|
|
|
10673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10674
10630
|
var tagTarget = variant("type", [
|
|
10675
10631
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10676
10632
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10701,7 +10657,7 @@ var automaticTags = strictObject({
|
|
|
10701
10657
|
dry_run: boolean()
|
|
10702
10658
|
});
|
|
10703
10659
|
|
|
10704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10705
10661
|
var tagging = strictObject({
|
|
10706
10662
|
tag: text,
|
|
10707
10663
|
type: picklist(TAG_TYPES),
|
|
@@ -10714,7 +10670,7 @@ var tagging = strictObject({
|
|
|
10714
10670
|
created_at: time
|
|
10715
10671
|
});
|
|
10716
10672
|
|
|
10717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10718
10674
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10719
10675
|
var taskPair = strictObject({
|
|
10720
10676
|
task: nullable(side),
|
|
@@ -10737,7 +10693,7 @@ var taskPair = strictObject({
|
|
|
10737
10693
|
created_at: time
|
|
10738
10694
|
});
|
|
10739
10695
|
|
|
10740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10741
10697
|
var nullableTime = nullable(time);
|
|
10742
10698
|
var link2 = strictObject({
|
|
10743
10699
|
id,
|
|
@@ -10817,7 +10773,7 @@ var taskCreated = strictObject({
|
|
|
10817
10773
|
...taskView.entries,
|
|
10818
10774
|
created: boolean(),
|
|
10819
10775
|
attached: optional(literal(true)),
|
|
10820
|
-
review: optional(
|
|
10776
|
+
review: optional(count),
|
|
10821
10777
|
follow_up_of: optional(taskPair.entries.other),
|
|
10822
10778
|
card: optional(taskCard)
|
|
10823
10779
|
});
|
|
@@ -10827,7 +10783,7 @@ var taskClosed = strictObject({
|
|
|
10827
10783
|
close_suggestion: nullable(closeSuggestion)
|
|
10828
10784
|
});
|
|
10829
10785
|
var taskLinks = union([
|
|
10830
|
-
strictObject({ ...taskCard.entries, review: optional(
|
|
10786
|
+
strictObject({ ...taskCard.entries, review: optional(count) }),
|
|
10831
10787
|
strictObject({
|
|
10832
10788
|
relations: array(strictObject({
|
|
10833
10789
|
id,
|
|
@@ -10848,9 +10804,9 @@ var taskSimilar = strictObject({
|
|
|
10848
10804
|
band: taskPair.entries.band,
|
|
10849
10805
|
levels: taskPair.entries.levels,
|
|
10850
10806
|
reasons: array(text),
|
|
10851
|
-
text: strictObject({ shared_stems:
|
|
10807
|
+
text: strictObject({ shared_stems: count, all_stems: count, stems: number(), trigrams: number() })
|
|
10852
10808
|
});
|
|
10853
|
-
var taskMerge = strictObject({ pair: taskPair, linked:
|
|
10809
|
+
var taskMerge = strictObject({ pair: taskPair, linked: count, review: count, task: taskCard });
|
|
10854
10810
|
var taskUnmerge = strictObject({ pair: taskPair, task: taskCard });
|
|
10855
10811
|
var taskCategories = strictObject({
|
|
10856
10812
|
categories: array(strictObject({
|
|
@@ -10858,17 +10814,17 @@ var taskCategories = strictObject({
|
|
|
10858
10814
|
meaning: text,
|
|
10859
10815
|
triggers: strictObject({ en: array(text), ru: array(text), es: array(text) })
|
|
10860
10816
|
})),
|
|
10861
|
-
unlisted: array(strictObject({ name: text, open:
|
|
10817
|
+
unlisted: array(strictObject({ name: text, open: count, total: count })),
|
|
10862
10818
|
file: nullable(text)
|
|
10863
10819
|
});
|
|
10864
10820
|
var taskScan = strictObject({
|
|
10865
10821
|
chat: text,
|
|
10866
|
-
messages:
|
|
10867
|
-
added:
|
|
10868
|
-
closed:
|
|
10869
|
-
review:
|
|
10870
|
-
held: optional(
|
|
10871
|
-
held_chats: optional(
|
|
10822
|
+
messages: count,
|
|
10823
|
+
added: count,
|
|
10824
|
+
closed: count,
|
|
10825
|
+
review: count,
|
|
10826
|
+
held: optional(count),
|
|
10827
|
+
held_chats: optional(count),
|
|
10872
10828
|
tasks: array(strictObject({ source: text, kind: picklist(TASK_KINDS), category: nullable(text) }))
|
|
10873
10829
|
});
|
|
10874
10830
|
var taskAnalysisMark = strictObject({
|
|
@@ -10888,15 +10844,15 @@ var taskAnalysis = strictObject({
|
|
|
10888
10844
|
kind: text,
|
|
10889
10845
|
newest_at: nullableTime,
|
|
10890
10846
|
mark: nullable(taskAnalysisMark),
|
|
10891
|
-
waiting:
|
|
10892
|
-
late:
|
|
10847
|
+
waiting: count,
|
|
10848
|
+
late: count,
|
|
10893
10849
|
untrusted
|
|
10894
10850
|
});
|
|
10895
10851
|
var taskReview = strictObject({
|
|
10896
10852
|
chat: text,
|
|
10897
10853
|
from: time,
|
|
10898
10854
|
mark: nullable(taskAnalysisMark),
|
|
10899
|
-
late:
|
|
10855
|
+
late: count,
|
|
10900
10856
|
has_more: boolean(),
|
|
10901
10857
|
through: nullable(reference),
|
|
10902
10858
|
messages: array(strictObject({
|
|
@@ -10911,7 +10867,7 @@ var taskReview = strictObject({
|
|
|
10911
10867
|
untrusted
|
|
10912
10868
|
});
|
|
10913
10869
|
|
|
10914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10915
10871
|
var topic = strictObject({
|
|
10916
10872
|
id,
|
|
10917
10873
|
title: text,
|
|
@@ -10919,13 +10875,13 @@ var topic = strictObject({
|
|
|
10919
10875
|
pinned: boolean(),
|
|
10920
10876
|
/** The General topic only, where the messenger says. */
|
|
10921
10877
|
hidden: optional(boolean()),
|
|
10922
|
-
unread_count: nullable(
|
|
10878
|
+
unread_count: nullable(count),
|
|
10923
10879
|
last_message_at: nullable(time),
|
|
10924
10880
|
created_at: nullable(time),
|
|
10925
10881
|
untrusted
|
|
10926
10882
|
});
|
|
10927
10883
|
|
|
10928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10929
10885
|
var ENTITIES = {
|
|
10930
10886
|
sync_progress: progress,
|
|
10931
10887
|
...MEETING_RESULT_ENTITIES,
|
|
@@ -11207,7 +11163,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11207
11163
|
return [name, definition];
|
|
11208
11164
|
})), "entityDefinitions");
|
|
11209
11165
|
|
|
11210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11211
11167
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11212
11168
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11213
11169
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11241,7 +11197,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11241
11197
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11242
11198
|
}, "answerRow");
|
|
11243
11199
|
|
|
11244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11245
11201
|
import { join as join6 } from "node:path";
|
|
11246
11202
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11247
11203
|
var IMAGE_MODELS = [
|
|
@@ -11295,7 +11251,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11295
11251
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11296
11252
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11297
11253
|
|
|
11298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11299
11255
|
var STEPS2 = defineSteps([
|
|
11300
11256
|
...STEPS,
|
|
11301
11257
|
{
|
|
@@ -11567,7 +11523,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11567
11523
|
].join(" ");
|
|
11568
11524
|
}, "stepLine");
|
|
11569
11525
|
|
|
11570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11571
11527
|
var where = [{ field: "ref" }];
|
|
11572
11528
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11573
11529
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11659,7 +11615,7 @@ var STATUS_ROWS = {
|
|
|
11659
11615
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11660
11616
|
};
|
|
11661
11617
|
|
|
11662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11663
11619
|
var TEXT_CHARS = 400;
|
|
11664
11620
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11665
11621
|
var messageRow = {
|
|
@@ -11995,7 +11951,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11995
11951
|
return lines.concat(footerOf(body)).join("\n");
|
|
11996
11952
|
}, "compactText");
|
|
11997
11953
|
|
|
11998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11999
11955
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12000
11956
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12001
11957
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12042,7 +11998,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12042
11998
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12043
11999
|
}, "largeAnswerSteps");
|
|
12044
12000
|
|
|
12045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12046
12002
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12047
12003
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12048
12004
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12056,7 +12012,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12056
12012
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12057
12013
|
}, "strip");
|
|
12058
12014
|
|
|
12059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12060
12016
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12061
12017
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12062
12018
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12346,11 +12302,6 @@ export {
|
|
|
12346
12302
|
judgedEffects,
|
|
12347
12303
|
judgedTargets,
|
|
12348
12304
|
refuseUnderReadOnly,
|
|
12349
|
-
text,
|
|
12350
|
-
time,
|
|
12351
|
-
zonedTime,
|
|
12352
|
-
count2 as count,
|
|
12353
|
-
untrusted,
|
|
12354
12305
|
accountSession,
|
|
12355
12306
|
accountProfile,
|
|
12356
12307
|
task,
|
|
@@ -12387,9 +12338,6 @@ export {
|
|
|
12387
12338
|
startArchiveJob,
|
|
12388
12339
|
job,
|
|
12389
12340
|
joinRequest,
|
|
12390
|
-
organization,
|
|
12391
|
-
project,
|
|
12392
|
-
reminder,
|
|
12393
12341
|
botProfile,
|
|
12394
12342
|
botSeenChat,
|
|
12395
12343
|
botAdmin,
|