@wirecat/mail-cli 0.34.0 → 0.36.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/CHANGELOG.md +43 -0
- package/README.md +4 -1
- package/contracts/wirecat.json +52 -2
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-MW7YWUIY.js +39 -0
- package/dist/bundle/{all-profiles-2KUKROHY.js → all-profiles-RS6OV3YO.js} +63 -21
- package/dist/bundle/{anthropic-E5KRCEVC.js → anthropic-PPQ7DTXN.js} +5 -5
- package/dist/bundle/{app-server-HIQ3QO5K.js → app-server-EBFBMFQC.js} +81 -71
- package/dist/bundle/{bun-KARJPE5D.js → bun-J7HAT7MW.js} +2 -2
- package/dist/bundle/{bun-sqlite-NHGX6ZUN.js → bun-sqlite-PCSNAXIQ.js} +6 -6
- package/dist/bundle/{chunk-WYGDALB3.js → chunk-2RV4V55B.js} +18 -18
- package/dist/bundle/{chunk-QXYNDMA6.js → chunk-2UNZ3L2H.js} +6 -6
- package/dist/bundle/{chunk-DYQGEZA2.js → chunk-2VEFNFYZ.js} +3 -3
- package/dist/bundle/chunk-3BYKGMRM.js +338 -0
- package/dist/bundle/{chunk-PRDKEVUL.js → chunk-3NOXZZJV.js} +1 -1
- package/dist/bundle/{chunk-4VM3UCSO.js → chunk-3ZKNXKM7.js} +2 -2
- package/dist/bundle/{chunk-JVGVLRBA.js → chunk-42XY6D5C.js} +5 -5
- package/dist/bundle/{chunk-A2Y2RFNW.js → chunk-437UHSIO.js} +123 -6
- package/dist/bundle/{chunk-FNYWC6A3.js → chunk-4WSTWZUB.js} +3 -3
- package/dist/bundle/{chunk-V43KEZYA.js → chunk-5G4MDFZ2.js} +9 -60
- package/dist/bundle/{chunk-ZZEWQR43.js → chunk-5JEKBYIH.js} +14 -14
- package/dist/bundle/{chunk-CKVWAUBW.js → chunk-5TIWO6AR.js} +12 -12
- package/dist/bundle/{chunk-X6IGETU6.js → chunk-5VPLQS4S.js} +2 -2
- package/dist/bundle/chunk-645FQC4G.js +559 -0
- package/dist/bundle/{chunk-PA4GEJXQ.js → chunk-6FZPFNEU.js} +9 -9
- package/dist/bundle/{chunk-XWU3A7H6.js → chunk-6LJIENVT.js} +2 -2
- package/dist/bundle/{chunk-2GDLJKPT.js → chunk-6NDPOY4N.js} +1 -1
- package/dist/bundle/{chunk-QXLYLVEC.js → chunk-6PKMUKUF.js} +1 -1
- package/dist/bundle/{chunk-TZJC4AOK.js → chunk-6TT62IUW.js} +53 -33
- package/dist/bundle/chunk-6UYIWQLU.js +52 -0
- package/dist/bundle/{chunk-MGXYIVVJ.js → chunk-6VMJLOYO.js} +12 -12
- package/dist/bundle/{chunk-ZGZADWD7.js → chunk-774VG5WZ.js} +1 -1
- package/dist/bundle/chunk-AVR4FPYG.js +192 -0
- package/dist/bundle/{chunk-KF6O4RZO.js → chunk-BBQERXQX.js} +3 -3
- package/dist/bundle/{chunk-LOSYDRJU.js → chunk-C3JSQ7UJ.js} +53 -11
- package/dist/bundle/{chunk-OJ3BI2U4.js → chunk-CJHO6B3M.js} +34 -28
- package/dist/bundle/{chunk-VRGEDK4T.js → chunk-CJMZQ2MZ.js} +35 -12
- package/dist/bundle/{chunk-4SKE5GYA.js → chunk-CMOO4INK.js} +1 -1
- package/dist/bundle/{chunk-DZRP4UCK.js → chunk-DVJPEZGV.js} +30 -15
- package/dist/bundle/{chunk-H77ALM2Y.js → chunk-EGR3YUWD.js} +4 -4
- package/dist/bundle/{chunk-4VHK5UBM.js → chunk-GBZIWCEP.js} +3 -3
- package/dist/bundle/{chunk-2SCQ7Z4I.js → chunk-GCTHVCJU.js} +4 -4
- package/dist/bundle/{chunk-4URI6EAV.js → chunk-GEU3WR75.js} +3 -3
- package/dist/bundle/{chunk-OX5MCGXL.js → chunk-GI6DNX7Q.js} +63 -54
- package/dist/bundle/{chunk-KLI5FKZ2.js → chunk-HH34WRQE.js} +7 -7
- package/dist/bundle/chunk-HPSESLOZ.js +7 -0
- package/dist/bundle/{chunk-6LFRZDPV.js → chunk-IBOWSQ7X.js} +3 -4
- package/dist/bundle/{chunk-XIF75Z7D.js → chunk-JCILSTFK.js} +1 -1
- package/dist/bundle/{chunk-OOYRMTX5.js → chunk-KLPFPNZP.js} +12 -26
- package/dist/bundle/{chunk-6G4VQFVX.js → chunk-KP7JHJVP.js} +17 -17
- package/dist/bundle/chunk-KTVQIKU5.js +726 -0
- package/dist/bundle/{chunk-2VBEBPGX.js → chunk-KVFBSOCV.js} +9 -9
- package/dist/bundle/{chunk-KGYK3OI3.js → chunk-L4QLZDBZ.js} +43 -64
- package/dist/bundle/{chunk-R2GS3GBJ.js → chunk-LQQIYBHN.js} +100 -66
- package/dist/bundle/{chunk-I3MS74OF.js → chunk-MQ6DQRRI.js} +4 -4
- package/dist/bundle/{chunk-FORAOCZ3.js → chunk-MRWV5VNQ.js} +6 -6
- package/dist/bundle/{chunk-NJVJH5MH.js → chunk-MT3LYU4T.js} +3245 -1644
- package/dist/bundle/{chunk-5GANGHQI.js → chunk-NCY55XIT.js} +9 -9
- package/dist/bundle/{chunk-QFJC6POK.js → chunk-NJZR3OFK.js} +1 -1
- package/dist/bundle/chunk-NSH2UHJR.js +353 -0
- package/dist/bundle/chunk-NTUP5RCP.js +116 -0
- package/dist/bundle/chunk-NYR7PIAG.js +80 -0
- package/dist/bundle/{chunk-PC3N3LH3.js → chunk-NYYMMIVW.js} +3 -3
- package/dist/bundle/{chunk-NXERDBEK.js → chunk-OEL4DQTT.js} +4 -4
- package/dist/bundle/{chunk-RPNQXWRS.js → chunk-PF7ZNIVP.js} +2 -2
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-QQGPV3QN.js → chunk-PMGAU6AP.js} +2 -2
- package/dist/bundle/{chunk-PVZMN3UZ.js → chunk-PMSZBUC7.js} +8 -8
- package/dist/bundle/{chunk-HH647UBC.js → chunk-PPIMXOBT.js} +104 -255
- package/dist/bundle/{chunk-YWX5X5RI.js → chunk-Q6TPXXOS.js} +19 -17
- package/dist/bundle/{chunk-Z6A6QPPW.js → chunk-QDNYJOWJ.js} +1 -1
- package/dist/bundle/{chunk-OG5QO5RR.js → chunk-QI2XGTFH.js} +8 -8
- package/dist/bundle/{chunk-T2EE5M7O.js → chunk-REWV37HQ.js} +144 -10
- package/dist/bundle/{chunk-LKTDW5LH.js → chunk-RJUVWJTA.js} +18 -8
- package/dist/bundle/{chunk-MDISZMK4.js → chunk-RMWS7IQ4.js} +4 -4
- package/dist/bundle/{chunk-VBVR6JRC.js → chunk-ROK7Z5LQ.js} +275 -174
- package/dist/bundle/{chunk-HRDCH2VB.js → chunk-SCJVKWMV.js} +3665 -3339
- package/dist/bundle/{chunk-NAENYLIO.js → chunk-SJNFPBPF.js} +2 -2
- package/dist/bundle/{chunk-6GGMFL7J.js → chunk-TV634B6T.js} +2 -100
- package/dist/bundle/{chunk-26DYRMXE.js → chunk-U3BO342P.js} +1 -1
- package/dist/bundle/{chunk-KNVTBDTE.js → chunk-U67XMAEE.js} +3 -3
- package/dist/bundle/chunk-V5I7QP4T.js +108 -0
- package/dist/bundle/{chunk-NI4GCP2T.js → chunk-VIDPFLFM.js} +2 -2
- package/dist/bundle/{chunk-AGZ7SNFF.js → chunk-VIJV474N.js} +1 -1
- package/dist/bundle/{chunk-QOQF2TX3.js → chunk-WNQECDIP.js} +338 -299
- package/dist/bundle/{chunk-SK3N4CK5.js → chunk-WPPPO427.js} +4 -4
- package/dist/bundle/{chunk-EZAX77SM.js → chunk-WZFGZBGD.js} +86 -75
- package/dist/bundle/{chunk-EGQJDEFY.js → chunk-XRVZMM5B.js} +158 -562
- package/dist/bundle/{chunk-NWD7AFOR.js → chunk-YPB5BEAD.js} +2 -2
- package/dist/bundle/{chunk-NHD5BOJU.js → chunk-ZRSLG3B3.js} +6 -6
- package/dist/bundle/{chunk-IMQ4CVZJ.js → chunk-ZV57PIPE.js} +2 -2
- package/dist/bundle/command-contract-WFTIRPL5.js +39 -0
- package/dist/bundle/{command-server-entry-NF45UPEV.js → command-server-entry-73RJELAV.js} +28 -28
- package/dist/bundle/{decode-DUZA3EHC.js → decode-7BUWBDPT.js} +5 -5
- package/dist/bundle/{dispatch-CDJZAMVP.js → dispatch-IBOMVWZA.js} +8 -8
- package/dist/bundle/{dist-RH7EMC4J.js → dist-MULVCVSR.js} +25 -23
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-GZHZBNRA.js → echarts-VLWFC322.js} +2 -2
- package/dist/bundle/{embed-VE3CSJN4.js → embed-W3VH4HPY.js} +6 -6
- package/dist/bundle/{embedder-DSJ77DX5.js → embedder-I7ERQZJV.js} +9 -9
- package/dist/bundle/{failure-YH6HAGFT.js → failure-QMAPSQ7X.js} +2 -2
- package/dist/bundle/{first-run-3L7HLYTI.js → first-run-LCVER6QN.js} +12 -12
- package/dist/bundle/first-screen-DCTHI4NQ.js +39 -0
- package/dist/bundle/{instructions-OZK3BLIO.js → instructions-BNCVLSYQ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-YUG4YR4R.js → mcp-Z2KZNCXB.js} +2 -2
- package/dist/bundle/meeting-combined-ITU7SZ7E.js +24 -0
- package/dist/bundle/{meeting-model-U7LW5WEN.js → meeting-model-BWLSTNXA.js} +11 -11
- package/dist/bundle/{meeting-semantic-64IOIQRR.js → meeting-semantic-ZIEHXN2R.js} +6 -6
- package/dist/bundle/{node-OS3VWBUZ.js → node-RYFTRSG4.js} +2 -2
- package/dist/bundle/{node-sqlite-RQ623VFA.js → node-sqlite-XCHVNTGQ.js} +7 -7
- package/dist/bundle/{oauth-CBPAG734.js → oauth-FNUJSKKJ.js} +8 -8
- package/dist/bundle/{open-H4DGOMBC.js → open-WVWSJ3WI.js} +5 -5
- package/dist/bundle/{openai-EMWRGR54.js → openai-QOUTYYTF.js} +15 -15
- package/dist/bundle/{process-3TOIYASI.js → process-W5KPID53.js} +1 -1
- package/dist/bundle/{program-WA6RGAJL.js → program-L5UANM3I.js} +3397 -2219
- package/dist/bundle/{prompt-22KNCMBI.js → prompt-JSBAPNJE.js} +5 -5
- package/dist/bundle/{recognize-UWD4RSCZ.js → recognize-FDX4SJ6Q.js} +4 -4
- package/dist/bundle/{remote-LJY7MF2E.js → remote-MYOXOQHM.js} +9 -9
- package/dist/bundle/{rerank-JJ6KNJFB.js → rerank-NY5MSZCR.js} +7 -7
- package/dist/bundle/{serve-3EPLJYVZ.js → serve-URI6NZA3.js} +10 -10
- package/dist/bundle/{server-5JOFO4V4.js → server-HQ25RHQM.js} +75 -64
- package/dist/bundle/server-UVYFU2JN.js +84 -0
- package/dist/bundle/{sqlite-runtime-MGJA5E27.js → sqlite-runtime-6UUPSSKG.js} +6 -6
- package/dist/bundle/{state-UCRDOWOP.js → state-NDDVFPCI.js} +6 -6
- package/dist/bundle/{store-265VRRQV.js → store-2RDOICVN.js} +28 -23
- package/dist/bundle/{store-HS272YSA.js → store-PKYWPKKR.js} +34 -21
- package/dist/bundle/store-maintenance-command-Y5XTO47X.js +71 -0
- package/dist/bundle/surface-3XKM3MQ2.js +70 -0
- package/dist/commands/read.d.ts +2 -2
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +5 -4
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/sync.d.ts +2 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +16 -9
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -1
- package/dist/config.js.map +1 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +2 -1
- package/dist/oauth.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-FEBUZHU3.js +0 -2
- package/dist/bundle/command-contract-PZ7VOOXP.js +0 -39
- package/dist/bundle/first-screen-MY5KID77.js +0 -37
- package/dist/bundle/meeting-combined-RYMUPY54.js +0 -24
- package/dist/bundle/server-EOQNS7B7.js +0 -75
- package/dist/bundle/store-maintenance-command-IKZM5NRP.js +0 -66
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RJUVWJTA.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -23,20 +23,20 @@ import {
|
|
|
23
23
|
providerErrorKey,
|
|
24
24
|
renderEvent,
|
|
25
25
|
runContextOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PMSZBUC7.js";
|
|
27
27
|
import {
|
|
28
28
|
permissionCeiling
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BBQERXQX.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_RERANK_MODEL,
|
|
32
32
|
RERANK_MODELS
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MRWV5VNQ.js";
|
|
34
34
|
import {
|
|
35
35
|
carries
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3NOXZZJV.js";
|
|
37
37
|
import {
|
|
38
38
|
note
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GEU3WR75.js";
|
|
40
40
|
import {
|
|
41
41
|
CATEGORIES,
|
|
42
42
|
FACT_STATUSES,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
typedCommand,
|
|
82
82
|
untrusted,
|
|
83
83
|
useAsProcessRun
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-6TT62IUW.js";
|
|
85
85
|
import {
|
|
86
86
|
BUSINESS_KINDS,
|
|
87
87
|
CRM_ACTIVITY_KINDS,
|
|
@@ -96,14 +96,14 @@ import {
|
|
|
96
96
|
ORDER_STATUSES,
|
|
97
97
|
RELATION_KINDS,
|
|
98
98
|
STANDINGS
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-5TIWO6AR.js";
|
|
100
100
|
import {
|
|
101
101
|
isCliFailure,
|
|
102
102
|
storeDamaged
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-3ZKNXKM7.js";
|
|
104
104
|
import {
|
|
105
105
|
TAG_TYPES
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-6LJIENVT.js";
|
|
107
107
|
import {
|
|
108
108
|
FACT_TYPES,
|
|
109
109
|
FIELD_TYPES,
|
|
@@ -131,21 +131,21 @@ import {
|
|
|
131
131
|
parseLucene,
|
|
132
132
|
readsZone,
|
|
133
133
|
timezoneOf
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-WNQECDIP.js";
|
|
135
135
|
import {
|
|
136
136
|
endpoint
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-REWV37HQ.js";
|
|
138
138
|
import {
|
|
139
139
|
repairConfigText,
|
|
140
140
|
sharedConfigPath
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-HH34WRQE.js";
|
|
142
142
|
import {
|
|
143
143
|
filesPresent,
|
|
144
144
|
sharedModelsDirectory
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-GCTHVCJU.js";
|
|
146
146
|
import {
|
|
147
147
|
storePath
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-VIDPFLFM.js";
|
|
149
149
|
import {
|
|
150
150
|
configFilePath,
|
|
151
151
|
createRecordLog,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
resolvePaths,
|
|
155
155
|
saveConfigFile,
|
|
156
156
|
writeSecurely
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-WZFGZBGD.js";
|
|
158
158
|
import {
|
|
159
159
|
COMPACT_FLAG,
|
|
160
160
|
MAX_NEXT_STEPS,
|
|
@@ -206,17 +206,17 @@ import {
|
|
|
206
206
|
unwrap,
|
|
207
207
|
variant,
|
|
208
208
|
writes
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-C3JSQ7UJ.js";
|
|
210
210
|
import {
|
|
211
211
|
CliError,
|
|
212
212
|
isCliError,
|
|
213
213
|
visibleControls
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-PMGAU6AP.js";
|
|
215
215
|
import {
|
|
216
216
|
__name
|
|
217
217
|
} from "./chunk-ZVVMGPBJ.js";
|
|
218
218
|
|
|
219
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
220
220
|
import { readFileSync } from "node:fs";
|
|
221
221
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
222
222
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -270,7 +270,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
|
|
|
270
270
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
271
271
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
272
272
|
|
|
273
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
273
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_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
|
|
274
274
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
275
275
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
276
276
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3771,7 +3771,7 @@ __name(useColor, "useColor");
|
|
|
3771
3771
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3772
3772
|
var program = new Command();
|
|
3773
3773
|
|
|
3774
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3774
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_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
|
|
3775
3775
|
var argumentInfoSchema = object({
|
|
3776
3776
|
name: string(),
|
|
3777
3777
|
required: boolean(),
|
|
@@ -3845,7 +3845,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3845
3845
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3846
3846
|
});
|
|
3847
3847
|
|
|
3848
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3848
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_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
|
|
3849
3849
|
import { isDeepStrictEqual } from "node:util";
|
|
3850
3850
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3851
3851
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3955,7 +3955,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
3955
3955
|
return result;
|
|
3956
3956
|
}, "sharedCommand");
|
|
3957
3957
|
|
|
3958
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3958
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_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
|
|
3959
3959
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3960
3960
|
let command = root;
|
|
3961
3961
|
const path2 = [];
|
|
@@ -3973,7 +3973,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3973
3973
|
}
|
|
3974
3974
|
}, "refuseJoinedPath");
|
|
3975
3975
|
|
|
3976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
3977
3977
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3978
3978
|
var requests = new AsyncLocalStorage();
|
|
3979
3979
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -3988,7 +3988,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
3988
3988
|
return direct;
|
|
3989
3989
|
}, "exitCodeSet");
|
|
3990
3990
|
|
|
3991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3992
3992
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
3993
3993
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3994
3994
|
messageId: message2.id,
|
|
@@ -4094,7 +4094,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4094
4094
|
}, "guardedWrite");
|
|
4095
4095
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4096
4096
|
|
|
4097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4098
4098
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4099
4099
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4100
4100
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4277,7 +4277,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4277
4277
|
}
|
|
4278
4278
|
}, "withAbort");
|
|
4279
4279
|
|
|
4280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4281
4281
|
import { existsSync, readdirSync, readFileSync as readFileSync2 } from "node:fs";
|
|
4282
4282
|
import { join } from "node:path";
|
|
4283
4283
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4299,10 +4299,12 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4299
4299
|
}, "profilesWithAccounts");
|
|
4300
4300
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4301
4301
|
|
|
4302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4303
4303
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4304
4304
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4305
4305
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
4306
|
+
var ANSWER_RESERVE_MS = 500;
|
|
4307
|
+
var oneMoreFits = /* @__PURE__ */ __name((deadline, at2, requestMs = DEFAULT_REQUEST_MS) => deadline !== void 0 && at2 + requestMs + ANSWER_RESERVE_MS < deadline.endsAt, "oneMoreFits");
|
|
4306
4308
|
var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
|
|
4307
4309
|
var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
|
|
4308
4310
|
var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, requestMs, signal, now = Date.now } = {}) => {
|
|
@@ -4310,6 +4312,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
4310
4312
|
const limit = fits === null ? requests2 ?? null : Math.min(fits, requests2 ?? fits);
|
|
4311
4313
|
const margin = deadline ? deadlineMargin(deadline) : 0;
|
|
4312
4314
|
let used = 0;
|
|
4315
|
+
let granted = false;
|
|
4313
4316
|
let stopped2 = null;
|
|
4314
4317
|
let last;
|
|
4315
4318
|
let slowest = 0;
|
|
@@ -4332,6 +4335,17 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
4332
4335
|
last = at2;
|
|
4333
4336
|
return null;
|
|
4334
4337
|
},
|
|
4338
|
+
first() {
|
|
4339
|
+
if (granted || used > 0 || stopped2 !== "deadline")
|
|
4340
|
+
return false;
|
|
4341
|
+
const at2 = now();
|
|
4342
|
+
if (!oneMoreFits(deadline, at2, Math.max(requestMs ?? DEFAULT_REQUEST_MS, slowest)))
|
|
4343
|
+
return false;
|
|
4344
|
+
granted = true;
|
|
4345
|
+
used += 1;
|
|
4346
|
+
last = at2;
|
|
4347
|
+
return true;
|
|
4348
|
+
},
|
|
4335
4349
|
get used() {
|
|
4336
4350
|
return used;
|
|
4337
4351
|
},
|
|
@@ -4342,7 +4356,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
4342
4356
|
};
|
|
4343
4357
|
}, "runBudget");
|
|
4344
4358
|
|
|
4345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4346
4360
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4347
4361
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4348
4362
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4380,7 +4394,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4380
4394
|
progress: "sync.progress"
|
|
4381
4395
|
};
|
|
4382
4396
|
|
|
4383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4384
4398
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4385
4399
|
const recording = startRecording(options);
|
|
4386
4400
|
try {
|
|
@@ -4595,7 +4609,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4595
4609
|
return void 0;
|
|
4596
4610
|
}, "partialOutcome");
|
|
4597
4611
|
|
|
4598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4599
4613
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
4600
4614
|
if (ms2 === void 0)
|
|
4601
4615
|
return body();
|
|
@@ -4621,7 +4635,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
4621
4635
|
}
|
|
4622
4636
|
}, "withDeadline");
|
|
4623
4637
|
|
|
4624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4625
4639
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4626
4640
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4627
4641
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4690,10 +4704,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4690
4704
|
return void 0;
|
|
4691
4705
|
}, "sampleCommand");
|
|
4692
4706
|
|
|
4693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
4694
4708
|
import { existsSync as existsSync4 } from "node:fs";
|
|
4695
4709
|
|
|
4696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4697
4711
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4698
4712
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4699
4713
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -4762,7 +4776,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
4762
4776
|
};
|
|
4763
4777
|
}, "modelTarget");
|
|
4764
4778
|
|
|
4765
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
4766
4780
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
4767
4781
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
4768
4782
|
var AI_FIELDS = {
|
|
@@ -4806,7 +4820,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
4806
4820
|
};
|
|
4807
4821
|
}, "resolveAISettings");
|
|
4808
4822
|
|
|
4809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
4810
4824
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
4811
4825
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
4812
4826
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -4820,7 +4834,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
4820
4834
|
return ms2;
|
|
4821
4835
|
}, "parseDuration");
|
|
4822
4836
|
|
|
4823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
4824
4838
|
var HISTORY_MAX_DAYS = 1095;
|
|
4825
4839
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
4826
4840
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -4867,7 +4881,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
4867
4881
|
return { batch: { ...batch, messages }, skipped };
|
|
4868
4882
|
}, "limitBatch");
|
|
4869
4883
|
|
|
4870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
4871
4885
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
4872
4886
|
import { join as join2 } from "node:path";
|
|
4873
4887
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -4956,7 +4970,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
4956
4970
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
4957
4971
|
}, "registryProfiles");
|
|
4958
4972
|
|
|
4959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
4960
4974
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
4961
4975
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
4962
4976
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -5251,7 +5265,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5251
5265
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5252
5266
|
}, "readConfigFile");
|
|
5253
5267
|
|
|
5254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5255
5269
|
import { existsSync as existsSync3, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
5256
5270
|
import { dirname, join as join3 } from "node:path";
|
|
5257
5271
|
var DEFAULT_CONFIG = {
|
|
@@ -5280,7 +5294,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5280
5294
|
}
|
|
5281
5295
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5282
5296
|
|
|
5283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
5284
5298
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5285
5299
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
5286
5300
|
const path2 = key.split(".");
|
|
@@ -5302,7 +5316,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
5302
5316
|
return { config, added };
|
|
5303
5317
|
}, "withSettingDefaults");
|
|
5304
5318
|
|
|
5305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5306
5320
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5307
5321
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5308
5322
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5830,7 +5844,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5830
5844
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5831
5845
|
}, "given");
|
|
5832
5846
|
|
|
5833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5834
5848
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
|
|
5835
5849
|
const { deadline, signal, app } = environmentOf(command);
|
|
5836
5850
|
const now = deadline?.();
|
|
@@ -5856,9 +5870,17 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
|
|
|
5856
5870
|
environments.set(program2, environment);
|
|
5857
5871
|
}, "provide");
|
|
5858
5872
|
var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
|
|
5873
|
+
var PAGING = ["page", "limit", "all"];
|
|
5874
|
+
var withoutOwnPaging = /* @__PURE__ */ __name((command, flags) => {
|
|
5875
|
+
if (metaOf(command).origin !== "generated")
|
|
5876
|
+
return flags;
|
|
5877
|
+
const own = PAGING.filter((name) => command.options.some((option) => option.attributeName() === name));
|
|
5878
|
+
return own.length > 0 ? Object.fromEntries(Object.entries(flags).filter(([name]) => !own.includes(name))) : flags;
|
|
5879
|
+
}, "withoutOwnPaging");
|
|
5859
5880
|
var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
|
|
5860
5881
|
const overrides = environmentOf(command).agent?.overrides ?? [];
|
|
5861
|
-
|
|
5882
|
+
const read = withoutOwnPaging(command, flags);
|
|
5883
|
+
return overrides.length > 0 ? { ...read, permission: [...overrides, ...read.permission ?? []] } : read;
|
|
5862
5884
|
}, "withAgentLevels");
|
|
5863
5885
|
var secretInputOf = /* @__PURE__ */ __name((command) => {
|
|
5864
5886
|
const { stdin, stderr } = environmentOf(command);
|
|
@@ -5976,7 +5998,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
5976
5998
|
return words.join(" ");
|
|
5977
5999
|
}, "commandPath");
|
|
5978
6000
|
|
|
5979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
5980
6002
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
5981
6003
|
var FETCH = { remote: "read", local: "write" };
|
|
5982
6004
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6012,7 +6034,12 @@ var destroysNothing = /* @__PURE__ */ __name((command) => {
|
|
|
6012
6034
|
KEPT_UNDER_LOCK.add(command);
|
|
6013
6035
|
return command;
|
|
6014
6036
|
}, "destroysNothing");
|
|
6015
|
-
var PROPOSE_COMMANDS = [
|
|
6037
|
+
var PROPOSE_COMMANDS = [
|
|
6038
|
+
"messages acknowledge",
|
|
6039
|
+
"mail findings add",
|
|
6040
|
+
"projects actions add",
|
|
6041
|
+
"meetings actions add"
|
|
6042
|
+
];
|
|
6016
6043
|
var PROPOSES = /* @__PURE__ */ new WeakSet();
|
|
6017
6044
|
var proposesOnly = /* @__PURE__ */ __name((command) => {
|
|
6018
6045
|
PROPOSES.add(command);
|
|
@@ -6116,7 +6143,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6116
6143
|
throw readOnlyRefusal(lock, what);
|
|
6117
6144
|
}, "refuseUnderReadOnly");
|
|
6118
6145
|
|
|
6119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6120
6147
|
var account = strictObject({
|
|
6121
6148
|
provider: text,
|
|
6122
6149
|
id,
|
|
@@ -6126,7 +6153,7 @@ var account = strictObject({
|
|
|
6126
6153
|
scope: optional(picklist(["personal", "work"]))
|
|
6127
6154
|
});
|
|
6128
6155
|
|
|
6129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6130
6157
|
var accountSession = strictObject({
|
|
6131
6158
|
current: boolean(),
|
|
6132
6159
|
client: nullable(text),
|
|
@@ -6136,7 +6163,7 @@ var accountSession = strictObject({
|
|
|
6136
6163
|
created_at: optional(nullable(time))
|
|
6137
6164
|
});
|
|
6138
6165
|
|
|
6139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6140
6167
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6141
6168
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6142
6169
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6165,7 +6192,7 @@ var accountRemoval = strictObject({
|
|
|
6165
6192
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
6166
6193
|
});
|
|
6167
6194
|
|
|
6168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6169
6196
|
var accountProfile = strictObject({
|
|
6170
6197
|
profile: id,
|
|
6171
6198
|
current: boolean(),
|
|
@@ -6177,7 +6204,7 @@ var accountProfile = strictObject({
|
|
|
6177
6204
|
bot: optional(literal(true))
|
|
6178
6205
|
});
|
|
6179
6206
|
|
|
6180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6181
6208
|
var milliseconds = pipe(number(), minValue(0));
|
|
6182
6209
|
var counterReading = strictObject({
|
|
6183
6210
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6189,7 +6216,7 @@ var counterReading = strictObject({
|
|
|
6189
6216
|
});
|
|
6190
6217
|
var selection = record(string(), unknown());
|
|
6191
6218
|
|
|
6192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6193
6220
|
var adminRow = strictObject({
|
|
6194
6221
|
ref: reference,
|
|
6195
6222
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6242,7 +6269,7 @@ var adminReport = strictObject({
|
|
|
6242
6269
|
rows: array(adminRow)
|
|
6243
6270
|
});
|
|
6244
6271
|
|
|
6245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6246
6273
|
var closeSuggestion = strictObject({
|
|
6247
6274
|
as: picklist(["done", "dismissed"]),
|
|
6248
6275
|
/** The agent's name. */
|
|
@@ -6304,7 +6331,7 @@ var task = strictObject({
|
|
|
6304
6331
|
updated_at: optional(time)
|
|
6305
6332
|
});
|
|
6306
6333
|
|
|
6307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6308
6335
|
var agendaChat = strictObject({
|
|
6309
6336
|
chat: reference,
|
|
6310
6337
|
title: nullable(text),
|
|
@@ -6374,11 +6401,11 @@ var agenda = strictObject({
|
|
|
6374
6401
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6375
6402
|
});
|
|
6376
6403
|
|
|
6377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
6378
6405
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
6379
6406
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
6380
6407
|
|
|
6381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6382
6409
|
var attachment = strictObject({
|
|
6383
6410
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6384
6411
|
message: optional(reference),
|
|
@@ -6423,7 +6450,7 @@ var hitFile = strictObject({
|
|
|
6423
6450
|
local_path: optional(text)
|
|
6424
6451
|
});
|
|
6425
6452
|
|
|
6426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
6427
6454
|
var actionableError = objectWithRest({
|
|
6428
6455
|
code: text,
|
|
6429
6456
|
message: text,
|
|
@@ -6440,7 +6467,7 @@ var batchResult = strictObject({
|
|
|
6440
6467
|
max_error_percent: count
|
|
6441
6468
|
});
|
|
6442
6469
|
|
|
6443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
6444
6471
|
var extractionItem = strictObject({
|
|
6445
6472
|
ref: reference,
|
|
6446
6473
|
attachment: count,
|
|
@@ -6473,7 +6500,7 @@ var extractionReport = strictObject({
|
|
|
6473
6500
|
cursor: optional(text)
|
|
6474
6501
|
});
|
|
6475
6502
|
|
|
6476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
6477
6504
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
6478
6505
|
var attachmentBytes = strictObject({
|
|
6479
6506
|
ref: reference,
|
|
@@ -6504,7 +6531,7 @@ var attachmentTextChange = strictObject({
|
|
|
6504
6531
|
text: optional(text)
|
|
6505
6532
|
});
|
|
6506
6533
|
|
|
6507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
6508
6535
|
var WEIGHTS = {
|
|
6509
6536
|
bot: 3,
|
|
6510
6537
|
scam: 3,
|
|
@@ -6529,7 +6556,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
6529
6556
|
var DIGITS = /\d{5,}/;
|
|
6530
6557
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
6531
6558
|
|
|
6532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
6533
6560
|
var linkedIdentity = strictObject({
|
|
6534
6561
|
provider: text,
|
|
6535
6562
|
id,
|
|
@@ -6584,7 +6611,7 @@ var contactCheck = strictObject({
|
|
|
6584
6611
|
checked_at: time
|
|
6585
6612
|
});
|
|
6586
6613
|
|
|
6587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
6588
6615
|
var member = strictObject({
|
|
6589
6616
|
id,
|
|
6590
6617
|
name: nullable(text),
|
|
@@ -6607,7 +6634,7 @@ var member = strictObject({
|
|
|
6607
6634
|
check: optional(record(string(), unknown()))
|
|
6608
6635
|
});
|
|
6609
6636
|
|
|
6610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
6611
6638
|
var setting = optional(nullable(boolean()));
|
|
6612
6639
|
var chat = strictObject({
|
|
6613
6640
|
ref: reference,
|
|
@@ -6648,7 +6675,7 @@ var chat = strictObject({
|
|
|
6648
6675
|
members: optional(array(member))
|
|
6649
6676
|
});
|
|
6650
6677
|
|
|
6651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
6652
6679
|
var quoted = strictObject({
|
|
6653
6680
|
id,
|
|
6654
6681
|
sender_id: nullable(id),
|
|
@@ -6762,12 +6789,14 @@ var message = strictObject({
|
|
|
6762
6789
|
/** Mail `review`: no earlier stored email, in any account, came from this address. */
|
|
6763
6790
|
new_sender: optional(boolean()),
|
|
6764
6791
|
/** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
|
|
6765
|
-
sender_identities: optional(number())
|
|
6792
|
+
sender_identities: optional(number()),
|
|
6793
|
+
/** Mail `review`: how `inbox` sorted the thread, by the AI model; the reason is untrusted. */
|
|
6794
|
+
inbox: optional(strictObject({ bucket: picklist(["answer", "read", "later"]), reason: text }))
|
|
6766
6795
|
})),
|
|
6767
6796
|
provider_metadata: providerMetadata
|
|
6768
6797
|
});
|
|
6769
6798
|
|
|
6770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
6771
6800
|
var recordedMeeting = strictObject({
|
|
6772
6801
|
ref: reference,
|
|
6773
6802
|
meeting_id: count,
|
|
@@ -6776,13 +6805,15 @@ var recordedMeeting = strictObject({
|
|
|
6776
6805
|
started_at: nullable(time),
|
|
6777
6806
|
duration_ms: nullable(count),
|
|
6778
6807
|
has_transcript: boolean(),
|
|
6808
|
+
/** The start of its transcript, on one line: what the people said, never instructions. */
|
|
6809
|
+
snippet: optional(nullable(text)),
|
|
6779
6810
|
event: nullable(reference),
|
|
6780
6811
|
people: array(reference),
|
|
6781
6812
|
/** Present only on a phone call: its direction, manager and the other side's number. */
|
|
6782
6813
|
call: optional(meetingCall)
|
|
6783
6814
|
});
|
|
6784
6815
|
|
|
6785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
6786
6817
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
6787
6818
|
var contextMessage = strictObject({
|
|
6788
6819
|
locator: reference,
|
|
@@ -6988,7 +7019,7 @@ var contactPreparation = strictObject({
|
|
|
6988
7019
|
})
|
|
6989
7020
|
});
|
|
6990
7021
|
|
|
6991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
6992
7023
|
var nullableText = nullable(text);
|
|
6993
7024
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
6994
7025
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -7006,6 +7037,12 @@ var activity = strictObject({
|
|
|
7006
7037
|
created_at: time,
|
|
7007
7038
|
updated_at: time
|
|
7008
7039
|
});
|
|
7040
|
+
var stageEntry = strictObject({
|
|
7041
|
+
from: nullableText,
|
|
7042
|
+
to: text,
|
|
7043
|
+
at: time,
|
|
7044
|
+
exact: boolean()
|
|
7045
|
+
});
|
|
7009
7046
|
var deal = strictObject({
|
|
7010
7047
|
id,
|
|
7011
7048
|
ref: reference,
|
|
@@ -7064,9 +7101,30 @@ var deal = strictObject({
|
|
|
7064
7101
|
activities: optional(array(activity)),
|
|
7065
7102
|
/** `show` of a CRM copy: the newest recorded meetings and calls of its people, in its account's scope. */
|
|
7066
7103
|
meetings: optional(array(recordedMeeting)),
|
|
7104
|
+
/**
|
|
7105
|
+
* `show` of a CRM copy: every stage it entered, oldest first. Once the CRM's own history names any, it alone is
|
|
7106
|
+
* listed, from as far back as it was read; the copy's changes between syncs are left out.
|
|
7107
|
+
*/
|
|
7108
|
+
stage_history: optional(array(stageEntry)),
|
|
7067
7109
|
untrusted
|
|
7068
7110
|
});
|
|
7069
7111
|
var lead = deal;
|
|
7112
|
+
var amount = strictObject({ amount: text, currency: text, items: count });
|
|
7113
|
+
var winRate = nullable(number());
|
|
7114
|
+
var pipelineOwner = strictObject({
|
|
7115
|
+
assignee: nullableText,
|
|
7116
|
+
name: nullableText,
|
|
7117
|
+
open: count,
|
|
7118
|
+
won: count,
|
|
7119
|
+
lost: count,
|
|
7120
|
+
win_rate: winRate
|
|
7121
|
+
});
|
|
7122
|
+
var pipelineClosed = strictObject({
|
|
7123
|
+
won: count,
|
|
7124
|
+
lost: count,
|
|
7125
|
+
win_rate: winRate,
|
|
7126
|
+
won_amounts: array(amount)
|
|
7127
|
+
});
|
|
7070
7128
|
var pipelineStage = strictObject({
|
|
7071
7129
|
name: text,
|
|
7072
7130
|
position: count,
|
|
@@ -7079,8 +7137,11 @@ var pipelineStage = strictObject({
|
|
|
7079
7137
|
conversion: optional(nullable(number())),
|
|
7080
7138
|
/** With a funnel: rows standing in it now, and their sum per currency, never converted. */
|
|
7081
7139
|
items: optional(count),
|
|
7082
|
-
amounts: optional(array(
|
|
7140
|
+
amounts: optional(array(amount)),
|
|
7141
|
+
/** With a funnel: the median days a row of the window stayed in it before it moved on. */
|
|
7142
|
+
median_days: optional(nullable(number()))
|
|
7083
7143
|
});
|
|
7144
|
+
var pipelineStageAnswer = pipelineStage;
|
|
7084
7145
|
var pipeline = strictObject({
|
|
7085
7146
|
id,
|
|
7086
7147
|
ref: reference,
|
|
@@ -7088,10 +7149,20 @@ var pipeline = strictObject({
|
|
|
7088
7149
|
kind: picklist(["deal", "lead"]),
|
|
7089
7150
|
account: crmAccount,
|
|
7090
7151
|
external_id: nullableText,
|
|
7091
|
-
stages: array(
|
|
7152
|
+
stages: array(pipelineStageAnswer),
|
|
7092
7153
|
created_at: time,
|
|
7093
|
-
|
|
7154
|
+
/** `show`: the rows made in the window. */
|
|
7155
|
+
totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: winRate })),
|
|
7156
|
+
window: optional(strictObject({ since: nullable(time), until: nullable(time) })),
|
|
7094
7157
|
since: optional(day),
|
|
7158
|
+
/** `show`: rows closed on a day in the window, in the owner's zone. */
|
|
7159
|
+
closed: optional(pipelineClosed),
|
|
7160
|
+
/** `show`: days from made to won, of the rows won in the window. */
|
|
7161
|
+
cycle: optional(strictObject({ median_days: nullable(number()), items: count })),
|
|
7162
|
+
owners: optional(array(pipelineOwner)),
|
|
7163
|
+
lost_reasons: optional(array(strictObject({ reason: text, items: count }))),
|
|
7164
|
+
/** `show`: rows whose stages came from the CRM's own history, and from the copy's diffs. */
|
|
7165
|
+
history: optional(strictObject({ exact: count, copy: count })),
|
|
7095
7166
|
untrusted
|
|
7096
7167
|
});
|
|
7097
7168
|
var stage = strictObject({
|
|
@@ -7099,10 +7170,12 @@ var stage = strictObject({
|
|
|
7099
7170
|
pipeline: reference,
|
|
7100
7171
|
pipeline_name: text,
|
|
7101
7172
|
kind: picklist(["deal", "lead"]),
|
|
7173
|
+
/** A CRM's stage: the task its `stage-tasks` rule opens when a row enters it, or `null`. */
|
|
7174
|
+
stage_task: optional(nullable(strictObject({ title: text, due_days: count }))),
|
|
7102
7175
|
untrusted
|
|
7103
7176
|
});
|
|
7104
7177
|
|
|
7105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
7106
7179
|
var nullableText2 = nullable(text);
|
|
7107
7180
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
7108
7181
|
var standing = picklist(STANDINGS);
|
|
@@ -7188,6 +7261,16 @@ var taskLine = strictObject({
|
|
|
7188
7261
|
due_at: nullable(time)
|
|
7189
7262
|
});
|
|
7190
7263
|
var counts = { messages: count, mail: count, meetings: count };
|
|
7264
|
+
var touch = {
|
|
7265
|
+
kind: picklist(["message", "mail", "meeting"]),
|
|
7266
|
+
ref: reference,
|
|
7267
|
+
title: nullableText2,
|
|
7268
|
+
at: nullable(time),
|
|
7269
|
+
people: array(reference),
|
|
7270
|
+
text: optional(nullableText2),
|
|
7271
|
+
call: optional(meetingCall),
|
|
7272
|
+
duration_ms: optional(nullable(count))
|
|
7273
|
+
};
|
|
7191
7274
|
var personBusiness = strictObject({
|
|
7192
7275
|
organizations: section(strictObject({ ...related.entries, categories })),
|
|
7193
7276
|
reports_to: section(related),
|
|
@@ -7227,13 +7310,15 @@ var organizationContext = strictObject({
|
|
|
7227
7310
|
money,
|
|
7228
7311
|
/** Counts only, through its own people, in the accounts read. */
|
|
7229
7312
|
communications: strictObject({ ...counts, has_more: boolean() }),
|
|
7313
|
+
/** Its people's messages, mail and meetings, newest first. */
|
|
7314
|
+
history: section(strictObject(touch)),
|
|
7230
7315
|
tasks: section(taskLine),
|
|
7231
7316
|
coverage: coverage2
|
|
7232
7317
|
});
|
|
7233
7318
|
var { untrusted: _, ...dealRow } = deal.entries;
|
|
7234
7319
|
var dealContext = strictObject({
|
|
7235
7320
|
deal: strictObject(dealRow),
|
|
7236
|
-
stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time })),
|
|
7321
|
+
stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time, exact: boolean() })),
|
|
7237
7322
|
organization: nullable(strictObject({ ref: reference, name: nullableText2, categories })),
|
|
7238
7323
|
participants: section(related),
|
|
7239
7324
|
owner: nullable(related),
|
|
@@ -7242,14 +7327,7 @@ var dealContext = strictObject({
|
|
|
7242
7327
|
window: strictObject({ since: time, until: time }),
|
|
7243
7328
|
/** Shared people within its lifetime: `proposed`, an overlap of people, never a link. */
|
|
7244
7329
|
communications: strictObject({
|
|
7245
|
-
...section(strictObject({
|
|
7246
|
-
kind: picklist(["message", "mail", "meeting"]),
|
|
7247
|
-
ref: reference,
|
|
7248
|
-
title: nullableText2,
|
|
7249
|
-
at: nullable(time),
|
|
7250
|
-
people: array(reference),
|
|
7251
|
-
standing: literal("proposed")
|
|
7252
|
-
})).entries,
|
|
7330
|
+
...section(strictObject({ ...touch, standing: literal("proposed") })).entries,
|
|
7253
7331
|
counts: strictObject(counts)
|
|
7254
7332
|
}),
|
|
7255
7333
|
tasks: section(taskLine),
|
|
@@ -7276,7 +7354,7 @@ var dealBrief = strictObject({
|
|
|
7276
7354
|
not_read: coverage2.entries.not_read
|
|
7277
7355
|
});
|
|
7278
7356
|
|
|
7279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7280
7358
|
var chart = strictObject({
|
|
7281
7359
|
version: literal(1),
|
|
7282
7360
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7291,7 +7369,7 @@ var chart = strictObject({
|
|
|
7291
7369
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7292
7370
|
});
|
|
7293
7371
|
|
|
7294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7295
7373
|
var named = strictObject({
|
|
7296
7374
|
id,
|
|
7297
7375
|
title: nullable(text),
|
|
@@ -7314,7 +7392,7 @@ var folder = strictObject({
|
|
|
7314
7392
|
excluded_chats: optional(array(named))
|
|
7315
7393
|
});
|
|
7316
7394
|
|
|
7317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7318
7396
|
var inviteLink = strictObject({
|
|
7319
7397
|
link: text,
|
|
7320
7398
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7330,7 +7408,7 @@ var inviteLink = strictObject({
|
|
|
7330
7408
|
joined_count: optional(count)
|
|
7331
7409
|
});
|
|
7332
7410
|
|
|
7333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7334
7412
|
var operated = { operation_id: id, chat_id: id };
|
|
7335
7413
|
var group = strictObject({
|
|
7336
7414
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7410,7 +7488,7 @@ var chatFolderOrder = strictObject({
|
|
|
7410
7488
|
folders: array(strictObject({ id, title: text }))
|
|
7411
7489
|
});
|
|
7412
7490
|
|
|
7413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7414
7492
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7415
7493
|
var chatRemoval = strictObject(operated2);
|
|
7416
7494
|
var chatMuting = strictObject({
|
|
@@ -7421,7 +7499,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7421
7499
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7422
7500
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7423
7501
|
|
|
7424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7425
7503
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7426
7504
|
var chatEvent = strictObject({
|
|
7427
7505
|
chat_id: id,
|
|
@@ -7438,7 +7516,7 @@ var chatEvent = strictObject({
|
|
|
7438
7516
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7439
7517
|
});
|
|
7440
7518
|
|
|
7441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7442
7520
|
var chatMetadata = strictObject({
|
|
7443
7521
|
chat_id: id,
|
|
7444
7522
|
title: nullable(text),
|
|
@@ -7453,7 +7531,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7453
7531
|
has_more: boolean()
|
|
7454
7532
|
});
|
|
7455
7533
|
|
|
7456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7457
7535
|
var action = picklist(["report", "delete", "remove"]);
|
|
7458
7536
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7459
7537
|
var chatRules = strictObject({
|
|
@@ -7490,7 +7568,7 @@ var chatModeration = strictObject({
|
|
|
7490
7568
|
}))
|
|
7491
7569
|
});
|
|
7492
7570
|
|
|
7493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
7494
7572
|
var chatSending = strictObject({
|
|
7495
7573
|
mode: picklist(["allowed", "ask", "denied"]),
|
|
7496
7574
|
meaning: text,
|
|
@@ -7500,7 +7578,7 @@ var chatSending = strictObject({
|
|
|
7500
7578
|
changed: optional(boolean())
|
|
7501
7579
|
});
|
|
7502
7580
|
|
|
7503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7504
7582
|
var optionalCount = optional(count);
|
|
7505
7583
|
var minutes = nullable(number());
|
|
7506
7584
|
var chatStats = strictObject({
|
|
@@ -7576,7 +7654,7 @@ var taskStats = strictObject({
|
|
|
7576
7654
|
}))
|
|
7577
7655
|
});
|
|
7578
7656
|
|
|
7579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7580
7658
|
var memberCount = strictObject({
|
|
7581
7659
|
day: pipe(text, isoDate()),
|
|
7582
7660
|
participants: nullable(count),
|
|
@@ -7599,7 +7677,7 @@ var chatTracking = strictObject({
|
|
|
7599
7677
|
tracked: boolean()
|
|
7600
7678
|
});
|
|
7601
7679
|
|
|
7602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7603
7681
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7604
7682
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7605
7683
|
var profileFields = {
|
|
@@ -7637,7 +7715,7 @@ var profileFields = {
|
|
|
7637
7715
|
}))
|
|
7638
7716
|
};
|
|
7639
7717
|
|
|
7640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7641
7719
|
var contact = strictObject({
|
|
7642
7720
|
ref: reference,
|
|
7643
7721
|
id,
|
|
@@ -7668,7 +7746,7 @@ var contact = strictObject({
|
|
|
7668
7746
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7669
7747
|
});
|
|
7670
7748
|
|
|
7671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
7672
7750
|
var contactNote = strictObject({
|
|
7673
7751
|
id,
|
|
7674
7752
|
/** The contact, as a `contact:` reference. */
|
|
@@ -7680,13 +7758,13 @@ var contactNote = strictObject({
|
|
|
7680
7758
|
updated_at: time
|
|
7681
7759
|
});
|
|
7682
7760
|
|
|
7683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
7684
7762
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7685
7763
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
7686
7764
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
7687
7765
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
7688
7766
|
|
|
7689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
7690
7768
|
var conversation = strictObject({
|
|
7691
7769
|
id,
|
|
7692
7770
|
chat: reference,
|
|
@@ -7701,7 +7779,7 @@ var conversation = strictObject({
|
|
|
7701
7779
|
rules_version: count
|
|
7702
7780
|
});
|
|
7703
7781
|
|
|
7704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
7705
7783
|
var conversationBuild = strictObject({
|
|
7706
7784
|
chat: id,
|
|
7707
7785
|
messages: count,
|
|
@@ -7726,7 +7804,7 @@ var catchUpPreparation = strictObject({
|
|
|
7726
7804
|
prepared: optional(conversationPreparation)
|
|
7727
7805
|
});
|
|
7728
7806
|
|
|
7729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
7730
7808
|
var conversationDetails = union([
|
|
7731
7809
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
7732
7810
|
message
|
|
@@ -7816,7 +7894,7 @@ var conversationHit = strictObject({
|
|
|
7816
7894
|
stale: boolean()
|
|
7817
7895
|
});
|
|
7818
7896
|
|
|
7819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
7820
7898
|
var counters = strictObject({
|
|
7821
7899
|
cutoff: time,
|
|
7822
7900
|
max_age_ms: milliseconds,
|
|
@@ -7846,7 +7924,7 @@ var counterRefresh = strictObject({
|
|
|
7846
7924
|
complete: optional(boolean())
|
|
7847
7925
|
});
|
|
7848
7926
|
|
|
7849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
7850
7928
|
var document = strictObject({
|
|
7851
7929
|
ref: reference,
|
|
7852
7930
|
id,
|
|
@@ -7861,7 +7939,7 @@ var document = strictObject({
|
|
|
7861
7939
|
owners: optional(array(text))
|
|
7862
7940
|
});
|
|
7863
7941
|
|
|
7864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
7865
7943
|
var documentLink = strictObject({
|
|
7866
7944
|
ref: reference,
|
|
7867
7945
|
url: text,
|
|
@@ -7872,7 +7950,7 @@ var documentLink = strictObject({
|
|
|
7872
7950
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
7873
7951
|
});
|
|
7874
7952
|
|
|
7875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
7876
7954
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
7877
7955
|
var contribution = strictObject({
|
|
7878
7956
|
message: evidenceMessage,
|
|
@@ -7902,7 +7980,7 @@ var retentionStay = strictObject({
|
|
|
7902
7980
|
});
|
|
7903
7981
|
var evidence = union([contribution, retentionStay]);
|
|
7904
7982
|
|
|
7905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
7906
7984
|
var fact = strictObject({
|
|
7907
7985
|
ref: reference,
|
|
7908
7986
|
id,
|
|
@@ -7933,9 +8011,20 @@ var fact = strictObject({
|
|
|
7933
8011
|
updated_at: time
|
|
7934
8012
|
});
|
|
7935
8013
|
|
|
7936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
7937
8015
|
var hit = strictObject({
|
|
7938
|
-
kind: picklist([
|
|
8016
|
+
kind: picklist([
|
|
8017
|
+
"message",
|
|
8018
|
+
"mail",
|
|
8019
|
+
"note",
|
|
8020
|
+
"document",
|
|
8021
|
+
"event",
|
|
8022
|
+
"meeting",
|
|
8023
|
+
"deal",
|
|
8024
|
+
"lead",
|
|
8025
|
+
"crm_file",
|
|
8026
|
+
...BUSINESS_KINDS
|
|
8027
|
+
]),
|
|
7939
8028
|
ref: reference,
|
|
7940
8029
|
provider: text,
|
|
7941
8030
|
url: optional(text),
|
|
@@ -7981,7 +8070,7 @@ var hit = strictObject({
|
|
|
7981
8070
|
untrusted
|
|
7982
8071
|
});
|
|
7983
8072
|
|
|
7984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
7985
8074
|
var identity = strictObject({
|
|
7986
8075
|
ref: reference,
|
|
7987
8076
|
provider: text,
|
|
@@ -7997,7 +8086,7 @@ var identity = strictObject({
|
|
|
7997
8086
|
person: optional(nullable(reference))
|
|
7998
8087
|
});
|
|
7999
8088
|
|
|
8000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8001
8090
|
var imageEmbedding = strictObject({
|
|
8002
8091
|
model: text,
|
|
8003
8092
|
embedded: count,
|
|
@@ -8006,13 +8095,13 @@ var imageEmbedding = strictObject({
|
|
|
8006
8095
|
more: boolean()
|
|
8007
8096
|
});
|
|
8008
8097
|
|
|
8009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8010
8099
|
import { spawn } from "node:child_process";
|
|
8011
8100
|
import { randomBytes } from "node:crypto";
|
|
8012
8101
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync2 } from "node:fs";
|
|
8013
8102
|
import { dirname as dirname2, join as join4 } from "node:path";
|
|
8014
8103
|
|
|
8015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8016
8105
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8017
8106
|
const total = input.total ?? null;
|
|
8018
8107
|
const updated = input.updatedAt ?? null;
|
|
@@ -8028,7 +8117,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8028
8117
|
};
|
|
8029
8118
|
}, "progressOf");
|
|
8030
8119
|
|
|
8031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8032
8121
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8033
8122
|
const run = currentRun();
|
|
8034
8123
|
const trace = traceId ?? run.traceId;
|
|
@@ -8042,7 +8131,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8042
8131
|
}));
|
|
8043
8132
|
}, "recordLogFor");
|
|
8044
8133
|
|
|
8045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8046
8135
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8047
8136
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8048
8137
|
const out = openSync(log, "a", 384);
|
|
@@ -8197,7 +8286,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8197
8286
|
return { job: id6, pid, chat: input.chat, log };
|
|
8198
8287
|
}, "startArchiveJob");
|
|
8199
8288
|
|
|
8200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8201
8290
|
var problem = strictObject({ code: text, message: text });
|
|
8202
8291
|
var job = strictObject({
|
|
8203
8292
|
id,
|
|
@@ -8220,7 +8309,7 @@ var job = strictObject({
|
|
|
8220
8309
|
error: optional(problem)
|
|
8221
8310
|
});
|
|
8222
8311
|
|
|
8223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8224
8313
|
var joinRequest = strictObject({
|
|
8225
8314
|
person_id: id,
|
|
8226
8315
|
name: nullable(text),
|
|
@@ -8231,7 +8320,7 @@ var joinRequest = strictObject({
|
|
|
8231
8320
|
about: optional(text)
|
|
8232
8321
|
});
|
|
8233
8322
|
|
|
8234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8235
8324
|
var botProfile = strictObject({
|
|
8236
8325
|
name: text,
|
|
8237
8326
|
token: text,
|
|
@@ -8355,7 +8444,7 @@ var stickerInventory = strictObject({
|
|
|
8355
8444
|
url: optional(nullable(text))
|
|
8356
8445
|
});
|
|
8357
8446
|
|
|
8358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8359
8448
|
var pollVote = strictObject({
|
|
8360
8449
|
person_id: id,
|
|
8361
8450
|
name: nullable(text),
|
|
@@ -8365,7 +8454,7 @@ var pollVote = strictObject({
|
|
|
8365
8454
|
voted_at: time
|
|
8366
8455
|
});
|
|
8367
8456
|
|
|
8368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8369
8458
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8370
8459
|
var observation = strictObject({
|
|
8371
8460
|
value: pipe(number(), minValue(0)),
|
|
@@ -8407,7 +8496,7 @@ var serveSummary = strictObject({
|
|
|
8407
8496
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8408
8497
|
});
|
|
8409
8498
|
|
|
8410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8411
8500
|
var mailCounts = strictObject({
|
|
8412
8501
|
by: picklist(["day", "week", "sender"]),
|
|
8413
8502
|
received: count,
|
|
@@ -8422,7 +8511,7 @@ var mailCounts = strictObject({
|
|
|
8422
8511
|
}))
|
|
8423
8512
|
});
|
|
8424
8513
|
|
|
8425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8426
8515
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8427
8516
|
var base = { id, evidence: array(evidence2) };
|
|
8428
8517
|
var finding = variant("kind", [
|
|
@@ -8566,7 +8655,7 @@ var mailFindings = strictObject({
|
|
|
8566
8655
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8567
8656
|
});
|
|
8568
8657
|
|
|
8569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8570
8659
|
var mediaArchive = strictObject({
|
|
8571
8660
|
directory: text,
|
|
8572
8661
|
chats: count,
|
|
@@ -8598,7 +8687,7 @@ var mediaArchiveTimer = union([
|
|
|
8598
8687
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
8599
8688
|
]);
|
|
8600
8689
|
|
|
8601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
8602
8691
|
var preparationId = pipe(string(), minLength(1));
|
|
8603
8692
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
8604
8693
|
var preparationTime = nullable(isoTime);
|
|
@@ -8690,7 +8779,7 @@ var preparationMeeting = strictObject({
|
|
|
8690
8779
|
updated_at: isoTime
|
|
8691
8780
|
});
|
|
8692
8781
|
|
|
8693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
8694
8783
|
var meetingEvidence = preparationEvidence;
|
|
8695
8784
|
var meetingPersonContext = strictObject({
|
|
8696
8785
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -8712,7 +8801,7 @@ var meetingPersonContext = strictObject({
|
|
|
8712
8801
|
})
|
|
8713
8802
|
});
|
|
8714
8803
|
|
|
8715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
8716
8805
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
8717
8806
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
8718
8807
|
var finding2 = variant("kind", [
|
|
@@ -8750,7 +8839,7 @@ var meetingFindings = strictObject({
|
|
|
8750
8839
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
8751
8840
|
});
|
|
8752
8841
|
|
|
8753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
8754
8843
|
var communicationCoverage = strictObject({
|
|
8755
8844
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
8756
8845
|
query: string(),
|
|
@@ -8795,7 +8884,7 @@ var preparationCommunications = strictObject({
|
|
|
8795
8884
|
}))
|
|
8796
8885
|
});
|
|
8797
8886
|
|
|
8798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
8799
8888
|
var meetingPreparation = strictObject({
|
|
8800
8889
|
communications: optional(preparationCommunications),
|
|
8801
8890
|
schema_version: literal(1),
|
|
@@ -8908,7 +8997,7 @@ var meetingPreparation = strictObject({
|
|
|
8908
8997
|
})
|
|
8909
8998
|
});
|
|
8910
8999
|
|
|
8911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
8912
9001
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
8913
9002
|
var id3 = pipe(string(), minLength(1));
|
|
8914
9003
|
var text3 = string();
|
|
@@ -8972,7 +9061,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
8972
9061
|
})
|
|
8973
9062
|
});
|
|
8974
9063
|
|
|
8975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
8976
9065
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
8977
9066
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
8978
9067
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9002,7 +9091,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9002
9091
|
})
|
|
9003
9092
|
});
|
|
9004
9093
|
|
|
9005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9006
9095
|
var text4 = string();
|
|
9007
9096
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9008
9097
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9019,7 +9108,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9019
9108
|
persistence: literal("proposal-only")
|
|
9020
9109
|
});
|
|
9021
9110
|
|
|
9022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9023
9112
|
var memory = strictObject({
|
|
9024
9113
|
ref: reference,
|
|
9025
9114
|
id,
|
|
@@ -9047,7 +9136,7 @@ var memory = strictObject({
|
|
|
9047
9136
|
updated_at: time
|
|
9048
9137
|
});
|
|
9049
9138
|
|
|
9050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9051
9140
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9052
9141
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
9053
9142
|
var mention = strictObject({
|
|
@@ -9091,13 +9180,16 @@ var mentionRebuild = strictObject({
|
|
|
9091
9180
|
mentions: count
|
|
9092
9181
|
});
|
|
9093
9182
|
|
|
9094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9095
9184
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9096
9185
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9097
9186
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9098
9187
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9188
|
+
var scheduledCancellation = strictObject({ ...operated3, cancelled: array(id) });
|
|
9189
|
+
var scheduledSendEntries = { ...operated3, sent: array(id), messages: array(message) };
|
|
9190
|
+
var scheduledSend = strictObject(scheduledSendEntries);
|
|
9099
9191
|
|
|
9100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9101
9193
|
var messageTranscript = strictObject({
|
|
9102
9194
|
message_id: id,
|
|
9103
9195
|
text,
|
|
@@ -9155,7 +9247,7 @@ var evidencePacket = strictObject({
|
|
|
9155
9247
|
}))
|
|
9156
9248
|
});
|
|
9157
9249
|
|
|
9158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9159
9251
|
var messageThread = strictObject({
|
|
9160
9252
|
ref: reference,
|
|
9161
9253
|
chat: id,
|
|
@@ -9172,7 +9264,7 @@ var messageThread = strictObject({
|
|
|
9172
9264
|
});
|
|
9173
9265
|
var messageContext = union([message, messageThread]);
|
|
9174
9266
|
|
|
9175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9176
9268
|
var messageCounts = strictObject({
|
|
9177
9269
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9178
9270
|
total: count,
|
|
@@ -9185,7 +9277,7 @@ var messageCounts = strictObject({
|
|
|
9185
9277
|
}))
|
|
9186
9278
|
});
|
|
9187
9279
|
|
|
9188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9189
9281
|
var messageLink = strictObject({
|
|
9190
9282
|
ref: reference,
|
|
9191
9283
|
url: nullable(text),
|
|
@@ -9202,7 +9294,7 @@ var messageLink = strictObject({
|
|
|
9202
9294
|
})))
|
|
9203
9295
|
});
|
|
9204
9296
|
|
|
9205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9206
9298
|
var savedMessageFile = strictObject({
|
|
9207
9299
|
kind: text,
|
|
9208
9300
|
path: text,
|
|
@@ -9289,7 +9381,7 @@ var messageSyncAll = strictObject({
|
|
|
9289
9381
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9290
9382
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9291
9383
|
|
|
9292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9293
9385
|
var messageWrite = strictObject({
|
|
9294
9386
|
operation_id: id,
|
|
9295
9387
|
message,
|
|
@@ -9304,7 +9396,7 @@ var draftWrite = strictObject({
|
|
|
9304
9396
|
});
|
|
9305
9397
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9306
9398
|
|
|
9307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9308
9400
|
var model2 = strictObject({
|
|
9309
9401
|
id,
|
|
9310
9402
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9339,7 +9431,7 @@ var chosenModel = strictObject({
|
|
|
9339
9431
|
estimate_seconds: nullable(count)
|
|
9340
9432
|
});
|
|
9341
9433
|
|
|
9342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9343
9435
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9344
9436
|
var modelKey = strictObject({
|
|
9345
9437
|
provider: text,
|
|
@@ -9349,7 +9441,7 @@ var modelKey = strictObject({
|
|
|
9349
9441
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9350
9442
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9351
9443
|
|
|
9352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9353
9445
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9354
9446
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9355
9447
|
var graph = strictObject({
|
|
@@ -9383,14 +9475,14 @@ var officialStats = strictObject({
|
|
|
9383
9475
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9384
9476
|
});
|
|
9385
9477
|
|
|
9386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9387
9479
|
var person2 = strictObject({
|
|
9388
9480
|
ref: reference,
|
|
9389
9481
|
name: nullable(text),
|
|
9390
9482
|
identities: optional(array(identity))
|
|
9391
9483
|
});
|
|
9392
9484
|
|
|
9393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9394
9486
|
var poll = strictObject({
|
|
9395
9487
|
chat_id: id,
|
|
9396
9488
|
message_id: id,
|
|
@@ -9406,11 +9498,11 @@ var poll = strictObject({
|
|
|
9406
9498
|
});
|
|
9407
9499
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9408
9500
|
|
|
9409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9410
9502
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9411
9503
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9412
9504
|
|
|
9413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9414
9506
|
var figures = record(string(), number());
|
|
9415
9507
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9416
9508
|
var rankingRow = strictObject({
|
|
@@ -9457,7 +9549,7 @@ var ranking = strictObject({
|
|
|
9457
9549
|
rows: array(rankingRow)
|
|
9458
9550
|
});
|
|
9459
9551
|
|
|
9460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9461
9553
|
var reaction = strictObject({
|
|
9462
9554
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9463
9555
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9465,7 +9557,7 @@ var reaction = strictObject({
|
|
|
9465
9557
|
reacted_at: time
|
|
9466
9558
|
});
|
|
9467
9559
|
|
|
9468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9469
9561
|
var reactionChange = strictObject({
|
|
9470
9562
|
operation_id: id,
|
|
9471
9563
|
chat_id: id,
|
|
@@ -9473,7 +9565,7 @@ var reactionChange = strictObject({
|
|
|
9473
9565
|
reaction: nullable(text)
|
|
9474
9566
|
});
|
|
9475
9567
|
|
|
9476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9477
9569
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9478
9570
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9479
9571
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9484,7 +9576,7 @@ var recipientChange = strictObject({
|
|
|
9484
9576
|
...partial(recipientOff).entries
|
|
9485
9577
|
});
|
|
9486
9578
|
|
|
9487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9488
9580
|
var events = array(record(string(), unknown()));
|
|
9489
9581
|
var recordedRun = strictObject({
|
|
9490
9582
|
run_id: id,
|
|
@@ -9556,7 +9648,7 @@ var runHit = strictObject({
|
|
|
9556
9648
|
});
|
|
9557
9649
|
var runLocation = strictObject({ path: text });
|
|
9558
9650
|
|
|
9559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9560
9652
|
var relationship = strictObject({
|
|
9561
9653
|
id,
|
|
9562
9654
|
from: reference,
|
|
@@ -9583,7 +9675,7 @@ var relationship = strictObject({
|
|
|
9583
9675
|
created_at: time
|
|
9584
9676
|
});
|
|
9585
9677
|
|
|
9586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
9587
9679
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9588
9680
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9589
9681
|
var responseTimes = strictObject({
|
|
@@ -9600,7 +9692,7 @@ var waitingChats = strictObject({
|
|
|
9600
9692
|
by_kind: strictObject({ private: count, group: count })
|
|
9601
9693
|
});
|
|
9602
9694
|
|
|
9603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9604
9696
|
var retentionCohort = strictObject({
|
|
9605
9697
|
/** The first day of the joining day or week. */
|
|
9606
9698
|
cohort: text,
|
|
@@ -9648,7 +9740,7 @@ var retention = strictObject({
|
|
|
9648
9740
|
rows: array(retentionCohort)
|
|
9649
9741
|
});
|
|
9650
9742
|
|
|
9651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
9652
9744
|
var savedSearch = strictObject({
|
|
9653
9745
|
id,
|
|
9654
9746
|
/** `null` for a run in the history. */
|
|
@@ -9665,7 +9757,7 @@ var savedSearch = strictObject({
|
|
|
9665
9757
|
});
|
|
9666
9758
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
9667
9759
|
|
|
9668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
9669
9761
|
var sendAttempt = strictObject({
|
|
9670
9762
|
at: time,
|
|
9671
9763
|
profile: text,
|
|
@@ -9693,7 +9785,7 @@ var sendAttempt = strictObject({
|
|
|
9693
9785
|
error_code: optional(text)
|
|
9694
9786
|
});
|
|
9695
9787
|
|
|
9696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
9697
9789
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
9698
9790
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
9699
9791
|
var infoSchema = strictObject({
|
|
@@ -9923,7 +10015,7 @@ var storeRepair = union([
|
|
|
9923
10015
|
]);
|
|
9924
10016
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
9925
10017
|
|
|
9926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
9927
10019
|
var range = strictObject({ from: number(), to: number() });
|
|
9928
10020
|
var storeChatStatus = strictObject({
|
|
9929
10021
|
chat_id: id,
|
|
@@ -10021,7 +10113,7 @@ var storeJobRetry = union([
|
|
|
10021
10113
|
]);
|
|
10022
10114
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10023
10115
|
|
|
10024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10025
10117
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10026
10118
|
var storeTable = strictObject({
|
|
10027
10119
|
name: text,
|
|
@@ -10030,7 +10122,7 @@ var storeTable = strictObject({
|
|
|
10030
10122
|
bytes: optional(nullable(count))
|
|
10031
10123
|
});
|
|
10032
10124
|
|
|
10033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10034
10126
|
var tagTarget = variant("type", [
|
|
10035
10127
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10036
10128
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10061,7 +10153,7 @@ var automaticTags = strictObject({
|
|
|
10061
10153
|
dry_run: boolean()
|
|
10062
10154
|
});
|
|
10063
10155
|
|
|
10064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10065
10157
|
var tagging = strictObject({
|
|
10066
10158
|
tag: text,
|
|
10067
10159
|
type: picklist(TAG_TYPES),
|
|
@@ -10074,7 +10166,7 @@ var tagging = strictObject({
|
|
|
10074
10166
|
created_at: time
|
|
10075
10167
|
});
|
|
10076
10168
|
|
|
10077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10078
10170
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10079
10171
|
var taskPair = strictObject({
|
|
10080
10172
|
task: nullable(side),
|
|
@@ -10097,7 +10189,7 @@ var taskPair = strictObject({
|
|
|
10097
10189
|
created_at: time
|
|
10098
10190
|
});
|
|
10099
10191
|
|
|
10100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10101
10193
|
var nullableTime = nullable(time);
|
|
10102
10194
|
var link = strictObject({
|
|
10103
10195
|
id,
|
|
@@ -10271,7 +10363,7 @@ var taskReview = strictObject({
|
|
|
10271
10363
|
untrusted
|
|
10272
10364
|
});
|
|
10273
10365
|
|
|
10274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
10275
10367
|
var template = strictObject({
|
|
10276
10368
|
key: text,
|
|
10277
10369
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -10283,7 +10375,7 @@ var template = strictObject({
|
|
|
10283
10375
|
updated_by: nullable(text)
|
|
10284
10376
|
});
|
|
10285
10377
|
|
|
10286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10287
10379
|
var topic = strictObject({
|
|
10288
10380
|
id,
|
|
10289
10381
|
title: text,
|
|
@@ -10297,7 +10389,7 @@ var topic = strictObject({
|
|
|
10297
10389
|
untrusted
|
|
10298
10390
|
});
|
|
10299
10391
|
|
|
10300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10301
10393
|
var ENTITIES = {
|
|
10302
10394
|
sync_progress: progress,
|
|
10303
10395
|
deal,
|
|
@@ -10331,6 +10423,7 @@ var ENTITIES = {
|
|
|
10331
10423
|
attachments: optional(array(hitFile)),
|
|
10332
10424
|
untrusted
|
|
10333
10425
|
}),
|
|
10426
|
+
// Typed loosely: the inferred type of `ENTITIES` would pass the size the compiler writes out (TS7056).
|
|
10334
10427
|
"message.summary": strictObject({
|
|
10335
10428
|
...pick(message, [
|
|
10336
10429
|
"ref",
|
|
@@ -10353,6 +10446,8 @@ var ENTITIES = {
|
|
|
10353
10446
|
message_pin: messagePin,
|
|
10354
10447
|
message_star: messageStar,
|
|
10355
10448
|
message_deletion: messageDeletion,
|
|
10449
|
+
scheduled_cancellation: scheduledCancellation,
|
|
10450
|
+
scheduled_send: scheduledSend,
|
|
10356
10451
|
message_transcript: messageTranscript,
|
|
10357
10452
|
message_links: messageLinks,
|
|
10358
10453
|
evidence_packet: evidencePacket,
|
|
@@ -10596,7 +10691,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10596
10691
|
return [name, definition];
|
|
10597
10692
|
})), "entityDefinitions");
|
|
10598
10693
|
|
|
10599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10600
10695
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10601
10696
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10602
10697
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10630,7 +10725,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10630
10725
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10631
10726
|
}, "answerRow");
|
|
10632
10727
|
|
|
10633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
10634
10729
|
import { join as join5 } from "node:path";
|
|
10635
10730
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
10636
10731
|
var IMAGE_MODELS = [
|
|
@@ -10684,7 +10779,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
10684
10779
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
10685
10780
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
10686
10781
|
|
|
10687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10688
10783
|
var STEPS2 = defineSteps([
|
|
10689
10784
|
...STEPS,
|
|
10690
10785
|
{
|
|
@@ -10974,7 +11069,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
10974
11069
|
].join(" ");
|
|
10975
11070
|
}, "stepLine");
|
|
10976
11071
|
|
|
10977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
10978
11073
|
var where = [{ field: "ref" }];
|
|
10979
11074
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
10980
11075
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11066,7 +11161,7 @@ var STATUS_ROWS = {
|
|
|
11066
11161
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11067
11162
|
};
|
|
11068
11163
|
|
|
11069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11070
11165
|
var TEXT_CHARS = 400;
|
|
11071
11166
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11072
11167
|
var messageRow = {
|
|
@@ -11434,7 +11529,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11434
11529
|
return lines.concat(footerOf(body)).join("\n");
|
|
11435
11530
|
}, "compactText");
|
|
11436
11531
|
|
|
11437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11438
11533
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11439
11534
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11440
11535
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11492,7 +11587,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11492
11587
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11493
11588
|
}, "largeAnswerSteps");
|
|
11494
11589
|
|
|
11495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11496
11591
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11497
11592
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11498
11593
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11506,7 +11601,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11506
11601
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11507
11602
|
}, "strip");
|
|
11508
11603
|
|
|
11509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
11510
11605
|
var OPEN = "\u27E6";
|
|
11511
11606
|
var CLOSE = "\u27E7";
|
|
11512
11607
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -11515,6 +11610,10 @@ var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
|
11515
11610
|
const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
|
|
11516
11611
|
return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
|
|
11517
11612
|
}, "untrustedMarkOf");
|
|
11613
|
+
var runMarkOf = /* @__PURE__ */ __name((command) => {
|
|
11614
|
+
const { app, env } = environmentOf(command);
|
|
11615
|
+
return app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
11616
|
+
}, "runMarkOf");
|
|
11518
11617
|
var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
|
|
11519
11618
|
const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
|
|
11520
11619
|
const named2 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
|
|
@@ -11590,7 +11689,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
11590
11689
|
return result;
|
|
11591
11690
|
}, "withFieldsMarked");
|
|
11592
11691
|
|
|
11593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11594
11693
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11595
11694
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11596
11695
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -11720,8 +11819,7 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
11720
11819
|
const root = rootOf2(command);
|
|
11721
11820
|
const runnableSteps = runnable(root, body.next);
|
|
11722
11821
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
11723
|
-
const
|
|
11724
|
-
const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
11822
|
+
const mark = runMarkOf(command);
|
|
11725
11823
|
const declared = untrustedFieldsOf(command);
|
|
11726
11824
|
const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
|
|
11727
11825
|
const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
|
|
@@ -11880,6 +11978,7 @@ export {
|
|
|
11880
11978
|
setExitCode,
|
|
11881
11979
|
provide,
|
|
11882
11980
|
environmentOf,
|
|
11981
|
+
withoutOwnPaging,
|
|
11883
11982
|
withAgentLevels,
|
|
11884
11983
|
secretInputOf,
|
|
11885
11984
|
outputFieldsOf,
|
|
@@ -11969,6 +12068,8 @@ export {
|
|
|
11969
12068
|
stepLine,
|
|
11970
12069
|
tooLargeSteps,
|
|
11971
12070
|
withoutProviderRefs,
|
|
12071
|
+
runMarkOf,
|
|
12072
|
+
withUntrustedMarked,
|
|
11972
12073
|
marksUntrusted,
|
|
11973
12074
|
answerSchema,
|
|
11974
12075
|
listOf,
|