@wirecat/mail-cli 0.16.3 → 0.17.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 +86 -0
- package/README.md +7 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-TUDREUUW.js → all-profiles-55AU2Q2N.js} +10 -10
- package/dist/bundle/{anthropic-KQOVSP6C.js → anthropic-I7RI7YPK.js} +6 -6
- package/dist/bundle/{app-server-QK7PKVT7.js → app-server-NY72GTQA.js} +47 -47
- package/dist/bundle/{bun-2NMWL5YB.js → bun-C2R7UPM2.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y4FP6SDX.js → bun-sqlite-RNPHH3KC.js} +5 -5
- package/dist/bundle/{chunk-KJV3BI7S.js → chunk-22IKW3TY.js} +23 -21
- package/dist/bundle/{chunk-B2NDDA2W.js → chunk-22WVQJW3.js} +10 -10
- package/dist/bundle/{chunk-4IIH5PXR.js → chunk-24H2KUGW.js} +28 -28
- package/dist/bundle/{chunk-VP5FL5JQ.js → chunk-2CY44MKY.js} +8 -8
- package/dist/bundle/{chunk-CGH6UH3T.js → chunk-2EVM7GV5.js} +8 -8
- package/dist/bundle/{chunk-GAYW2JRW.js → chunk-2ON2PDHC.js} +10 -10
- package/dist/bundle/{chunk-EBEYU7RW.js → chunk-45JQ72CH.js} +36 -142
- package/dist/bundle/{chunk-QCNK3YUZ.js → chunk-4HTTN4NO.js} +19 -19
- package/dist/bundle/{chunk-6DVPPLAN.js → chunk-6NN5ZX5T.js} +5 -5
- package/dist/bundle/{chunk-CRYWPLJP.js → chunk-A3PKKY24.js} +1 -1
- package/dist/bundle/{chunk-I3K6JG4I.js → chunk-B73I6KLW.js} +14 -60
- package/dist/bundle/{chunk-HVAXTTOT.js → chunk-BD7OK4P5.js} +3 -3
- package/dist/bundle/{chunk-Q4T2HBZP.js → chunk-BPDUVWL2.js} +2 -2
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-BWCYUXF7.js} +4 -4
- package/dist/bundle/{chunk-3ZJE5TIG.js → chunk-CHC2LWKY.js} +2 -2
- package/dist/bundle/{chunk-VTJ5TMGN.js → chunk-CHVHIDNK.js} +3 -3
- package/dist/bundle/{chunk-XEIGKPYU.js → chunk-DG43I7MC.js} +32 -3
- package/dist/bundle/{chunk-R6SBRHVG.js → chunk-F4P3VDJZ.js} +6 -6
- package/dist/bundle/{chunk-ZS6YKNYS.js → chunk-GBM7FFFI.js} +4 -4
- package/dist/bundle/{chunk-K2OQCQ2N.js → chunk-GYCJQGFO.js} +6 -6
- package/dist/bundle/{chunk-PYX6K527.js → chunk-H32SKDF2.js} +55 -54
- package/dist/bundle/{chunk-KMZRXGTF.js → chunk-HZL42476.js} +1 -1
- package/dist/bundle/{chunk-IJYYD2JU.js → chunk-IPFFPD3M.js} +325 -212
- package/dist/bundle/{chunk-M6O4DH5F.js → chunk-ITMGJX7I.js} +1 -1
- package/dist/bundle/{chunk-OYB3FUYQ.js → chunk-J7XH6CJC.js} +1 -1
- package/dist/bundle/{chunk-ANFIIXBL.js → chunk-JI225TBX.js} +2 -2
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-JSB6BTPT.js} +1 -1
- package/dist/bundle/{chunk-7LMTWOTP.js → chunk-KJKRLI2S.js} +2 -2
- package/dist/bundle/{chunk-FHY664YS.js → chunk-LNC7XMEQ.js} +4 -4
- package/dist/bundle/chunk-M6GLFDWV.js +64 -0
- package/dist/bundle/{chunk-PWTEWT4M.js → chunk-MG4NWXWI.js} +4 -4
- package/dist/bundle/{chunk-X7EBOXBY.js → chunk-MRTSDBTN.js} +12178 -1120
- package/dist/bundle/{chunk-N7DLDEFU.js → chunk-MTFTMPB6.js} +2 -2
- package/dist/bundle/{chunk-DDQXDX4U.js → chunk-OFZDCUUJ.js} +7 -7
- package/dist/bundle/{chunk-4IEDXIUN.js → chunk-OHS5CYZI.js} +240 -64
- package/dist/bundle/{chunk-ZNW4E3SG.js → chunk-QDX2O5BN.js} +3 -3
- package/dist/bundle/{chunk-VD6GZ3W2.js → chunk-QEO7MI3E.js} +2 -2
- package/dist/bundle/{chunk-EZIJPXDZ.js → chunk-QRNL5DIS.js} +6 -6
- package/dist/bundle/{chunk-XAANQN4R.js → chunk-QU5TWVG5.js} +108 -83
- package/dist/bundle/{chunk-HN3EDDVX.js → chunk-R3G33QIV.js} +13 -13
- package/dist/bundle/{chunk-TTOKDZQX.js → chunk-RFFE5ACS.js} +2 -2
- package/dist/bundle/{chunk-5FPQGUJA.js → chunk-RIAHISWA.js} +1 -1
- package/dist/bundle/{chunk-CT2MIWXY.js → chunk-RQGTRB73.js} +3 -3
- package/dist/bundle/{chunk-WKHHCCJE.js → chunk-S4NIDBLI.js} +23 -23
- package/dist/bundle/{chunk-YGJO5VNR.js → chunk-SHEVFBZT.js} +24 -24
- package/dist/bundle/{chunk-DKIAHQRN.js → chunk-SQAAOEGI.js} +9 -9
- package/dist/bundle/{chunk-5KPPP3QN.js → chunk-T4RRZILQ.js} +14 -2
- package/dist/bundle/{chunk-KV4267S4.js → chunk-TCYLDGRA.js} +1 -1
- package/dist/bundle/{chunk-POS35G6D.js → chunk-VMXMHC6E.js} +3 -3
- package/dist/bundle/{chunk-FROWEHK7.js → chunk-VXBUDZV3.js} +2 -2
- package/dist/bundle/{chunk-3CVDHJER.js → chunk-WHI3LTAW.js} +1 -1
- package/dist/bundle/{chunk-ARDUJR5Z.js → chunk-WOFGEJ6W.js} +1 -1
- package/dist/bundle/{chunk-G6RG2AZV.js → chunk-XJQJ3ZIY.js} +55 -8
- package/dist/bundle/{chunk-EDJQDR5X.js → chunk-XOJ5E777.js} +4 -4
- package/dist/bundle/{chunk-UBLFUQ7O.js → chunk-YB47AQWE.js} +97 -12
- package/dist/bundle/{chunk-RPEW7E3S.js → chunk-YCOBSDZY.js} +12 -12
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-YHUCNI2W.js} +2 -2
- package/dist/bundle/{chunk-LMN7SYX4.js → chunk-YIJRPPF5.js} +1 -1
- package/dist/bundle/{chunk-MLWN27HF.js → chunk-YO7BLBVE.js} +243 -247
- package/dist/bundle/command-contract-AUPKK5Y4.js +34 -0
- package/dist/bundle/{decode-WCS4KOHV.js → decode-5AYG6LLW.js} +5 -5
- package/dist/bundle/{dispatch-3ILCYZ4Q.js → dispatch-EVLWT6N3.js} +8 -8
- package/dist/bundle/{dist-FL422DTA.js → dist-JRTLLLLG.js} +31 -23
- package/dist/bundle/{echarts-45D6USAX.js → echarts-EFAEE4D2.js} +2 -2
- package/dist/bundle/{embed-4B4ATLCN.js → embed-6SSOYGZQ.js} +6 -6
- package/dist/bundle/{embedder-ASWGJXNV.js → embedder-VFSLGHBO.js} +9 -9
- package/dist/bundle/{failure-UDL5QZRZ.js → failure-RBBZ7F3L.js} +2 -2
- package/dist/bundle/{first-run-5K3UD4BU.js → first-run-PVEHOQOD.js} +11 -11
- package/dist/bundle/first-screen-7ONKJ7QW.js +32 -0
- package/dist/bundle/{instructions-6EFSPC7C.js → instructions-EOLC3GYB.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-JYLZR5LQ.js} +2 -2
- package/dist/bundle/{node-OXC26QXO.js → node-2ZRMQAYF.js} +2 -2
- package/dist/bundle/{node-sqlite-PXHZAG7Y.js → node-sqlite-UKWOBONA.js} +6 -6
- package/dist/bundle/{oauth-YK2QLC7U.js → oauth-HFD46WAY.js} +7 -7
- package/dist/bundle/{open-SABDXZ4B.js → open-2DLCQUC4.js} +5 -5
- package/dist/bundle/{openai-DPURPXEU.js → openai-A7YLLQEE.js} +14 -14
- package/dist/bundle/{process-YWPAOI6G.js → process-I3INVLFQ.js} +1 -1
- package/dist/bundle/{program-4ILOQHLO.js → program-4ZCATQND.js} +3380 -12407
- package/dist/bundle/{prompt-GKVNFGFE.js → prompt-R636OFYK.js} +5 -5
- package/dist/bundle/{recognize-344YDSLX.js → recognize-G4WUSU5I.js} +4 -4
- package/dist/bundle/{remote-53UZUJJU.js → remote-BMXVVYTN.js} +7 -7
- package/dist/bundle/{rerank-PAIRND6R.js → rerank-7W3QEZ3Q.js} +7 -7
- package/dist/bundle/{serve-DZSO7LJK.js → serve-JQCPQYOJ.js} +9 -9
- package/dist/bundle/server-GYVOIGF5.js +64 -0
- package/dist/bundle/{server-EGG3V67I.js → server-IMOCOYXH.js} +39 -39
- package/dist/bundle/{sqlite-runtime-ZQ6F3VYZ.js → sqlite-runtime-H2IEHDRZ.js} +6 -6
- package/dist/bundle/{state-LXPOWLZ5.js → state-J5N3Y4LX.js} +6 -6
- package/dist/bundle/{store-PHT75I6S.js → store-C4TIYTGI.js} +25 -25
- package/dist/bundle/{store-4ZMSK5R5.js → store-U5WIT3P4.js} +15 -15
- package/dist/bundle/store-maintenance-command-WRRZ7Q7B.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.d.ts.map +1 -1
- package/dist/commands/status.js +10 -4
- 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-CNMSF5QU.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-OFZDCUUJ.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-SQAAOEGI.js";
|
|
28
28
|
import {
|
|
29
29
|
permissionCeiling
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QDX2O5BN.js";
|
|
31
31
|
import {
|
|
32
32
|
carries
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-WHI3LTAW.js";
|
|
34
34
|
import {
|
|
35
35
|
filesPresent,
|
|
36
36
|
sharedModelsDirectory
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GBM7FFFI.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-M6GLFDWV.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-YB47AQWE.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-OHS5CYZI.js";
|
|
90
94
|
import {
|
|
91
95
|
sharedConfigPath
|
|
92
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-GYCJQGFO.js";
|
|
93
97
|
import {
|
|
94
98
|
storePath
|
|
95
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-RFFE5ACS.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-4HTTN4NO.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-XJQJ3ZIY.js";
|
|
158
162
|
import {
|
|
159
163
|
CliError,
|
|
160
164
|
isCliError,
|
|
161
165
|
visibleControls
|
|
162
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-YHUCNI2W.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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
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.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
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.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
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.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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?.();
|
|
@@ -6682,7 +6686,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6682
6686
|
return words.join(" ");
|
|
6683
6687
|
}, "commandPath");
|
|
6684
6688
|
|
|
6685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6686
6690
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6687
6691
|
var FETCH = { remote: "read", local: "write" };
|
|
6688
6692
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6810,7 +6814,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6810
6814
|
throw readOnlyRefusal(lock, what);
|
|
6811
6815
|
}, "refuseUnderReadOnly");
|
|
6812
6816
|
|
|
6813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6814
6818
|
var account = strictObject({
|
|
6815
6819
|
provider: text,
|
|
6816
6820
|
id,
|
|
@@ -6820,7 +6824,7 @@ var account = strictObject({
|
|
|
6820
6824
|
scope: optional(picklist(["personal", "work"]))
|
|
6821
6825
|
});
|
|
6822
6826
|
|
|
6823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6824
6828
|
var accountSession = strictObject({
|
|
6825
6829
|
current: boolean(),
|
|
6826
6830
|
client: nullable(text),
|
|
@@ -6830,7 +6834,7 @@ var accountSession = strictObject({
|
|
|
6830
6834
|
created_at: optional(nullable(time))
|
|
6831
6835
|
});
|
|
6832
6836
|
|
|
6833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6834
6838
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6835
6839
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6836
6840
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6848,7 +6852,7 @@ var accountPrivacy = strictObject({
|
|
|
6848
6852
|
});
|
|
6849
6853
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
6850
6854
|
|
|
6851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6852
6856
|
var accountProfile = strictObject({
|
|
6853
6857
|
profile: id,
|
|
6854
6858
|
current: boolean(),
|
|
@@ -6860,7 +6864,7 @@ var accountProfile = strictObject({
|
|
|
6860
6864
|
bot: optional(literal(true))
|
|
6861
6865
|
});
|
|
6862
6866
|
|
|
6863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6864
6868
|
var milliseconds = pipe(number(), minValue(0));
|
|
6865
6869
|
var counterReading = strictObject({
|
|
6866
6870
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6872,7 +6876,7 @@ var counterReading = strictObject({
|
|
|
6872
6876
|
});
|
|
6873
6877
|
var selection = record(string(), unknown());
|
|
6874
6878
|
|
|
6875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6876
6880
|
var adminRow = strictObject({
|
|
6877
6881
|
ref: reference,
|
|
6878
6882
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6925,7 +6929,7 @@ var adminReport = strictObject({
|
|
|
6925
6929
|
rows: array(adminRow)
|
|
6926
6930
|
});
|
|
6927
6931
|
|
|
6928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6929
6933
|
var closeSuggestion = strictObject({
|
|
6930
6934
|
as: picklist(["done", "dismissed"]),
|
|
6931
6935
|
/** The agent's name. */
|
|
@@ -6956,6 +6960,10 @@ var task = strictObject({
|
|
|
6956
6960
|
chat: optional(nullable(reference)),
|
|
6957
6961
|
/** The message it came from. */
|
|
6958
6962
|
source_message: optional(nullable(reference)),
|
|
6963
|
+
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
6964
|
+
external_id: optional(nullable(text)),
|
|
6965
|
+
/** The http or https page it is about, such as an Avito ad. */
|
|
6966
|
+
source_url: optional(nullable(text)),
|
|
6959
6967
|
/** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
|
|
6960
6968
|
priority: optional(nullable(number())),
|
|
6961
6969
|
priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
|
|
@@ -6983,7 +6991,7 @@ var task = strictObject({
|
|
|
6983
6991
|
updated_at: optional(time)
|
|
6984
6992
|
});
|
|
6985
6993
|
|
|
6986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6987
6995
|
var agendaChat = strictObject({
|
|
6988
6996
|
chat: reference,
|
|
6989
6997
|
title: nullable(text),
|
|
@@ -7053,11 +7061,11 @@ var agenda = strictObject({
|
|
|
7053
7061
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7054
7062
|
});
|
|
7055
7063
|
|
|
7056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7057
7065
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7058
7066
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7059
7067
|
|
|
7060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7061
7069
|
var attachment = strictObject({
|
|
7062
7070
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7063
7071
|
message: optional(reference),
|
|
@@ -7095,7 +7103,7 @@ var attachment = strictObject({
|
|
|
7095
7103
|
});
|
|
7096
7104
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7097
7105
|
|
|
7098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7099
7107
|
var actionableError = objectWithRest({
|
|
7100
7108
|
code: text,
|
|
7101
7109
|
message: text,
|
|
@@ -7112,7 +7120,7 @@ var batchResult = strictObject({
|
|
|
7112
7120
|
max_error_percent: count
|
|
7113
7121
|
});
|
|
7114
7122
|
|
|
7115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7116
7124
|
var extractionItem = strictObject({
|
|
7117
7125
|
ref: reference,
|
|
7118
7126
|
attachment: count,
|
|
@@ -7145,7 +7153,7 @@ var extractionReport = strictObject({
|
|
|
7145
7153
|
cursor: optional(text)
|
|
7146
7154
|
});
|
|
7147
7155
|
|
|
7148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7149
7157
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7150
7158
|
var attachmentBytes = strictObject({
|
|
7151
7159
|
ref: reference,
|
|
@@ -7173,7 +7181,7 @@ var attachmentTextChange = strictObject({
|
|
|
7173
7181
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7174
7182
|
});
|
|
7175
7183
|
|
|
7176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7177
7185
|
var chart = strictObject({
|
|
7178
7186
|
version: literal(1),
|
|
7179
7187
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7188,7 +7196,7 @@ var chart = strictObject({
|
|
|
7188
7196
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7189
7197
|
});
|
|
7190
7198
|
|
|
7191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7192
7200
|
var member = strictObject({
|
|
7193
7201
|
id,
|
|
7194
7202
|
name: nullable(text),
|
|
@@ -7211,7 +7219,7 @@ var member = strictObject({
|
|
|
7211
7219
|
check: optional(record(string(), unknown()))
|
|
7212
7220
|
});
|
|
7213
7221
|
|
|
7214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7215
7223
|
var setting = optional(nullable(boolean()));
|
|
7216
7224
|
var chat = strictObject({
|
|
7217
7225
|
ref: reference,
|
|
@@ -7252,7 +7260,7 @@ var chat = strictObject({
|
|
|
7252
7260
|
members: optional(array(member))
|
|
7253
7261
|
});
|
|
7254
7262
|
|
|
7255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7256
7264
|
var named = strictObject({
|
|
7257
7265
|
id,
|
|
7258
7266
|
title: nullable(text),
|
|
@@ -7275,7 +7283,7 @@ var folder = strictObject({
|
|
|
7275
7283
|
excluded_chats: optional(array(named))
|
|
7276
7284
|
});
|
|
7277
7285
|
|
|
7278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7279
7287
|
var inviteLink = strictObject({
|
|
7280
7288
|
link: text,
|
|
7281
7289
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7291,7 +7299,7 @@ var inviteLink = strictObject({
|
|
|
7291
7299
|
joined_count: optional(count)
|
|
7292
7300
|
});
|
|
7293
7301
|
|
|
7294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7295
7303
|
var operated = { operation_id: id, chat_id: id };
|
|
7296
7304
|
var group = strictObject({
|
|
7297
7305
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7371,7 +7379,7 @@ var chatFolderOrder = strictObject({
|
|
|
7371
7379
|
folders: array(strictObject({ id, title: text }))
|
|
7372
7380
|
});
|
|
7373
7381
|
|
|
7374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7375
7383
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7376
7384
|
var chatRemoval = strictObject(operated2);
|
|
7377
7385
|
var chatMuting = strictObject({
|
|
@@ -7382,7 +7390,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7382
7390
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7383
7391
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7384
7392
|
|
|
7385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7386
7394
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7387
7395
|
var chatEvent = strictObject({
|
|
7388
7396
|
chat_id: id,
|
|
@@ -7399,7 +7407,7 @@ var chatEvent = strictObject({
|
|
|
7399
7407
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7400
7408
|
});
|
|
7401
7409
|
|
|
7402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7403
7411
|
var chatMetadata = strictObject({
|
|
7404
7412
|
chat_id: id,
|
|
7405
7413
|
title: nullable(text),
|
|
@@ -7414,7 +7422,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7414
7422
|
has_more: boolean()
|
|
7415
7423
|
});
|
|
7416
7424
|
|
|
7417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7418
7426
|
var action = picklist(["report", "delete", "remove"]);
|
|
7419
7427
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7420
7428
|
var chatRules = strictObject({
|
|
@@ -7451,7 +7459,7 @@ var chatModeration = strictObject({
|
|
|
7451
7459
|
}))
|
|
7452
7460
|
});
|
|
7453
7461
|
|
|
7454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7455
7463
|
var optionalCount = optional(count);
|
|
7456
7464
|
var minutes = nullable(number());
|
|
7457
7465
|
var chatStats = strictObject({
|
|
@@ -7525,7 +7533,7 @@ var taskStats = strictObject({
|
|
|
7525
7533
|
}))
|
|
7526
7534
|
});
|
|
7527
7535
|
|
|
7528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7529
7537
|
var memberCount = strictObject({
|
|
7530
7538
|
day: pipe(text, isoDate()),
|
|
7531
7539
|
participants: nullable(count),
|
|
@@ -7548,7 +7556,7 @@ var chatTracking = strictObject({
|
|
|
7548
7556
|
tracked: boolean()
|
|
7549
7557
|
});
|
|
7550
7558
|
|
|
7551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7552
7560
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7553
7561
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7554
7562
|
var profileFields = {
|
|
@@ -7586,7 +7594,7 @@ var profileFields = {
|
|
|
7586
7594
|
}))
|
|
7587
7595
|
};
|
|
7588
7596
|
|
|
7589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7590
7598
|
var contact = strictObject({
|
|
7591
7599
|
ref: reference,
|
|
7592
7600
|
id,
|
|
@@ -7617,7 +7625,7 @@ var contact = strictObject({
|
|
|
7617
7625
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7618
7626
|
});
|
|
7619
7627
|
|
|
7620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7621
7629
|
var WEIGHTS = {
|
|
7622
7630
|
bot: 3,
|
|
7623
7631
|
scam: 3,
|
|
@@ -7642,7 +7650,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7642
7650
|
var DIGITS = /\d{5,}/;
|
|
7643
7651
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7644
7652
|
|
|
7645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
7646
7654
|
var linkedIdentity = strictObject({
|
|
7647
7655
|
provider: text,
|
|
7648
7656
|
id,
|
|
@@ -7683,7 +7691,7 @@ var contactCheck = strictObject({
|
|
|
7683
7691
|
checked_at: time
|
|
7684
7692
|
});
|
|
7685
7693
|
|
|
7686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
7687
7695
|
var quoted = strictObject({
|
|
7688
7696
|
id,
|
|
7689
7697
|
sender_id: nullable(id),
|
|
@@ -7802,7 +7810,7 @@ var message = strictObject({
|
|
|
7802
7810
|
provider_metadata: providerMetadata
|
|
7803
7811
|
});
|
|
7804
7812
|
|
|
7805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7806
7814
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7807
7815
|
var contextMessage = strictObject({
|
|
7808
7816
|
locator: reference,
|
|
@@ -8000,7 +8008,7 @@ var contactPreparation = strictObject({
|
|
|
8000
8008
|
})
|
|
8001
8009
|
});
|
|
8002
8010
|
|
|
8003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8004
8012
|
var contactNote = strictObject({
|
|
8005
8013
|
id,
|
|
8006
8014
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8012,13 +8020,13 @@ var contactNote = strictObject({
|
|
|
8012
8020
|
updated_at: time
|
|
8013
8021
|
});
|
|
8014
8022
|
|
|
8015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8016
8024
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8017
8025
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8018
8026
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8019
8027
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8020
8028
|
|
|
8021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8022
8030
|
var conversation = strictObject({
|
|
8023
8031
|
id,
|
|
8024
8032
|
chat: reference,
|
|
@@ -8033,7 +8041,7 @@ var conversation = strictObject({
|
|
|
8033
8041
|
rules_version: count
|
|
8034
8042
|
});
|
|
8035
8043
|
|
|
8036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8037
8045
|
var conversationBuild = strictObject({
|
|
8038
8046
|
chat: id,
|
|
8039
8047
|
messages: count,
|
|
@@ -8058,7 +8066,7 @@ var catchUpPreparation = strictObject({
|
|
|
8058
8066
|
prepared: optional(conversationPreparation)
|
|
8059
8067
|
});
|
|
8060
8068
|
|
|
8061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8062
8070
|
var conversationDetails = union([
|
|
8063
8071
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8064
8072
|
message
|
|
@@ -8148,7 +8156,7 @@ var conversationHit = strictObject({
|
|
|
8148
8156
|
stale: boolean()
|
|
8149
8157
|
});
|
|
8150
8158
|
|
|
8151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8152
8160
|
var counters = strictObject({
|
|
8153
8161
|
cutoff: time,
|
|
8154
8162
|
max_age_ms: milliseconds,
|
|
@@ -8178,7 +8186,7 @@ var counterRefresh = strictObject({
|
|
|
8178
8186
|
complete: optional(boolean())
|
|
8179
8187
|
});
|
|
8180
8188
|
|
|
8181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8182
8190
|
var document = strictObject({
|
|
8183
8191
|
ref: reference,
|
|
8184
8192
|
id,
|
|
@@ -8193,7 +8201,7 @@ var document = strictObject({
|
|
|
8193
8201
|
owners: optional(array(text))
|
|
8194
8202
|
});
|
|
8195
8203
|
|
|
8196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8197
8205
|
var documentLink = strictObject({
|
|
8198
8206
|
ref: reference,
|
|
8199
8207
|
url: text,
|
|
@@ -8204,7 +8212,7 @@ var documentLink = strictObject({
|
|
|
8204
8212
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8205
8213
|
});
|
|
8206
8214
|
|
|
8207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8208
8216
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8209
8217
|
var contribution = strictObject({
|
|
8210
8218
|
message: evidenceMessage,
|
|
@@ -8234,7 +8242,7 @@ var retentionStay = strictObject({
|
|
|
8234
8242
|
});
|
|
8235
8243
|
var evidence = union([contribution, retentionStay]);
|
|
8236
8244
|
|
|
8237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8238
8246
|
var fact = strictObject({
|
|
8239
8247
|
ref: reference,
|
|
8240
8248
|
id,
|
|
@@ -8264,7 +8272,7 @@ var fact = strictObject({
|
|
|
8264
8272
|
updated_at: time
|
|
8265
8273
|
});
|
|
8266
8274
|
|
|
8267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8268
8276
|
var hit = strictObject({
|
|
8269
8277
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
|
|
8270
8278
|
ref: reference,
|
|
@@ -8302,7 +8310,7 @@ var hit = strictObject({
|
|
|
8302
8310
|
untrusted
|
|
8303
8311
|
});
|
|
8304
8312
|
|
|
8305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8306
8314
|
var identity = strictObject({
|
|
8307
8315
|
ref: reference,
|
|
8308
8316
|
provider: text,
|
|
@@ -8315,7 +8323,7 @@ var identity = strictObject({
|
|
|
8315
8323
|
person: optional(nullable(reference))
|
|
8316
8324
|
});
|
|
8317
8325
|
|
|
8318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8319
8327
|
var imageEmbedding = strictObject({
|
|
8320
8328
|
model: text,
|
|
8321
8329
|
embedded: count,
|
|
@@ -8324,13 +8332,13 @@ var imageEmbedding = strictObject({
|
|
|
8324
8332
|
more: boolean()
|
|
8325
8333
|
});
|
|
8326
8334
|
|
|
8327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8328
8336
|
import { spawn } from "node:child_process";
|
|
8329
8337
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8330
8338
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8331
8339
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8332
8340
|
|
|
8333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8334
8342
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8335
8343
|
const total = input.total ?? null;
|
|
8336
8344
|
const updated = input.updatedAt ?? null;
|
|
@@ -8346,7 +8354,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8346
8354
|
};
|
|
8347
8355
|
}, "progressOf");
|
|
8348
8356
|
|
|
8349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8350
8358
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8351
8359
|
const run = currentRun();
|
|
8352
8360
|
const trace = traceId ?? run.traceId;
|
|
@@ -8360,7 +8368,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8360
8368
|
}));
|
|
8361
8369
|
}, "recordLogFor");
|
|
8362
8370
|
|
|
8363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8364
8372
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8365
8373
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8366
8374
|
const out = openSync(log, "a", 384);
|
|
@@ -8515,7 +8523,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8515
8523
|
return { job: id6, pid, chat: input.chat, log };
|
|
8516
8524
|
}, "startArchiveJob");
|
|
8517
8525
|
|
|
8518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8519
8527
|
var problem = strictObject({ code: text, message: text });
|
|
8520
8528
|
var job = strictObject({
|
|
8521
8529
|
id,
|
|
@@ -8538,7 +8546,7 @@ var job = strictObject({
|
|
|
8538
8546
|
error: optional(problem)
|
|
8539
8547
|
});
|
|
8540
8548
|
|
|
8541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8542
8550
|
var joinRequest = strictObject({
|
|
8543
8551
|
person_id: id,
|
|
8544
8552
|
name: nullable(text),
|
|
@@ -8549,7 +8557,7 @@ var joinRequest = strictObject({
|
|
|
8549
8557
|
about: optional(text)
|
|
8550
8558
|
});
|
|
8551
8559
|
|
|
8552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8553
8561
|
var botProfile = strictObject({
|
|
8554
8562
|
name: text,
|
|
8555
8563
|
token: text,
|
|
@@ -8588,8 +8596,17 @@ var scheduledJob = strictObject({
|
|
|
8588
8596
|
reason: optional(text),
|
|
8589
8597
|
error_code: optional(text),
|
|
8590
8598
|
failing_since: optional(time),
|
|
8591
|
-
failures: optional(number())
|
|
8592
|
-
|
|
8599
|
+
failures: optional(number()),
|
|
8600
|
+
cost_usd: optional(number()),
|
|
8601
|
+
/** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
|
|
8602
|
+
skipped: optional(strictObject({ at: time, why: text }))
|
|
8603
|
+
})),
|
|
8604
|
+
/** Agent schedules: what today's runs cost, in US dollars. */
|
|
8605
|
+
spent_today_usd: optional(number()),
|
|
8606
|
+
/** Agent schedules: the cap on one run (`--max-cost`), null when none. */
|
|
8607
|
+
max_cost_usd: optional(nullable(number())),
|
|
8608
|
+
/** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
|
|
8609
|
+
max_cost_per_day_usd: optional(number())
|
|
8593
8610
|
});
|
|
8594
8611
|
var botTemplate = strictObject({
|
|
8595
8612
|
name: nullable(text),
|
|
@@ -8617,7 +8634,7 @@ var stickerInventory = strictObject({
|
|
|
8617
8634
|
url: optional(nullable(text))
|
|
8618
8635
|
});
|
|
8619
8636
|
|
|
8620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8621
8638
|
var pollVote = strictObject({
|
|
8622
8639
|
person_id: id,
|
|
8623
8640
|
name: nullable(text),
|
|
@@ -8627,7 +8644,7 @@ var pollVote = strictObject({
|
|
|
8627
8644
|
voted_at: time
|
|
8628
8645
|
});
|
|
8629
8646
|
|
|
8630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8631
8648
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8632
8649
|
var observation = strictObject({
|
|
8633
8650
|
value: pipe(number(), minValue(0)),
|
|
@@ -8669,7 +8686,7 @@ var serveSummary = strictObject({
|
|
|
8669
8686
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8670
8687
|
});
|
|
8671
8688
|
|
|
8672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8673
8690
|
var mailCounts = strictObject({
|
|
8674
8691
|
by: picklist(["day", "week", "sender"]),
|
|
8675
8692
|
received: count,
|
|
@@ -8684,7 +8701,7 @@ var mailCounts = strictObject({
|
|
|
8684
8701
|
}))
|
|
8685
8702
|
});
|
|
8686
8703
|
|
|
8687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8688
8705
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8689
8706
|
var base = { id, evidence: array(evidence2) };
|
|
8690
8707
|
var finding = variant("kind", [
|
|
@@ -8699,7 +8716,11 @@ var finding = variant("kind", [
|
|
|
8699
8716
|
due_at: optional(time),
|
|
8700
8717
|
due_evidence: optional(array(reference)),
|
|
8701
8718
|
assignee: optional(reference),
|
|
8702
|
-
assignee_evidence: optional(array(reference))
|
|
8719
|
+
assignee_evidence: optional(array(reference)),
|
|
8720
|
+
/** `<service>:<id>` in the outside service the mail came from, such as `avito:4512345678`. */
|
|
8721
|
+
external_id: optional(text),
|
|
8722
|
+
/** The http or https page the task is about, such as the conversation the mail links to. */
|
|
8723
|
+
source_url: optional(text)
|
|
8703
8724
|
}),
|
|
8704
8725
|
strictObject({
|
|
8705
8726
|
...base,
|
|
@@ -8707,7 +8728,9 @@ var finding = variant("kind", [
|
|
|
8707
8728
|
project: optional(reference),
|
|
8708
8729
|
subject: optional(reference),
|
|
8709
8730
|
type: picklist(FACT_TYPES),
|
|
8710
|
-
statement: text
|
|
8731
|
+
statement: text,
|
|
8732
|
+
/** Every new finding gives one; a batch staged before reason was needed on every kind has none. */
|
|
8733
|
+
reason: optional(text)
|
|
8711
8734
|
}),
|
|
8712
8735
|
strictObject({
|
|
8713
8736
|
...base,
|
|
@@ -8725,10 +8748,82 @@ var finding = variant("kind", [
|
|
|
8725
8748
|
scope: picklist(MEMORY_SCOPES),
|
|
8726
8749
|
body: text,
|
|
8727
8750
|
subject: optional(reference),
|
|
8728
|
-
project: optional(reference)
|
|
8751
|
+
project: optional(reference),
|
|
8752
|
+
reason: optional(text)
|
|
8729
8753
|
}),
|
|
8730
8754
|
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) })
|
|
8755
|
+
strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) }),
|
|
8756
|
+
strictObject({
|
|
8757
|
+
...base,
|
|
8758
|
+
kind: literal("invoice"),
|
|
8759
|
+
direction: picklist(INVOICE_DIRECTIONS),
|
|
8760
|
+
counterparty: optional(reference),
|
|
8761
|
+
/** A counterparty the store may not hold yet; the owner's accept finds its organization or makes one. */
|
|
8762
|
+
counterparty_name: optional(text),
|
|
8763
|
+
counterparty_email: optional(text),
|
|
8764
|
+
currency: text,
|
|
8765
|
+
lines: array(strictObject({
|
|
8766
|
+
description: text,
|
|
8767
|
+
quantity: optional(text),
|
|
8768
|
+
unit_price: optional(text),
|
|
8769
|
+
amount: optional(text)
|
|
8770
|
+
})),
|
|
8771
|
+
total: optional(text),
|
|
8772
|
+
number: optional(text),
|
|
8773
|
+
issue_date: optional(text),
|
|
8774
|
+
due_date: optional(text),
|
|
8775
|
+
project: optional(reference),
|
|
8776
|
+
reason: text
|
|
8777
|
+
}),
|
|
8778
|
+
strictObject({
|
|
8779
|
+
...base,
|
|
8780
|
+
kind: literal("payment"),
|
|
8781
|
+
direction: picklist(MONEY_DIRECTIONS),
|
|
8782
|
+
payer: optional(reference),
|
|
8783
|
+
payer_name: optional(text),
|
|
8784
|
+
payer_email: optional(text),
|
|
8785
|
+
payee: optional(reference),
|
|
8786
|
+
payee_name: optional(text),
|
|
8787
|
+
payee_email: optional(text),
|
|
8788
|
+
amount: text,
|
|
8789
|
+
currency: text,
|
|
8790
|
+
date: text,
|
|
8791
|
+
reference: optional(text),
|
|
8792
|
+
allocations: optional(array(strictObject({ invoice: reference, amount: text }))),
|
|
8793
|
+
project: optional(reference),
|
|
8794
|
+
reason: text
|
|
8795
|
+
}),
|
|
8796
|
+
strictObject({
|
|
8797
|
+
...base,
|
|
8798
|
+
kind: literal("order"),
|
|
8799
|
+
purpose: picklist(ORDER_PURPOSES),
|
|
8800
|
+
customer: optional(reference),
|
|
8801
|
+
customer_name: optional(text),
|
|
8802
|
+
customer_email: optional(text),
|
|
8803
|
+
supplier: optional(reference),
|
|
8804
|
+
supplier_name: text,
|
|
8805
|
+
number: optional(text),
|
|
8806
|
+
total: optional(text),
|
|
8807
|
+
currency: optional(text),
|
|
8808
|
+
status: optional(picklist(ORDER_STATUSES)),
|
|
8809
|
+
order_date: optional(text),
|
|
8810
|
+
fulfilled_date: optional(text),
|
|
8811
|
+
invoice: optional(reference),
|
|
8812
|
+
payment: optional(reference),
|
|
8813
|
+
project: optional(reference),
|
|
8814
|
+
/** The order's page at the shop, http or https. */
|
|
8815
|
+
source_url: optional(text),
|
|
8816
|
+
reason: text
|
|
8817
|
+
}),
|
|
8818
|
+
strictObject({
|
|
8819
|
+
...base,
|
|
8820
|
+
kind: literal("order_update"),
|
|
8821
|
+
supplier_name: text,
|
|
8822
|
+
number: text,
|
|
8823
|
+
status: picklist(ORDER_STATUSES),
|
|
8824
|
+
date: optional(text),
|
|
8825
|
+
reason: text
|
|
8826
|
+
})
|
|
8732
8827
|
]);
|
|
8733
8828
|
var outcome = strictObject({
|
|
8734
8829
|
id,
|
|
@@ -8750,7 +8845,7 @@ var mailFindings = strictObject({
|
|
|
8750
8845
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
|
|
8751
8846
|
});
|
|
8752
8847
|
|
|
8753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8754
8849
|
var mediaArchive = strictObject({
|
|
8755
8850
|
directory: text,
|
|
8756
8851
|
chats: count,
|
|
@@ -8782,7 +8877,7 @@ var mediaArchiveTimer = union([
|
|
|
8782
8877
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
8783
8878
|
]);
|
|
8784
8879
|
|
|
8785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
8786
8881
|
var preparationId = pipe(string(), minLength(1));
|
|
8787
8882
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
8788
8883
|
var preparationTime = nullable(isoTime);
|
|
@@ -8874,7 +8969,7 @@ var preparationMeeting = strictObject({
|
|
|
8874
8969
|
updated_at: isoTime
|
|
8875
8970
|
});
|
|
8876
8971
|
|
|
8877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
8878
8973
|
var meetingEvidence = preparationEvidence;
|
|
8879
8974
|
var meetingPersonContext = strictObject({
|
|
8880
8975
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -8896,7 +8991,7 @@ var meetingPersonContext = strictObject({
|
|
|
8896
8991
|
})
|
|
8897
8992
|
});
|
|
8898
8993
|
|
|
8899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
8900
8995
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
8901
8996
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
8902
8997
|
var finding2 = variant("kind", [
|
|
@@ -8934,7 +9029,7 @@ var meetingFindings = strictObject({
|
|
|
8934
9029
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8935
9030
|
});
|
|
8936
9031
|
|
|
8937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
8938
9033
|
var communicationCoverage = strictObject({
|
|
8939
9034
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
8940
9035
|
query: string(),
|
|
@@ -8979,7 +9074,7 @@ var preparationCommunications = strictObject({
|
|
|
8979
9074
|
}))
|
|
8980
9075
|
});
|
|
8981
9076
|
|
|
8982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
8983
9078
|
var meetingPreparation = strictObject({
|
|
8984
9079
|
communications: optional(preparationCommunications),
|
|
8985
9080
|
schema_version: literal(1),
|
|
@@ -9092,7 +9187,7 @@ var meetingPreparation = strictObject({
|
|
|
9092
9187
|
})
|
|
9093
9188
|
});
|
|
9094
9189
|
|
|
9095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9096
9191
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9097
9192
|
var id3 = pipe(string(), minLength(1));
|
|
9098
9193
|
var text3 = string();
|
|
@@ -9156,7 +9251,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9156
9251
|
})
|
|
9157
9252
|
});
|
|
9158
9253
|
|
|
9159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9160
9255
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9161
9256
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9162
9257
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9186,7 +9281,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9186
9281
|
})
|
|
9187
9282
|
});
|
|
9188
9283
|
|
|
9189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9190
9285
|
var text4 = string();
|
|
9191
9286
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9192
9287
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9203,7 +9298,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9203
9298
|
persistence: literal("proposal-only")
|
|
9204
9299
|
});
|
|
9205
9300
|
|
|
9206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9207
9302
|
var memory = strictObject({
|
|
9208
9303
|
ref: reference,
|
|
9209
9304
|
id,
|
|
@@ -9230,7 +9325,7 @@ var memory = strictObject({
|
|
|
9230
9325
|
updated_at: time
|
|
9231
9326
|
});
|
|
9232
9327
|
|
|
9233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9234
9329
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9235
9330
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9236
9331
|
var mention = strictObject({
|
|
@@ -9273,13 +9368,13 @@ var mentionRebuild = strictObject({
|
|
|
9273
9368
|
mentions: count
|
|
9274
9369
|
});
|
|
9275
9370
|
|
|
9276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9277
9372
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9278
9373
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9279
9374
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9280
9375
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9281
9376
|
|
|
9282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9283
9378
|
var messageTranscript = strictObject({
|
|
9284
9379
|
message_id: id,
|
|
9285
9380
|
text,
|
|
@@ -9337,7 +9432,7 @@ var evidencePacket = strictObject({
|
|
|
9337
9432
|
}))
|
|
9338
9433
|
});
|
|
9339
9434
|
|
|
9340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9341
9436
|
var messageThread = strictObject({
|
|
9342
9437
|
ref: reference,
|
|
9343
9438
|
chat: id,
|
|
@@ -9354,7 +9449,7 @@ var messageThread = strictObject({
|
|
|
9354
9449
|
});
|
|
9355
9450
|
var messageContext = union([message, messageThread]);
|
|
9356
9451
|
|
|
9357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9358
9453
|
var messageCounts = strictObject({
|
|
9359
9454
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9360
9455
|
total: count,
|
|
@@ -9367,7 +9462,7 @@ var messageCounts = strictObject({
|
|
|
9367
9462
|
}))
|
|
9368
9463
|
});
|
|
9369
9464
|
|
|
9370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9371
9466
|
var messageLink = strictObject({
|
|
9372
9467
|
ref: reference,
|
|
9373
9468
|
url: nullable(text),
|
|
@@ -9384,7 +9479,7 @@ var messageLink = strictObject({
|
|
|
9384
9479
|
})))
|
|
9385
9480
|
});
|
|
9386
9481
|
|
|
9387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9388
9483
|
var savedMessageFile = strictObject({
|
|
9389
9484
|
kind: text,
|
|
9390
9485
|
path: text,
|
|
@@ -9471,7 +9566,7 @@ var messageSyncAll = strictObject({
|
|
|
9471
9566
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9472
9567
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9473
9568
|
|
|
9474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9475
9570
|
var messageWrite = strictObject({
|
|
9476
9571
|
operation_id: id,
|
|
9477
9572
|
message,
|
|
@@ -9486,7 +9581,7 @@ var draftWrite = strictObject({
|
|
|
9486
9581
|
});
|
|
9487
9582
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9488
9583
|
|
|
9489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9490
9585
|
var model2 = strictObject({
|
|
9491
9586
|
id,
|
|
9492
9587
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9503,7 +9598,7 @@ var model2 = strictObject({
|
|
|
9503
9598
|
path: text
|
|
9504
9599
|
});
|
|
9505
9600
|
|
|
9506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9507
9602
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9508
9603
|
var modelKey = strictObject({
|
|
9509
9604
|
provider: text,
|
|
@@ -9513,7 +9608,7 @@ var modelKey = strictObject({
|
|
|
9513
9608
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9514
9609
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9515
9610
|
|
|
9516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9517
9612
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9518
9613
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9519
9614
|
var graph = strictObject({
|
|
@@ -9547,14 +9642,14 @@ var officialStats = strictObject({
|
|
|
9547
9642
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9548
9643
|
});
|
|
9549
9644
|
|
|
9550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9551
9646
|
var person2 = strictObject({
|
|
9552
9647
|
ref: reference,
|
|
9553
9648
|
name: nullable(text),
|
|
9554
9649
|
identities: optional(array(identity))
|
|
9555
9650
|
});
|
|
9556
9651
|
|
|
9557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9558
9653
|
var poll = strictObject({
|
|
9559
9654
|
chat_id: id,
|
|
9560
9655
|
message_id: id,
|
|
@@ -9570,11 +9665,11 @@ var poll = strictObject({
|
|
|
9570
9665
|
});
|
|
9571
9666
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9572
9667
|
|
|
9573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9574
9669
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9575
9670
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9576
9671
|
|
|
9577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9578
9673
|
var figures = record(string(), number());
|
|
9579
9674
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9580
9675
|
var rankingRow = strictObject({
|
|
@@ -9621,7 +9716,7 @@ var ranking = strictObject({
|
|
|
9621
9716
|
rows: array(rankingRow)
|
|
9622
9717
|
});
|
|
9623
9718
|
|
|
9624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9625
9720
|
var reaction = strictObject({
|
|
9626
9721
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9627
9722
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9629,7 +9724,7 @@ var reaction = strictObject({
|
|
|
9629
9724
|
reacted_at: time
|
|
9630
9725
|
});
|
|
9631
9726
|
|
|
9632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9633
9728
|
var reactionChange = strictObject({
|
|
9634
9729
|
operation_id: id,
|
|
9635
9730
|
chat_id: id,
|
|
@@ -9637,7 +9732,7 @@ var reactionChange = strictObject({
|
|
|
9637
9732
|
reaction: nullable(text)
|
|
9638
9733
|
});
|
|
9639
9734
|
|
|
9640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9641
9736
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9642
9737
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9643
9738
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9648,7 +9743,7 @@ var recipientChange = strictObject({
|
|
|
9648
9743
|
...partial(recipientOff).entries
|
|
9649
9744
|
});
|
|
9650
9745
|
|
|
9651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9652
9747
|
var events = array(record(string(), unknown()));
|
|
9653
9748
|
var recordedRun = strictObject({
|
|
9654
9749
|
run_id: id,
|
|
@@ -9720,7 +9815,7 @@ var runHit = strictObject({
|
|
|
9720
9815
|
});
|
|
9721
9816
|
var runLocation = strictObject({ path: text });
|
|
9722
9817
|
|
|
9723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9724
9819
|
var relationship = strictObject({
|
|
9725
9820
|
id,
|
|
9726
9821
|
from: reference,
|
|
@@ -9737,7 +9832,7 @@ var relationship = strictObject({
|
|
|
9737
9832
|
created_at: time
|
|
9738
9833
|
});
|
|
9739
9834
|
|
|
9740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
9741
9836
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9742
9837
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9743
9838
|
var responseTimes = strictObject({
|
|
@@ -9754,7 +9849,7 @@ var waitingChats = strictObject({
|
|
|
9754
9849
|
by_kind: strictObject({ private: count, group: count })
|
|
9755
9850
|
});
|
|
9756
9851
|
|
|
9757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9758
9853
|
var retentionCohort = strictObject({
|
|
9759
9854
|
/** The first day of the joining day or week. */
|
|
9760
9855
|
cohort: text,
|
|
@@ -9802,7 +9897,7 @@ var retention = strictObject({
|
|
|
9802
9897
|
rows: array(retentionCohort)
|
|
9803
9898
|
});
|
|
9804
9899
|
|
|
9805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
9806
9901
|
var savedSearch = strictObject({
|
|
9807
9902
|
id,
|
|
9808
9903
|
/** `null` for a run in the history. */
|
|
@@ -9819,7 +9914,7 @@ var savedSearch = strictObject({
|
|
|
9819
9914
|
});
|
|
9820
9915
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
9821
9916
|
|
|
9822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
9823
9918
|
var sendAttempt = strictObject({
|
|
9824
9919
|
at: time,
|
|
9825
9920
|
profile: text,
|
|
@@ -9847,7 +9942,7 @@ var sendAttempt = strictObject({
|
|
|
9847
9942
|
error_code: optional(text)
|
|
9848
9943
|
});
|
|
9849
9944
|
|
|
9850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
9851
9946
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
9852
9947
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
9853
9948
|
var infoSchema = strictObject({
|
|
@@ -10055,7 +10150,7 @@ var storeRepair = union([
|
|
|
10055
10150
|
]);
|
|
10056
10151
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10057
10152
|
|
|
10058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10059
10154
|
var range = strictObject({ from: number(), to: number() });
|
|
10060
10155
|
var storeChatStatus = strictObject({
|
|
10061
10156
|
chat_id: id,
|
|
@@ -10153,7 +10248,7 @@ var storeJobRetry = union([
|
|
|
10153
10248
|
]);
|
|
10154
10249
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10155
10250
|
|
|
10156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10157
10252
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10158
10253
|
var storeTable = strictObject({
|
|
10159
10254
|
name: text,
|
|
@@ -10162,7 +10257,7 @@ var storeTable = strictObject({
|
|
|
10162
10257
|
bytes: optional(nullable(count))
|
|
10163
10258
|
});
|
|
10164
10259
|
|
|
10165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10166
10261
|
var tagTarget = variant("type", [
|
|
10167
10262
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10168
10263
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10193,7 +10288,7 @@ var automaticTags = strictObject({
|
|
|
10193
10288
|
dry_run: boolean()
|
|
10194
10289
|
});
|
|
10195
10290
|
|
|
10196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10197
10292
|
var tagging = strictObject({
|
|
10198
10293
|
tag: text,
|
|
10199
10294
|
type: picklist(TAG_TYPES),
|
|
@@ -10206,7 +10301,7 @@ var tagging = strictObject({
|
|
|
10206
10301
|
created_at: time
|
|
10207
10302
|
});
|
|
10208
10303
|
|
|
10209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10210
10305
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10211
10306
|
var taskPair = strictObject({
|
|
10212
10307
|
task: nullable(side),
|
|
@@ -10229,7 +10324,7 @@ var taskPair = strictObject({
|
|
|
10229
10324
|
created_at: time
|
|
10230
10325
|
});
|
|
10231
10326
|
|
|
10232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10233
10328
|
var nullableTime = nullable(time);
|
|
10234
10329
|
var link = strictObject({
|
|
10235
10330
|
id,
|
|
@@ -10264,6 +10359,10 @@ var taskCard = strictObject({
|
|
|
10264
10359
|
revision: number(),
|
|
10265
10360
|
parent: nullable(reference),
|
|
10266
10361
|
source: nullable(text),
|
|
10362
|
+
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
10363
|
+
external_id: nullable(text),
|
|
10364
|
+
/** The http or https page it is about, such as an Avito ad. */
|
|
10365
|
+
source_url: nullable(text),
|
|
10267
10366
|
due_at: nullableTime,
|
|
10268
10367
|
next_check_at: nullableTime,
|
|
10269
10368
|
closed_at: nullableTime,
|
|
@@ -10399,7 +10498,7 @@ var taskReview = strictObject({
|
|
|
10399
10498
|
untrusted
|
|
10400
10499
|
});
|
|
10401
10500
|
|
|
10402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10403
10502
|
var topic = strictObject({
|
|
10404
10503
|
id,
|
|
10405
10504
|
title: text,
|
|
@@ -10413,7 +10512,7 @@ var topic = strictObject({
|
|
|
10413
10512
|
untrusted
|
|
10414
10513
|
});
|
|
10415
10514
|
|
|
10416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10417
10516
|
var ENTITIES = {
|
|
10418
10517
|
sync_progress: progress,
|
|
10419
10518
|
...MEETING_RESULT_ENTITIES,
|
|
@@ -10695,7 +10794,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10695
10794
|
return [name, definition];
|
|
10696
10795
|
})), "entityDefinitions");
|
|
10697
10796
|
|
|
10698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10699
10798
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10700
10799
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10701
10800
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10729,7 +10828,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10729
10828
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10730
10829
|
}, "answerRow");
|
|
10731
10830
|
|
|
10732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
10733
10832
|
import { join as join6 } from "node:path";
|
|
10734
10833
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
10735
10834
|
var IMAGE_MODELS = [
|
|
@@ -10783,7 +10882,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
10783
10882
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
10784
10883
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
10785
10884
|
|
|
10786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10787
10886
|
var STEPS2 = defineSteps([
|
|
10788
10887
|
...STEPS,
|
|
10789
10888
|
{
|
|
@@ -11064,29 +11163,20 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11064
11163
|
].join(" ");
|
|
11065
11164
|
}, "stepLine");
|
|
11066
11165
|
|
|
11067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11068
|
-
var where = [{ field: "ref" }
|
|
11166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11167
|
+
var where = [{ field: "ref" }];
|
|
11069
11168
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11169
|
+
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
11070
11170
|
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
11171
|
"status.questions": {
|
|
11082
|
-
columns: [...where, { field: "at", as: "day" },
|
|
11172
|
+
columns: [...where, { field: "at", as: "day" }, who2],
|
|
11083
11173
|
text: ["data.excerpt"]
|
|
11084
11174
|
},
|
|
11085
11175
|
"status.promises": {
|
|
11086
11176
|
columns: [
|
|
11087
11177
|
...where,
|
|
11088
11178
|
{ field: "at", as: "day" },
|
|
11089
|
-
{ field: "
|
|
11179
|
+
{ field: "basis" },
|
|
11090
11180
|
{ field: "data.side" },
|
|
11091
11181
|
{ field: "data.due", as: "day" },
|
|
11092
11182
|
{ field: "data.status" }
|
|
@@ -11113,21 +11203,10 @@ var STATUS_SIGNAL_ROWS = {
|
|
|
11113
11203
|
columns: [
|
|
11114
11204
|
...where,
|
|
11115
11205
|
{ field: "data.query" },
|
|
11116
|
-
{ field: "data.theirs_last", as: "day" },
|
|
11117
11206
|
{ field: "data.yours_last", as: "day" },
|
|
11118
11207
|
{ field: "data.silent_since", as: "day" }
|
|
11119
11208
|
]
|
|
11120
11209
|
},
|
|
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
11210
|
"status.children": {
|
|
11132
11211
|
columns: [
|
|
11133
11212
|
{ field: "data.child" },
|
|
@@ -11144,10 +11223,14 @@ var STATUS_ROWS = {
|
|
|
11144
11223
|
columns: [
|
|
11145
11224
|
{ field: "chat" },
|
|
11146
11225
|
{ field: "title" },
|
|
11147
|
-
{ field: "kind" },
|
|
11148
11226
|
{ field: "role" },
|
|
11149
|
-
{ field: "
|
|
11150
|
-
{ field: "
|
|
11227
|
+
{ field: "next", prefix: "next" },
|
|
11228
|
+
{ field: "addressed.name" },
|
|
11229
|
+
{ field: "waiting_since", as: "day" },
|
|
11230
|
+
{ field: "overdue", tag: "overdue" },
|
|
11231
|
+
{ field: "held.messages", as: "count", tag: "held" },
|
|
11232
|
+
{ field: "unlisted.questions", as: "count", tag: "questions unlisted" },
|
|
11233
|
+
{ field: "unlisted.promises", as: "count", tag: "promises unlisted" }
|
|
11151
11234
|
]
|
|
11152
11235
|
},
|
|
11153
11236
|
"status.money": {
|
|
@@ -11158,7 +11241,6 @@ var STATUS_ROWS = {
|
|
|
11158
11241
|
{ field: "rows", as: "count", tag: "rows" }
|
|
11159
11242
|
]
|
|
11160
11243
|
},
|
|
11161
|
-
"status.signal": { columns: [{ field: "id" }, { field: "version" }] },
|
|
11162
11244
|
"status.out-of-scope": {
|
|
11163
11245
|
columns: [
|
|
11164
11246
|
{ field: "chat" },
|
|
@@ -11173,7 +11255,7 @@ var STATUS_ROWS = {
|
|
|
11173
11255
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11174
11256
|
};
|
|
11175
11257
|
|
|
11176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11177
11259
|
var TEXT_CHARS = 400;
|
|
11178
11260
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11179
11261
|
var messageRow = {
|
|
@@ -11359,7 +11441,7 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
|
|
|
11359
11441
|
if (!parts)
|
|
11360
11442
|
return { text: clean(iso) };
|
|
11361
11443
|
const day2 = parts.date.slice(5);
|
|
11362
|
-
return
|
|
11444
|
+
return column.as === "day" ? { text: day2, date: parts.date } : { text: `${day2} ${parts.time}`, date: parts.date, time: parts.time };
|
|
11363
11445
|
}
|
|
11364
11446
|
case "count":
|
|
11365
11447
|
return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
|
|
@@ -11407,6 +11489,17 @@ var sameEverywhere = /* @__PURE__ */ __name((rows2, index) => {
|
|
|
11407
11489
|
const first2 = rows2[0]?.cells[index]?.text;
|
|
11408
11490
|
return first2 !== void 0 && rows2.every(({ cells }) => cells[index]?.text === first2);
|
|
11409
11491
|
}, "sameEverywhere");
|
|
11492
|
+
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");
|
|
11493
|
+
var dayColumn = /* @__PURE__ */ __name((rows2, shape, hoisted) => {
|
|
11494
|
+
const index = shape.columns.findIndex((column, at2) => column.as === "time" && !hoisted[at2]);
|
|
11495
|
+
if (index < 0)
|
|
11496
|
+
return -1;
|
|
11497
|
+
const dates = rows2.map(({ cells }) => cells[index]?.date);
|
|
11498
|
+
if (dates.some((one) => one === void 0))
|
|
11499
|
+
return -1;
|
|
11500
|
+
const days2 = dates;
|
|
11501
|
+
return ordered(days2) && new Set(days2).size * 3 <= days2.length ? index : -1;
|
|
11502
|
+
}, "dayColumn");
|
|
11410
11503
|
var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
11411
11504
|
const dates = [];
|
|
11412
11505
|
const rows2 = items.map((item) => {
|
|
@@ -11429,18 +11522,31 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
|
11429
11522
|
return [];
|
|
11430
11523
|
return [`${sourceOf(item, column) ?? fieldsOfColumn(column.field)[0]}: ${rows2[0]?.cells[index]?.text}`];
|
|
11431
11524
|
});
|
|
11432
|
-
const
|
|
11433
|
-
|
|
11525
|
+
const byDay = dayColumn(rows2, shape, hoisted);
|
|
11526
|
+
let shownDay;
|
|
11527
|
+
const lines = rows2.flatMap(({ cells, text: text5, item }) => {
|
|
11528
|
+
const parts = cells.map((cell2, index) => hoisted[index] ? void 0 : cell2?.text);
|
|
11529
|
+
const dayLine = [];
|
|
11530
|
+
const cell = cells[byDay];
|
|
11531
|
+
if (byDay >= 0 && cell?.date && cell.time) {
|
|
11532
|
+
if (cell.date !== shownDay)
|
|
11533
|
+
dayLine.push(`# ${cell.date}`);
|
|
11534
|
+
shownDay = cell.date;
|
|
11535
|
+
parts[byDay] = cell.time;
|
|
11536
|
+
}
|
|
11434
11537
|
const shortened = prefix ? clean(prefix) : void 0;
|
|
11435
11538
|
if (shortened && parts[0]?.startsWith(shortened))
|
|
11436
11539
|
parts[0] = `#${parts[0].slice(shortened.length)}`;
|
|
11437
11540
|
const shown = [...parts, text5].filter((part) => part !== void 0 && part !== "");
|
|
11438
|
-
return guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "");
|
|
11541
|
+
return [...dayLine, guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "")];
|
|
11439
11542
|
});
|
|
11440
|
-
const
|
|
11441
|
-
|
|
11442
|
-
return { header, lines };
|
|
11543
|
+
const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named2];
|
|
11544
|
+
return { header, lines, dates };
|
|
11443
11545
|
}, "rowsOfItems");
|
|
11546
|
+
var spanOf = /* @__PURE__ */ __name((dates, clock) => {
|
|
11547
|
+
const when = span(dates);
|
|
11548
|
+
return when ? [when, clock.zone] : [];
|
|
11549
|
+
}, "spanOf");
|
|
11444
11550
|
var blockLine = /* @__PURE__ */ __name((fields, chars) => blockOf(fields, chars).join(" "), "blockLine");
|
|
11445
11551
|
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
11552
|
const label = `${indent}${clean(name)}:`;
|
|
@@ -11491,25 +11597,31 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11491
11597
|
const chars = options.textChars ?? TEXT_CHARS;
|
|
11492
11598
|
let lines = [];
|
|
11493
11599
|
if ("items" in body) {
|
|
11494
|
-
const { header, lines: rows2 } = rowsOfItems(body.items, shape, clock, chars);
|
|
11495
|
-
|
|
11600
|
+
const { header, lines: rows2, dates } = rowsOfItems(body.items, shape, clock, chars);
|
|
11601
|
+
const head = [...header, ...spanOf(dates, clock)];
|
|
11602
|
+
lines = (head.length ? [`# ${head.join(" \xB7 ")}`] : []).concat(rows2.length ? rows2 : ["# nothing found"]);
|
|
11496
11603
|
} else if (isFields(body.item)) {
|
|
11497
11604
|
const sections = shape.sections ?? {};
|
|
11498
|
-
const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
|
|
11605
|
+
const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name) && !shape.hidden?.includes(name)));
|
|
11499
11606
|
lines = blockOf(rest, chars, "", shape.whole).map(guarded);
|
|
11607
|
+
let dates = [];
|
|
11608
|
+
let drawn = [];
|
|
11500
11609
|
for (const [name, entity] of Object.entries(sections)) {
|
|
11501
11610
|
const list = body.item[name];
|
|
11502
11611
|
if (!Array.isArray(list))
|
|
11503
11612
|
continue;
|
|
11504
|
-
const { header, lines: rows2 } = rowsOfItems(list, rowsOf(entity), clock, chars);
|
|
11505
|
-
|
|
11613
|
+
const { header, lines: rows2, dates: more } = rowsOfItems(list, rowsOf(entity), clock, chars);
|
|
11614
|
+
dates = dates.concat(more);
|
|
11615
|
+
drawn = drawn.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
|
|
11506
11616
|
}
|
|
11617
|
+
const when = spanOf(dates, clock);
|
|
11618
|
+
lines = lines.concat(when.length ? [`# ${when.join(" \xB7 ")}`] : [], drawn);
|
|
11507
11619
|
} else if (present(body.item))
|
|
11508
11620
|
lines = [guarded(cut(clean(String(body.item)), chars))];
|
|
11509
11621
|
return lines.concat(footerOf(body)).join("\n");
|
|
11510
11622
|
}, "compactText");
|
|
11511
11623
|
|
|
11512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11513
11625
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11514
11626
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11515
11627
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11567,7 +11679,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11567
11679
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11568
11680
|
}, "largeAnswerSteps");
|
|
11569
11681
|
|
|
11570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11571
11683
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11572
11684
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11573
11685
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11581,7 +11693,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11581
11693
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11582
11694
|
}, "strip");
|
|
11583
11695
|
|
|
11584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11585
11697
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11586
11698
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11587
11699
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -11938,6 +12050,7 @@ export {
|
|
|
11938
12050
|
answerEntity,
|
|
11939
12051
|
answerEntitySchema,
|
|
11940
12052
|
answerProjectionSchema,
|
|
12053
|
+
ON_CHAT_ROW,
|
|
11941
12054
|
STATUS_SIGNAL_ROWS,
|
|
11942
12055
|
entityRows,
|
|
11943
12056
|
nextStep,
|