@wirecat/tg-cli 0.122.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 +62 -4
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-ZI57T2L5.js → adapter-GEIZVMWU.js} +55 -53
- package/dist/bundle/{all-profiles-7VXJF42C.js → all-profiles-EY4GJFWN.js} +10 -10
- package/dist/bundle/{anthropic-DKRXIWVV.js → anthropic-RIANJ7WM.js} +17 -10
- package/dist/bundle/{app-server-F5MKHZ7S.js → app-server-LW7WBFIF.js} +62 -52
- package/dist/bundle/{bot-api-F24NWJT3.js → bot-api-FHIQ66OM.js} +54 -52
- package/dist/bundle/{bot-history-U3WM3A7S.js → bot-history-O34YZEFH.js} +18 -18
- package/dist/bundle/{bun-OMTJAXGK.js → bun-MJWD4VGV.js} +2 -2
- package/dist/bundle/{bun-sqlite-HSYLO46A.js → bun-sqlite-LCHVO3OB.js} +9 -5
- package/dist/bundle/{chunk-DCGGZUNJ.js → chunk-2GFGZDWS.js} +2 -2
- package/dist/bundle/{chunk-7FWU4RON.js → chunk-2NG4JPP7.js} +4 -4
- package/dist/bundle/{chunk-UGEYQWEO.js → chunk-2YLIVDWJ.js} +2 -2
- package/dist/bundle/chunk-3PLMMFP6.js +1068 -0
- package/dist/bundle/{chunk-27SVHRHV.js → chunk-3VVZFBE2.js} +23 -4
- package/dist/bundle/{chunk-FYHFAOPM.js → chunk-42R4YO4L.js} +12064 -9579
- package/dist/bundle/{chunk-U6HEZPCR.js → chunk-4CIVGT4P.js} +57 -28
- package/dist/bundle/{chunk-CB6AHU6H.js → chunk-4EGB7GSW.js} +96 -19
- package/dist/bundle/chunk-54JPEGQA.js +71 -0
- package/dist/bundle/chunk-5EL6E6PW.js +13 -0
- package/dist/bundle/{chunk-QROAXWDU.js → chunk-7AWJZ6NJ.js} +8 -8
- package/dist/bundle/{chunk-2UHANFLM.js → chunk-A5RWKKBZ.js} +3 -3
- package/dist/bundle/{chunk-7I6YVQHW.js → chunk-ASEBKZFY.js} +2 -2
- package/dist/bundle/{chunk-SODUFMDW.js → chunk-BV3HZYOX.js} +7435 -6559
- package/dist/bundle/{chunk-FHWUOFWX.js → chunk-CDSSKK5J.js} +3 -3
- package/dist/bundle/{chunk-6LMEIELG.js → chunk-DFSLHF46.js} +1 -1
- package/dist/bundle/{chunk-Y74WJL3M.js → chunk-E66JBGZZ.js} +6 -6
- package/dist/bundle/{chunk-VUBZFMGP.js → chunk-E6VSARSU.js} +2 -2
- package/dist/bundle/{chunk-MFWWZ6XL.js → chunk-F3GHTPAO.js} +4 -4
- package/dist/bundle/{chunk-NU4RMUMQ.js → chunk-GUL6QLNI.js} +40 -21
- package/dist/bundle/{chunk-E3MFMMVY.js → chunk-HEV23NIB.js} +6 -6
- package/dist/bundle/{chunk-FZKHFTKH.js → chunk-HSRO77SW.js} +35 -29
- package/dist/bundle/{chunk-FATTEYZH.js → chunk-I4JUKRW7.js} +2 -2
- package/dist/bundle/{chunk-YDMKP7PO.js → chunk-IK6XKMLL.js} +1 -1
- package/dist/bundle/{chunk-DDSAJKPO.js → chunk-ISGXVFA4.js} +4 -4
- package/dist/bundle/chunk-IVFUSI7G.js +53 -0
- package/dist/bundle/{chunk-DTTONQW7.js → chunk-KVJSCJGZ.js} +2 -2
- package/dist/bundle/{chunk-NE3EGYPD.js → chunk-LKMZ53GC.js} +4 -7
- package/dist/bundle/{chunk-YFEH7OWG.js → chunk-M4W4Y5YR.js} +132 -40
- package/dist/bundle/{chunk-R2IW6JBV.js → chunk-N5UM63JW.js} +343 -112
- package/dist/bundle/{chunk-V4BPS7MH.js → chunk-NL4COYPY.js} +9 -9
- package/dist/bundle/{chunk-ZNPRTCUO.js → chunk-NQXVZ5WT.js} +15 -117
- package/dist/bundle/{chunk-4MFMUBHH.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-W34QQMBK.js → chunk-OVDB5CQM.js} +1 -1
- package/dist/bundle/{chunk-7GCVON7M.js → chunk-PI4XXMPG.js} +6 -6
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-PJGOQSE5.js} +1 -1
- package/dist/bundle/{chunk-D3ODL4P7.js → chunk-PP4ZBLS4.js} +69 -6
- package/dist/bundle/{chunk-LVGX7VTD.js → chunk-PZ6H65D6.js} +4 -4
- package/dist/bundle/{chunk-ARKB3M5X.js → chunk-QFV36CAH.js} +4 -4
- package/dist/bundle/{chunk-7X6YLKTK.js → chunk-QGCVQRHV.js} +1 -1
- package/dist/bundle/{chunk-O5A4IS2D.js → chunk-QK4T3VN7.js} +1 -1
- package/dist/bundle/{chunk-VC6J7X76.js → chunk-QWAMX6CN.js} +12 -12
- package/dist/bundle/{chunk-ALW7ROTM.js → chunk-RBV4M2TC.js} +1 -1
- package/dist/bundle/{chunk-GJBGZQHN.js → chunk-RHJHOOUL.js} +354 -184
- package/dist/bundle/{chunk-4N2WJYLE.js → chunk-SGBH3D5D.js} +3 -3
- package/dist/bundle/{chunk-N7WDVH2O.js → chunk-UII3D3HR.js} +51 -51
- package/dist/bundle/{chunk-HAR76KJG.js → chunk-UP3J3YXH.js} +6 -6
- package/dist/bundle/{chunk-WGGSFGNZ.js → chunk-UR62DZ7Q.js} +48 -9
- package/dist/bundle/{chunk-RFFU6KQ5.js → chunk-VAKSXD4F.js} +13 -13
- package/dist/bundle/{chunk-TKJZENAZ.js → chunk-VGUWIHXD.js} +1 -1
- package/dist/bundle/chunk-VIIIC5LU.js +32 -0
- package/dist/bundle/{chunk-VDFEWSCS.js → chunk-VMWJGUVV.js} +14 -5
- package/dist/bundle/{chunk-C5CB6RIX.js → chunk-W4LMTNN2.js} +2 -2
- package/dist/bundle/{chunk-33ELXJRR.js → chunk-WKOVQ4OU.js} +14 -12
- package/dist/bundle/{chunk-6DLRATDC.js → chunk-WSLIXJET.js} +3817 -3378
- package/dist/bundle/{chunk-LQRZUNYF.js → chunk-XDHGM2Z7.js} +3 -3
- package/dist/bundle/{chunk-7DPWVKYS.js → chunk-XSGUG5WG.js} +4 -4
- package/dist/bundle/{chunk-CW3C7FSO.js → chunk-YQFO7WXQ.js} +2 -2
- package/dist/bundle/{chunk-2FXA32RJ.js → chunk-ZL5YG2WK.js} +14 -9
- package/dist/bundle/{chunk-VQL4RVXZ.js → chunk-ZNICTHSC.js} +1 -1
- package/dist/bundle/{chunk-PG3V225O.js → chunk-ZTMV5M3D.js} +32 -27
- package/dist/bundle/command-contract-UKOL455D.js +34 -0
- package/dist/bundle/{command-server-entry-N32NX4QW.js → command-server-entry-K52OEKIO.js} +24 -22
- package/dist/bundle/{decode-ZKJWSFXF.js → decode-OAE25LEJ.js} +5 -5
- package/dist/bundle/{dispatch-U2DW6UI7.js → dispatch-6GVTXIZ2.js} +8 -8
- package/dist/bundle/{echarts-QLVLIP73.js → echarts-EO4ZGKMN.js} +2 -2
- package/dist/bundle/{embed-LC6K7P3S.js → embed-TB2AS4AT.js} +6 -6
- package/dist/bundle/{embedder-6C3OQBOV.js → embedder-YKC42G6L.js} +9 -9
- package/dist/bundle/{entry-5H6LB3MP.js → entry-AB6FU7BN.js} +9 -8
- package/dist/bundle/{failure-HJD7S5UA.js → failure-CY7ACT6V.js} +2 -2
- package/dist/bundle/{first-run-IOYQ4XQK.js → first-run-CMQZHDI5.js} +11 -11
- package/dist/bundle/first-screen-XZ73W3VE.js +32 -0
- package/dist/bundle/{instructions-SZUMEDY3.js → instructions-RM3IB6ID.js} +1 -1
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-M5YCSWJJ.js} +2 -2
- package/dist/bundle/{node-V76RRFIA.js → node-D2PM62TA.js} +2 -2
- package/dist/bundle/{node-sqlite-2DTVOT7L.js → node-sqlite-UK5DE525.js} +10 -6
- package/dist/bundle/{oauth-CT7EBDRY.js → oauth-SKRG67A2.js} +7 -7
- package/dist/bundle/{open-G3VHOOMV.js → open-XP3SY62D.js} +5 -5
- package/dist/bundle/{openai-F4K7MVTZ.js → openai-Q3U46UPA.js} +21 -17
- package/dist/bundle/{process-XH3KEHSF.js → process-YJ4LHMJB.js} +1 -1
- package/dist/bundle/{program-FLGIHTHM.js → program-EEPEFKTR.js} +80 -63
- package/dist/bundle/{prompt-JWQ6UQ6R.js → prompt-WYTODP4U.js} +5 -5
- package/dist/bundle/{proxy-transport-ENU2SJYT.js → proxy-transport-HJMQ5QFT.js} +5 -5
- package/dist/bundle/{recognize-Z26T3SYD.js → recognize-K2S5QQU2.js} +4 -4
- package/dist/bundle/{remote-7KHT6V3O.js → remote-7RSAJ3JC.js} +9 -7
- package/dist/bundle/{rerank-6QVI74QY.js → rerank-RJX77BKD.js} +7 -7
- package/dist/bundle/{serve-WYDZTONY.js → serve-3E7NN3VW.js} +14 -14
- package/dist/bundle/server-ITHYDPWQ.js +62 -0
- package/dist/bundle/{server-Y4J2NCFA.js → server-O3KU56A4.js} +36 -35
- package/dist/bundle/sqlite-runtime-RCS5WSG5.js +19 -0
- package/dist/bundle/{state-YCXBKOD2.js → state-PLWSPSAG.js} +6 -6
- package/dist/bundle/store-3FYLH53Z.js +276 -0
- package/dist/bundle/{store-QECSDJRP.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-GJFICFQB.js +0 -27
- package/dist/bundle/chunk-Y52T5EMB.js +0 -35
- package/dist/bundle/chunk-ZKHXWSKD.js +0 -265
- package/dist/bundle/command-contract-247AKZTE.js +0 -33
- package/dist/bundle/first-screen-NVK7PFX4.js +0 -31
- package/dist/bundle/server-UXQT7LZT.js +0 -61
- package/dist/bundle/store-maintenance-command-5YW6TRJA.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-2UHANFLM.js";
|
|
6
|
-
import {
|
|
7
|
-
carries
|
|
8
|
-
} from "./chunk-O5A4IS2D.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-7FWU4RON.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");
|
|
@@ -4010,9 +4015,11 @@ var DEFAULT_PERMISSIONS = {
|
|
|
4010
4015
|
"store.migrate": "ask",
|
|
4011
4016
|
"store.repair": "ask",
|
|
4012
4017
|
"store.reset": "ask",
|
|
4018
|
+
"store.import": "ask",
|
|
4013
4019
|
"store.clear": "ask",
|
|
4014
4020
|
"store.decrypt": "ask",
|
|
4015
4021
|
"store.copies.delete": "ask",
|
|
4022
|
+
"store.recover.run": "ask",
|
|
4016
4023
|
"server.start": "ask",
|
|
4017
4024
|
"server.stop": "ask",
|
|
4018
4025
|
"server.restart": "ask",
|
|
@@ -4302,6 +4309,8 @@ var readKeysForCommand = /* @__PURE__ */ __name((path2) => {
|
|
|
4302
4309
|
return [key, "messages"];
|
|
4303
4310
|
if (path2[0] === "store" && ["reset", "clear", "decrypt"].includes(path2[1] ?? ""))
|
|
4304
4311
|
return [key, "messages"];
|
|
4312
|
+
if (key === "store.recover.run")
|
|
4313
|
+
return [key, "messages"];
|
|
4305
4314
|
if (path2[0] === "search") {
|
|
4306
4315
|
if (path2[1] === "notes")
|
|
4307
4316
|
return [key];
|
|
@@ -4388,7 +4397,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4388
4397
|
}
|
|
4389
4398
|
}, "assertRetentionEvidenceRead");
|
|
4390
4399
|
|
|
4391
|
-
// 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
|
|
4392
4401
|
var account = strictObject({
|
|
4393
4402
|
provider: text,
|
|
4394
4403
|
id,
|
|
@@ -4398,7 +4407,7 @@ var account = strictObject({
|
|
|
4398
4407
|
scope: optional(picklist(["personal", "work"]))
|
|
4399
4408
|
});
|
|
4400
4409
|
|
|
4401
|
-
// 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
|
|
4402
4411
|
var accountSession = strictObject({
|
|
4403
4412
|
current: boolean(),
|
|
4404
4413
|
client: nullable(text),
|
|
@@ -4408,7 +4417,7 @@ var accountSession = strictObject({
|
|
|
4408
4417
|
created_at: optional(nullable(time))
|
|
4409
4418
|
});
|
|
4410
4419
|
|
|
4411
|
-
// 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
|
|
4412
4421
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
4413
4422
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
4414
4423
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -4437,7 +4446,7 @@ var accountRemoval = strictObject({
|
|
|
4437
4446
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
4438
4447
|
});
|
|
4439
4448
|
|
|
4440
|
-
// 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
|
|
4441
4450
|
var accountProfile = strictObject({
|
|
4442
4451
|
profile: id,
|
|
4443
4452
|
current: boolean(),
|
|
@@ -4449,7 +4458,7 @@ var accountProfile = strictObject({
|
|
|
4449
4458
|
bot: optional(literal(true))
|
|
4450
4459
|
});
|
|
4451
4460
|
|
|
4452
|
-
// 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
|
|
4453
4462
|
var milliseconds = pipe(number(), minValue(0));
|
|
4454
4463
|
var counterReading = strictObject({
|
|
4455
4464
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -4461,7 +4470,7 @@ var counterReading = strictObject({
|
|
|
4461
4470
|
});
|
|
4462
4471
|
var selection = record(string(), unknown());
|
|
4463
4472
|
|
|
4464
|
-
// 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
|
|
4465
4474
|
var adminRow = strictObject({
|
|
4466
4475
|
ref: reference,
|
|
4467
4476
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -4514,7 +4523,7 @@ var adminReport = strictObject({
|
|
|
4514
4523
|
rows: array(adminRow)
|
|
4515
4524
|
});
|
|
4516
4525
|
|
|
4517
|
-
// 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
|
|
4518
4527
|
var closeSuggestion = strictObject({
|
|
4519
4528
|
as: picklist(["done", "dismissed"]),
|
|
4520
4529
|
/** The agent's name. */
|
|
@@ -4576,7 +4585,7 @@ var task = strictObject({
|
|
|
4576
4585
|
updated_at: optional(time)
|
|
4577
4586
|
});
|
|
4578
4587
|
|
|
4579
|
-
// 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
|
|
4580
4589
|
var agendaChat = strictObject({
|
|
4581
4590
|
chat: reference,
|
|
4582
4591
|
title: nullable(text),
|
|
@@ -4646,11 +4655,11 @@ var agenda = strictObject({
|
|
|
4646
4655
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
4647
4656
|
});
|
|
4648
4657
|
|
|
4649
|
-
// 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
|
|
4650
4659
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
4651
4660
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
4652
4661
|
|
|
4653
|
-
// 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
|
|
4654
4663
|
var attachment = strictObject({
|
|
4655
4664
|
/** The message it came with, as a locator; absent inside that message. */
|
|
4656
4665
|
message: optional(reference),
|
|
@@ -4686,9 +4695,16 @@ var attachment = strictObject({
|
|
|
4686
4695
|
url: optional(text)
|
|
4687
4696
|
}))))
|
|
4688
4697
|
});
|
|
4689
|
-
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
|
+
});
|
|
4690
4706
|
|
|
4691
|
-
// 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
|
|
4692
4708
|
var actionableError = objectWithRest({
|
|
4693
4709
|
code: text,
|
|
4694
4710
|
message: text,
|
|
@@ -4705,7 +4721,7 @@ var batchResult = strictObject({
|
|
|
4705
4721
|
max_error_percent: count
|
|
4706
4722
|
});
|
|
4707
4723
|
|
|
4708
|
-
// 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
|
|
4709
4725
|
var extractionItem = strictObject({
|
|
4710
4726
|
ref: reference,
|
|
4711
4727
|
attachment: count,
|
|
@@ -4738,7 +4754,7 @@ var extractionReport = strictObject({
|
|
|
4738
4754
|
cursor: optional(text)
|
|
4739
4755
|
});
|
|
4740
4756
|
|
|
4741
|
-
// 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
|
|
4742
4758
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
4743
4759
|
var attachmentBytes = strictObject({
|
|
4744
4760
|
ref: reference,
|
|
@@ -4763,10 +4779,13 @@ var attachmentTextChange = strictObject({
|
|
|
4763
4779
|
attachment: count,
|
|
4764
4780
|
origin: literal("agent"),
|
|
4765
4781
|
chars: count,
|
|
4766
|
-
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)
|
|
4767
4786
|
});
|
|
4768
4787
|
|
|
4769
|
-
// 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
|
|
4770
4789
|
var WEIGHTS = {
|
|
4771
4790
|
bot: 3,
|
|
4772
4791
|
scam: 3,
|
|
@@ -4791,7 +4810,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
4791
4810
|
var DIGITS = /\d{5,}/;
|
|
4792
4811
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
4793
4812
|
|
|
4794
|
-
// 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
|
|
4795
4814
|
var linkedIdentity = strictObject({
|
|
4796
4815
|
provider: text,
|
|
4797
4816
|
id,
|
|
@@ -4799,6 +4818,9 @@ var linkedIdentity = strictObject({
|
|
|
4799
4818
|
username: nullable(text),
|
|
4800
4819
|
phone: optional(nullable(text)),
|
|
4801
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)),
|
|
4802
4824
|
is_bot: nullable(boolean()),
|
|
4803
4825
|
accounts: array(id),
|
|
4804
4826
|
seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
|
|
@@ -4809,6 +4831,8 @@ var linkedIdentity = strictObject({
|
|
|
4809
4831
|
var linkedPerson = strictObject({
|
|
4810
4832
|
uid: id,
|
|
4811
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)),
|
|
4812
4836
|
identities: array(linkedIdentity),
|
|
4813
4837
|
/** An agent's link: the `identity_link` proposal the owner decides; the person is still as it was. */
|
|
4814
4838
|
proposal: optional(text)
|
|
@@ -4841,7 +4865,7 @@ var contactCheck = strictObject({
|
|
|
4841
4865
|
checked_at: time
|
|
4842
4866
|
});
|
|
4843
4867
|
|
|
4844
|
-
// 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
|
|
4845
4869
|
var member = strictObject({
|
|
4846
4870
|
id,
|
|
4847
4871
|
name: nullable(text),
|
|
@@ -4864,7 +4888,7 @@ var member = strictObject({
|
|
|
4864
4888
|
check: optional(record(string(), unknown()))
|
|
4865
4889
|
});
|
|
4866
4890
|
|
|
4867
|
-
// 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
|
|
4868
4892
|
var setting = optional(nullable(boolean()));
|
|
4869
4893
|
var chat = strictObject({
|
|
4870
4894
|
ref: reference,
|
|
@@ -4905,7 +4929,7 @@ var chat = strictObject({
|
|
|
4905
4929
|
members: optional(array(member))
|
|
4906
4930
|
});
|
|
4907
4931
|
|
|
4908
|
-
// 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
|
|
4909
4933
|
var quoted = strictObject({
|
|
4910
4934
|
id,
|
|
4911
4935
|
sender_id: nullable(id),
|
|
@@ -5024,7 +5048,7 @@ var message = strictObject({
|
|
|
5024
5048
|
provider_metadata: providerMetadata
|
|
5025
5049
|
});
|
|
5026
5050
|
|
|
5027
|
-
// 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
|
|
5028
5052
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
5029
5053
|
var contextMessage = strictObject({
|
|
5030
5054
|
locator: reference,
|
|
@@ -5228,12 +5252,24 @@ var contactPreparation = strictObject({
|
|
|
5228
5252
|
})
|
|
5229
5253
|
});
|
|
5230
5254
|
|
|
5231
|
-
// 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
|
|
5232
5256
|
var nullableText = nullable(text);
|
|
5233
5257
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
5234
5258
|
var outcome = picklist(["open", "won", "lost"]);
|
|
5235
5259
|
var crmAccount = nullable(strictObject({ provider: text, account: text }));
|
|
5236
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
|
+
});
|
|
5237
5273
|
var deal = strictObject({
|
|
5238
5274
|
id,
|
|
5239
5275
|
ref: reference,
|
|
@@ -5248,6 +5284,9 @@ var deal = strictObject({
|
|
|
5248
5284
|
base_stage: nullable(strictObject({ ref: reference, name: text })),
|
|
5249
5285
|
status: outcome,
|
|
5250
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,
|
|
5251
5290
|
currency: nullableText,
|
|
5252
5291
|
amount: nullableText,
|
|
5253
5292
|
close_date: day,
|
|
@@ -5282,6 +5321,8 @@ var deal = strictObject({
|
|
|
5282
5321
|
project_name: nullableText,
|
|
5283
5322
|
created_at: time,
|
|
5284
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)),
|
|
5285
5326
|
untrusted
|
|
5286
5327
|
});
|
|
5287
5328
|
var lead = deal;
|
|
@@ -5320,7 +5361,7 @@ var stage = strictObject({
|
|
|
5320
5361
|
untrusted
|
|
5321
5362
|
});
|
|
5322
5363
|
|
|
5323
|
-
// 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
|
|
5324
5365
|
var nullableText2 = nullable(text);
|
|
5325
5366
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
5326
5367
|
var standing = picklist(STANDINGS);
|
|
@@ -5494,7 +5535,7 @@ var dealBrief = strictObject({
|
|
|
5494
5535
|
not_read: coverage2.entries.not_read
|
|
5495
5536
|
});
|
|
5496
5537
|
|
|
5497
|
-
// 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
|
|
5498
5539
|
var chart = strictObject({
|
|
5499
5540
|
version: literal(1),
|
|
5500
5541
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -5509,7 +5550,7 @@ var chart = strictObject({
|
|
|
5509
5550
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
5510
5551
|
});
|
|
5511
5552
|
|
|
5512
|
-
// 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
|
|
5513
5554
|
var named = strictObject({
|
|
5514
5555
|
id,
|
|
5515
5556
|
title: nullable(text),
|
|
@@ -5532,7 +5573,7 @@ var folder = strictObject({
|
|
|
5532
5573
|
excluded_chats: optional(array(named))
|
|
5533
5574
|
});
|
|
5534
5575
|
|
|
5535
|
-
// 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
|
|
5536
5577
|
var inviteLink = strictObject({
|
|
5537
5578
|
link: text,
|
|
5538
5579
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -5548,7 +5589,7 @@ var inviteLink = strictObject({
|
|
|
5548
5589
|
joined_count: optional(count)
|
|
5549
5590
|
});
|
|
5550
5591
|
|
|
5551
|
-
// 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
|
|
5552
5593
|
var operated = { operation_id: id, chat_id: id };
|
|
5553
5594
|
var group = strictObject({
|
|
5554
5595
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -5628,7 +5669,7 @@ var chatFolderOrder = strictObject({
|
|
|
5628
5669
|
folders: array(strictObject({ id, title: text }))
|
|
5629
5670
|
});
|
|
5630
5671
|
|
|
5631
|
-
// 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
|
|
5632
5673
|
var operated2 = { operation_id: id, chat_id: id };
|
|
5633
5674
|
var chatRemoval = strictObject(operated2);
|
|
5634
5675
|
var chatMuting = strictObject({
|
|
@@ -5639,7 +5680,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
5639
5680
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
5640
5681
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
5641
5682
|
|
|
5642
|
-
// 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
|
|
5643
5684
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
5644
5685
|
var chatEvent = strictObject({
|
|
5645
5686
|
chat_id: id,
|
|
@@ -5656,7 +5697,7 @@ var chatEvent = strictObject({
|
|
|
5656
5697
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
5657
5698
|
});
|
|
5658
5699
|
|
|
5659
|
-
// 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
|
|
5660
5701
|
var chatMetadata = strictObject({
|
|
5661
5702
|
chat_id: id,
|
|
5662
5703
|
title: nullable(text),
|
|
@@ -5671,7 +5712,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
5671
5712
|
has_more: boolean()
|
|
5672
5713
|
});
|
|
5673
5714
|
|
|
5674
|
-
// 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
|
|
5675
5716
|
var action = picklist(["report", "delete", "remove"]);
|
|
5676
5717
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
5677
5718
|
var chatRules = strictObject({
|
|
@@ -5708,7 +5749,7 @@ var chatModeration = strictObject({
|
|
|
5708
5749
|
}))
|
|
5709
5750
|
});
|
|
5710
5751
|
|
|
5711
|
-
// 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
|
|
5712
5753
|
var optionalCount = optional(count);
|
|
5713
5754
|
var minutes = nullable(number());
|
|
5714
5755
|
var chatStats = strictObject({
|
|
@@ -5761,6 +5802,8 @@ var chatStats = strictObject({
|
|
|
5761
5802
|
});
|
|
5762
5803
|
var ms = nullable(pipe(number(), minValue(0)));
|
|
5763
5804
|
var taskStats = strictObject({
|
|
5805
|
+
/** Every account counted, `provider:account`, when the answer reads several (memo without `--source`). */
|
|
5806
|
+
accounts: optional(array(text)),
|
|
5764
5807
|
/** Open tasks across every row. */
|
|
5765
5808
|
open: count,
|
|
5766
5809
|
created: count,
|
|
@@ -5782,7 +5825,7 @@ var taskStats = strictObject({
|
|
|
5782
5825
|
}))
|
|
5783
5826
|
});
|
|
5784
5827
|
|
|
5785
|
-
// 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
|
|
5786
5829
|
var memberCount = strictObject({
|
|
5787
5830
|
day: pipe(text, isoDate()),
|
|
5788
5831
|
participants: nullable(count),
|
|
@@ -5805,7 +5848,7 @@ var chatTracking = strictObject({
|
|
|
5805
5848
|
tracked: boolean()
|
|
5806
5849
|
});
|
|
5807
5850
|
|
|
5808
|
-
// 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
|
|
5809
5852
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5810
5853
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
5811
5854
|
var profileFields = {
|
|
@@ -5843,7 +5886,7 @@ var profileFields = {
|
|
|
5843
5886
|
}))
|
|
5844
5887
|
};
|
|
5845
5888
|
|
|
5846
|
-
// 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
|
|
5847
5890
|
var contact = strictObject({
|
|
5848
5891
|
ref: reference,
|
|
5849
5892
|
id,
|
|
@@ -5874,7 +5917,7 @@ var contact = strictObject({
|
|
|
5874
5917
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
5875
5918
|
});
|
|
5876
5919
|
|
|
5877
|
-
// 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
|
|
5878
5921
|
var contactNote = strictObject({
|
|
5879
5922
|
id,
|
|
5880
5923
|
/** The contact, as a `contact:` reference. */
|
|
@@ -5886,13 +5929,13 @@ var contactNote = strictObject({
|
|
|
5886
5929
|
updated_at: time
|
|
5887
5930
|
});
|
|
5888
5931
|
|
|
5889
|
-
// 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
|
|
5890
5933
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5891
5934
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
5892
5935
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
5893
5936
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
5894
5937
|
|
|
5895
|
-
// 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
|
|
5896
5939
|
var conversation = strictObject({
|
|
5897
5940
|
id,
|
|
5898
5941
|
chat: reference,
|
|
@@ -5907,7 +5950,7 @@ var conversation = strictObject({
|
|
|
5907
5950
|
rules_version: count
|
|
5908
5951
|
});
|
|
5909
5952
|
|
|
5910
|
-
// 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
|
|
5911
5954
|
var conversationBuild = strictObject({
|
|
5912
5955
|
chat: id,
|
|
5913
5956
|
messages: count,
|
|
@@ -5932,7 +5975,7 @@ var catchUpPreparation = strictObject({
|
|
|
5932
5975
|
prepared: optional(conversationPreparation)
|
|
5933
5976
|
});
|
|
5934
5977
|
|
|
5935
|
-
// 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
|
|
5936
5979
|
var conversationDetails = union([
|
|
5937
5980
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
5938
5981
|
message
|
|
@@ -6022,7 +6065,7 @@ var conversationHit = strictObject({
|
|
|
6022
6065
|
stale: boolean()
|
|
6023
6066
|
});
|
|
6024
6067
|
|
|
6025
|
-
// 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
|
|
6026
6069
|
var counters = strictObject({
|
|
6027
6070
|
cutoff: time,
|
|
6028
6071
|
max_age_ms: milliseconds,
|
|
@@ -6052,7 +6095,7 @@ var counterRefresh = strictObject({
|
|
|
6052
6095
|
complete: optional(boolean())
|
|
6053
6096
|
});
|
|
6054
6097
|
|
|
6055
|
-
// 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
|
|
6056
6099
|
var document = strictObject({
|
|
6057
6100
|
ref: reference,
|
|
6058
6101
|
id,
|
|
@@ -6067,7 +6110,7 @@ var document = strictObject({
|
|
|
6067
6110
|
owners: optional(array(text))
|
|
6068
6111
|
});
|
|
6069
6112
|
|
|
6070
|
-
// 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
|
|
6071
6114
|
var documentLink = strictObject({
|
|
6072
6115
|
ref: reference,
|
|
6073
6116
|
url: text,
|
|
@@ -6078,7 +6121,7 @@ var documentLink = strictObject({
|
|
|
6078
6121
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
6079
6122
|
});
|
|
6080
6123
|
|
|
6081
|
-
// 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
|
|
6082
6125
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
6083
6126
|
var contribution = strictObject({
|
|
6084
6127
|
message: evidenceMessage,
|
|
@@ -6108,7 +6151,7 @@ var retentionStay = strictObject({
|
|
|
6108
6151
|
});
|
|
6109
6152
|
var evidence = union([contribution, retentionStay]);
|
|
6110
6153
|
|
|
6111
|
-
// 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
|
|
6112
6155
|
var fact = strictObject({
|
|
6113
6156
|
ref: reference,
|
|
6114
6157
|
id,
|
|
@@ -6139,7 +6182,7 @@ var fact = strictObject({
|
|
|
6139
6182
|
updated_at: time
|
|
6140
6183
|
});
|
|
6141
6184
|
|
|
6142
|
-
// 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
|
|
6143
6186
|
var hit = strictObject({
|
|
6144
6187
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
6145
6188
|
ref: reference,
|
|
@@ -6185,7 +6228,7 @@ var hit = strictObject({
|
|
|
6185
6228
|
untrusted
|
|
6186
6229
|
});
|
|
6187
6230
|
|
|
6188
|
-
// 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
|
|
6189
6232
|
var identity = strictObject({
|
|
6190
6233
|
ref: reference,
|
|
6191
6234
|
provider: text,
|
|
@@ -6201,7 +6244,7 @@ var identity = strictObject({
|
|
|
6201
6244
|
person: optional(nullable(reference))
|
|
6202
6245
|
});
|
|
6203
6246
|
|
|
6204
|
-
// 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
|
|
6205
6248
|
var imageEmbedding = strictObject({
|
|
6206
6249
|
model: text,
|
|
6207
6250
|
embedded: count,
|
|
@@ -6210,13 +6253,13 @@ var imageEmbedding = strictObject({
|
|
|
6210
6253
|
more: boolean()
|
|
6211
6254
|
});
|
|
6212
6255
|
|
|
6213
|
-
// 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
|
|
6214
6257
|
import { spawn } from "node:child_process";
|
|
6215
6258
|
import { randomBytes } from "node:crypto";
|
|
6216
6259
|
import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
|
|
6217
6260
|
import { dirname, join } from "node:path";
|
|
6218
6261
|
|
|
6219
|
-
// 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
|
|
6220
6263
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
6221
6264
|
const total = input.total ?? null;
|
|
6222
6265
|
const updated = input.updatedAt ?? null;
|
|
@@ -6232,7 +6275,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
6232
6275
|
};
|
|
6233
6276
|
}, "progressOf");
|
|
6234
6277
|
|
|
6235
|
-
// 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
|
|
6236
6279
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6237
6280
|
const run = currentRun();
|
|
6238
6281
|
const trace = traceId ?? run.traceId;
|
|
@@ -6246,7 +6289,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6246
6289
|
}));
|
|
6247
6290
|
}, "recordLogFor");
|
|
6248
6291
|
|
|
6249
|
-
// 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
|
|
6250
6293
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
6251
6294
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
6252
6295
|
const out = openSync(log, "a", 384);
|
|
@@ -6401,7 +6444,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6401
6444
|
return { job: id6, pid, chat: input.chat, log };
|
|
6402
6445
|
}, "startArchiveJob");
|
|
6403
6446
|
|
|
6404
|
-
// 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
|
|
6405
6448
|
var problem = strictObject({ code: text, message: text });
|
|
6406
6449
|
var job = strictObject({
|
|
6407
6450
|
id,
|
|
@@ -6424,7 +6467,7 @@ var job = strictObject({
|
|
|
6424
6467
|
error: optional(problem)
|
|
6425
6468
|
});
|
|
6426
6469
|
|
|
6427
|
-
// 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
|
|
6428
6471
|
var joinRequest = strictObject({
|
|
6429
6472
|
person_id: id,
|
|
6430
6473
|
name: nullable(text),
|
|
@@ -6435,7 +6478,7 @@ var joinRequest = strictObject({
|
|
|
6435
6478
|
about: optional(text)
|
|
6436
6479
|
});
|
|
6437
6480
|
|
|
6438
|
-
// 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
|
|
6439
6482
|
var botProfile = strictObject({
|
|
6440
6483
|
name: text,
|
|
6441
6484
|
token: text,
|
|
@@ -6499,12 +6542,39 @@ var scheduledJob = strictObject({
|
|
|
6499
6542
|
error: optional(text)
|
|
6500
6543
|
})))
|
|
6501
6544
|
})),
|
|
6502
|
-
/** Agent schedules:
|
|
6503
|
-
|
|
6504
|
-
/** 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. */
|
|
6505
6552
|
max_cost_usd: optional(nullable(number())),
|
|
6506
|
-
/**
|
|
6507
|
-
|
|
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)
|
|
6508
6578
|
});
|
|
6509
6579
|
var botTemplate = strictObject({
|
|
6510
6580
|
name: nullable(text),
|
|
@@ -6532,7 +6602,7 @@ var stickerInventory = strictObject({
|
|
|
6532
6602
|
url: optional(nullable(text))
|
|
6533
6603
|
});
|
|
6534
6604
|
|
|
6535
|
-
// 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
|
|
6536
6606
|
var pollVote = strictObject({
|
|
6537
6607
|
person_id: id,
|
|
6538
6608
|
name: nullable(text),
|
|
@@ -6542,7 +6612,7 @@ var pollVote = strictObject({
|
|
|
6542
6612
|
voted_at: time
|
|
6543
6613
|
});
|
|
6544
6614
|
|
|
6545
|
-
// 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
|
|
6546
6616
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
6547
6617
|
var observation = strictObject({
|
|
6548
6618
|
value: pipe(number(), minValue(0)),
|
|
@@ -6584,7 +6654,7 @@ var serveSummary = strictObject({
|
|
|
6584
6654
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
6585
6655
|
});
|
|
6586
6656
|
|
|
6587
|
-
// 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
|
|
6588
6658
|
var mailCounts = strictObject({
|
|
6589
6659
|
by: picklist(["day", "week", "sender"]),
|
|
6590
6660
|
received: count,
|
|
@@ -6599,7 +6669,7 @@ var mailCounts = strictObject({
|
|
|
6599
6669
|
}))
|
|
6600
6670
|
});
|
|
6601
6671
|
|
|
6602
|
-
// 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
|
|
6603
6673
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
6604
6674
|
var base = { id, evidence: array(evidence2) };
|
|
6605
6675
|
var finding = variant("kind", [
|
|
@@ -6743,7 +6813,7 @@ var mailFindings = strictObject({
|
|
|
6743
6813
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
6744
6814
|
});
|
|
6745
6815
|
|
|
6746
|
-
// 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
|
|
6747
6817
|
var mediaArchive = strictObject({
|
|
6748
6818
|
directory: text,
|
|
6749
6819
|
chats: count,
|
|
@@ -6775,7 +6845,7 @@ var mediaArchiveTimer = union([
|
|
|
6775
6845
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
6776
6846
|
]);
|
|
6777
6847
|
|
|
6778
|
-
// 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
|
|
6779
6849
|
var preparationId = pipe(string(), minLength(1));
|
|
6780
6850
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
6781
6851
|
var preparationTime = nullable(isoTime);
|
|
@@ -6867,7 +6937,7 @@ var preparationMeeting = strictObject({
|
|
|
6867
6937
|
updated_at: isoTime
|
|
6868
6938
|
});
|
|
6869
6939
|
|
|
6870
|
-
// 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
|
|
6871
6941
|
var meetingEvidence = preparationEvidence;
|
|
6872
6942
|
var meetingPersonContext = strictObject({
|
|
6873
6943
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -6889,7 +6959,7 @@ var meetingPersonContext = strictObject({
|
|
|
6889
6959
|
})
|
|
6890
6960
|
});
|
|
6891
6961
|
|
|
6892
|
-
// 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
|
|
6893
6963
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
6894
6964
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
6895
6965
|
var finding2 = variant("kind", [
|
|
@@ -6927,7 +6997,7 @@ var meetingFindings = strictObject({
|
|
|
6927
6997
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
6928
6998
|
});
|
|
6929
6999
|
|
|
6930
|
-
// 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
|
|
6931
7001
|
var communicationCoverage = strictObject({
|
|
6932
7002
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
6933
7003
|
query: string(),
|
|
@@ -6972,7 +7042,7 @@ var preparationCommunications = strictObject({
|
|
|
6972
7042
|
}))
|
|
6973
7043
|
});
|
|
6974
7044
|
|
|
6975
|
-
// 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
|
|
6976
7046
|
var meetingPreparation = strictObject({
|
|
6977
7047
|
communications: optional(preparationCommunications),
|
|
6978
7048
|
schema_version: literal(1),
|
|
@@ -7085,7 +7155,7 @@ var meetingPreparation = strictObject({
|
|
|
7085
7155
|
})
|
|
7086
7156
|
});
|
|
7087
7157
|
|
|
7088
|
-
// 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
|
|
7089
7159
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
7090
7160
|
var id3 = pipe(string(), minLength(1));
|
|
7091
7161
|
var text3 = string();
|
|
@@ -7149,7 +7219,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
7149
7219
|
})
|
|
7150
7220
|
});
|
|
7151
7221
|
|
|
7152
|
-
// 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
|
|
7153
7223
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
7154
7224
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
7155
7225
|
var meetingSeriesInventory = strictObject({
|
|
@@ -7179,7 +7249,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
7179
7249
|
})
|
|
7180
7250
|
});
|
|
7181
7251
|
|
|
7182
|
-
// 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
|
|
7183
7253
|
var text4 = string();
|
|
7184
7254
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
7185
7255
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -7196,7 +7266,7 @@ var meetingTaskProposal = strictObject({
|
|
|
7196
7266
|
persistence: literal("proposal-only")
|
|
7197
7267
|
});
|
|
7198
7268
|
|
|
7199
|
-
// 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
|
|
7200
7270
|
var memory = strictObject({
|
|
7201
7271
|
ref: reference,
|
|
7202
7272
|
id,
|
|
@@ -7224,7 +7294,7 @@ var memory = strictObject({
|
|
|
7224
7294
|
updated_at: time
|
|
7225
7295
|
});
|
|
7226
7296
|
|
|
7227
|
-
// 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
|
|
7228
7298
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
7229
7299
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
7230
7300
|
var mention = strictObject({
|
|
@@ -7268,13 +7338,13 @@ var mentionRebuild = strictObject({
|
|
|
7268
7338
|
mentions: count
|
|
7269
7339
|
});
|
|
7270
7340
|
|
|
7271
|
-
// 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
|
|
7272
7342
|
var operated3 = { operation_id: id, chat_id: id };
|
|
7273
7343
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
7274
7344
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
7275
7345
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
7276
7346
|
|
|
7277
|
-
// 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
|
|
7278
7348
|
var messageTranscript = strictObject({
|
|
7279
7349
|
message_id: id,
|
|
7280
7350
|
text,
|
|
@@ -7332,7 +7402,7 @@ var evidencePacket = strictObject({
|
|
|
7332
7402
|
}))
|
|
7333
7403
|
});
|
|
7334
7404
|
|
|
7335
|
-
// 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
|
|
7336
7406
|
var messageThread = strictObject({
|
|
7337
7407
|
ref: reference,
|
|
7338
7408
|
chat: id,
|
|
@@ -7349,7 +7419,7 @@ var messageThread = strictObject({
|
|
|
7349
7419
|
});
|
|
7350
7420
|
var messageContext = union([message, messageThread]);
|
|
7351
7421
|
|
|
7352
|
-
// 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
|
|
7353
7423
|
var messageCounts = strictObject({
|
|
7354
7424
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
7355
7425
|
total: count,
|
|
@@ -7362,7 +7432,7 @@ var messageCounts = strictObject({
|
|
|
7362
7432
|
}))
|
|
7363
7433
|
});
|
|
7364
7434
|
|
|
7365
|
-
// 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
|
|
7366
7436
|
var messageLink = strictObject({
|
|
7367
7437
|
ref: reference,
|
|
7368
7438
|
url: nullable(text),
|
|
@@ -7379,7 +7449,7 @@ var messageLink = strictObject({
|
|
|
7379
7449
|
})))
|
|
7380
7450
|
});
|
|
7381
7451
|
|
|
7382
|
-
// 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
|
|
7383
7453
|
var savedMessageFile = strictObject({
|
|
7384
7454
|
kind: text,
|
|
7385
7455
|
path: text,
|
|
@@ -7466,7 +7536,7 @@ var messageSyncAll = strictObject({
|
|
|
7466
7536
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
7467
7537
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
7468
7538
|
|
|
7469
|
-
// 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
|
|
7470
7540
|
var messageWrite = strictObject({
|
|
7471
7541
|
operation_id: id,
|
|
7472
7542
|
message,
|
|
@@ -7481,7 +7551,7 @@ var draftWrite = strictObject({
|
|
|
7481
7551
|
});
|
|
7482
7552
|
var messageSend = union([messageWrite, draftWrite]);
|
|
7483
7553
|
|
|
7484
|
-
// 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
|
|
7485
7555
|
var model = strictObject({
|
|
7486
7556
|
id,
|
|
7487
7557
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -7516,7 +7586,7 @@ var chosenModel = strictObject({
|
|
|
7516
7586
|
estimate_seconds: nullable(count)
|
|
7517
7587
|
});
|
|
7518
7588
|
|
|
7519
|
-
// 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
|
|
7520
7590
|
var source = picklist(["environment", "keyring", "file"]);
|
|
7521
7591
|
var modelKey = strictObject({
|
|
7522
7592
|
provider: text,
|
|
@@ -7526,7 +7596,7 @@ var modelKey = strictObject({
|
|
|
7526
7596
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
7527
7597
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
7528
7598
|
|
|
7529
|
-
// 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
|
|
7530
7600
|
var versus = strictObject({ current: number(), previous: number() });
|
|
7531
7601
|
var person = { person_ref: reference, name: nullable(text) };
|
|
7532
7602
|
var graph = strictObject({
|
|
@@ -7560,14 +7630,14 @@ var officialStats = strictObject({
|
|
|
7560
7630
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
7561
7631
|
});
|
|
7562
7632
|
|
|
7563
|
-
// 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
|
|
7564
7634
|
var person2 = strictObject({
|
|
7565
7635
|
ref: reference,
|
|
7566
7636
|
name: nullable(text),
|
|
7567
7637
|
identities: optional(array(identity))
|
|
7568
7638
|
});
|
|
7569
7639
|
|
|
7570
|
-
// 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
|
|
7571
7641
|
var poll = strictObject({
|
|
7572
7642
|
chat_id: id,
|
|
7573
7643
|
message_id: id,
|
|
@@ -7583,11 +7653,11 @@ var poll = strictObject({
|
|
|
7583
7653
|
});
|
|
7584
7654
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
7585
7655
|
|
|
7586
|
-
// 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
|
|
7587
7657
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
7588
7658
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
7589
7659
|
|
|
7590
|
-
// 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
|
|
7591
7661
|
var figures = record(string(), number());
|
|
7592
7662
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
7593
7663
|
var rankingRow = strictObject({
|
|
@@ -7634,7 +7704,7 @@ var ranking = strictObject({
|
|
|
7634
7704
|
rows: array(rankingRow)
|
|
7635
7705
|
});
|
|
7636
7706
|
|
|
7637
|
-
// 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
|
|
7638
7708
|
var reaction = strictObject({
|
|
7639
7709
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
7640
7710
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -7642,7 +7712,7 @@ var reaction = strictObject({
|
|
|
7642
7712
|
reacted_at: time
|
|
7643
7713
|
});
|
|
7644
7714
|
|
|
7645
|
-
// 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
|
|
7646
7716
|
var reactionChange = strictObject({
|
|
7647
7717
|
operation_id: id,
|
|
7648
7718
|
chat_id: id,
|
|
@@ -7650,7 +7720,7 @@ var reactionChange = strictObject({
|
|
|
7650
7720
|
reaction: nullable(text)
|
|
7651
7721
|
});
|
|
7652
7722
|
|
|
7653
|
-
// 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
|
|
7654
7724
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
7655
7725
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
7656
7726
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -7661,7 +7731,7 @@ var recipientChange = strictObject({
|
|
|
7661
7731
|
...partial(recipientOff).entries
|
|
7662
7732
|
});
|
|
7663
7733
|
|
|
7664
|
-
// 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
|
|
7665
7735
|
var events = array(record(string(), unknown()));
|
|
7666
7736
|
var recordedRun = strictObject({
|
|
7667
7737
|
run_id: id,
|
|
@@ -7733,7 +7803,7 @@ var runHit = strictObject({
|
|
|
7733
7803
|
});
|
|
7734
7804
|
var runLocation = strictObject({ path: text });
|
|
7735
7805
|
|
|
7736
|
-
// 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
|
|
7737
7807
|
var relationship = strictObject({
|
|
7738
7808
|
id,
|
|
7739
7809
|
from: reference,
|
|
@@ -7760,7 +7830,7 @@ var relationship = strictObject({
|
|
|
7760
7830
|
created_at: time
|
|
7761
7831
|
});
|
|
7762
7832
|
|
|
7763
|
-
// 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
|
|
7764
7834
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
7765
7835
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
7766
7836
|
var responseTimes = strictObject({
|
|
@@ -7777,7 +7847,7 @@ var waitingChats = strictObject({
|
|
|
7777
7847
|
by_kind: strictObject({ private: count, group: count })
|
|
7778
7848
|
});
|
|
7779
7849
|
|
|
7780
|
-
// 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
|
|
7781
7851
|
var retentionCohort = strictObject({
|
|
7782
7852
|
/** The first day of the joining day or week. */
|
|
7783
7853
|
cohort: text,
|
|
@@ -7825,7 +7895,7 @@ var retention = strictObject({
|
|
|
7825
7895
|
rows: array(retentionCohort)
|
|
7826
7896
|
});
|
|
7827
7897
|
|
|
7828
|
-
// 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
|
|
7829
7899
|
var savedSearch = strictObject({
|
|
7830
7900
|
id,
|
|
7831
7901
|
/** `null` for a run in the history. */
|
|
@@ -7842,7 +7912,7 @@ var savedSearch = strictObject({
|
|
|
7842
7912
|
});
|
|
7843
7913
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
7844
7914
|
|
|
7845
|
-
// 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
|
|
7846
7916
|
var sendAttempt = strictObject({
|
|
7847
7917
|
at: time,
|
|
7848
7918
|
profile: text,
|
|
@@ -7870,7 +7940,7 @@ var sendAttempt = strictObject({
|
|
|
7870
7940
|
error_code: optional(text)
|
|
7871
7941
|
});
|
|
7872
7942
|
|
|
7873
|
-
// 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
|
|
7874
7944
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
7875
7945
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
7876
7946
|
var infoSchema = strictObject({
|
|
@@ -8044,6 +8114,15 @@ var storeRestore = union([
|
|
|
8044
8114
|
foreign_key_violations: count
|
|
8045
8115
|
})
|
|
8046
8116
|
]);
|
|
8117
|
+
var importCounts = strictObject({ chats: count, messages: count });
|
|
8118
|
+
var storeImport = strictObject({
|
|
8119
|
+
store: text,
|
|
8120
|
+
profile: text,
|
|
8121
|
+
account: text,
|
|
8122
|
+
imported: boolean(),
|
|
8123
|
+
file: strictObject({ chats: count, people: count, messages: count }),
|
|
8124
|
+
added: optional(importCounts)
|
|
8125
|
+
});
|
|
8047
8126
|
var storeReset = union([
|
|
8048
8127
|
strictObject({ ...absent.entries, reset: literal(false) }),
|
|
8049
8128
|
strictObject({
|
|
@@ -8091,7 +8170,7 @@ var storeRepair = union([
|
|
|
8091
8170
|
]);
|
|
8092
8171
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
8093
8172
|
|
|
8094
|
-
// 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
|
|
8095
8174
|
var range = strictObject({ from: number(), to: number() });
|
|
8096
8175
|
var storeChatStatus = strictObject({
|
|
8097
8176
|
chat_id: id,
|
|
@@ -8189,7 +8268,7 @@ var storeJobRetry = union([
|
|
|
8189
8268
|
]);
|
|
8190
8269
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
8191
8270
|
|
|
8192
|
-
// 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
|
|
8193
8272
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
8194
8273
|
var storeTable = strictObject({
|
|
8195
8274
|
name: text,
|
|
@@ -8198,7 +8277,7 @@ var storeTable = strictObject({
|
|
|
8198
8277
|
bytes: optional(nullable(count))
|
|
8199
8278
|
});
|
|
8200
8279
|
|
|
8201
|
-
// 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
|
|
8202
8281
|
var tagTarget = variant("type", [
|
|
8203
8282
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
8204
8283
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -8229,7 +8308,7 @@ var automaticTags = strictObject({
|
|
|
8229
8308
|
dry_run: boolean()
|
|
8230
8309
|
});
|
|
8231
8310
|
|
|
8232
|
-
// 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
|
|
8233
8312
|
var tagging = strictObject({
|
|
8234
8313
|
tag: text,
|
|
8235
8314
|
type: picklist(TAG_TYPES),
|
|
@@ -8242,7 +8321,7 @@ var tagging = strictObject({
|
|
|
8242
8321
|
created_at: time
|
|
8243
8322
|
});
|
|
8244
8323
|
|
|
8245
|
-
// 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
|
|
8246
8325
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
8247
8326
|
var taskPair = strictObject({
|
|
8248
8327
|
task: nullable(side),
|
|
@@ -8265,7 +8344,7 @@ var taskPair = strictObject({
|
|
|
8265
8344
|
created_at: time
|
|
8266
8345
|
});
|
|
8267
8346
|
|
|
8268
|
-
// 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
|
|
8269
8348
|
var nullableTime = nullable(time);
|
|
8270
8349
|
var link = strictObject({
|
|
8271
8350
|
id,
|
|
@@ -8439,7 +8518,7 @@ var taskReview = strictObject({
|
|
|
8439
8518
|
untrusted
|
|
8440
8519
|
});
|
|
8441
8520
|
|
|
8442
|
-
// 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
|
|
8443
8522
|
var template = strictObject({
|
|
8444
8523
|
key: text,
|
|
8445
8524
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -8451,7 +8530,7 @@ var template = strictObject({
|
|
|
8451
8530
|
updated_by: nullable(text)
|
|
8452
8531
|
});
|
|
8453
8532
|
|
|
8454
|
-
// 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
|
|
8455
8534
|
var topic = strictObject({
|
|
8456
8535
|
id,
|
|
8457
8536
|
title: text,
|
|
@@ -8465,7 +8544,7 @@ var topic = strictObject({
|
|
|
8465
8544
|
untrusted
|
|
8466
8545
|
});
|
|
8467
8546
|
|
|
8468
|
-
// 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
|
|
8469
8548
|
var ENTITIES = {
|
|
8470
8549
|
sync_progress: progress,
|
|
8471
8550
|
deal,
|
|
@@ -8572,6 +8651,7 @@ var ENTITIES = {
|
|
|
8572
8651
|
topic_icon: topicIcon,
|
|
8573
8652
|
bot_webhook: botWebhook,
|
|
8574
8653
|
scheduled_job: scheduledJob,
|
|
8654
|
+
schedule_harness: scheduleHarness,
|
|
8575
8655
|
call_record: callRecord,
|
|
8576
8656
|
sticker_inventory: stickerInventory,
|
|
8577
8657
|
note,
|
|
@@ -8692,6 +8772,7 @@ var ENTITIES = {
|
|
|
8692
8772
|
store_decrypt: storeDecrypt,
|
|
8693
8773
|
store_restore: storeRestore,
|
|
8694
8774
|
store_reset: storeReset,
|
|
8775
|
+
store_import: storeImport,
|
|
8695
8776
|
store_repair: storeRepair,
|
|
8696
8777
|
store_copy_removal: storeCopyRemoval,
|
|
8697
8778
|
store_table: storeTable,
|
|
@@ -8758,7 +8839,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
8758
8839
|
return [name, definition];
|
|
8759
8840
|
})), "entityDefinitions");
|
|
8760
8841
|
|
|
8761
|
-
// 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
|
|
8762
8843
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
8763
8844
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
8764
8845
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -8792,7 +8873,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
8792
8873
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
8793
8874
|
}, "answerRow");
|
|
8794
8875
|
|
|
8795
|
-
// 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
|
|
8796
8877
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
8797
8878
|
var requests = new AsyncLocalStorage();
|
|
8798
8879
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -8807,7 +8888,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
8807
8888
|
return direct;
|
|
8808
8889
|
}, "exitCodeSet");
|
|
8809
8890
|
|
|
8810
|
-
// 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
|
|
8811
8892
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
8812
8893
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
8813
8894
|
messageId: message2.id,
|
|
@@ -8913,7 +8994,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
8913
8994
|
}, "guardedWrite");
|
|
8914
8995
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
8915
8996
|
|
|
8916
|
-
// 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
|
|
8917
8998
|
var named2 = /* @__PURE__ */ __name((work) => {
|
|
8918
8999
|
try {
|
|
8919
9000
|
return work();
|
|
@@ -8940,7 +9021,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named2(() => {
|
|
|
8940
9021
|
return projectFields(value, fields);
|
|
8941
9022
|
}), "projectFields");
|
|
8942
9023
|
|
|
8943
|
-
// 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
|
|
8944
9025
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
8945
9026
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
8946
9027
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -9123,7 +9204,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
9123
9204
|
}
|
|
9124
9205
|
}, "withAbort");
|
|
9125
9206
|
|
|
9126
|
-
// 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
|
|
9127
9208
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
9128
9209
|
import { join as join2 } from "node:path";
|
|
9129
9210
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -9212,7 +9293,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
9212
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));
|
|
9213
9294
|
}, "registryProfiles");
|
|
9214
9295
|
|
|
9215
|
-
// 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
|
|
9216
9297
|
import { existsSync as existsSync3, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
9217
9298
|
import { join as join3 } from "node:path";
|
|
9218
9299
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -9234,7 +9315,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
9234
9315
|
}, "profilesWithAccounts");
|
|
9235
9316
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
9236
9317
|
|
|
9237
|
-
// 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
|
|
9238
9319
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
9239
9320
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
9240
9321
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -9270,7 +9351,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
9270
9351
|
return value;
|
|
9271
9352
|
}, "atDetail");
|
|
9272
9353
|
|
|
9273
|
-
// 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
|
|
9274
9355
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
9275
9356
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
9276
9357
|
if (other)
|
|
@@ -9334,7 +9415,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
9334
9415
|
}, "warn")
|
|
9335
9416
|
}), "silence");
|
|
9336
9417
|
|
|
9337
|
-
// 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
|
|
9338
9419
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
9339
9420
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
9340
9421
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -9345,6 +9426,7 @@ var CORE_LOG_EVENTS = defineLogEvents([
|
|
|
9345
9426
|
keys: ["operation", "reason"]
|
|
9346
9427
|
},
|
|
9347
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"] },
|
|
9348
9430
|
{ id: "command.crashed", meaning: "a command failed on a bug; where, never what", keys: ["error_class", "frames"] },
|
|
9349
9431
|
{
|
|
9350
9432
|
id: "events.dropped",
|
|
@@ -9367,10 +9449,11 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
9367
9449
|
response: "provider.response",
|
|
9368
9450
|
warning: "client.warning",
|
|
9369
9451
|
cache: "cache.answered",
|
|
9370
|
-
store: "store.write"
|
|
9452
|
+
store: "store.write",
|
|
9453
|
+
progress: "sync.progress"
|
|
9371
9454
|
};
|
|
9372
9455
|
|
|
9373
|
-
// 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
|
|
9374
9457
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
9375
9458
|
const recording = startRecording(options);
|
|
9376
9459
|
try {
|
|
@@ -9585,7 +9668,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
9585
9668
|
return void 0;
|
|
9586
9669
|
}, "partialOutcome");
|
|
9587
9670
|
|
|
9588
|
-
// 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
|
|
9589
9672
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
9590
9673
|
if (ms2 === void 0)
|
|
9591
9674
|
return body();
|
|
@@ -9611,7 +9694,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
9611
9694
|
}
|
|
9612
9695
|
}, "withDeadline");
|
|
9613
9696
|
|
|
9614
|
-
// 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
|
|
9615
9698
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
9616
9699
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
9617
9700
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -9680,20 +9763,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
9680
9763
|
return void 0;
|
|
9681
9764
|
}, "sampleCommand");
|
|
9682
9765
|
|
|
9683
|
-
// 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
|
|
9684
9767
|
import { existsSync as existsSync6 } from "node:fs";
|
|
9685
9768
|
|
|
9686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9687
|
-
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
9688
|
-
try {
|
|
9689
|
-
const url3 = new URL(value);
|
|
9690
|
-
return ["https:", "http:"].includes(url3.protocol) && !url3.username && !url3.password && !url3.search && !url3.hash;
|
|
9691
|
-
} catch {
|
|
9692
|
-
return false;
|
|
9693
|
-
}
|
|
9694
|
-
}, "endpoint");
|
|
9695
|
-
|
|
9696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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
|
|
9697
9770
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
9698
9771
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
9699
9772
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -9762,7 +9835,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
9762
9835
|
};
|
|
9763
9836
|
}, "modelTarget");
|
|
9764
9837
|
|
|
9765
|
-
// 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
|
|
9766
9839
|
var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
9767
9840
|
var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
9768
9841
|
var AI_FIELDS = {
|
|
@@ -9806,7 +9879,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
9806
9879
|
};
|
|
9807
9880
|
}, "resolveAISettings");
|
|
9808
9881
|
|
|
9809
|
-
// 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
|
|
9810
9883
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
9811
9884
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
9812
9885
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -9820,7 +9893,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
9820
9893
|
return ms2;
|
|
9821
9894
|
}, "parseDuration");
|
|
9822
9895
|
|
|
9823
|
-
// 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
|
|
9824
9897
|
import { existsSync as existsSync4 } from "node:fs";
|
|
9825
9898
|
import { join as join4 } from "node:path";
|
|
9826
9899
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
@@ -10097,7 +10170,7 @@ var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
|
10097
10170
|
}, "vectorModelKey");
|
|
10098
10171
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
10099
10172
|
|
|
10100
|
-
// 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
|
|
10101
10174
|
var HISTORY_MAX_DAYS = 1095;
|
|
10102
10175
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
10103
10176
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -10144,10 +10217,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
10144
10217
|
return { batch: { ...batch, messages }, skipped };
|
|
10145
10218
|
}, "limitBatch");
|
|
10146
10219
|
|
|
10147
|
-
// 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
|
|
10148
10221
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
10149
10222
|
|
|
10150
|
-
// 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
|
|
10151
10224
|
var REPAIR_WORDS = {
|
|
10152
10225
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
10153
10226
|
comment: "a comment, which JSON does not allow",
|
|
@@ -10388,7 +10461,7 @@ ${parts.join(",\n")}
|
|
|
10388
10461
|
${indent}${close}`;
|
|
10389
10462
|
}, "serialise");
|
|
10390
10463
|
|
|
10391
|
-
// 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
|
|
10392
10465
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10393
10466
|
var SECTIONS = ["personal", "bot"];
|
|
10394
10467
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -10682,7 +10755,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
10682
10755
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
10683
10756
|
}, "readConfigFile");
|
|
10684
10757
|
|
|
10685
|
-
// 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
|
|
10686
10759
|
import { existsSync as existsSync5, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
10687
10760
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
10688
10761
|
var DEFAULT_CONFIG = {
|
|
@@ -10711,7 +10784,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
10711
10784
|
}
|
|
10712
10785
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
10713
10786
|
|
|
10714
|
-
// 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
|
|
10715
10788
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10716
10789
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
10717
10790
|
const path2 = key.split(".");
|
|
@@ -10733,7 +10806,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
10733
10806
|
return { config, added };
|
|
10734
10807
|
}, "withSettingDefaults");
|
|
10735
10808
|
|
|
10736
|
-
// 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
|
|
10737
10810
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
10738
10811
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
10739
10812
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -10903,11 +10976,12 @@ var fromFile = /* @__PURE__ */ __name((settings, key, fallback) => first([
|
|
|
10903
10976
|
], fallback), "fromFile");
|
|
10904
10977
|
var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
10905
10978
|
const declared = extension.permissions;
|
|
10906
|
-
const
|
|
10979
|
+
const botEntries = {
|
|
10907
10980
|
...SHARED_PROFILE_ENTRIES,
|
|
10908
10981
|
...declared ? { permissions: optional(commandPathLevels) } : {},
|
|
10909
10982
|
...extension.profile
|
|
10910
10983
|
};
|
|
10984
|
+
const profileEntries = { ...botEntries, ...extension.personal };
|
|
10911
10985
|
const defaultsOnly = { ...SHARED_DEFAULTS_ONLY, ...extension.defaults };
|
|
10912
10986
|
const defaultsEntries = { ...profileEntries, ...defaultsOnly };
|
|
10913
10987
|
const strictOf = /* @__PURE__ */ __name((entries) => strictObject(entries, objectMessage), "strictOf");
|
|
@@ -10919,7 +10993,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
10919
10993
|
defaults: optional(strictOf(defaultsEntries)),
|
|
10920
10994
|
profiles: optional(record(string(), strictOf(profileEntries), "has to be an object of profiles, by name"), {}),
|
|
10921
10995
|
personal: optional(kindSection(profileEntries)),
|
|
10922
|
-
bot: optional(kindSection({ ...
|
|
10996
|
+
bot: optional(kindSection({ ...botEntries, ...BOT_ONLY_ENTRIES }))
|
|
10923
10997
|
};
|
|
10924
10998
|
const schema2 = strictOf(configEntries);
|
|
10925
10999
|
const defaultsOnlyKeys = Object.keys(defaultsOnly);
|
|
@@ -11258,7 +11332,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
11258
11332
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
11259
11333
|
}, "given");
|
|
11260
11334
|
|
|
11261
|
-
// 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
|
|
11262
11336
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
11263
11337
|
const slot = environmentOf(command).exit;
|
|
11264
11338
|
const request = commandServerRequest();
|
|
@@ -11317,6 +11391,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
11317
11391
|
});
|
|
11318
11392
|
const closeables = [];
|
|
11319
11393
|
const ranFor = namedProfile(settings);
|
|
11394
|
+
let namedTheAnswer = false;
|
|
11320
11395
|
return {
|
|
11321
11396
|
settings,
|
|
11322
11397
|
renderer,
|
|
@@ -11332,6 +11407,9 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
11332
11407
|
return withAbort(environment.commandSignal, () => withDeadline(unbounded ? void 0 : settings.commandTimeoutMs, closeables, () => body(() => {
|
|
11333
11408
|
})));
|
|
11334
11409
|
const runName = name ?? `${environment.agent ? "mcp " : ""}${commandPath(command)}`;
|
|
11410
|
+
const answersFor = !environment.agent && name === void 0 && !namedTheAnswer;
|
|
11411
|
+
if (answersFor)
|
|
11412
|
+
namedTheAnswer = true;
|
|
11335
11413
|
return recorded({
|
|
11336
11414
|
app: environment.app,
|
|
11337
11415
|
command: runName,
|
|
@@ -11358,7 +11436,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
11358
11436
|
...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
|
|
11359
11437
|
...settings.keepStoreRunsForDays === void 0 ? {} : { keepStoreDays: settings.keepStoreRunsForDays },
|
|
11360
11438
|
...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
|
|
11361
|
-
processRun:
|
|
11439
|
+
processRun: answersFor,
|
|
11362
11440
|
format,
|
|
11363
11441
|
streams,
|
|
11364
11442
|
env
|
|
@@ -11384,7 +11462,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
11384
11462
|
return words2.join(" ");
|
|
11385
11463
|
}, "commandPath");
|
|
11386
11464
|
|
|
11387
|
-
// 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
|
|
11388
11466
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
11389
11467
|
var FETCH = { remote: "read", local: "write" };
|
|
11390
11468
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -11455,6 +11533,7 @@ var writesFileOnlyWith = /* @__PURE__ */ __name((command, option) => {
|
|
|
11455
11533
|
return command;
|
|
11456
11534
|
}, "writesFileOnlyWith");
|
|
11457
11535
|
var writesNewFileOnlyWith = /* @__PURE__ */ __name((command, option) => destroysNothing(writesFileOnlyWith(command, option)), "writesNewFileOnlyWith");
|
|
11536
|
+
var fileOptionOf = /* @__PURE__ */ __name((command) => FILE_OPTION.get(command), "fileOptionOf");
|
|
11458
11537
|
var writesFileNow = /* @__PURE__ */ __name((command) => {
|
|
11459
11538
|
const option = FILE_OPTION.get(command);
|
|
11460
11539
|
return option === void 0 || command.opts()[option] !== void 0;
|
|
@@ -11516,7 +11595,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
11516
11595
|
throw readOnlyRefusal(lock, what);
|
|
11517
11596
|
}, "refuseUnderReadOnly");
|
|
11518
11597
|
|
|
11519
|
-
// 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
|
|
11520
11599
|
import { join as join6 } from "node:path";
|
|
11521
11600
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11522
11601
|
var IMAGE_MODELS = [
|
|
@@ -11570,7 +11649,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11570
11649
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11571
11650
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11572
11651
|
|
|
11573
|
-
// 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
|
|
11574
11653
|
var STEPS2 = defineSteps([
|
|
11575
11654
|
...STEPS,
|
|
11576
11655
|
{
|
|
@@ -11851,7 +11930,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11851
11930
|
].join(" ");
|
|
11852
11931
|
}, "stepLine");
|
|
11853
11932
|
|
|
11854
|
-
// 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
|
|
11855
11934
|
var where = [{ field: "ref" }];
|
|
11856
11935
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11857
11936
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11943,7 +12022,7 @@ var STATUS_ROWS = {
|
|
|
11943
12022
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11944
12023
|
};
|
|
11945
12024
|
|
|
11946
|
-
// 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
|
|
11947
12026
|
var TEXT_CHARS = 400;
|
|
11948
12027
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11949
12028
|
var messageRow = {
|
|
@@ -12309,7 +12388,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12309
12388
|
return lines.concat(footerOf(body)).join("\n");
|
|
12310
12389
|
}, "compactText");
|
|
12311
12390
|
|
|
12312
|
-
// 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
|
|
12313
12392
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12314
12393
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12315
12394
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12367,7 +12446,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12367
12446
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12368
12447
|
}, "largeAnswerSteps");
|
|
12369
12448
|
|
|
12370
|
-
// 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
|
|
12371
12450
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12372
12451
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12373
12452
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12381,7 +12460,91 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12381
12460
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12382
12461
|
}, "strip");
|
|
12383
12462
|
|
|
12384
|
-
// 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
|
|
12385
12548
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12386
12549
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12387
12550
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12493,7 +12656,11 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
12493
12656
|
const root = rootOf2(command);
|
|
12494
12657
|
const runnableSteps = runnable(root, body.next);
|
|
12495
12658
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
12496
|
-
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 } : {} });
|
|
12497
12664
|
if (next.length === 0)
|
|
12498
12665
|
delete kept.next;
|
|
12499
12666
|
const sealedBody = sealed(kept);
|
|
@@ -12545,6 +12712,7 @@ export {
|
|
|
12545
12712
|
Help,
|
|
12546
12713
|
Option,
|
|
12547
12714
|
Command,
|
|
12715
|
+
hasSharedContract,
|
|
12548
12716
|
assertSharedContracts,
|
|
12549
12717
|
overrideSharedContract,
|
|
12550
12718
|
sharedContractOverrides,
|
|
@@ -12611,6 +12779,7 @@ export {
|
|
|
12611
12779
|
topicIcon,
|
|
12612
12780
|
botWebhook,
|
|
12613
12781
|
scheduledJob,
|
|
12782
|
+
scheduleHarness,
|
|
12614
12783
|
callRecord,
|
|
12615
12784
|
stickerInventory,
|
|
12616
12785
|
pollVote,
|
|
@@ -12665,7 +12834,6 @@ export {
|
|
|
12665
12834
|
refuseCommandName,
|
|
12666
12835
|
rootOf,
|
|
12667
12836
|
sampleCommand,
|
|
12668
|
-
endpoint,
|
|
12669
12837
|
modelTarget,
|
|
12670
12838
|
parseDuration,
|
|
12671
12839
|
DEFAULT_TEXT_MODEL,
|
|
@@ -12732,6 +12900,7 @@ export {
|
|
|
12732
12900
|
admittedUnderLock,
|
|
12733
12901
|
changesStore,
|
|
12734
12902
|
writesNewFileOnlyWith,
|
|
12903
|
+
fileOptionOf,
|
|
12735
12904
|
readsOverMcpAt,
|
|
12736
12905
|
isStoreChange,
|
|
12737
12906
|
previewFlag,
|
|
@@ -12754,6 +12923,7 @@ export {
|
|
|
12754
12923
|
stepLine,
|
|
12755
12924
|
tooLargeSteps,
|
|
12756
12925
|
withoutProviderRefs,
|
|
12926
|
+
marksUntrusted,
|
|
12757
12927
|
answerSchema,
|
|
12758
12928
|
listOf,
|
|
12759
12929
|
itemOf,
|