@wirecat/tg-cli 0.118.0 → 0.119.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/wirecat.json +7621 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +15 -8
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-4YNP6VCO.js → adapter-NEQQOANM.js} +47 -48
- package/dist/bundle/{all-profiles-MIQDYAGO.js → all-profiles-QFT46FTF.js} +10 -10
- package/dist/bundle/{anthropic-NTASPJYE.js → anthropic-UJ4RYCWU.js} +10 -8
- package/dist/bundle/{app-server-UJZBJ2SK.js → app-server-NE3EL5IK.js} +43 -43
- package/dist/bundle/{bot-api-JZAD4L3N.js → bot-api-D4H5SCP5.js} +49 -49
- package/dist/bundle/{bot-history-OUDHH3NU.js → bot-history-KF2PUMWA.js} +18 -18
- package/dist/bundle/{bun-EC4HDIRD.js → bun-F7MH5YKA.js} +2 -2
- package/dist/bundle/{bun-sqlite-A4HJR6KO.js → bun-sqlite-FYDJXUHF.js} +5 -5
- package/dist/bundle/{chunk-I4TI5HDJ.js → chunk-23JGV5FQ.js} +11 -11
- package/dist/bundle/{chunk-MBH7IKLT.js → chunk-2BAJ6ORN.js} +1 -1
- package/dist/bundle/{chunk-EPXVRJAX.js → chunk-3EQ7USKJ.js} +2 -2
- package/dist/bundle/{chunk-MZNOASAW.js → chunk-3K65KTXD.js} +16 -3
- package/dist/bundle/{chunk-EQJ6NLF5.js → chunk-4AACB23H.js} +13 -13
- package/dist/bundle/{chunk-NUCDEOFC.js → chunk-5EHJWIW4.js} +2 -2
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-5FEEFXJA.js} +1 -1
- package/dist/bundle/{chunk-6RI4TEIC.js → chunk-65BWMPCI.js} +2 -2
- package/dist/bundle/{chunk-PB252TT3.js → chunk-6ERQJRL2.js} +2 -2
- package/dist/bundle/{chunk-G3RT2EQI.js → chunk-6K5R3YPN.js} +2 -2
- package/dist/bundle/{chunk-OTQDJUES.js → chunk-6OE5I3PR.js} +6 -6
- package/dist/bundle/{chunk-FHMK6OK4.js → chunk-72QLHHSO.js} +93 -29
- package/dist/bundle/{chunk-YEOSV6JC.js → chunk-7C6POLLO.js} +1 -1
- package/dist/bundle/{chunk-JPVFYMSQ.js → chunk-7VUNJDYU.js} +4 -4
- package/dist/bundle/{chunk-57LKX6N2.js → chunk-BXIPT2BO.js} +1 -1
- package/dist/bundle/{chunk-NKFTZVQU.js → chunk-CIDFV3IT.js} +1 -1
- package/dist/bundle/{chunk-4BV4UMBB.js → chunk-CX2WCEQU.js} +264 -195
- package/dist/bundle/{chunk-H6S3C3MH.js → chunk-D4Y2KL5V.js} +4 -4
- package/dist/bundle/{chunk-YPRUWRKE.js → chunk-D6YTBJY6.js} +1 -1
- package/dist/bundle/{chunk-PW3HFIJA.js → chunk-DQELQ7BL.js} +365 -192
- package/dist/bundle/{chunk-5IIU7X4S.js → chunk-F223KYWG.js} +1 -1
- package/dist/bundle/{chunk-TMTEWOQS.js → chunk-FJKP6MMP.js} +5 -3
- package/dist/bundle/{chunk-NMT2VGEI.js → chunk-FQ3C6DFV.js} +3 -3
- package/dist/bundle/{chunk-6ZMTEUVU.js → chunk-FQZSS3AB.js} +6 -6
- package/dist/bundle/{chunk-CEY43D3A.js → chunk-FRW3CWC7.js} +29 -29
- package/dist/bundle/{chunk-65XV5PPI.js → chunk-G3MQOH6Z.js} +3 -3
- package/dist/bundle/{chunk-6AXUEJGL.js → chunk-HGMMRT4G.js} +2 -2
- package/dist/bundle/{chunk-GLRRCKP6.js → chunk-HPQQ76WF.js} +23 -5
- package/dist/bundle/{chunk-RG2E7ZQZ.js → chunk-HV5YYAJX.js} +50 -15
- package/dist/bundle/{chunk-3MQOLYAN.js → chunk-IAGX5VFL.js} +4 -4
- package/dist/bundle/{chunk-BNEP5EOV.js → chunk-JKKEMVW3.js} +4 -4
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-KBHK5UGL.js} +1 -1
- package/dist/bundle/{chunk-EPCFXKTX.js → chunk-KC4MQRAB.js} +34 -8
- package/dist/bundle/{chunk-GXCJ47SJ.js → chunk-L33G5ARH.js} +2664 -670
- package/dist/bundle/{chunk-PO74BDER.js → chunk-MDLSI3EN.js} +23 -23
- package/dist/bundle/chunk-NDSRND3E.js +138 -0
- package/dist/bundle/{chunk-2KQHUBTV.js → chunk-OG2CG2GS.js} +12 -12
- package/dist/bundle/{chunk-JZETEZHC.js → chunk-QD27C3BG.js} +7 -7
- package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-QG5U6HCI.js} +61 -21
- package/dist/bundle/{chunk-GI4MTNA2.js → chunk-QQ3QZFFD.js} +8 -8
- package/dist/bundle/{chunk-76EKXFX2.js → chunk-QTFXYR5W.js} +24 -2
- package/dist/bundle/{chunk-ZXXTJF4Z.js → chunk-RGU2G3KL.js} +4 -4
- package/dist/bundle/{chunk-JWPSVS6C.js → chunk-ROOUBFUW.js} +2304 -1442
- package/dist/bundle/{chunk-5QYU7B27.js → chunk-RUNFFBJU.js} +656 -461
- package/dist/bundle/{chunk-DKFC5ZZ3.js → chunk-S3HAFJVC.js} +4 -4
- package/dist/bundle/{chunk-BXTDAGM4.js → chunk-SMHLQEE2.js} +2 -2
- package/dist/bundle/{chunk-JWIUK3SK.js → chunk-TEZKCH5B.js} +2 -2
- package/dist/bundle/{chunk-HJNRIK5X.js → chunk-TKHEVAEG.js} +9 -8
- package/dist/bundle/{chunk-JLJKGKU2.js → chunk-TT4CIXVH.js} +6 -6
- package/dist/bundle/{chunk-ZMUC3UQO.js → chunk-UBCLVM7C.js} +3 -3
- package/dist/bundle/{chunk-YHZFGUAP.js → chunk-V5Z2JO6X.js} +19 -19
- package/dist/bundle/{chunk-2NA5KVP6.js → chunk-W2BIBPRU.js} +234 -38
- package/dist/bundle/{chunk-PWCQC56A.js → chunk-X5PDWCG7.js} +1 -1
- package/dist/bundle/{chunk-GIM37COQ.js → chunk-XDMJVWWR.js} +3 -3
- package/dist/bundle/{chunk-KEDHX6XG.js → chunk-XM3P7LLT.js} +2 -2
- package/dist/bundle/{chunk-DSZJREEO.js → chunk-YMWPRHXG.js} +1285 -750
- package/dist/bundle/{chunk-5LDWBEWU.js → chunk-Z4CGZAFQ.js} +45 -27
- package/dist/bundle/{chunk-Y64SI2RO.js → chunk-ZEQ7ONPZ.js} +3 -3
- package/dist/bundle/command-contract-7TGMZRBE.js +33 -0
- package/dist/bundle/{decode-NMNPLKNR.js → decode-5N4ERCHC.js} +5 -5
- package/dist/bundle/{dispatch-OP27MWX5.js → dispatch-TBGXBDHE.js} +10 -10
- package/dist/bundle/{echarts-S46LEIPS.js → echarts-YDEBAMXT.js} +2 -2
- package/dist/bundle/{embed-I5ZYHGYC.js → embed-T7H62XFR.js} +6 -6
- package/dist/bundle/{embedder-LTJI67N2.js → embedder-AW3O2TR3.js} +9 -9
- package/dist/bundle/{entry-O6BUPXF7.js → entry-L2LJ2VPY.js} +7 -7
- package/dist/bundle/{failure-4JUQFXJT.js → failure-AWHPW2HE.js} +2 -2
- package/dist/bundle/{first-run-PMZNCDGD.js → first-run-6PBZSRZU.js} +11 -11
- package/dist/bundle/first-screen-UKCD7D2R.js +31 -0
- package/dist/bundle/{instructions-AUEGY3VO.js → instructions-C3NJERO7.js} +1 -1
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-CWLASTLV.js} +2 -2
- package/dist/bundle/{node-XRA7RBCQ.js → node-P3CIIYWU.js} +2 -2
- package/dist/bundle/{node-sqlite-DEZO6LRS.js → node-sqlite-YVHMNRVA.js} +6 -6
- package/dist/bundle/{oauth-DAVC7WCD.js → oauth-5OQYA2SV.js} +7 -7
- package/dist/bundle/{open-DE2YO4T7.js → open-YGWUVSU7.js} +5 -5
- package/dist/bundle/{openai-5BKGAULH.js → openai-U45JBQ6F.js} +16 -37
- package/dist/bundle/{process-4ZHPNUIQ.js → process-DCYX5EDG.js} +1 -1
- package/dist/bundle/{program-EGTKSNB4.js → program-UZBFH2EZ.js} +55 -52
- package/dist/bundle/{prompt-HWCWHHPE.js → prompt-HPVTPTFI.js} +7 -5
- package/dist/bundle/{proxy-transport-4DPZB2W2.js → proxy-transport-D7MCHGSV.js} +5 -5
- package/dist/bundle/{recognize-NG6RXNGF.js → recognize-IJCPFJ76.js} +4 -4
- package/dist/bundle/{remote-ZKXIIGYH.js → remote-MWDYQWFW.js} +7 -7
- package/dist/bundle/{rerank-TX5QFURV.js → rerank-SXG64475.js} +7 -7
- package/dist/bundle/{serve-XAS6DECW.js → serve-KJQENHEH.js} +9 -9
- package/dist/bundle/{server-CNPIWBYU.js → server-MXVXZWN6.js} +35 -35
- package/dist/bundle/server-RTMCRKQF.js +60 -0
- package/dist/bundle/{state-3HTUETTS.js → state-CKKJWH27.js} +6 -6
- package/dist/bundle/{store-B5VZWJHN.js → store-R3BE4V56.js} +36 -13
- package/dist/bundle/store-maintenance-command-KDGBSBNU.js +49 -0
- package/dist/bundle/tg.js +38 -14
- package/dist/commands/account-removal.d.ts +3 -0
- package/dist/commands/account-removal.d.ts.map +1 -0
- package/dist/commands/account-removal.js +57 -0
- package/dist/commands/account-removal.js.map +1 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/http.d.ts +6 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +8 -0
- package/dist/http.js.map +1 -0
- package/dist/identity.d.ts +4 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +14 -0
- package/dist/identity.js.map +1 -1
- package/dist/telegram/map.d.ts.map +1 -1
- package/dist/telegram/map.js +3 -0
- package/dist/telegram/map.js.map +1 -1
- package/dist/telegram/registration.d.ts +1 -1
- package/dist/telegram/registration.d.ts.map +1 -1
- package/dist/telegram/registration.js +4 -1
- package/dist/telegram/registration.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +7 -6
- package/dist/bundle/chunk-TSTEZNSX.js +0 -33
- package/dist/bundle/command-contract-7GZ6HAA6.js +0 -33
- package/dist/bundle/first-screen-BGML5DSO.js +0 -31
- package/dist/bundle/server-FRTKLHZF.js +0 -60
- package/dist/bundle/store-maintenance-command-VG3CLELA.js +0 -50
- /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-DWX4DE2I.js} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
note
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-G3MQOH6Z.js";
|
|
6
6
|
import {
|
|
7
7
|
currentCaller,
|
|
8
8
|
endpointTemplate,
|
|
@@ -12,19 +12,20 @@ import {
|
|
|
12
12
|
providerErrorKey,
|
|
13
13
|
renderEvent,
|
|
14
14
|
runContextOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QD27C3BG.js";
|
|
16
16
|
import {
|
|
17
17
|
permissionCeiling
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UBCLVM7C.js";
|
|
19
19
|
import {
|
|
20
20
|
envName,
|
|
21
21
|
readOnlyLockOf,
|
|
22
22
|
readOnlyRefusal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6ERQJRL2.js";
|
|
24
24
|
import {
|
|
25
25
|
carries
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-D6YTBJY6.js";
|
|
27
27
|
import {
|
|
28
|
+
BUSINESS_KINDS,
|
|
28
29
|
DEAL_ROLES,
|
|
29
30
|
FACT_STATUSES,
|
|
30
31
|
FACT_TYPES,
|
|
@@ -74,24 +75,27 @@ import {
|
|
|
74
75
|
project,
|
|
75
76
|
providerMetadata,
|
|
76
77
|
reminder,
|
|
78
|
+
sourceReview,
|
|
77
79
|
text,
|
|
78
80
|
time,
|
|
79
81
|
untrusted
|
|
80
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-CX2WCEQU.js";
|
|
81
83
|
import {
|
|
82
84
|
isCliFailure,
|
|
83
85
|
storeDamaged
|
|
84
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-ZEQ7ONPZ.js";
|
|
85
87
|
import {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
readSharedSection,
|
|
89
|
+
sharedConfigPath,
|
|
90
|
+
writeSharedSection
|
|
91
|
+
} from "./chunk-FQZSS3AB.js";
|
|
88
92
|
import {
|
|
89
93
|
filesPresent,
|
|
90
94
|
sharedModelsDirectory
|
|
91
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-7VUNJDYU.js";
|
|
92
96
|
import {
|
|
93
97
|
storePath
|
|
94
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-6K5R3YPN.js";
|
|
95
99
|
import {
|
|
96
100
|
configFilePath,
|
|
97
101
|
createRecordLog,
|
|
@@ -104,7 +108,7 @@ import {
|
|
|
104
108
|
saveConfigFile,
|
|
105
109
|
traceIdOf,
|
|
106
110
|
writeSecurely
|
|
107
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-V5Z2JO6X.js";
|
|
108
112
|
import {
|
|
109
113
|
COMPACT_FLAG,
|
|
110
114
|
MAX_NEXT_STEPS,
|
|
@@ -147,6 +151,7 @@ import {
|
|
|
147
151
|
regex,
|
|
148
152
|
safeInteger,
|
|
149
153
|
safeParse,
|
|
154
|
+
startsWith,
|
|
150
155
|
stepOf,
|
|
151
156
|
strictObject,
|
|
152
157
|
string,
|
|
@@ -154,20 +159,21 @@ import {
|
|
|
154
159
|
union,
|
|
155
160
|
unknown,
|
|
156
161
|
unwrap,
|
|
162
|
+
url,
|
|
157
163
|
variant,
|
|
158
164
|
writes
|
|
159
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-KC4MQRAB.js";
|
|
160
166
|
import {
|
|
161
167
|
CliError,
|
|
162
168
|
isCliError,
|
|
163
169
|
singleLine,
|
|
164
170
|
visibleControls
|
|
165
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-SMHLQEE2.js";
|
|
166
172
|
import {
|
|
167
173
|
__name
|
|
168
174
|
} from "./chunk-ZVVMGPBJ.js";
|
|
169
175
|
|
|
170
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
176
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
171
177
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
172
178
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
173
179
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3668,7 +3674,7 @@ __name(useColor, "useColor");
|
|
|
3668
3674
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3669
3675
|
var program = new Command();
|
|
3670
3676
|
|
|
3671
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3677
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3672
3678
|
import { isDeepStrictEqual } from "node:util";
|
|
3673
3679
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3674
3680
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3870,7 +3876,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3870
3876
|
return command;
|
|
3871
3877
|
}, "customizeSharedCommand");
|
|
3872
3878
|
|
|
3873
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3879
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3874
3880
|
var argumentInfoSchema = object({
|
|
3875
3881
|
name: string(),
|
|
3876
3882
|
required: boolean(),
|
|
@@ -3944,7 +3950,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3944
3950
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3945
3951
|
});
|
|
3946
3952
|
|
|
3947
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3953
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3948
3954
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3949
3955
|
let command = root;
|
|
3950
3956
|
const path2 = [];
|
|
@@ -3962,7 +3968,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3962
3968
|
}
|
|
3963
3969
|
}, "refuseJoinedPath");
|
|
3964
3970
|
|
|
3965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3966
3972
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3967
3973
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3968
3974
|
messageId: message2.id,
|
|
@@ -4068,7 +4074,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4068
4074
|
}, "guardedWrite");
|
|
4069
4075
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4070
4076
|
|
|
4071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4072
4078
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4073
4079
|
try {
|
|
4074
4080
|
return work();
|
|
@@ -4095,7 +4101,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4095
4101
|
return projectFields(value, fields);
|
|
4096
4102
|
}), "projectFields");
|
|
4097
4103
|
|
|
4098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4099
4105
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4100
4106
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4101
4107
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4278,7 +4284,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4278
4284
|
}
|
|
4279
4285
|
}, "withAbort");
|
|
4280
4286
|
|
|
4281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4282
4288
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4283
4289
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4284
4290
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4307,6 +4313,10 @@ var DEFAULT_PERMISSIONS = {
|
|
|
4307
4313
|
"server.stop": "ask",
|
|
4308
4314
|
"server.restart": "ask",
|
|
4309
4315
|
"models.download": "ask",
|
|
4316
|
+
// NEED-2357.f: many MCP clients (ChatGPT) cannot answer a question, and a switch deletes nothing; kept as a key so a
|
|
4317
|
+
// profile can still deny it.
|
|
4318
|
+
"models.set": "allow",
|
|
4319
|
+
"models.add": "ask",
|
|
4310
4320
|
"images.models.download": "ask",
|
|
4311
4321
|
"schedule.run": "ask",
|
|
4312
4322
|
"schedule.exec": "ask",
|
|
@@ -4674,7 +4684,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4674
4684
|
}
|
|
4675
4685
|
}, "assertRetentionEvidenceRead");
|
|
4676
4686
|
|
|
4677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
4678
4688
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4679
4689
|
import { join } from "node:path";
|
|
4680
4690
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -4763,7 +4773,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
4763
4773
|
return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
4764
4774
|
}, "registryProfiles");
|
|
4765
4775
|
|
|
4766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4767
4777
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
4768
4778
|
import { join as join2 } from "node:path";
|
|
4769
4779
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4785,7 +4795,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4785
4795
|
}, "profilesWithAccounts");
|
|
4786
4796
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4787
4797
|
|
|
4788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4789
4799
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4790
4800
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4791
4801
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -4821,7 +4831,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4821
4831
|
return value;
|
|
4822
4832
|
}, "atDetail");
|
|
4823
4833
|
|
|
4824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/output.js
|
|
4825
4835
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
4826
4836
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
4827
4837
|
if (other)
|
|
@@ -4885,7 +4895,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4885
4895
|
}, "warn")
|
|
4886
4896
|
}), "silence");
|
|
4887
4897
|
|
|
4888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4889
4899
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4890
4900
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4891
4901
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4919,7 +4929,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4919
4929
|
cache: "cache.answered"
|
|
4920
4930
|
};
|
|
4921
4931
|
|
|
4922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4923
4933
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4924
4934
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4925
4935
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4932,13 +4942,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4932
4942
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4933
4943
|
}), "snakeLogger");
|
|
4934
4944
|
|
|
4935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4936
4946
|
import { randomUUID } from "node:crypto";
|
|
4937
4947
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync3, readFileSync as readFileSync3, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4938
4948
|
import { userInfo } from "node:os";
|
|
4939
4949
|
import { join as join3, sep } from "node:path";
|
|
4940
4950
|
|
|
4941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4942
4952
|
var diagnostic = {
|
|
4943
4953
|
event: true,
|
|
4944
4954
|
operation: true,
|
|
@@ -5008,7 +5018,7 @@ var LOG_ATTRIBUTES = [
|
|
|
5008
5018
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
5009
5019
|
].sort();
|
|
5010
5020
|
|
|
5011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
5012
5022
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
5013
5023
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
5014
5024
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5124,8 +5134,8 @@ var runtime = /* @__PURE__ */ __name(() => {
|
|
|
5124
5134
|
}, "runtime");
|
|
5125
5135
|
var newRunId = /* @__PURE__ */ __name((startedAt, command) => {
|
|
5126
5136
|
const stamp = startedAt.toISOString().replace(/[-:]/g, "").replace(/\.\d+Z$/, "Z");
|
|
5127
|
-
const
|
|
5128
|
-
return `${stamp}-${
|
|
5137
|
+
const slug2 = command.replace(/[^a-z0-9]+/gi, "-").toLowerCase();
|
|
5138
|
+
return `${stamp}-${slug2}-${randomUUID().slice(0, 6)}`;
|
|
5129
5139
|
}, "newRunId");
|
|
5130
5140
|
var INDEX = "index.jsonl";
|
|
5131
5141
|
var appendIndex = /* @__PURE__ */ __name((dayDir, written) => {
|
|
@@ -5361,7 +5371,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5361
5371
|
};
|
|
5362
5372
|
}, "metadataOf");
|
|
5363
5373
|
|
|
5364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5365
5375
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5366
5376
|
import { randomBytes } from "node:crypto";
|
|
5367
5377
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5380,7 +5390,7 @@ var currentRun = /* @__PURE__ */ __name(() => {
|
|
|
5380
5390
|
}, "currentRun");
|
|
5381
5391
|
var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
|
|
5382
5392
|
var runEvent = /* @__PURE__ */ __name((event2) => scopes.getStore()?.events?.(event2), "runEvent");
|
|
5383
|
-
var typedCommand = /* @__PURE__ */ __name((tool,
|
|
5393
|
+
var typedCommand = /* @__PURE__ */ __name((tool, words2, profile = currentRun().profile) => [tool, profile, words2].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
|
|
5384
5394
|
var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
|
|
5385
5395
|
processScope = scope;
|
|
5386
5396
|
}, "useAsProcessRun");
|
|
@@ -5399,7 +5409,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
5399
5409
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5400
5410
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5401
5411
|
|
|
5402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5403
5413
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5404
5414
|
const recording = startRecording(options);
|
|
5405
5415
|
try {
|
|
@@ -5591,7 +5601,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5591
5601
|
return void 0;
|
|
5592
5602
|
}, "partialOutcome");
|
|
5593
5603
|
|
|
5594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5595
5605
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
5596
5606
|
if (ms2 === void 0)
|
|
5597
5607
|
return body();
|
|
@@ -5617,7 +5627,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
5617
5627
|
}
|
|
5618
5628
|
}, "withDeadline");
|
|
5619
5629
|
|
|
5620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5621
5631
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5622
5632
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5623
5633
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5643,19 +5653,19 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
|
|
|
5643
5653
|
return top !== void 0 && !PROFILE_FREE.has(top.name());
|
|
5644
5654
|
}, "takesProfile");
|
|
5645
5655
|
var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
|
|
5646
|
-
var liftProfile = /* @__PURE__ */ __name((argv,
|
|
5656
|
+
var liftProfile = /* @__PURE__ */ __name((argv, words2, valued = /* @__PURE__ */ new Set()) => {
|
|
5647
5657
|
let at2 = 0;
|
|
5648
5658
|
while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
|
|
5649
5659
|
at2 += valued.has(argv[at2]) ? 2 : 1;
|
|
5650
5660
|
const first2 = argv[at2];
|
|
5651
|
-
if (first2 === void 0 || first2.startsWith("-") ||
|
|
5661
|
+
if (first2 === void 0 || first2.startsWith("-") || words2.has(first2))
|
|
5652
5662
|
return { rest: argv };
|
|
5653
5663
|
return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
|
|
5654
5664
|
}, "liftProfile");
|
|
5655
5665
|
var valuedOptions = /* @__PURE__ */ __name((program2) => new Set(program2.options.filter((option) => option.required).flatMap((option) => [option.long, option.short].filter((flag2) => flag2 !== void 0))), "valuedOptions");
|
|
5656
|
-
var refuseCommandName = /* @__PURE__ */ __name((profile,
|
|
5657
|
-
if (
|
|
5658
|
-
throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...
|
|
5666
|
+
var refuseCommandName = /* @__PURE__ */ __name((profile, words2, command) => {
|
|
5667
|
+
if (words2.has(profile)) {
|
|
5668
|
+
throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words2].sort().join(", "));
|
|
5659
5669
|
}
|
|
5660
5670
|
}, "refuseCommandName");
|
|
5661
5671
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
@@ -5686,20 +5696,20 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5686
5696
|
return void 0;
|
|
5687
5697
|
}, "sampleCommand");
|
|
5688
5698
|
|
|
5689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5690
5700
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5691
5701
|
|
|
5692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5693
5703
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5694
5704
|
try {
|
|
5695
|
-
const
|
|
5696
|
-
return ["https:", "http:"].includes(
|
|
5705
|
+
const url3 = new URL(value);
|
|
5706
|
+
return ["https:", "http:"].includes(url3.protocol) && !url3.username && !url3.password && !url3.search && !url3.hash;
|
|
5697
5707
|
} catch {
|
|
5698
5708
|
return false;
|
|
5699
5709
|
}
|
|
5700
5710
|
}, "endpoint");
|
|
5701
5711
|
|
|
5702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5703
5713
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5704
5714
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5705
5715
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5768,13 +5778,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5768
5778
|
};
|
|
5769
5779
|
}, "modelTarget");
|
|
5770
5780
|
|
|
5771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5772
5782
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5773
|
-
var
|
|
5783
|
+
var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5774
5784
|
var AI_FIELDS = {
|
|
5775
5785
|
embeddingProvider: optional(picklist(["local", "openai"])),
|
|
5776
5786
|
embeddingModel: optional(model),
|
|
5777
|
-
embeddingBaseUrl: optional(
|
|
5787
|
+
embeddingBaseUrl: optional(url2),
|
|
5778
5788
|
embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
|
|
5779
5789
|
models: optional(modelSettingsShape)
|
|
5780
5790
|
};
|
|
@@ -5812,7 +5822,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5812
5822
|
};
|
|
5813
5823
|
}, "resolveAISettings");
|
|
5814
5824
|
|
|
5815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5816
5826
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5817
5827
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5818
5828
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5826,14 +5836,16 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5826
5836
|
return ms2;
|
|
5827
5837
|
}, "parseDuration");
|
|
5828
5838
|
|
|
5829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5830
5840
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5831
5841
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5842
|
+
var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
|
|
5832
5843
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
5833
5844
|
var TEXT_MODELS = [
|
|
5834
5845
|
{
|
|
5835
5846
|
id: "e5-small",
|
|
5836
5847
|
title: "multilingual-e5-small, 8-bit",
|
|
5848
|
+
size: "small",
|
|
5837
5849
|
languages: "about 100 languages, Russian and English among them",
|
|
5838
5850
|
licence: "MIT",
|
|
5839
5851
|
dims: 384,
|
|
@@ -5867,6 +5879,7 @@ var TEXT_MODELS = [
|
|
|
5867
5879
|
{
|
|
5868
5880
|
id: "embeddinggemma",
|
|
5869
5881
|
title: "EmbeddingGemma 300M, 4-bit",
|
|
5882
|
+
size: "medium",
|
|
5870
5883
|
languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
|
|
5871
5884
|
licence: "Gemma Terms of Use",
|
|
5872
5885
|
terms: "https://ai.google.dev/gemma/terms",
|
|
@@ -5903,16 +5916,113 @@ var TEXT_MODELS = [
|
|
|
5903
5916
|
bytes: 1156830
|
|
5904
5917
|
}
|
|
5905
5918
|
]
|
|
5919
|
+
},
|
|
5920
|
+
{
|
|
5921
|
+
id: "e5-large",
|
|
5922
|
+
title: "multilingual-e5-large, 8-bit",
|
|
5923
|
+
size: "large",
|
|
5924
|
+
languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
|
|
5925
|
+
licence: "MIT",
|
|
5926
|
+
dims: 1024,
|
|
5927
|
+
maxTokens: 512,
|
|
5928
|
+
// 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
|
|
5929
|
+
chunksPerSecond: 4,
|
|
5930
|
+
pooling: "mean",
|
|
5931
|
+
prefix: { query: "query: ", passage: "passage: " },
|
|
5932
|
+
onnx: "onnx/model_quantized.onnx",
|
|
5933
|
+
files: [
|
|
5934
|
+
{
|
|
5935
|
+
name: "onnx/model_quantized.onnx",
|
|
5936
|
+
url: e5Large("onnx/model_quantized.onnx"),
|
|
5937
|
+
sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
|
|
5938
|
+
bytes: 561768762
|
|
5939
|
+
},
|
|
5940
|
+
{
|
|
5941
|
+
name: "tokenizer.json",
|
|
5942
|
+
url: e5Large("tokenizer.json"),
|
|
5943
|
+
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
5944
|
+
bytes: 17082660
|
|
5945
|
+
},
|
|
5946
|
+
{
|
|
5947
|
+
name: "tokenizer_config.json",
|
|
5948
|
+
url: e5Large("tokenizer_config.json"),
|
|
5949
|
+
sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
|
|
5950
|
+
bytes: 418
|
|
5951
|
+
}
|
|
5952
|
+
]
|
|
5906
5953
|
}
|
|
5907
5954
|
];
|
|
5908
5955
|
var DEFAULT_TEXT_MODEL = "e5-small";
|
|
5909
|
-
var
|
|
5910
|
-
|
|
5956
|
+
var SECTION = "text_models";
|
|
5957
|
+
var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
|
|
5958
|
+
var words = pipe(string(), trim(), minLength(1), maxLength(300));
|
|
5959
|
+
var fileName = pipe(string(), check((name) => /^[\w.-]+(\/[\w.-]+)*$/.test(name) && !name.split("/").some((part) => part === ".." || part === "."), "is not a file inside the model's folder"));
|
|
5960
|
+
var modelFile = strictObject({
|
|
5961
|
+
name: fileName,
|
|
5962
|
+
url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
|
|
5963
|
+
sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
|
|
5964
|
+
bytes: pipe(number(), integer(), minValue(1))
|
|
5965
|
+
});
|
|
5966
|
+
var CustomTextModelShape = pipe(strictObject({
|
|
5967
|
+
id: slug,
|
|
5968
|
+
title: words,
|
|
5969
|
+
languages: words,
|
|
5970
|
+
licence: words,
|
|
5971
|
+
terms: optional(pipe(string(), url())),
|
|
5972
|
+
dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
|
|
5973
|
+
maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
|
|
5974
|
+
chunksPerSecond: optional(pipe(number(), minValue(0.01))),
|
|
5975
|
+
pooling: picklist(["mean", "sentence_embedding"]),
|
|
5976
|
+
prefix: strictObject({
|
|
5977
|
+
query: pipe(string(), maxLength(200)),
|
|
5978
|
+
passage: pipe(string(), maxLength(200))
|
|
5979
|
+
}),
|
|
5980
|
+
onnx: fileName,
|
|
5981
|
+
externalData: optional(fileName),
|
|
5982
|
+
files: pipe(array(modelFile), minLength(1), maxLength(16))
|
|
5983
|
+
}), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
|
|
5984
|
+
const names = model3.files.map(({ name }) => name);
|
|
5985
|
+
return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
|
|
5986
|
+
}, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
|
|
5987
|
+
var TextModelsSection = strictObject({
|
|
5988
|
+
use: optional(slug),
|
|
5989
|
+
custom: optional(array(CustomTextModelShape))
|
|
5990
|
+
});
|
|
5991
|
+
var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
|
|
5992
|
+
var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
|
|
5993
|
+
const path2 = textModelsFile(env);
|
|
5994
|
+
const section = readSharedSection(path2, SECTION);
|
|
5995
|
+
if (section === void 0)
|
|
5996
|
+
return {};
|
|
5997
|
+
const checked = safeParse(TextModelsSection, section);
|
|
5998
|
+
if (!checked.success) {
|
|
5999
|
+
const issue = checked.issues[0];
|
|
6000
|
+
const at2 = issue ? getDotPath(issue) : null;
|
|
6001
|
+
throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
|
|
6002
|
+
}
|
|
6003
|
+
const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
|
|
6004
|
+
const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
|
|
6005
|
+
if (twice)
|
|
6006
|
+
throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
|
|
6007
|
+
return checked.output;
|
|
6008
|
+
}, "readTextModelsSection");
|
|
6009
|
+
var writeTextModelsSection = /* @__PURE__ */ __name((section, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section.use === void 0 && !section.custom?.length ? void 0 : section), "writeTextModelsSection");
|
|
6010
|
+
var textModels = /* @__PURE__ */ __name((env = process.env) => [
|
|
6011
|
+
...TEXT_MODELS,
|
|
6012
|
+
...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
|
|
6013
|
+
], "textModels");
|
|
6014
|
+
var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
|
|
6015
|
+
const known = textModels(env);
|
|
6016
|
+
const found = known.find((model3) => model3.id === id6);
|
|
5911
6017
|
if (!found) {
|
|
5912
|
-
throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${
|
|
6018
|
+
throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
|
|
5913
6019
|
}
|
|
5914
6020
|
return found;
|
|
5915
6021
|
}, "textModel");
|
|
6022
|
+
var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
|
|
6023
|
+
const use = readTextModelsSection(env).use;
|
|
6024
|
+
return use === void 0 ? { id: DEFAULT_TEXT_MODEL, from: "default" } : { id: use, from: "chosen" };
|
|
6025
|
+
}, "chosenTextModel");
|
|
5916
6026
|
var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
|
|
5917
6027
|
var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
|
|
5918
6028
|
var RERANK_MODELS = [
|
|
@@ -5982,10 +6092,13 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5982
6092
|
}
|
|
5983
6093
|
return found;
|
|
5984
6094
|
}, "rerankModel");
|
|
5985
|
-
var vectorModelKey = /* @__PURE__ */ __name((model3) =>
|
|
6095
|
+
var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
6096
|
+
const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
|
|
6097
|
+
return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
|
|
6098
|
+
}, "vectorModelKey");
|
|
5986
6099
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5987
6100
|
|
|
5988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5989
6102
|
var HISTORY_MAX_DAYS = 1095;
|
|
5990
6103
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5991
6104
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -6032,10 +6145,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
6032
6145
|
return { batch: { ...batch, messages }, skipped };
|
|
6033
6146
|
}, "limitBatch");
|
|
6034
6147
|
|
|
6035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6036
6149
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
6037
6150
|
|
|
6038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
6039
6152
|
var REPAIR_WORDS = {
|
|
6040
6153
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
6041
6154
|
comment: "a comment, which JSON does not allow",
|
|
@@ -6276,7 +6389,7 @@ ${parts.join(",\n")}
|
|
|
6276
6389
|
${indent}${close}`;
|
|
6277
6390
|
}, "serialise");
|
|
6278
6391
|
|
|
6279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6280
6393
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6281
6394
|
var SECTIONS = ["personal", "bot"];
|
|
6282
6395
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -6570,7 +6683,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6570
6683
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6571
6684
|
}, "readConfigFile");
|
|
6572
6685
|
|
|
6573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6574
6687
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6575
6688
|
import { dirname, join as join4 } from "node:path";
|
|
6576
6689
|
var DEFAULT_CONFIG = {
|
|
@@ -6599,7 +6712,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6599
6712
|
}
|
|
6600
6713
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6601
6714
|
|
|
6602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6603
6716
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6604
6717
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6605
6718
|
const path2 = key.split(".");
|
|
@@ -6621,7 +6734,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
6621
6734
|
return { config, added };
|
|
6622
6735
|
}, "withSettingDefaults");
|
|
6623
6736
|
|
|
6624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6625
6738
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6626
6739
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6627
6740
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6765,8 +6878,8 @@ var NoProfileHere = class extends CliError {
|
|
|
6765
6878
|
this.app = app;
|
|
6766
6879
|
}
|
|
6767
6880
|
/** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
|
|
6768
|
-
withoutSetup(
|
|
6769
|
-
const command =
|
|
6881
|
+
withoutSetup(words2) {
|
|
6882
|
+
const command = words2 ? `${this.app.command} personal ${words2}` : `${this.app.command} personal \u2026`;
|
|
6770
6883
|
return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { profiles: [] });
|
|
6771
6884
|
}
|
|
6772
6885
|
};
|
|
@@ -7131,7 +7244,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
7131
7244
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
7132
7245
|
}, "given");
|
|
7133
7246
|
|
|
7134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
7135
7248
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
7136
7249
|
const slot = environmentOf(command).exit;
|
|
7137
7250
|
if (slot)
|
|
@@ -7247,13 +7360,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
|
7247
7360
|
return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
|
|
7248
7361
|
}, "inCommandRun");
|
|
7249
7362
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
7250
|
-
const
|
|
7363
|
+
const words2 = [];
|
|
7251
7364
|
for (let current2 = command; current2?.parent; current2 = current2.parent)
|
|
7252
|
-
|
|
7253
|
-
return
|
|
7365
|
+
words2.unshift(current2.name());
|
|
7366
|
+
return words2.join(" ");
|
|
7254
7367
|
}, "commandPath");
|
|
7255
7368
|
|
|
7256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
7257
7370
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
7258
7371
|
var FETCH = { remote: "read", local: "write" };
|
|
7259
7372
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -7348,10 +7461,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
|
|
|
7348
7461
|
throw readOnlyRefusal(lock, storeChangeRefusal(app));
|
|
7349
7462
|
}, "refuseStoreChange");
|
|
7350
7463
|
var pathOf2 = /* @__PURE__ */ __name((command) => {
|
|
7351
|
-
const
|
|
7464
|
+
const words2 = [];
|
|
7352
7465
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
7353
|
-
|
|
7354
|
-
return
|
|
7466
|
+
words2.unshift(at2.name());
|
|
7467
|
+
return words2;
|
|
7355
7468
|
}, "pathOf");
|
|
7356
7469
|
var changesMessenger = /* @__PURE__ */ __name((command) => {
|
|
7357
7470
|
const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
|
|
@@ -7385,7 +7498,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
7385
7498
|
throw readOnlyRefusal(lock, what);
|
|
7386
7499
|
}, "refuseUnderReadOnly");
|
|
7387
7500
|
|
|
7388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
7389
7502
|
var account = strictObject({
|
|
7390
7503
|
provider: text,
|
|
7391
7504
|
id,
|
|
@@ -7395,7 +7508,7 @@ var account = strictObject({
|
|
|
7395
7508
|
scope: optional(picklist(["personal", "work"]))
|
|
7396
7509
|
});
|
|
7397
7510
|
|
|
7398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
7399
7512
|
var accountSession = strictObject({
|
|
7400
7513
|
current: boolean(),
|
|
7401
7514
|
client: nullable(text),
|
|
@@ -7405,7 +7518,7 @@ var accountSession = strictObject({
|
|
|
7405
7518
|
created_at: optional(nullable(time))
|
|
7406
7519
|
});
|
|
7407
7520
|
|
|
7408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
7409
7522
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
7410
7523
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
7411
7524
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -7422,8 +7535,19 @@ var accountPrivacy = strictObject({
|
|
|
7422
7535
|
last_seen: optional(shownAudience)
|
|
7423
7536
|
});
|
|
7424
7537
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
7538
|
+
var removalKind = picklist(["sign_in", "keyring", "config", "file", "store", "unit", "schedule"]);
|
|
7539
|
+
var accountRemoval = strictObject({
|
|
7540
|
+
profile: text,
|
|
7541
|
+
data: picklist(["kept", "deleted"]),
|
|
7542
|
+
dry_run: boolean(),
|
|
7543
|
+
account: nullable(strictObject({ provider: text, account: text })),
|
|
7544
|
+
revoked: nullable(boolean()),
|
|
7545
|
+
config_file: text,
|
|
7546
|
+
removed: array(strictObject({ kind: removalKind, target: text })),
|
|
7547
|
+
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
7548
|
+
});
|
|
7425
7549
|
|
|
7426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
7427
7551
|
var accountProfile = strictObject({
|
|
7428
7552
|
profile: id,
|
|
7429
7553
|
current: boolean(),
|
|
@@ -7435,7 +7559,7 @@ var accountProfile = strictObject({
|
|
|
7435
7559
|
bot: optional(literal(true))
|
|
7436
7560
|
});
|
|
7437
7561
|
|
|
7438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
7439
7563
|
var milliseconds = pipe(number(), minValue(0));
|
|
7440
7564
|
var counterReading = strictObject({
|
|
7441
7565
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7447,7 +7571,7 @@ var counterReading = strictObject({
|
|
|
7447
7571
|
});
|
|
7448
7572
|
var selection = record(string(), unknown());
|
|
7449
7573
|
|
|
7450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7451
7575
|
var adminRow = strictObject({
|
|
7452
7576
|
ref: reference,
|
|
7453
7577
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7500,7 +7624,7 @@ var adminReport = strictObject({
|
|
|
7500
7624
|
rows: array(adminRow)
|
|
7501
7625
|
});
|
|
7502
7626
|
|
|
7503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7504
7628
|
var closeSuggestion = strictObject({
|
|
7505
7629
|
as: picklist(["done", "dismissed"]),
|
|
7506
7630
|
/** The agent's name. */
|
|
@@ -7562,7 +7686,7 @@ var task = strictObject({
|
|
|
7562
7686
|
updated_at: optional(time)
|
|
7563
7687
|
});
|
|
7564
7688
|
|
|
7565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7566
7690
|
var agendaChat = strictObject({
|
|
7567
7691
|
chat: reference,
|
|
7568
7692
|
title: nullable(text),
|
|
@@ -7632,11 +7756,11 @@ var agenda = strictObject({
|
|
|
7632
7756
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7633
7757
|
});
|
|
7634
7758
|
|
|
7635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7636
7760
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7637
7761
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7638
7762
|
|
|
7639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7640
7764
|
var attachment = strictObject({
|
|
7641
7765
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7642
7766
|
message: optional(reference),
|
|
@@ -7674,7 +7798,7 @@ var attachment = strictObject({
|
|
|
7674
7798
|
});
|
|
7675
7799
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7676
7800
|
|
|
7677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7678
7802
|
var actionableError = objectWithRest({
|
|
7679
7803
|
code: text,
|
|
7680
7804
|
message: text,
|
|
@@ -7691,7 +7815,7 @@ var batchResult = strictObject({
|
|
|
7691
7815
|
max_error_percent: count
|
|
7692
7816
|
});
|
|
7693
7817
|
|
|
7694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7695
7819
|
var extractionItem = strictObject({
|
|
7696
7820
|
ref: reference,
|
|
7697
7821
|
attachment: count,
|
|
@@ -7724,7 +7848,7 @@ var extractionReport = strictObject({
|
|
|
7724
7848
|
cursor: optional(text)
|
|
7725
7849
|
});
|
|
7726
7850
|
|
|
7727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7728
7852
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7729
7853
|
var attachmentBytes = strictObject({
|
|
7730
7854
|
ref: reference,
|
|
@@ -7752,7 +7876,7 @@ var attachmentTextChange = strictObject({
|
|
|
7752
7876
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7753
7877
|
});
|
|
7754
7878
|
|
|
7755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7756
7880
|
var chart = strictObject({
|
|
7757
7881
|
version: literal(1),
|
|
7758
7882
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7767,7 +7891,7 @@ var chart = strictObject({
|
|
|
7767
7891
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7768
7892
|
});
|
|
7769
7893
|
|
|
7770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7771
7895
|
var member = strictObject({
|
|
7772
7896
|
id,
|
|
7773
7897
|
name: nullable(text),
|
|
@@ -7790,7 +7914,7 @@ var member = strictObject({
|
|
|
7790
7914
|
check: optional(record(string(), unknown()))
|
|
7791
7915
|
});
|
|
7792
7916
|
|
|
7793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7794
7918
|
var setting = optional(nullable(boolean()));
|
|
7795
7919
|
var chat = strictObject({
|
|
7796
7920
|
ref: reference,
|
|
@@ -7831,7 +7955,7 @@ var chat = strictObject({
|
|
|
7831
7955
|
members: optional(array(member))
|
|
7832
7956
|
});
|
|
7833
7957
|
|
|
7834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7835
7959
|
var named2 = strictObject({
|
|
7836
7960
|
id,
|
|
7837
7961
|
title: nullable(text),
|
|
@@ -7854,7 +7978,7 @@ var folder = strictObject({
|
|
|
7854
7978
|
excluded_chats: optional(array(named2))
|
|
7855
7979
|
});
|
|
7856
7980
|
|
|
7857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7858
7982
|
var inviteLink = strictObject({
|
|
7859
7983
|
link: text,
|
|
7860
7984
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7870,7 +7994,7 @@ var inviteLink = strictObject({
|
|
|
7870
7994
|
joined_count: optional(count)
|
|
7871
7995
|
});
|
|
7872
7996
|
|
|
7873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7874
7998
|
var operated = { operation_id: id, chat_id: id };
|
|
7875
7999
|
var group = strictObject({
|
|
7876
8000
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7950,7 +8074,7 @@ var chatFolderOrder = strictObject({
|
|
|
7950
8074
|
folders: array(strictObject({ id, title: text }))
|
|
7951
8075
|
});
|
|
7952
8076
|
|
|
7953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7954
8078
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7955
8079
|
var chatRemoval = strictObject(operated2);
|
|
7956
8080
|
var chatMuting = strictObject({
|
|
@@ -7961,7 +8085,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7961
8085
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7962
8086
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7963
8087
|
|
|
7964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7965
8089
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7966
8090
|
var chatEvent = strictObject({
|
|
7967
8091
|
chat_id: id,
|
|
@@ -7978,7 +8102,7 @@ var chatEvent = strictObject({
|
|
|
7978
8102
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7979
8103
|
});
|
|
7980
8104
|
|
|
7981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7982
8106
|
var chatMetadata = strictObject({
|
|
7983
8107
|
chat_id: id,
|
|
7984
8108
|
title: nullable(text),
|
|
@@ -7993,7 +8117,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7993
8117
|
has_more: boolean()
|
|
7994
8118
|
});
|
|
7995
8119
|
|
|
7996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7997
8121
|
var action = picklist(["report", "delete", "remove"]);
|
|
7998
8122
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7999
8123
|
var chatRules = strictObject({
|
|
@@ -8030,7 +8154,7 @@ var chatModeration = strictObject({
|
|
|
8030
8154
|
}))
|
|
8031
8155
|
});
|
|
8032
8156
|
|
|
8033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
8034
8158
|
var optionalCount = optional(count);
|
|
8035
8159
|
var minutes = nullable(number());
|
|
8036
8160
|
var chatStats = strictObject({
|
|
@@ -8104,7 +8228,7 @@ var taskStats = strictObject({
|
|
|
8104
8228
|
}))
|
|
8105
8229
|
});
|
|
8106
8230
|
|
|
8107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
8108
8232
|
var memberCount = strictObject({
|
|
8109
8233
|
day: pipe(text, isoDate()),
|
|
8110
8234
|
participants: nullable(count),
|
|
@@ -8127,7 +8251,7 @@ var chatTracking = strictObject({
|
|
|
8127
8251
|
tracked: boolean()
|
|
8128
8252
|
});
|
|
8129
8253
|
|
|
8130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
8131
8255
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8132
8256
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
8133
8257
|
var profileFields = {
|
|
@@ -8165,7 +8289,7 @@ var profileFields = {
|
|
|
8165
8289
|
}))
|
|
8166
8290
|
};
|
|
8167
8291
|
|
|
8168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
8169
8293
|
var contact = strictObject({
|
|
8170
8294
|
ref: reference,
|
|
8171
8295
|
id,
|
|
@@ -8196,7 +8320,7 @@ var contact = strictObject({
|
|
|
8196
8320
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8197
8321
|
});
|
|
8198
8322
|
|
|
8199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
8200
8324
|
var WEIGHTS = {
|
|
8201
8325
|
bot: 3,
|
|
8202
8326
|
scam: 3,
|
|
@@ -8221,7 +8345,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
8221
8345
|
var DIGITS = /\d{5,}/;
|
|
8222
8346
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
8223
8347
|
|
|
8224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
8225
8349
|
var linkedIdentity = strictObject({
|
|
8226
8350
|
provider: text,
|
|
8227
8351
|
id,
|
|
@@ -8263,7 +8387,7 @@ var contactCheck = strictObject({
|
|
|
8263
8387
|
checked_at: time
|
|
8264
8388
|
});
|
|
8265
8389
|
|
|
8266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
8267
8391
|
var quoted = strictObject({
|
|
8268
8392
|
id,
|
|
8269
8393
|
sender_id: nullable(id),
|
|
@@ -8382,7 +8506,7 @@ var message = strictObject({
|
|
|
8382
8506
|
provider_metadata: providerMetadata
|
|
8383
8507
|
});
|
|
8384
8508
|
|
|
8385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
8386
8510
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
8387
8511
|
var contextMessage = strictObject({
|
|
8388
8512
|
locator: reference,
|
|
@@ -8582,7 +8706,7 @@ var contactPreparation = strictObject({
|
|
|
8582
8706
|
})
|
|
8583
8707
|
});
|
|
8584
8708
|
|
|
8585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8586
8710
|
var contactNote = strictObject({
|
|
8587
8711
|
id,
|
|
8588
8712
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8594,13 +8718,13 @@ var contactNote = strictObject({
|
|
|
8594
8718
|
updated_at: time
|
|
8595
8719
|
});
|
|
8596
8720
|
|
|
8597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8598
8722
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8599
8723
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8600
8724
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8601
8725
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8602
8726
|
|
|
8603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8604
8728
|
var conversation = strictObject({
|
|
8605
8729
|
id,
|
|
8606
8730
|
chat: reference,
|
|
@@ -8615,7 +8739,7 @@ var conversation = strictObject({
|
|
|
8615
8739
|
rules_version: count
|
|
8616
8740
|
});
|
|
8617
8741
|
|
|
8618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8619
8743
|
var conversationBuild = strictObject({
|
|
8620
8744
|
chat: id,
|
|
8621
8745
|
messages: count,
|
|
@@ -8640,7 +8764,7 @@ var catchUpPreparation = strictObject({
|
|
|
8640
8764
|
prepared: optional(conversationPreparation)
|
|
8641
8765
|
});
|
|
8642
8766
|
|
|
8643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8644
8768
|
var conversationDetails = union([
|
|
8645
8769
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8646
8770
|
message
|
|
@@ -8730,7 +8854,7 @@ var conversationHit = strictObject({
|
|
|
8730
8854
|
stale: boolean()
|
|
8731
8855
|
});
|
|
8732
8856
|
|
|
8733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8734
8858
|
var counters = strictObject({
|
|
8735
8859
|
cutoff: time,
|
|
8736
8860
|
max_age_ms: milliseconds,
|
|
@@ -8760,7 +8884,7 @@ var counterRefresh = strictObject({
|
|
|
8760
8884
|
complete: optional(boolean())
|
|
8761
8885
|
});
|
|
8762
8886
|
|
|
8763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
8764
8888
|
var nullableText = nullable(text);
|
|
8765
8889
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
8766
8890
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -8850,7 +8974,7 @@ var stage = strictObject({
|
|
|
8850
8974
|
untrusted
|
|
8851
8975
|
});
|
|
8852
8976
|
|
|
8853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8854
8978
|
var document = strictObject({
|
|
8855
8979
|
ref: reference,
|
|
8856
8980
|
id,
|
|
@@ -8865,7 +8989,7 @@ var document = strictObject({
|
|
|
8865
8989
|
owners: optional(array(text))
|
|
8866
8990
|
});
|
|
8867
8991
|
|
|
8868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8869
8993
|
var documentLink = strictObject({
|
|
8870
8994
|
ref: reference,
|
|
8871
8995
|
url: text,
|
|
@@ -8876,7 +9000,7 @@ var documentLink = strictObject({
|
|
|
8876
9000
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8877
9001
|
});
|
|
8878
9002
|
|
|
8879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8880
9004
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8881
9005
|
var contribution = strictObject({
|
|
8882
9006
|
message: evidenceMessage,
|
|
@@ -8906,7 +9030,7 @@ var retentionStay = strictObject({
|
|
|
8906
9030
|
});
|
|
8907
9031
|
var evidence = union([contribution, retentionStay]);
|
|
8908
9032
|
|
|
8909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8910
9034
|
var fact = strictObject({
|
|
8911
9035
|
ref: reference,
|
|
8912
9036
|
id,
|
|
@@ -8932,13 +9056,14 @@ var fact = strictObject({
|
|
|
8932
9056
|
evidence: array(reference),
|
|
8933
9057
|
/** With `--sources`: each piece of evidence read back. */
|
|
8934
9058
|
sources: optional(array(evidenceSource)),
|
|
9059
|
+
source_review: optional(sourceReview),
|
|
8935
9060
|
created_at: time,
|
|
8936
9061
|
updated_at: time
|
|
8937
9062
|
});
|
|
8938
9063
|
|
|
8939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8940
9065
|
var hit = strictObject({
|
|
8941
|
-
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
|
|
9066
|
+
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
8942
9067
|
ref: reference,
|
|
8943
9068
|
provider: text,
|
|
8944
9069
|
url: optional(text),
|
|
@@ -8968,13 +9093,17 @@ var hit = strictObject({
|
|
|
8968
9093
|
lines_total: optional(count),
|
|
8969
9094
|
/** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
|
|
8970
9095
|
id: optional(pipe(string(), minLength(1))),
|
|
9096
|
+
/** A business hit's: `proposed` waits for the owner; a product or a wallet has no review and is `confirmed`. */
|
|
9097
|
+
review: optional(picklist(["proposed", "confirmed"])),
|
|
9098
|
+
/** A business hit's record in the import that made it; absent for one the owner or an agent wrote. */
|
|
9099
|
+
source_record: optional(strictObject({ provider: text, account: text, external_id: text })),
|
|
8971
9100
|
/** A message's files; absent when it has none. */
|
|
8972
9101
|
attachments: optional(array(hitFile)),
|
|
8973
9102
|
/** Absent on a note hit: the owner wrote it. */
|
|
8974
9103
|
untrusted
|
|
8975
9104
|
});
|
|
8976
9105
|
|
|
8977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8978
9107
|
var identity = strictObject({
|
|
8979
9108
|
ref: reference,
|
|
8980
9109
|
provider: text,
|
|
@@ -8987,7 +9116,7 @@ var identity = strictObject({
|
|
|
8987
9116
|
person: optional(nullable(reference))
|
|
8988
9117
|
});
|
|
8989
9118
|
|
|
8990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8991
9120
|
var imageEmbedding = strictObject({
|
|
8992
9121
|
model: text,
|
|
8993
9122
|
embedded: count,
|
|
@@ -8996,13 +9125,13 @@ var imageEmbedding = strictObject({
|
|
|
8996
9125
|
more: boolean()
|
|
8997
9126
|
});
|
|
8998
9127
|
|
|
8999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
9000
9129
|
import { spawn } from "node:child_process";
|
|
9001
9130
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
9002
9131
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
9003
9132
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
9004
9133
|
|
|
9005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
9006
9135
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
9007
9136
|
const total = input.total ?? null;
|
|
9008
9137
|
const updated = input.updatedAt ?? null;
|
|
@@ -9018,7 +9147,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
9018
9147
|
};
|
|
9019
9148
|
}, "progressOf");
|
|
9020
9149
|
|
|
9021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
9022
9151
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
9023
9152
|
const run = currentRun();
|
|
9024
9153
|
const trace = traceId ?? run.traceId;
|
|
@@ -9032,7 +9161,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
9032
9161
|
}));
|
|
9033
9162
|
}, "recordLogFor");
|
|
9034
9163
|
|
|
9035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
9036
9165
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
9037
9166
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
9038
9167
|
const out = openSync(log, "a", 384);
|
|
@@ -9187,7 +9316,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
9187
9316
|
return { job: id6, pid, chat: input.chat, log };
|
|
9188
9317
|
}, "startArchiveJob");
|
|
9189
9318
|
|
|
9190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
9191
9320
|
var problem = strictObject({ code: text, message: text });
|
|
9192
9321
|
var job = strictObject({
|
|
9193
9322
|
id,
|
|
@@ -9210,7 +9339,7 @@ var job = strictObject({
|
|
|
9210
9339
|
error: optional(problem)
|
|
9211
9340
|
});
|
|
9212
9341
|
|
|
9213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
9214
9343
|
var joinRequest = strictObject({
|
|
9215
9344
|
person_id: id,
|
|
9216
9345
|
name: nullable(text),
|
|
@@ -9221,7 +9350,7 @@ var joinRequest = strictObject({
|
|
|
9221
9350
|
about: optional(text)
|
|
9222
9351
|
});
|
|
9223
9352
|
|
|
9224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
9225
9354
|
var botProfile = strictObject({
|
|
9226
9355
|
name: text,
|
|
9227
9356
|
token: text,
|
|
@@ -9266,11 +9395,13 @@ var scheduledJob = strictObject({
|
|
|
9266
9395
|
failing_since: optional(time),
|
|
9267
9396
|
failures: optional(number()),
|
|
9268
9397
|
cost_usd: optional(number()),
|
|
9269
|
-
|
|
9398
|
+
input_hash: optional(text),
|
|
9399
|
+
/** The last time a run did not start, and why: the day's cost cap, too little new mail, or the same input. */
|
|
9270
9400
|
skipped: optional(strictObject({
|
|
9271
9401
|
at: time,
|
|
9272
9402
|
why: text,
|
|
9273
|
-
/** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold
|
|
9403
|
+
/** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`,
|
|
9404
|
+
* `mail.same-input`. */
|
|
9274
9405
|
reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
|
|
9275
9406
|
})),
|
|
9276
9407
|
/** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
|
|
@@ -9314,7 +9445,7 @@ var stickerInventory = strictObject({
|
|
|
9314
9445
|
url: optional(nullable(text))
|
|
9315
9446
|
});
|
|
9316
9447
|
|
|
9317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
9318
9449
|
var pollVote = strictObject({
|
|
9319
9450
|
person_id: id,
|
|
9320
9451
|
name: nullable(text),
|
|
@@ -9324,7 +9455,7 @@ var pollVote = strictObject({
|
|
|
9324
9455
|
voted_at: time
|
|
9325
9456
|
});
|
|
9326
9457
|
|
|
9327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
9328
9459
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
9329
9460
|
var observation = strictObject({
|
|
9330
9461
|
value: pipe(number(), minValue(0)),
|
|
@@ -9366,7 +9497,7 @@ var serveSummary = strictObject({
|
|
|
9366
9497
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
9367
9498
|
});
|
|
9368
9499
|
|
|
9369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
9370
9501
|
var mailCounts = strictObject({
|
|
9371
9502
|
by: picklist(["day", "week", "sender"]),
|
|
9372
9503
|
received: count,
|
|
@@ -9381,7 +9512,7 @@ var mailCounts = strictObject({
|
|
|
9381
9512
|
}))
|
|
9382
9513
|
});
|
|
9383
9514
|
|
|
9384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
9385
9516
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
9386
9517
|
var base = { id, evidence: array(evidence2) };
|
|
9387
9518
|
var finding = variant("kind", [
|
|
@@ -9525,7 +9656,7 @@ var mailFindings = strictObject({
|
|
|
9525
9656
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9526
9657
|
});
|
|
9527
9658
|
|
|
9528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9529
9660
|
var mediaArchive = strictObject({
|
|
9530
9661
|
directory: text,
|
|
9531
9662
|
chats: count,
|
|
@@ -9557,7 +9688,7 @@ var mediaArchiveTimer = union([
|
|
|
9557
9688
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9558
9689
|
]);
|
|
9559
9690
|
|
|
9560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9561
9692
|
var preparationId = pipe(string(), minLength(1));
|
|
9562
9693
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9563
9694
|
var preparationTime = nullable(isoTime);
|
|
@@ -9649,7 +9780,7 @@ var preparationMeeting = strictObject({
|
|
|
9649
9780
|
updated_at: isoTime
|
|
9650
9781
|
});
|
|
9651
9782
|
|
|
9652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9653
9784
|
var meetingEvidence = preparationEvidence;
|
|
9654
9785
|
var meetingPersonContext = strictObject({
|
|
9655
9786
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9671,7 +9802,7 @@ var meetingPersonContext = strictObject({
|
|
|
9671
9802
|
})
|
|
9672
9803
|
});
|
|
9673
9804
|
|
|
9674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9675
9806
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9676
9807
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9677
9808
|
var finding2 = variant("kind", [
|
|
@@ -9709,7 +9840,7 @@ var meetingFindings = strictObject({
|
|
|
9709
9840
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9710
9841
|
});
|
|
9711
9842
|
|
|
9712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9713
9844
|
var communicationCoverage = strictObject({
|
|
9714
9845
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9715
9846
|
query: string(),
|
|
@@ -9754,7 +9885,7 @@ var preparationCommunications = strictObject({
|
|
|
9754
9885
|
}))
|
|
9755
9886
|
});
|
|
9756
9887
|
|
|
9757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9758
9889
|
var meetingPreparation = strictObject({
|
|
9759
9890
|
communications: optional(preparationCommunications),
|
|
9760
9891
|
schema_version: literal(1),
|
|
@@ -9867,7 +9998,7 @@ var meetingPreparation = strictObject({
|
|
|
9867
9998
|
})
|
|
9868
9999
|
});
|
|
9869
10000
|
|
|
9870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9871
10002
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9872
10003
|
var id3 = pipe(string(), minLength(1));
|
|
9873
10004
|
var text3 = string();
|
|
@@ -9931,7 +10062,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9931
10062
|
})
|
|
9932
10063
|
});
|
|
9933
10064
|
|
|
9934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9935
10066
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9936
10067
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9937
10068
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9961,7 +10092,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9961
10092
|
})
|
|
9962
10093
|
});
|
|
9963
10094
|
|
|
9964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9965
10096
|
var text4 = string();
|
|
9966
10097
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9967
10098
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9978,7 +10109,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9978
10109
|
persistence: literal("proposal-only")
|
|
9979
10110
|
});
|
|
9980
10111
|
|
|
9981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9982
10113
|
var memory = strictObject({
|
|
9983
10114
|
ref: reference,
|
|
9984
10115
|
id,
|
|
@@ -10001,11 +10132,12 @@ var memory = strictObject({
|
|
|
10001
10132
|
/** With `--sources`: each piece of evidence read back. */
|
|
10002
10133
|
sources: optional(array(evidenceSource)),
|
|
10003
10134
|
last_verified_at: nullable(time),
|
|
10135
|
+
source_review: optional(sourceReview),
|
|
10004
10136
|
created_at: time,
|
|
10005
10137
|
updated_at: time
|
|
10006
10138
|
});
|
|
10007
10139
|
|
|
10008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
10009
10141
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
10010
10142
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
10011
10143
|
var mention = strictObject({
|
|
@@ -10048,13 +10180,13 @@ var mentionRebuild = strictObject({
|
|
|
10048
10180
|
mentions: count
|
|
10049
10181
|
});
|
|
10050
10182
|
|
|
10051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
10052
10184
|
var operated3 = { operation_id: id, chat_id: id };
|
|
10053
10185
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
10054
10186
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
10055
10187
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
10056
10188
|
|
|
10057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
10058
10190
|
var messageTranscript = strictObject({
|
|
10059
10191
|
message_id: id,
|
|
10060
10192
|
text,
|
|
@@ -10112,7 +10244,7 @@ var evidencePacket = strictObject({
|
|
|
10112
10244
|
}))
|
|
10113
10245
|
});
|
|
10114
10246
|
|
|
10115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
10116
10248
|
var messageThread = strictObject({
|
|
10117
10249
|
ref: reference,
|
|
10118
10250
|
chat: id,
|
|
@@ -10129,7 +10261,7 @@ var messageThread = strictObject({
|
|
|
10129
10261
|
});
|
|
10130
10262
|
var messageContext = union([message, messageThread]);
|
|
10131
10263
|
|
|
10132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
10133
10265
|
var messageCounts = strictObject({
|
|
10134
10266
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
10135
10267
|
total: count,
|
|
@@ -10142,7 +10274,7 @@ var messageCounts = strictObject({
|
|
|
10142
10274
|
}))
|
|
10143
10275
|
});
|
|
10144
10276
|
|
|
10145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
10146
10278
|
var messageLink = strictObject({
|
|
10147
10279
|
ref: reference,
|
|
10148
10280
|
url: nullable(text),
|
|
@@ -10159,7 +10291,7 @@ var messageLink = strictObject({
|
|
|
10159
10291
|
})))
|
|
10160
10292
|
});
|
|
10161
10293
|
|
|
10162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
10163
10295
|
var savedMessageFile = strictObject({
|
|
10164
10296
|
kind: text,
|
|
10165
10297
|
path: text,
|
|
@@ -10246,7 +10378,7 @@ var messageSyncAll = strictObject({
|
|
|
10246
10378
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
10247
10379
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
10248
10380
|
|
|
10249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
10250
10382
|
var messageWrite = strictObject({
|
|
10251
10383
|
operation_id: id,
|
|
10252
10384
|
message,
|
|
@@ -10261,7 +10393,7 @@ var draftWrite = strictObject({
|
|
|
10261
10393
|
});
|
|
10262
10394
|
var messageSend = union([messageWrite, draftWrite]);
|
|
10263
10395
|
|
|
10264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
10265
10397
|
var model2 = strictObject({
|
|
10266
10398
|
id,
|
|
10267
10399
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -10269,16 +10401,34 @@ var model2 = strictObject({
|
|
|
10269
10401
|
/** Which languages it reads, in words. */
|
|
10270
10402
|
languages: text,
|
|
10271
10403
|
licence: optional(text),
|
|
10404
|
+
/** A text model's licence terms to accept with `models download --accept-terms`. */
|
|
10405
|
+
terms: optional(text),
|
|
10406
|
+
/** A text model's size next to the others: small is fastest, large reads best. */
|
|
10407
|
+
size: optional(picklist(["small", "medium", "large"])),
|
|
10408
|
+
/** A text model's vector length. */
|
|
10409
|
+
dims: optional(count),
|
|
10410
|
+
/** About how many chunks a second a text model embeds here, when measured. */
|
|
10411
|
+
chunks_per_second: optional(number()),
|
|
10412
|
+
/** A text model the owner added with `models add`. */
|
|
10413
|
+
custom: optional(boolean()),
|
|
10272
10414
|
/** What its files take on disk once downloaded. */
|
|
10273
10415
|
size_bytes: count,
|
|
10274
10416
|
downloaded: boolean(),
|
|
10275
|
-
/** The one used when no model is named. */
|
|
10417
|
+
/** The one used when no model is named: for text, the one `models use` chose. */
|
|
10276
10418
|
default: boolean(),
|
|
10277
10419
|
/** The folder its files are in once downloaded, so an agent can place them by hand. */
|
|
10278
10420
|
path: text
|
|
10279
10421
|
});
|
|
10422
|
+
var chosenModel = strictObject({
|
|
10423
|
+
...model2.entries,
|
|
10424
|
+
previous: id,
|
|
10425
|
+
/** Chunk texts the previous model has vectors for and this one has not; `null` when no store is there to count. */
|
|
10426
|
+
to_embed: nullable(count),
|
|
10427
|
+
/** Embedding time alone at the model's speed, done a part per sync; `null` when the speed or the count is unknown. */
|
|
10428
|
+
estimate_seconds: nullable(count)
|
|
10429
|
+
});
|
|
10280
10430
|
|
|
10281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
10282
10432
|
var source = picklist(["environment", "keyring", "file"]);
|
|
10283
10433
|
var modelKey = strictObject({
|
|
10284
10434
|
provider: text,
|
|
@@ -10288,7 +10438,7 @@ var modelKey = strictObject({
|
|
|
10288
10438
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
10289
10439
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
10290
10440
|
|
|
10291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
10292
10442
|
var versus = strictObject({ current: number(), previous: number() });
|
|
10293
10443
|
var person = { person_ref: reference, name: nullable(text) };
|
|
10294
10444
|
var graph = strictObject({
|
|
@@ -10322,14 +10472,14 @@ var officialStats = strictObject({
|
|
|
10322
10472
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
10323
10473
|
});
|
|
10324
10474
|
|
|
10325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
10326
10476
|
var person2 = strictObject({
|
|
10327
10477
|
ref: reference,
|
|
10328
10478
|
name: nullable(text),
|
|
10329
10479
|
identities: optional(array(identity))
|
|
10330
10480
|
});
|
|
10331
10481
|
|
|
10332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
10333
10483
|
var poll = strictObject({
|
|
10334
10484
|
chat_id: id,
|
|
10335
10485
|
message_id: id,
|
|
@@ -10345,11 +10495,11 @@ var poll = strictObject({
|
|
|
10345
10495
|
});
|
|
10346
10496
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10347
10497
|
|
|
10348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10349
10499
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10350
10500
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10351
10501
|
|
|
10352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10353
10503
|
var figures = record(string(), number());
|
|
10354
10504
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10355
10505
|
var rankingRow = strictObject({
|
|
@@ -10396,7 +10546,7 @@ var ranking = strictObject({
|
|
|
10396
10546
|
rows: array(rankingRow)
|
|
10397
10547
|
});
|
|
10398
10548
|
|
|
10399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10400
10550
|
var reaction = strictObject({
|
|
10401
10551
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10402
10552
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10404,7 +10554,7 @@ var reaction = strictObject({
|
|
|
10404
10554
|
reacted_at: time
|
|
10405
10555
|
});
|
|
10406
10556
|
|
|
10407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10408
10558
|
var reactionChange = strictObject({
|
|
10409
10559
|
operation_id: id,
|
|
10410
10560
|
chat_id: id,
|
|
@@ -10412,7 +10562,7 @@ var reactionChange = strictObject({
|
|
|
10412
10562
|
reaction: nullable(text)
|
|
10413
10563
|
});
|
|
10414
10564
|
|
|
10415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10416
10566
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10417
10567
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10418
10568
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10423,7 +10573,7 @@ var recipientChange = strictObject({
|
|
|
10423
10573
|
...partial(recipientOff).entries
|
|
10424
10574
|
});
|
|
10425
10575
|
|
|
10426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10427
10577
|
var events = array(record(string(), unknown()));
|
|
10428
10578
|
var recordedRun = strictObject({
|
|
10429
10579
|
run_id: id,
|
|
@@ -10495,7 +10645,7 @@ var runHit = strictObject({
|
|
|
10495
10645
|
});
|
|
10496
10646
|
var runLocation = strictObject({ path: text });
|
|
10497
10647
|
|
|
10498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10499
10649
|
var relationship = strictObject({
|
|
10500
10650
|
id,
|
|
10501
10651
|
from: reference,
|
|
@@ -10518,7 +10668,7 @@ var relationship = strictObject({
|
|
|
10518
10668
|
created_at: time
|
|
10519
10669
|
});
|
|
10520
10670
|
|
|
10521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10522
10672
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10523
10673
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10524
10674
|
var responseTimes = strictObject({
|
|
@@ -10535,7 +10685,7 @@ var waitingChats = strictObject({
|
|
|
10535
10685
|
by_kind: strictObject({ private: count, group: count })
|
|
10536
10686
|
});
|
|
10537
10687
|
|
|
10538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10539
10689
|
var retentionCohort = strictObject({
|
|
10540
10690
|
/** The first day of the joining day or week. */
|
|
10541
10691
|
cohort: text,
|
|
@@ -10583,7 +10733,7 @@ var retention = strictObject({
|
|
|
10583
10733
|
rows: array(retentionCohort)
|
|
10584
10734
|
});
|
|
10585
10735
|
|
|
10586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10587
10737
|
var savedSearch = strictObject({
|
|
10588
10738
|
id,
|
|
10589
10739
|
/** `null` for a run in the history. */
|
|
@@ -10600,7 +10750,7 @@ var savedSearch = strictObject({
|
|
|
10600
10750
|
});
|
|
10601
10751
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10602
10752
|
|
|
10603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10604
10754
|
var sendAttempt = strictObject({
|
|
10605
10755
|
at: time,
|
|
10606
10756
|
profile: text,
|
|
@@ -10628,7 +10778,7 @@ var sendAttempt = strictObject({
|
|
|
10628
10778
|
error_code: optional(text)
|
|
10629
10779
|
});
|
|
10630
10780
|
|
|
10631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10632
10782
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10633
10783
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10634
10784
|
var infoSchema = strictObject({
|
|
@@ -10849,7 +10999,7 @@ var storeRepair = union([
|
|
|
10849
10999
|
]);
|
|
10850
11000
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10851
11001
|
|
|
10852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10853
11003
|
var range = strictObject({ from: number(), to: number() });
|
|
10854
11004
|
var storeChatStatus = strictObject({
|
|
10855
11005
|
chat_id: id,
|
|
@@ -10947,7 +11097,7 @@ var storeJobRetry = union([
|
|
|
10947
11097
|
]);
|
|
10948
11098
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10949
11099
|
|
|
10950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10951
11101
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10952
11102
|
var storeTable = strictObject({
|
|
10953
11103
|
name: text,
|
|
@@ -10956,7 +11106,7 @@ var storeTable = strictObject({
|
|
|
10956
11106
|
bytes: optional(nullable(count))
|
|
10957
11107
|
});
|
|
10958
11108
|
|
|
10959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10960
11110
|
var tagTarget = variant("type", [
|
|
10961
11111
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10962
11112
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10987,7 +11137,7 @@ var automaticTags = strictObject({
|
|
|
10987
11137
|
dry_run: boolean()
|
|
10988
11138
|
});
|
|
10989
11139
|
|
|
10990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10991
11141
|
var tagging = strictObject({
|
|
10992
11142
|
tag: text,
|
|
10993
11143
|
type: picklist(TAG_TYPES),
|
|
@@ -11000,7 +11150,7 @@ var tagging = strictObject({
|
|
|
11000
11150
|
created_at: time
|
|
11001
11151
|
});
|
|
11002
11152
|
|
|
11003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
11004
11154
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
11005
11155
|
var taskPair = strictObject({
|
|
11006
11156
|
task: nullable(side),
|
|
@@ -11023,7 +11173,7 @@ var taskPair = strictObject({
|
|
|
11023
11173
|
created_at: time
|
|
11024
11174
|
});
|
|
11025
11175
|
|
|
11026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
11027
11177
|
var nullableTime = nullable(time);
|
|
11028
11178
|
var link = strictObject({
|
|
11029
11179
|
id,
|
|
@@ -11197,7 +11347,19 @@ var taskReview = strictObject({
|
|
|
11197
11347
|
untrusted
|
|
11198
11348
|
});
|
|
11199
11349
|
|
|
11200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
11351
|
+
var template = strictObject({
|
|
11352
|
+
key: text,
|
|
11353
|
+
channel: picklist(["telegram", "email", "text"]),
|
|
11354
|
+
language: text,
|
|
11355
|
+
about: text,
|
|
11356
|
+
renders: boolean(),
|
|
11357
|
+
source: picklist(["stored", "default"]),
|
|
11358
|
+
updated_at: nullable(time),
|
|
11359
|
+
updated_by: nullable(text)
|
|
11360
|
+
});
|
|
11361
|
+
|
|
11362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
11201
11363
|
var topic = strictObject({
|
|
11202
11364
|
id,
|
|
11203
11365
|
title: text,
|
|
@@ -11211,7 +11373,7 @@ var topic = strictObject({
|
|
|
11211
11373
|
untrusted
|
|
11212
11374
|
});
|
|
11213
11375
|
|
|
11214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
11215
11377
|
var ENTITIES = {
|
|
11216
11378
|
sync_progress: progress,
|
|
11217
11379
|
deal,
|
|
@@ -11299,6 +11461,7 @@ var ENTITIES = {
|
|
|
11299
11461
|
account_session: accountSession,
|
|
11300
11462
|
account_change: accountChange,
|
|
11301
11463
|
ended_account_sessions: endedAccountSessions,
|
|
11464
|
+
account_removal: accountRemoval,
|
|
11302
11465
|
account_privacy: accountPrivacy,
|
|
11303
11466
|
account_privacy_change: accountPrivacyChange,
|
|
11304
11467
|
account_profile: accountProfile,
|
|
@@ -11453,6 +11616,7 @@ var ENTITIES = {
|
|
|
11453
11616
|
chat_folder_order: chatFolderOrder,
|
|
11454
11617
|
chat_rules: chatRules,
|
|
11455
11618
|
chat_moderation: chatModeration,
|
|
11619
|
+
"model.chosen": chosenModel,
|
|
11456
11620
|
model_key: modelKey,
|
|
11457
11621
|
"model_key.stored": storedModelKey,
|
|
11458
11622
|
"model_key.removed": removedModelKey,
|
|
@@ -11490,14 +11654,15 @@ var ENTITIES = {
|
|
|
11490
11654
|
tracked_chat: trackedChat,
|
|
11491
11655
|
tracked_chat_history: trackedChatHistory,
|
|
11492
11656
|
chat_tracking: chatTracking,
|
|
11493
|
-
task_stats: taskStats
|
|
11657
|
+
task_stats: taskStats,
|
|
11658
|
+
template
|
|
11494
11659
|
};
|
|
11495
11660
|
var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.entries(ENTITIES).map(([name, schema2]) => {
|
|
11496
11661
|
const { $schema: _, ...definition } = jsonSchemaOf(schema2);
|
|
11497
11662
|
return [name, definition];
|
|
11498
11663
|
})), "entityDefinitions");
|
|
11499
11664
|
|
|
11500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11501
11666
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11502
11667
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11503
11668
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11531,7 +11696,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11531
11696
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11532
11697
|
}, "answerRow");
|
|
11533
11698
|
|
|
11534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11535
11700
|
import { join as join6 } from "node:path";
|
|
11536
11701
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11537
11702
|
var IMAGE_MODELS = [
|
|
@@ -11585,7 +11750,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11585
11750
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11586
11751
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11587
11752
|
|
|
11588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11589
11754
|
var STEPS2 = defineSteps([
|
|
11590
11755
|
...STEPS,
|
|
11591
11756
|
{
|
|
@@ -11819,10 +11984,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
|
11819
11984
|
const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
|
|
11820
11985
|
return stepOf(definition, { ...input, args });
|
|
11821
11986
|
}, "nextStep");
|
|
11822
|
-
var lineOf = /* @__PURE__ */ __name((command,
|
|
11987
|
+
var lineOf = /* @__PURE__ */ __name((command, words2) => {
|
|
11823
11988
|
const root = rootOf2(command);
|
|
11824
11989
|
const profile = root.getOptionValue("profile");
|
|
11825
|
-
return typedCommand(root.name(),
|
|
11990
|
+
return typedCommand(root.name(), words2, typeof profile === "string" && profile !== "" ? profile : void 0);
|
|
11826
11991
|
}, "lineOf");
|
|
11827
11992
|
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
11828
11993
|
let root = command;
|
|
@@ -11872,7 +12037,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11872
12037
|
].join(" ");
|
|
11873
12038
|
}, "stepLine");
|
|
11874
12039
|
|
|
11875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11876
12041
|
var where = [{ field: "ref" }];
|
|
11877
12042
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11878
12043
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11964,7 +12129,7 @@ var STATUS_ROWS = {
|
|
|
11964
12129
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11965
12130
|
};
|
|
11966
12131
|
|
|
11967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11968
12133
|
var TEXT_CHARS = 400;
|
|
11969
12134
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11970
12135
|
var messageRow = {
|
|
@@ -12330,7 +12495,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12330
12495
|
return lines.concat(footerOf(body)).join("\n");
|
|
12331
12496
|
}, "compactText");
|
|
12332
12497
|
|
|
12333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12334
12499
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12335
12500
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12336
12501
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12356,10 +12521,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
|
|
|
12356
12521
|
return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
|
|
12357
12522
|
}, "declaresRow");
|
|
12358
12523
|
var pathOf3 = /* @__PURE__ */ __name((command) => {
|
|
12359
|
-
const
|
|
12524
|
+
const words2 = [];
|
|
12360
12525
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
12361
|
-
|
|
12362
|
-
return
|
|
12526
|
+
words2.unshift(at2.name());
|
|
12527
|
+
return words2.join(" ");
|
|
12363
12528
|
}, "pathOf");
|
|
12364
12529
|
var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
|
|
12365
12530
|
kind: "command",
|
|
@@ -12388,7 +12553,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12388
12553
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12389
12554
|
}, "largeAnswerSteps");
|
|
12390
12555
|
|
|
12391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12392
12557
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12393
12558
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12394
12559
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12402,7 +12567,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12402
12567
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12403
12568
|
}, "strip");
|
|
12404
12569
|
|
|
12405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12406
12571
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12407
12572
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12408
12573
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12623,9 +12788,13 @@ export {
|
|
|
12623
12788
|
endpoint,
|
|
12624
12789
|
modelTarget,
|
|
12625
12790
|
parseDuration,
|
|
12626
|
-
TEXT_MODELS,
|
|
12627
12791
|
DEFAULT_TEXT_MODEL,
|
|
12792
|
+
CustomTextModelShape,
|
|
12793
|
+
readTextModelsSection,
|
|
12794
|
+
writeTextModelsSection,
|
|
12795
|
+
textModels,
|
|
12628
12796
|
textModel,
|
|
12797
|
+
chosenTextModel,
|
|
12629
12798
|
RERANK_MODELS,
|
|
12630
12799
|
DEFAULT_RERANK_MODEL,
|
|
12631
12800
|
rerankModel,
|
|
@@ -12655,9 +12824,12 @@ export {
|
|
|
12655
12824
|
REPAIR_WORDS,
|
|
12656
12825
|
repairConfigText,
|
|
12657
12826
|
permissionIssues,
|
|
12827
|
+
withoutPath,
|
|
12658
12828
|
publicIssue,
|
|
12659
12829
|
fixVerb,
|
|
12660
12830
|
issueMessage,
|
|
12831
|
+
readConfigFile,
|
|
12832
|
+
accountFileFor,
|
|
12661
12833
|
rememberAccount,
|
|
12662
12834
|
recalledAccount,
|
|
12663
12835
|
NONE_NAMED,
|
|
@@ -12758,6 +12930,7 @@ export {
|
|
|
12758
12930
|
sendAttempt,
|
|
12759
12931
|
storeTable,
|
|
12760
12932
|
tagging,
|
|
12933
|
+
template,
|
|
12761
12934
|
topic,
|
|
12762
12935
|
ENTITIES,
|
|
12763
12936
|
entityDefinitions,
|