@wirecat/tg-cli 0.123.0 → 0.124.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 +47 -4
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-GAOG65O2.js → adapter-GEIZVMWU.js} +55 -53
- package/dist/bundle/{all-profiles-HLE6PHNI.js → all-profiles-EY4GJFWN.js} +10 -10
- package/dist/bundle/{anthropic-FZC4BS7T.js → anthropic-RIANJ7WM.js} +17 -10
- package/dist/bundle/{app-server-SHZNMV27.js → app-server-LW7WBFIF.js} +62 -52
- package/dist/bundle/{bot-api-LRS2KMDE.js → bot-api-FHIQ66OM.js} +54 -52
- package/dist/bundle/{bot-history-IJ7ZZKW5.js → bot-history-O34YZEFH.js} +18 -18
- package/dist/bundle/{bun-FACL53HM.js → bun-MJWD4VGV.js} +2 -2
- package/dist/bundle/{bun-sqlite-B2MD7RTL.js → bun-sqlite-LCHVO3OB.js} +6 -6
- package/dist/bundle/{chunk-3JISIGLP.js → chunk-2GFGZDWS.js} +2 -2
- package/dist/bundle/{chunk-EOUUI5FI.js → chunk-2NG4JPP7.js} +4 -4
- package/dist/bundle/{chunk-V4722KYX.js → chunk-2YLIVDWJ.js} +2 -2
- package/dist/bundle/chunk-3PLMMFP6.js +1068 -0
- package/dist/bundle/{chunk-Z5HHBTS5.js → chunk-3VVZFBE2.js} +23 -4
- package/dist/bundle/{chunk-XDL4L3OI.js → chunk-42R4YO4L.js} +3609 -1620
- package/dist/bundle/{chunk-3S6KZCZ7.js → chunk-4CIVGT4P.js} +57 -28
- package/dist/bundle/{chunk-QLXKWAET.js → chunk-4EGB7GSW.js} +87 -19
- package/dist/bundle/chunk-54JPEGQA.js +71 -0
- package/dist/bundle/chunk-5EL6E6PW.js +13 -0
- package/dist/bundle/{chunk-V23X3W2W.js → chunk-7AWJZ6NJ.js} +8 -8
- package/dist/bundle/{chunk-UB6J5HRW.js → chunk-A5RWKKBZ.js} +3 -3
- package/dist/bundle/{chunk-HJLTWT52.js → chunk-ASEBKZFY.js} +2 -2
- package/dist/bundle/{chunk-EISV5YWD.js → chunk-BV3HZYOX.js} +6959 -6230
- package/dist/bundle/{chunk-MFN5MSIL.js → chunk-CDSSKK5J.js} +3 -3
- package/dist/bundle/{chunk-7EFJHLKW.js → chunk-DFSLHF46.js} +1 -1
- package/dist/bundle/{chunk-E2Z4C6CQ.js → chunk-E66JBGZZ.js} +6 -6
- package/dist/bundle/{chunk-VUBZFMGP.js → chunk-E6VSARSU.js} +2 -2
- package/dist/bundle/{chunk-ZJPXRW65.js → chunk-F3GHTPAO.js} +4 -4
- package/dist/bundle/{chunk-SWGGYBCW.js → chunk-GUL6QLNI.js} +40 -21
- package/dist/bundle/{chunk-UBFDPLFQ.js → chunk-HEV23NIB.js} +6 -6
- package/dist/bundle/{chunk-EABZ2CUG.js → chunk-HSRO77SW.js} +34 -29
- package/dist/bundle/{chunk-ZOBRYIUG.js → chunk-I4JUKRW7.js} +2 -2
- package/dist/bundle/{chunk-QVMAZVSN.js → chunk-IK6XKMLL.js} +1 -1
- package/dist/bundle/{chunk-SNEJK4SN.js → chunk-ISGXVFA4.js} +4 -4
- package/dist/bundle/{chunk-KKMNMQMW.js → chunk-IVFUSI7G.js} +2 -2
- package/dist/bundle/{chunk-6FK2Z75N.js → chunk-KVJSCJGZ.js} +2 -2
- package/dist/bundle/{chunk-NYRAW4M5.js → chunk-LKMZ53GC.js} +4 -7
- package/dist/bundle/{chunk-B6G3TNN4.js → chunk-M4W4Y5YR.js} +132 -40
- package/dist/bundle/{chunk-BGUYYKS3.js → chunk-N5UM63JW.js} +343 -112
- package/dist/bundle/{chunk-OE5JMZSM.js → chunk-NL4COYPY.js} +9 -9
- package/dist/bundle/{chunk-3BUQXB7B.js → chunk-NQXVZ5WT.js} +15 -117
- package/dist/bundle/{chunk-DEMGDKCX.js → chunk-OH3IZ6GW.js} +2395 -2369
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-OIF4B526.js} +1 -1
- package/dist/bundle/{chunk-4W4EVVL4.js → chunk-OK4M4MWI.js} +4 -4
- package/dist/bundle/{chunk-OOWE2O5U.js → chunk-OVDB5CQM.js} +1 -1
- package/dist/bundle/{chunk-PZQ2MQFX.js → chunk-PI4XXMPG.js} +6 -6
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-PJGOQSE5.js} +1 -1
- package/dist/bundle/{chunk-U5FILNK6.js → chunk-PP4ZBLS4.js} +69 -6
- package/dist/bundle/{chunk-LVGX7VTD.js → chunk-PZ6H65D6.js} +4 -4
- package/dist/bundle/{chunk-4DCFLHLN.js → chunk-QFV36CAH.js} +4 -4
- package/dist/bundle/{chunk-Q74XVJFT.js → chunk-QGCVQRHV.js} +1 -1
- package/dist/bundle/{chunk-QLB3BFSN.js → chunk-QK4T3VN7.js} +1 -1
- package/dist/bundle/{chunk-5IHYZ6ED.js → chunk-QWAMX6CN.js} +12 -12
- package/dist/bundle/{chunk-SCGCDLI7.js → chunk-RBV4M2TC.js} +1 -1
- package/dist/bundle/{chunk-6KT5BTWL.js → chunk-RHJHOOUL.js} +341 -184
- package/dist/bundle/{chunk-STPYSD6W.js → chunk-SGBH3D5D.js} +3 -3
- package/dist/bundle/{chunk-ADI5R2MM.js → chunk-UII3D3HR.js} +51 -51
- package/dist/bundle/{chunk-PAHSIORC.js → chunk-UP3J3YXH.js} +6 -6
- package/dist/bundle/{chunk-SMFUKHG2.js → chunk-UR62DZ7Q.js} +24 -9
- package/dist/bundle/{chunk-ZQ3WGGKK.js → chunk-VAKSXD4F.js} +13 -13
- package/dist/bundle/{chunk-WA7YED3Y.js → chunk-VGUWIHXD.js} +1 -1
- package/dist/bundle/chunk-VIIIC5LU.js +32 -0
- package/dist/bundle/{chunk-3P7HWXDJ.js → chunk-VMWJGUVV.js} +14 -5
- package/dist/bundle/{chunk-V4JEZFW5.js → chunk-W4LMTNN2.js} +2 -2
- package/dist/bundle/{chunk-ENEMZAIJ.js → chunk-WKOVQ4OU.js} +14 -12
- package/dist/bundle/{chunk-T5OO7VDT.js → chunk-WSLIXJET.js} +3798 -3401
- package/dist/bundle/{chunk-WSLTW6MI.js → chunk-XDHGM2Z7.js} +3 -3
- package/dist/bundle/{chunk-5R5HGV2J.js → chunk-XSGUG5WG.js} +4 -4
- package/dist/bundle/{chunk-RDKPKS2P.js → chunk-YQFO7WXQ.js} +2 -2
- package/dist/bundle/{chunk-VVRWH5VH.js → chunk-ZL5YG2WK.js} +14 -9
- package/dist/bundle/{chunk-FFHX7VKP.js → chunk-ZNICTHSC.js} +1 -1
- package/dist/bundle/{chunk-BAB3ALHZ.js → chunk-ZTMV5M3D.js} +27 -25
- package/dist/bundle/command-contract-UKOL455D.js +34 -0
- package/dist/bundle/{command-server-entry-5LKDRLEX.js → command-server-entry-K52OEKIO.js} +24 -22
- package/dist/bundle/{decode-L4DQDHXA.js → decode-OAE25LEJ.js} +5 -5
- package/dist/bundle/{dispatch-PQSCFHEX.js → dispatch-6GVTXIZ2.js} +8 -8
- package/dist/bundle/{echarts-6LES2JIV.js → echarts-EO4ZGKMN.js} +2 -2
- package/dist/bundle/{embed-T5MLKX75.js → embed-TB2AS4AT.js} +6 -6
- package/dist/bundle/{embedder-56NMRLC5.js → embedder-YKC42G6L.js} +9 -9
- package/dist/bundle/{entry-U5GV6Y46.js → entry-AB6FU7BN.js} +9 -8
- package/dist/bundle/{failure-BX5HJAQE.js → failure-CY7ACT6V.js} +2 -2
- package/dist/bundle/{first-run-ISQ52V3I.js → first-run-CMQZHDI5.js} +11 -11
- package/dist/bundle/first-screen-XZ73W3VE.js +32 -0
- package/dist/bundle/{instructions-CJEXDI7E.js → instructions-RM3IB6ID.js} +1 -1
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-M5YCSWJJ.js} +2 -2
- package/dist/bundle/{node-QLWTGZW7.js → node-D2PM62TA.js} +2 -2
- package/dist/bundle/{node-sqlite-X2C3RR2Q.js → node-sqlite-UK5DE525.js} +7 -7
- package/dist/bundle/{oauth-VP3KMHLX.js → oauth-SKRG67A2.js} +7 -7
- package/dist/bundle/{open-GLR5EUZS.js → open-XP3SY62D.js} +5 -5
- package/dist/bundle/{openai-6CDCJ5LQ.js → openai-Q3U46UPA.js} +21 -17
- package/dist/bundle/{process-7FABZ3T2.js → process-YJ4LHMJB.js} +1 -1
- package/dist/bundle/{program-KUIAHJDX.js → program-EEPEFKTR.js} +80 -63
- package/dist/bundle/{prompt-XPHIZMD2.js → prompt-WYTODP4U.js} +5 -5
- package/dist/bundle/{proxy-transport-IIB7ZXIS.js → proxy-transport-HJMQ5QFT.js} +5 -5
- package/dist/bundle/{recognize-FVFYI3XX.js → recognize-K2S5QQU2.js} +4 -4
- package/dist/bundle/{remote-3AMCG2P4.js → remote-7RSAJ3JC.js} +9 -7
- package/dist/bundle/{rerank-XV4E25ML.js → rerank-RJX77BKD.js} +7 -7
- package/dist/bundle/{serve-NVSZA4UN.js → serve-3E7NN3VW.js} +14 -14
- package/dist/bundle/server-ITHYDPWQ.js +62 -0
- package/dist/bundle/{server-MBMPHRJE.js → server-O3KU56A4.js} +36 -35
- package/dist/bundle/sqlite-runtime-RCS5WSG5.js +19 -0
- package/dist/bundle/{state-JBMB2QUR.js → state-PLWSPSAG.js} +6 -6
- package/dist/bundle/store-3FYLH53Z.js +276 -0
- package/dist/bundle/{store-T4SCYTY2.js → store-DWMKCXYL.js} +15 -13
- package/dist/bundle/store-maintenance-command-3UEKINRB.js +52 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/commands/account-removal.d.ts.map +1 -1
- package/dist/commands/account-removal.js +5 -3
- package/dist/commands/account-removal.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +21 -3
- package/dist/commands/session.js.map +1 -1
- package/dist/paths.d.ts +6 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +23 -2
- package/dist/paths.js.map +1 -1
- package/dist/program.d.ts +4 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -2
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunk-I7K4OR5Q.js +0 -265
- package/dist/bundle/chunk-PZJXQMSZ.js +0 -27
- package/dist/bundle/command-contract-HWSWHMO4.js +0 -33
- package/dist/bundle/first-screen-7L4AMZDO.js +0 -31
- package/dist/bundle/server-MHVGYRQZ.js +0 -61
- package/dist/bundle/store-maintenance-command-F7WQMTMP.js +0 -49
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-HVJJWJYQ.js} +0 -0
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
note
|
|
5
|
-
} from "./chunk-UB6J5HRW.js";
|
|
6
|
-
import {
|
|
7
|
-
carries
|
|
8
|
-
} from "./chunk-QLB3BFSN.js";
|
|
9
3
|
import {
|
|
10
4
|
currentCaller,
|
|
11
5
|
endpointTemplate,
|
|
@@ -15,18 +9,33 @@ import {
|
|
|
15
9
|
providerErrorKey,
|
|
16
10
|
renderEvent,
|
|
17
11
|
runContextOf
|
|
18
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZL5YG2WK.js";
|
|
19
13
|
import {
|
|
20
14
|
permissionCeiling
|
|
21
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SGBH3D5D.js";
|
|
22
16
|
import {
|
|
17
|
+
ancestorValue,
|
|
23
18
|
envName,
|
|
24
19
|
readOnlyLockOf,
|
|
25
20
|
readOnlyRefusal
|
|
26
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-54JPEGQA.js";
|
|
22
|
+
import {
|
|
23
|
+
carries
|
|
24
|
+
} from "./chunk-QK4T3VN7.js";
|
|
25
|
+
import {
|
|
26
|
+
endpoint
|
|
27
|
+
} from "./chunk-VIIIC5LU.js";
|
|
28
|
+
import {
|
|
29
|
+
note
|
|
30
|
+
} from "./chunk-A5RWKKBZ.js";
|
|
31
|
+
import {
|
|
32
|
+
filesPresent,
|
|
33
|
+
sharedModelsDirectory
|
|
34
|
+
} from "./chunk-2NG4JPP7.js";
|
|
27
35
|
import {
|
|
28
36
|
BUSINESS_KINDS,
|
|
29
37
|
CATEGORIES,
|
|
38
|
+
CRM_ACTIVITY_KINDS,
|
|
30
39
|
DEAL_KINDS,
|
|
31
40
|
DEAL_ROLES,
|
|
32
41
|
DEAL_STATUSES,
|
|
@@ -100,23 +109,19 @@ import {
|
|
|
100
109
|
typedCommand,
|
|
101
110
|
untrusted,
|
|
102
111
|
useAsProcessRun
|
|
103
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-OH3IZ6GW.js";
|
|
104
113
|
import {
|
|
105
114
|
isCliFailure,
|
|
106
115
|
storeDamaged
|
|
107
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-3VVZFBE2.js";
|
|
108
117
|
import {
|
|
109
118
|
readSharedSection,
|
|
110
119
|
sharedConfigPath,
|
|
111
120
|
writeSharedSection
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import {
|
|
114
|
-
filesPresent,
|
|
115
|
-
sharedModelsDirectory
|
|
116
|
-
} from "./chunk-EOUUI5FI.js";
|
|
121
|
+
} from "./chunk-UP3J3YXH.js";
|
|
117
122
|
import {
|
|
118
123
|
storePath
|
|
119
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-IVFUSI7G.js";
|
|
120
125
|
import {
|
|
121
126
|
configFilePath,
|
|
122
127
|
createRecordLog,
|
|
@@ -128,7 +133,7 @@ import {
|
|
|
128
133
|
resolvePaths,
|
|
129
134
|
saveConfigFile,
|
|
130
135
|
writeSecurely
|
|
131
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-4CIVGT4P.js";
|
|
132
137
|
import {
|
|
133
138
|
COMPACT_FLAG,
|
|
134
139
|
MAX_NEXT_STEPS,
|
|
@@ -182,18 +187,18 @@ import {
|
|
|
182
187
|
url,
|
|
183
188
|
variant,
|
|
184
189
|
writes
|
|
185
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-UR62DZ7Q.js";
|
|
186
191
|
import {
|
|
187
192
|
CliError,
|
|
188
193
|
isCliError,
|
|
189
194
|
singleLine,
|
|
190
195
|
visibleControls
|
|
191
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-E6VSARSU.js";
|
|
192
197
|
import {
|
|
193
198
|
__name
|
|
194
199
|
} from "./chunk-ZVVMGPBJ.js";
|
|
195
200
|
|
|
196
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
201
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.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
|
|
197
202
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
198
203
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
199
204
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3694,7 +3699,7 @@ __name(useColor, "useColor");
|
|
|
3694
3699
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3695
3700
|
var program = new Command();
|
|
3696
3701
|
|
|
3697
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3702
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.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
|
|
3698
3703
|
import { isDeepStrictEqual } from "node:util";
|
|
3699
3704
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3700
3705
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3896,7 +3901,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3896
3901
|
return command;
|
|
3897
3902
|
}, "customizeSharedCommand");
|
|
3898
3903
|
|
|
3899
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3904
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.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
|
|
3900
3905
|
var argumentInfoSchema = object({
|
|
3901
3906
|
name: string(),
|
|
3902
3907
|
required: boolean(),
|
|
@@ -3934,7 +3939,7 @@ var commandInfoSchema = object({
|
|
|
3934
3939
|
summary: optional(string()),
|
|
3935
3940
|
description: string(),
|
|
3936
3941
|
usage: string(),
|
|
3937
|
-
origin: picklist(["handwritten", "generated"]),
|
|
3942
|
+
origin: picklist(["handwritten", "generated", "cli-core"]),
|
|
3938
3943
|
api_operation: optional(string()),
|
|
3939
3944
|
effects: optional(effectsSchema),
|
|
3940
3945
|
state: optional(picklist(["beta", "deprecated"])),
|
|
@@ -3970,7 +3975,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3970
3975
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3971
3976
|
});
|
|
3972
3977
|
|
|
3973
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3978
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.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
|
|
3974
3979
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3975
3980
|
let command = root;
|
|
3976
3981
|
const path2 = [];
|
|
@@ -3988,7 +3993,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3988
3993
|
}
|
|
3989
3994
|
}, "refuseJoinedPath");
|
|
3990
3995
|
|
|
3991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
3992
3997
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
3993
3998
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
3994
3999
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4014,6 +4019,7 @@ var DEFAULT_PERMISSIONS = {
|
|
|
4014
4019
|
"store.clear": "ask",
|
|
4015
4020
|
"store.decrypt": "ask",
|
|
4016
4021
|
"store.copies.delete": "ask",
|
|
4022
|
+
"store.recover.run": "ask",
|
|
4017
4023
|
"server.start": "ask",
|
|
4018
4024
|
"server.stop": "ask",
|
|
4019
4025
|
"server.restart": "ask",
|
|
@@ -4303,6 +4309,8 @@ var readKeysForCommand = /* @__PURE__ */ __name((path2) => {
|
|
|
4303
4309
|
return [key, "messages"];
|
|
4304
4310
|
if (path2[0] === "store" && ["reset", "clear", "decrypt"].includes(path2[1] ?? ""))
|
|
4305
4311
|
return [key, "messages"];
|
|
4312
|
+
if (key === "store.recover.run")
|
|
4313
|
+
return [key, "messages"];
|
|
4306
4314
|
if (path2[0] === "search") {
|
|
4307
4315
|
if (path2[1] === "notes")
|
|
4308
4316
|
return [key];
|
|
@@ -4389,7 +4397,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4389
4397
|
}
|
|
4390
4398
|
}, "assertRetentionEvidenceRead");
|
|
4391
4399
|
|
|
4392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
4393
4401
|
var account = strictObject({
|
|
4394
4402
|
provider: text,
|
|
4395
4403
|
id,
|
|
@@ -4399,7 +4407,7 @@ var account = strictObject({
|
|
|
4399
4407
|
scope: optional(picklist(["personal", "work"]))
|
|
4400
4408
|
});
|
|
4401
4409
|
|
|
4402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
4403
4411
|
var accountSession = strictObject({
|
|
4404
4412
|
current: boolean(),
|
|
4405
4413
|
client: nullable(text),
|
|
@@ -4409,7 +4417,7 @@ var accountSession = strictObject({
|
|
|
4409
4417
|
created_at: optional(nullable(time))
|
|
4410
4418
|
});
|
|
4411
4419
|
|
|
4412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
4413
4421
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
4414
4422
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
4415
4423
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -4438,7 +4446,7 @@ var accountRemoval = strictObject({
|
|
|
4438
4446
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
4439
4447
|
});
|
|
4440
4448
|
|
|
4441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
4442
4450
|
var accountProfile = strictObject({
|
|
4443
4451
|
profile: id,
|
|
4444
4452
|
current: boolean(),
|
|
@@ -4450,7 +4458,7 @@ var accountProfile = strictObject({
|
|
|
4450
4458
|
bot: optional(literal(true))
|
|
4451
4459
|
});
|
|
4452
4460
|
|
|
4453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
4454
4462
|
var milliseconds = pipe(number(), minValue(0));
|
|
4455
4463
|
var counterReading = strictObject({
|
|
4456
4464
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -4462,7 +4470,7 @@ var counterReading = strictObject({
|
|
|
4462
4470
|
});
|
|
4463
4471
|
var selection = record(string(), unknown());
|
|
4464
4472
|
|
|
4465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
4466
4474
|
var adminRow = strictObject({
|
|
4467
4475
|
ref: reference,
|
|
4468
4476
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -4515,7 +4523,7 @@ var adminReport = strictObject({
|
|
|
4515
4523
|
rows: array(adminRow)
|
|
4516
4524
|
});
|
|
4517
4525
|
|
|
4518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
4519
4527
|
var closeSuggestion = strictObject({
|
|
4520
4528
|
as: picklist(["done", "dismissed"]),
|
|
4521
4529
|
/** The agent's name. */
|
|
@@ -4577,7 +4585,7 @@ var task = strictObject({
|
|
|
4577
4585
|
updated_at: optional(time)
|
|
4578
4586
|
});
|
|
4579
4587
|
|
|
4580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
4581
4589
|
var agendaChat = strictObject({
|
|
4582
4590
|
chat: reference,
|
|
4583
4591
|
title: nullable(text),
|
|
@@ -4647,11 +4655,11 @@ var agenda = strictObject({
|
|
|
4647
4655
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
4648
4656
|
});
|
|
4649
4657
|
|
|
4650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
4651
4659
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
4652
4660
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
4653
4661
|
|
|
4654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
4655
4663
|
var attachment = strictObject({
|
|
4656
4664
|
/** The message it came with, as a locator; absent inside that message. */
|
|
4657
4665
|
message: optional(reference),
|
|
@@ -4687,9 +4695,16 @@ var attachment = strictObject({
|
|
|
4687
4695
|
url: optional(text)
|
|
4688
4696
|
}))))
|
|
4689
4697
|
});
|
|
4690
|
-
var hitFile = strictObject({
|
|
4698
|
+
var hitFile = strictObject({
|
|
4699
|
+
position: count,
|
|
4700
|
+
kind: text,
|
|
4701
|
+
name: optional(text),
|
|
4702
|
+
size: optional(count),
|
|
4703
|
+
/** The saved copy on this computer, once `messages download` fetched it; absent until then. */
|
|
4704
|
+
local_path: optional(text)
|
|
4705
|
+
});
|
|
4691
4706
|
|
|
4692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
4693
4708
|
var actionableError = objectWithRest({
|
|
4694
4709
|
code: text,
|
|
4695
4710
|
message: text,
|
|
@@ -4706,7 +4721,7 @@ var batchResult = strictObject({
|
|
|
4706
4721
|
max_error_percent: count
|
|
4707
4722
|
});
|
|
4708
4723
|
|
|
4709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
4710
4725
|
var extractionItem = strictObject({
|
|
4711
4726
|
ref: reference,
|
|
4712
4727
|
attachment: count,
|
|
@@ -4739,7 +4754,7 @@ var extractionReport = strictObject({
|
|
|
4739
4754
|
cursor: optional(text)
|
|
4740
4755
|
});
|
|
4741
4756
|
|
|
4742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
4743
4758
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
4744
4759
|
var attachmentBytes = strictObject({
|
|
4745
4760
|
ref: reference,
|
|
@@ -4764,10 +4779,13 @@ var attachmentTextChange = strictObject({
|
|
|
4764
4779
|
attachment: count,
|
|
4765
4780
|
origin: literal("agent"),
|
|
4766
4781
|
chars: count,
|
|
4767
|
-
replaced: nullable(picklist(["extracted", "agent"]))
|
|
4782
|
+
replaced: nullable(picklist(["extracted", "agent"])),
|
|
4783
|
+
/** `images read` only: who read the picture, `agent:claude` or `agent:codex/<model>`, and what it read. */
|
|
4784
|
+
extractor: optional(text),
|
|
4785
|
+
text: optional(text)
|
|
4768
4786
|
});
|
|
4769
4787
|
|
|
4770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
4771
4789
|
var WEIGHTS = {
|
|
4772
4790
|
bot: 3,
|
|
4773
4791
|
scam: 3,
|
|
@@ -4792,7 +4810,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
4792
4810
|
var DIGITS = /\d{5,}/;
|
|
4793
4811
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
4794
4812
|
|
|
4795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
4796
4814
|
var linkedIdentity = strictObject({
|
|
4797
4815
|
provider: text,
|
|
4798
4816
|
id,
|
|
@@ -4800,6 +4818,9 @@ var linkedIdentity = strictObject({
|
|
|
4800
4818
|
username: nullable(text),
|
|
4801
4819
|
phone: optional(nullable(text)),
|
|
4802
4820
|
email: optional(nullable(text)),
|
|
4821
|
+
/** Every phone and address the source gave, `phone` and `email` among them. */
|
|
4822
|
+
phones: optional(array(text)),
|
|
4823
|
+
emails: optional(array(text)),
|
|
4803
4824
|
is_bot: nullable(boolean()),
|
|
4804
4825
|
accounts: array(id),
|
|
4805
4826
|
seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
|
|
@@ -4810,6 +4831,8 @@ var linkedIdentity = strictObject({
|
|
|
4810
4831
|
var linkedPerson = strictObject({
|
|
4811
4832
|
uid: id,
|
|
4812
4833
|
name: nullable(text),
|
|
4834
|
+
/** The name `people list` shows: the person's own, else an account's, a username, phone or address. */
|
|
4835
|
+
display_name: optional(nullable(text)),
|
|
4813
4836
|
identities: array(linkedIdentity),
|
|
4814
4837
|
/** An agent's link: the `identity_link` proposal the owner decides; the person is still as it was. */
|
|
4815
4838
|
proposal: optional(text)
|
|
@@ -4842,7 +4865,7 @@ var contactCheck = strictObject({
|
|
|
4842
4865
|
checked_at: time
|
|
4843
4866
|
});
|
|
4844
4867
|
|
|
4845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
4846
4869
|
var member = strictObject({
|
|
4847
4870
|
id,
|
|
4848
4871
|
name: nullable(text),
|
|
@@ -4865,7 +4888,7 @@ var member = strictObject({
|
|
|
4865
4888
|
check: optional(record(string(), unknown()))
|
|
4866
4889
|
});
|
|
4867
4890
|
|
|
4868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
4869
4892
|
var setting = optional(nullable(boolean()));
|
|
4870
4893
|
var chat = strictObject({
|
|
4871
4894
|
ref: reference,
|
|
@@ -4906,7 +4929,7 @@ var chat = strictObject({
|
|
|
4906
4929
|
members: optional(array(member))
|
|
4907
4930
|
});
|
|
4908
4931
|
|
|
4909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
4910
4933
|
var quoted = strictObject({
|
|
4911
4934
|
id,
|
|
4912
4935
|
sender_id: nullable(id),
|
|
@@ -5025,7 +5048,7 @@ var message = strictObject({
|
|
|
5025
5048
|
provider_metadata: providerMetadata
|
|
5026
5049
|
});
|
|
5027
5050
|
|
|
5028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
5029
5052
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
5030
5053
|
var contextMessage = strictObject({
|
|
5031
5054
|
locator: reference,
|
|
@@ -5229,12 +5252,24 @@ var contactPreparation = strictObject({
|
|
|
5229
5252
|
})
|
|
5230
5253
|
});
|
|
5231
5254
|
|
|
5232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
5233
5256
|
var nullableText = nullable(text);
|
|
5234
5257
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
5235
5258
|
var outcome = picklist(["open", "won", "lost"]);
|
|
5236
5259
|
var crmAccount = nullable(strictObject({ provider: text, account: text }));
|
|
5237
5260
|
var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
5261
|
+
var activity = strictObject({
|
|
5262
|
+
external_id: text,
|
|
5263
|
+
kind: picklist(CRM_ACTIVITY_KINDS),
|
|
5264
|
+
subject: text,
|
|
5265
|
+
body: nullableText,
|
|
5266
|
+
due_at: nullable(time),
|
|
5267
|
+
done: boolean(),
|
|
5268
|
+
/** The identity `<account>/user/<id>` responsible for it. */
|
|
5269
|
+
assignee: nullableText,
|
|
5270
|
+
created_at: time,
|
|
5271
|
+
updated_at: time
|
|
5272
|
+
});
|
|
5238
5273
|
var deal = strictObject({
|
|
5239
5274
|
id,
|
|
5240
5275
|
ref: reference,
|
|
@@ -5249,6 +5284,9 @@ var deal = strictObject({
|
|
|
5249
5284
|
base_stage: nullable(strictObject({ ref: reference, name: text })),
|
|
5250
5285
|
status: outcome,
|
|
5251
5286
|
organization: nullable(party),
|
|
5287
|
+
/** A CRM copy's own person and company as the CRM keeps them on it, such as a lead's with nobody linked yet. */
|
|
5288
|
+
contact_name: nullableText,
|
|
5289
|
+
company_name: nullableText,
|
|
5252
5290
|
currency: nullableText,
|
|
5253
5291
|
amount: nullableText,
|
|
5254
5292
|
close_date: day,
|
|
@@ -5283,6 +5321,8 @@ var deal = strictObject({
|
|
|
5283
5321
|
project_name: nullableText,
|
|
5284
5322
|
created_at: time,
|
|
5285
5323
|
updated_at: time,
|
|
5324
|
+
/** `show` of a CRM copy whose `activities` setting is on: its activities and tasks, open ones first. */
|
|
5325
|
+
activities: optional(array(activity)),
|
|
5286
5326
|
untrusted
|
|
5287
5327
|
});
|
|
5288
5328
|
var lead = deal;
|
|
@@ -5321,7 +5361,7 @@ var stage = strictObject({
|
|
|
5321
5361
|
untrusted
|
|
5322
5362
|
});
|
|
5323
5363
|
|
|
5324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
5325
5365
|
var nullableText2 = nullable(text);
|
|
5326
5366
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
5327
5367
|
var standing = picklist(STANDINGS);
|
|
@@ -5495,7 +5535,7 @@ var dealBrief = strictObject({
|
|
|
5495
5535
|
not_read: coverage2.entries.not_read
|
|
5496
5536
|
});
|
|
5497
5537
|
|
|
5498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
5499
5539
|
var chart = strictObject({
|
|
5500
5540
|
version: literal(1),
|
|
5501
5541
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -5510,7 +5550,7 @@ var chart = strictObject({
|
|
|
5510
5550
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
5511
5551
|
});
|
|
5512
5552
|
|
|
5513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
5514
5554
|
var named = strictObject({
|
|
5515
5555
|
id,
|
|
5516
5556
|
title: nullable(text),
|
|
@@ -5533,7 +5573,7 @@ var folder = strictObject({
|
|
|
5533
5573
|
excluded_chats: optional(array(named))
|
|
5534
5574
|
});
|
|
5535
5575
|
|
|
5536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
5537
5577
|
var inviteLink = strictObject({
|
|
5538
5578
|
link: text,
|
|
5539
5579
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -5549,7 +5589,7 @@ var inviteLink = strictObject({
|
|
|
5549
5589
|
joined_count: optional(count)
|
|
5550
5590
|
});
|
|
5551
5591
|
|
|
5552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
5553
5593
|
var operated = { operation_id: id, chat_id: id };
|
|
5554
5594
|
var group = strictObject({
|
|
5555
5595
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -5629,7 +5669,7 @@ var chatFolderOrder = strictObject({
|
|
|
5629
5669
|
folders: array(strictObject({ id, title: text }))
|
|
5630
5670
|
});
|
|
5631
5671
|
|
|
5632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
5633
5673
|
var operated2 = { operation_id: id, chat_id: id };
|
|
5634
5674
|
var chatRemoval = strictObject(operated2);
|
|
5635
5675
|
var chatMuting = strictObject({
|
|
@@ -5640,7 +5680,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
5640
5680
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
5641
5681
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
5642
5682
|
|
|
5643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
5644
5684
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
5645
5685
|
var chatEvent = strictObject({
|
|
5646
5686
|
chat_id: id,
|
|
@@ -5657,7 +5697,7 @@ var chatEvent = strictObject({
|
|
|
5657
5697
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
5658
5698
|
});
|
|
5659
5699
|
|
|
5660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
5661
5701
|
var chatMetadata = strictObject({
|
|
5662
5702
|
chat_id: id,
|
|
5663
5703
|
title: nullable(text),
|
|
@@ -5672,7 +5712,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
5672
5712
|
has_more: boolean()
|
|
5673
5713
|
});
|
|
5674
5714
|
|
|
5675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
5676
5716
|
var action = picklist(["report", "delete", "remove"]);
|
|
5677
5717
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
5678
5718
|
var chatRules = strictObject({
|
|
@@ -5709,7 +5749,7 @@ var chatModeration = strictObject({
|
|
|
5709
5749
|
}))
|
|
5710
5750
|
});
|
|
5711
5751
|
|
|
5712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
5713
5753
|
var optionalCount = optional(count);
|
|
5714
5754
|
var minutes = nullable(number());
|
|
5715
5755
|
var chatStats = strictObject({
|
|
@@ -5785,7 +5825,7 @@ var taskStats = strictObject({
|
|
|
5785
5825
|
}))
|
|
5786
5826
|
});
|
|
5787
5827
|
|
|
5788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
5789
5829
|
var memberCount = strictObject({
|
|
5790
5830
|
day: pipe(text, isoDate()),
|
|
5791
5831
|
participants: nullable(count),
|
|
@@ -5808,7 +5848,7 @@ var chatTracking = strictObject({
|
|
|
5808
5848
|
tracked: boolean()
|
|
5809
5849
|
});
|
|
5810
5850
|
|
|
5811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
5812
5852
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5813
5853
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
5814
5854
|
var profileFields = {
|
|
@@ -5846,7 +5886,7 @@ var profileFields = {
|
|
|
5846
5886
|
}))
|
|
5847
5887
|
};
|
|
5848
5888
|
|
|
5849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
5850
5890
|
var contact = strictObject({
|
|
5851
5891
|
ref: reference,
|
|
5852
5892
|
id,
|
|
@@ -5877,7 +5917,7 @@ var contact = strictObject({
|
|
|
5877
5917
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
5878
5918
|
});
|
|
5879
5919
|
|
|
5880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
5881
5921
|
var contactNote = strictObject({
|
|
5882
5922
|
id,
|
|
5883
5923
|
/** The contact, as a `contact:` reference. */
|
|
@@ -5889,13 +5929,13 @@ var contactNote = strictObject({
|
|
|
5889
5929
|
updated_at: time
|
|
5890
5930
|
});
|
|
5891
5931
|
|
|
5892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
5893
5933
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5894
5934
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
5895
5935
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
5896
5936
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
5897
5937
|
|
|
5898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
5899
5939
|
var conversation = strictObject({
|
|
5900
5940
|
id,
|
|
5901
5941
|
chat: reference,
|
|
@@ -5910,7 +5950,7 @@ var conversation = strictObject({
|
|
|
5910
5950
|
rules_version: count
|
|
5911
5951
|
});
|
|
5912
5952
|
|
|
5913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
5914
5954
|
var conversationBuild = strictObject({
|
|
5915
5955
|
chat: id,
|
|
5916
5956
|
messages: count,
|
|
@@ -5935,7 +5975,7 @@ var catchUpPreparation = strictObject({
|
|
|
5935
5975
|
prepared: optional(conversationPreparation)
|
|
5936
5976
|
});
|
|
5937
5977
|
|
|
5938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
5939
5979
|
var conversationDetails = union([
|
|
5940
5980
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
5941
5981
|
message
|
|
@@ -6025,7 +6065,7 @@ var conversationHit = strictObject({
|
|
|
6025
6065
|
stale: boolean()
|
|
6026
6066
|
});
|
|
6027
6067
|
|
|
6028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
6029
6069
|
var counters = strictObject({
|
|
6030
6070
|
cutoff: time,
|
|
6031
6071
|
max_age_ms: milliseconds,
|
|
@@ -6055,7 +6095,7 @@ var counterRefresh = strictObject({
|
|
|
6055
6095
|
complete: optional(boolean())
|
|
6056
6096
|
});
|
|
6057
6097
|
|
|
6058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
6059
6099
|
var document = strictObject({
|
|
6060
6100
|
ref: reference,
|
|
6061
6101
|
id,
|
|
@@ -6070,7 +6110,7 @@ var document = strictObject({
|
|
|
6070
6110
|
owners: optional(array(text))
|
|
6071
6111
|
});
|
|
6072
6112
|
|
|
6073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
6074
6114
|
var documentLink = strictObject({
|
|
6075
6115
|
ref: reference,
|
|
6076
6116
|
url: text,
|
|
@@ -6081,7 +6121,7 @@ var documentLink = strictObject({
|
|
|
6081
6121
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
6082
6122
|
});
|
|
6083
6123
|
|
|
6084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
6085
6125
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
6086
6126
|
var contribution = strictObject({
|
|
6087
6127
|
message: evidenceMessage,
|
|
@@ -6111,7 +6151,7 @@ var retentionStay = strictObject({
|
|
|
6111
6151
|
});
|
|
6112
6152
|
var evidence = union([contribution, retentionStay]);
|
|
6113
6153
|
|
|
6114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
6115
6155
|
var fact = strictObject({
|
|
6116
6156
|
ref: reference,
|
|
6117
6157
|
id,
|
|
@@ -6142,7 +6182,7 @@ var fact = strictObject({
|
|
|
6142
6182
|
updated_at: time
|
|
6143
6183
|
});
|
|
6144
6184
|
|
|
6145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
6146
6186
|
var hit = strictObject({
|
|
6147
6187
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
6148
6188
|
ref: reference,
|
|
@@ -6188,7 +6228,7 @@ var hit = strictObject({
|
|
|
6188
6228
|
untrusted
|
|
6189
6229
|
});
|
|
6190
6230
|
|
|
6191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
6192
6232
|
var identity = strictObject({
|
|
6193
6233
|
ref: reference,
|
|
6194
6234
|
provider: text,
|
|
@@ -6204,7 +6244,7 @@ var identity = strictObject({
|
|
|
6204
6244
|
person: optional(nullable(reference))
|
|
6205
6245
|
});
|
|
6206
6246
|
|
|
6207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
6208
6248
|
var imageEmbedding = strictObject({
|
|
6209
6249
|
model: text,
|
|
6210
6250
|
embedded: count,
|
|
@@ -6213,13 +6253,13 @@ var imageEmbedding = strictObject({
|
|
|
6213
6253
|
more: boolean()
|
|
6214
6254
|
});
|
|
6215
6255
|
|
|
6216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6217
6257
|
import { spawn } from "node:child_process";
|
|
6218
6258
|
import { randomBytes } from "node:crypto";
|
|
6219
6259
|
import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
|
|
6220
6260
|
import { dirname, join } from "node:path";
|
|
6221
6261
|
|
|
6222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
6223
6263
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
6224
6264
|
const total = input.total ?? null;
|
|
6225
6265
|
const updated = input.updatedAt ?? null;
|
|
@@ -6235,7 +6275,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
6235
6275
|
};
|
|
6236
6276
|
}, "progressOf");
|
|
6237
6277
|
|
|
6238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
6239
6279
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6240
6280
|
const run = currentRun();
|
|
6241
6281
|
const trace = traceId ?? run.traceId;
|
|
@@ -6249,7 +6289,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6249
6289
|
}));
|
|
6250
6290
|
}, "recordLogFor");
|
|
6251
6291
|
|
|
6252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6253
6293
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
6254
6294
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
6255
6295
|
const out = openSync(log, "a", 384);
|
|
@@ -6404,7 +6444,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6404
6444
|
return { job: id6, pid, chat: input.chat, log };
|
|
6405
6445
|
}, "startArchiveJob");
|
|
6406
6446
|
|
|
6407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
6408
6448
|
var problem = strictObject({ code: text, message: text });
|
|
6409
6449
|
var job = strictObject({
|
|
6410
6450
|
id,
|
|
@@ -6427,7 +6467,7 @@ var job = strictObject({
|
|
|
6427
6467
|
error: optional(problem)
|
|
6428
6468
|
});
|
|
6429
6469
|
|
|
6430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
6431
6471
|
var joinRequest = strictObject({
|
|
6432
6472
|
person_id: id,
|
|
6433
6473
|
name: nullable(text),
|
|
@@ -6438,7 +6478,7 @@ var joinRequest = strictObject({
|
|
|
6438
6478
|
about: optional(text)
|
|
6439
6479
|
});
|
|
6440
6480
|
|
|
6441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
6442
6482
|
var botProfile = strictObject({
|
|
6443
6483
|
name: text,
|
|
6444
6484
|
token: text,
|
|
@@ -6502,12 +6542,39 @@ var scheduledJob = strictObject({
|
|
|
6502
6542
|
error: optional(text)
|
|
6503
6543
|
})))
|
|
6504
6544
|
})),
|
|
6505
|
-
/** Agent schedules:
|
|
6506
|
-
|
|
6507
|
-
/** Agent schedules: the
|
|
6545
|
+
/** Agent schedules: the agent it starts, as `schedule agents list` names it; null for a program no agent here runs. */
|
|
6546
|
+
harness: optional(nullable(text)),
|
|
6547
|
+
/** Agent schedules: whether the agent reports what a run cost; when it does not, the cost fields are null. */
|
|
6548
|
+
reports_cost: optional(boolean()),
|
|
6549
|
+
/** Agent schedules: what today's runs cost, in US dollars; null when the agent reports no cost (unknown, not 0). */
|
|
6550
|
+
spent_today_usd: optional(nullable(number())),
|
|
6551
|
+
/** Agent schedules: the cap on one run (`--max-cost`), null when none or when the agent reports no cost. */
|
|
6508
6552
|
max_cost_usd: optional(nullable(number())),
|
|
6509
|
-
/**
|
|
6510
|
-
|
|
6553
|
+
/**
|
|
6554
|
+
* Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none; null when
|
|
6555
|
+
* the agent reports no cost, so no cap can stop it.
|
|
6556
|
+
*/
|
|
6557
|
+
max_cost_per_day_usd: optional(nullable(number()))
|
|
6558
|
+
});
|
|
6559
|
+
var scheduleHarness = strictObject({
|
|
6560
|
+
id: text,
|
|
6561
|
+
name: text,
|
|
6562
|
+
/** The program names it is found by on PATH, the first found wins. */
|
|
6563
|
+
programs: array(text),
|
|
6564
|
+
/** It reports what a run costs, so `--max-cost` and `--max-cost-per-day` hold. */
|
|
6565
|
+
reports_cost: boolean(),
|
|
6566
|
+
/** The agent's own limits hold a one-shot run to the CLIs' commands (claude, gemini, opencode). */
|
|
6567
|
+
restricted: boolean(),
|
|
6568
|
+
/** Why an agent that is not restricted is not, and what it may still do: a client shows it before the owner picks. */
|
|
6569
|
+
restricted_reason: nullable(text),
|
|
6570
|
+
/**
|
|
6571
|
+
* Not restricted, yet a schedule starts it once the owner accepts that with `--allow-dangerous` (codex, whose sandbox
|
|
6572
|
+
* blocks the network and most writes); refused without it (`agent.unrestricted`). False for the rest.
|
|
6573
|
+
*/
|
|
6574
|
+
allowed_with_ack: boolean(),
|
|
6575
|
+
installed: boolean(),
|
|
6576
|
+
/** Where its program is, or null when it is not on PATH. */
|
|
6577
|
+
path: nullable(text)
|
|
6511
6578
|
});
|
|
6512
6579
|
var botTemplate = strictObject({
|
|
6513
6580
|
name: nullable(text),
|
|
@@ -6535,7 +6602,7 @@ var stickerInventory = strictObject({
|
|
|
6535
6602
|
url: optional(nullable(text))
|
|
6536
6603
|
});
|
|
6537
6604
|
|
|
6538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
6539
6606
|
var pollVote = strictObject({
|
|
6540
6607
|
person_id: id,
|
|
6541
6608
|
name: nullable(text),
|
|
@@ -6545,7 +6612,7 @@ var pollVote = strictObject({
|
|
|
6545
6612
|
voted_at: time
|
|
6546
6613
|
});
|
|
6547
6614
|
|
|
6548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
6549
6616
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
6550
6617
|
var observation = strictObject({
|
|
6551
6618
|
value: pipe(number(), minValue(0)),
|
|
@@ -6587,7 +6654,7 @@ var serveSummary = strictObject({
|
|
|
6587
6654
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
6588
6655
|
});
|
|
6589
6656
|
|
|
6590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
6591
6658
|
var mailCounts = strictObject({
|
|
6592
6659
|
by: picklist(["day", "week", "sender"]),
|
|
6593
6660
|
received: count,
|
|
@@ -6602,7 +6669,7 @@ var mailCounts = strictObject({
|
|
|
6602
6669
|
}))
|
|
6603
6670
|
});
|
|
6604
6671
|
|
|
6605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
6606
6673
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
6607
6674
|
var base = { id, evidence: array(evidence2) };
|
|
6608
6675
|
var finding = variant("kind", [
|
|
@@ -6746,7 +6813,7 @@ var mailFindings = strictObject({
|
|
|
6746
6813
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
6747
6814
|
});
|
|
6748
6815
|
|
|
6749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
6750
6817
|
var mediaArchive = strictObject({
|
|
6751
6818
|
directory: text,
|
|
6752
6819
|
chats: count,
|
|
@@ -6778,7 +6845,7 @@ var mediaArchiveTimer = union([
|
|
|
6778
6845
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
6779
6846
|
]);
|
|
6780
6847
|
|
|
6781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
6782
6849
|
var preparationId = pipe(string(), minLength(1));
|
|
6783
6850
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
6784
6851
|
var preparationTime = nullable(isoTime);
|
|
@@ -6870,7 +6937,7 @@ var preparationMeeting = strictObject({
|
|
|
6870
6937
|
updated_at: isoTime
|
|
6871
6938
|
});
|
|
6872
6939
|
|
|
6873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
6874
6941
|
var meetingEvidence = preparationEvidence;
|
|
6875
6942
|
var meetingPersonContext = strictObject({
|
|
6876
6943
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -6892,7 +6959,7 @@ var meetingPersonContext = strictObject({
|
|
|
6892
6959
|
})
|
|
6893
6960
|
});
|
|
6894
6961
|
|
|
6895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
6896
6963
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
6897
6964
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
6898
6965
|
var finding2 = variant("kind", [
|
|
@@ -6930,7 +6997,7 @@ var meetingFindings = strictObject({
|
|
|
6930
6997
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
6931
6998
|
});
|
|
6932
6999
|
|
|
6933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
6934
7001
|
var communicationCoverage = strictObject({
|
|
6935
7002
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
6936
7003
|
query: string(),
|
|
@@ -6975,7 +7042,7 @@ var preparationCommunications = strictObject({
|
|
|
6975
7042
|
}))
|
|
6976
7043
|
});
|
|
6977
7044
|
|
|
6978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
6979
7046
|
var meetingPreparation = strictObject({
|
|
6980
7047
|
communications: optional(preparationCommunications),
|
|
6981
7048
|
schema_version: literal(1),
|
|
@@ -7088,7 +7155,7 @@ var meetingPreparation = strictObject({
|
|
|
7088
7155
|
})
|
|
7089
7156
|
});
|
|
7090
7157
|
|
|
7091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
7092
7159
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
7093
7160
|
var id3 = pipe(string(), minLength(1));
|
|
7094
7161
|
var text3 = string();
|
|
@@ -7152,7 +7219,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
7152
7219
|
})
|
|
7153
7220
|
});
|
|
7154
7221
|
|
|
7155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
7156
7223
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
7157
7224
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
7158
7225
|
var meetingSeriesInventory = strictObject({
|
|
@@ -7182,7 +7249,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
7182
7249
|
})
|
|
7183
7250
|
});
|
|
7184
7251
|
|
|
7185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
7186
7253
|
var text4 = string();
|
|
7187
7254
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
7188
7255
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -7199,7 +7266,7 @@ var meetingTaskProposal = strictObject({
|
|
|
7199
7266
|
persistence: literal("proposal-only")
|
|
7200
7267
|
});
|
|
7201
7268
|
|
|
7202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
7203
7270
|
var memory = strictObject({
|
|
7204
7271
|
ref: reference,
|
|
7205
7272
|
id,
|
|
@@ -7227,7 +7294,7 @@ var memory = strictObject({
|
|
|
7227
7294
|
updated_at: time
|
|
7228
7295
|
});
|
|
7229
7296
|
|
|
7230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
7231
7298
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
7232
7299
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
7233
7300
|
var mention = strictObject({
|
|
@@ -7271,13 +7338,13 @@ var mentionRebuild = strictObject({
|
|
|
7271
7338
|
mentions: count
|
|
7272
7339
|
});
|
|
7273
7340
|
|
|
7274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
7275
7342
|
var operated3 = { operation_id: id, chat_id: id };
|
|
7276
7343
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
7277
7344
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
7278
7345
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
7279
7346
|
|
|
7280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
7281
7348
|
var messageTranscript = strictObject({
|
|
7282
7349
|
message_id: id,
|
|
7283
7350
|
text,
|
|
@@ -7335,7 +7402,7 @@ var evidencePacket = strictObject({
|
|
|
7335
7402
|
}))
|
|
7336
7403
|
});
|
|
7337
7404
|
|
|
7338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
7339
7406
|
var messageThread = strictObject({
|
|
7340
7407
|
ref: reference,
|
|
7341
7408
|
chat: id,
|
|
@@ -7352,7 +7419,7 @@ var messageThread = strictObject({
|
|
|
7352
7419
|
});
|
|
7353
7420
|
var messageContext = union([message, messageThread]);
|
|
7354
7421
|
|
|
7355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
7356
7423
|
var messageCounts = strictObject({
|
|
7357
7424
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
7358
7425
|
total: count,
|
|
@@ -7365,7 +7432,7 @@ var messageCounts = strictObject({
|
|
|
7365
7432
|
}))
|
|
7366
7433
|
});
|
|
7367
7434
|
|
|
7368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
7369
7436
|
var messageLink = strictObject({
|
|
7370
7437
|
ref: reference,
|
|
7371
7438
|
url: nullable(text),
|
|
@@ -7382,7 +7449,7 @@ var messageLink = strictObject({
|
|
|
7382
7449
|
})))
|
|
7383
7450
|
});
|
|
7384
7451
|
|
|
7385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
7386
7453
|
var savedMessageFile = strictObject({
|
|
7387
7454
|
kind: text,
|
|
7388
7455
|
path: text,
|
|
@@ -7469,7 +7536,7 @@ var messageSyncAll = strictObject({
|
|
|
7469
7536
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
7470
7537
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
7471
7538
|
|
|
7472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
7473
7540
|
var messageWrite = strictObject({
|
|
7474
7541
|
operation_id: id,
|
|
7475
7542
|
message,
|
|
@@ -7484,7 +7551,7 @@ var draftWrite = strictObject({
|
|
|
7484
7551
|
});
|
|
7485
7552
|
var messageSend = union([messageWrite, draftWrite]);
|
|
7486
7553
|
|
|
7487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
7488
7555
|
var model = strictObject({
|
|
7489
7556
|
id,
|
|
7490
7557
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -7519,7 +7586,7 @@ var chosenModel = strictObject({
|
|
|
7519
7586
|
estimate_seconds: nullable(count)
|
|
7520
7587
|
});
|
|
7521
7588
|
|
|
7522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
7523
7590
|
var source = picklist(["environment", "keyring", "file"]);
|
|
7524
7591
|
var modelKey = strictObject({
|
|
7525
7592
|
provider: text,
|
|
@@ -7529,7 +7596,7 @@ var modelKey = strictObject({
|
|
|
7529
7596
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
7530
7597
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
7531
7598
|
|
|
7532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
7533
7600
|
var versus = strictObject({ current: number(), previous: number() });
|
|
7534
7601
|
var person = { person_ref: reference, name: nullable(text) };
|
|
7535
7602
|
var graph = strictObject({
|
|
@@ -7563,14 +7630,14 @@ var officialStats = strictObject({
|
|
|
7563
7630
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
7564
7631
|
});
|
|
7565
7632
|
|
|
7566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
7567
7634
|
var person2 = strictObject({
|
|
7568
7635
|
ref: reference,
|
|
7569
7636
|
name: nullable(text),
|
|
7570
7637
|
identities: optional(array(identity))
|
|
7571
7638
|
});
|
|
7572
7639
|
|
|
7573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
7574
7641
|
var poll = strictObject({
|
|
7575
7642
|
chat_id: id,
|
|
7576
7643
|
message_id: id,
|
|
@@ -7586,11 +7653,11 @@ var poll = strictObject({
|
|
|
7586
7653
|
});
|
|
7587
7654
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
7588
7655
|
|
|
7589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
7590
7657
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
7591
7658
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
7592
7659
|
|
|
7593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
7594
7661
|
var figures = record(string(), number());
|
|
7595
7662
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
7596
7663
|
var rankingRow = strictObject({
|
|
@@ -7637,7 +7704,7 @@ var ranking = strictObject({
|
|
|
7637
7704
|
rows: array(rankingRow)
|
|
7638
7705
|
});
|
|
7639
7706
|
|
|
7640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
7641
7708
|
var reaction = strictObject({
|
|
7642
7709
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
7643
7710
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -7645,7 +7712,7 @@ var reaction = strictObject({
|
|
|
7645
7712
|
reacted_at: time
|
|
7646
7713
|
});
|
|
7647
7714
|
|
|
7648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
7649
7716
|
var reactionChange = strictObject({
|
|
7650
7717
|
operation_id: id,
|
|
7651
7718
|
chat_id: id,
|
|
@@ -7653,7 +7720,7 @@ var reactionChange = strictObject({
|
|
|
7653
7720
|
reaction: nullable(text)
|
|
7654
7721
|
});
|
|
7655
7722
|
|
|
7656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
7657
7724
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
7658
7725
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
7659
7726
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -7664,7 +7731,7 @@ var recipientChange = strictObject({
|
|
|
7664
7731
|
...partial(recipientOff).entries
|
|
7665
7732
|
});
|
|
7666
7733
|
|
|
7667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
7668
7735
|
var events = array(record(string(), unknown()));
|
|
7669
7736
|
var recordedRun = strictObject({
|
|
7670
7737
|
run_id: id,
|
|
@@ -7736,7 +7803,7 @@ var runHit = strictObject({
|
|
|
7736
7803
|
});
|
|
7737
7804
|
var runLocation = strictObject({ path: text });
|
|
7738
7805
|
|
|
7739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
7740
7807
|
var relationship = strictObject({
|
|
7741
7808
|
id,
|
|
7742
7809
|
from: reference,
|
|
@@ -7763,7 +7830,7 @@ var relationship = strictObject({
|
|
|
7763
7830
|
created_at: time
|
|
7764
7831
|
});
|
|
7765
7832
|
|
|
7766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
7767
7834
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
7768
7835
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
7769
7836
|
var responseTimes = strictObject({
|
|
@@ -7780,7 +7847,7 @@ var waitingChats = strictObject({
|
|
|
7780
7847
|
by_kind: strictObject({ private: count, group: count })
|
|
7781
7848
|
});
|
|
7782
7849
|
|
|
7783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
7784
7851
|
var retentionCohort = strictObject({
|
|
7785
7852
|
/** The first day of the joining day or week. */
|
|
7786
7853
|
cohort: text,
|
|
@@ -7828,7 +7895,7 @@ var retention = strictObject({
|
|
|
7828
7895
|
rows: array(retentionCohort)
|
|
7829
7896
|
});
|
|
7830
7897
|
|
|
7831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
7832
7899
|
var savedSearch = strictObject({
|
|
7833
7900
|
id,
|
|
7834
7901
|
/** `null` for a run in the history. */
|
|
@@ -7845,7 +7912,7 @@ var savedSearch = strictObject({
|
|
|
7845
7912
|
});
|
|
7846
7913
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
7847
7914
|
|
|
7848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
7849
7916
|
var sendAttempt = strictObject({
|
|
7850
7917
|
at: time,
|
|
7851
7918
|
profile: text,
|
|
@@ -7873,7 +7940,7 @@ var sendAttempt = strictObject({
|
|
|
7873
7940
|
error_code: optional(text)
|
|
7874
7941
|
});
|
|
7875
7942
|
|
|
7876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
7877
7944
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
7878
7945
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
7879
7946
|
var infoSchema = strictObject({
|
|
@@ -8103,7 +8170,7 @@ var storeRepair = union([
|
|
|
8103
8170
|
]);
|
|
8104
8171
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
8105
8172
|
|
|
8106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
8107
8174
|
var range = strictObject({ from: number(), to: number() });
|
|
8108
8175
|
var storeChatStatus = strictObject({
|
|
8109
8176
|
chat_id: id,
|
|
@@ -8201,7 +8268,7 @@ var storeJobRetry = union([
|
|
|
8201
8268
|
]);
|
|
8202
8269
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
8203
8270
|
|
|
8204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
8205
8272
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
8206
8273
|
var storeTable = strictObject({
|
|
8207
8274
|
name: text,
|
|
@@ -8210,7 +8277,7 @@ var storeTable = strictObject({
|
|
|
8210
8277
|
bytes: optional(nullable(count))
|
|
8211
8278
|
});
|
|
8212
8279
|
|
|
8213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
8214
8281
|
var tagTarget = variant("type", [
|
|
8215
8282
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
8216
8283
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -8241,7 +8308,7 @@ var automaticTags = strictObject({
|
|
|
8241
8308
|
dry_run: boolean()
|
|
8242
8309
|
});
|
|
8243
8310
|
|
|
8244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
8245
8312
|
var tagging = strictObject({
|
|
8246
8313
|
tag: text,
|
|
8247
8314
|
type: picklist(TAG_TYPES),
|
|
@@ -8254,7 +8321,7 @@ var tagging = strictObject({
|
|
|
8254
8321
|
created_at: time
|
|
8255
8322
|
});
|
|
8256
8323
|
|
|
8257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
8258
8325
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
8259
8326
|
var taskPair = strictObject({
|
|
8260
8327
|
task: nullable(side),
|
|
@@ -8277,7 +8344,7 @@ var taskPair = strictObject({
|
|
|
8277
8344
|
created_at: time
|
|
8278
8345
|
});
|
|
8279
8346
|
|
|
8280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
8281
8348
|
var nullableTime = nullable(time);
|
|
8282
8349
|
var link = strictObject({
|
|
8283
8350
|
id,
|
|
@@ -8451,7 +8518,7 @@ var taskReview = strictObject({
|
|
|
8451
8518
|
untrusted
|
|
8452
8519
|
});
|
|
8453
8520
|
|
|
8454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
8455
8522
|
var template = strictObject({
|
|
8456
8523
|
key: text,
|
|
8457
8524
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -8463,7 +8530,7 @@ var template = strictObject({
|
|
|
8463
8530
|
updated_by: nullable(text)
|
|
8464
8531
|
});
|
|
8465
8532
|
|
|
8466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
8467
8534
|
var topic = strictObject({
|
|
8468
8535
|
id,
|
|
8469
8536
|
title: text,
|
|
@@ -8477,7 +8544,7 @@ var topic = strictObject({
|
|
|
8477
8544
|
untrusted
|
|
8478
8545
|
});
|
|
8479
8546
|
|
|
8480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
8481
8548
|
var ENTITIES = {
|
|
8482
8549
|
sync_progress: progress,
|
|
8483
8550
|
deal,
|
|
@@ -8584,6 +8651,7 @@ var ENTITIES = {
|
|
|
8584
8651
|
topic_icon: topicIcon,
|
|
8585
8652
|
bot_webhook: botWebhook,
|
|
8586
8653
|
scheduled_job: scheduledJob,
|
|
8654
|
+
schedule_harness: scheduleHarness,
|
|
8587
8655
|
call_record: callRecord,
|
|
8588
8656
|
sticker_inventory: stickerInventory,
|
|
8589
8657
|
note,
|
|
@@ -8771,7 +8839,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
8771
8839
|
return [name, definition];
|
|
8772
8840
|
})), "entityDefinitions");
|
|
8773
8841
|
|
|
8774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
8775
8843
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
8776
8844
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
8777
8845
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -8805,7 +8873,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
8805
8873
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
8806
8874
|
}, "answerRow");
|
|
8807
8875
|
|
|
8808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
8809
8877
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
8810
8878
|
var requests = new AsyncLocalStorage();
|
|
8811
8879
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -8820,7 +8888,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
8820
8888
|
return direct;
|
|
8821
8889
|
}, "exitCodeSet");
|
|
8822
8890
|
|
|
8823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
8824
8892
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
8825
8893
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
8826
8894
|
messageId: message2.id,
|
|
@@ -8926,7 +8994,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
8926
8994
|
}, "guardedWrite");
|
|
8927
8995
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
8928
8996
|
|
|
8929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
8930
8998
|
var named2 = /* @__PURE__ */ __name((work) => {
|
|
8931
8999
|
try {
|
|
8932
9000
|
return work();
|
|
@@ -8953,7 +9021,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named2(() => {
|
|
|
8953
9021
|
return projectFields(value, fields);
|
|
8954
9022
|
}), "projectFields");
|
|
8955
9023
|
|
|
8956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
8957
9025
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
8958
9026
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
8959
9027
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -9136,7 +9204,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
9136
9204
|
}
|
|
9137
9205
|
}, "withAbort");
|
|
9138
9206
|
|
|
9139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
9140
9208
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
9141
9209
|
import { join as join2 } from "node:path";
|
|
9142
9210
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -9225,7 +9293,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
9225
9293
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
9226
9294
|
}, "registryProfiles");
|
|
9227
9295
|
|
|
9228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
9229
9297
|
import { existsSync as existsSync3, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
9230
9298
|
import { join as join3 } from "node:path";
|
|
9231
9299
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -9247,7 +9315,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
9247
9315
|
}, "profilesWithAccounts");
|
|
9248
9316
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
9249
9317
|
|
|
9250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
9251
9319
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
9252
9320
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
9253
9321
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -9283,7 +9351,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
9283
9351
|
return value;
|
|
9284
9352
|
}, "atDetail");
|
|
9285
9353
|
|
|
9286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/output.js
|
|
9287
9355
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
9288
9356
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
9289
9357
|
if (other)
|
|
@@ -9347,7 +9415,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
9347
9415
|
}, "warn")
|
|
9348
9416
|
}), "silence");
|
|
9349
9417
|
|
|
9350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
9351
9419
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
9352
9420
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
9353
9421
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -9358,6 +9426,7 @@ var CORE_LOG_EVENTS = defineLogEvents([
|
|
|
9358
9426
|
keys: ["operation", "reason"]
|
|
9359
9427
|
},
|
|
9360
9428
|
{ id: "store.write", meaning: "a committed write changed rows of one store table", keys: ["table", "op", "n"] },
|
|
9429
|
+
{ id: "sync.progress", meaning: "what a sync's progress line showed: chats and messages so far", keys: ["counts"] },
|
|
9361
9430
|
{ id: "command.crashed", meaning: "a command failed on a bug; where, never what", keys: ["error_class", "frames"] },
|
|
9362
9431
|
{
|
|
9363
9432
|
id: "events.dropped",
|
|
@@ -9380,10 +9449,11 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
9380
9449
|
response: "provider.response",
|
|
9381
9450
|
warning: "client.warning",
|
|
9382
9451
|
cache: "cache.answered",
|
|
9383
|
-
store: "store.write"
|
|
9452
|
+
store: "store.write",
|
|
9453
|
+
progress: "sync.progress"
|
|
9384
9454
|
};
|
|
9385
9455
|
|
|
9386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
9387
9457
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
9388
9458
|
const recording = startRecording(options);
|
|
9389
9459
|
try {
|
|
@@ -9598,7 +9668,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
9598
9668
|
return void 0;
|
|
9599
9669
|
}, "partialOutcome");
|
|
9600
9670
|
|
|
9601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
9602
9672
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
9603
9673
|
if (ms2 === void 0)
|
|
9604
9674
|
return body();
|
|
@@ -9624,7 +9694,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
9624
9694
|
}
|
|
9625
9695
|
}, "withDeadline");
|
|
9626
9696
|
|
|
9627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
9628
9698
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
9629
9699
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
9630
9700
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -9693,20 +9763,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
9693
9763
|
return void 0;
|
|
9694
9764
|
}, "sampleCommand");
|
|
9695
9765
|
|
|
9696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
9697
9767
|
import { existsSync as existsSync6 } from "node:fs";
|
|
9698
9768
|
|
|
9699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9700
|
-
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
9701
|
-
try {
|
|
9702
|
-
const url3 = new URL(value);
|
|
9703
|
-
return ["https:", "http:"].includes(url3.protocol) && !url3.username && !url3.password && !url3.search && !url3.hash;
|
|
9704
|
-
} catch {
|
|
9705
|
-
return false;
|
|
9706
|
-
}
|
|
9707
|
-
}, "endpoint");
|
|
9708
|
-
|
|
9709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
9769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
9710
9770
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
9711
9771
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
9712
9772
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -9775,7 +9835,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
9775
9835
|
};
|
|
9776
9836
|
}, "modelTarget");
|
|
9777
9837
|
|
|
9778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
9779
9839
|
var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
9780
9840
|
var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
9781
9841
|
var AI_FIELDS = {
|
|
@@ -9819,7 +9879,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
9819
9879
|
};
|
|
9820
9880
|
}, "resolveAISettings");
|
|
9821
9881
|
|
|
9822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
9823
9883
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
9824
9884
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
9825
9885
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -9833,7 +9893,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
9833
9893
|
return ms2;
|
|
9834
9894
|
}, "parseDuration");
|
|
9835
9895
|
|
|
9836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
9837
9897
|
import { existsSync as existsSync4 } from "node:fs";
|
|
9838
9898
|
import { join as join4 } from "node:path";
|
|
9839
9899
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
@@ -10110,7 +10170,7 @@ var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
|
10110
10170
|
}, "vectorModelKey");
|
|
10111
10171
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
10112
10172
|
|
|
10113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
10114
10174
|
var HISTORY_MAX_DAYS = 1095;
|
|
10115
10175
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
10116
10176
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -10157,10 +10217,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
10157
10217
|
return { batch: { ...batch, messages }, skipped };
|
|
10158
10218
|
}, "limitBatch");
|
|
10159
10219
|
|
|
10160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
10161
10221
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
10162
10222
|
|
|
10163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
10164
10224
|
var REPAIR_WORDS = {
|
|
10165
10225
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
10166
10226
|
comment: "a comment, which JSON does not allow",
|
|
@@ -10401,7 +10461,7 @@ ${parts.join(",\n")}
|
|
|
10401
10461
|
${indent}${close}`;
|
|
10402
10462
|
}, "serialise");
|
|
10403
10463
|
|
|
10404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
10405
10465
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10406
10466
|
var SECTIONS = ["personal", "bot"];
|
|
10407
10467
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -10695,7 +10755,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
10695
10755
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
10696
10756
|
}, "readConfigFile");
|
|
10697
10757
|
|
|
10698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
10699
10759
|
import { existsSync as existsSync5, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
10700
10760
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
10701
10761
|
var DEFAULT_CONFIG = {
|
|
@@ -10724,7 +10784,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
10724
10784
|
}
|
|
10725
10785
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
10726
10786
|
|
|
10727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
10728
10788
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10729
10789
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
10730
10790
|
const path2 = key.split(".");
|
|
@@ -10746,7 +10806,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
10746
10806
|
return { config, added };
|
|
10747
10807
|
}, "withSettingDefaults");
|
|
10748
10808
|
|
|
10749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
10750
10810
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
10751
10811
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
10752
10812
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -10916,11 +10976,12 @@ var fromFile = /* @__PURE__ */ __name((settings, key, fallback) => first([
|
|
|
10916
10976
|
], fallback), "fromFile");
|
|
10917
10977
|
var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
10918
10978
|
const declared = extension.permissions;
|
|
10919
|
-
const
|
|
10979
|
+
const botEntries = {
|
|
10920
10980
|
...SHARED_PROFILE_ENTRIES,
|
|
10921
10981
|
...declared ? { permissions: optional(commandPathLevels) } : {},
|
|
10922
10982
|
...extension.profile
|
|
10923
10983
|
};
|
|
10984
|
+
const profileEntries = { ...botEntries, ...extension.personal };
|
|
10924
10985
|
const defaultsOnly = { ...SHARED_DEFAULTS_ONLY, ...extension.defaults };
|
|
10925
10986
|
const defaultsEntries = { ...profileEntries, ...defaultsOnly };
|
|
10926
10987
|
const strictOf = /* @__PURE__ */ __name((entries) => strictObject(entries, objectMessage), "strictOf");
|
|
@@ -10932,7 +10993,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
10932
10993
|
defaults: optional(strictOf(defaultsEntries)),
|
|
10933
10994
|
profiles: optional(record(string(), strictOf(profileEntries), "has to be an object of profiles, by name"), {}),
|
|
10934
10995
|
personal: optional(kindSection(profileEntries)),
|
|
10935
|
-
bot: optional(kindSection({ ...
|
|
10996
|
+
bot: optional(kindSection({ ...botEntries, ...BOT_ONLY_ENTRIES }))
|
|
10936
10997
|
};
|
|
10937
10998
|
const schema2 = strictOf(configEntries);
|
|
10938
10999
|
const defaultsOnlyKeys = Object.keys(defaultsOnly);
|
|
@@ -11271,7 +11332,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
11271
11332
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
11272
11333
|
}, "given");
|
|
11273
11334
|
|
|
11274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
11275
11336
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
11276
11337
|
const slot = environmentOf(command).exit;
|
|
11277
11338
|
const request = commandServerRequest();
|
|
@@ -11330,6 +11391,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
11330
11391
|
});
|
|
11331
11392
|
const closeables = [];
|
|
11332
11393
|
const ranFor = namedProfile(settings);
|
|
11394
|
+
let namedTheAnswer = false;
|
|
11333
11395
|
return {
|
|
11334
11396
|
settings,
|
|
11335
11397
|
renderer,
|
|
@@ -11345,6 +11407,9 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
11345
11407
|
return withAbort(environment.commandSignal, () => withDeadline(unbounded ? void 0 : settings.commandTimeoutMs, closeables, () => body(() => {
|
|
11346
11408
|
})));
|
|
11347
11409
|
const runName = name ?? `${environment.agent ? "mcp " : ""}${commandPath(command)}`;
|
|
11410
|
+
const answersFor = !environment.agent && name === void 0 && !namedTheAnswer;
|
|
11411
|
+
if (answersFor)
|
|
11412
|
+
namedTheAnswer = true;
|
|
11348
11413
|
return recorded({
|
|
11349
11414
|
app: environment.app,
|
|
11350
11415
|
command: runName,
|
|
@@ -11371,7 +11436,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
11371
11436
|
...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
|
|
11372
11437
|
...settings.keepStoreRunsForDays === void 0 ? {} : { keepStoreDays: settings.keepStoreRunsForDays },
|
|
11373
11438
|
...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
|
|
11374
|
-
processRun:
|
|
11439
|
+
processRun: answersFor,
|
|
11375
11440
|
format,
|
|
11376
11441
|
streams,
|
|
11377
11442
|
env
|
|
@@ -11397,7 +11462,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
11397
11462
|
return words2.join(" ");
|
|
11398
11463
|
}, "commandPath");
|
|
11399
11464
|
|
|
11400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
11401
11466
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
11402
11467
|
var FETCH = { remote: "read", local: "write" };
|
|
11403
11468
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -11468,6 +11533,7 @@ var writesFileOnlyWith = /* @__PURE__ */ __name((command, option) => {
|
|
|
11468
11533
|
return command;
|
|
11469
11534
|
}, "writesFileOnlyWith");
|
|
11470
11535
|
var writesNewFileOnlyWith = /* @__PURE__ */ __name((command, option) => destroysNothing(writesFileOnlyWith(command, option)), "writesNewFileOnlyWith");
|
|
11536
|
+
var fileOptionOf = /* @__PURE__ */ __name((command) => FILE_OPTION.get(command), "fileOptionOf");
|
|
11471
11537
|
var writesFileNow = /* @__PURE__ */ __name((command) => {
|
|
11472
11538
|
const option = FILE_OPTION.get(command);
|
|
11473
11539
|
return option === void 0 || command.opts()[option] !== void 0;
|
|
@@ -11529,7 +11595,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
11529
11595
|
throw readOnlyRefusal(lock, what);
|
|
11530
11596
|
}, "refuseUnderReadOnly");
|
|
11531
11597
|
|
|
11532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11533
11599
|
import { join as join6 } from "node:path";
|
|
11534
11600
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11535
11601
|
var IMAGE_MODELS = [
|
|
@@ -11583,7 +11649,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11583
11649
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11584
11650
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11585
11651
|
|
|
11586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11587
11653
|
var STEPS2 = defineSteps([
|
|
11588
11654
|
...STEPS,
|
|
11589
11655
|
{
|
|
@@ -11864,7 +11930,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11864
11930
|
].join(" ");
|
|
11865
11931
|
}, "stepLine");
|
|
11866
11932
|
|
|
11867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11868
11934
|
var where = [{ field: "ref" }];
|
|
11869
11935
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11870
11936
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11956,7 +12022,7 @@ var STATUS_ROWS = {
|
|
|
11956
12022
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11957
12023
|
};
|
|
11958
12024
|
|
|
11959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11960
12026
|
var TEXT_CHARS = 400;
|
|
11961
12027
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11962
12028
|
var messageRow = {
|
|
@@ -12322,7 +12388,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12322
12388
|
return lines.concat(footerOf(body)).join("\n");
|
|
12323
12389
|
}, "compactText");
|
|
12324
12390
|
|
|
12325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12326
12392
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12327
12393
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12328
12394
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12380,7 +12446,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12380
12446
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12381
12447
|
}, "largeAnswerSteps");
|
|
12382
12448
|
|
|
12383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12384
12450
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12385
12451
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12386
12452
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12394,7 +12460,91 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12394
12460
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12395
12461
|
}, "strip");
|
|
12396
12462
|
|
|
12397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
12464
|
+
var OPEN = "\u27E6";
|
|
12465
|
+
var CLOSE = "\u27E7";
|
|
12466
|
+
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
12467
|
+
if (readOnlyLockOf(app, env) === void 0)
|
|
12468
|
+
return void 0;
|
|
12469
|
+
const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
|
|
12470
|
+
return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
|
|
12471
|
+
}, "untrustedMarkOf");
|
|
12472
|
+
var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
|
|
12473
|
+
const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
|
|
12474
|
+
const named3 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
|
|
12475
|
+
return `${OPEN}untrusted:${mark} source=${source2}${named3}${CLOSE}${inside}${OPEN}/untrusted:${mark}${CLOSE}`;
|
|
12476
|
+
}, "marked");
|
|
12477
|
+
var idOf = /* @__PURE__ */ __name((value) => {
|
|
12478
|
+
const id6 = value.ref ?? value.id;
|
|
12479
|
+
return typeof id6 === "string" || typeof id6 === "number" ? String(id6) : void 0;
|
|
12480
|
+
}, "idOf");
|
|
12481
|
+
var markAt = /* @__PURE__ */ __name((value, path2, mark, source2, id6) => {
|
|
12482
|
+
if (Array.isArray(value))
|
|
12483
|
+
return value.map((one) => markAt(one, path2, mark, source2, id6));
|
|
12484
|
+
if (path2.length === 0)
|
|
12485
|
+
return typeof value === "string" && !value.startsWith(`${OPEN}untrusted:${mark} `) ? marked(value, mark, source2, id6) : value;
|
|
12486
|
+
if (value === null || typeof value !== "object")
|
|
12487
|
+
return value;
|
|
12488
|
+
const [key = "", ...rest] = path2;
|
|
12489
|
+
const record2 = value;
|
|
12490
|
+
if (!(key in record2))
|
|
12491
|
+
return value;
|
|
12492
|
+
return { ...record2, [key]: markAt(record2[key], rest, mark, source2, idOf(record2) ?? id6) };
|
|
12493
|
+
}, "markAt");
|
|
12494
|
+
var withUntrustedMarked = /* @__PURE__ */ __name((value, mark, id6) => {
|
|
12495
|
+
if (Array.isArray(value))
|
|
12496
|
+
return value.map((one) => withUntrustedMarked(one, mark, id6));
|
|
12497
|
+
if (value === null || typeof value !== "object")
|
|
12498
|
+
return value;
|
|
12499
|
+
const record2 = value;
|
|
12500
|
+
const own = idOf(record2) ?? id6;
|
|
12501
|
+
let result = Object.fromEntries(Object.entries(record2).map(([key, child]) => [
|
|
12502
|
+
key,
|
|
12503
|
+
key === "untrusted" ? child : withUntrustedMarked(child, mark, own)
|
|
12504
|
+
]));
|
|
12505
|
+
const fields = Array.isArray(record2.untrusted) ? record2.untrusted.filter((one) => typeof one === "string") : [];
|
|
12506
|
+
for (const field of fields)
|
|
12507
|
+
result = markAt(result, field.split("."), mark, field, own);
|
|
12508
|
+
return result;
|
|
12509
|
+
}, "withUntrustedMarked");
|
|
12510
|
+
var MESSAGE_UNTRUSTED = [
|
|
12511
|
+
"text",
|
|
12512
|
+
"transcript",
|
|
12513
|
+
"excerpt",
|
|
12514
|
+
"sender_name",
|
|
12515
|
+
"sender_username",
|
|
12516
|
+
"chat_title",
|
|
12517
|
+
"subject",
|
|
12518
|
+
"snippet",
|
|
12519
|
+
"attachments.name",
|
|
12520
|
+
"attachments.title",
|
|
12521
|
+
"attachments.text",
|
|
12522
|
+
"from.name",
|
|
12523
|
+
"to.name",
|
|
12524
|
+
"cc.name",
|
|
12525
|
+
"bcc.name",
|
|
12526
|
+
"reply_addresses.name"
|
|
12527
|
+
];
|
|
12528
|
+
var DECLARED = /* @__PURE__ */ new WeakMap();
|
|
12529
|
+
var marksUntrusted = /* @__PURE__ */ __name((command, fields = MESSAGE_UNTRUSTED) => {
|
|
12530
|
+
DECLARED.set(command, fields);
|
|
12531
|
+
return command;
|
|
12532
|
+
}, "marksUntrusted");
|
|
12533
|
+
var untrustedFieldsOf = /* @__PURE__ */ __name((command) => DECLARED.get(command), "untrustedFieldsOf");
|
|
12534
|
+
var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
12535
|
+
if (Array.isArray(value))
|
|
12536
|
+
return value.map((one) => withFieldsMarked(one, fields, mark, id6));
|
|
12537
|
+
if (value === null || typeof value !== "object")
|
|
12538
|
+
return value;
|
|
12539
|
+
const record2 = value;
|
|
12540
|
+
const own = idOf(record2) ?? id6;
|
|
12541
|
+
let result = Object.fromEntries(Object.entries(record2).map(([key, child]) => [key, withFieldsMarked(child, fields, mark, own)]));
|
|
12542
|
+
for (const field of fields)
|
|
12543
|
+
result = markAt(result, field.split("."), mark, field, own);
|
|
12544
|
+
return result;
|
|
12545
|
+
}, "withFieldsMarked");
|
|
12546
|
+
|
|
12547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12398
12548
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12399
12549
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12400
12550
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12506,7 +12656,11 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
12506
12656
|
const root = rootOf2(command);
|
|
12507
12657
|
const runnableSteps = runnable(root, body.next);
|
|
12508
12658
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
12509
|
-
const
|
|
12659
|
+
const { app, env } = environmentOf(command);
|
|
12660
|
+
const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
12661
|
+
const declared = untrustedFieldsOf(command);
|
|
12662
|
+
const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
|
|
12663
|
+
const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
|
|
12510
12664
|
if (next.length === 0)
|
|
12511
12665
|
delete kept.next;
|
|
12512
12666
|
const sealedBody = sealed(kept);
|
|
@@ -12558,6 +12712,7 @@ export {
|
|
|
12558
12712
|
Help,
|
|
12559
12713
|
Option,
|
|
12560
12714
|
Command,
|
|
12715
|
+
hasSharedContract,
|
|
12561
12716
|
assertSharedContracts,
|
|
12562
12717
|
overrideSharedContract,
|
|
12563
12718
|
sharedContractOverrides,
|
|
@@ -12624,6 +12779,7 @@ export {
|
|
|
12624
12779
|
topicIcon,
|
|
12625
12780
|
botWebhook,
|
|
12626
12781
|
scheduledJob,
|
|
12782
|
+
scheduleHarness,
|
|
12627
12783
|
callRecord,
|
|
12628
12784
|
stickerInventory,
|
|
12629
12785
|
pollVote,
|
|
@@ -12678,7 +12834,6 @@ export {
|
|
|
12678
12834
|
refuseCommandName,
|
|
12679
12835
|
rootOf,
|
|
12680
12836
|
sampleCommand,
|
|
12681
|
-
endpoint,
|
|
12682
12837
|
modelTarget,
|
|
12683
12838
|
parseDuration,
|
|
12684
12839
|
DEFAULT_TEXT_MODEL,
|
|
@@ -12745,6 +12900,7 @@ export {
|
|
|
12745
12900
|
admittedUnderLock,
|
|
12746
12901
|
changesStore,
|
|
12747
12902
|
writesNewFileOnlyWith,
|
|
12903
|
+
fileOptionOf,
|
|
12748
12904
|
readsOverMcpAt,
|
|
12749
12905
|
isStoreChange,
|
|
12750
12906
|
previewFlag,
|
|
@@ -12767,6 +12923,7 @@ export {
|
|
|
12767
12923
|
stepLine,
|
|
12768
12924
|
tooLargeSteps,
|
|
12769
12925
|
withoutProviderRefs,
|
|
12926
|
+
marksUntrusted,
|
|
12770
12927
|
answerSchema,
|
|
12771
12928
|
listOf,
|
|
12772
12929
|
itemOf,
|