@wirecat/mail-cli 0.36.0 → 0.38.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 +55 -0
- package/contracts/wirecat.json +1 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-U43CYLAP.js +41 -0
- package/dist/bundle/{all-profiles-RS6OV3YO.js → all-profiles-OCUZMXMI.js} +11 -11
- package/dist/bundle/{anthropic-PPQ7DTXN.js → anthropic-CABWJABQ.js} +5 -5
- package/dist/bundle/{app-server-EBFBMFQC.js → app-server-TTWPIGWG.js} +70 -67
- package/dist/bundle/{bun-J7HAT7MW.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-PCSNAXIQ.js → bun-sqlite-YKYG25CR.js} +6 -6
- package/dist/bundle/{chunk-6FZPFNEU.js → chunk-24UGTK32.js} +9 -9
- package/dist/bundle/{chunk-RJUVWJTA.js → chunk-2HDXD6LM.js} +7 -7
- package/dist/bundle/{chunk-VIDPFLFM.js → chunk-2SQLHBDP.js} +2 -2
- package/dist/bundle/{chunk-WZFGZBGD.js → chunk-2YO3PLOE.js} +19 -19
- package/dist/bundle/{chunk-3ZKNXKM7.js → chunk-3TYER5IK.js} +14 -6
- package/dist/bundle/{chunk-AVR4FPYG.js → chunk-4FXDUXZP.js} +8 -8
- package/dist/bundle/{chunk-MQ6DQRRI.js → chunk-5ICUC66S.js} +4 -4
- package/dist/bundle/{chunk-WNQECDIP.js → chunk-725OPCHI.js} +61 -61
- package/dist/bundle/{chunk-Q6TPXXOS.js → chunk-77YTUOKN.js} +35 -176
- package/dist/bundle/chunk-7ECP5ZQR.js +2 -0
- package/dist/bundle/{chunk-5G4MDFZ2.js → chunk-7EJWHADX.js} +14 -10
- package/dist/bundle/{chunk-GEU3WR75.js → chunk-7KO5FSAW.js} +3 -3
- package/dist/bundle/{chunk-NSH2UHJR.js → chunk-A3KNH3Q4.js} +8 -8
- package/dist/bundle/{chunk-SCJVKWMV.js → chunk-AGO3OVKW.js} +2145 -902
- package/dist/bundle/{chunk-TV634B6T.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-ROK7Z5LQ.js → chunk-BA5B5ZF4.js} +274 -182
- package/dist/bundle/{chunk-ZV57PIPE.js → chunk-C4PUDTGD.js} +2 -2
- package/dist/bundle/{chunk-IBOWSQ7X.js → chunk-C7JPYWYQ.js} +1 -1
- package/dist/bundle/{chunk-BBQERXQX.js → chunk-CJJFOT7W.js} +3 -3
- package/dist/bundle/{chunk-645FQC4G.js → chunk-CLTFTGBP.js} +18 -17
- package/dist/bundle/{chunk-XRVZMM5B.js → chunk-DKGKPJA3.js} +164 -36
- package/dist/bundle/{chunk-HPSESLOZ.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-EGR3YUWD.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-GI6DNX7Q.js → chunk-DYCE72XB.js} +36 -36
- package/dist/bundle/{chunk-42XY6D5C.js → chunk-EDWY73H7.js} +5 -5
- package/dist/bundle/{chunk-L4QLZDBZ.js → chunk-EJQAP6A6.js} +6 -6
- package/dist/bundle/{chunk-REWV37HQ.js → chunk-ESNZL7SB.js} +6 -6
- package/dist/bundle/{chunk-DVJPEZGV.js → chunk-FFER7KJI.js} +13 -13
- package/dist/bundle/{chunk-NJZR3OFK.js → chunk-FTH6WGYO.js} +1 -1
- package/dist/bundle/{chunk-SJNFPBPF.js → chunk-FWGNDKJK.js} +2 -2
- package/dist/bundle/{chunk-5VPLQS4S.js → chunk-G46PNDWL.js} +2 -2
- package/dist/bundle/chunk-G5HG7ZWQ.js +1169 -0
- package/dist/bundle/{chunk-RMWS7IQ4.js → chunk-G6NY7LFB.js} +4 -4
- package/dist/bundle/{chunk-PPIMXOBT.js → chunk-GMWKNWWY.js} +6 -6
- package/dist/bundle/{chunk-774VG5WZ.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-LQQIYBHN.js → chunk-HFDDVGDH.js} +201 -113
- package/dist/bundle/{chunk-NYYMMIVW.js → chunk-HFRH5YJ6.js} +16 -3
- package/dist/bundle/{chunk-3BYKGMRM.js → chunk-HI6MTNID.js} +6 -6
- package/dist/bundle/{chunk-PF7ZNIVP.js → chunk-HIKPVWCL.js} +3 -3
- package/dist/bundle/{chunk-U3BO342P.js → chunk-HO4JGD4Q.js} +1 -1
- package/dist/bundle/chunk-HUAHLO6N.js +29 -0
- package/dist/bundle/{chunk-QI2XGTFH.js → chunk-HYUUAH2N.js} +8 -8
- package/dist/bundle/chunk-I4AWLFYH.js +377 -0
- package/dist/bundle/{chunk-MRWV5VNQ.js → chunk-I4PZOWYG.js} +6 -6
- package/dist/bundle/chunk-IDCZ4LWS.js +150 -0
- package/dist/bundle/{chunk-NTUP5RCP.js → chunk-ISQ23VKV.js} +8 -1
- package/dist/bundle/{chunk-2VEFNFYZ.js → chunk-KLRCTMES.js} +3 -3
- package/dist/bundle/{chunk-C3JSQ7UJ.js → chunk-KP5JDYY6.js} +27 -8
- package/dist/bundle/{chunk-CMOO4INK.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/{chunk-KTVQIKU5.js → chunk-LB2CF3GG.js} +19 -15
- package/dist/bundle/{chunk-6PKMUKUF.js → chunk-LC7ZD2RW.js} +1 -1
- package/dist/bundle/{chunk-2UNZ3L2H.js → chunk-M65NILSA.js} +6 -6
- package/dist/bundle/{chunk-PMSZBUC7.js → chunk-NQFG7AES.js} +8 -8
- package/dist/bundle/chunk-OAO3JKQD.js +463 -0
- package/dist/bundle/{chunk-JCILSTFK.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/{chunk-6VMJLOYO.js → chunk-OVHC7OV4.js} +12 -12
- package/dist/bundle/{chunk-OEL4DQTT.js → chunk-PT4VLN3K.js} +4 -4
- package/dist/bundle/chunk-QETNCUWB.js +1703 -0
- package/dist/bundle/{chunk-ZRSLG3B3.js → chunk-QK3Z7BCC.js} +6 -6
- package/dist/bundle/{chunk-CJHO6B3M.js → chunk-QWF3TFW4.js} +43 -29
- package/dist/bundle/{chunk-NYR7PIAG.js → chunk-RHEDE7D4.js} +3 -3
- package/dist/bundle/{chunk-KP7JHJVP.js → chunk-RI5YZ23Y.js} +27 -27
- package/dist/bundle/{chunk-2RV4V55B.js → chunk-ROUZN6UQ.js} +20 -85
- package/dist/bundle/{chunk-4WSTWZUB.js → chunk-RQD7CAGF.js} +2 -2
- package/dist/bundle/{chunk-PMGAU6AP.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-KLPFPNZP.js → chunk-SBLHQAH3.js} +11 -11
- package/dist/bundle/{chunk-6UYIWQLU.js → chunk-SXLIADMY.js} +4 -4
- package/dist/bundle/{chunk-5JEKBYIH.js → chunk-SYCM6SQ5.js} +14 -14
- package/dist/bundle/{chunk-3NOXZZJV.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-6NDPOY4N.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-YPB5BEAD.js → chunk-TES7MB6I.js} +2 -2
- package/dist/bundle/chunk-TQDSBLQB.js +2 -0
- package/dist/bundle/{chunk-VIJV474N.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-QDNYJOWJ.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-437UHSIO.js → chunk-UGFMQWAZ.js} +210 -62
- package/dist/bundle/{chunk-KVFBSOCV.js → chunk-VA6PHTMV.js} +9 -9
- package/dist/bundle/{chunk-WPPPO427.js → chunk-VK24UQSD.js} +4 -4
- package/dist/bundle/{chunk-MT3LYU4T.js → chunk-VUHH4MQW.js} +21768 -12322
- package/dist/bundle/{chunk-CJMZQ2MZ.js → chunk-W3BOR6AT.js} +8 -8
- package/dist/bundle/chunk-WA53OJ7V.js +160 -0
- package/dist/bundle/{chunk-HH34WRQE.js → chunk-XGVMQMTS.js} +7 -7
- package/dist/bundle/{chunk-GBZIWCEP.js → chunk-YP4FYLFI.js} +3 -3
- package/dist/bundle/{chunk-V5I7QP4T.js → chunk-ZDBWBCEO.js} +2 -2
- package/dist/bundle/{chunk-GCTHVCJU.js → chunk-ZKVUAH5N.js} +4 -4
- package/dist/bundle/command-contract-V2WIL6RL.js +40 -0
- package/dist/bundle/{command-server-entry-73RJELAV.js → command-server-entry-ZC5YF4EC.js} +29 -28
- package/dist/bundle/{decode-7BUWBDPT.js → decode-NXAGEUAD.js} +5 -5
- package/dist/bundle/{dispatch-IBOMVWZA.js → dispatch-USKS7J74.js} +8 -8
- package/dist/bundle/{dist-MULVCVSR.js → dist-XN2CRP3U.js} +49 -48
- package/dist/bundle/{echarts-VLWFC322.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-W3VH4HPY.js → embed-3P3LSM2O.js} +6 -6
- package/dist/bundle/{embedder-I7ERQZJV.js → embedder-2SANUF2X.js} +9 -9
- package/dist/bundle/{failure-QMAPSQ7X.js → failure-D4FGOIWF.js} +2 -2
- package/dist/bundle/{first-run-LCVER6QN.js → first-run-HEZKQLJL.js} +12 -12
- package/dist/bundle/first-screen-7TQZ4I6X.js +41 -0
- package/dist/bundle/{instructions-BNCVLSYQ.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-Z2KZNCXB.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-HF2NL4PU.js +26 -0
- package/dist/bundle/{meeting-model-BWLSTNXA.js → meeting-model-B7RVFB7L.js} +11 -11
- package/dist/bundle/{meeting-semantic-ZIEHXN2R.js → meeting-semantic-YQTL7YVQ.js} +6 -6
- package/dist/bundle/{node-RYFTRSG4.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-XCHVNTGQ.js → node-sqlite-OFHTCHJH.js} +7 -7
- package/dist/bundle/{oauth-FNUJSKKJ.js → oauth-IVB5RP7T.js} +7 -7
- package/dist/bundle/{open-WVWSJ3WI.js → open-KDGDLCWV.js} +5 -5
- package/dist/bundle/{openai-QOUTYYTF.js → openai-NVUBKA7Z.js} +15 -15
- package/dist/bundle/{process-W5KPID53.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-L5UANM3I.js → program-JQ7EFODJ.js} +2825 -7739
- package/dist/bundle/{prompt-JSBAPNJE.js → prompt-QG7FC2SA.js} +5 -5
- package/dist/bundle/public-FBD7MQUM.js +204 -0
- package/dist/bundle/{recognize-FDX4SJ6Q.js → recognize-ZBR5KNID.js} +4 -4
- package/dist/bundle/{remote-MYOXOQHM.js → remote-QOTHNO2M.js} +9 -9
- package/dist/bundle/{rerank-NY5MSZCR.js → rerank-JD2NIUW6.js} +7 -7
- package/dist/bundle/{serve-URI6NZA3.js → serve-QZT3FKK7.js} +9 -9
- package/dist/bundle/{server-HQ25RHQM.js → server-M6JJ7IKS.js} +62 -59
- package/dist/bundle/server-TAMXMWK6.js +87 -0
- package/dist/bundle/{sqlite-runtime-6UUPSSKG.js → sqlite-runtime-N2PY7C7J.js} +6 -6
- package/dist/bundle/{state-NDDVFPCI.js → state-OGRUMU7P.js} +6 -6
- package/dist/bundle/{store-2RDOICVN.js → store-7UE63OQR.js} +61 -43
- package/dist/bundle/{store-PKYWPKKR.js → store-DGJKE4ZJ.js} +25 -23
- package/dist/bundle/store-maintenance-command-WIDKMZLK.js +74 -0
- package/dist/bundle/surface-LTEEEZU4.js +73 -0
- package/dist/commands/import.js +2 -2
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/messages.js +3 -3
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/read.js +2 -2
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +1 -0
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +2 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +28 -4
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts.map +1 -1
- package/dist/commands/tags.js.map +1 -1
- package/dist/commands/words.js +1 -1
- package/dist/commands/words.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -0
- package/dist/identity.js.map +1 -1
- package/dist/mail/imap/account.d.ts.map +1 -1
- package/dist/mail/imap/account.js +2 -1
- package/dist/mail/imap/account.js.map +1 -1
- package/dist/mail/send-as.d.ts +21 -0
- package/dist/mail/send-as.d.ts.map +1 -0
- package/dist/mail/send-as.js +66 -0
- package/dist/mail/send-as.js.map +1 -0
- package/dist/mail/send.d.ts +2 -0
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +3 -1
- package/dist/mail/send.js.map +1 -1
- package/dist/profile.js +1 -1
- package/dist/profile.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -4
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -1
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/agent-MW7YWUIY.js +0 -39
- package/dist/bundle/chunk-5TIWO6AR.js +0 -787
- package/dist/bundle/chunk-6LJIENVT.js +0 -29
- package/dist/bundle/chunk-6TT62IUW.js +0 -1264
- package/dist/bundle/chunk-NCY55XIT.js +0 -721
- package/dist/bundle/chunk-U67XMAEE.js +0 -72
- package/dist/bundle/command-contract-WFTIRPL5.js +0 -39
- package/dist/bundle/first-screen-DCTHI4NQ.js +0 -39
- package/dist/bundle/meeting-combined-ITU7SZ7E.js +0 -24
- package/dist/bundle/server-UVYFU2JN.js +0 -84
- package/dist/bundle/store-maintenance-command-Y5XTO47X.js +0 -71
- package/dist/bundle/surface-3XKM3MQ2.js +0 -70
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2HDXD6LM.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -23,39 +23,28 @@ import {
|
|
|
23
23
|
providerErrorKey,
|
|
24
24
|
renderEvent,
|
|
25
25
|
runContextOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NQFG7AES.js";
|
|
27
27
|
import {
|
|
28
28
|
permissionCeiling
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CJJFOT7W.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_RERANK_MODEL,
|
|
32
32
|
RERANK_MODELS
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-I4PZOWYG.js";
|
|
34
34
|
import {
|
|
35
35
|
carries
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-T3W4V4A6.js";
|
|
37
37
|
import {
|
|
38
38
|
note
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-7KO5FSAW.js";
|
|
40
40
|
import {
|
|
41
41
|
CATEGORIES,
|
|
42
|
-
FACT_STATUSES,
|
|
43
42
|
KEEP_STORE_RUNS_FOR_DAYS,
|
|
44
43
|
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
45
44
|
LINK_KINDS,
|
|
46
45
|
LINK_SOURCES,
|
|
47
46
|
LOG_ATTRIBUTES,
|
|
48
|
-
MEMORY_KINDS,
|
|
49
|
-
MEMORY_SCOPES,
|
|
50
|
-
MEMORY_STATUSES,
|
|
51
|
-
PRIORITY_LABELS,
|
|
52
47
|
RUNS_SIZE_LIMIT_MB,
|
|
53
|
-
TASK_KINDS,
|
|
54
|
-
TASK_ORIGINS,
|
|
55
|
-
TASK_STATES,
|
|
56
|
-
TASK_TYPES,
|
|
57
|
-
TASK_VERDICTS,
|
|
58
|
-
WORK_TASK_TYPES,
|
|
59
48
|
author,
|
|
60
49
|
childTrace,
|
|
61
50
|
count,
|
|
@@ -81,7 +70,7 @@ import {
|
|
|
81
70
|
typedCommand,
|
|
82
71
|
untrusted,
|
|
83
72
|
useAsProcessRun
|
|
84
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-G5HG7ZWQ.js";
|
|
85
74
|
import {
|
|
86
75
|
BUSINESS_KINDS,
|
|
87
76
|
CRM_ACTIVITY_KINDS,
|
|
@@ -96,14 +85,28 @@ import {
|
|
|
96
85
|
ORDER_STATUSES,
|
|
97
86
|
RELATION_KINDS,
|
|
98
87
|
STANDINGS
|
|
99
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-I4AWLFYH.js";
|
|
100
89
|
import {
|
|
101
90
|
isCliFailure,
|
|
91
|
+
storeBusy,
|
|
102
92
|
storeDamaged
|
|
103
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-3TYER5IK.js";
|
|
94
|
+
import {
|
|
95
|
+
FACT_STATUSES,
|
|
96
|
+
MEMORY_KINDS,
|
|
97
|
+
MEMORY_SCOPES,
|
|
98
|
+
MEMORY_STATUSES,
|
|
99
|
+
PRIORITY_LABELS,
|
|
100
|
+
TASK_KINDS,
|
|
101
|
+
TASK_ORIGINS,
|
|
102
|
+
TASK_STATES,
|
|
103
|
+
TASK_TYPES,
|
|
104
|
+
TASK_VERDICTS,
|
|
105
|
+
WORK_TASK_TYPES
|
|
106
|
+
} from "./chunk-IDCZ4LWS.js";
|
|
104
107
|
import {
|
|
105
108
|
TAG_TYPES
|
|
106
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-OAO3JKQD.js";
|
|
107
110
|
import {
|
|
108
111
|
FACT_TYPES,
|
|
109
112
|
FIELD_TYPES,
|
|
@@ -131,21 +134,21 @@ import {
|
|
|
131
134
|
parseLucene,
|
|
132
135
|
readsZone,
|
|
133
136
|
timezoneOf
|
|
134
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-725OPCHI.js";
|
|
135
138
|
import {
|
|
136
139
|
endpoint
|
|
137
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-ESNZL7SB.js";
|
|
138
141
|
import {
|
|
139
142
|
repairConfigText,
|
|
140
143
|
sharedConfigPath
|
|
141
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-XGVMQMTS.js";
|
|
142
145
|
import {
|
|
143
146
|
filesPresent,
|
|
144
147
|
sharedModelsDirectory
|
|
145
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-ZKVUAH5N.js";
|
|
146
149
|
import {
|
|
147
150
|
storePath
|
|
148
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-2SQLHBDP.js";
|
|
149
152
|
import {
|
|
150
153
|
configFilePath,
|
|
151
154
|
createRecordLog,
|
|
@@ -154,7 +157,7 @@ import {
|
|
|
154
157
|
resolvePaths,
|
|
155
158
|
saveConfigFile,
|
|
156
159
|
writeSecurely
|
|
157
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-2YO3PLOE.js";
|
|
158
161
|
import {
|
|
159
162
|
COMPACT_FLAG,
|
|
160
163
|
MAX_NEXT_STEPS,
|
|
@@ -206,17 +209,17 @@ import {
|
|
|
206
209
|
unwrap,
|
|
207
210
|
variant,
|
|
208
211
|
writes
|
|
209
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-KP5JDYY6.js";
|
|
210
213
|
import {
|
|
211
214
|
CliError,
|
|
212
215
|
isCliError,
|
|
213
216
|
visibleControls
|
|
214
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-S6JG4YUH.js";
|
|
215
218
|
import {
|
|
216
219
|
__name
|
|
217
220
|
} from "./chunk-ZVVMGPBJ.js";
|
|
218
221
|
|
|
219
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
222
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
220
223
|
import { readFileSync } from "node:fs";
|
|
221
224
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
222
225
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -270,7 +273,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
|
|
|
270
273
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
271
274
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
272
275
|
|
|
273
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
276
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.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
|
|
274
277
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
275
278
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
276
279
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3771,7 +3774,7 @@ __name(useColor, "useColor");
|
|
|
3771
3774
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3772
3775
|
var program = new Command();
|
|
3773
3776
|
|
|
3774
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3777
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.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
|
|
3775
3778
|
var argumentInfoSchema = object({
|
|
3776
3779
|
name: string(),
|
|
3777
3780
|
required: boolean(),
|
|
@@ -3845,7 +3848,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3845
3848
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3846
3849
|
});
|
|
3847
3850
|
|
|
3848
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3851
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.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
|
|
3849
3852
|
import { isDeepStrictEqual } from "node:util";
|
|
3850
3853
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3851
3854
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3955,7 +3958,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
3955
3958
|
return result;
|
|
3956
3959
|
}, "sharedCommand");
|
|
3957
3960
|
|
|
3958
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3961
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.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
|
|
3959
3962
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3960
3963
|
let command = root;
|
|
3961
3964
|
const path2 = [];
|
|
@@ -3973,7 +3976,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3973
3976
|
}
|
|
3974
3977
|
}, "refuseJoinedPath");
|
|
3975
3978
|
|
|
3976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3979
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
3977
3980
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3978
3981
|
var requests = new AsyncLocalStorage();
|
|
3979
3982
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -3988,7 +3991,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
3988
3991
|
return direct;
|
|
3989
3992
|
}, "exitCodeSet");
|
|
3990
3993
|
|
|
3991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3994
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3992
3995
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
3993
3996
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3994
3997
|
messageId: message2.id,
|
|
@@ -4094,7 +4097,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4094
4097
|
}, "guardedWrite");
|
|
4095
4098
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4096
4099
|
|
|
4097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4100
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4098
4101
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4099
4102
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4100
4103
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4277,7 +4280,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4277
4280
|
}
|
|
4278
4281
|
}, "withAbort");
|
|
4279
4282
|
|
|
4280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4283
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4281
4284
|
import { existsSync, readdirSync, readFileSync as readFileSync2 } from "node:fs";
|
|
4282
4285
|
import { join } from "node:path";
|
|
4283
4286
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4299,7 +4302,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4299
4302
|
}, "profilesWithAccounts");
|
|
4300
4303
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4301
4304
|
|
|
4302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4305
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4303
4306
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4304
4307
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4305
4308
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -4356,7 +4359,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
4356
4359
|
};
|
|
4357
4360
|
}, "runBudget");
|
|
4358
4361
|
|
|
4359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4362
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4360
4363
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4361
4364
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4362
4365
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4394,7 +4397,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4394
4397
|
progress: "sync.progress"
|
|
4395
4398
|
};
|
|
4396
4399
|
|
|
4397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4400
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4398
4401
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4399
4402
|
const recording = startRecording(options);
|
|
4400
4403
|
try {
|
|
@@ -4491,7 +4494,7 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
4491
4494
|
});
|
|
4492
4495
|
}, "succeed"),
|
|
4493
4496
|
fail: /* @__PURE__ */ __name(async (thrown) => {
|
|
4494
|
-
const error = storeDamaged(thrown);
|
|
4497
|
+
const error = storeBusy(storeDamaged(thrown));
|
|
4495
4498
|
markStoreDamaged(thrown, {
|
|
4496
4499
|
store: storePath(options.env),
|
|
4497
4500
|
command: `${options.app.command} ${options.command}`,
|
|
@@ -4609,7 +4612,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4609
4612
|
return void 0;
|
|
4610
4613
|
}, "partialOutcome");
|
|
4611
4614
|
|
|
4612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4615
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4613
4616
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
4614
4617
|
if (ms2 === void 0)
|
|
4615
4618
|
return body();
|
|
@@ -4635,7 +4638,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
4635
4638
|
}
|
|
4636
4639
|
}, "withDeadline");
|
|
4637
4640
|
|
|
4638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4641
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4639
4642
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4640
4643
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4641
4644
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4704,10 +4707,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4704
4707
|
return void 0;
|
|
4705
4708
|
}, "sampleCommand");
|
|
4706
4709
|
|
|
4707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4710
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
4708
4711
|
import { existsSync as existsSync4 } from "node:fs";
|
|
4709
4712
|
|
|
4710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4713
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4711
4714
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4712
4715
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4713
4716
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -4776,7 +4779,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
4776
4779
|
};
|
|
4777
4780
|
}, "modelTarget");
|
|
4778
4781
|
|
|
4779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4782
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
4780
4783
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
4781
4784
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
4782
4785
|
var AI_FIELDS = {
|
|
@@ -4820,7 +4823,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
4820
4823
|
};
|
|
4821
4824
|
}, "resolveAISettings");
|
|
4822
4825
|
|
|
4823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4826
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
4824
4827
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
4825
4828
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
4826
4829
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -4834,7 +4837,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
4834
4837
|
return ms2;
|
|
4835
4838
|
}, "parseDuration");
|
|
4836
4839
|
|
|
4837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4840
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
4838
4841
|
var HISTORY_MAX_DAYS = 1095;
|
|
4839
4842
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
4840
4843
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -4881,7 +4884,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
4881
4884
|
return { batch: { ...batch, messages }, skipped };
|
|
4882
4885
|
}, "limitBatch");
|
|
4883
4886
|
|
|
4884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4887
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
4885
4888
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
4886
4889
|
import { join as join2 } from "node:path";
|
|
4887
4890
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -4970,7 +4973,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
4970
4973
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
4971
4974
|
}, "registryProfiles");
|
|
4972
4975
|
|
|
4973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4976
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
4974
4977
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
4975
4978
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
4976
4979
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -5173,7 +5176,10 @@ var scopes = /* @__PURE__ */ __name((raw) => {
|
|
|
5173
5176
|
return out;
|
|
5174
5177
|
}, "scopes");
|
|
5175
5178
|
var savedPermissionKeys = /* @__PURE__ */ __name((raw) => scopes(raw).flatMap(([path2, scope]) => isNode(scope.permissions) ? Object.keys(scope.permissions).map((key) => ({ key, at: [...path2, "permissions", key] })) : []), "savedPermissionKeys");
|
|
5176
|
-
var permissionIssues = /* @__PURE__ */ __name((saved, known, context2) => saved.filter(({ key }) => !known.has(key)).map(({ at: at2 }) => locate("unknown_permission", at2, context2, (key) =>
|
|
5179
|
+
var permissionIssues = /* @__PURE__ */ __name((saved, known, context2, renamed = /* @__PURE__ */ new Map()) => saved.filter(({ key }) => !known.has(key)).map(({ key: name, at: at2 }) => locate("unknown_permission", at2, context2, (key) => {
|
|
5180
|
+
const now = renamed.get(name);
|
|
5181
|
+
return now === void 0 ? `${key} names no command` : `${key} names no command: its command moved, so rename it to permissions.${now}`;
|
|
5182
|
+
})), "permissionIssues");
|
|
5177
5183
|
var pathId = /* @__PURE__ */ __name((path2) => path2.join("\0"), "pathId");
|
|
5178
5184
|
var prune = /* @__PURE__ */ __name((raw, paths) => {
|
|
5179
5185
|
const drop = new Set(paths.map(pathId));
|
|
@@ -5265,7 +5271,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5265
5271
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5266
5272
|
}, "readConfigFile");
|
|
5267
5273
|
|
|
5268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5274
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5269
5275
|
import { existsSync as existsSync3, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
5270
5276
|
import { dirname, join as join3 } from "node:path";
|
|
5271
5277
|
var DEFAULT_CONFIG = {
|
|
@@ -5294,7 +5300,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5294
5300
|
}
|
|
5295
5301
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5296
5302
|
|
|
5297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5303
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
5298
5304
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5299
5305
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
5300
5306
|
const path2 = key.split(".");
|
|
@@ -5316,7 +5322,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
5316
5322
|
return { config, added };
|
|
5317
5323
|
}, "withSettingDefaults");
|
|
5318
5324
|
|
|
5319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5325
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5320
5326
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5321
5327
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5322
5328
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5844,7 +5850,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5844
5850
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5845
5851
|
}, "given");
|
|
5846
5852
|
|
|
5847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5853
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5848
5854
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
|
|
5849
5855
|
const { deadline, signal, app } = environmentOf(command);
|
|
5850
5856
|
const now = deadline?.();
|
|
@@ -5998,7 +6004,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
5998
6004
|
return words.join(" ");
|
|
5999
6005
|
}, "commandPath");
|
|
6000
6006
|
|
|
6001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6007
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6002
6008
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6003
6009
|
var FETCH = { remote: "read", local: "write" };
|
|
6004
6010
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6143,7 +6149,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6143
6149
|
throw readOnlyRefusal(lock, what);
|
|
6144
6150
|
}, "refuseUnderReadOnly");
|
|
6145
6151
|
|
|
6146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6152
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6147
6153
|
var account = strictObject({
|
|
6148
6154
|
provider: text,
|
|
6149
6155
|
id,
|
|
@@ -6153,7 +6159,7 @@ var account = strictObject({
|
|
|
6153
6159
|
scope: optional(picklist(["personal", "work"]))
|
|
6154
6160
|
});
|
|
6155
6161
|
|
|
6156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6162
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6157
6163
|
var accountSession = strictObject({
|
|
6158
6164
|
current: boolean(),
|
|
6159
6165
|
client: nullable(text),
|
|
@@ -6163,7 +6169,7 @@ var accountSession = strictObject({
|
|
|
6163
6169
|
created_at: optional(nullable(time))
|
|
6164
6170
|
});
|
|
6165
6171
|
|
|
6166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6172
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6167
6173
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6168
6174
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6169
6175
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6192,7 +6198,7 @@ var accountRemoval = strictObject({
|
|
|
6192
6198
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
6193
6199
|
});
|
|
6194
6200
|
|
|
6195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6201
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6196
6202
|
var accountProfile = strictObject({
|
|
6197
6203
|
profile: id,
|
|
6198
6204
|
current: boolean(),
|
|
@@ -6204,7 +6210,7 @@ var accountProfile = strictObject({
|
|
|
6204
6210
|
bot: optional(literal(true))
|
|
6205
6211
|
});
|
|
6206
6212
|
|
|
6207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6213
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6208
6214
|
var milliseconds = pipe(number(), minValue(0));
|
|
6209
6215
|
var counterReading = strictObject({
|
|
6210
6216
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6216,7 +6222,7 @@ var counterReading = strictObject({
|
|
|
6216
6222
|
});
|
|
6217
6223
|
var selection = record(string(), unknown());
|
|
6218
6224
|
|
|
6219
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6225
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6220
6226
|
var adminRow = strictObject({
|
|
6221
6227
|
ref: reference,
|
|
6222
6228
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6269,7 +6275,7 @@ var adminReport = strictObject({
|
|
|
6269
6275
|
rows: array(adminRow)
|
|
6270
6276
|
});
|
|
6271
6277
|
|
|
6272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6278
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6273
6279
|
var closeSuggestion = strictObject({
|
|
6274
6280
|
as: picklist(["done", "dismissed"]),
|
|
6275
6281
|
/** The agent's name. */
|
|
@@ -6294,7 +6300,7 @@ var task = strictObject({
|
|
|
6294
6300
|
project_key: optional(nullable(text)),
|
|
6295
6301
|
project_name: optional(nullable(text)),
|
|
6296
6302
|
/** Who added it: the owner, or an agent by its bot name. */
|
|
6297
|
-
created_by: optional(nullable(strictObject({ type: picklist(["person", "
|
|
6303
|
+
created_by: optional(nullable(strictObject({ type: picklist(["person", "agent"]), id, name: nullable(text), owner: boolean() }))),
|
|
6298
6304
|
account: optional(text),
|
|
6299
6305
|
/** The chat it came from, as a `chat:` reference. */
|
|
6300
6306
|
chat: optional(nullable(reference)),
|
|
@@ -6331,7 +6337,7 @@ var task = strictObject({
|
|
|
6331
6337
|
updated_at: optional(time)
|
|
6332
6338
|
});
|
|
6333
6339
|
|
|
6334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6340
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6335
6341
|
var agendaChat = strictObject({
|
|
6336
6342
|
chat: reference,
|
|
6337
6343
|
title: nullable(text),
|
|
@@ -6401,11 +6407,11 @@ var agenda = strictObject({
|
|
|
6401
6407
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6402
6408
|
});
|
|
6403
6409
|
|
|
6404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6410
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
6405
6411
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
6406
6412
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
6407
6413
|
|
|
6408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6414
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6409
6415
|
var attachment = strictObject({
|
|
6410
6416
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6411
6417
|
message: optional(reference),
|
|
@@ -6450,7 +6456,7 @@ var hitFile = strictObject({
|
|
|
6450
6456
|
local_path: optional(text)
|
|
6451
6457
|
});
|
|
6452
6458
|
|
|
6453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6459
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
6454
6460
|
var actionableError = objectWithRest({
|
|
6455
6461
|
code: text,
|
|
6456
6462
|
message: text,
|
|
@@ -6467,7 +6473,7 @@ var batchResult = strictObject({
|
|
|
6467
6473
|
max_error_percent: count
|
|
6468
6474
|
});
|
|
6469
6475
|
|
|
6470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6476
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
6471
6477
|
var extractionItem = strictObject({
|
|
6472
6478
|
ref: reference,
|
|
6473
6479
|
attachment: count,
|
|
@@ -6500,7 +6506,7 @@ var extractionReport = strictObject({
|
|
|
6500
6506
|
cursor: optional(text)
|
|
6501
6507
|
});
|
|
6502
6508
|
|
|
6503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6509
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
6504
6510
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
6505
6511
|
var attachmentBytes = strictObject({
|
|
6506
6512
|
ref: reference,
|
|
@@ -6531,7 +6537,7 @@ var attachmentTextChange = strictObject({
|
|
|
6531
6537
|
text: optional(text)
|
|
6532
6538
|
});
|
|
6533
6539
|
|
|
6534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6540
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
6535
6541
|
var WEIGHTS = {
|
|
6536
6542
|
bot: 3,
|
|
6537
6543
|
scam: 3,
|
|
@@ -6556,7 +6562,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
6556
6562
|
var DIGITS = /\d{5,}/;
|
|
6557
6563
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
6558
6564
|
|
|
6559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6565
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
6560
6566
|
var linkedIdentity = strictObject({
|
|
6561
6567
|
provider: text,
|
|
6562
6568
|
id,
|
|
@@ -6611,7 +6617,7 @@ var contactCheck = strictObject({
|
|
|
6611
6617
|
checked_at: time
|
|
6612
6618
|
});
|
|
6613
6619
|
|
|
6614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6620
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
6615
6621
|
var member = strictObject({
|
|
6616
6622
|
id,
|
|
6617
6623
|
name: nullable(text),
|
|
@@ -6634,7 +6640,7 @@ var member = strictObject({
|
|
|
6634
6640
|
check: optional(record(string(), unknown()))
|
|
6635
6641
|
});
|
|
6636
6642
|
|
|
6637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6643
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
6638
6644
|
var setting = optional(nullable(boolean()));
|
|
6639
6645
|
var chat = strictObject({
|
|
6640
6646
|
ref: reference,
|
|
@@ -6675,7 +6681,7 @@ var chat = strictObject({
|
|
|
6675
6681
|
members: optional(array(member))
|
|
6676
6682
|
});
|
|
6677
6683
|
|
|
6678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6684
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
6679
6685
|
var quoted = strictObject({
|
|
6680
6686
|
id,
|
|
6681
6687
|
sender_id: nullable(id),
|
|
@@ -6776,6 +6782,10 @@ var message = strictObject({
|
|
|
6776
6782
|
thread: reference,
|
|
6777
6783
|
read: nullable(boolean()),
|
|
6778
6784
|
flagged: nullable(boolean()),
|
|
6785
|
+
/** What the email is, apart from its sender: one of the mail types. @experimental */
|
|
6786
|
+
mail_type: optional(text),
|
|
6787
|
+
/** How it reached the owner: direct, group or broadcast. @experimental */
|
|
6788
|
+
reach: optional(text),
|
|
6779
6789
|
/** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
|
|
6780
6790
|
sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) })),
|
|
6781
6791
|
/** Mail `review`: filed in the mailbox of mail sent to many. */
|
|
@@ -6796,7 +6806,7 @@ var message = strictObject({
|
|
|
6796
6806
|
provider_metadata: providerMetadata
|
|
6797
6807
|
});
|
|
6798
6808
|
|
|
6799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6809
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
6800
6810
|
var recordedMeeting = strictObject({
|
|
6801
6811
|
ref: reference,
|
|
6802
6812
|
meeting_id: count,
|
|
@@ -6813,7 +6823,7 @@ var recordedMeeting = strictObject({
|
|
|
6813
6823
|
call: optional(meetingCall)
|
|
6814
6824
|
});
|
|
6815
6825
|
|
|
6816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6826
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
6817
6827
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
6818
6828
|
var contextMessage = strictObject({
|
|
6819
6829
|
locator: reference,
|
|
@@ -7019,7 +7029,7 @@ var contactPreparation = strictObject({
|
|
|
7019
7029
|
})
|
|
7020
7030
|
});
|
|
7021
7031
|
|
|
7022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7032
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
7023
7033
|
var nullableText = nullable(text);
|
|
7024
7034
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
7025
7035
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -7084,7 +7094,7 @@ var deal = strictObject({
|
|
|
7084
7094
|
})),
|
|
7085
7095
|
people: array(strictObject({ ...party.entries, role: picklist(DEAL_ROLES) })),
|
|
7086
7096
|
author: strictObject({
|
|
7087
|
-
type: picklist(["person", "
|
|
7097
|
+
type: picklist(["person", "agent"]),
|
|
7088
7098
|
id,
|
|
7089
7099
|
name: nullableText,
|
|
7090
7100
|
kind: nullable(picklist(["agent", "rule"]))
|
|
@@ -7175,7 +7185,7 @@ var stage = strictObject({
|
|
|
7175
7185
|
untrusted
|
|
7176
7186
|
});
|
|
7177
7187
|
|
|
7178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7188
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
7179
7189
|
var nullableText2 = nullable(text);
|
|
7180
7190
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
7181
7191
|
var standing = picklist(STANDINGS);
|
|
@@ -7354,7 +7364,7 @@ var dealBrief = strictObject({
|
|
|
7354
7364
|
not_read: coverage2.entries.not_read
|
|
7355
7365
|
});
|
|
7356
7366
|
|
|
7357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7367
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7358
7368
|
var chart = strictObject({
|
|
7359
7369
|
version: literal(1),
|
|
7360
7370
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7369,7 +7379,7 @@ var chart = strictObject({
|
|
|
7369
7379
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7370
7380
|
});
|
|
7371
7381
|
|
|
7372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7382
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7373
7383
|
var named = strictObject({
|
|
7374
7384
|
id,
|
|
7375
7385
|
title: nullable(text),
|
|
@@ -7392,7 +7402,7 @@ var folder = strictObject({
|
|
|
7392
7402
|
excluded_chats: optional(array(named))
|
|
7393
7403
|
});
|
|
7394
7404
|
|
|
7395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7405
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7396
7406
|
var inviteLink = strictObject({
|
|
7397
7407
|
link: text,
|
|
7398
7408
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7408,7 +7418,7 @@ var inviteLink = strictObject({
|
|
|
7408
7418
|
joined_count: optional(count)
|
|
7409
7419
|
});
|
|
7410
7420
|
|
|
7411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7421
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7412
7422
|
var operated = { operation_id: id, chat_id: id };
|
|
7413
7423
|
var group = strictObject({
|
|
7414
7424
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7488,7 +7498,7 @@ var chatFolderOrder = strictObject({
|
|
|
7488
7498
|
folders: array(strictObject({ id, title: text }))
|
|
7489
7499
|
});
|
|
7490
7500
|
|
|
7491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7501
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7492
7502
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7493
7503
|
var chatRemoval = strictObject(operated2);
|
|
7494
7504
|
var chatMuting = strictObject({
|
|
@@ -7499,7 +7509,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7499
7509
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7500
7510
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7501
7511
|
|
|
7502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7512
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7503
7513
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7504
7514
|
var chatEvent = strictObject({
|
|
7505
7515
|
chat_id: id,
|
|
@@ -7516,7 +7526,7 @@ var chatEvent = strictObject({
|
|
|
7516
7526
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7517
7527
|
});
|
|
7518
7528
|
|
|
7519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7529
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7520
7530
|
var chatMetadata = strictObject({
|
|
7521
7531
|
chat_id: id,
|
|
7522
7532
|
title: nullable(text),
|
|
@@ -7531,7 +7541,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7531
7541
|
has_more: boolean()
|
|
7532
7542
|
});
|
|
7533
7543
|
|
|
7534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7544
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7535
7545
|
var action = picklist(["report", "delete", "remove"]);
|
|
7536
7546
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7537
7547
|
var chatRules = strictObject({
|
|
@@ -7568,7 +7578,7 @@ var chatModeration = strictObject({
|
|
|
7568
7578
|
}))
|
|
7569
7579
|
});
|
|
7570
7580
|
|
|
7571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7581
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
7572
7582
|
var chatSending = strictObject({
|
|
7573
7583
|
mode: picklist(["allowed", "ask", "denied"]),
|
|
7574
7584
|
meaning: text,
|
|
@@ -7578,7 +7588,7 @@ var chatSending = strictObject({
|
|
|
7578
7588
|
changed: optional(boolean())
|
|
7579
7589
|
});
|
|
7580
7590
|
|
|
7581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7591
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7582
7592
|
var optionalCount = optional(count);
|
|
7583
7593
|
var minutes = nullable(number());
|
|
7584
7594
|
var chatStats = strictObject({
|
|
@@ -7654,7 +7664,7 @@ var taskStats = strictObject({
|
|
|
7654
7664
|
}))
|
|
7655
7665
|
});
|
|
7656
7666
|
|
|
7657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7667
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7658
7668
|
var memberCount = strictObject({
|
|
7659
7669
|
day: pipe(text, isoDate()),
|
|
7660
7670
|
participants: nullable(count),
|
|
@@ -7677,7 +7687,7 @@ var chatTracking = strictObject({
|
|
|
7677
7687
|
tracked: boolean()
|
|
7678
7688
|
});
|
|
7679
7689
|
|
|
7680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7690
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7681
7691
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7682
7692
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7683
7693
|
var profileFields = {
|
|
@@ -7715,7 +7725,7 @@ var profileFields = {
|
|
|
7715
7725
|
}))
|
|
7716
7726
|
};
|
|
7717
7727
|
|
|
7718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7728
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7719
7729
|
var contact = strictObject({
|
|
7720
7730
|
ref: reference,
|
|
7721
7731
|
id,
|
|
@@ -7746,7 +7756,7 @@ var contact = strictObject({
|
|
|
7746
7756
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7747
7757
|
});
|
|
7748
7758
|
|
|
7749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7759
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
7750
7760
|
var contactNote = strictObject({
|
|
7751
7761
|
id,
|
|
7752
7762
|
/** The contact, as a `contact:` reference. */
|
|
@@ -7758,13 +7768,13 @@ var contactNote = strictObject({
|
|
|
7758
7768
|
updated_at: time
|
|
7759
7769
|
});
|
|
7760
7770
|
|
|
7761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7771
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
7762
7772
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7763
7773
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
7764
7774
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
7765
7775
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
7766
7776
|
|
|
7767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7777
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
7768
7778
|
var conversation = strictObject({
|
|
7769
7779
|
id,
|
|
7770
7780
|
chat: reference,
|
|
@@ -7779,7 +7789,7 @@ var conversation = strictObject({
|
|
|
7779
7789
|
rules_version: count
|
|
7780
7790
|
});
|
|
7781
7791
|
|
|
7782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7792
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
7783
7793
|
var conversationBuild = strictObject({
|
|
7784
7794
|
chat: id,
|
|
7785
7795
|
messages: count,
|
|
@@ -7804,7 +7814,7 @@ var catchUpPreparation = strictObject({
|
|
|
7804
7814
|
prepared: optional(conversationPreparation)
|
|
7805
7815
|
});
|
|
7806
7816
|
|
|
7807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7817
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
7808
7818
|
var conversationDetails = union([
|
|
7809
7819
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
7810
7820
|
message
|
|
@@ -7891,10 +7901,15 @@ var conversationHit = strictObject({
|
|
|
7891
7901
|
score: nullable(number()),
|
|
7892
7902
|
matched_in: optional(literal("context")),
|
|
7893
7903
|
by: array(picklist(["meaning", "words"])),
|
|
7894
|
-
stale: boolean()
|
|
7904
|
+
stale: boolean(),
|
|
7905
|
+
/** Up to three of the chunk's messages as "sender: text": what the hit says, without opening it. */
|
|
7906
|
+
lines: optional(array(text)),
|
|
7907
|
+
/** In the block of the owner's own conversations, which the hits before it left out. */
|
|
7908
|
+
from_owner: optional(literal(true)),
|
|
7909
|
+
untrusted
|
|
7895
7910
|
});
|
|
7896
7911
|
|
|
7897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7912
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
7898
7913
|
var counters = strictObject({
|
|
7899
7914
|
cutoff: time,
|
|
7900
7915
|
max_age_ms: milliseconds,
|
|
@@ -7924,7 +7939,7 @@ var counterRefresh = strictObject({
|
|
|
7924
7939
|
complete: optional(boolean())
|
|
7925
7940
|
});
|
|
7926
7941
|
|
|
7927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7942
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
7928
7943
|
var document = strictObject({
|
|
7929
7944
|
ref: reference,
|
|
7930
7945
|
id,
|
|
@@ -7939,7 +7954,7 @@ var document = strictObject({
|
|
|
7939
7954
|
owners: optional(array(text))
|
|
7940
7955
|
});
|
|
7941
7956
|
|
|
7942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7957
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
7943
7958
|
var documentLink = strictObject({
|
|
7944
7959
|
ref: reference,
|
|
7945
7960
|
url: text,
|
|
@@ -7950,7 +7965,34 @@ var documentLink = strictObject({
|
|
|
7950
7965
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
7951
7966
|
});
|
|
7952
7967
|
|
|
7953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7968
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/domain-list.js
|
|
7969
|
+
var domainList = strictObject({
|
|
7970
|
+
id,
|
|
7971
|
+
title: text,
|
|
7972
|
+
/**
|
|
7973
|
+
* `sector` gives an organization its sector; `freemail` keeps a mailbox provider from making one; `bad` only marks a
|
|
7974
|
+
* host known for spam, phishing or malware.
|
|
7975
|
+
*/
|
|
7976
|
+
signal: picklist(["sector", "freemail", "bad"]),
|
|
7977
|
+
/** `non-commercial`: WireCat may use it, a paid service built around it may not. */
|
|
7978
|
+
class: picklist(["commercial-ok", "non-commercial"]),
|
|
7979
|
+
licence: text,
|
|
7980
|
+
licence_url: text,
|
|
7981
|
+
attribution: text,
|
|
7982
|
+
homepage: text,
|
|
7983
|
+
/** Fetched from its source on this computer, since it may not be redistributed. */
|
|
7984
|
+
upstream: boolean(),
|
|
7985
|
+
lines: count,
|
|
7986
|
+
/** Lines per sector or category, as published. */
|
|
7987
|
+
tags: record(string(), count),
|
|
7988
|
+
/** The pack's build date. */
|
|
7989
|
+
version: text,
|
|
7990
|
+
installed_at: time,
|
|
7991
|
+
sha256: text,
|
|
7992
|
+
path: text
|
|
7993
|
+
});
|
|
7994
|
+
|
|
7995
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
7954
7996
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
7955
7997
|
var contribution = strictObject({
|
|
7956
7998
|
message: evidenceMessage,
|
|
@@ -7980,7 +8022,7 @@ var retentionStay = strictObject({
|
|
|
7980
8022
|
});
|
|
7981
8023
|
var evidence = union([contribution, retentionStay]);
|
|
7982
8024
|
|
|
7983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8025
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
7984
8026
|
var fact = strictObject({
|
|
7985
8027
|
ref: reference,
|
|
7986
8028
|
id,
|
|
@@ -7999,7 +8041,7 @@ var fact = strictObject({
|
|
|
7999
8041
|
author,
|
|
8000
8042
|
model: nullable(text),
|
|
8001
8043
|
/** Who accepted it; `null` while it is proposed. */
|
|
8002
|
-
confirmed_by: optional(nullable(strictObject({ type: picklist(["person", "
|
|
8044
|
+
confirmed_by: optional(nullable(strictObject({ type: picklist(["person", "agent"]), id }))),
|
|
8003
8045
|
scope: nullable(picklist(MEMORY_SCOPES)),
|
|
8004
8046
|
/** Who recorded it: the owner, or an agent whose fact waits as proposed. */
|
|
8005
8047
|
origin: picklist(["owner", "agent"]),
|
|
@@ -8011,7 +8053,7 @@ var fact = strictObject({
|
|
|
8011
8053
|
updated_at: time
|
|
8012
8054
|
});
|
|
8013
8055
|
|
|
8014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8056
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8015
8057
|
var hit = strictObject({
|
|
8016
8058
|
kind: picklist([
|
|
8017
8059
|
"message",
|
|
@@ -8023,6 +8065,9 @@ var hit = strictObject({
|
|
|
8023
8065
|
"deal",
|
|
8024
8066
|
"lead",
|
|
8025
8067
|
"crm_file",
|
|
8068
|
+
"issue",
|
|
8069
|
+
"project",
|
|
8070
|
+
"issue_comment",
|
|
8026
8071
|
...BUSINESS_KINDS
|
|
8027
8072
|
]),
|
|
8028
8073
|
ref: reference,
|
|
@@ -8030,6 +8075,8 @@ var hit = strictObject({
|
|
|
8030
8075
|
url: optional(text),
|
|
8031
8076
|
/** The account it was found in; a note's folder id, or `internal` for a note written in memo. */
|
|
8032
8077
|
account: text,
|
|
8078
|
+
/** A tracker hit that more than one sign-in holds: every account it was found in, `account` first. */
|
|
8079
|
+
accounts: optional(array(text)),
|
|
8033
8080
|
/** The chat, the mail thread's subject, the note's, the event's or the meeting's title. */
|
|
8034
8081
|
title: nullable(text),
|
|
8035
8082
|
/** Null for a meeting whose start is unknown. */
|
|
@@ -8070,7 +8117,7 @@ var hit = strictObject({
|
|
|
8070
8117
|
untrusted
|
|
8071
8118
|
});
|
|
8072
8119
|
|
|
8073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8120
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8074
8121
|
var identity = strictObject({
|
|
8075
8122
|
ref: reference,
|
|
8076
8123
|
provider: text,
|
|
@@ -8086,7 +8133,7 @@ var identity = strictObject({
|
|
|
8086
8133
|
person: optional(nullable(reference))
|
|
8087
8134
|
});
|
|
8088
8135
|
|
|
8089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8136
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8090
8137
|
var imageEmbedding = strictObject({
|
|
8091
8138
|
model: text,
|
|
8092
8139
|
embedded: count,
|
|
@@ -8095,13 +8142,13 @@ var imageEmbedding = strictObject({
|
|
|
8095
8142
|
more: boolean()
|
|
8096
8143
|
});
|
|
8097
8144
|
|
|
8098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8145
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8099
8146
|
import { spawn } from "node:child_process";
|
|
8100
8147
|
import { randomBytes } from "node:crypto";
|
|
8101
8148
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync2 } from "node:fs";
|
|
8102
8149
|
import { dirname as dirname2, join as join4 } from "node:path";
|
|
8103
8150
|
|
|
8104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8151
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8105
8152
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8106
8153
|
const total = input.total ?? null;
|
|
8107
8154
|
const updated = input.updatedAt ?? null;
|
|
@@ -8117,7 +8164,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8117
8164
|
};
|
|
8118
8165
|
}, "progressOf");
|
|
8119
8166
|
|
|
8120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8167
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8121
8168
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8122
8169
|
const run = currentRun();
|
|
8123
8170
|
const trace = traceId ?? run.traceId;
|
|
@@ -8131,7 +8178,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8131
8178
|
}));
|
|
8132
8179
|
}, "recordLogFor");
|
|
8133
8180
|
|
|
8134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8181
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8135
8182
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8136
8183
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8137
8184
|
const out = openSync(log, "a", 384);
|
|
@@ -8286,7 +8333,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8286
8333
|
return { job: id6, pid, chat: input.chat, log };
|
|
8287
8334
|
}, "startArchiveJob");
|
|
8288
8335
|
|
|
8289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8336
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8290
8337
|
var problem = strictObject({ code: text, message: text });
|
|
8291
8338
|
var job = strictObject({
|
|
8292
8339
|
id,
|
|
@@ -8309,7 +8356,7 @@ var job = strictObject({
|
|
|
8309
8356
|
error: optional(problem)
|
|
8310
8357
|
});
|
|
8311
8358
|
|
|
8312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8359
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8313
8360
|
var joinRequest = strictObject({
|
|
8314
8361
|
person_id: id,
|
|
8315
8362
|
name: nullable(text),
|
|
@@ -8320,7 +8367,7 @@ var joinRequest = strictObject({
|
|
|
8320
8367
|
about: optional(text)
|
|
8321
8368
|
});
|
|
8322
8369
|
|
|
8323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8370
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8324
8371
|
var botProfile = strictObject({
|
|
8325
8372
|
name: text,
|
|
8326
8373
|
token: text,
|
|
@@ -8444,7 +8491,7 @@ var stickerInventory = strictObject({
|
|
|
8444
8491
|
url: optional(nullable(text))
|
|
8445
8492
|
});
|
|
8446
8493
|
|
|
8447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8494
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8448
8495
|
var pollVote = strictObject({
|
|
8449
8496
|
person_id: id,
|
|
8450
8497
|
name: nullable(text),
|
|
@@ -8454,7 +8501,7 @@ var pollVote = strictObject({
|
|
|
8454
8501
|
voted_at: time
|
|
8455
8502
|
});
|
|
8456
8503
|
|
|
8457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8504
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8458
8505
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8459
8506
|
var observation = strictObject({
|
|
8460
8507
|
value: pipe(number(), minValue(0)),
|
|
@@ -8496,7 +8543,7 @@ var serveSummary = strictObject({
|
|
|
8496
8543
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8497
8544
|
});
|
|
8498
8545
|
|
|
8499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8546
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8500
8547
|
var mailCounts = strictObject({
|
|
8501
8548
|
by: picklist(["day", "week", "sender"]),
|
|
8502
8549
|
received: count,
|
|
@@ -8511,7 +8558,7 @@ var mailCounts = strictObject({
|
|
|
8511
8558
|
}))
|
|
8512
8559
|
});
|
|
8513
8560
|
|
|
8514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8561
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8515
8562
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8516
8563
|
var base = { id, evidence: array(evidence2) };
|
|
8517
8564
|
var finding = variant("kind", [
|
|
@@ -8649,13 +8696,13 @@ var mailFindings = strictObject({
|
|
|
8649
8696
|
fingerprint: text,
|
|
8650
8697
|
status: picklist(["proposed", "reviewed"]),
|
|
8651
8698
|
author,
|
|
8652
|
-
decided_by: nullable(strictObject({ type: picklist(["person", "
|
|
8699
|
+
decided_by: nullable(strictObject({ type: picklist(["person", "agent"]), id })),
|
|
8653
8700
|
decided_at: nullable(time),
|
|
8654
8701
|
previous: array(outcome2),
|
|
8655
8702
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8656
8703
|
});
|
|
8657
8704
|
|
|
8658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8705
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8659
8706
|
var mediaArchive = strictObject({
|
|
8660
8707
|
directory: text,
|
|
8661
8708
|
chats: count,
|
|
@@ -8687,7 +8734,7 @@ var mediaArchiveTimer = union([
|
|
|
8687
8734
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
8688
8735
|
]);
|
|
8689
8736
|
|
|
8690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8737
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
8691
8738
|
var preparationId = pipe(string(), minLength(1));
|
|
8692
8739
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
8693
8740
|
var preparationTime = nullable(isoTime);
|
|
@@ -8779,7 +8826,7 @@ var preparationMeeting = strictObject({
|
|
|
8779
8826
|
updated_at: isoTime
|
|
8780
8827
|
});
|
|
8781
8828
|
|
|
8782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8829
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
8783
8830
|
var meetingEvidence = preparationEvidence;
|
|
8784
8831
|
var meetingPersonContext = strictObject({
|
|
8785
8832
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -8801,7 +8848,7 @@ var meetingPersonContext = strictObject({
|
|
|
8801
8848
|
})
|
|
8802
8849
|
});
|
|
8803
8850
|
|
|
8804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8851
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
8805
8852
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
8806
8853
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
8807
8854
|
var finding2 = variant("kind", [
|
|
@@ -8833,13 +8880,13 @@ var meetingFindings = strictObject({
|
|
|
8833
8880
|
fingerprint: text,
|
|
8834
8881
|
status: picklist(["proposed", "reviewed"]),
|
|
8835
8882
|
author,
|
|
8836
|
-
decided_by: nullable(strictObject({ type: picklist(["person", "
|
|
8883
|
+
decided_by: nullable(strictObject({ type: picklist(["person", "agent"]), id })),
|
|
8837
8884
|
decided_at: nullable(time),
|
|
8838
8885
|
previous: array(outcome3),
|
|
8839
8886
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
8840
8887
|
});
|
|
8841
8888
|
|
|
8842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8889
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
8843
8890
|
var communicationCoverage = strictObject({
|
|
8844
8891
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
8845
8892
|
query: string(),
|
|
@@ -8884,7 +8931,7 @@ var preparationCommunications = strictObject({
|
|
|
8884
8931
|
}))
|
|
8885
8932
|
});
|
|
8886
8933
|
|
|
8887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8934
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
8888
8935
|
var meetingPreparation = strictObject({
|
|
8889
8936
|
communications: optional(preparationCommunications),
|
|
8890
8937
|
schema_version: literal(1),
|
|
@@ -8997,7 +9044,7 @@ var meetingPreparation = strictObject({
|
|
|
8997
9044
|
})
|
|
8998
9045
|
});
|
|
8999
9046
|
|
|
9000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9047
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9001
9048
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9002
9049
|
var id3 = pipe(string(), minLength(1));
|
|
9003
9050
|
var text3 = string();
|
|
@@ -9061,7 +9108,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9061
9108
|
})
|
|
9062
9109
|
});
|
|
9063
9110
|
|
|
9064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9111
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9065
9112
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9066
9113
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9067
9114
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9091,7 +9138,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9091
9138
|
})
|
|
9092
9139
|
});
|
|
9093
9140
|
|
|
9094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9141
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9095
9142
|
var text4 = string();
|
|
9096
9143
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9097
9144
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9108,7 +9155,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9108
9155
|
persistence: literal("proposal-only")
|
|
9109
9156
|
});
|
|
9110
9157
|
|
|
9111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9158
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9112
9159
|
var memory = strictObject({
|
|
9113
9160
|
ref: reference,
|
|
9114
9161
|
id,
|
|
@@ -9136,7 +9183,7 @@ var memory = strictObject({
|
|
|
9136
9183
|
updated_at: time
|
|
9137
9184
|
});
|
|
9138
9185
|
|
|
9139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9186
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9140
9187
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9141
9188
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
9142
9189
|
var mention = strictObject({
|
|
@@ -9180,7 +9227,7 @@ var mentionRebuild = strictObject({
|
|
|
9180
9227
|
mentions: count
|
|
9181
9228
|
});
|
|
9182
9229
|
|
|
9183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9230
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9184
9231
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9185
9232
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9186
9233
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
@@ -9189,7 +9236,7 @@ var scheduledCancellation = strictObject({ ...operated3, cancelled: array(id) })
|
|
|
9189
9236
|
var scheduledSendEntries = { ...operated3, sent: array(id), messages: array(message) };
|
|
9190
9237
|
var scheduledSend = strictObject(scheduledSendEntries);
|
|
9191
9238
|
|
|
9192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9239
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9193
9240
|
var messageTranscript = strictObject({
|
|
9194
9241
|
message_id: id,
|
|
9195
9242
|
text,
|
|
@@ -9247,7 +9294,7 @@ var evidencePacket = strictObject({
|
|
|
9247
9294
|
}))
|
|
9248
9295
|
});
|
|
9249
9296
|
|
|
9250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9297
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9251
9298
|
var messageThread = strictObject({
|
|
9252
9299
|
ref: reference,
|
|
9253
9300
|
chat: id,
|
|
@@ -9264,7 +9311,7 @@ var messageThread = strictObject({
|
|
|
9264
9311
|
});
|
|
9265
9312
|
var messageContext = union([message, messageThread]);
|
|
9266
9313
|
|
|
9267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9314
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9268
9315
|
var messageCounts = strictObject({
|
|
9269
9316
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9270
9317
|
total: count,
|
|
@@ -9277,7 +9324,7 @@ var messageCounts = strictObject({
|
|
|
9277
9324
|
}))
|
|
9278
9325
|
});
|
|
9279
9326
|
|
|
9280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9327
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9281
9328
|
var messageLink = strictObject({
|
|
9282
9329
|
ref: reference,
|
|
9283
9330
|
url: nullable(text),
|
|
@@ -9294,7 +9341,7 @@ var messageLink = strictObject({
|
|
|
9294
9341
|
})))
|
|
9295
9342
|
});
|
|
9296
9343
|
|
|
9297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9344
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9298
9345
|
var savedMessageFile = strictObject({
|
|
9299
9346
|
kind: text,
|
|
9300
9347
|
path: text,
|
|
@@ -9381,7 +9428,7 @@ var messageSyncAll = strictObject({
|
|
|
9381
9428
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9382
9429
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9383
9430
|
|
|
9384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9431
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9385
9432
|
var messageWrite = strictObject({
|
|
9386
9433
|
operation_id: id,
|
|
9387
9434
|
message,
|
|
@@ -9396,7 +9443,7 @@ var draftWrite = strictObject({
|
|
|
9396
9443
|
});
|
|
9397
9444
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9398
9445
|
|
|
9399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9446
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9400
9447
|
var model2 = strictObject({
|
|
9401
9448
|
id,
|
|
9402
9449
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9431,7 +9478,7 @@ var chosenModel = strictObject({
|
|
|
9431
9478
|
estimate_seconds: nullable(count)
|
|
9432
9479
|
});
|
|
9433
9480
|
|
|
9434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9481
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9435
9482
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9436
9483
|
var modelKey = strictObject({
|
|
9437
9484
|
provider: text,
|
|
@@ -9441,7 +9488,7 @@ var modelKey = strictObject({
|
|
|
9441
9488
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9442
9489
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9443
9490
|
|
|
9444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9491
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9445
9492
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9446
9493
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9447
9494
|
var graph = strictObject({
|
|
@@ -9475,14 +9522,14 @@ var officialStats = strictObject({
|
|
|
9475
9522
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9476
9523
|
});
|
|
9477
9524
|
|
|
9478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9525
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9479
9526
|
var person2 = strictObject({
|
|
9480
9527
|
ref: reference,
|
|
9481
9528
|
name: nullable(text),
|
|
9482
9529
|
identities: optional(array(identity))
|
|
9483
9530
|
});
|
|
9484
9531
|
|
|
9485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9532
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9486
9533
|
var poll = strictObject({
|
|
9487
9534
|
chat_id: id,
|
|
9488
9535
|
message_id: id,
|
|
@@ -9498,11 +9545,11 @@ var poll = strictObject({
|
|
|
9498
9545
|
});
|
|
9499
9546
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9500
9547
|
|
|
9501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9548
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9502
9549
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9503
9550
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9504
9551
|
|
|
9505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9552
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9506
9553
|
var figures = record(string(), number());
|
|
9507
9554
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9508
9555
|
var rankingRow = strictObject({
|
|
@@ -9549,7 +9596,7 @@ var ranking = strictObject({
|
|
|
9549
9596
|
rows: array(rankingRow)
|
|
9550
9597
|
});
|
|
9551
9598
|
|
|
9552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9599
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9553
9600
|
var reaction = strictObject({
|
|
9554
9601
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9555
9602
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9557,7 +9604,7 @@ var reaction = strictObject({
|
|
|
9557
9604
|
reacted_at: time
|
|
9558
9605
|
});
|
|
9559
9606
|
|
|
9560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9607
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9561
9608
|
var reactionChange = strictObject({
|
|
9562
9609
|
operation_id: id,
|
|
9563
9610
|
chat_id: id,
|
|
@@ -9565,7 +9612,7 @@ var reactionChange = strictObject({
|
|
|
9565
9612
|
reaction: nullable(text)
|
|
9566
9613
|
});
|
|
9567
9614
|
|
|
9568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9615
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9569
9616
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9570
9617
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9571
9618
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9576,7 +9623,7 @@ var recipientChange = strictObject({
|
|
|
9576
9623
|
...partial(recipientOff).entries
|
|
9577
9624
|
});
|
|
9578
9625
|
|
|
9579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9626
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9580
9627
|
var events = array(record(string(), unknown()));
|
|
9581
9628
|
var recordedRun = strictObject({
|
|
9582
9629
|
run_id: id,
|
|
@@ -9648,7 +9695,7 @@ var runHit = strictObject({
|
|
|
9648
9695
|
});
|
|
9649
9696
|
var runLocation = strictObject({ path: text });
|
|
9650
9697
|
|
|
9651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9698
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9652
9699
|
var relationship = strictObject({
|
|
9653
9700
|
id,
|
|
9654
9701
|
from: reference,
|
|
@@ -9675,7 +9722,7 @@ var relationship = strictObject({
|
|
|
9675
9722
|
created_at: time
|
|
9676
9723
|
});
|
|
9677
9724
|
|
|
9678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9725
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
9679
9726
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9680
9727
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9681
9728
|
var responseTimes = strictObject({
|
|
@@ -9692,7 +9739,7 @@ var waitingChats = strictObject({
|
|
|
9692
9739
|
by_kind: strictObject({ private: count, group: count })
|
|
9693
9740
|
});
|
|
9694
9741
|
|
|
9695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9742
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9696
9743
|
var retentionCohort = strictObject({
|
|
9697
9744
|
/** The first day of the joining day or week. */
|
|
9698
9745
|
cohort: text,
|
|
@@ -9740,7 +9787,7 @@ var retention = strictObject({
|
|
|
9740
9787
|
rows: array(retentionCohort)
|
|
9741
9788
|
});
|
|
9742
9789
|
|
|
9743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9790
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
9744
9791
|
var savedSearch = strictObject({
|
|
9745
9792
|
id,
|
|
9746
9793
|
/** `null` for a run in the history. */
|
|
@@ -9757,7 +9804,7 @@ var savedSearch = strictObject({
|
|
|
9757
9804
|
});
|
|
9758
9805
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
9759
9806
|
|
|
9760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9807
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
9761
9808
|
var sendAttempt = strictObject({
|
|
9762
9809
|
at: time,
|
|
9763
9810
|
profile: text,
|
|
@@ -9785,7 +9832,7 @@ var sendAttempt = strictObject({
|
|
|
9785
9832
|
error_code: optional(text)
|
|
9786
9833
|
});
|
|
9787
9834
|
|
|
9788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9835
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
9789
9836
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
9790
9837
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
9791
9838
|
var infoSchema = strictObject({
|
|
@@ -9830,7 +9877,7 @@ var perAccount = { chats: count, messages: count, emails: count, documents: coun
|
|
|
9830
9877
|
var contents = {
|
|
9831
9878
|
by_provider: optional(array(strictObject({ provider: text, accounts: count, ...perAccount }))),
|
|
9832
9879
|
by_chat_kind: optional(array(strictObject({ provider: text, kind: text, chats: count, messages: count }))),
|
|
9833
|
-
/** `name` is the one `
|
|
9880
|
+
/** `name` is the one `session list` shows; the messenger's own id for the account is left out. */
|
|
9834
9881
|
by_account: optional(array(strictObject({ provider: text, account_id: count, name: nullable(text), ...perAccount }))),
|
|
9835
9882
|
/** Calendar years in UTC. */
|
|
9836
9883
|
by_year: optional(array(strictObject({ provider: text, year: count, messages: count }))),
|
|
@@ -10015,7 +10062,7 @@ var storeRepair = union([
|
|
|
10015
10062
|
]);
|
|
10016
10063
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10017
10064
|
|
|
10018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10065
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10019
10066
|
var range = strictObject({ from: number(), to: number() });
|
|
10020
10067
|
var storeChatStatus = strictObject({
|
|
10021
10068
|
chat_id: id,
|
|
@@ -10113,7 +10160,7 @@ var storeJobRetry = union([
|
|
|
10113
10160
|
]);
|
|
10114
10161
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10115
10162
|
|
|
10116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10163
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10117
10164
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10118
10165
|
var storeTable = strictObject({
|
|
10119
10166
|
name: text,
|
|
@@ -10122,7 +10169,7 @@ var storeTable = strictObject({
|
|
|
10122
10169
|
bytes: optional(nullable(count))
|
|
10123
10170
|
});
|
|
10124
10171
|
|
|
10125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10172
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10126
10173
|
var tagTarget = variant("type", [
|
|
10127
10174
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10128
10175
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10153,7 +10200,7 @@ var automaticTags = strictObject({
|
|
|
10153
10200
|
dry_run: boolean()
|
|
10154
10201
|
});
|
|
10155
10202
|
|
|
10156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10203
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10157
10204
|
var tagging = strictObject({
|
|
10158
10205
|
tag: text,
|
|
10159
10206
|
type: picklist(TAG_TYPES),
|
|
@@ -10166,7 +10213,7 @@ var tagging = strictObject({
|
|
|
10166
10213
|
created_at: time
|
|
10167
10214
|
});
|
|
10168
10215
|
|
|
10169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10216
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10170
10217
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10171
10218
|
var taskPair = strictObject({
|
|
10172
10219
|
task: nullable(side),
|
|
@@ -10189,7 +10236,7 @@ var taskPair = strictObject({
|
|
|
10189
10236
|
created_at: time
|
|
10190
10237
|
});
|
|
10191
10238
|
|
|
10192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10239
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10193
10240
|
var nullableTime = nullable(time);
|
|
10194
10241
|
var link = strictObject({
|
|
10195
10242
|
id,
|
|
@@ -10213,7 +10260,7 @@ var taskCard = strictObject({
|
|
|
10213
10260
|
project: reference,
|
|
10214
10261
|
project_key: text,
|
|
10215
10262
|
project_name: text,
|
|
10216
|
-
created_by: nullable(strictObject({ type: picklist(["person", "
|
|
10263
|
+
created_by: nullable(strictObject({ type: picklist(["person", "agent"]), id, name: nullable(text), owner: boolean() })),
|
|
10217
10264
|
title: text,
|
|
10218
10265
|
description: nullable(text),
|
|
10219
10266
|
type: picklist(TASK_TYPES),
|
|
@@ -10363,7 +10410,7 @@ var taskReview = strictObject({
|
|
|
10363
10410
|
untrusted
|
|
10364
10411
|
});
|
|
10365
10412
|
|
|
10366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10413
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
10367
10414
|
var template = strictObject({
|
|
10368
10415
|
key: text,
|
|
10369
10416
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -10375,7 +10422,7 @@ var template = strictObject({
|
|
|
10375
10422
|
updated_by: nullable(text)
|
|
10376
10423
|
});
|
|
10377
10424
|
|
|
10378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10425
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10379
10426
|
var topic = strictObject({
|
|
10380
10427
|
id,
|
|
10381
10428
|
title: text,
|
|
@@ -10389,7 +10436,7 @@ var topic = strictObject({
|
|
|
10389
10436
|
untrusted
|
|
10390
10437
|
});
|
|
10391
10438
|
|
|
10392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10439
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10393
10440
|
var ENTITIES = {
|
|
10394
10441
|
sync_progress: progress,
|
|
10395
10442
|
deal,
|
|
@@ -10645,6 +10692,7 @@ var ENTITIES = {
|
|
|
10645
10692
|
chat_rules: chatRules,
|
|
10646
10693
|
chat_moderation: chatModeration,
|
|
10647
10694
|
"model.chosen": chosenModel,
|
|
10695
|
+
domain_list: domainList,
|
|
10648
10696
|
model_key: modelKey,
|
|
10649
10697
|
chat_sending: chatSending,
|
|
10650
10698
|
"model_key.stored": storedModelKey,
|
|
@@ -10691,7 +10739,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10691
10739
|
return [name, definition];
|
|
10692
10740
|
})), "entityDefinitions");
|
|
10693
10741
|
|
|
10694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10742
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10695
10743
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10696
10744
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10697
10745
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10725,7 +10773,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10725
10773
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10726
10774
|
}, "answerRow");
|
|
10727
10775
|
|
|
10728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10776
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
10729
10777
|
import { join as join5 } from "node:path";
|
|
10730
10778
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
10731
10779
|
var IMAGE_MODELS = [
|
|
@@ -10779,7 +10827,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
10779
10827
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
10780
10828
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
10781
10829
|
|
|
10782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10830
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10783
10831
|
var STEPS2 = defineSteps([
|
|
10784
10832
|
...STEPS,
|
|
10785
10833
|
{
|
|
@@ -11027,6 +11075,20 @@ var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
|
11027
11075
|
root = root.parent;
|
|
11028
11076
|
return root;
|
|
11029
11077
|
}, "rootOf");
|
|
11078
|
+
var typedCommandPath = /* @__PURE__ */ __name((program2, rest) => {
|
|
11079
|
+
const words = [];
|
|
11080
|
+
let current2 = program2;
|
|
11081
|
+
for (const token of rest) {
|
|
11082
|
+
if (token.startsWith("-"))
|
|
11083
|
+
continue;
|
|
11084
|
+
const next = current2.commands.find((one) => one.name() === token || one.aliases().includes(token));
|
|
11085
|
+
if (!next)
|
|
11086
|
+
break;
|
|
11087
|
+
words.push(token);
|
|
11088
|
+
current2 = next;
|
|
11089
|
+
}
|
|
11090
|
+
return words.join(" ");
|
|
11091
|
+
}, "typedCommandPath");
|
|
11030
11092
|
var commandAt = /* @__PURE__ */ __name((root, path2) => {
|
|
11031
11093
|
let at2 = root;
|
|
11032
11094
|
for (const word of path2.split(" "))
|
|
@@ -11069,7 +11131,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11069
11131
|
].join(" ");
|
|
11070
11132
|
}, "stepLine");
|
|
11071
11133
|
|
|
11072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11134
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11073
11135
|
var where = [{ field: "ref" }];
|
|
11074
11136
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11075
11137
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11161,7 +11223,7 @@ var STATUS_ROWS = {
|
|
|
11161
11223
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11162
11224
|
};
|
|
11163
11225
|
|
|
11164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11226
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11165
11227
|
var TEXT_CHARS = 400;
|
|
11166
11228
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11167
11229
|
var messageRow = {
|
|
@@ -11295,9 +11357,13 @@ var isListOrRecord = /* @__PURE__ */ __name((value) => typeof value === "object"
|
|
|
11295
11357
|
var firstSet = /* @__PURE__ */ __name((item, field, column) => fieldsOfColumn(field).map((path2) => at(item, path2)).find((value) => printable(value, column)), "firstSet");
|
|
11296
11358
|
var sourceOf = /* @__PURE__ */ __name((item, column) => fieldsOfColumn(column.field).find((path2) => printable(at(item, path2), column)), "sourceOf");
|
|
11297
11359
|
var clean = /* @__PURE__ */ __name((text5) => visibleControls(text5.replace(/\s+/g, " ").trim()), "clean");
|
|
11360
|
+
var BLOCK = /^(⟦untrusted:([0-9a-f]{16}) [^⟦⟧]*⟧)([^⟦⟧]*)(⟦\/untrusted:\2⟧)$/su;
|
|
11298
11361
|
var cut = /* @__PURE__ */ __name((text5, chars) => {
|
|
11299
11362
|
if (chars <= 0)
|
|
11300
11363
|
return text5;
|
|
11364
|
+
const block = BLOCK.exec(text5);
|
|
11365
|
+
if (block)
|
|
11366
|
+
return `${block[1]}${cut(block[3] ?? "", chars)}${block[4]}`;
|
|
11301
11367
|
const letters = Array.from(text5);
|
|
11302
11368
|
return letters.length <= chars ? text5 : `${letters.slice(0, chars).join("")}\u2026(+${letters.length - chars})`;
|
|
11303
11369
|
}, "cut");
|
|
@@ -11529,7 +11595,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11529
11595
|
return lines.concat(footerOf(body)).join("\n");
|
|
11530
11596
|
}, "compactText");
|
|
11531
11597
|
|
|
11532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11598
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11533
11599
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11534
11600
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11535
11601
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11587,7 +11653,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11587
11653
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11588
11654
|
}, "largeAnswerSteps");
|
|
11589
11655
|
|
|
11590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11656
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11591
11657
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11592
11658
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11593
11659
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11601,7 +11667,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11601
11667
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11602
11668
|
}, "strip");
|
|
11603
11669
|
|
|
11604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11670
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
11605
11671
|
var OPEN = "\u27E6";
|
|
11606
11672
|
var CLOSE = "\u27E7";
|
|
11607
11673
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -11623,19 +11689,35 @@ var idOf = /* @__PURE__ */ __name((value) => {
|
|
|
11623
11689
|
const id6 = value.ref ?? value.id;
|
|
11624
11690
|
return typeof id6 === "string" || typeof id6 === "number" ? String(id6) : void 0;
|
|
11625
11691
|
}, "idOf");
|
|
11692
|
+
var everyStringAt = /* @__PURE__ */ __name((value, mark, source2, id6) => {
|
|
11693
|
+
if (Array.isArray(value))
|
|
11694
|
+
return value.map((one) => everyStringAt(one, mark, source2, id6));
|
|
11695
|
+
if (value === null || typeof value !== "object")
|
|
11696
|
+
return markAt(value, [], mark, source2, id6);
|
|
11697
|
+
const record2 = value;
|
|
11698
|
+
const own = idOf(record2) ?? id6;
|
|
11699
|
+
return Object.fromEntries(Object.entries(record2).map(([key, child]) => [key, everyStringAt(child, mark, source2, own)]));
|
|
11700
|
+
}, "everyStringAt");
|
|
11626
11701
|
var markAt = /* @__PURE__ */ __name((value, path2, mark, source2, id6) => {
|
|
11627
11702
|
if (Array.isArray(value))
|
|
11628
11703
|
return value.map((one) => markAt(one, path2, mark, source2, id6));
|
|
11629
11704
|
if (path2.length === 0)
|
|
11630
11705
|
return typeof value === "string" && !value.startsWith(`${OPEN}untrusted:${mark} `) ? marked(value, mark, source2, id6) : value;
|
|
11706
|
+
if (path2.length === 1 && path2[0] === "*")
|
|
11707
|
+
return everyStringAt(value, mark, source2, id6);
|
|
11631
11708
|
if (value === null || typeof value !== "object")
|
|
11632
11709
|
return value;
|
|
11633
11710
|
const [key = "", ...rest] = path2;
|
|
11634
11711
|
const record2 = value;
|
|
11712
|
+
const own = idOf(record2) ?? id6;
|
|
11713
|
+
if (key === "*")
|
|
11714
|
+
return Object.fromEntries(Object.entries(record2).map(([name, child]) => [name, markAt(child, rest, mark, source2, own)]));
|
|
11635
11715
|
if (!(key in record2))
|
|
11636
11716
|
return value;
|
|
11637
|
-
return { ...record2, [key]: markAt(record2[key], rest, mark, source2,
|
|
11717
|
+
return { ...record2, [key]: markAt(record2[key], rest, mark, source2, own) };
|
|
11638
11718
|
}, "markAt");
|
|
11719
|
+
var withoutRunMarks = /* @__PURE__ */ __name((text5, mark) => text5.replace(new RegExp(`${OPEN}untrusted:${mark}(?: [^${OPEN}${CLOSE}]*)?${CLOSE}|${OPEN}/untrusted:${mark}${CLOSE}`, "gu"), ""), "withoutRunMarks");
|
|
11720
|
+
var API_UNTRUSTED = ["item.*", "items.*"];
|
|
11639
11721
|
var withUntrustedMarked = /* @__PURE__ */ __name((value, mark, id6) => {
|
|
11640
11722
|
if (Array.isArray(value))
|
|
11641
11723
|
return value.map((one) => withUntrustedMarked(one, mark, id6));
|
|
@@ -11670,9 +11752,12 @@ var MESSAGE_UNTRUSTED = [
|
|
|
11670
11752
|
"bcc.name",
|
|
11671
11753
|
"reply_addresses.name"
|
|
11672
11754
|
];
|
|
11755
|
+
var CHAT_UNTRUSTED = ["title", "description"];
|
|
11756
|
+
var CONTACT_UNTRUSTED = ["description", "chats.title"];
|
|
11673
11757
|
var DECLARED = /* @__PURE__ */ new WeakMap();
|
|
11674
11758
|
var marksUntrusted = /* @__PURE__ */ __name((command, fields = MESSAGE_UNTRUSTED) => {
|
|
11675
|
-
DECLARED.
|
|
11759
|
+
const raw = DECLARED.get(command) === API_UNTRUSTED;
|
|
11760
|
+
DECLARED.set(command, raw ? [.../* @__PURE__ */ new Set([...API_UNTRUSTED, ...fields])] : fields);
|
|
11676
11761
|
return command;
|
|
11677
11762
|
}, "marksUntrusted");
|
|
11678
11763
|
var untrustedFieldsOf = /* @__PURE__ */ __name((command) => DECLARED.get(command), "untrustedFieldsOf");
|
|
@@ -11689,7 +11774,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
11689
11774
|
return result;
|
|
11690
11775
|
}, "withFieldsMarked");
|
|
11691
11776
|
|
|
11692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11777
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11693
11778
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11694
11779
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11695
11780
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12052,6 +12137,15 @@ export {
|
|
|
12052
12137
|
imageModelsDirectory,
|
|
12053
12138
|
placedImage,
|
|
12054
12139
|
isImageModelInstalled,
|
|
12140
|
+
untrustedMarkOf,
|
|
12141
|
+
runMarkOf,
|
|
12142
|
+
marked,
|
|
12143
|
+
withoutRunMarks,
|
|
12144
|
+
API_UNTRUSTED,
|
|
12145
|
+
withUntrustedMarked,
|
|
12146
|
+
CHAT_UNTRUSTED,
|
|
12147
|
+
CONTACT_UNTRUSTED,
|
|
12148
|
+
marksUntrusted,
|
|
12055
12149
|
answerEntity,
|
|
12056
12150
|
answerEntitySchema,
|
|
12057
12151
|
answerProjectionSchema,
|
|
@@ -12061,6 +12155,7 @@ export {
|
|
|
12061
12155
|
nextStep,
|
|
12062
12156
|
lineOf,
|
|
12063
12157
|
rootOf2,
|
|
12158
|
+
typedCommandPath,
|
|
12064
12159
|
commandAt,
|
|
12065
12160
|
runnable,
|
|
12066
12161
|
failureSteps,
|
|
@@ -12068,9 +12163,6 @@ export {
|
|
|
12068
12163
|
stepLine,
|
|
12069
12164
|
tooLargeSteps,
|
|
12070
12165
|
withoutProviderRefs,
|
|
12071
|
-
runMarkOf,
|
|
12072
|
-
withUntrustedMarked,
|
|
12073
|
-
marksUntrusted,
|
|
12074
12166
|
answerSchema,
|
|
12075
12167
|
listOf,
|
|
12076
12168
|
itemOf,
|