@wirecat/mail-cli 0.16.3 → 0.18.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 +100 -0
- package/README.md +7 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-TUDREUUW.js → all-profiles-4CVOXA5Y.js} +10 -10
- package/dist/bundle/{anthropic-KQOVSP6C.js → anthropic-5VIKYINO.js} +6 -6
- package/dist/bundle/{app-server-QK7PKVT7.js → app-server-LTSQBDPF.js} +53 -50
- package/dist/bundle/{bun-2NMWL5YB.js → bun-C7DBRUW2.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y4FP6SDX.js → bun-sqlite-Y5JKT62B.js} +5 -5
- package/dist/bundle/{chunk-MLWN27HF.js → chunk-23HWKHPZ.js} +326 -288
- package/dist/bundle/{chunk-4IEDXIUN.js → chunk-2NWOYXPJ.js} +240 -64
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-3DQYO7FB.js} +1 -1
- package/dist/bundle/{chunk-I3K6JG4I.js → chunk-3W5H4TM7.js} +182 -60
- package/dist/bundle/{chunk-CGH6UH3T.js → chunk-3YRE6DNM.js} +8 -8
- package/dist/bundle/{chunk-LMN7SYX4.js → chunk-43I5XD7S.js} +1 -1
- package/dist/bundle/{chunk-KMZRXGTF.js → chunk-5S6Q3SWU.js} +4 -2
- package/dist/bundle/{chunk-XEIGKPYU.js → chunk-6RO5RDNR.js} +50 -3
- package/dist/bundle/{chunk-OYB3FUYQ.js → chunk-7P4ICYJT.js} +1 -1
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-7SWWVDEZ.js} +4 -4
- package/dist/bundle/{chunk-4IIH5PXR.js → chunk-A5OMARL4.js} +28 -28
- package/dist/bundle/{chunk-ZNW4E3SG.js → chunk-ACLILULA.js} +3 -3
- package/dist/bundle/{chunk-EZIJPXDZ.js → chunk-AOMSP4EI.js} +6 -6
- package/dist/bundle/{chunk-G6RG2AZV.js → chunk-BHNBWFT5.js} +55 -8
- package/dist/bundle/{chunk-FHY664YS.js → chunk-BMFPCW6Q.js} +4 -4
- package/dist/bundle/{chunk-PWTEWT4M.js → chunk-BMGVKULS.js} +4 -4
- package/dist/bundle/{chunk-QCNK3YUZ.js → chunk-BMV56JCL.js} +19 -19
- package/dist/bundle/{chunk-B2NDDA2W.js → chunk-C4RUKMDT.js} +16 -10
- package/dist/bundle/{chunk-XAANQN4R.js → chunk-C5T5K7HW.js} +208 -83
- package/dist/bundle/{chunk-7LMTWOTP.js → chunk-CPEN6BZZ.js} +2 -2
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-DALBYUPC.js} +2 -2
- package/dist/bundle/{chunk-6DVPPLAN.js → chunk-DPSH46NO.js} +5 -5
- package/dist/bundle/{chunk-VTJ5TMGN.js → chunk-EFP5NN7I.js} +3 -3
- package/dist/bundle/{chunk-KJV3BI7S.js → chunk-ERBEBORA.js} +23 -21
- package/dist/bundle/{chunk-RPEW7E3S.js → chunk-FLOOPXOT.js} +12 -12
- package/dist/bundle/{chunk-R6SBRHVG.js → chunk-GLLLYACZ.js} +6 -6
- package/dist/bundle/{chunk-WKHHCCJE.js → chunk-GRP67IQ4.js} +56 -47
- package/dist/bundle/{chunk-5KPPP3QN.js → chunk-HFUS33UT.js} +14 -2
- package/dist/bundle/{chunk-TTOKDZQX.js → chunk-HTFBXGJF.js} +2 -2
- package/dist/bundle/{chunk-N7DLDEFU.js → chunk-IANOK5SE.js} +2 -2
- package/dist/bundle/{chunk-3CVDHJER.js → chunk-ITUC5WAV.js} +1 -1
- package/dist/bundle/{chunk-POS35G6D.js → chunk-JO3BIMYK.js} +3 -3
- package/dist/bundle/{chunk-EBEYU7RW.js → chunk-KVSC657S.js} +44 -143
- package/dist/bundle/{chunk-DDQXDX4U.js → chunk-L3YX7A5M.js} +7 -7
- package/dist/bundle/{chunk-VP5FL5JQ.js → chunk-M7C4IGJ6.js} +8 -8
- package/dist/bundle/{chunk-ZS6YKNYS.js → chunk-MCR43SWG.js} +4 -4
- package/dist/bundle/{chunk-UBLFUQ7O.js → chunk-N5VEJ3E7.js} +97 -12
- package/dist/bundle/{chunk-IJYYD2JU.js → chunk-NDJZQCF3.js} +467 -231
- package/dist/bundle/{chunk-HN3EDDVX.js → chunk-OLJDZTHB.js} +13 -13
- package/dist/bundle/{chunk-3ZJE5TIG.js → chunk-OMKPALMX.js} +2 -2
- package/dist/bundle/{chunk-X7EBOXBY.js → chunk-OUGGAAXI.js} +13235 -1228
- package/dist/bundle/{chunk-YGJO5VNR.js → chunk-P6WCG6X2.js} +36 -30
- package/dist/bundle/{chunk-K2OQCQ2N.js → chunk-QPF4LTK5.js} +6 -6
- package/dist/bundle/{chunk-ARDUJR5Z.js → chunk-RIO3TD3I.js} +1 -1
- package/dist/bundle/{chunk-5FPQGUJA.js → chunk-RQSF7X22.js} +1 -1
- package/dist/bundle/{chunk-GAYW2JRW.js → chunk-SIYT2BBI.js} +10 -10
- package/dist/bundle/chunk-SMS5YNPB.js +64 -0
- package/dist/bundle/{chunk-PYX6K527.js → chunk-SW2KERUB.js} +648 -130
- package/dist/bundle/{chunk-Q4T2HBZP.js → chunk-TVZ77ZOV.js} +2 -2
- package/dist/bundle/{chunk-DKIAHQRN.js → chunk-U43HUE35.js} +9 -9
- package/dist/bundle/{chunk-CT2MIWXY.js → chunk-UEGABYXI.js} +3 -3
- package/dist/bundle/{chunk-KV4267S4.js → chunk-UHC5I3JV.js} +1 -1
- package/dist/bundle/{chunk-EDJQDR5X.js → chunk-UWL2IOII.js} +4 -4
- package/dist/bundle/{chunk-M6O4DH5F.js → chunk-UXD5JMS5.js} +1 -1
- package/dist/bundle/{chunk-ANFIIXBL.js → chunk-WA3DQSAZ.js} +2 -2
- package/dist/bundle/{chunk-FROWEHK7.js → chunk-XGTW3GRX.js} +2 -2
- package/dist/bundle/{chunk-VD6GZ3W2.js → chunk-YA2JPMYX.js} +2 -2
- package/dist/bundle/{chunk-CRYWPLJP.js → chunk-ZLH465EU.js} +1 -1
- package/dist/bundle/{chunk-HVAXTTOT.js → chunk-ZT2Y267T.js} +3 -3
- package/dist/bundle/command-contract-Y3GIKCPB.js +34 -0
- package/dist/bundle/{decode-WCS4KOHV.js → decode-WVIDLK4E.js} +5 -5
- package/dist/bundle/{dispatch-3ILCYZ4Q.js → dispatch-R5OF2FVZ.js} +8 -8
- package/dist/bundle/{dist-FL422DTA.js → dist-KGQWS3XL.js} +41 -23
- package/dist/bundle/{echarts-45D6USAX.js → echarts-VMKACZBF.js} +2 -2
- package/dist/bundle/{embed-4B4ATLCN.js → embed-EQINOOST.js} +6 -6
- package/dist/bundle/{embedder-ASWGJXNV.js → embedder-LM52TDRN.js} +9 -9
- package/dist/bundle/{failure-UDL5QZRZ.js → failure-WYKVF6RH.js} +2 -2
- package/dist/bundle/{first-run-5K3UD4BU.js → first-run-H4VXZAAF.js} +11 -11
- package/dist/bundle/first-screen-ZP74TJLK.js +32 -0
- package/dist/bundle/{instructions-6EFSPC7C.js → instructions-NLSME663.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-CFVG2OUS.js} +2 -2
- package/dist/bundle/{node-OXC26QXO.js → node-FGMSXLTA.js} +2 -2
- package/dist/bundle/{node-sqlite-PXHZAG7Y.js → node-sqlite-K3T3ZRBY.js} +6 -6
- package/dist/bundle/{oauth-YK2QLC7U.js → oauth-OJKJ6JLH.js} +7 -7
- package/dist/bundle/{open-SABDXZ4B.js → open-DCYIXHXS.js} +5 -5
- package/dist/bundle/{openai-DPURPXEU.js → openai-C4H4W57J.js} +14 -14
- package/dist/bundle/{process-YWPAOI6G.js → process-MN4NSYGA.js} +1 -1
- package/dist/bundle/{program-4ILOQHLO.js → program-ZZZOKWCX.js} +4026 -12667
- package/dist/bundle/{prompt-GKVNFGFE.js → prompt-ELEJUDAU.js} +5 -5
- package/dist/bundle/{recognize-344YDSLX.js → recognize-G2FVMI5M.js} +4 -4
- package/dist/bundle/{remote-53UZUJJU.js → remote-F4YVSEYM.js} +7 -7
- package/dist/bundle/{rerank-PAIRND6R.js → rerank-7VM5R5N6.js} +7 -7
- package/dist/bundle/{serve-DZSO7LJK.js → serve-A7NRFPRN.js} +9 -9
- package/dist/bundle/{server-EGG3V67I.js → server-7R2BEIRY.js} +39 -39
- package/dist/bundle/server-DFJA2HBO.js +64 -0
- package/dist/bundle/{sqlite-runtime-ZQ6F3VYZ.js → sqlite-runtime-4SKUB4EN.js} +6 -6
- package/dist/bundle/{state-LXPOWLZ5.js → state-S2FKK2XB.js} +6 -6
- package/dist/bundle/{store-PHT75I6S.js → store-4HAARQVR.js} +34 -26
- package/dist/bundle/{store-4ZMSK5R5.js → store-FLHO3UMA.js} +17 -15
- package/dist/bundle/store-maintenance-command-BINJIQ6F.js +54 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +56 -64
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/attachments.d.ts.map +1 -1
- package/dist/commands/attachments.js +15 -12
- package/dist/commands/attachments.js.map +1 -1
- package/dist/commands/context.d.ts +4 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +12 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/{mail → commands}/doctor.js +1 -1
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/drafts-send.d.ts.map +1 -1
- package/dist/commands/drafts-send.js +12 -10
- package/dist/commands/drafts-send.js.map +1 -1
- package/dist/commands/drafts.d.ts.map +1 -1
- package/dist/commands/drafts.js +28 -14
- package/dist/commands/drafts.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +194 -195
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +19 -32
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +10 -5
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/messages.d.ts +0 -21
- package/dist/commands/messages.d.ts.map +1 -1
- package/dist/commands/messages.js +10 -278
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/organising.d.ts +98 -0
- package/dist/commands/organising.d.ts.map +1 -0
- package/dist/commands/organising.js +231 -0
- package/dist/commands/organising.js.map +1 -0
- package/dist/commands/restore.d.ts +3 -0
- package/dist/commands/restore.d.ts.map +1 -0
- package/dist/commands/restore.js +93 -0
- package/dist/commands/restore.js.map +1 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +3 -2
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/send.d.ts +14 -3
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +18 -11
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +14 -4
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/status.js +2 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +136 -141
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts.map +1 -1
- package/dist/commands/tags.js +11 -7
- package/dist/commands/tags.js.map +1 -1
- package/dist/commands/words.d.ts +8 -0
- package/dist/commands/words.d.ts.map +1 -0
- package/dist/commands/words.js +52 -0
- package/dist/commands/words.js.map +1 -0
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +2 -1
- package/dist/discovery.js.map +1 -1
- package/dist/export/journal.d.ts +8 -6
- package/dist/export/journal.d.ts.map +1 -1
- package/dist/export/journal.js +39 -14
- package/dist/export/journal.js.map +1 -1
- package/dist/mail/changes.d.ts +9 -2
- package/dist/mail/changes.d.ts.map +1 -1
- package/dist/mail/changes.js +45 -17
- package/dist/mail/changes.js.map +1 -1
- package/dist/mail/cleanup.d.ts.map +1 -1
- package/dist/mail/cleanup.js +5 -1
- package/dist/mail/cleanup.js.map +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +24 -6
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/drafts.d.ts.map +1 -1
- package/dist/mail/drafts.js +9 -7
- package/dist/mail/drafts.js.map +1 -1
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +8 -9
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/imap/errors.d.ts.map +1 -1
- package/dist/mail/imap/errors.js +2 -2
- package/dist/mail/imap/errors.js.map +1 -1
- package/dist/mail/imap/read.d.ts.map +1 -1
- package/dist/mail/imap/read.js +8 -5
- package/dist/mail/imap/read.js.map +1 -1
- package/dist/mail/imap/write.d.ts.map +1 -1
- package/dist/mail/imap/write.js +2 -1
- package/dist/mail/imap/write.js.map +1 -1
- package/dist/mail/locate.d.ts +32 -0
- package/dist/mail/locate.d.ts.map +1 -0
- package/dist/mail/locate.js +99 -0
- package/dist/mail/locate.js.map +1 -0
- package/dist/mail/mbox.d.ts.map +1 -1
- package/dist/mail/mbox.js +7 -5
- package/dist/mail/mbox.js.map +1 -1
- package/dist/mail/organise.d.ts +35 -50
- package/dist/mail/organise.d.ts.map +1 -1
- package/dist/mail/organise.js +44 -279
- package/dist/mail/organise.js.map +1 -1
- package/dist/mail/restore.d.ts +22 -0
- package/dist/mail/restore.d.ts.map +1 -0
- package/dist/mail/restore.js +193 -0
- package/dist/mail/restore.js.map +1 -0
- package/dist/mail/rules/apply.d.ts.map +1 -1
- package/dist/mail/rules/apply.js +5 -4
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/mail/rules/file.d.ts.map +1 -1
- package/dist/mail/rules/file.js +37 -8
- package/dist/mail/rules/file.js.map +1 -1
- package/dist/mail/rules/filters.d.ts.map +1 -1
- package/dist/mail/rules/filters.js +13 -7
- package/dist/mail/rules/filters.js.map +1 -1
- package/dist/mail/rules/query.d.ts.map +1 -1
- package/dist/mail/rules/query.js +7 -7
- package/dist/mail/rules/query.js.map +1 -1
- package/dist/mail/save.js +1 -1
- package/dist/mail/save.js.map +1 -1
- package/dist/mail/send.d.ts +4 -3
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +8 -8
- package/dist/mail/send.js.map +1 -1
- package/dist/mail/smtp.js +1 -1
- package/dist/mail/smtp.js.map +1 -1
- package/dist/oauth.d.ts +3 -2
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +16 -7
- package/dist/oauth.js.map +1 -1
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +3 -2
- package/dist/profile.js.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/providers.js +3 -3
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +12 -0
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/mail-cli/SKILL.md +3 -3
- package/dist/bundle/chunk-GIKNAOER.js +0 -132
- package/dist/bundle/command-contract-GVNLRXWS.js +0 -34
- package/dist/bundle/first-screen-NNX54MYC.js +0 -32
- package/dist/bundle/server-SGGMRV2K.js +0 -64
- package/dist/bundle/store-maintenance-command-C6ONZNRX.js +0 -54
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +0 -1
- package/dist/mail/doctor.d.ts.map +0 -1
- package/dist/mail/doctor.js.map +0 -1
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-QZLK2ISN.js} +0 -0
- /package/dist/{mail → commands}/doctor.d.ts +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L3YX7A5M.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -24,31 +24,20 @@ import {
|
|
|
24
24
|
providerErrorKey,
|
|
25
25
|
renderEvent,
|
|
26
26
|
runContextOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-U43HUE35.js";
|
|
28
28
|
import {
|
|
29
29
|
permissionCeiling
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ACLILULA.js";
|
|
31
31
|
import {
|
|
32
32
|
carries
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ITUC5WAV.js";
|
|
34
34
|
import {
|
|
35
35
|
filesPresent,
|
|
36
36
|
sharedModelsDirectory
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-MCR43SWG.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
evidenceSource,
|
|
42
|
-
id,
|
|
43
|
-
note,
|
|
44
|
-
organization,
|
|
45
|
-
project,
|
|
46
|
-
providerMetadata,
|
|
47
|
-
reminder,
|
|
48
|
-
text,
|
|
49
|
-
time,
|
|
50
|
-
untrusted
|
|
51
|
-
} from "./chunk-GIKNAOER.js";
|
|
39
|
+
note
|
|
40
|
+
} from "./chunk-SMS5YNPB.js";
|
|
52
41
|
import {
|
|
53
42
|
FACT_STATUSES,
|
|
54
43
|
LINK_KINDS,
|
|
@@ -63,12 +52,27 @@ import {
|
|
|
63
52
|
TASK_STATES,
|
|
64
53
|
TASK_TYPES,
|
|
65
54
|
TASK_VERDICTS,
|
|
66
|
-
WORK_TASK_TYPES
|
|
67
|
-
|
|
55
|
+
WORK_TASK_TYPES,
|
|
56
|
+
author,
|
|
57
|
+
count,
|
|
58
|
+
evidenceSource,
|
|
59
|
+
id,
|
|
60
|
+
organization,
|
|
61
|
+
project,
|
|
62
|
+
providerMetadata,
|
|
63
|
+
reminder,
|
|
64
|
+
text,
|
|
65
|
+
time,
|
|
66
|
+
untrusted
|
|
67
|
+
} from "./chunk-N5VEJ3E7.js";
|
|
68
68
|
import {
|
|
69
69
|
FACT_TYPES,
|
|
70
70
|
FIELD_TYPES,
|
|
71
|
+
INVOICE_DIRECTIONS,
|
|
71
72
|
MEETING_RESULT_ENTITIES,
|
|
73
|
+
MONEY_DIRECTIONS,
|
|
74
|
+
ORDER_PURPOSES,
|
|
75
|
+
ORDER_STATUSES,
|
|
72
76
|
QUERY_BACKENDS,
|
|
73
77
|
TAG_TYPES,
|
|
74
78
|
describeQuery,
|
|
@@ -86,13 +90,13 @@ import {
|
|
|
86
90
|
meetingStats,
|
|
87
91
|
meetingSummary,
|
|
88
92
|
meetingTranscript
|
|
89
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-2NWOYXPJ.js";
|
|
90
94
|
import {
|
|
91
95
|
sharedConfigPath
|
|
92
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-QPF4LTK5.js";
|
|
93
97
|
import {
|
|
94
98
|
storePath
|
|
95
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-HTFBXGJF.js";
|
|
96
100
|
import {
|
|
97
101
|
configFilePath,
|
|
98
102
|
createRecordLog,
|
|
@@ -102,7 +106,7 @@ import {
|
|
|
102
106
|
saveConfigFile,
|
|
103
107
|
traceIdOf,
|
|
104
108
|
writeSecurely
|
|
105
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-BMV56JCL.js";
|
|
106
110
|
import {
|
|
107
111
|
COMPACT_FLAG,
|
|
108
112
|
MAX_NEXT_STEPS,
|
|
@@ -154,17 +158,17 @@ import {
|
|
|
154
158
|
unwrap,
|
|
155
159
|
variant,
|
|
156
160
|
writes
|
|
157
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-BHNBWFT5.js";
|
|
158
162
|
import {
|
|
159
163
|
CliError,
|
|
160
164
|
isCliError,
|
|
161
165
|
visibleControls
|
|
162
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-DALBYUPC.js";
|
|
163
167
|
import {
|
|
164
168
|
__name
|
|
165
169
|
} from "./chunk-ZVVMGPBJ.js";
|
|
166
170
|
|
|
167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
168
172
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
169
173
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
170
174
|
const name = envName(app, "READ_ONLY");
|
|
@@ -175,7 +179,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
|
|
|
175
179
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
176
180
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
177
181
|
|
|
178
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
182
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_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
|
|
179
183
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
180
184
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
181
185
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3676,7 +3680,7 @@ __name(useColor, "useColor");
|
|
|
3676
3680
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3677
3681
|
var program = new Command();
|
|
3678
3682
|
|
|
3679
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3683
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_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
|
|
3680
3684
|
var argumentInfoSchema = object({
|
|
3681
3685
|
name: string(),
|
|
3682
3686
|
required: boolean(),
|
|
@@ -3750,7 +3754,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3750
3754
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3751
3755
|
});
|
|
3752
3756
|
|
|
3753
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3757
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_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
|
|
3754
3758
|
import { isDeepStrictEqual } from "node:util";
|
|
3755
3759
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3756
3760
|
var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidden");
|
|
@@ -3859,7 +3863,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
3859
3863
|
return result;
|
|
3860
3864
|
}, "sharedCommand");
|
|
3861
3865
|
|
|
3862
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3866
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_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
|
|
3863
3867
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3864
3868
|
let command = root;
|
|
3865
3869
|
const path2 = [];
|
|
@@ -3877,7 +3881,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3877
3881
|
}
|
|
3878
3882
|
}, "refuseJoinedPath");
|
|
3879
3883
|
|
|
3880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3881
3885
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3882
3886
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3883
3887
|
messageId: message2.id,
|
|
@@ -3983,7 +3987,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
3983
3987
|
}, "guardedWrite");
|
|
3984
3988
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
3985
3989
|
|
|
3986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
3987
3991
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
3988
3992
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
3989
3993
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4166,7 +4170,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4166
4170
|
}
|
|
4167
4171
|
}, "withAbort");
|
|
4168
4172
|
|
|
4169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4170
4174
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4171
4175
|
import { join } from "node:path";
|
|
4172
4176
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4188,7 +4192,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4188
4192
|
}, "profilesWithAccounts");
|
|
4189
4193
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4190
4194
|
|
|
4191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4192
4196
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4193
4197
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4194
4198
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -4231,7 +4235,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
4231
4235
|
};
|
|
4232
4236
|
}, "runBudget");
|
|
4233
4237
|
|
|
4234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4235
4239
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4236
4240
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4237
4241
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4265,7 +4269,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4265
4269
|
cache: "cache.answered"
|
|
4266
4270
|
};
|
|
4267
4271
|
|
|
4268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4269
4273
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4270
4274
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4271
4275
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4278,13 +4282,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4278
4282
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4279
4283
|
}), "snakeLogger");
|
|
4280
4284
|
|
|
4281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4282
4286
|
import { randomUUID } from "node:crypto";
|
|
4283
4287
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4284
4288
|
import { userInfo } from "node:os";
|
|
4285
4289
|
import { join as join2, sep } from "node:path";
|
|
4286
4290
|
|
|
4287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4288
4292
|
var diagnostic = {
|
|
4289
4293
|
event: true,
|
|
4290
4294
|
operation: true,
|
|
@@ -4354,7 +4358,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4354
4358
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4355
4359
|
].sort();
|
|
4356
4360
|
|
|
4357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4358
4362
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4359
4363
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4360
4364
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -4707,7 +4711,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
4707
4711
|
};
|
|
4708
4712
|
}, "metadataOf");
|
|
4709
4713
|
|
|
4710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
4711
4715
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
4712
4716
|
import { randomBytes } from "node:crypto";
|
|
4713
4717
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -4745,7 +4749,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
4745
4749
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
4746
4750
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
4747
4751
|
|
|
4748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4749
4753
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4750
4754
|
const recording = startRecording(options);
|
|
4751
4755
|
try {
|
|
@@ -4930,7 +4934,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4930
4934
|
return void 0;
|
|
4931
4935
|
}, "partialOutcome");
|
|
4932
4936
|
|
|
4933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4934
4938
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
4935
4939
|
if (ms2 === void 0)
|
|
4936
4940
|
return body();
|
|
@@ -4956,7 +4960,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
4956
4960
|
}
|
|
4957
4961
|
}, "withDeadline");
|
|
4958
4962
|
|
|
4959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4960
4964
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4961
4965
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4962
4966
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5025,10 +5029,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5025
5029
|
return void 0;
|
|
5026
5030
|
}, "sampleCommand");
|
|
5027
5031
|
|
|
5028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5029
5033
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5030
5034
|
|
|
5031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5032
5036
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5033
5037
|
try {
|
|
5034
5038
|
const url2 = new URL(value);
|
|
@@ -5038,7 +5042,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5038
5042
|
}
|
|
5039
5043
|
}, "endpoint");
|
|
5040
5044
|
|
|
5041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5042
5046
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5043
5047
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5044
5048
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5107,7 +5111,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5107
5111
|
};
|
|
5108
5112
|
}, "modelTarget");
|
|
5109
5113
|
|
|
5110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5111
5115
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5112
5116
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5113
5117
|
var AI_FIELDS = {
|
|
@@ -5151,7 +5155,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5151
5155
|
};
|
|
5152
5156
|
}, "resolveAISettings");
|
|
5153
5157
|
|
|
5154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5155
5159
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5156
5160
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5157
5161
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5165,7 +5169,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5165
5169
|
return ms2;
|
|
5166
5170
|
}, "parseDuration");
|
|
5167
5171
|
|
|
5168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5169
5173
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5170
5174
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5171
5175
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5324,7 +5328,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5324
5328
|
var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
|
|
5325
5329
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5326
5330
|
|
|
5327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5328
5332
|
var HISTORY_MAX_DAYS = 1095;
|
|
5329
5333
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5330
5334
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -5371,7 +5375,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5371
5375
|
return { batch: { ...batch, messages }, skipped };
|
|
5372
5376
|
}, "limitBatch");
|
|
5373
5377
|
|
|
5374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
5375
5379
|
import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
5376
5380
|
import { join as join3 } from "node:path";
|
|
5377
5381
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -5460,10 +5464,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
5460
5464
|
return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
5461
5465
|
}, "registryProfiles");
|
|
5462
5466
|
|
|
5463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5464
5468
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
5465
5469
|
|
|
5466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
5467
5471
|
var REPAIR_WORDS = {
|
|
5468
5472
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
5469
5473
|
comment: "a comment, which JSON does not allow",
|
|
@@ -5704,7 +5708,7 @@ ${parts.join(",\n")}
|
|
|
5704
5708
|
${indent}${close}`;
|
|
5705
5709
|
}, "serialise");
|
|
5706
5710
|
|
|
5707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5708
5712
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5709
5713
|
var SECTIONS = ["personal", "bot"];
|
|
5710
5714
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -5998,7 +6002,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5998
6002
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5999
6003
|
}, "readConfigFile");
|
|
6000
6004
|
|
|
6001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6002
6006
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6003
6007
|
import { dirname, join as join4 } from "node:path";
|
|
6004
6008
|
var DEFAULT_CONFIG = {
|
|
@@ -6027,7 +6031,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6027
6031
|
}
|
|
6028
6032
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6029
6033
|
|
|
6030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6031
6035
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6032
6036
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6033
6037
|
const path2 = key.split(".");
|
|
@@ -6049,7 +6053,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
6049
6053
|
return { config, added };
|
|
6050
6054
|
}, "withSettingDefaults");
|
|
6051
6055
|
|
|
6052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6053
6057
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6054
6058
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6055
6059
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6559,7 +6563,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6559
6563
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6560
6564
|
}, "given");
|
|
6561
6565
|
|
|
6562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6563
6567
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
6564
6568
|
const { deadline, signal, app } = environmentOf(command);
|
|
6565
6569
|
const now = deadline?.();
|
|
@@ -6582,6 +6586,10 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
|
|
|
6582
6586
|
environments.set(program2, environment);
|
|
6583
6587
|
}, "provide");
|
|
6584
6588
|
var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
|
|
6589
|
+
var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
|
|
6590
|
+
const overrides = environmentOf(command).agent?.overrides ?? [];
|
|
6591
|
+
return overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags;
|
|
6592
|
+
}, "withAgentLevels");
|
|
6585
6593
|
var secretInputOf = /* @__PURE__ */ __name((command) => {
|
|
6586
6594
|
const { stdin, stderr } = environmentOf(command);
|
|
6587
6595
|
return { ...stdin ? { input: stdin } : {}, ...stderr ? { output: stderr } : {} };
|
|
@@ -6608,9 +6616,7 @@ var outputFor = /* @__PURE__ */ __name((command) => {
|
|
|
6608
6616
|
var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
6609
6617
|
const environment = environmentOf(command);
|
|
6610
6618
|
const env = environment.env ?? process.env;
|
|
6611
|
-
const
|
|
6612
|
-
const overrides = environment.agent?.overrides ?? [];
|
|
6613
|
-
const settings = resolveSettings(overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags, { env });
|
|
6619
|
+
const settings = resolveSettings(withAgentLevels(command, command.optsWithGlobals()), { env });
|
|
6614
6620
|
const { renderer, format, color, streams, compact, full } = resolveOutput({
|
|
6615
6621
|
...settings,
|
|
6616
6622
|
env,
|
|
@@ -6682,7 +6688,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6682
6688
|
return words.join(" ");
|
|
6683
6689
|
}, "commandPath");
|
|
6684
6690
|
|
|
6685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6686
6692
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6687
6693
|
var FETCH = { remote: "read", local: "write" };
|
|
6688
6694
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6810,7 +6816,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6810
6816
|
throw readOnlyRefusal(lock, what);
|
|
6811
6817
|
}, "refuseUnderReadOnly");
|
|
6812
6818
|
|
|
6813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6814
6820
|
var account = strictObject({
|
|
6815
6821
|
provider: text,
|
|
6816
6822
|
id,
|
|
@@ -6820,7 +6826,7 @@ var account = strictObject({
|
|
|
6820
6826
|
scope: optional(picklist(["personal", "work"]))
|
|
6821
6827
|
});
|
|
6822
6828
|
|
|
6823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6824
6830
|
var accountSession = strictObject({
|
|
6825
6831
|
current: boolean(),
|
|
6826
6832
|
client: nullable(text),
|
|
@@ -6830,7 +6836,7 @@ var accountSession = strictObject({
|
|
|
6830
6836
|
created_at: optional(nullable(time))
|
|
6831
6837
|
});
|
|
6832
6838
|
|
|
6833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6834
6840
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6835
6841
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6836
6842
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6848,7 +6854,7 @@ var accountPrivacy = strictObject({
|
|
|
6848
6854
|
});
|
|
6849
6855
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
6850
6856
|
|
|
6851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6852
6858
|
var accountProfile = strictObject({
|
|
6853
6859
|
profile: id,
|
|
6854
6860
|
current: boolean(),
|
|
@@ -6860,7 +6866,7 @@ var accountProfile = strictObject({
|
|
|
6860
6866
|
bot: optional(literal(true))
|
|
6861
6867
|
});
|
|
6862
6868
|
|
|
6863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6864
6870
|
var milliseconds = pipe(number(), minValue(0));
|
|
6865
6871
|
var counterReading = strictObject({
|
|
6866
6872
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6872,7 +6878,7 @@ var counterReading = strictObject({
|
|
|
6872
6878
|
});
|
|
6873
6879
|
var selection = record(string(), unknown());
|
|
6874
6880
|
|
|
6875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6876
6882
|
var adminRow = strictObject({
|
|
6877
6883
|
ref: reference,
|
|
6878
6884
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6925,7 +6931,7 @@ var adminReport = strictObject({
|
|
|
6925
6931
|
rows: array(adminRow)
|
|
6926
6932
|
});
|
|
6927
6933
|
|
|
6928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6929
6935
|
var closeSuggestion = strictObject({
|
|
6930
6936
|
as: picklist(["done", "dismissed"]),
|
|
6931
6937
|
/** The agent's name. */
|
|
@@ -6956,6 +6962,10 @@ var task = strictObject({
|
|
|
6956
6962
|
chat: optional(nullable(reference)),
|
|
6957
6963
|
/** The message it came from. */
|
|
6958
6964
|
source_message: optional(nullable(reference)),
|
|
6965
|
+
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
6966
|
+
external_id: optional(nullable(text)),
|
|
6967
|
+
/** The http or https page it is about, such as an Avito ad. */
|
|
6968
|
+
source_url: optional(nullable(text)),
|
|
6959
6969
|
/** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
|
|
6960
6970
|
priority: optional(nullable(number())),
|
|
6961
6971
|
priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
|
|
@@ -6983,7 +6993,7 @@ var task = strictObject({
|
|
|
6983
6993
|
updated_at: optional(time)
|
|
6984
6994
|
});
|
|
6985
6995
|
|
|
6986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6987
6997
|
var agendaChat = strictObject({
|
|
6988
6998
|
chat: reference,
|
|
6989
6999
|
title: nullable(text),
|
|
@@ -7053,11 +7063,11 @@ var agenda = strictObject({
|
|
|
7053
7063
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7054
7064
|
});
|
|
7055
7065
|
|
|
7056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7057
7067
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7058
7068
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7059
7069
|
|
|
7060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7061
7071
|
var attachment = strictObject({
|
|
7062
7072
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7063
7073
|
message: optional(reference),
|
|
@@ -7095,7 +7105,7 @@ var attachment = strictObject({
|
|
|
7095
7105
|
});
|
|
7096
7106
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7097
7107
|
|
|
7098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7099
7109
|
var actionableError = objectWithRest({
|
|
7100
7110
|
code: text,
|
|
7101
7111
|
message: text,
|
|
@@ -7112,7 +7122,7 @@ var batchResult = strictObject({
|
|
|
7112
7122
|
max_error_percent: count
|
|
7113
7123
|
});
|
|
7114
7124
|
|
|
7115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7116
7126
|
var extractionItem = strictObject({
|
|
7117
7127
|
ref: reference,
|
|
7118
7128
|
attachment: count,
|
|
@@ -7145,7 +7155,7 @@ var extractionReport = strictObject({
|
|
|
7145
7155
|
cursor: optional(text)
|
|
7146
7156
|
});
|
|
7147
7157
|
|
|
7148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7149
7159
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7150
7160
|
var attachmentBytes = strictObject({
|
|
7151
7161
|
ref: reference,
|
|
@@ -7173,7 +7183,7 @@ var attachmentTextChange = strictObject({
|
|
|
7173
7183
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7174
7184
|
});
|
|
7175
7185
|
|
|
7176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7177
7187
|
var chart = strictObject({
|
|
7178
7188
|
version: literal(1),
|
|
7179
7189
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7188,7 +7198,7 @@ var chart = strictObject({
|
|
|
7188
7198
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7189
7199
|
});
|
|
7190
7200
|
|
|
7191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7192
7202
|
var member = strictObject({
|
|
7193
7203
|
id,
|
|
7194
7204
|
name: nullable(text),
|
|
@@ -7211,7 +7221,7 @@ var member = strictObject({
|
|
|
7211
7221
|
check: optional(record(string(), unknown()))
|
|
7212
7222
|
});
|
|
7213
7223
|
|
|
7214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7215
7225
|
var setting = optional(nullable(boolean()));
|
|
7216
7226
|
var chat = strictObject({
|
|
7217
7227
|
ref: reference,
|
|
@@ -7252,7 +7262,7 @@ var chat = strictObject({
|
|
|
7252
7262
|
members: optional(array(member))
|
|
7253
7263
|
});
|
|
7254
7264
|
|
|
7255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7256
7266
|
var named = strictObject({
|
|
7257
7267
|
id,
|
|
7258
7268
|
title: nullable(text),
|
|
@@ -7275,7 +7285,7 @@ var folder = strictObject({
|
|
|
7275
7285
|
excluded_chats: optional(array(named))
|
|
7276
7286
|
});
|
|
7277
7287
|
|
|
7278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7279
7289
|
var inviteLink = strictObject({
|
|
7280
7290
|
link: text,
|
|
7281
7291
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7291,7 +7301,7 @@ var inviteLink = strictObject({
|
|
|
7291
7301
|
joined_count: optional(count)
|
|
7292
7302
|
});
|
|
7293
7303
|
|
|
7294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7295
7305
|
var operated = { operation_id: id, chat_id: id };
|
|
7296
7306
|
var group = strictObject({
|
|
7297
7307
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7371,7 +7381,7 @@ var chatFolderOrder = strictObject({
|
|
|
7371
7381
|
folders: array(strictObject({ id, title: text }))
|
|
7372
7382
|
});
|
|
7373
7383
|
|
|
7374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7375
7385
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7376
7386
|
var chatRemoval = strictObject(operated2);
|
|
7377
7387
|
var chatMuting = strictObject({
|
|
@@ -7382,7 +7392,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7382
7392
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7383
7393
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7384
7394
|
|
|
7385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7386
7396
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7387
7397
|
var chatEvent = strictObject({
|
|
7388
7398
|
chat_id: id,
|
|
@@ -7399,7 +7409,7 @@ var chatEvent = strictObject({
|
|
|
7399
7409
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7400
7410
|
});
|
|
7401
7411
|
|
|
7402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7403
7413
|
var chatMetadata = strictObject({
|
|
7404
7414
|
chat_id: id,
|
|
7405
7415
|
title: nullable(text),
|
|
@@ -7414,7 +7424,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7414
7424
|
has_more: boolean()
|
|
7415
7425
|
});
|
|
7416
7426
|
|
|
7417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7418
7428
|
var action = picklist(["report", "delete", "remove"]);
|
|
7419
7429
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7420
7430
|
var chatRules = strictObject({
|
|
@@ -7451,7 +7461,7 @@ var chatModeration = strictObject({
|
|
|
7451
7461
|
}))
|
|
7452
7462
|
});
|
|
7453
7463
|
|
|
7454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7455
7465
|
var optionalCount = optional(count);
|
|
7456
7466
|
var minutes = nullable(number());
|
|
7457
7467
|
var chatStats = strictObject({
|
|
@@ -7525,7 +7535,7 @@ var taskStats = strictObject({
|
|
|
7525
7535
|
}))
|
|
7526
7536
|
});
|
|
7527
7537
|
|
|
7528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7529
7539
|
var memberCount = strictObject({
|
|
7530
7540
|
day: pipe(text, isoDate()),
|
|
7531
7541
|
participants: nullable(count),
|
|
@@ -7548,7 +7558,7 @@ var chatTracking = strictObject({
|
|
|
7548
7558
|
tracked: boolean()
|
|
7549
7559
|
});
|
|
7550
7560
|
|
|
7551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7552
7562
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7553
7563
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7554
7564
|
var profileFields = {
|
|
@@ -7586,7 +7596,7 @@ var profileFields = {
|
|
|
7586
7596
|
}))
|
|
7587
7597
|
};
|
|
7588
7598
|
|
|
7589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7590
7600
|
var contact = strictObject({
|
|
7591
7601
|
ref: reference,
|
|
7592
7602
|
id,
|
|
@@ -7617,7 +7627,7 @@ var contact = strictObject({
|
|
|
7617
7627
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7618
7628
|
});
|
|
7619
7629
|
|
|
7620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7621
7631
|
var WEIGHTS = {
|
|
7622
7632
|
bot: 3,
|
|
7623
7633
|
scam: 3,
|
|
@@ -7642,7 +7652,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7642
7652
|
var DIGITS = /\d{5,}/;
|
|
7643
7653
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7644
7654
|
|
|
7645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
7646
7656
|
var linkedIdentity = strictObject({
|
|
7647
7657
|
provider: text,
|
|
7648
7658
|
id,
|
|
@@ -7683,7 +7693,7 @@ var contactCheck = strictObject({
|
|
|
7683
7693
|
checked_at: time
|
|
7684
7694
|
});
|
|
7685
7695
|
|
|
7686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
7687
7697
|
var quoted = strictObject({
|
|
7688
7698
|
id,
|
|
7689
7699
|
sender_id: nullable(id),
|
|
@@ -7802,7 +7812,7 @@ var message = strictObject({
|
|
|
7802
7812
|
provider_metadata: providerMetadata
|
|
7803
7813
|
});
|
|
7804
7814
|
|
|
7805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7806
7816
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7807
7817
|
var contextMessage = strictObject({
|
|
7808
7818
|
locator: reference,
|
|
@@ -8000,7 +8010,7 @@ var contactPreparation = strictObject({
|
|
|
8000
8010
|
})
|
|
8001
8011
|
});
|
|
8002
8012
|
|
|
8003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8004
8014
|
var contactNote = strictObject({
|
|
8005
8015
|
id,
|
|
8006
8016
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8012,13 +8022,13 @@ var contactNote = strictObject({
|
|
|
8012
8022
|
updated_at: time
|
|
8013
8023
|
});
|
|
8014
8024
|
|
|
8015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8016
8026
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8017
8027
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8018
8028
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8019
8029
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8020
8030
|
|
|
8021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8022
8032
|
var conversation = strictObject({
|
|
8023
8033
|
id,
|
|
8024
8034
|
chat: reference,
|
|
@@ -8033,7 +8043,7 @@ var conversation = strictObject({
|
|
|
8033
8043
|
rules_version: count
|
|
8034
8044
|
});
|
|
8035
8045
|
|
|
8036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8037
8047
|
var conversationBuild = strictObject({
|
|
8038
8048
|
chat: id,
|
|
8039
8049
|
messages: count,
|
|
@@ -8058,7 +8068,7 @@ var catchUpPreparation = strictObject({
|
|
|
8058
8068
|
prepared: optional(conversationPreparation)
|
|
8059
8069
|
});
|
|
8060
8070
|
|
|
8061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8062
8072
|
var conversationDetails = union([
|
|
8063
8073
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8064
8074
|
message
|
|
@@ -8148,7 +8158,7 @@ var conversationHit = strictObject({
|
|
|
8148
8158
|
stale: boolean()
|
|
8149
8159
|
});
|
|
8150
8160
|
|
|
8151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8152
8162
|
var counters = strictObject({
|
|
8153
8163
|
cutoff: time,
|
|
8154
8164
|
max_age_ms: milliseconds,
|
|
@@ -8178,7 +8188,94 @@ var counterRefresh = strictObject({
|
|
|
8178
8188
|
complete: optional(boolean())
|
|
8179
8189
|
});
|
|
8180
8190
|
|
|
8181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
8192
|
+
var nullableText = nullable(text);
|
|
8193
|
+
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
8194
|
+
var outcome = picklist(["open", "won", "lost"]);
|
|
8195
|
+
var crmAccount = nullable(strictObject({ provider: text, account: text }));
|
|
8196
|
+
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
8197
|
+
var deal = strictObject({
|
|
8198
|
+
id,
|
|
8199
|
+
ref: reference,
|
|
8200
|
+
kind: picklist(["deal", "lead"]),
|
|
8201
|
+
title: text,
|
|
8202
|
+
/** One line with the stage, amount and status. */
|
|
8203
|
+
summary: text,
|
|
8204
|
+
pipeline: reference,
|
|
8205
|
+
pipeline_name: text,
|
|
8206
|
+
stage: text,
|
|
8207
|
+
status: outcome,
|
|
8208
|
+
organization: nullable(party),
|
|
8209
|
+
currency: nullableText,
|
|
8210
|
+
amount: nullableText,
|
|
8211
|
+
close_date: day2,
|
|
8212
|
+
closed_date: day2,
|
|
8213
|
+
closed_reason: nullableText,
|
|
8214
|
+
rank: nullable(number()),
|
|
8215
|
+
/** A lead's deal, once it became one. */
|
|
8216
|
+
deal: nullable(reference),
|
|
8217
|
+
/** The CRM account it is a copy from; `null` for the owner's own. */
|
|
8218
|
+
account: crmAccount,
|
|
8219
|
+
external_id: nullableText,
|
|
8220
|
+
/** A CRM copy's assignee, the identity `<account>/user/<id>`. */
|
|
8221
|
+
assignee: nullableText,
|
|
8222
|
+
/** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
|
|
8223
|
+
provider_metadata: record(string(), strictObject({
|
|
8224
|
+
label: nullable(string()),
|
|
8225
|
+
value: unknown(),
|
|
8226
|
+
option_id: optional(union([string(), array(string())]))
|
|
8227
|
+
})),
|
|
8228
|
+
people: array(strictObject({ ...party.entries, role: picklist(["owner", "contact", "decision-maker"]) })),
|
|
8229
|
+
author: strictObject({
|
|
8230
|
+
type: picklist(["person", "bot"]),
|
|
8231
|
+
id,
|
|
8232
|
+
name: nullableText,
|
|
8233
|
+
kind: nullable(picklist(["agent", "rule"]))
|
|
8234
|
+
}),
|
|
8235
|
+
model: nullableText,
|
|
8236
|
+
source: text,
|
|
8237
|
+
reason: nullableText,
|
|
8238
|
+
evidence: array(reference),
|
|
8239
|
+
project: nullable(reference),
|
|
8240
|
+
project_name: nullableText,
|
|
8241
|
+
created_at: time,
|
|
8242
|
+
updated_at: time,
|
|
8243
|
+
untrusted
|
|
8244
|
+
});
|
|
8245
|
+
var lead = deal;
|
|
8246
|
+
var pipelineStage = strictObject({
|
|
8247
|
+
name: text,
|
|
8248
|
+
position: count,
|
|
8249
|
+
outcome,
|
|
8250
|
+
external_id: nullableText,
|
|
8251
|
+
/** Open deals or leads in it now. */
|
|
8252
|
+
open: count,
|
|
8253
|
+
/** With a funnel: rows that got this far, and the share of them that reached the next stage. */
|
|
8254
|
+
reached: optional(count),
|
|
8255
|
+
conversion: optional(nullable(number()))
|
|
8256
|
+
});
|
|
8257
|
+
var pipeline = strictObject({
|
|
8258
|
+
id,
|
|
8259
|
+
ref: reference,
|
|
8260
|
+
name: text,
|
|
8261
|
+
kind: picklist(["deal", "lead"]),
|
|
8262
|
+
account: crmAccount,
|
|
8263
|
+
external_id: nullableText,
|
|
8264
|
+
stages: array(pipelineStage),
|
|
8265
|
+
created_at: time,
|
|
8266
|
+
totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
|
|
8267
|
+
since: optional(day2),
|
|
8268
|
+
untrusted
|
|
8269
|
+
});
|
|
8270
|
+
var stage = strictObject({
|
|
8271
|
+
...pipelineStage.entries,
|
|
8272
|
+
pipeline: reference,
|
|
8273
|
+
pipeline_name: text,
|
|
8274
|
+
kind: picklist(["deal", "lead"]),
|
|
8275
|
+
untrusted
|
|
8276
|
+
});
|
|
8277
|
+
|
|
8278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8182
8279
|
var document = strictObject({
|
|
8183
8280
|
ref: reference,
|
|
8184
8281
|
id,
|
|
@@ -8193,7 +8290,7 @@ var document = strictObject({
|
|
|
8193
8290
|
owners: optional(array(text))
|
|
8194
8291
|
});
|
|
8195
8292
|
|
|
8196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8197
8294
|
var documentLink = strictObject({
|
|
8198
8295
|
ref: reference,
|
|
8199
8296
|
url: text,
|
|
@@ -8204,7 +8301,7 @@ var documentLink = strictObject({
|
|
|
8204
8301
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8205
8302
|
});
|
|
8206
8303
|
|
|
8207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8208
8305
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8209
8306
|
var contribution = strictObject({
|
|
8210
8307
|
message: evidenceMessage,
|
|
@@ -8234,7 +8331,7 @@ var retentionStay = strictObject({
|
|
|
8234
8331
|
});
|
|
8235
8332
|
var evidence = union([contribution, retentionStay]);
|
|
8236
8333
|
|
|
8237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8238
8335
|
var fact = strictObject({
|
|
8239
8336
|
ref: reference,
|
|
8240
8337
|
id,
|
|
@@ -8264,9 +8361,9 @@ var fact = strictObject({
|
|
|
8264
8361
|
updated_at: time
|
|
8265
8362
|
});
|
|
8266
8363
|
|
|
8267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8268
8365
|
var hit = strictObject({
|
|
8269
|
-
kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
|
|
8366
|
+
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
|
|
8270
8367
|
ref: reference,
|
|
8271
8368
|
provider: text,
|
|
8272
8369
|
url: optional(text),
|
|
@@ -8302,7 +8399,7 @@ var hit = strictObject({
|
|
|
8302
8399
|
untrusted
|
|
8303
8400
|
});
|
|
8304
8401
|
|
|
8305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8306
8403
|
var identity = strictObject({
|
|
8307
8404
|
ref: reference,
|
|
8308
8405
|
provider: text,
|
|
@@ -8315,7 +8412,7 @@ var identity = strictObject({
|
|
|
8315
8412
|
person: optional(nullable(reference))
|
|
8316
8413
|
});
|
|
8317
8414
|
|
|
8318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8319
8416
|
var imageEmbedding = strictObject({
|
|
8320
8417
|
model: text,
|
|
8321
8418
|
embedded: count,
|
|
@@ -8324,13 +8421,13 @@ var imageEmbedding = strictObject({
|
|
|
8324
8421
|
more: boolean()
|
|
8325
8422
|
});
|
|
8326
8423
|
|
|
8327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8328
8425
|
import { spawn } from "node:child_process";
|
|
8329
8426
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8330
8427
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8331
8428
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8332
8429
|
|
|
8333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8334
8431
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8335
8432
|
const total = input.total ?? null;
|
|
8336
8433
|
const updated = input.updatedAt ?? null;
|
|
@@ -8346,7 +8443,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8346
8443
|
};
|
|
8347
8444
|
}, "progressOf");
|
|
8348
8445
|
|
|
8349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8350
8447
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8351
8448
|
const run = currentRun();
|
|
8352
8449
|
const trace = traceId ?? run.traceId;
|
|
@@ -8360,7 +8457,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8360
8457
|
}));
|
|
8361
8458
|
}, "recordLogFor");
|
|
8362
8459
|
|
|
8363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8364
8461
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8365
8462
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8366
8463
|
const out = openSync(log, "a", 384);
|
|
@@ -8410,11 +8507,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
|
|
|
8410
8507
|
const job2 = readJob(dir, id6);
|
|
8411
8508
|
if (!job2)
|
|
8412
8509
|
return;
|
|
8413
|
-
const
|
|
8510
|
+
const outcome4 = stateOf(job2);
|
|
8414
8511
|
recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
|
|
8415
8512
|
event: "job.exit",
|
|
8416
8513
|
job: id6,
|
|
8417
|
-
outcome:
|
|
8514
|
+
outcome: outcome4,
|
|
8418
8515
|
...job2.error ? { errorCode: job2.error.code } : {}
|
|
8419
8516
|
});
|
|
8420
8517
|
}, "finishJob");
|
|
@@ -8515,7 +8612,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8515
8612
|
return { job: id6, pid, chat: input.chat, log };
|
|
8516
8613
|
}, "startArchiveJob");
|
|
8517
8614
|
|
|
8518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8519
8616
|
var problem = strictObject({ code: text, message: text });
|
|
8520
8617
|
var job = strictObject({
|
|
8521
8618
|
id,
|
|
@@ -8538,7 +8635,7 @@ var job = strictObject({
|
|
|
8538
8635
|
error: optional(problem)
|
|
8539
8636
|
});
|
|
8540
8637
|
|
|
8541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8542
8639
|
var joinRequest = strictObject({
|
|
8543
8640
|
person_id: id,
|
|
8544
8641
|
name: nullable(text),
|
|
@@ -8549,7 +8646,7 @@ var joinRequest = strictObject({
|
|
|
8549
8646
|
about: optional(text)
|
|
8550
8647
|
});
|
|
8551
8648
|
|
|
8552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8553
8650
|
var botProfile = strictObject({
|
|
8554
8651
|
name: text,
|
|
8555
8652
|
token: text,
|
|
@@ -8580,6 +8677,10 @@ var scheduledJob = strictObject({
|
|
|
8580
8677
|
name: text,
|
|
8581
8678
|
kind: picklist(["command", "agent"]),
|
|
8582
8679
|
when: text,
|
|
8680
|
+
/** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
|
|
8681
|
+
notify: optional(picklist(["always", "failures", "never"])),
|
|
8682
|
+
/** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
|
|
8683
|
+
deliver_to: optional(array(text)),
|
|
8583
8684
|
last: nullable(strictObject({
|
|
8584
8685
|
at: time,
|
|
8585
8686
|
exit_code: number(),
|
|
@@ -8588,8 +8689,29 @@ var scheduledJob = strictObject({
|
|
|
8588
8689
|
reason: optional(text),
|
|
8589
8690
|
error_code: optional(text),
|
|
8590
8691
|
failing_since: optional(time),
|
|
8591
|
-
failures: optional(number())
|
|
8592
|
-
|
|
8692
|
+
failures: optional(number()),
|
|
8693
|
+
cost_usd: optional(number()),
|
|
8694
|
+
/** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
|
|
8695
|
+
skipped: optional(strictObject({
|
|
8696
|
+
at: time,
|
|
8697
|
+
why: text,
|
|
8698
|
+
/** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
|
|
8699
|
+
reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
|
|
8700
|
+
})),
|
|
8701
|
+
/** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
|
|
8702
|
+
deliveries: optional(array(strictObject({
|
|
8703
|
+
to: text,
|
|
8704
|
+
ok: boolean(),
|
|
8705
|
+
reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/))),
|
|
8706
|
+
error: optional(text)
|
|
8707
|
+
})))
|
|
8708
|
+
})),
|
|
8709
|
+
/** Agent schedules: what today's runs cost, in US dollars. */
|
|
8710
|
+
spent_today_usd: optional(number()),
|
|
8711
|
+
/** Agent schedules: the cap on one run (`--max-cost`), null when none. */
|
|
8712
|
+
max_cost_usd: optional(nullable(number())),
|
|
8713
|
+
/** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
|
|
8714
|
+
max_cost_per_day_usd: optional(number())
|
|
8593
8715
|
});
|
|
8594
8716
|
var botTemplate = strictObject({
|
|
8595
8717
|
name: nullable(text),
|
|
@@ -8617,7 +8739,7 @@ var stickerInventory = strictObject({
|
|
|
8617
8739
|
url: optional(nullable(text))
|
|
8618
8740
|
});
|
|
8619
8741
|
|
|
8620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8621
8743
|
var pollVote = strictObject({
|
|
8622
8744
|
person_id: id,
|
|
8623
8745
|
name: nullable(text),
|
|
@@ -8627,7 +8749,7 @@ var pollVote = strictObject({
|
|
|
8627
8749
|
voted_at: time
|
|
8628
8750
|
});
|
|
8629
8751
|
|
|
8630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8631
8753
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8632
8754
|
var observation = strictObject({
|
|
8633
8755
|
value: pipe(number(), minValue(0)),
|
|
@@ -8669,7 +8791,7 @@ var serveSummary = strictObject({
|
|
|
8669
8791
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8670
8792
|
});
|
|
8671
8793
|
|
|
8672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8673
8795
|
var mailCounts = strictObject({
|
|
8674
8796
|
by: picklist(["day", "week", "sender"]),
|
|
8675
8797
|
received: count,
|
|
@@ -8684,7 +8806,7 @@ var mailCounts = strictObject({
|
|
|
8684
8806
|
}))
|
|
8685
8807
|
});
|
|
8686
8808
|
|
|
8687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8688
8810
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8689
8811
|
var base = { id, evidence: array(evidence2) };
|
|
8690
8812
|
var finding = variant("kind", [
|
|
@@ -8699,7 +8821,11 @@ var finding = variant("kind", [
|
|
|
8699
8821
|
due_at: optional(time),
|
|
8700
8822
|
due_evidence: optional(array(reference)),
|
|
8701
8823
|
assignee: optional(reference),
|
|
8702
|
-
assignee_evidence: optional(array(reference))
|
|
8824
|
+
assignee_evidence: optional(array(reference)),
|
|
8825
|
+
/** `<service>:<id>` in the outside service the mail came from, such as `avito:4512345678`. */
|
|
8826
|
+
external_id: optional(text),
|
|
8827
|
+
/** The http or https page the task is about, such as the conversation the mail links to. */
|
|
8828
|
+
source_url: optional(text)
|
|
8703
8829
|
}),
|
|
8704
8830
|
strictObject({
|
|
8705
8831
|
...base,
|
|
@@ -8707,7 +8833,9 @@ var finding = variant("kind", [
|
|
|
8707
8833
|
project: optional(reference),
|
|
8708
8834
|
subject: optional(reference),
|
|
8709
8835
|
type: picklist(FACT_TYPES),
|
|
8710
|
-
statement: text
|
|
8836
|
+
statement: text,
|
|
8837
|
+
/** Every new finding gives one; a batch staged before reason was needed on every kind has none. */
|
|
8838
|
+
reason: optional(text)
|
|
8711
8839
|
}),
|
|
8712
8840
|
strictObject({
|
|
8713
8841
|
...base,
|
|
@@ -8725,12 +8853,84 @@ var finding = variant("kind", [
|
|
|
8725
8853
|
scope: picklist(MEMORY_SCOPES),
|
|
8726
8854
|
body: text,
|
|
8727
8855
|
subject: optional(reference),
|
|
8728
|
-
project: optional(reference)
|
|
8856
|
+
project: optional(reference),
|
|
8857
|
+
reason: optional(text)
|
|
8729
8858
|
}),
|
|
8730
8859
|
strictObject({ ...base, kind: literal("link"), from: reference, to: reference, reason: text }),
|
|
8731
|
-
strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) })
|
|
8860
|
+
strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) }),
|
|
8861
|
+
strictObject({
|
|
8862
|
+
...base,
|
|
8863
|
+
kind: literal("invoice"),
|
|
8864
|
+
direction: picklist(INVOICE_DIRECTIONS),
|
|
8865
|
+
counterparty: optional(reference),
|
|
8866
|
+
/** A counterparty the store may not hold yet; the owner's accept finds its organization or makes one. */
|
|
8867
|
+
counterparty_name: optional(text),
|
|
8868
|
+
counterparty_email: optional(text),
|
|
8869
|
+
currency: text,
|
|
8870
|
+
lines: array(strictObject({
|
|
8871
|
+
description: text,
|
|
8872
|
+
quantity: optional(text),
|
|
8873
|
+
unit_price: optional(text),
|
|
8874
|
+
amount: optional(text)
|
|
8875
|
+
})),
|
|
8876
|
+
total: optional(text),
|
|
8877
|
+
number: optional(text),
|
|
8878
|
+
issue_date: optional(text),
|
|
8879
|
+
due_date: optional(text),
|
|
8880
|
+
project: optional(reference),
|
|
8881
|
+
reason: text
|
|
8882
|
+
}),
|
|
8883
|
+
strictObject({
|
|
8884
|
+
...base,
|
|
8885
|
+
kind: literal("payment"),
|
|
8886
|
+
direction: picklist(MONEY_DIRECTIONS),
|
|
8887
|
+
payer: optional(reference),
|
|
8888
|
+
payer_name: optional(text),
|
|
8889
|
+
payer_email: optional(text),
|
|
8890
|
+
payee: optional(reference),
|
|
8891
|
+
payee_name: optional(text),
|
|
8892
|
+
payee_email: optional(text),
|
|
8893
|
+
amount: text,
|
|
8894
|
+
currency: text,
|
|
8895
|
+
date: text,
|
|
8896
|
+
reference: optional(text),
|
|
8897
|
+
allocations: optional(array(strictObject({ invoice: reference, amount: text }))),
|
|
8898
|
+
project: optional(reference),
|
|
8899
|
+
reason: text
|
|
8900
|
+
}),
|
|
8901
|
+
strictObject({
|
|
8902
|
+
...base,
|
|
8903
|
+
kind: literal("order"),
|
|
8904
|
+
purpose: picklist(ORDER_PURPOSES),
|
|
8905
|
+
customer: optional(reference),
|
|
8906
|
+
customer_name: optional(text),
|
|
8907
|
+
customer_email: optional(text),
|
|
8908
|
+
supplier: optional(reference),
|
|
8909
|
+
supplier_name: text,
|
|
8910
|
+
number: optional(text),
|
|
8911
|
+
total: optional(text),
|
|
8912
|
+
currency: optional(text),
|
|
8913
|
+
status: optional(picklist(ORDER_STATUSES)),
|
|
8914
|
+
order_date: optional(text),
|
|
8915
|
+
fulfilled_date: optional(text),
|
|
8916
|
+
invoice: optional(reference),
|
|
8917
|
+
payment: optional(reference),
|
|
8918
|
+
project: optional(reference),
|
|
8919
|
+
/** The order's page at the shop, http or https. */
|
|
8920
|
+
source_url: optional(text),
|
|
8921
|
+
reason: text
|
|
8922
|
+
}),
|
|
8923
|
+
strictObject({
|
|
8924
|
+
...base,
|
|
8925
|
+
kind: literal("order_update"),
|
|
8926
|
+
supplier_name: text,
|
|
8927
|
+
number: text,
|
|
8928
|
+
status: picklist(ORDER_STATUSES),
|
|
8929
|
+
date: optional(text),
|
|
8930
|
+
reason: text
|
|
8931
|
+
})
|
|
8732
8932
|
]);
|
|
8733
|
-
var
|
|
8933
|
+
var outcome2 = strictObject({
|
|
8734
8934
|
id,
|
|
8735
8935
|
fingerprint: text,
|
|
8736
8936
|
status: picklist(["accepted", "rejected"]),
|
|
@@ -8746,11 +8946,11 @@ var mailFindings = strictObject({
|
|
|
8746
8946
|
author,
|
|
8747
8947
|
decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
|
|
8748
8948
|
decided_at: nullable(time),
|
|
8749
|
-
previous: array(
|
|
8750
|
-
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(
|
|
8949
|
+
previous: array(outcome2),
|
|
8950
|
+
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8751
8951
|
});
|
|
8752
8952
|
|
|
8753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8754
8954
|
var mediaArchive = strictObject({
|
|
8755
8955
|
directory: text,
|
|
8756
8956
|
chats: count,
|
|
@@ -8782,7 +8982,7 @@ var mediaArchiveTimer = union([
|
|
|
8782
8982
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
8783
8983
|
]);
|
|
8784
8984
|
|
|
8785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
8786
8986
|
var preparationId = pipe(string(), minLength(1));
|
|
8787
8987
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
8788
8988
|
var preparationTime = nullable(isoTime);
|
|
@@ -8874,7 +9074,7 @@ var preparationMeeting = strictObject({
|
|
|
8874
9074
|
updated_at: isoTime
|
|
8875
9075
|
});
|
|
8876
9076
|
|
|
8877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
8878
9078
|
var meetingEvidence = preparationEvidence;
|
|
8879
9079
|
var meetingPersonContext = strictObject({
|
|
8880
9080
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -8896,7 +9096,7 @@ var meetingPersonContext = strictObject({
|
|
|
8896
9096
|
})
|
|
8897
9097
|
});
|
|
8898
9098
|
|
|
8899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
8900
9100
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
8901
9101
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
8902
9102
|
var finding2 = variant("kind", [
|
|
@@ -8914,7 +9114,7 @@ var finding2 = variant("kind", [
|
|
|
8914
9114
|
assignee_evidence: optional(array(reference))
|
|
8915
9115
|
})
|
|
8916
9116
|
]);
|
|
8917
|
-
var
|
|
9117
|
+
var outcome3 = strictObject({
|
|
8918
9118
|
id,
|
|
8919
9119
|
fingerprint: text,
|
|
8920
9120
|
status: picklist(["accepted", "rejected"]),
|
|
@@ -8930,11 +9130,11 @@ var meetingFindings = strictObject({
|
|
|
8930
9130
|
author,
|
|
8931
9131
|
decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
|
|
8932
9132
|
decided_at: nullable(time),
|
|
8933
|
-
previous: array(
|
|
8934
|
-
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(
|
|
9133
|
+
previous: array(outcome3),
|
|
9134
|
+
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
8935
9135
|
});
|
|
8936
9136
|
|
|
8937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
8938
9138
|
var communicationCoverage = strictObject({
|
|
8939
9139
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
8940
9140
|
query: string(),
|
|
@@ -8979,7 +9179,7 @@ var preparationCommunications = strictObject({
|
|
|
8979
9179
|
}))
|
|
8980
9180
|
});
|
|
8981
9181
|
|
|
8982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
8983
9183
|
var meetingPreparation = strictObject({
|
|
8984
9184
|
communications: optional(preparationCommunications),
|
|
8985
9185
|
schema_version: literal(1),
|
|
@@ -9092,7 +9292,7 @@ var meetingPreparation = strictObject({
|
|
|
9092
9292
|
})
|
|
9093
9293
|
});
|
|
9094
9294
|
|
|
9095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9096
9296
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9097
9297
|
var id3 = pipe(string(), minLength(1));
|
|
9098
9298
|
var text3 = string();
|
|
@@ -9156,7 +9356,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9156
9356
|
})
|
|
9157
9357
|
});
|
|
9158
9358
|
|
|
9159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9160
9360
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9161
9361
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9162
9362
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9186,7 +9386,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9186
9386
|
})
|
|
9187
9387
|
});
|
|
9188
9388
|
|
|
9189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9190
9390
|
var text4 = string();
|
|
9191
9391
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9192
9392
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9203,7 +9403,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9203
9403
|
persistence: literal("proposal-only")
|
|
9204
9404
|
});
|
|
9205
9405
|
|
|
9206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9207
9407
|
var memory = strictObject({
|
|
9208
9408
|
ref: reference,
|
|
9209
9409
|
id,
|
|
@@ -9230,7 +9430,7 @@ var memory = strictObject({
|
|
|
9230
9430
|
updated_at: time
|
|
9231
9431
|
});
|
|
9232
9432
|
|
|
9233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9234
9434
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9235
9435
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9236
9436
|
var mention = strictObject({
|
|
@@ -9273,13 +9473,13 @@ var mentionRebuild = strictObject({
|
|
|
9273
9473
|
mentions: count
|
|
9274
9474
|
});
|
|
9275
9475
|
|
|
9276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9277
9477
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9278
9478
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9279
9479
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9280
9480
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9281
9481
|
|
|
9282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9283
9483
|
var messageTranscript = strictObject({
|
|
9284
9484
|
message_id: id,
|
|
9285
9485
|
text,
|
|
@@ -9337,7 +9537,7 @@ var evidencePacket = strictObject({
|
|
|
9337
9537
|
}))
|
|
9338
9538
|
});
|
|
9339
9539
|
|
|
9340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9341
9541
|
var messageThread = strictObject({
|
|
9342
9542
|
ref: reference,
|
|
9343
9543
|
chat: id,
|
|
@@ -9354,7 +9554,7 @@ var messageThread = strictObject({
|
|
|
9354
9554
|
});
|
|
9355
9555
|
var messageContext = union([message, messageThread]);
|
|
9356
9556
|
|
|
9357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9358
9558
|
var messageCounts = strictObject({
|
|
9359
9559
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9360
9560
|
total: count,
|
|
@@ -9367,7 +9567,7 @@ var messageCounts = strictObject({
|
|
|
9367
9567
|
}))
|
|
9368
9568
|
});
|
|
9369
9569
|
|
|
9370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9371
9571
|
var messageLink = strictObject({
|
|
9372
9572
|
ref: reference,
|
|
9373
9573
|
url: nullable(text),
|
|
@@ -9384,7 +9584,7 @@ var messageLink = strictObject({
|
|
|
9384
9584
|
})))
|
|
9385
9585
|
});
|
|
9386
9586
|
|
|
9387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9388
9588
|
var savedMessageFile = strictObject({
|
|
9389
9589
|
kind: text,
|
|
9390
9590
|
path: text,
|
|
@@ -9471,7 +9671,7 @@ var messageSyncAll = strictObject({
|
|
|
9471
9671
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9472
9672
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9473
9673
|
|
|
9474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9475
9675
|
var messageWrite = strictObject({
|
|
9476
9676
|
operation_id: id,
|
|
9477
9677
|
message,
|
|
@@ -9486,7 +9686,7 @@ var draftWrite = strictObject({
|
|
|
9486
9686
|
});
|
|
9487
9687
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9488
9688
|
|
|
9489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9490
9690
|
var model2 = strictObject({
|
|
9491
9691
|
id,
|
|
9492
9692
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9503,7 +9703,7 @@ var model2 = strictObject({
|
|
|
9503
9703
|
path: text
|
|
9504
9704
|
});
|
|
9505
9705
|
|
|
9506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9507
9707
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9508
9708
|
var modelKey = strictObject({
|
|
9509
9709
|
provider: text,
|
|
@@ -9513,7 +9713,7 @@ var modelKey = strictObject({
|
|
|
9513
9713
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9514
9714
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9515
9715
|
|
|
9516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9517
9717
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9518
9718
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9519
9719
|
var graph = strictObject({
|
|
@@ -9547,14 +9747,14 @@ var officialStats = strictObject({
|
|
|
9547
9747
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9548
9748
|
});
|
|
9549
9749
|
|
|
9550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9551
9751
|
var person2 = strictObject({
|
|
9552
9752
|
ref: reference,
|
|
9553
9753
|
name: nullable(text),
|
|
9554
9754
|
identities: optional(array(identity))
|
|
9555
9755
|
});
|
|
9556
9756
|
|
|
9557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9558
9758
|
var poll = strictObject({
|
|
9559
9759
|
chat_id: id,
|
|
9560
9760
|
message_id: id,
|
|
@@ -9570,11 +9770,11 @@ var poll = strictObject({
|
|
|
9570
9770
|
});
|
|
9571
9771
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9572
9772
|
|
|
9573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9574
9774
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9575
9775
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9576
9776
|
|
|
9577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9578
9778
|
var figures = record(string(), number());
|
|
9579
9779
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9580
9780
|
var rankingRow = strictObject({
|
|
@@ -9621,7 +9821,7 @@ var ranking = strictObject({
|
|
|
9621
9821
|
rows: array(rankingRow)
|
|
9622
9822
|
});
|
|
9623
9823
|
|
|
9624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9625
9825
|
var reaction = strictObject({
|
|
9626
9826
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9627
9827
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9629,7 +9829,7 @@ var reaction = strictObject({
|
|
|
9629
9829
|
reacted_at: time
|
|
9630
9830
|
});
|
|
9631
9831
|
|
|
9632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9633
9833
|
var reactionChange = strictObject({
|
|
9634
9834
|
operation_id: id,
|
|
9635
9835
|
chat_id: id,
|
|
@@ -9637,7 +9837,7 @@ var reactionChange = strictObject({
|
|
|
9637
9837
|
reaction: nullable(text)
|
|
9638
9838
|
});
|
|
9639
9839
|
|
|
9640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9641
9841
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9642
9842
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9643
9843
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9648,7 +9848,7 @@ var recipientChange = strictObject({
|
|
|
9648
9848
|
...partial(recipientOff).entries
|
|
9649
9849
|
});
|
|
9650
9850
|
|
|
9651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9652
9852
|
var events = array(record(string(), unknown()));
|
|
9653
9853
|
var recordedRun = strictObject({
|
|
9654
9854
|
run_id: id,
|
|
@@ -9720,7 +9920,7 @@ var runHit = strictObject({
|
|
|
9720
9920
|
});
|
|
9721
9921
|
var runLocation = strictObject({ path: text });
|
|
9722
9922
|
|
|
9723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9724
9924
|
var relationship = strictObject({
|
|
9725
9925
|
id,
|
|
9726
9926
|
from: reference,
|
|
@@ -9737,7 +9937,7 @@ var relationship = strictObject({
|
|
|
9737
9937
|
created_at: time
|
|
9738
9938
|
});
|
|
9739
9939
|
|
|
9740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
9741
9941
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9742
9942
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9743
9943
|
var responseTimes = strictObject({
|
|
@@ -9754,7 +9954,7 @@ var waitingChats = strictObject({
|
|
|
9754
9954
|
by_kind: strictObject({ private: count, group: count })
|
|
9755
9955
|
});
|
|
9756
9956
|
|
|
9757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9758
9958
|
var retentionCohort = strictObject({
|
|
9759
9959
|
/** The first day of the joining day or week. */
|
|
9760
9960
|
cohort: text,
|
|
@@ -9802,7 +10002,7 @@ var retention = strictObject({
|
|
|
9802
10002
|
rows: array(retentionCohort)
|
|
9803
10003
|
});
|
|
9804
10004
|
|
|
9805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
9806
10006
|
var savedSearch = strictObject({
|
|
9807
10007
|
id,
|
|
9808
10008
|
/** `null` for a run in the history. */
|
|
@@ -9819,7 +10019,7 @@ var savedSearch = strictObject({
|
|
|
9819
10019
|
});
|
|
9820
10020
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
9821
10021
|
|
|
9822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
9823
10023
|
var sendAttempt = strictObject({
|
|
9824
10024
|
at: time,
|
|
9825
10025
|
profile: text,
|
|
@@ -9847,7 +10047,7 @@ var sendAttempt = strictObject({
|
|
|
9847
10047
|
error_code: optional(text)
|
|
9848
10048
|
});
|
|
9849
10049
|
|
|
9850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
9851
10051
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
9852
10052
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
9853
10053
|
var infoSchema = strictObject({
|
|
@@ -10002,12 +10202,25 @@ var storeBackup = strictObject({
|
|
|
10002
10202
|
encrypted: optional(literal(true))
|
|
10003
10203
|
});
|
|
10004
10204
|
var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
|
|
10005
|
-
var storeRestore =
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10205
|
+
var storeRestore = union([
|
|
10206
|
+
strictObject({
|
|
10207
|
+
path: text,
|
|
10208
|
+
restored_from: text,
|
|
10209
|
+
kept_at: nullable(text),
|
|
10210
|
+
schema: count
|
|
10211
|
+
}),
|
|
10212
|
+
/** From a rollback copy: its tables put back in place, the store returned to `schema` from `was`. */
|
|
10213
|
+
strictObject({
|
|
10214
|
+
path: text,
|
|
10215
|
+
restored_from: text,
|
|
10216
|
+
rolled_back: literal(true),
|
|
10217
|
+
schema: count,
|
|
10218
|
+
was: count,
|
|
10219
|
+
tables: array(strictObject({ table: text, rows: count })),
|
|
10220
|
+
rebuilt: array(text),
|
|
10221
|
+
foreign_key_violations: count
|
|
10222
|
+
})
|
|
10223
|
+
]);
|
|
10011
10224
|
var storeReset = union([
|
|
10012
10225
|
strictObject({ ...absent.entries, reset: literal(false) }),
|
|
10013
10226
|
strictObject({
|
|
@@ -10055,7 +10268,7 @@ var storeRepair = union([
|
|
|
10055
10268
|
]);
|
|
10056
10269
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10057
10270
|
|
|
10058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10059
10272
|
var range = strictObject({ from: number(), to: number() });
|
|
10060
10273
|
var storeChatStatus = strictObject({
|
|
10061
10274
|
chat_id: id,
|
|
@@ -10153,7 +10366,7 @@ var storeJobRetry = union([
|
|
|
10153
10366
|
]);
|
|
10154
10367
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10155
10368
|
|
|
10156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10157
10370
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10158
10371
|
var storeTable = strictObject({
|
|
10159
10372
|
name: text,
|
|
@@ -10162,7 +10375,7 @@ var storeTable = strictObject({
|
|
|
10162
10375
|
bytes: optional(nullable(count))
|
|
10163
10376
|
});
|
|
10164
10377
|
|
|
10165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10166
10379
|
var tagTarget = variant("type", [
|
|
10167
10380
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10168
10381
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10193,7 +10406,7 @@ var automaticTags = strictObject({
|
|
|
10193
10406
|
dry_run: boolean()
|
|
10194
10407
|
});
|
|
10195
10408
|
|
|
10196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10197
10410
|
var tagging = strictObject({
|
|
10198
10411
|
tag: text,
|
|
10199
10412
|
type: picklist(TAG_TYPES),
|
|
@@ -10206,7 +10419,7 @@ var tagging = strictObject({
|
|
|
10206
10419
|
created_at: time
|
|
10207
10420
|
});
|
|
10208
10421
|
|
|
10209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10210
10423
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10211
10424
|
var taskPair = strictObject({
|
|
10212
10425
|
task: nullable(side),
|
|
@@ -10229,7 +10442,7 @@ var taskPair = strictObject({
|
|
|
10229
10442
|
created_at: time
|
|
10230
10443
|
});
|
|
10231
10444
|
|
|
10232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10233
10446
|
var nullableTime = nullable(time);
|
|
10234
10447
|
var link = strictObject({
|
|
10235
10448
|
id,
|
|
@@ -10264,6 +10477,10 @@ var taskCard = strictObject({
|
|
|
10264
10477
|
revision: number(),
|
|
10265
10478
|
parent: nullable(reference),
|
|
10266
10479
|
source: nullable(text),
|
|
10480
|
+
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
10481
|
+
external_id: nullable(text),
|
|
10482
|
+
/** The http or https page it is about, such as an Avito ad. */
|
|
10483
|
+
source_url: nullable(text),
|
|
10267
10484
|
due_at: nullableTime,
|
|
10268
10485
|
next_check_at: nullableTime,
|
|
10269
10486
|
closed_at: nullableTime,
|
|
@@ -10399,7 +10616,7 @@ var taskReview = strictObject({
|
|
|
10399
10616
|
untrusted
|
|
10400
10617
|
});
|
|
10401
10618
|
|
|
10402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10403
10620
|
var topic = strictObject({
|
|
10404
10621
|
id,
|
|
10405
10622
|
title: text,
|
|
@@ -10413,9 +10630,13 @@ var topic = strictObject({
|
|
|
10413
10630
|
untrusted
|
|
10414
10631
|
});
|
|
10415
10632
|
|
|
10416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10417
10634
|
var ENTITIES = {
|
|
10418
10635
|
sync_progress: progress,
|
|
10636
|
+
deal,
|
|
10637
|
+
lead,
|
|
10638
|
+
pipeline,
|
|
10639
|
+
stage,
|
|
10419
10640
|
...MEETING_RESULT_ENTITIES,
|
|
10420
10641
|
message,
|
|
10421
10642
|
message_context: messageContext,
|
|
@@ -10695,7 +10916,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10695
10916
|
return [name, definition];
|
|
10696
10917
|
})), "entityDefinitions");
|
|
10697
10918
|
|
|
10698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10699
10920
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10700
10921
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10701
10922
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10729,7 +10950,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10729
10950
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10730
10951
|
}, "answerRow");
|
|
10731
10952
|
|
|
10732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
10733
10954
|
import { join as join6 } from "node:path";
|
|
10734
10955
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
10735
10956
|
var IMAGE_MODELS = [
|
|
@@ -10783,7 +11004,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
10783
11004
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
10784
11005
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
10785
11006
|
|
|
10786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10787
11008
|
var STEPS2 = defineSteps([
|
|
10788
11009
|
...STEPS,
|
|
10789
11010
|
{
|
|
@@ -11064,29 +11285,20 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11064
11285
|
].join(" ");
|
|
11065
11286
|
}, "stepLine");
|
|
11066
11287
|
|
|
11067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11068
|
-
var where = [{ field: "ref" }
|
|
11288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11289
|
+
var where = [{ field: "ref" }];
|
|
11069
11290
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11291
|
+
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
11070
11292
|
var STATUS_SIGNAL_ROWS = {
|
|
11071
|
-
"status.last-message": { columns: [...where, { field: "at", as: "time" }, who2] },
|
|
11072
|
-
"status.reply-next": {
|
|
11073
|
-
columns: [
|
|
11074
|
-
...where,
|
|
11075
|
-
{ field: "data.next" },
|
|
11076
|
-
{ field: "data.addressed.name" },
|
|
11077
|
-
{ field: "data.waiting_since", as: "day" },
|
|
11078
|
-
{ field: "data.overdue", tag: "overdue" }
|
|
11079
|
-
]
|
|
11080
|
-
},
|
|
11081
11293
|
"status.questions": {
|
|
11082
|
-
columns: [...where, { field: "at", as: "day" },
|
|
11294
|
+
columns: [...where, { field: "at", as: "day" }, who2],
|
|
11083
11295
|
text: ["data.excerpt"]
|
|
11084
11296
|
},
|
|
11085
11297
|
"status.promises": {
|
|
11086
11298
|
columns: [
|
|
11087
11299
|
...where,
|
|
11088
11300
|
{ field: "at", as: "day" },
|
|
11089
|
-
{ field: "
|
|
11301
|
+
{ field: "basis" },
|
|
11090
11302
|
{ field: "data.side" },
|
|
11091
11303
|
{ field: "data.due", as: "day" },
|
|
11092
11304
|
{ field: "data.status" }
|
|
@@ -11113,21 +11325,10 @@ var STATUS_SIGNAL_ROWS = {
|
|
|
11113
11325
|
columns: [
|
|
11114
11326
|
...where,
|
|
11115
11327
|
{ field: "data.query" },
|
|
11116
|
-
{ field: "data.theirs_last", as: "day" },
|
|
11117
11328
|
{ field: "data.yours_last", as: "day" },
|
|
11118
11329
|
{ field: "data.silent_since", as: "day" }
|
|
11119
11330
|
]
|
|
11120
11331
|
},
|
|
11121
|
-
"status.coverage": {
|
|
11122
|
-
columns: [
|
|
11123
|
-
{ field: "chat" },
|
|
11124
|
-
{ field: "chat_title" },
|
|
11125
|
-
{ field: "data.state" },
|
|
11126
|
-
{ field: "data.held.messages", as: "count", tag: "held" },
|
|
11127
|
-
{ field: "data.held.oldest_at", as: "day" },
|
|
11128
|
-
{ field: "sync_command" }
|
|
11129
|
-
]
|
|
11130
|
-
},
|
|
11131
11332
|
"status.children": {
|
|
11132
11333
|
columns: [
|
|
11133
11334
|
{ field: "data.child" },
|
|
@@ -11144,10 +11345,14 @@ var STATUS_ROWS = {
|
|
|
11144
11345
|
columns: [
|
|
11145
11346
|
{ field: "chat" },
|
|
11146
11347
|
{ field: "title" },
|
|
11147
|
-
{ field: "kind" },
|
|
11148
11348
|
{ field: "role" },
|
|
11149
|
-
{ field: "
|
|
11150
|
-
{ field: "
|
|
11349
|
+
{ field: "next", prefix: "next" },
|
|
11350
|
+
{ field: "addressed.name" },
|
|
11351
|
+
{ field: "waiting_since", as: "day" },
|
|
11352
|
+
{ field: "overdue", tag: "overdue" },
|
|
11353
|
+
{ field: "held.messages", as: "count", tag: "held" },
|
|
11354
|
+
{ field: "unlisted.questions", as: "count", tag: "questions unlisted" },
|
|
11355
|
+
{ field: "unlisted.promises", as: "count", tag: "promises unlisted" }
|
|
11151
11356
|
]
|
|
11152
11357
|
},
|
|
11153
11358
|
"status.money": {
|
|
@@ -11158,7 +11363,6 @@ var STATUS_ROWS = {
|
|
|
11158
11363
|
{ field: "rows", as: "count", tag: "rows" }
|
|
11159
11364
|
]
|
|
11160
11365
|
},
|
|
11161
|
-
"status.signal": { columns: [{ field: "id" }, { field: "version" }] },
|
|
11162
11366
|
"status.out-of-scope": {
|
|
11163
11367
|
columns: [
|
|
11164
11368
|
{ field: "chat" },
|
|
@@ -11173,7 +11377,7 @@ var STATUS_ROWS = {
|
|
|
11173
11377
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11174
11378
|
};
|
|
11175
11379
|
|
|
11176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11177
11381
|
var TEXT_CHARS = 400;
|
|
11178
11382
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11179
11383
|
var messageRow = {
|
|
@@ -11358,8 +11562,8 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
|
|
|
11358
11562
|
const parts = clock.parts(iso);
|
|
11359
11563
|
if (!parts)
|
|
11360
11564
|
return { text: clean(iso) };
|
|
11361
|
-
const
|
|
11362
|
-
return
|
|
11565
|
+
const day3 = parts.date.slice(5);
|
|
11566
|
+
return column.as === "day" ? { text: day3, date: parts.date } : { text: `${day3} ${parts.time}`, date: parts.date, time: parts.time };
|
|
11363
11567
|
}
|
|
11364
11568
|
case "count":
|
|
11365
11569
|
return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
|
|
@@ -11407,6 +11611,17 @@ var sameEverywhere = /* @__PURE__ */ __name((rows2, index) => {
|
|
|
11407
11611
|
const first2 = rows2[0]?.cells[index]?.text;
|
|
11408
11612
|
return first2 !== void 0 && rows2.every(({ cells }) => cells[index]?.text === first2);
|
|
11409
11613
|
}, "sameEverywhere");
|
|
11614
|
+
var ordered = /* @__PURE__ */ __name((dates) => dates.every((one, at2) => at2 === 0 || one >= dates[at2 - 1]) || dates.every((one, at2) => at2 === 0 || one <= dates[at2 - 1]), "ordered");
|
|
11615
|
+
var dayColumn = /* @__PURE__ */ __name((rows2, shape, hoisted) => {
|
|
11616
|
+
const index = shape.columns.findIndex((column, at2) => column.as === "time" && !hoisted[at2]);
|
|
11617
|
+
if (index < 0)
|
|
11618
|
+
return -1;
|
|
11619
|
+
const dates = rows2.map(({ cells }) => cells[index]?.date);
|
|
11620
|
+
if (dates.some((one) => one === void 0))
|
|
11621
|
+
return -1;
|
|
11622
|
+
const days2 = dates;
|
|
11623
|
+
return ordered(days2) && new Set(days2).size * 3 <= days2.length ? index : -1;
|
|
11624
|
+
}, "dayColumn");
|
|
11410
11625
|
var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
11411
11626
|
const dates = [];
|
|
11412
11627
|
const rows2 = items.map((item) => {
|
|
@@ -11429,18 +11644,31 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
|
11429
11644
|
return [];
|
|
11430
11645
|
return [`${sourceOf(item, column) ?? fieldsOfColumn(column.field)[0]}: ${rows2[0]?.cells[index]?.text}`];
|
|
11431
11646
|
});
|
|
11432
|
-
const
|
|
11433
|
-
|
|
11647
|
+
const byDay = dayColumn(rows2, shape, hoisted);
|
|
11648
|
+
let shownDay;
|
|
11649
|
+
const lines = rows2.flatMap(({ cells, text: text5, item }) => {
|
|
11650
|
+
const parts = cells.map((cell2, index) => hoisted[index] ? void 0 : cell2?.text);
|
|
11651
|
+
const dayLine = [];
|
|
11652
|
+
const cell = cells[byDay];
|
|
11653
|
+
if (byDay >= 0 && cell?.date && cell.time) {
|
|
11654
|
+
if (cell.date !== shownDay)
|
|
11655
|
+
dayLine.push(`# ${cell.date}`);
|
|
11656
|
+
shownDay = cell.date;
|
|
11657
|
+
parts[byDay] = cell.time;
|
|
11658
|
+
}
|
|
11434
11659
|
const shortened = prefix ? clean(prefix) : void 0;
|
|
11435
11660
|
if (shortened && parts[0]?.startsWith(shortened))
|
|
11436
11661
|
parts[0] = `#${parts[0].slice(shortened.length)}`;
|
|
11437
11662
|
const shown = [...parts, text5].filter((part) => part !== void 0 && part !== "");
|
|
11438
|
-
return guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "");
|
|
11663
|
+
return [...dayLine, guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "")];
|
|
11439
11664
|
});
|
|
11440
|
-
const
|
|
11441
|
-
|
|
11442
|
-
return { header, lines };
|
|
11665
|
+
const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named2];
|
|
11666
|
+
return { header, lines, dates };
|
|
11443
11667
|
}, "rowsOfItems");
|
|
11668
|
+
var spanOf = /* @__PURE__ */ __name((dates, clock) => {
|
|
11669
|
+
const when = span(dates);
|
|
11670
|
+
return when ? [when, clock.zone] : [];
|
|
11671
|
+
}, "spanOf");
|
|
11444
11672
|
var blockLine = /* @__PURE__ */ __name((fields, chars) => blockOf(fields, chars).join(" "), "blockLine");
|
|
11445
11673
|
var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "", whole = []) => Object.entries(fields).filter(([name]) => !(name === "priority" && "priority_label" in fields)).filter(([, value]) => present(value) || value === false).flatMap(([name, value]) => {
|
|
11446
11674
|
const label = `${indent}${clean(name)}:`;
|
|
@@ -11491,25 +11719,31 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11491
11719
|
const chars = options.textChars ?? TEXT_CHARS;
|
|
11492
11720
|
let lines = [];
|
|
11493
11721
|
if ("items" in body) {
|
|
11494
|
-
const { header, lines: rows2 } = rowsOfItems(body.items, shape, clock, chars);
|
|
11495
|
-
|
|
11722
|
+
const { header, lines: rows2, dates } = rowsOfItems(body.items, shape, clock, chars);
|
|
11723
|
+
const head = [...header, ...spanOf(dates, clock)];
|
|
11724
|
+
lines = (head.length ? [`# ${head.join(" \xB7 ")}`] : []).concat(rows2.length ? rows2 : ["# nothing found"]);
|
|
11496
11725
|
} else if (isFields(body.item)) {
|
|
11497
11726
|
const sections = shape.sections ?? {};
|
|
11498
|
-
const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
|
|
11727
|
+
const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name) && !shape.hidden?.includes(name)));
|
|
11499
11728
|
lines = blockOf(rest, chars, "", shape.whole).map(guarded);
|
|
11729
|
+
let dates = [];
|
|
11730
|
+
let drawn = [];
|
|
11500
11731
|
for (const [name, entity] of Object.entries(sections)) {
|
|
11501
11732
|
const list = body.item[name];
|
|
11502
11733
|
if (!Array.isArray(list))
|
|
11503
11734
|
continue;
|
|
11504
|
-
const { header, lines: rows2 } = rowsOfItems(list, rowsOf(entity), clock, chars);
|
|
11505
|
-
|
|
11735
|
+
const { header, lines: rows2, dates: more } = rowsOfItems(list, rowsOf(entity), clock, chars);
|
|
11736
|
+
dates = dates.concat(more);
|
|
11737
|
+
drawn = drawn.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
|
|
11506
11738
|
}
|
|
11739
|
+
const when = spanOf(dates, clock);
|
|
11740
|
+
lines = lines.concat(when.length ? [`# ${when.join(" \xB7 ")}`] : [], drawn);
|
|
11507
11741
|
} else if (present(body.item))
|
|
11508
11742
|
lines = [guarded(cut(clean(String(body.item)), chars))];
|
|
11509
11743
|
return lines.concat(footerOf(body)).join("\n");
|
|
11510
11744
|
}, "compactText");
|
|
11511
11745
|
|
|
11512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11513
11747
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11514
11748
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11515
11749
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11567,7 +11801,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11567
11801
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11568
11802
|
}, "largeAnswerSteps");
|
|
11569
11803
|
|
|
11570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11571
11805
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11572
11806
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11573
11807
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11581,7 +11815,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11581
11815
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11582
11816
|
}, "strip");
|
|
11583
11817
|
|
|
11584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11585
11819
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11586
11820
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11587
11821
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -11867,6 +12101,7 @@ export {
|
|
|
11867
12101
|
setExitCode,
|
|
11868
12102
|
provide,
|
|
11869
12103
|
environmentOf,
|
|
12104
|
+
withAgentLevels,
|
|
11870
12105
|
secretInputOf,
|
|
11871
12106
|
outputFor,
|
|
11872
12107
|
baseContext,
|
|
@@ -11938,6 +12173,7 @@ export {
|
|
|
11938
12173
|
answerEntity,
|
|
11939
12174
|
answerEntitySchema,
|
|
11940
12175
|
answerProjectionSchema,
|
|
12176
|
+
ON_CHAT_ROW,
|
|
11941
12177
|
STATUS_SIGNAL_ROWS,
|
|
11942
12178
|
entityRows,
|
|
11943
12179
|
nextStep,
|