@wirecat/zoom-cli 0.65.0 → 0.67.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/README.md +2 -1
- package/constants.json +7 -0
- package/dist/answers.d.ts +4 -4
- package/dist/bin/main.js +3 -2
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bin/zm.js.map +1 -1
- package/dist/bundle/{all-profiles-SKMLZJSY.js → all-profiles-SEW2VL76.js} +12 -8
- package/dist/bundle/answer-policy-5OYUL6UF.js +103 -0
- package/dist/bundle/{anthropic-TVHK7CY2.js → anthropic-FSNASJML.js} +7 -4
- package/dist/bundle/{app-server-44ASFH47.js → app-server-EVSRYJ3H.js} +66 -59
- package/dist/bundle/{bun-O4WHGL2F.js → bun-DACL5SVO.js} +2 -2
- package/dist/bundle/{bun-sqlite-NS32GMM4.js → bun-sqlite-HQ2KOXSI.js} +6 -3
- package/dist/bundle/chunk-2UW533HQ.js +166 -0
- package/dist/bundle/{chunk-FYJL276J.js → chunk-3GO3KME7.js} +3 -3
- package/dist/bundle/{chunk-Z5424QL6.js → chunk-3ZIHUSMM.js} +2 -2
- package/dist/bundle/{chunk-MRWIXUYT.js → chunk-4GCKDO2H.js} +5 -3
- package/dist/bundle/{chunk-7SQJCKR6.js → chunk-4KDZ22RA.js} +1 -1
- package/dist/bundle/{chunk-25IDWPEN.js → chunk-4U2555EQ.js} +35 -31
- package/dist/bundle/{chunk-UKU6MYUI.js → chunk-4UVT2QCO.js} +9 -20
- package/dist/bundle/{chunk-ZOGYTDHG.js → chunk-4ZR5DJ26.js} +5 -3
- package/dist/bundle/{chunk-CVCRQW3A.js → chunk-54RTMQL6.js} +4 -4
- package/dist/bundle/chunk-6AJDVJVZ.js +35 -0
- package/dist/bundle/chunk-6IBM4Z3V.js +34 -0
- package/dist/bundle/{chunk-CNEE6TPE.js → chunk-6TZF2JP7.js} +13 -13
- package/dist/bundle/{chunk-QLCYAQ66.js → chunk-6UFWFKFH.js} +2 -2
- package/dist/bundle/chunk-6VFORXL3.js +101 -0
- package/dist/bundle/{chunk-M6IDHQ7N.js → chunk-7HAIM7GV.js} +1633 -683
- package/dist/bundle/{chunk-FYM27FCG.js → chunk-7K5TDTZY.js} +13 -7
- package/dist/bundle/{chunk-NO24PJNW.js → chunk-7LLUUXJB.js} +1 -1
- package/dist/bundle/{chunk-VJTGYBJJ.js → chunk-7VU5UGRR.js} +37 -29
- package/dist/bundle/{chunk-ZH743WNV.js → chunk-AAZFLJSH.js} +25 -24
- package/dist/bundle/{chunk-DYJXAY7Q.js → chunk-ASCHAVNW.js} +35 -27
- package/dist/bundle/{chunk-EA63UGWE.js → chunk-B3KWAULD.js} +2 -2
- package/dist/bundle/{chunk-H7762LDA.js → chunk-B5Z4XPVS.js} +2 -2
- package/dist/bundle/{chunk-UPJXN2CO.js → chunk-BKY4XVB4.js} +1787 -1224
- package/dist/bundle/{chunk-QI7BZS2G.js → chunk-C6UKW7JO.js} +6 -6
- package/dist/bundle/{chunk-U3ZUT557.js → chunk-CLEZE65P.js} +1 -1
- package/dist/bundle/{chunk-37PHGASE.js → chunk-CRLBTNC4.js} +5 -3
- package/dist/bundle/{chunk-VH4F2EK4.js → chunk-D4KBD63W.js} +1 -1
- package/dist/bundle/{chunk-DNCKH7CO.js → chunk-D6OXI2NV.js} +17 -17
- package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-GMTXCFI7.js → chunk-DFUPETW7.js} +449 -308
- package/dist/bundle/{chunk-VW2SW7ME.js → chunk-DG4DWAU7.js} +3 -3
- package/dist/bundle/{chunk-U5ASRBBF.js → chunk-EPDRF66S.js} +4 -4
- package/dist/bundle/{chunk-BNXH73OU.js → chunk-EQ7XRRKV.js} +14 -12
- package/dist/bundle/{chunk-5NGOP4EZ.js → chunk-ESFMHBHH.js} +38 -35
- package/dist/bundle/{chunk-GEX4V5TM.js → chunk-EUPZSR2G.js} +4 -4
- package/dist/bundle/{chunk-KZE3G4ZT.js → chunk-FGTPREAZ.js} +58 -54
- package/dist/bundle/{chunk-MH7AWCB4.js → chunk-FWU3ZYHE.js} +68 -64
- package/dist/bundle/{chunk-MPKKIL3U.js → chunk-FXQPK742.js} +63 -21
- package/dist/bundle/{chunk-PV3UDPCI.js → chunk-GP4NSYDU.js} +20 -14
- package/dist/bundle/{chunk-ZFNM3FNI.js → chunk-I7SOXH64.js} +75 -38
- package/dist/bundle/{chunk-S4GDDO5S.js → chunk-IFDO3YPJ.js} +1 -1
- package/dist/bundle/{chunk-LOL6JYYN.js → chunk-J3ZBEWQY.js} +375 -9
- package/dist/bundle/chunk-JVCHGI7W.js +37 -0
- package/dist/bundle/{chunk-MZ6U6HNJ.js → chunk-KANH7GBB.js} +2 -2
- package/dist/bundle/{chunk-3CZIWGZ6.js → chunk-KIJLM5UL.js} +1 -1
- package/dist/bundle/chunk-KV4267S4.js +23 -0
- package/dist/bundle/{chunk-266WOOB3.js → chunk-KWRSC6O6.js} +6 -6
- package/dist/bundle/{chunk-C6BG57FA.js → chunk-L643D4RJ.js} +14 -12
- package/dist/bundle/{chunk-IPTI3Y2E.js → chunk-L6CAUVMU.js} +7 -5
- package/dist/bundle/{chunk-MIB5X2XW.js → chunk-L6WUAGPN.js} +5 -5
- package/dist/bundle/{chunk-BWRBALXG.js → chunk-LFQ73UFK.js} +3 -3
- package/dist/bundle/{chunk-GBZF4IIP.js → chunk-LKJXTACE.js} +10 -89
- package/dist/bundle/{chunk-T3KICUOK.js → chunk-LM26DJOK.js} +8 -8
- package/dist/bundle/{chunk-GXCNCMUY.js → chunk-M43MBWJX.js} +3260 -1263
- package/dist/bundle/{chunk-TC7PD3LH.js → chunk-MWEOVTIF.js} +4 -4
- package/dist/bundle/chunk-NTZDM5SJ.js +2462 -0
- package/dist/bundle/{chunk-ERPRAYA7.js → chunk-OTMGAKUM.js} +11 -7
- package/dist/bundle/chunk-OZEYFJX2.js +93 -0
- package/dist/bundle/{chunk-NJSIHMAE.js → chunk-Q65SDEFN.js} +4 -4
- package/dist/bundle/{chunk-UMHJZWZU.js → chunk-QEI55M2F.js} +12 -10
- package/dist/bundle/{chunk-SQWRZZOQ.js → chunk-QX2MAT6I.js} +3 -3
- package/dist/bundle/{chunk-ZXGRK44F.js → chunk-RAMPYIO2.js} +17 -12
- package/dist/bundle/{chunk-BLT3LR3U.js → chunk-RYKG6AEH.js} +1 -1
- package/dist/bundle/{chunk-WLSF3GCC.js → chunk-SCFFCIIP.js} +4 -2
- package/dist/bundle/{chunk-2H5SXK7K.js → chunk-SMVO5R3T.js} +21 -19
- package/dist/bundle/{chunk-Y3EIK4XW.js → chunk-SOZVC3SV.js} +1 -1
- package/dist/bundle/{chunk-6CS7ETBK.js → chunk-SSXCOUP3.js} +1114 -282
- package/dist/bundle/{chunk-R5BAF5XE.js → chunk-SXFODCYK.js} +1 -1
- package/dist/bundle/{chunk-JF7ZEUXU.js → chunk-T6CZWSHF.js} +136 -2540
- package/dist/bundle/{chunk-KYLS5QGC.js → chunk-TBRG2DPE.js} +2 -2
- package/dist/bundle/{chunk-K6ATTKQR.js → chunk-V33VGWT3.js} +5 -5
- package/dist/bundle/{chunk-RZLNHNSS.js → chunk-VFIEYRYD.js} +8 -8
- package/dist/bundle/{chunk-OXUHTKO2.js → chunk-VNIBTNV4.js} +3 -2
- package/dist/bundle/{chunk-ZREFYKUB.js → chunk-VQTAU4DV.js} +13 -11
- package/dist/bundle/{chunk-NNNEVWFF.js → chunk-WHQ4ZCJI.js} +57 -34
- package/dist/bundle/chunk-WZ5XK74U.js +46 -0
- package/dist/bundle/{chunk-XJQB47IL.js → chunk-X67YD3QI.js} +6 -6
- package/dist/bundle/chunk-YPF6OS37.js +46 -0
- package/dist/bundle/{chunk-AMMD6YCJ.js → chunk-YRNZT4GQ.js} +7 -7
- package/dist/bundle/{chunk-TUIEDVI6.js → chunk-Z3WXI4DK.js} +5 -3
- package/dist/bundle/{chunk-U4RVOSX3.js → chunk-ZMPTO2WB.js} +1 -1
- package/dist/bundle/{chunk-24F7JBLY.js → chunk-ZRMZBMOF.js} +69 -9
- package/dist/bundle/{cli-FDO6CP6R.js → cli-YUATSOLA.js} +113 -81
- package/dist/bundle/command-contract-UWHY55UE.js +41 -0
- package/dist/bundle/config-TGF6E6ZD.js +89 -0
- package/dist/bundle/{decode-7SZI3TGZ.js → decode-IL44LNC3.js} +6 -3
- package/dist/bundle/dispatch-3BGIXSJR.js +412 -0
- package/dist/bundle/{dist-5GWUXW27.js → dist-3W27UQ2S.js} +48 -16
- package/dist/bundle/{echarts-FMACRZQC.js → echarts-CO4D26JF.js} +2 -2
- package/dist/bundle/{embed-24YSXHLP.js → embed-XH2X4DFM.js} +7 -4
- package/dist/bundle/{embedder-MEXN2TFB.js → embedder-WTFWDXBJ.js} +12 -9
- package/dist/bundle/failure-HTIS3NLS.js +25 -0
- package/dist/bundle/first-run-5RBH7FDO.js +28 -0
- package/dist/bundle/first-screen-PGFIXJAX.js +39 -0
- package/dist/bundle/{folders-DBAAMU26.js → folders-F4DNQPIY.js} +5 -2
- package/dist/bundle/{instructions-E5FXYCWF.js → instructions-EPPBL6TT.js} +1 -1
- package/dist/bundle/{main-EIUCXXDW.js → main-LVQTCDZS.js} +31 -25
- package/dist/bundle/{mcp-FUSDPAOL.js → mcp-PPVOM4SE.js} +5 -3
- package/dist/bundle/{meetings-JDTRGXZJ.js → meetings-BMELXRTR.js} +31 -4
- package/dist/bundle/{node-4SNKUPXT.js → node-CQVMWVIG.js} +2 -2
- package/dist/bundle/{node-sqlite-O4BAODFR.js → node-sqlite-QQEX7LZT.js} +7 -4
- package/dist/bundle/{oauth-3YLHXGUW.js → oauth-AYGX7CQS.js} +8 -5
- package/dist/bundle/{open-QGRMSNM2.js → open-MIL2TOT6.js} +6 -3
- package/dist/bundle/openai-7QZZXQW5.js +25 -0
- package/dist/bundle/{output-file-J26UQKRA.js → output-file-4XADZPYH.js} +7 -4
- package/dist/bundle/{process-HQZOTT6U.js → process-NJVQK6GB.js} +1 -1
- package/dist/bundle/{program-47DT7SHE.js → program-WUYRS6H7.js} +191 -135
- package/dist/bundle/{prompt-IUD7HCDC.js → prompt-J4QPFLEA.js} +6 -3
- package/dist/bundle/{recognize-DMJJHHXF.js → recognize-OLJZVNWW.js} +5 -2
- package/dist/bundle/{remote-5WFSOVVB.js → remote-JPUXNYLV.js} +8 -5
- package/dist/bundle/{rerank-UKQ65ECH.js → rerank-XVV3X5TT.js} +8 -5
- package/dist/bundle/run-log-DJXBEVS5.js +118 -0
- package/dist/bundle/{serve-WAOSED3I.js → serve-NYYUO3MR.js} +16 -13
- package/dist/bundle/{server-NWZFNXC5.js → server-4Z5E4YTT.js} +48 -42
- package/dist/bundle/server-VW5UVCH7.js +72 -0
- package/dist/bundle/{services-VPANRE72.js → services-EKWM76HP.js} +50 -28
- package/dist/bundle/{speech-O6UNUDRW.js → speech-WFJ44ACJ.js} +14 -11
- package/dist/bundle/{state-BNE7I65A.js → state-VIRCT4VW.js} +7 -4
- package/dist/bundle/{store-4IIVSCJ4.js → store-2Q4GEZJS.js} +30 -18
- package/dist/bundle/{store-QQH4FJXJ.js → store-ZTDZ6UY5.js} +20 -14
- package/dist/bundle/store-connection-FKVVQLEF.js +83 -0
- package/dist/bundle/store-maintenance-command-AU73UVUQ.js +62 -0
- package/dist/bundle/{streaming-S4EZB6P2.js → streaming-7BPKIGAS.js} +7 -4
- package/dist/bundle/{tokens-VCXIH7WZ.js → tokens-CQHMMKNX.js} +7 -4
- package/dist/bundle/zm.js +150 -1
- package/dist/bundle/zoom-app-OEKFMJS6.js +25 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +46 -7
- package/dist/config.js.map +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-source.js +2 -1
- package/dist/meeting-source.js.map +1 -1
- package/dist/meeting-stats-commands.d.ts +4 -2
- package/dist/meeting-stats-commands.d.ts.map +1 -1
- package/dist/meeting-stats-commands.js +27 -2
- package/dist/meeting-stats-commands.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +3 -2
- package/dist/program-bindings.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +5 -5
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +2 -6
- package/dist/run.js.map +1 -1
- package/dist/setup-commands.d.ts +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +30 -8
- package/dist/setup-commands.js.map +1 -1
- package/dist/store-commands.d.ts.map +1 -1
- package/dist/store-commands.js +6 -0
- package/dist/store-commands.js.map +1 -1
- package/dist/store-connection.d.ts +2 -1
- package/dist/store-connection.d.ts.map +1 -1
- package/dist/store-connection.js +4 -0
- package/dist/store-connection.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/watch-service.d.ts +1 -1
- package/dist/watch-service.d.ts.map +1 -1
- package/dist/watch-service.js +5 -3
- package/dist/watch-service.js.map +1 -1
- package/dist/zoom-app.d.ts +17 -0
- package/dist/zoom-app.d.ts.map +1 -0
- package/dist/zoom-app.js +22 -0
- package/dist/zoom-app.js.map +1 -0
- package/package.json +6 -4
- package/skills/zoom-cli/SKILL.md +4 -1
- package/dist/bundle/answer-policy-BHDNSJWX.js +0 -96
- package/dist/bundle/chunk-A6OA2EH2.js +0 -18
- package/dist/bundle/command-contract-O4FDXM4U.js +0 -37
- package/dist/bundle/config-UBHKZG3J.js +0 -78
- package/dist/bundle/first-run-OCVEJH63.js +0 -23
- package/dist/bundle/first-screen-KJIU25MH.js +0 -35
- package/dist/bundle/openai-7PSCSTH7.js +0 -22
- package/dist/bundle/run-log-UGYL6NW2.js +0 -111
- package/dist/bundle/server-HAXN772R.js +0 -66
- package/dist/bundle/store-connection-PPEQK2K3.js +0 -76
- package/dist/bundle/store-maintenance-command-JZXCT6NY.js +0 -56
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
|
@@ -4,10 +4,7 @@ import {
|
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf,
|
|
6
6
|
readOnlyRefusal
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
carries
|
|
10
|
-
} from "./chunk-Y3EIK4XW.js";
|
|
7
|
+
} from "./chunk-SCFFCIIP.js";
|
|
11
8
|
import {
|
|
12
9
|
currentCaller,
|
|
13
10
|
endpointTemplate,
|
|
@@ -17,7 +14,18 @@ import {
|
|
|
17
14
|
providerErrorKey,
|
|
18
15
|
renderEvent,
|
|
19
16
|
runContextOf
|
|
20
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LKJXTACE.js";
|
|
18
|
+
import {
|
|
19
|
+
permissionCeiling
|
|
20
|
+
} from "./chunk-EUPZSR2G.js";
|
|
21
|
+
import {
|
|
22
|
+
fieldsOf,
|
|
23
|
+
projectFields,
|
|
24
|
+
resolveOutput
|
|
25
|
+
} from "./chunk-7K5TDTZY.js";
|
|
26
|
+
import {
|
|
27
|
+
carries
|
|
28
|
+
} from "./chunk-SOZVC3SV.js";
|
|
21
29
|
import {
|
|
22
30
|
DEFAULT_HISTORY_LIMITS,
|
|
23
31
|
DEFAULT_RERANK_MODEL,
|
|
@@ -50,10 +58,21 @@ import {
|
|
|
50
58
|
typedCommand,
|
|
51
59
|
useAsProcessRun,
|
|
52
60
|
withWriteScope
|
|
53
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-4U2555EQ.js";
|
|
54
62
|
import {
|
|
55
63
|
isCliFailure
|
|
56
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-3ZIHUSMM.js";
|
|
65
|
+
import {
|
|
66
|
+
CEILING_KEY,
|
|
67
|
+
COMMAND_PATH_KEY,
|
|
68
|
+
LEVELS,
|
|
69
|
+
RESOURCES,
|
|
70
|
+
RESOURCE_KEY,
|
|
71
|
+
assertOverridesTighten,
|
|
72
|
+
keyForCommand,
|
|
73
|
+
layerPermissions,
|
|
74
|
+
permissionOverrides
|
|
75
|
+
} from "./chunk-VNIBTNV4.js";
|
|
57
76
|
import {
|
|
58
77
|
author,
|
|
59
78
|
count,
|
|
@@ -67,26 +86,7 @@ import {
|
|
|
67
86
|
text,
|
|
68
87
|
time,
|
|
69
88
|
untrusted
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import {
|
|
72
|
-
permissionCeiling
|
|
73
|
-
} from "./chunk-GEX4V5TM.js";
|
|
74
|
-
import {
|
|
75
|
-
fieldsOf,
|
|
76
|
-
projectFields,
|
|
77
|
-
resolveOutput
|
|
78
|
-
} from "./chunk-FYM27FCG.js";
|
|
79
|
-
import {
|
|
80
|
-
CEILING_KEY,
|
|
81
|
-
COMMAND_PATH_KEY,
|
|
82
|
-
LEVELS,
|
|
83
|
-
RESOURCES,
|
|
84
|
-
RESOURCE_KEY,
|
|
85
|
-
assertOverridesTighten,
|
|
86
|
-
keyForCommand,
|
|
87
|
-
layerPermissions,
|
|
88
|
-
permissionOverrides
|
|
89
|
-
} from "./chunk-OXUHTKO2.js";
|
|
89
|
+
} from "./chunk-54RTMQL6.js";
|
|
90
90
|
import {
|
|
91
91
|
FACT_STATUSES,
|
|
92
92
|
LINK_KINDS,
|
|
@@ -102,20 +102,19 @@ import {
|
|
|
102
102
|
TASK_TYPES,
|
|
103
103
|
TASK_VERDICTS,
|
|
104
104
|
WORK_TASK_TYPES
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-YRNZT4GQ.js";
|
|
106
106
|
import {
|
|
107
107
|
sharedConfigPath
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-OTMGAKUM.js";
|
|
109
109
|
import {
|
|
110
110
|
storePath
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-6AJDVJVZ.js";
|
|
112
112
|
import {
|
|
113
113
|
FACT_TYPES,
|
|
114
114
|
MEETING_RESULT_ENTITIES,
|
|
115
|
-
PAYMENT_DIRECTIONS,
|
|
116
|
-
PAYMENT_STATES,
|
|
117
115
|
event,
|
|
118
116
|
meeting,
|
|
117
|
+
meetingCounts,
|
|
119
118
|
meetingDetails,
|
|
120
119
|
meetingHit,
|
|
121
120
|
meetingLink,
|
|
@@ -127,23 +126,28 @@ import {
|
|
|
127
126
|
meetingStats,
|
|
128
127
|
meetingSummary,
|
|
129
128
|
meetingTranscript
|
|
130
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-DFUPETW7.js";
|
|
131
130
|
import {
|
|
132
131
|
FIELD_TYPES,
|
|
133
132
|
QUERY_BACKENDS,
|
|
134
133
|
describeQuery
|
|
135
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-AAZFLJSH.js";
|
|
135
|
+
import {
|
|
136
|
+
configFilePath,
|
|
137
|
+
createRecordLog,
|
|
138
|
+
defineLogEvents,
|
|
139
|
+
processStreams,
|
|
140
|
+
resolvePaths,
|
|
141
|
+
saveConfigFile,
|
|
142
|
+
writeSecurely
|
|
143
|
+
} from "./chunk-T6CZWSHF.js";
|
|
136
144
|
import {
|
|
137
145
|
COMPACT_FLAG,
|
|
138
|
-
CliError,
|
|
139
146
|
MAX_NEXT_STEPS,
|
|
140
147
|
STEPS,
|
|
141
148
|
array,
|
|
142
149
|
boolean,
|
|
143
150
|
check,
|
|
144
|
-
configFilePath,
|
|
145
|
-
createRecordLog,
|
|
146
|
-
defineLogEvents,
|
|
147
151
|
defineSteps,
|
|
148
152
|
effectsSchema,
|
|
149
153
|
exitCodeOfAnswer,
|
|
@@ -174,14 +178,11 @@ import {
|
|
|
174
178
|
pick,
|
|
175
179
|
picklist,
|
|
176
180
|
pipe,
|
|
177
|
-
processStreams,
|
|
178
181
|
record,
|
|
179
182
|
reference,
|
|
180
183
|
regex,
|
|
181
|
-
resolvePaths,
|
|
182
184
|
safeInteger,
|
|
183
185
|
safeParse,
|
|
184
|
-
saveConfigFile,
|
|
185
186
|
stepOf,
|
|
186
187
|
strictObject,
|
|
187
188
|
string,
|
|
@@ -190,15 +191,19 @@ import {
|
|
|
190
191
|
unknown,
|
|
191
192
|
unwrap,
|
|
192
193
|
variant,
|
|
193
|
-
visibleControls,
|
|
194
|
-
writeSecurely,
|
|
195
194
|
writes
|
|
196
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-NTZDM5SJ.js";
|
|
196
|
+
import {
|
|
197
|
+
CliError
|
|
198
|
+
} from "./chunk-WZ5XK74U.js";
|
|
199
|
+
import {
|
|
200
|
+
visibleControls
|
|
201
|
+
} from "./chunk-6IBM4Z3V.js";
|
|
197
202
|
import {
|
|
198
203
|
__name
|
|
199
204
|
} from "./chunk-ZVVMGPBJ.js";
|
|
200
205
|
|
|
201
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
206
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
202
207
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
203
208
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
204
209
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3699,7 +3704,7 @@ __name(useColor, "useColor");
|
|
|
3699
3704
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3700
3705
|
var program = new Command();
|
|
3701
3706
|
|
|
3702
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3707
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3703
3708
|
import { isDeepStrictEqual } from "node:util";
|
|
3704
3709
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3705
3710
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3901,7 +3906,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3901
3906
|
return command;
|
|
3902
3907
|
}, "customizeSharedCommand");
|
|
3903
3908
|
|
|
3904
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3909
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3905
3910
|
var argumentInfoSchema = object({
|
|
3906
3911
|
name: string(),
|
|
3907
3912
|
required: boolean(),
|
|
@@ -3975,7 +3980,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3975
3980
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3976
3981
|
});
|
|
3977
3982
|
|
|
3978
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3983
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3979
3984
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3980
3985
|
let command = root;
|
|
3981
3986
|
const path2 = [];
|
|
@@ -3993,7 +3998,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3993
3998
|
}
|
|
3994
3999
|
}, "refuseJoinedPath");
|
|
3995
4000
|
|
|
3996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
3997
4002
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
3998
4003
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
3999
4004
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4027,7 +4032,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4027
4032
|
cache: "cache.answered"
|
|
4028
4033
|
};
|
|
4029
4034
|
|
|
4030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4031
4036
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4032
4037
|
const recording = startRecording(options);
|
|
4033
4038
|
try {
|
|
@@ -4212,9 +4217,9 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4212
4217
|
return void 0;
|
|
4213
4218
|
}, "partialOutcome");
|
|
4214
4219
|
|
|
4215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4216
|
-
var withDeadline = /* @__PURE__ */ __name(async (
|
|
4217
|
-
if (
|
|
4220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4221
|
+
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
4222
|
+
if (ms2 === void 0)
|
|
4218
4223
|
return body();
|
|
4219
4224
|
let timer2;
|
|
4220
4225
|
let timedOut;
|
|
@@ -4223,10 +4228,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
4223
4228
|
timer2 = setTimeout(() => {
|
|
4224
4229
|
const pending = [...writes2];
|
|
4225
4230
|
const cut2 = pending.filter((write) => !write.preparing);
|
|
4226
|
-
timedOut = cut2.length > 0 ? new CliError("outcome_unknown", `\`--timeout\` ended the command after ${
|
|
4231
|
+
timedOut = cut2.length > 0 ? new CliError("outcome_unknown", `\`--timeout\` ended the command after ${ms2}ms with ${cut2.length === 1 ? "a write" : `${cut2.length} writes`} in flight; the messenger may or may not have carried it out \u2014 check before repeating it`, { operation_ids: cut2.map((write) => write.operationId), retryable: false }) : new CliError("timeout", `the command did not finish within ${ms2}ms \u2014 \`--timeout\` ended it`);
|
|
4227
4232
|
stopWrites(writes2, timedOut);
|
|
4228
4233
|
void Promise.allSettled(closeables.map((closeable) => closeable.close())).then(() => reject(timedOut));
|
|
4229
|
-
},
|
|
4234
|
+
}, ms2);
|
|
4230
4235
|
});
|
|
4231
4236
|
try {
|
|
4232
4237
|
return await Promise.race([withWriteScope(writes2, body), expired]);
|
|
@@ -4238,7 +4243,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
4238
4243
|
}
|
|
4239
4244
|
}, "withDeadline");
|
|
4240
4245
|
|
|
4241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4242
4247
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4243
4248
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4244
4249
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4344,6 +4349,7 @@ var execution = /* @__PURE__ */ __name((streams, { timeoutMs, fields, maxOutputB
|
|
|
4344
4349
|
reason: "output.too-large",
|
|
4345
4350
|
max_bytes: maxOutputBytes,
|
|
4346
4351
|
emitted_bytes: bytes,
|
|
4352
|
+
needed_bytes: bytes + size,
|
|
4347
4353
|
partial_output: bytes > 0
|
|
4348
4354
|
});
|
|
4349
4355
|
bytes += size;
|
|
@@ -4420,7 +4426,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4420
4426
|
}
|
|
4421
4427
|
}, "withAbort");
|
|
4422
4428
|
|
|
4423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4424
4430
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4425
4431
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4426
4432
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4489,7 +4495,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4489
4495
|
return void 0;
|
|
4490
4496
|
}, "sampleCommand");
|
|
4491
4497
|
|
|
4492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
4493
4499
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
4494
4500
|
try {
|
|
4495
4501
|
const url2 = new URL(value);
|
|
@@ -4499,7 +4505,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
4499
4505
|
}
|
|
4500
4506
|
}, "endpoint");
|
|
4501
4507
|
|
|
4502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4503
4509
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4504
4510
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4505
4511
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -4568,7 +4574,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
4568
4574
|
};
|
|
4569
4575
|
}, "modelTarget");
|
|
4570
4576
|
|
|
4571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
4572
4578
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
4573
4579
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
4574
4580
|
var AI_FIELDS = {
|
|
@@ -4612,8 +4618,340 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
4612
4618
|
};
|
|
4613
4619
|
}, "resolveAISettings");
|
|
4614
4620
|
|
|
4615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4616
|
-
import { readFileSync } from "node:fs";
|
|
4621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
4622
|
+
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4623
|
+
import { join } from "node:path";
|
|
4624
|
+
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
4625
|
+
var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
|
|
4626
|
+
const directory = botsDirectory(app, env);
|
|
4627
|
+
return {
|
|
4628
|
+
registry: join(directory, `${profile}.json`),
|
|
4629
|
+
recipients: join(directory, "recipients", `${profile}.json`),
|
|
4630
|
+
journal: join(directory, "sends", `${profile}.jsonl`),
|
|
4631
|
+
updates: join(directory, "updates", `${profile}.json`),
|
|
4632
|
+
presses: join(directory, "presses", `${profile}.json`),
|
|
4633
|
+
checks: join(directory, "checks", `${profile}.json`)
|
|
4634
|
+
};
|
|
4635
|
+
}, "botFiles");
|
|
4636
|
+
var ChatRegistry = class {
|
|
4637
|
+
static {
|
|
4638
|
+
__name(this, "ChatRegistry");
|
|
4639
|
+
}
|
|
4640
|
+
#path;
|
|
4641
|
+
constructor(app, profile, env = process.env) {
|
|
4642
|
+
this.#path = botFiles(app, profile, env).registry;
|
|
4643
|
+
}
|
|
4644
|
+
list(filter = {}) {
|
|
4645
|
+
const { chats } = this.#read();
|
|
4646
|
+
return (Array.isArray(chats) ? chats : []).filter((chat2) => (filter.id === void 0 || chat2.id === filter.id) && (filter.kind === void 0 || chat2.kind === filter.kind) && (filter.title === void 0 || chat2.title?.toLocaleLowerCase() === filter.title?.toLocaleLowerCase()));
|
|
4647
|
+
}
|
|
4648
|
+
/** The bot's own user id, once any command has learned it — the key its messages are stored under. */
|
|
4649
|
+
botId() {
|
|
4650
|
+
const { botId } = this.#read();
|
|
4651
|
+
return typeof botId === "string" ? botId : void 0;
|
|
4652
|
+
}
|
|
4653
|
+
rememberBot(id6) {
|
|
4654
|
+
const file = this.#read();
|
|
4655
|
+
if (file.botId !== id6)
|
|
4656
|
+
this.#write({ ...file, botId: id6 });
|
|
4657
|
+
}
|
|
4658
|
+
/** Makes this bot known to `bot list` before it has seen any chat. */
|
|
4659
|
+
touch() {
|
|
4660
|
+
if (!existsSync(this.#path))
|
|
4661
|
+
writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
|
|
4662
|
+
`, 384);
|
|
4663
|
+
}
|
|
4664
|
+
/** Newer facts win; a chat seen only as an id keeps the title it had. */
|
|
4665
|
+
observe(chats, now = /* @__PURE__ */ new Date()) {
|
|
4666
|
+
if (chats.length === 0)
|
|
4667
|
+
return;
|
|
4668
|
+
const byId = new Map(this.list().map((chat2) => [chat2.id, chat2]));
|
|
4669
|
+
const at2 = now.toISOString();
|
|
4670
|
+
for (const chat2 of chats) {
|
|
4671
|
+
const known = byId.get(chat2.id);
|
|
4672
|
+
const defined = Object.fromEntries(Object.entries(chat2).filter(([, value]) => value !== void 0 && value !== null));
|
|
4673
|
+
byId.set(chat2.id, {
|
|
4674
|
+
title: null,
|
|
4675
|
+
kind: "unknown",
|
|
4676
|
+
unreadCount: null,
|
|
4677
|
+
lastMessageAt: null,
|
|
4678
|
+
participantsCount: null,
|
|
4679
|
+
...known,
|
|
4680
|
+
...defined,
|
|
4681
|
+
id: chat2.id,
|
|
4682
|
+
firstSeenAt: known?.firstSeenAt ?? at2,
|
|
4683
|
+
lastSeenAt: at2
|
|
4684
|
+
});
|
|
4685
|
+
}
|
|
4686
|
+
this.#write({ ...this.#read(), chats: [...byId.values()] });
|
|
4687
|
+
}
|
|
4688
|
+
#read() {
|
|
4689
|
+
if (!existsSync(this.#path))
|
|
4690
|
+
return {};
|
|
4691
|
+
try {
|
|
4692
|
+
const parsed = JSON.parse(readFileSync(this.#path, "utf8"));
|
|
4693
|
+
return parsed && typeof parsed === "object" ? parsed : {};
|
|
4694
|
+
} catch {
|
|
4695
|
+
return {};
|
|
4696
|
+
}
|
|
4697
|
+
}
|
|
4698
|
+
#write(file) {
|
|
4699
|
+
writeSecurely(this.#path, `${JSON.stringify(file, null, 2)}
|
|
4700
|
+
`, 384);
|
|
4701
|
+
}
|
|
4702
|
+
};
|
|
4703
|
+
var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
4704
|
+
const directory = botsDirectory(app, env);
|
|
4705
|
+
if (!existsSync(directory))
|
|
4706
|
+
return [];
|
|
4707
|
+
return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
4708
|
+
}, "registryProfiles");
|
|
4709
|
+
|
|
4710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
4711
|
+
import { readFileSync as readFileSync2 } from "node:fs";
|
|
4712
|
+
|
|
4713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
4714
|
+
var REPAIR_WORDS = {
|
|
4715
|
+
byte_order_mark: "an invisible byte-order mark at the start",
|
|
4716
|
+
comment: "a comment, which JSON does not allow",
|
|
4717
|
+
trailing_comma: "a comma before a closing bracket",
|
|
4718
|
+
missing_comma: "a missing comma",
|
|
4719
|
+
unquoted_key: "a key without double quotes",
|
|
4720
|
+
single_quotes: "text in single quotes",
|
|
4721
|
+
missing_closer: "the file stops before its closing brackets \u2014 whatever followed this line was already lost"
|
|
4722
|
+
};
|
|
4723
|
+
var GiveUp = class {
|
|
4724
|
+
static {
|
|
4725
|
+
__name(this, "GiveUp");
|
|
4726
|
+
}
|
|
4727
|
+
at;
|
|
4728
|
+
why;
|
|
4729
|
+
constructor(at2, why) {
|
|
4730
|
+
this.at = at2;
|
|
4731
|
+
this.why = why;
|
|
4732
|
+
}
|
|
4733
|
+
};
|
|
4734
|
+
var NUMBER = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/;
|
|
4735
|
+
var LITERAL = /^(true|false|null)/;
|
|
4736
|
+
var KEY = /^[A-Za-z_$][\w$.-]*/;
|
|
4737
|
+
var ENDS_VALUE = /^[\s,\]}/]?$/;
|
|
4738
|
+
var repairConfigText = /* @__PURE__ */ __name((text5) => {
|
|
4739
|
+
try {
|
|
4740
|
+
JSON.parse(text5);
|
|
4741
|
+
return { state: "valid" };
|
|
4742
|
+
} catch {
|
|
4743
|
+
}
|
|
4744
|
+
const fixes = [];
|
|
4745
|
+
const lineAt = /* @__PURE__ */ __name((offset) => text5.slice(0, offset).split("\n").length, "lineAt");
|
|
4746
|
+
const fix = /* @__PURE__ */ __name((kind2, offset) => fixes.push({ kind: kind2, line: lineAt(offset) }), "fix");
|
|
4747
|
+
const giveUp = /* @__PURE__ */ __name((why, offset = at2) => {
|
|
4748
|
+
throw new GiveUp(offset, why);
|
|
4749
|
+
}, "giveUp");
|
|
4750
|
+
let at2 = 0;
|
|
4751
|
+
let truncated = false;
|
|
4752
|
+
let last = "open";
|
|
4753
|
+
let lastEnd = 0;
|
|
4754
|
+
const previous = /* @__PURE__ */ __name(() => last, "previous");
|
|
4755
|
+
const skip = /* @__PURE__ */ __name(() => {
|
|
4756
|
+
for (; ; ) {
|
|
4757
|
+
while (/\s/.test(text5[at2] ?? ""))
|
|
4758
|
+
at2++;
|
|
4759
|
+
if (text5.startsWith("//", at2)) {
|
|
4760
|
+
fix("comment", at2);
|
|
4761
|
+
while (at2 < text5.length && text5[at2] !== "\n")
|
|
4762
|
+
at2++;
|
|
4763
|
+
} else if (text5.startsWith("/*", at2)) {
|
|
4764
|
+
const end = text5.indexOf("*/", at2 + 2);
|
|
4765
|
+
if (end < 0)
|
|
4766
|
+
giveUp("a /* comment is never closed");
|
|
4767
|
+
fix("comment", at2);
|
|
4768
|
+
at2 = end + 2;
|
|
4769
|
+
} else
|
|
4770
|
+
return;
|
|
4771
|
+
}
|
|
4772
|
+
}, "skip");
|
|
4773
|
+
const string2 = /* @__PURE__ */ __name(() => {
|
|
4774
|
+
const quote = text5[at2];
|
|
4775
|
+
const start = at2;
|
|
4776
|
+
if (quote === "'")
|
|
4777
|
+
fix("single_quotes", at2);
|
|
4778
|
+
at2++;
|
|
4779
|
+
let body = "";
|
|
4780
|
+
for (; ; ) {
|
|
4781
|
+
if (at2 >= text5.length)
|
|
4782
|
+
giveUp("the file stops inside a quoted text", start);
|
|
4783
|
+
const char = text5[at2];
|
|
4784
|
+
if (char === quote)
|
|
4785
|
+
break;
|
|
4786
|
+
if (text5.charCodeAt(at2) < 32)
|
|
4787
|
+
giveUp("a line break inside a quoted text");
|
|
4788
|
+
if (char === "\\") {
|
|
4789
|
+
const next = text5[at2 + 1] ?? "";
|
|
4790
|
+
if (quote === "'" && next === "'")
|
|
4791
|
+
body += "'";
|
|
4792
|
+
else if (/^["\\/bfnrt]$/.test(next))
|
|
4793
|
+
body += `\\${next}`;
|
|
4794
|
+
else if (next === "u" && /^[0-9a-fA-F]{4}$/.test(text5.slice(at2 + 2, at2 + 6))) {
|
|
4795
|
+
body += text5.slice(at2, at2 + 6);
|
|
4796
|
+
at2 += 4;
|
|
4797
|
+
} else
|
|
4798
|
+
giveUp("an escape JSON has no meaning for");
|
|
4799
|
+
at2 += 2;
|
|
4800
|
+
continue;
|
|
4801
|
+
}
|
|
4802
|
+
body += char === '"' ? '\\"' : char;
|
|
4803
|
+
at2++;
|
|
4804
|
+
}
|
|
4805
|
+
at2++;
|
|
4806
|
+
return JSON.parse(`"${body}"`);
|
|
4807
|
+
}, "string");
|
|
4808
|
+
const key = /* @__PURE__ */ __name(() => {
|
|
4809
|
+
const char = text5[at2] ?? "";
|
|
4810
|
+
if (char === '"' || char === "'")
|
|
4811
|
+
return string2();
|
|
4812
|
+
const word = KEY.exec(text5.slice(at2))?.[0];
|
|
4813
|
+
if (!word)
|
|
4814
|
+
return giveUp("something other than a key where a key should be");
|
|
4815
|
+
fix("unquoted_key", at2);
|
|
4816
|
+
at2 += word.length;
|
|
4817
|
+
return word;
|
|
4818
|
+
}, "key");
|
|
4819
|
+
const scalar = /* @__PURE__ */ __name(() => {
|
|
4820
|
+
const char = text5[at2] ?? "";
|
|
4821
|
+
if (char === '"' || char === "'")
|
|
4822
|
+
return { json: JSON.stringify(string2()) };
|
|
4823
|
+
const word = (NUMBER.exec(text5.slice(at2)) ?? LITERAL.exec(text5.slice(at2)))?.[0];
|
|
4824
|
+
if (!word || !ENDS_VALUE.test(text5[at2 + word.length] ?? ""))
|
|
4825
|
+
return giveUp("a value that is not JSON \u2014 text needs quotes, and only true, false and null go without");
|
|
4826
|
+
if (at2 + word.length === text5.length && NUMBER.test(word))
|
|
4827
|
+
giveUp("the file stops inside a number");
|
|
4828
|
+
at2 += word.length;
|
|
4829
|
+
return { json: word };
|
|
4830
|
+
}, "scalar");
|
|
4831
|
+
const members = /* @__PURE__ */ __name((close, one) => {
|
|
4832
|
+
const out = [];
|
|
4833
|
+
at2++;
|
|
4834
|
+
last = "open";
|
|
4835
|
+
let comma = -1;
|
|
4836
|
+
for (; ; ) {
|
|
4837
|
+
skip();
|
|
4838
|
+
if (truncated)
|
|
4839
|
+
return out;
|
|
4840
|
+
if (at2 >= text5.length) {
|
|
4841
|
+
if (previous() === "close")
|
|
4842
|
+
giveUp("the file stops after a closing bracket, so which brackets are missing has two readings");
|
|
4843
|
+
if (previous() === "comma")
|
|
4844
|
+
fix("trailing_comma", comma);
|
|
4845
|
+
fix("missing_closer", text5.length);
|
|
4846
|
+
truncated = true;
|
|
4847
|
+
return out;
|
|
4848
|
+
}
|
|
4849
|
+
const char = text5[at2];
|
|
4850
|
+
if (char === close) {
|
|
4851
|
+
if (previous() === "comma")
|
|
4852
|
+
fix("trailing_comma", comma);
|
|
4853
|
+
at2++;
|
|
4854
|
+
last = "close";
|
|
4855
|
+
return out;
|
|
4856
|
+
}
|
|
4857
|
+
if (char === "}" || char === "]")
|
|
4858
|
+
giveUp(`a ${char} where ${close} should close`);
|
|
4859
|
+
if (char === ",") {
|
|
4860
|
+
if (previous() !== "value" && previous() !== "close")
|
|
4861
|
+
giveUp("a comma with nothing before it");
|
|
4862
|
+
comma = at2;
|
|
4863
|
+
at2++;
|
|
4864
|
+
last = "comma";
|
|
4865
|
+
continue;
|
|
4866
|
+
}
|
|
4867
|
+
if (previous() === "value" || previous() === "close") {
|
|
4868
|
+
if (lineAt(at2) === lineAt(lastEnd))
|
|
4869
|
+
giveUp("two entries on one line with no comma between them");
|
|
4870
|
+
fix("missing_comma", lastEnd);
|
|
4871
|
+
}
|
|
4872
|
+
out.push(one());
|
|
4873
|
+
}
|
|
4874
|
+
}, "members");
|
|
4875
|
+
const value = /* @__PURE__ */ __name(() => {
|
|
4876
|
+
const char = text5[at2] ?? "";
|
|
4877
|
+
let node;
|
|
4878
|
+
if (char === "{") {
|
|
4879
|
+
const seen = /* @__PURE__ */ new Set();
|
|
4880
|
+
node = {
|
|
4881
|
+
object: members("}", () => {
|
|
4882
|
+
const start = at2;
|
|
4883
|
+
const name = key();
|
|
4884
|
+
if (seen.has(name))
|
|
4885
|
+
giveUp("a key appears twice in one object", start);
|
|
4886
|
+
seen.add(name);
|
|
4887
|
+
skip();
|
|
4888
|
+
if (at2 >= text5.length)
|
|
4889
|
+
giveUp("the file stops after a key, before its value");
|
|
4890
|
+
if (text5[at2] !== ":")
|
|
4891
|
+
giveUp("a key with no colon after it");
|
|
4892
|
+
at2++;
|
|
4893
|
+
skip();
|
|
4894
|
+
if (at2 >= text5.length)
|
|
4895
|
+
giveUp("the file stops after a key, before its value");
|
|
4896
|
+
return [name, value()];
|
|
4897
|
+
})
|
|
4898
|
+
};
|
|
4899
|
+
} else if (char === "[") {
|
|
4900
|
+
node = {
|
|
4901
|
+
array: members("]", () => {
|
|
4902
|
+
return value();
|
|
4903
|
+
})
|
|
4904
|
+
};
|
|
4905
|
+
} else
|
|
4906
|
+
node = scalar();
|
|
4907
|
+
if (!truncated) {
|
|
4908
|
+
last = "json" in node ? "value" : "close";
|
|
4909
|
+
lastEnd = at2;
|
|
4910
|
+
}
|
|
4911
|
+
return node;
|
|
4912
|
+
}, "value");
|
|
4913
|
+
try {
|
|
4914
|
+
if (text5.includes("\0") || text5.includes(String.fromCharCode(65533)))
|
|
4915
|
+
giveUp("the file is not text", 0);
|
|
4916
|
+
if (text5.charCodeAt(0) === 65279) {
|
|
4917
|
+
fix("byte_order_mark", 0);
|
|
4918
|
+
at2 = 1;
|
|
4919
|
+
}
|
|
4920
|
+
skip();
|
|
4921
|
+
if (text5[at2] !== "{")
|
|
4922
|
+
giveUp(at2 >= text5.length ? "the file is empty" : "the file does not start with {");
|
|
4923
|
+
const root = value();
|
|
4924
|
+
skip();
|
|
4925
|
+
if (at2 < text5.length)
|
|
4926
|
+
giveUp("more text after the closing }");
|
|
4927
|
+
const repaired = `${serialise(root, "")}
|
|
4928
|
+
`;
|
|
4929
|
+
JSON.parse(repaired);
|
|
4930
|
+
return { state: "repaired", text: repaired, fixes };
|
|
4931
|
+
} catch (error) {
|
|
4932
|
+
if (!(error instanceof GiveUp))
|
|
4933
|
+
throw error;
|
|
4934
|
+
const before = text5.slice(0, error.at).split("\n");
|
|
4935
|
+
return {
|
|
4936
|
+
state: "refused",
|
|
4937
|
+
line: before.length,
|
|
4938
|
+
column: (before.at(-1)?.length ?? 0) + 1,
|
|
4939
|
+
why: error.why
|
|
4940
|
+
};
|
|
4941
|
+
}
|
|
4942
|
+
}, "repairConfigText");
|
|
4943
|
+
var serialise = /* @__PURE__ */ __name((node, indent) => {
|
|
4944
|
+
if ("json" in node)
|
|
4945
|
+
return node.json;
|
|
4946
|
+
const inner = `${indent} `;
|
|
4947
|
+
const parts = "object" in node ? node.object.map(([name, item]) => `${inner}${JSON.stringify(name)}: ${serialise(item, inner)}`) : node.array.map((item) => `${inner}${serialise(item, inner)}`);
|
|
4948
|
+
const [open, close] = "object" in node ? ["{", "}"] : ["[", "]"];
|
|
4949
|
+
return parts.length === 0 ? `${open}${close}` : `${open}
|
|
4950
|
+
${parts.join(",\n")}
|
|
4951
|
+
${indent}${close}`;
|
|
4952
|
+
}, "serialise");
|
|
4953
|
+
|
|
4954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
4617
4955
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
4618
4956
|
var SECTIONS = ["personal", "bot"];
|
|
4619
4957
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -4860,17 +5198,22 @@ var withoutPath = /* @__PURE__ */ __name((raw, at2) => {
|
|
|
4860
5198
|
}, "withoutPath");
|
|
4861
5199
|
var withoutSetting = /* @__PURE__ */ __name((raw, setting2) => withoutPath(raw, settingPathOf(setting2)), "withoutSetting");
|
|
4862
5200
|
var publicIssue = /* @__PURE__ */ __name(({ at: _, ...issue }) => issue, "publicIssue");
|
|
5201
|
+
var fixVerb = /* @__PURE__ */ __name((issue) => issue.kind === "invalid_json" ? "repair" : "remove", "fixVerb");
|
|
4863
5202
|
var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
|
|
4864
5203
|
const [first2] = issues;
|
|
4865
5204
|
if (!first2)
|
|
4866
5205
|
return "";
|
|
4867
5206
|
const more = issues.length - 1;
|
|
4868
|
-
return `${first2.file}: ${first2.what}` + (first2.fix ? ` \u2014
|
|
5207
|
+
return `${first2.file}: ${first2.what}` + (first2.fix ? ` \u2014 ${fixVerb(first2)} it with \`${first2.fix}\`` : "") + (more === 0 ? "" : ` (and ${more} more problem${more === 1 ? "" : "s"} \u2014 \`${doctor}\` lists them all)`);
|
|
4869
5208
|
}, "issueMessage");
|
|
4870
|
-
var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions }) => {
|
|
5209
|
+
var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions, repair = true }) => {
|
|
4871
5210
|
const parsed = parseConfigText(text5, file);
|
|
4872
|
-
if ("issue" in parsed)
|
|
4873
|
-
|
|
5211
|
+
if ("issue" in parsed) {
|
|
5212
|
+
const issue = publicIssue(parsed.issue);
|
|
5213
|
+
if (repair && repairConfigText(text5).state === "repaired")
|
|
5214
|
+
issue.fix = `${tool} config repair`;
|
|
5215
|
+
return { issues: [issue], config: void 0 };
|
|
5216
|
+
}
|
|
4874
5217
|
if (!isNode(parsed.raw))
|
|
4875
5218
|
return { issues: [wholeFile(file, "the file must hold a JSON object")], config: void 0 };
|
|
4876
5219
|
const context2 = { file, tool };
|
|
@@ -4883,7 +5226,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
|
|
|
4883
5226
|
var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
|
|
4884
5227
|
var readConfigText = /* @__PURE__ */ __name((path2) => {
|
|
4885
5228
|
try {
|
|
4886
|
-
return { text:
|
|
5229
|
+
return { text: readFileSync2(path2, "utf8") };
|
|
4887
5230
|
} catch (error) {
|
|
4888
5231
|
const code = error.code;
|
|
4889
5232
|
if (code === "ENOENT")
|
|
@@ -4903,20 +5246,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
4903
5246
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
4904
5247
|
}, "readConfigFile");
|
|
4905
5248
|
|
|
4906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4907
|
-
import { existsSync, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
4908
|
-
import { dirname, join } from "node:path";
|
|
5249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5250
|
+
import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
5251
|
+
import { dirname, join as join2 } from "node:path";
|
|
4909
5252
|
var DEFAULT_CONFIG = {
|
|
4910
5253
|
defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
|
|
4911
5254
|
profiles: {}
|
|
4912
5255
|
};
|
|
4913
5256
|
function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
4914
|
-
if (
|
|
5257
|
+
if (existsSync2(path2))
|
|
4915
5258
|
return;
|
|
4916
5259
|
const directory = dirname(path2);
|
|
4917
5260
|
mkdirSync(directory, { recursive: true, mode: 448 });
|
|
4918
|
-
const temporary = mkdtempSync(
|
|
4919
|
-
const candidate =
|
|
5261
|
+
const temporary = mkdtempSync(join2(directory, ".config-"));
|
|
5262
|
+
const candidate = join2(temporary, "config.json");
|
|
4920
5263
|
try {
|
|
4921
5264
|
writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
|
|
4922
5265
|
`, { flag: "wx", mode: 384 });
|
|
@@ -4932,30 +5275,63 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
4932
5275
|
}
|
|
4933
5276
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
4934
5277
|
|
|
4935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4936
|
-
import { existsSync as
|
|
4937
|
-
import { join as
|
|
4938
|
-
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) =>
|
|
5278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
5279
|
+
import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
5280
|
+
import { join as join3 } from "node:path";
|
|
5281
|
+
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
4939
5282
|
var rememberAccount = /* @__PURE__ */ __name((app, profile, id6, env) => writeSecurely(accountFileFor(app, profile, env), `${JSON.stringify({ account: id6 })}
|
|
4940
5283
|
`, 384), "rememberAccount");
|
|
4941
5284
|
var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
|
|
4942
5285
|
try {
|
|
4943
|
-
const { account: account2 } = JSON.parse(
|
|
5286
|
+
const { account: account2 } = JSON.parse(readFileSync3(accountFileFor(app, profile, env), "utf8"));
|
|
4944
5287
|
return typeof account2 === "string" ? { provider, account: account2 } : void 0;
|
|
4945
5288
|
} catch {
|
|
4946
5289
|
return void 0;
|
|
4947
5290
|
}
|
|
4948
5291
|
}, "recalledAccount");
|
|
4949
5292
|
var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
4950
|
-
const dir =
|
|
4951
|
-
if (!
|
|
5293
|
+
const dir = join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts");
|
|
5294
|
+
if (!existsSync3(dir))
|
|
4952
5295
|
return [];
|
|
4953
|
-
return
|
|
5296
|
+
return readdirSync2(dir).filter((name) => name.endsWith(".json")).map((name) => name.slice(0, -".json".length));
|
|
4954
5297
|
}, "profilesWithAccounts");
|
|
4955
5298
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4956
5299
|
|
|
4957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4958
|
-
|
|
5300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
5301
|
+
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5302
|
+
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
5303
|
+
const path2 = key.split(".");
|
|
5304
|
+
const leaf = path2.pop();
|
|
5305
|
+
return { node: path2.reduce((node, part) => isNode2(node) ? node[part] : void 0, config), leaf };
|
|
5306
|
+
}, "parentOf");
|
|
5307
|
+
var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
5308
|
+
if (raw !== void 0 && !isNode2(raw))
|
|
5309
|
+
return { config: raw, added: [] };
|
|
5310
|
+
const config = raw === void 0 ? {} : structuredClone(raw);
|
|
5311
|
+
const added = [];
|
|
5312
|
+
for (const setting2 of declared) {
|
|
5313
|
+
const { node, leaf } = parentOf(config, setting2.key);
|
|
5314
|
+
if (!isNode2(node) || Object.hasOwn(node, leaf))
|
|
5315
|
+
continue;
|
|
5316
|
+
node[leaf] = setting2.default;
|
|
5317
|
+
added.push(setting2.key);
|
|
5318
|
+
}
|
|
5319
|
+
return { config, added };
|
|
5320
|
+
}, "withSettingDefaults");
|
|
5321
|
+
var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((setting2) => {
|
|
5322
|
+
const { node, leaf } = isNode2(raw) ? parentOf(raw, setting2.key) : { node: void 0, leaf: "" };
|
|
5323
|
+
const written = isNode2(node) && Object.hasOwn(node, leaf);
|
|
5324
|
+
return {
|
|
5325
|
+
setting: setting2.key,
|
|
5326
|
+
value: written ? node[leaf] : setting2.default,
|
|
5327
|
+
default: setting2.default,
|
|
5328
|
+
from: written ? "config file" : "default",
|
|
5329
|
+
description: setting2.description
|
|
5330
|
+
};
|
|
5331
|
+
}), "settingRows");
|
|
5332
|
+
|
|
5333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5334
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
4959
5335
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
4960
5336
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
4961
5337
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5019,12 +5395,73 @@ var MESSENGER_ONLY_SETTINGS = [
|
|
|
5019
5395
|
"history_dialog_days",
|
|
5020
5396
|
"history_group_days",
|
|
5021
5397
|
"history_group_members_max",
|
|
5022
|
-
"read_other_bots"
|
|
5398
|
+
"read_other_bots",
|
|
5399
|
+
"speech_model",
|
|
5400
|
+
"picture_search"
|
|
5023
5401
|
];
|
|
5024
5402
|
var SHARED_DEFAULTS_ONLY = {
|
|
5025
5403
|
update_check: optional(flag),
|
|
5026
5404
|
skill_hint: optional(flag)
|
|
5027
5405
|
};
|
|
5406
|
+
var SHARED_SETTINGS = [
|
|
5407
|
+
{ key: "limit", default: DEFAULT_LIMIT, description: "how many items a list shows at once" },
|
|
5408
|
+
{ key: "keep_runs_for_days", default: DEFAULT_KEEP_RUNS_FOR_DAYS, description: "days a run is kept" },
|
|
5409
|
+
{
|
|
5410
|
+
key: "sends_per_hour",
|
|
5411
|
+
default: DEFAULT_SENDS_PER_HOUR,
|
|
5412
|
+
description: "the most messages an account sends in an hour; a bot has none unless its section sets one"
|
|
5413
|
+
},
|
|
5414
|
+
{ key: "update_check", default: true, description: "check once a day for a newer version" },
|
|
5415
|
+
{
|
|
5416
|
+
key: "skill_hint",
|
|
5417
|
+
default: true,
|
|
5418
|
+
description: "tell an agent once a day that `skill install` would give it this tool's guide"
|
|
5419
|
+
},
|
|
5420
|
+
{ key: "record", default: true, description: "keep every run in runs list; false keeps failed runs only" },
|
|
5421
|
+
{
|
|
5422
|
+
key: "record_input",
|
|
5423
|
+
default: true,
|
|
5424
|
+
description: `keep what was typed in a run's command line: true, false, or "failed" for failed runs only`
|
|
5425
|
+
},
|
|
5426
|
+
{
|
|
5427
|
+
key: "keep_successful_runs_for_days",
|
|
5428
|
+
default: KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
5429
|
+
description: "days a successful run is kept"
|
|
5430
|
+
},
|
|
5431
|
+
{ key: "runs_size_limit_mb", default: RUNS_SIZE_LIMIT_MB, description: "the most megabytes all runs may take" },
|
|
5432
|
+
{ key: "sender_colors", default: false, description: "color each sender's name in a conversation" },
|
|
5433
|
+
{ key: "search_catch_up", default: false, description: "prepare local search after a gaps repair" },
|
|
5434
|
+
{
|
|
5435
|
+
key: "history_dialog_days",
|
|
5436
|
+
default: DEFAULT_HISTORY_LIMITS.dialogDays,
|
|
5437
|
+
description: "days of a one-to-one chat's pushed history the store keeps"
|
|
5438
|
+
},
|
|
5439
|
+
{
|
|
5440
|
+
key: "history_group_days",
|
|
5441
|
+
default: DEFAULT_HISTORY_LIMITS.groupDays,
|
|
5442
|
+
description: "days of a group's pushed history the store keeps"
|
|
5443
|
+
},
|
|
5444
|
+
{
|
|
5445
|
+
key: "history_group_members_max",
|
|
5446
|
+
default: DEFAULT_HISTORY_LIMITS.groupMembersMax,
|
|
5447
|
+
description: "a group with more people than this keeps no pushed history"
|
|
5448
|
+
},
|
|
5449
|
+
{
|
|
5450
|
+
key: "picture_search",
|
|
5451
|
+
default: false,
|
|
5452
|
+
description: "search and images embed read the pictures themselves, with a model on this computer"
|
|
5453
|
+
},
|
|
5454
|
+
{
|
|
5455
|
+
key: "search_reranker",
|
|
5456
|
+
default: DEFAULT_RERANK_MODEL,
|
|
5457
|
+
description: "the reranker that orders search's first hits, or off"
|
|
5458
|
+
},
|
|
5459
|
+
{
|
|
5460
|
+
key: "embedding_provider",
|
|
5461
|
+
default: AI_DEFAULTS.embeddingProvider,
|
|
5462
|
+
description: "local or openai: what turns text into vectors for search by meaning"
|
|
5463
|
+
}
|
|
5464
|
+
];
|
|
5028
5465
|
var NONE_NAMED = "none named";
|
|
5029
5466
|
var NO_PROFILE = "default";
|
|
5030
5467
|
var namedProfile = /* @__PURE__ */ __name((settings) => settings.sources?.profile === NONE_NAMED ? void 0 : settings.profile, "namedProfile");
|
|
@@ -5077,12 +5514,14 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5077
5514
|
const defaultsOnlyKeys = Object.keys(defaultsOnly);
|
|
5078
5515
|
const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
|
|
5079
5516
|
const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting2) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting2) || app.sends === true && setting2 === "sends_per_hour");
|
|
5517
|
+
const readSchema = extension.schema ?? schema2;
|
|
5518
|
+
const declaredSettings = [...SHARED_SETTINGS, ...extension.settings ?? []].filter(({ key, default: value }) => allSettings.includes(key) && safeParse(readSchema, { defaults: { [key]: value } }).success).map((setting2) => ({ ...setting2, key: `defaults.${setting2.key}` }));
|
|
5519
|
+
const withDefaults = /* @__PURE__ */ __name((raw, except = []) => withSettingDefaults(isScope(raw) && !Object.hasOwn(raw, "defaults") ? { ...raw, defaults: {} } : raw, declaredSettings.filter(({ key }) => !except.includes(key))), "withDefaults");
|
|
5080
5520
|
const PROFILE = envName(app, "PROFILE");
|
|
5081
5521
|
const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
|
|
5082
5522
|
const TIMEOUT = envName(app, "TIMEOUT");
|
|
5083
5523
|
const REQUESTS_PER_MINUTE = envName(app, "REQUESTS_PER_MINUTE");
|
|
5084
5524
|
const configPathFor = /* @__PURE__ */ __name(({ env = process.env, configDir }) => configFilePath(configDir ?? resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).config), "configPathFor");
|
|
5085
|
-
const readSchema = extension.schema ?? schema2;
|
|
5086
5525
|
const context2 = /* @__PURE__ */ __name((file) => ({ file, tool: app.command }), "context");
|
|
5087
5526
|
const loadConfig = /* @__PURE__ */ __name((path2) => {
|
|
5088
5527
|
const read = readConfigText(path2);
|
|
@@ -5090,7 +5529,12 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5090
5529
|
return { config: { profiles: {} }, issues: [read.issue] };
|
|
5091
5530
|
if (read.text === void 0)
|
|
5092
5531
|
return { config: { profiles: {} }, issues: [] };
|
|
5093
|
-
const { config, issues } = checkConfigText(read.text, {
|
|
5532
|
+
const { config, issues } = checkConfigText(read.text, {
|
|
5533
|
+
file: path2,
|
|
5534
|
+
tool: app.command,
|
|
5535
|
+
schema: readSchema,
|
|
5536
|
+
repair: extension.configRepair !== false
|
|
5537
|
+
});
|
|
5094
5538
|
return { config: config ?? { profiles: {} }, issues };
|
|
5095
5539
|
}, "loadConfig");
|
|
5096
5540
|
const locked = /* @__PURE__ */ __name((profile, lock) => {
|
|
@@ -5113,12 +5557,21 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5113
5557
|
throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
|
|
5114
5558
|
}, "unnamed");
|
|
5115
5559
|
const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
|
|
5560
|
+
const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
|
|
5561
|
+
const accountsOf = /* @__PURE__ */ __name((config, env, bots) => {
|
|
5562
|
+
const personal = /* @__PURE__ */ new Set([
|
|
5563
|
+
...Object.keys(config.personal?.profiles ?? {}),
|
|
5564
|
+
...profilesWithAccounts(app, env),
|
|
5565
|
+
...extension.profiles?.(env) ?? []
|
|
5566
|
+
]);
|
|
5567
|
+
return profilesOf(config, env).filter((name) => !bots.includes(name) || personal.has(name));
|
|
5568
|
+
}, "accountsOf");
|
|
5116
5569
|
const resolveSettings = /* @__PURE__ */ __name((flags = {}, options = {}) => {
|
|
5117
5570
|
const env = options.env ?? process.env;
|
|
5118
5571
|
const configPath = configPathFor(options);
|
|
5119
5572
|
try {
|
|
5120
5573
|
if (!options.readOnly)
|
|
5121
|
-
ensureDefaultConfig(configPath);
|
|
5574
|
+
ensureDefaultConfig(configPath, withDefaults(DEFAULT_CONFIG).config);
|
|
5122
5575
|
} catch (error) {
|
|
5123
5576
|
throw new CliError("configuration_error", error instanceof Error ? error.message : String(error));
|
|
5124
5577
|
}
|
|
@@ -5134,6 +5587,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5134
5587
|
], void 0);
|
|
5135
5588
|
const profile = locked(named2.value === void 0 ? unnamed(config, env, options.needsProfile !== false) : { value: named2.value, from: named2.from }, lock);
|
|
5136
5589
|
const kind2 = options.kind ?? "personal";
|
|
5590
|
+
const bots = botsOf(config, env);
|
|
5137
5591
|
const name = usableProfileName(profile.value);
|
|
5138
5592
|
const configured = config.profiles[name] ?? {};
|
|
5139
5593
|
const shared = config.defaults ?? {};
|
|
@@ -5225,9 +5679,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5225
5679
|
updateCheck: updateCheck.value,
|
|
5226
5680
|
skillHint: skillHint.value,
|
|
5227
5681
|
configPath,
|
|
5228
|
-
configFound:
|
|
5682
|
+
configFound: existsSync4(configPath),
|
|
5229
5683
|
configuredProfiles: namedProfiles(config),
|
|
5230
5684
|
profilesHere: profilesOf(config, env),
|
|
5685
|
+
accountProfiles: accountsOf(config, env, bots),
|
|
5686
|
+
botProfiles: bots,
|
|
5231
5687
|
sources: {
|
|
5232
5688
|
...ai.sources,
|
|
5233
5689
|
profile: profile.from,
|
|
@@ -5296,7 +5752,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5296
5752
|
throw new CliError("validation_error", `${setting2} has no problem to remove \u2014 name the profile, or add --defaults, to unset a setting`);
|
|
5297
5753
|
if (!known && valueAt(raw, at2) === void 0)
|
|
5298
5754
|
throw new CliError("validation_error", `no setting called "${setting2}" \u2014 one of: ${allSettings.join(", ")}`);
|
|
5299
|
-
saveConfigFile(path2, withoutPath(raw, at2).config);
|
|
5755
|
+
saveConfigFile(path2, withDefaults(withoutPath(raw, at2).config, [at2.join(".")]).config);
|
|
5300
5756
|
return null;
|
|
5301
5757
|
}
|
|
5302
5758
|
if (!known)
|
|
@@ -5310,20 +5766,41 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5310
5766
|
if (kind2 !== "bot" && botOnlyKeys.includes(setting2)) {
|
|
5311
5767
|
throw new CliError("validation_error", `${setting2} is a bot's setting \u2014 add --bot`);
|
|
5312
5768
|
}
|
|
5313
|
-
const changed = structuredClone(raw);
|
|
5314
|
-
setAt(changed, at2, level2 === void 0 ? parseValue(value) : value.trim());
|
|
5315
5769
|
const had = new Set(before.map((issue) => issue.at.join(".")));
|
|
5316
|
-
const
|
|
5770
|
+
const tried = /* @__PURE__ */ __name((typed2) => {
|
|
5771
|
+
const changed2 = structuredClone(raw);
|
|
5772
|
+
setAt(changed2, at2, typed2);
|
|
5773
|
+
const added2 = schemaIssues(changed2, readSchema, context2(path2)).find((issue) => !had.has(issue.at.join(".")) || issue.at.join(".") === at2.join("."));
|
|
5774
|
+
return { changed: changed2, added: added2 };
|
|
5775
|
+
}, "tried");
|
|
5776
|
+
const parsed = level2 === void 0 ? parseValue(value) : value.trim();
|
|
5777
|
+
let { changed, added } = tried(parsed);
|
|
5778
|
+
if (added && typeof parsed !== "string") {
|
|
5779
|
+
const asText = tried(value.trim());
|
|
5780
|
+
if (!asText.added)
|
|
5781
|
+
({ changed, added } = asText);
|
|
5782
|
+
}
|
|
5317
5783
|
if (added)
|
|
5318
5784
|
throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
|
|
5319
5785
|
const checked = safeParse(readSchema, changed);
|
|
5320
|
-
saveConfigFile(path2, checked.success ? checked.output : changed);
|
|
5786
|
+
saveConfigFile(path2, withDefaults(checked.success ? checked.output : changed).config);
|
|
5321
5787
|
return valueAt(checked.success ? checked.output : changed, at2) ?? null;
|
|
5322
5788
|
}, "changeSetting");
|
|
5789
|
+
const migrate = /* @__PURE__ */ __name((path2) => {
|
|
5790
|
+
const read = readConfigFile(path2);
|
|
5791
|
+
if ("issue" in read)
|
|
5792
|
+
throw new CliError("configuration_error", issueMessage([read.issue]));
|
|
5793
|
+
const { config, added } = withDefaults(read.raw);
|
|
5794
|
+
if (added.length > 0)
|
|
5795
|
+
saveConfigFile(path2, config);
|
|
5796
|
+
return added;
|
|
5797
|
+
}, "migrate");
|
|
5323
5798
|
return {
|
|
5324
5799
|
resolveSettings,
|
|
5325
5800
|
configuredProfiles,
|
|
5326
5801
|
changeSetting,
|
|
5802
|
+
migrate,
|
|
5803
|
+
declaredSettings,
|
|
5327
5804
|
allSettings,
|
|
5328
5805
|
defaultsOnlyKeys,
|
|
5329
5806
|
schema: schema2,
|
|
@@ -5364,7 +5841,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5364
5841
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5365
5842
|
}, "given");
|
|
5366
5843
|
|
|
5367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
5368
5845
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
5369
5846
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
5370
5847
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -5407,7 +5884,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
5407
5884
|
};
|
|
5408
5885
|
}, "runBudget");
|
|
5409
5886
|
|
|
5410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5411
5888
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
5412
5889
|
const { deadline, signal, app } = environmentOf(command);
|
|
5413
5890
|
const now = deadline?.();
|
|
@@ -5530,7 +6007,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
5530
6007
|
return words.join(" ");
|
|
5531
6008
|
}, "commandPath");
|
|
5532
6009
|
|
|
5533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
5534
6011
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
5535
6012
|
var FETCH = { remote: "read", local: "write" };
|
|
5536
6013
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -5566,6 +6043,30 @@ var destroysNothing = /* @__PURE__ */ __name((command) => {
|
|
|
5566
6043
|
KEPT_UNDER_LOCK.add(command);
|
|
5567
6044
|
return command;
|
|
5568
6045
|
}, "destroysNothing");
|
|
6046
|
+
var PROPOSE_COMMANDS = ["messages acknowledge", "mail findings add"];
|
|
6047
|
+
var PROPOSES = /* @__PURE__ */ new WeakSet();
|
|
6048
|
+
var proposesOnly = /* @__PURE__ */ __name((command) => {
|
|
6049
|
+
PROPOSES.add(command);
|
|
6050
|
+
return command;
|
|
6051
|
+
}, "proposesOnly");
|
|
6052
|
+
var isProposal = /* @__PURE__ */ __name((command) => {
|
|
6053
|
+
if (!PROPOSES.has(command))
|
|
6054
|
+
return false;
|
|
6055
|
+
const path2 = pathOf2(command).join(" ");
|
|
6056
|
+
return PROPOSE_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
|
|
6057
|
+
}, "isProposal");
|
|
6058
|
+
var LOCKED_AUTHORITY_COMMANDS = ["rules add"];
|
|
6059
|
+
var NARROWS = /* @__PURE__ */ new WeakSet();
|
|
6060
|
+
var narrowsUnderLock = /* @__PURE__ */ __name((command) => {
|
|
6061
|
+
NARROWS.add(command);
|
|
6062
|
+
return command;
|
|
6063
|
+
}, "narrowsUnderLock");
|
|
6064
|
+
var admittedUnderLock = /* @__PURE__ */ __name((command) => {
|
|
6065
|
+
if (!NARROWS.has(command))
|
|
6066
|
+
return false;
|
|
6067
|
+
const path2 = pathOf2(command).join(" ");
|
|
6068
|
+
return LOCKED_AUTHORITY_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
|
|
6069
|
+
}, "admittedUnderLock");
|
|
5569
6070
|
var STORE_WRITES = /* @__PURE__ */ new WeakSet();
|
|
5570
6071
|
var changesStore = /* @__PURE__ */ __name((command) => {
|
|
5571
6072
|
STORE_WRITES.add(command);
|
|
@@ -5603,7 +6104,7 @@ var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
|
|
|
5603
6104
|
}, "readsOverMcpAt");
|
|
5604
6105
|
var isStoreChange = /* @__PURE__ */ __name((command) => {
|
|
5605
6106
|
const effects = metaOf(command).effects;
|
|
5606
|
-
return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command) && writesFileNow(command);
|
|
6107
|
+
return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !isProposal(command) && !changesAuthority(command) && writesFileNow(command);
|
|
5607
6108
|
}, "isStoreChange");
|
|
5608
6109
|
var STORE_CHANGE_REFUSAL = "change the message store";
|
|
5609
6110
|
var previewFlag = /* @__PURE__ */ __name((program2) => program2.options.some((option) => option.long === "--dry-run") ? " --dry-run" : "", "previewFlag");
|
|
@@ -5651,7 +6152,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
5651
6152
|
throw readOnlyRefusal(lock, what);
|
|
5652
6153
|
}, "refuseUnderReadOnly");
|
|
5653
6154
|
|
|
5654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
5655
6156
|
var member = strictObject({
|
|
5656
6157
|
id,
|
|
5657
6158
|
name: nullable(text),
|
|
@@ -5674,7 +6175,7 @@ var member = strictObject({
|
|
|
5674
6175
|
check: optional(record(string(), unknown()))
|
|
5675
6176
|
});
|
|
5676
6177
|
|
|
5677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
5678
6179
|
var setting = optional(nullable(boolean()));
|
|
5679
6180
|
var chat = strictObject({
|
|
5680
6181
|
ref: reference,
|
|
@@ -5715,7 +6216,7 @@ var chat = strictObject({
|
|
|
5715
6216
|
members: optional(array(member))
|
|
5716
6217
|
});
|
|
5717
6218
|
|
|
5718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
5719
6220
|
var botProfile = strictObject({
|
|
5720
6221
|
name: text,
|
|
5721
6222
|
token: text,
|
|
@@ -5783,7 +6284,7 @@ var stickerInventory = strictObject({
|
|
|
5783
6284
|
url: optional(nullable(text))
|
|
5784
6285
|
});
|
|
5785
6286
|
|
|
5786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
5787
6288
|
var actionableError = objectWithRest({
|
|
5788
6289
|
code: text,
|
|
5789
6290
|
message: text,
|
|
@@ -5800,7 +6301,7 @@ var batchResult = strictObject({
|
|
|
5800
6301
|
max_error_percent: count
|
|
5801
6302
|
});
|
|
5802
6303
|
|
|
5803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
5804
6305
|
var conversationBuild = strictObject({
|
|
5805
6306
|
chat: id,
|
|
5806
6307
|
messages: count,
|
|
@@ -5825,15 +6326,15 @@ var catchUpPreparation = strictObject({
|
|
|
5825
6326
|
prepared: optional(conversationPreparation)
|
|
5826
6327
|
});
|
|
5827
6328
|
|
|
5828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
5829
6330
|
import { spawn } from "node:child_process";
|
|
5830
6331
|
import { randomBytes } from "node:crypto";
|
|
5831
|
-
import { closeSync, existsSync as
|
|
5832
|
-
import { dirname as dirname2, join as
|
|
6332
|
+
import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
6333
|
+
import { dirname as dirname2, join as join5 } from "node:path";
|
|
5833
6334
|
|
|
5834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5835
|
-
import { existsSync as
|
|
5836
|
-
import { join as
|
|
6335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
6336
|
+
import { existsSync as existsSync5, readFileSync as readFileSync4, rmSync as rmSync2 } from "node:fs";
|
|
6337
|
+
import { join as join4 } from "node:path";
|
|
5837
6338
|
var PART = /^[\w@+-][\w.@+-]{0,99}$/;
|
|
5838
6339
|
var checkpointPath = /* @__PURE__ */ __name((state, profile, job2) => {
|
|
5839
6340
|
for (const part of [profile, job2]) {
|
|
@@ -5841,11 +6342,11 @@ var checkpointPath = /* @__PURE__ */ __name((state, profile, job2) => {
|
|
|
5841
6342
|
throw new CliError("validation_error", `a checkpoint is named by letters, digits, ".", "@" and "-" \u2014 not "${part}"`);
|
|
5842
6343
|
}
|
|
5843
6344
|
}
|
|
5844
|
-
return
|
|
6345
|
+
return join4(state, "checkpoints", profile, `${job2}.json`);
|
|
5845
6346
|
}, "checkpointPath");
|
|
5846
6347
|
var readCheckpoint = /* @__PURE__ */ __name((path2) => {
|
|
5847
6348
|
try {
|
|
5848
|
-
return
|
|
6349
|
+
return existsSync5(path2) ? JSON.parse(readFileSync4(path2, "utf8")) : void 0;
|
|
5849
6350
|
} catch {
|
|
5850
6351
|
return void 0;
|
|
5851
6352
|
}
|
|
@@ -5871,7 +6372,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
5871
6372
|
};
|
|
5872
6373
|
}, "progressOf");
|
|
5873
6374
|
|
|
5874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
5875
6376
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
5876
6377
|
const run = currentRun();
|
|
5877
6378
|
const trace = traceId ?? run.traceId;
|
|
@@ -5885,7 +6386,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
5885
6386
|
}));
|
|
5886
6387
|
}, "recordLogFor");
|
|
5887
6388
|
|
|
5888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
5889
6390
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
5890
6391
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
5891
6392
|
const out = openSync(log, "a", 384);
|
|
@@ -5901,23 +6402,23 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
|
5901
6402
|
closeSync(out);
|
|
5902
6403
|
}
|
|
5903
6404
|
}, "spawnDetached");
|
|
5904
|
-
var jobsDir = /* @__PURE__ */ __name((app, env) =>
|
|
5905
|
-
var jobPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
6405
|
+
var jobsDir = /* @__PURE__ */ __name((app, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
|
|
6406
|
+
var jobPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.json`), "jobPath");
|
|
5906
6407
|
var saveJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
5907
6408
|
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
5908
6409
|
writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
|
|
5909
6410
|
`, 384);
|
|
5910
6411
|
}, "saveJob");
|
|
5911
6412
|
var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
5912
|
-
if (!/^[\w-]+$/.test(id6) || !
|
|
6413
|
+
if (!/^[\w-]+$/.test(id6) || !existsSync6(jobPath(dir, id6)))
|
|
5913
6414
|
return void 0;
|
|
5914
6415
|
try {
|
|
5915
|
-
return JSON.parse(
|
|
6416
|
+
return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
|
|
5916
6417
|
} catch {
|
|
5917
6418
|
return void 0;
|
|
5918
6419
|
}
|
|
5919
6420
|
}, "readJob");
|
|
5920
|
-
var recordsPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
6421
|
+
var recordsPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.jsonl`), "recordsPath");
|
|
5921
6422
|
var tracedJob = /* @__PURE__ */ __name((env) => {
|
|
5922
6423
|
const trace = childTrace();
|
|
5923
6424
|
return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
|
|
@@ -5935,11 +6436,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
|
|
|
5935
6436
|
const job2 = readJob(dir, id6);
|
|
5936
6437
|
if (!job2)
|
|
5937
6438
|
return;
|
|
5938
|
-
const
|
|
6439
|
+
const outcome3 = stateOf(job2);
|
|
5939
6440
|
recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
|
|
5940
6441
|
event: "job.exit",
|
|
5941
6442
|
job: id6,
|
|
5942
|
-
outcome:
|
|
6443
|
+
outcome: outcome3,
|
|
5943
6444
|
...job2.error ? { errorCode: job2.error.code } : {}
|
|
5944
6445
|
});
|
|
5945
6446
|
}, "finishJob");
|
|
@@ -5954,7 +6455,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
|
5954
6455
|
if (dirname2(job2.log) === dir)
|
|
5955
6456
|
rmSync3(job2.log, { force: true });
|
|
5956
6457
|
}, "removeJob");
|
|
5957
|
-
var listJobs = /* @__PURE__ */ __name((dir) =>
|
|
6458
|
+
var listJobs = /* @__PURE__ */ __name((dir) => existsSync6(dir) ? readdirSync3(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
|
|
5958
6459
|
var jobDetails = /* @__PURE__ */ __name((job2) => ({
|
|
5959
6460
|
job: job2.id,
|
|
5960
6461
|
profile: job2.profile,
|
|
@@ -6020,7 +6521,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6020
6521
|
const startedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
6021
6522
|
const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
|
|
6022
6523
|
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
6023
|
-
const log =
|
|
6524
|
+
const log = join5(dir, `${id6}.log`);
|
|
6024
6525
|
const job2 = {
|
|
6025
6526
|
id: id6,
|
|
6026
6527
|
chat: input.chat,
|
|
@@ -6040,7 +6541,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6040
6541
|
return { job: id6, pid, chat: input.chat, log };
|
|
6041
6542
|
}, "startArchiveJob");
|
|
6042
6543
|
|
|
6043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
6044
6545
|
var problem = strictObject({ code: text, message: text });
|
|
6045
6546
|
var job = strictObject({
|
|
6046
6547
|
id,
|
|
@@ -6063,7 +6564,7 @@ var job = strictObject({
|
|
|
6063
6564
|
error: optional(problem)
|
|
6064
6565
|
});
|
|
6065
6566
|
|
|
6066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
6067
6568
|
var quoted = strictObject({
|
|
6068
6569
|
id,
|
|
6069
6570
|
sender_id: nullable(id),
|
|
@@ -6165,12 +6666,24 @@ var message = strictObject({
|
|
|
6165
6666
|
read: nullable(boolean()),
|
|
6166
6667
|
flagged: nullable(boolean()),
|
|
6167
6668
|
/** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
|
|
6168
|
-
sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) }))
|
|
6669
|
+
sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) })),
|
|
6670
|
+
/** Mail `review`: filed in the mailbox of mail sent to many. */
|
|
6671
|
+
bulk: optional(boolean()),
|
|
6672
|
+
/** Mail `review`: its List-Id, `null` when it has none. */
|
|
6673
|
+
list_id: optional(nullable(text)),
|
|
6674
|
+
/** Mail `review`: the mail rule that decided how it is stored, by its id in `rules list`; `null` when none. */
|
|
6675
|
+
rule_id: optional(nullable(number())),
|
|
6676
|
+
/** Mail `review`: the evidence fingerprint a finding cites this email by. */
|
|
6677
|
+
fingerprint: optional(pipe(text, regex(/^[a-f0-9]{64}$/))),
|
|
6678
|
+
/** Mail `review`: no earlier stored email, in any account, came from this address. */
|
|
6679
|
+
new_sender: optional(boolean()),
|
|
6680
|
+
/** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
|
|
6681
|
+
sender_identities: optional(number())
|
|
6169
6682
|
})),
|
|
6170
6683
|
provider_metadata: providerMetadata
|
|
6171
6684
|
});
|
|
6172
6685
|
|
|
6173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
6174
6687
|
var extractionItem = strictObject({
|
|
6175
6688
|
ref: reference,
|
|
6176
6689
|
attachment: count,
|
|
@@ -6203,7 +6716,7 @@ var extractionReport = strictObject({
|
|
|
6203
6716
|
cursor: optional(text)
|
|
6204
6717
|
});
|
|
6205
6718
|
|
|
6206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
6207
6720
|
var savedMessageFile = strictObject({
|
|
6208
6721
|
kind: text,
|
|
6209
6722
|
path: text,
|
|
@@ -6290,7 +6803,7 @@ var messageSyncAll = strictObject({
|
|
|
6290
6803
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
6291
6804
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
6292
6805
|
|
|
6293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
6294
6807
|
var range = strictObject({ from: number(), to: number() });
|
|
6295
6808
|
var storeChatStatus = strictObject({
|
|
6296
6809
|
chat_id: id,
|
|
@@ -6302,6 +6815,13 @@ var storeChatStatus = strictObject({
|
|
|
6302
6815
|
last_stored_at: nullable(time),
|
|
6303
6816
|
held: array(range)
|
|
6304
6817
|
});
|
|
6818
|
+
var chatCoverage = strictObject({
|
|
6819
|
+
chats: count,
|
|
6820
|
+
fetched: count,
|
|
6821
|
+
partial: count,
|
|
6822
|
+
never: count,
|
|
6823
|
+
oldest_message_at: nullable(time)
|
|
6824
|
+
});
|
|
6305
6825
|
var storeClear = strictObject({
|
|
6306
6826
|
cleared: boolean(),
|
|
6307
6827
|
dry_run: optional(literal(true)),
|
|
@@ -6381,7 +6901,7 @@ var storeJobRetry = union([
|
|
|
6381
6901
|
]);
|
|
6382
6902
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
6383
6903
|
|
|
6384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6385
6905
|
var account = strictObject({
|
|
6386
6906
|
provider: text,
|
|
6387
6907
|
id,
|
|
@@ -6391,7 +6911,7 @@ var account = strictObject({
|
|
|
6391
6911
|
scope: optional(picklist(["personal", "work"]))
|
|
6392
6912
|
});
|
|
6393
6913
|
|
|
6394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6395
6915
|
var accountSession = strictObject({
|
|
6396
6916
|
current: boolean(),
|
|
6397
6917
|
client: nullable(text),
|
|
@@ -6401,7 +6921,7 @@ var accountSession = strictObject({
|
|
|
6401
6921
|
created_at: optional(nullable(time))
|
|
6402
6922
|
});
|
|
6403
6923
|
|
|
6404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6405
6925
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6406
6926
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6407
6927
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6419,17 +6939,19 @@ var accountPrivacy = strictObject({
|
|
|
6419
6939
|
});
|
|
6420
6940
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
6421
6941
|
|
|
6422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6423
6943
|
var accountProfile = strictObject({
|
|
6424
6944
|
profile: id,
|
|
6425
6945
|
current: boolean(),
|
|
6426
6946
|
account: nullable(id),
|
|
6427
6947
|
name: nullable(text),
|
|
6428
6948
|
/** False for a profile with no session on this computer; absent when the messenger does not say. */
|
|
6429
|
-
signed_in: optional(boolean())
|
|
6949
|
+
signed_in: optional(boolean()),
|
|
6950
|
+
/** True when the same name is a bot profile too (`<tool> <profile> bot …`); absent otherwise. */
|
|
6951
|
+
bot: optional(literal(true))
|
|
6430
6952
|
});
|
|
6431
6953
|
|
|
6432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6433
6955
|
var milliseconds = pipe(number(), minValue(0));
|
|
6434
6956
|
var counterReading = strictObject({
|
|
6435
6957
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6441,7 +6963,7 @@ var counterReading = strictObject({
|
|
|
6441
6963
|
});
|
|
6442
6964
|
var selection = record(string(), unknown());
|
|
6443
6965
|
|
|
6444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6445
6967
|
var adminRow = strictObject({
|
|
6446
6968
|
ref: reference,
|
|
6447
6969
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6494,11 +7016,11 @@ var adminReport = strictObject({
|
|
|
6494
7016
|
rows: array(adminRow)
|
|
6495
7017
|
});
|
|
6496
7018
|
|
|
6497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
6498
7020
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
6499
7021
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
6500
7022
|
|
|
6501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
6502
7024
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
6503
7025
|
var attachmentBytes = strictObject({
|
|
6504
7026
|
ref: reference,
|
|
@@ -6526,7 +7048,7 @@ var attachmentTextChange = strictObject({
|
|
|
6526
7048
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
6527
7049
|
});
|
|
6528
7050
|
|
|
6529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
6530
7052
|
var chart = strictObject({
|
|
6531
7053
|
version: literal(1),
|
|
6532
7054
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -6541,7 +7063,7 @@ var chart = strictObject({
|
|
|
6541
7063
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
6542
7064
|
});
|
|
6543
7065
|
|
|
6544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
6545
7067
|
var named = strictObject({
|
|
6546
7068
|
id,
|
|
6547
7069
|
title: nullable(text),
|
|
@@ -6564,7 +7086,7 @@ var folder = strictObject({
|
|
|
6564
7086
|
excluded_chats: optional(array(named))
|
|
6565
7087
|
});
|
|
6566
7088
|
|
|
6567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
6568
7090
|
var inviteLink = strictObject({
|
|
6569
7091
|
link: text,
|
|
6570
7092
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -6580,7 +7102,7 @@ var inviteLink = strictObject({
|
|
|
6580
7102
|
joined_count: optional(count)
|
|
6581
7103
|
});
|
|
6582
7104
|
|
|
6583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
6584
7106
|
var operated = { operation_id: id, chat_id: id };
|
|
6585
7107
|
var group = strictObject({
|
|
6586
7108
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -6660,7 +7182,7 @@ var chatFolderOrder = strictObject({
|
|
|
6660
7182
|
folders: array(strictObject({ id, title: text }))
|
|
6661
7183
|
});
|
|
6662
7184
|
|
|
6663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
6664
7186
|
var operated2 = { operation_id: id, chat_id: id };
|
|
6665
7187
|
var chatRemoval = strictObject(operated2);
|
|
6666
7188
|
var chatMuting = strictObject({
|
|
@@ -6671,7 +7193,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
6671
7193
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
6672
7194
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
6673
7195
|
|
|
6674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
6675
7197
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
6676
7198
|
var chatEvent = strictObject({
|
|
6677
7199
|
chat_id: id,
|
|
@@ -6688,7 +7210,7 @@ var chatEvent = strictObject({
|
|
|
6688
7210
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
6689
7211
|
});
|
|
6690
7212
|
|
|
6691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
6692
7214
|
var chatMetadata = strictObject({
|
|
6693
7215
|
chat_id: id,
|
|
6694
7216
|
title: nullable(text),
|
|
@@ -6703,7 +7225,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
6703
7225
|
has_more: boolean()
|
|
6704
7226
|
});
|
|
6705
7227
|
|
|
6706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
6707
7229
|
var action = picklist(["report", "delete", "remove"]);
|
|
6708
7230
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
6709
7231
|
var chatRules = strictObject({
|
|
@@ -6740,7 +7262,7 @@ var chatModeration = strictObject({
|
|
|
6740
7262
|
}))
|
|
6741
7263
|
});
|
|
6742
7264
|
|
|
6743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
6744
7266
|
var optionalCount = optional(count);
|
|
6745
7267
|
var minutes = nullable(number());
|
|
6746
7268
|
var chatStats = strictObject({
|
|
@@ -6791,18 +7313,30 @@ var chatStats = strictObject({
|
|
|
6791
7313
|
})),
|
|
6792
7314
|
series: optional(array(strictObject({ key: text, messages: count, senders: count, joined: optionalCount, left: optionalCount })))
|
|
6793
7315
|
});
|
|
7316
|
+
var ms = nullable(pipe(number(), minValue(0)));
|
|
6794
7317
|
var taskStats = strictObject({
|
|
6795
7318
|
/** Open tasks across every row. */
|
|
6796
7319
|
open: count,
|
|
7320
|
+
created: count,
|
|
7321
|
+
closed: count,
|
|
7322
|
+
median_close_ms: ms,
|
|
7323
|
+
mean_open_age_ms: ms,
|
|
6797
7324
|
rows: array(strictObject({
|
|
6798
|
-
chat
|
|
7325
|
+
/** Rows of `--by chat` only. */
|
|
7326
|
+
chat: optional(reference),
|
|
7327
|
+
/** The chat reference, `meeting:<account>/<meeting>` or `project:<id>`. */
|
|
7328
|
+
key: text,
|
|
7329
|
+
name: nullable(text),
|
|
6799
7330
|
open: count,
|
|
7331
|
+
created: count,
|
|
7332
|
+
closed: count,
|
|
6800
7333
|
oldest_open_at: nullable(time),
|
|
6801
|
-
median_close_ms:
|
|
7334
|
+
median_close_ms: ms,
|
|
7335
|
+
mean_open_age_ms: ms
|
|
6802
7336
|
}))
|
|
6803
7337
|
});
|
|
6804
7338
|
|
|
6805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
6806
7340
|
var memberCount = strictObject({
|
|
6807
7341
|
day: pipe(text, isoDate()),
|
|
6808
7342
|
participants: nullable(count),
|
|
@@ -6825,7 +7359,7 @@ var chatTracking = strictObject({
|
|
|
6825
7359
|
tracked: boolean()
|
|
6826
7360
|
});
|
|
6827
7361
|
|
|
6828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
6829
7363
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
6830
7364
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
6831
7365
|
var profileFields = {
|
|
@@ -6863,7 +7397,7 @@ var profileFields = {
|
|
|
6863
7397
|
}))
|
|
6864
7398
|
};
|
|
6865
7399
|
|
|
6866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
6867
7401
|
var contact = strictObject({
|
|
6868
7402
|
ref: reference,
|
|
6869
7403
|
id,
|
|
@@ -6894,7 +7428,7 @@ var contact = strictObject({
|
|
|
6894
7428
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
6895
7429
|
});
|
|
6896
7430
|
|
|
6897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
6898
7432
|
var linkedIdentity = strictObject({
|
|
6899
7433
|
provider: text,
|
|
6900
7434
|
id,
|
|
@@ -6935,7 +7469,7 @@ var contactCheck = strictObject({
|
|
|
6935
7469
|
checked_at: time
|
|
6936
7470
|
});
|
|
6937
7471
|
|
|
6938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
6939
7473
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
6940
7474
|
var contextMessage = strictObject({
|
|
6941
7475
|
locator: reference,
|
|
@@ -7133,7 +7667,7 @@ var contactPreparation = strictObject({
|
|
|
7133
7667
|
})
|
|
7134
7668
|
});
|
|
7135
7669
|
|
|
7136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
7137
7671
|
var contactNote = strictObject({
|
|
7138
7672
|
id,
|
|
7139
7673
|
/** The contact, as a `contact:` reference. */
|
|
@@ -7145,13 +7679,13 @@ var contactNote = strictObject({
|
|
|
7145
7679
|
updated_at: time
|
|
7146
7680
|
});
|
|
7147
7681
|
|
|
7148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
7149
7683
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7150
7684
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
7151
7685
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
7152
7686
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
7153
7687
|
|
|
7154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
7155
7689
|
var conversationDetails = union([
|
|
7156
7690
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
7157
7691
|
message
|
|
@@ -7241,7 +7775,7 @@ var conversationHit = strictObject({
|
|
|
7241
7775
|
stale: boolean()
|
|
7242
7776
|
});
|
|
7243
7777
|
|
|
7244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
7245
7779
|
var counters = strictObject({
|
|
7246
7780
|
cutoff: time,
|
|
7247
7781
|
max_age_ms: milliseconds,
|
|
@@ -7271,7 +7805,7 @@ var counterRefresh = strictObject({
|
|
|
7271
7805
|
complete: optional(boolean())
|
|
7272
7806
|
});
|
|
7273
7807
|
|
|
7274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
7275
7809
|
var document = strictObject({
|
|
7276
7810
|
ref: reference,
|
|
7277
7811
|
id,
|
|
@@ -7286,7 +7820,7 @@ var document = strictObject({
|
|
|
7286
7820
|
owners: optional(array(text))
|
|
7287
7821
|
});
|
|
7288
7822
|
|
|
7289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
7290
7824
|
var documentLink = strictObject({
|
|
7291
7825
|
ref: reference,
|
|
7292
7826
|
url: text,
|
|
@@ -7297,7 +7831,7 @@ var documentLink = strictObject({
|
|
|
7297
7831
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
7298
7832
|
});
|
|
7299
7833
|
|
|
7300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
7301
7835
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
7302
7836
|
var contribution = strictObject({
|
|
7303
7837
|
message: evidenceMessage,
|
|
@@ -7327,17 +7861,7 @@ var retentionStay = strictObject({
|
|
|
7327
7861
|
});
|
|
7328
7862
|
var evidence = union([contribution, retentionStay]);
|
|
7329
7863
|
|
|
7330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7331
|
-
var payment = strictObject({
|
|
7332
|
-
amount: text,
|
|
7333
|
-
currency: text,
|
|
7334
|
-
direction: picklist(PAYMENT_DIRECTIONS),
|
|
7335
|
-
counterparty: nullable(reference),
|
|
7336
|
-
counterparty_name: nullable(text),
|
|
7337
|
-
due_at: nullable(text),
|
|
7338
|
-
state: picklist(PAYMENT_STATES),
|
|
7339
|
-
item: nullable(text)
|
|
7340
|
-
});
|
|
7864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
7341
7865
|
var fact = strictObject({
|
|
7342
7866
|
ref: reference,
|
|
7343
7867
|
id,
|
|
@@ -7361,15 +7885,13 @@ var fact = strictObject({
|
|
|
7361
7885
|
/** Who recorded it: the owner, or an agent whose fact waits as proposed. */
|
|
7362
7886
|
origin: picklist(["owner", "agent"]),
|
|
7363
7887
|
evidence: array(reference),
|
|
7364
|
-
/** A `payment` fact's fields. */
|
|
7365
|
-
payment: optional(nullable(payment)),
|
|
7366
7888
|
/** With `--sources`: each piece of evidence read back. */
|
|
7367
7889
|
sources: optional(array(evidenceSource)),
|
|
7368
7890
|
created_at: time,
|
|
7369
7891
|
updated_at: time
|
|
7370
7892
|
});
|
|
7371
7893
|
|
|
7372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
7373
7895
|
var hit = strictObject({
|
|
7374
7896
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
|
|
7375
7897
|
ref: reference,
|
|
@@ -7407,7 +7929,7 @@ var hit = strictObject({
|
|
|
7407
7929
|
untrusted
|
|
7408
7930
|
});
|
|
7409
7931
|
|
|
7410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
7411
7933
|
var identity = strictObject({
|
|
7412
7934
|
ref: reference,
|
|
7413
7935
|
provider: text,
|
|
@@ -7420,7 +7942,7 @@ var identity = strictObject({
|
|
|
7420
7942
|
person: optional(nullable(reference))
|
|
7421
7943
|
});
|
|
7422
7944
|
|
|
7423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
7424
7946
|
var imageEmbedding = strictObject({
|
|
7425
7947
|
model: text,
|
|
7426
7948
|
embedded: count,
|
|
@@ -7429,7 +7951,7 @@ var imageEmbedding = strictObject({
|
|
|
7429
7951
|
more: boolean()
|
|
7430
7952
|
});
|
|
7431
7953
|
|
|
7432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
7433
7955
|
var joinRequest = strictObject({
|
|
7434
7956
|
person_id: id,
|
|
7435
7957
|
name: nullable(text),
|
|
@@ -7440,7 +7962,7 @@ var joinRequest = strictObject({
|
|
|
7440
7962
|
about: optional(text)
|
|
7441
7963
|
});
|
|
7442
7964
|
|
|
7443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
7444
7966
|
var pollVote = strictObject({
|
|
7445
7967
|
person_id: id,
|
|
7446
7968
|
name: nullable(text),
|
|
@@ -7450,7 +7972,7 @@ var pollVote = strictObject({
|
|
|
7450
7972
|
voted_at: time
|
|
7451
7973
|
});
|
|
7452
7974
|
|
|
7453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
7454
7976
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
7455
7977
|
var observation = strictObject({
|
|
7456
7978
|
value: pipe(number(), minValue(0)),
|
|
@@ -7492,7 +8014,88 @@ var serveSummary = strictObject({
|
|
|
7492
8014
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
7493
8015
|
});
|
|
7494
8016
|
|
|
7495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8018
|
+
var mailCounts = strictObject({
|
|
8019
|
+
by: picklist(["day", "week", "sender"]),
|
|
8020
|
+
received: count,
|
|
8021
|
+
sent: count,
|
|
8022
|
+
rows: array(strictObject({
|
|
8023
|
+
/** `YYYY-MM-DD`, or the sender's address. */
|
|
8024
|
+
key: text,
|
|
8025
|
+
name: nullable(text),
|
|
8026
|
+
received: count,
|
|
8027
|
+
/** Always 0 by sender: the owner sends that mail. */
|
|
8028
|
+
sent: count
|
|
8029
|
+
}))
|
|
8030
|
+
});
|
|
8031
|
+
|
|
8032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8033
|
+
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8034
|
+
var base = { id, evidence: array(evidence2) };
|
|
8035
|
+
var finding = variant("kind", [
|
|
8036
|
+
strictObject({
|
|
8037
|
+
...base,
|
|
8038
|
+
kind: literal("task"),
|
|
8039
|
+
project: optional(reference),
|
|
8040
|
+
type: picklist(WORK_TASK_TYPES),
|
|
8041
|
+
title: text,
|
|
8042
|
+
reason: text,
|
|
8043
|
+
commitment: picklist(["explicit", "inferred"]),
|
|
8044
|
+
due_at: optional(time),
|
|
8045
|
+
due_evidence: optional(array(reference)),
|
|
8046
|
+
assignee: optional(reference),
|
|
8047
|
+
assignee_evidence: optional(array(reference))
|
|
8048
|
+
}),
|
|
8049
|
+
strictObject({
|
|
8050
|
+
...base,
|
|
8051
|
+
kind: literal("fact"),
|
|
8052
|
+
project: optional(reference),
|
|
8053
|
+
subject: optional(reference),
|
|
8054
|
+
type: picklist(FACT_TYPES),
|
|
8055
|
+
statement: text
|
|
8056
|
+
}),
|
|
8057
|
+
strictObject({
|
|
8058
|
+
...base,
|
|
8059
|
+
kind: literal("task_update"),
|
|
8060
|
+
task: reference,
|
|
8061
|
+
change: picklist(["close", "due", "detail"]),
|
|
8062
|
+
due_at: optional(time),
|
|
8063
|
+
detail: optional(text),
|
|
8064
|
+
reason: text
|
|
8065
|
+
}),
|
|
8066
|
+
strictObject({
|
|
8067
|
+
...base,
|
|
8068
|
+
kind: literal("memory"),
|
|
8069
|
+
memory_kind: picklist(MEMORY_KINDS),
|
|
8070
|
+
scope: picklist(MEMORY_SCOPES),
|
|
8071
|
+
body: text,
|
|
8072
|
+
subject: optional(reference),
|
|
8073
|
+
project: optional(reference)
|
|
8074
|
+
}),
|
|
8075
|
+
strictObject({ ...base, kind: literal("link"), from: reference, to: reference, reason: text }),
|
|
8076
|
+
strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) })
|
|
8077
|
+
]);
|
|
8078
|
+
var outcome = strictObject({
|
|
8079
|
+
id,
|
|
8080
|
+
fingerprint: text,
|
|
8081
|
+
status: picklist(["accepted", "rejected"]),
|
|
8082
|
+
reference: nullable(reference),
|
|
8083
|
+
reused: boolean()
|
|
8084
|
+
});
|
|
8085
|
+
var mailFindings = strictObject({
|
|
8086
|
+
id,
|
|
8087
|
+
account: strictObject({ provider: text, account: text }),
|
|
8088
|
+
input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding) }),
|
|
8089
|
+
fingerprint: text,
|
|
8090
|
+
status: picklist(["proposed", "reviewed"]),
|
|
8091
|
+
author,
|
|
8092
|
+
decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
|
|
8093
|
+
decided_at: nullable(time),
|
|
8094
|
+
previous: array(outcome),
|
|
8095
|
+
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
|
|
8096
|
+
});
|
|
8097
|
+
|
|
8098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
7496
8099
|
var mediaArchive = strictObject({
|
|
7497
8100
|
directory: text,
|
|
7498
8101
|
chats: count,
|
|
@@ -7524,7 +8127,7 @@ var mediaArchiveTimer = union([
|
|
|
7524
8127
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
7525
8128
|
]);
|
|
7526
8129
|
|
|
7527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
7528
8131
|
var preparationId = pipe(string(), minLength(1));
|
|
7529
8132
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
7530
8133
|
var preparationTime = nullable(isoTime);
|
|
@@ -7616,7 +8219,7 @@ var preparationMeeting = strictObject({
|
|
|
7616
8219
|
updated_at: isoTime
|
|
7617
8220
|
});
|
|
7618
8221
|
|
|
7619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
7620
8223
|
var meetingEvidence = preparationEvidence;
|
|
7621
8224
|
var meetingPersonContext = strictObject({
|
|
7622
8225
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -7638,13 +8241,13 @@ var meetingPersonContext = strictObject({
|
|
|
7638
8241
|
})
|
|
7639
8242
|
});
|
|
7640
8243
|
|
|
7641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7642
|
-
var
|
|
7643
|
-
var
|
|
7644
|
-
var
|
|
7645
|
-
strictObject({ ...
|
|
8244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
8245
|
+
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
8246
|
+
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
8247
|
+
var finding2 = variant("kind", [
|
|
8248
|
+
strictObject({ ...base2, kind: literal("fact"), type: picklist(FACT_TYPES), statement: text }),
|
|
7646
8249
|
strictObject({
|
|
7647
|
-
...
|
|
8250
|
+
...base2,
|
|
7648
8251
|
kind: literal("task"),
|
|
7649
8252
|
type: picklist(WORK_TASK_TYPES),
|
|
7650
8253
|
title: text,
|
|
@@ -7656,7 +8259,7 @@ var finding = variant("kind", [
|
|
|
7656
8259
|
assignee_evidence: optional(array(reference))
|
|
7657
8260
|
})
|
|
7658
8261
|
]);
|
|
7659
|
-
var
|
|
8262
|
+
var outcome2 = strictObject({
|
|
7660
8263
|
id,
|
|
7661
8264
|
fingerprint: text,
|
|
7662
8265
|
status: picklist(["accepted", "rejected"]),
|
|
@@ -7666,17 +8269,17 @@ var outcome = strictObject({
|
|
|
7666
8269
|
var meetingFindings = strictObject({
|
|
7667
8270
|
id,
|
|
7668
8271
|
account: strictObject({ provider: text, account: text }),
|
|
7669
|
-
input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(
|
|
8272
|
+
input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding2) }),
|
|
7670
8273
|
fingerprint: text,
|
|
7671
8274
|
status: picklist(["proposed", "reviewed"]),
|
|
7672
8275
|
author,
|
|
7673
8276
|
decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
|
|
7674
8277
|
decided_at: nullable(time),
|
|
7675
|
-
previous: array(
|
|
7676
|
-
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(
|
|
8278
|
+
previous: array(outcome2),
|
|
8279
|
+
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
7677
8280
|
});
|
|
7678
8281
|
|
|
7679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
7680
8283
|
var communicationCoverage = strictObject({
|
|
7681
8284
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
7682
8285
|
query: string(),
|
|
@@ -7721,7 +8324,7 @@ var preparationCommunications = strictObject({
|
|
|
7721
8324
|
}))
|
|
7722
8325
|
});
|
|
7723
8326
|
|
|
7724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
7725
8328
|
var meetingPreparation = strictObject({
|
|
7726
8329
|
communications: optional(preparationCommunications),
|
|
7727
8330
|
schema_version: literal(1),
|
|
@@ -7834,7 +8437,7 @@ var meetingPreparation = strictObject({
|
|
|
7834
8437
|
})
|
|
7835
8438
|
});
|
|
7836
8439
|
|
|
7837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
7838
8441
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
7839
8442
|
var id3 = pipe(string(), minLength(1));
|
|
7840
8443
|
var text3 = string();
|
|
@@ -7898,7 +8501,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
7898
8501
|
})
|
|
7899
8502
|
});
|
|
7900
8503
|
|
|
7901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
7902
8505
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
7903
8506
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
7904
8507
|
var meetingSeriesInventory = strictObject({
|
|
@@ -7928,7 +8531,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
7928
8531
|
})
|
|
7929
8532
|
});
|
|
7930
8533
|
|
|
7931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
7932
8535
|
var text4 = string();
|
|
7933
8536
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
7934
8537
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -7945,7 +8548,7 @@ var meetingTaskProposal = strictObject({
|
|
|
7945
8548
|
persistence: literal("proposal-only")
|
|
7946
8549
|
});
|
|
7947
8550
|
|
|
7948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
7949
8552
|
var memory = strictObject({
|
|
7950
8553
|
ref: reference,
|
|
7951
8554
|
id,
|
|
@@ -7972,7 +8575,7 @@ var memory = strictObject({
|
|
|
7972
8575
|
updated_at: time
|
|
7973
8576
|
});
|
|
7974
8577
|
|
|
7975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
7976
8579
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
7977
8580
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
7978
8581
|
var mention = strictObject({
|
|
@@ -8015,13 +8618,13 @@ var mentionRebuild = strictObject({
|
|
|
8015
8618
|
mentions: count
|
|
8016
8619
|
});
|
|
8017
8620
|
|
|
8018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
8019
8622
|
var operated3 = { operation_id: id, chat_id: id };
|
|
8020
8623
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
8021
8624
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
8022
8625
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
8023
8626
|
|
|
8024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
8025
8628
|
var messageTranscript = strictObject({
|
|
8026
8629
|
message_id: id,
|
|
8027
8630
|
text,
|
|
@@ -8079,7 +8682,7 @@ var evidencePacket = strictObject({
|
|
|
8079
8682
|
}))
|
|
8080
8683
|
});
|
|
8081
8684
|
|
|
8082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
8083
8686
|
var messageThread = strictObject({
|
|
8084
8687
|
ref: reference,
|
|
8085
8688
|
chat: id,
|
|
@@ -8096,7 +8699,7 @@ var messageThread = strictObject({
|
|
|
8096
8699
|
});
|
|
8097
8700
|
var messageContext = union([message, messageThread]);
|
|
8098
8701
|
|
|
8099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
8100
8703
|
var messageCounts = strictObject({
|
|
8101
8704
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
8102
8705
|
total: count,
|
|
@@ -8109,7 +8712,7 @@ var messageCounts = strictObject({
|
|
|
8109
8712
|
}))
|
|
8110
8713
|
});
|
|
8111
8714
|
|
|
8112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
8113
8716
|
var messageLink = strictObject({
|
|
8114
8717
|
ref: reference,
|
|
8115
8718
|
url: nullable(text),
|
|
@@ -8126,7 +8729,7 @@ var messageLink = strictObject({
|
|
|
8126
8729
|
})))
|
|
8127
8730
|
});
|
|
8128
8731
|
|
|
8129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
8130
8733
|
var messageWrite = strictObject({
|
|
8131
8734
|
operation_id: id,
|
|
8132
8735
|
message,
|
|
@@ -8141,7 +8744,7 @@ var draftWrite = strictObject({
|
|
|
8141
8744
|
});
|
|
8142
8745
|
var messageSend = union([messageWrite, draftWrite]);
|
|
8143
8746
|
|
|
8144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
8145
8748
|
var model2 = strictObject({
|
|
8146
8749
|
id,
|
|
8147
8750
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -8158,7 +8761,7 @@ var model2 = strictObject({
|
|
|
8158
8761
|
path: text
|
|
8159
8762
|
});
|
|
8160
8763
|
|
|
8161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
8162
8765
|
var source = picklist(["environment", "keyring", "file"]);
|
|
8163
8766
|
var modelKey = strictObject({
|
|
8164
8767
|
provider: text,
|
|
@@ -8168,7 +8771,7 @@ var modelKey = strictObject({
|
|
|
8168
8771
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
8169
8772
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
8170
8773
|
|
|
8171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
8172
8775
|
var versus = strictObject({ current: number(), previous: number() });
|
|
8173
8776
|
var person = { person_ref: reference, name: nullable(text) };
|
|
8174
8777
|
var graph = strictObject({
|
|
@@ -8202,14 +8805,14 @@ var officialStats = strictObject({
|
|
|
8202
8805
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
8203
8806
|
});
|
|
8204
8807
|
|
|
8205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
8206
8809
|
var person2 = strictObject({
|
|
8207
8810
|
ref: reference,
|
|
8208
8811
|
name: nullable(text),
|
|
8209
8812
|
identities: optional(array(identity))
|
|
8210
8813
|
});
|
|
8211
8814
|
|
|
8212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
8213
8816
|
var poll = strictObject({
|
|
8214
8817
|
chat_id: id,
|
|
8215
8818
|
message_id: id,
|
|
@@ -8225,11 +8828,11 @@ var poll = strictObject({
|
|
|
8225
8828
|
});
|
|
8226
8829
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
8227
8830
|
|
|
8228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
8229
8832
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
8230
8833
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
8231
8834
|
|
|
8232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
8233
8836
|
var figures = record(string(), number());
|
|
8234
8837
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
8235
8838
|
var rankingRow = strictObject({
|
|
@@ -8276,7 +8879,7 @@ var ranking = strictObject({
|
|
|
8276
8879
|
rows: array(rankingRow)
|
|
8277
8880
|
});
|
|
8278
8881
|
|
|
8279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
8280
8883
|
var reaction = strictObject({
|
|
8281
8884
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
8282
8885
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -8284,7 +8887,7 @@ var reaction = strictObject({
|
|
|
8284
8887
|
reacted_at: time
|
|
8285
8888
|
});
|
|
8286
8889
|
|
|
8287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
8288
8891
|
var reactionChange = strictObject({
|
|
8289
8892
|
operation_id: id,
|
|
8290
8893
|
chat_id: id,
|
|
@@ -8292,7 +8895,7 @@ var reactionChange = strictObject({
|
|
|
8292
8895
|
reaction: nullable(text)
|
|
8293
8896
|
});
|
|
8294
8897
|
|
|
8295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
8296
8899
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
8297
8900
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
8298
8901
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -8303,7 +8906,7 @@ var recipientChange = strictObject({
|
|
|
8303
8906
|
...partial(recipientOff).entries
|
|
8304
8907
|
});
|
|
8305
8908
|
|
|
8306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
8307
8910
|
var events = array(record(string(), unknown()));
|
|
8308
8911
|
var recordedRun = strictObject({
|
|
8309
8912
|
run_id: id,
|
|
@@ -8375,7 +8978,7 @@ var runHit = strictObject({
|
|
|
8375
8978
|
});
|
|
8376
8979
|
var runLocation = strictObject({ path: text });
|
|
8377
8980
|
|
|
8378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
8379
8982
|
var relationship = strictObject({
|
|
8380
8983
|
id,
|
|
8381
8984
|
from: reference,
|
|
@@ -8392,7 +8995,24 @@ var relationship = strictObject({
|
|
|
8392
8995
|
created_at: time
|
|
8393
8996
|
});
|
|
8394
8997
|
|
|
8395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
8999
|
+
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9000
|
+
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9001
|
+
var responseTimes = strictObject({
|
|
9002
|
+
who: picklist(["me", "others"]),
|
|
9003
|
+
...figures2,
|
|
9004
|
+
buckets: strictObject({ under_5m: count, under_1h: count, under_1d: count, over_1d: count }),
|
|
9005
|
+
/** One row per calendar day of the reply; empty with `--by total`. */
|
|
9006
|
+
rows: array(strictObject({ key: text, ...figures2 }))
|
|
9007
|
+
});
|
|
9008
|
+
var waitingChats = strictObject({
|
|
9009
|
+
chats: count,
|
|
9010
|
+
messages: count,
|
|
9011
|
+
oldest_at: nullable(time),
|
|
9012
|
+
by_kind: strictObject({ private: count, group: count })
|
|
9013
|
+
});
|
|
9014
|
+
|
|
9015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
8396
9016
|
var retentionCohort = strictObject({
|
|
8397
9017
|
/** The first day of the joining day or week. */
|
|
8398
9018
|
cohort: text,
|
|
@@ -8440,7 +9060,7 @@ var retention = strictObject({
|
|
|
8440
9060
|
rows: array(retentionCohort)
|
|
8441
9061
|
});
|
|
8442
9062
|
|
|
8443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
8444
9064
|
var savedSearch = strictObject({
|
|
8445
9065
|
id,
|
|
8446
9066
|
/** `null` for a run in the history. */
|
|
@@ -8457,7 +9077,7 @@ var savedSearch = strictObject({
|
|
|
8457
9077
|
});
|
|
8458
9078
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
8459
9079
|
|
|
8460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
8461
9081
|
var sendAttempt = strictObject({
|
|
8462
9082
|
at: time,
|
|
8463
9083
|
profile: text,
|
|
@@ -8485,7 +9105,7 @@ var sendAttempt = strictObject({
|
|
|
8485
9105
|
error_code: optional(text)
|
|
8486
9106
|
});
|
|
8487
9107
|
|
|
8488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
8489
9109
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
8490
9110
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
8491
9111
|
var infoSchema = strictObject({
|
|
@@ -8693,7 +9313,7 @@ var storeRepair = union([
|
|
|
8693
9313
|
]);
|
|
8694
9314
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
8695
9315
|
|
|
8696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
8697
9317
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
8698
9318
|
var storeTable = strictObject({
|
|
8699
9319
|
name: text,
|
|
@@ -8702,7 +9322,7 @@ var storeTable = strictObject({
|
|
|
8702
9322
|
bytes: optional(nullable(count))
|
|
8703
9323
|
});
|
|
8704
9324
|
|
|
8705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
8706
9326
|
var tagTarget = variant("type", [
|
|
8707
9327
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
8708
9328
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -8733,7 +9353,7 @@ var automaticTags = strictObject({
|
|
|
8733
9353
|
dry_run: boolean()
|
|
8734
9354
|
});
|
|
8735
9355
|
|
|
8736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
8737
9357
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
8738
9358
|
var taskPair = strictObject({
|
|
8739
9359
|
task: nullable(side),
|
|
@@ -8756,7 +9376,7 @@ var taskPair = strictObject({
|
|
|
8756
9376
|
created_at: time
|
|
8757
9377
|
});
|
|
8758
9378
|
|
|
8759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
8760
9380
|
var nullableTime = nullable(time);
|
|
8761
9381
|
var link = strictObject({
|
|
8762
9382
|
id,
|
|
@@ -8886,8 +9506,47 @@ var taskScan = strictObject({
|
|
|
8886
9506
|
held_chats: optional(count),
|
|
8887
9507
|
tasks: array(strictObject({ source: text, kind: picklist(TASK_KINDS), category: nullable(text) }))
|
|
8888
9508
|
});
|
|
9509
|
+
var taskAnalysisMark = strictObject({
|
|
9510
|
+
chat: text,
|
|
9511
|
+
from: time,
|
|
9512
|
+
through: time,
|
|
9513
|
+
through_id: text,
|
|
9514
|
+
by: text,
|
|
9515
|
+
checked_at: time,
|
|
9516
|
+
checked_through: time,
|
|
9517
|
+
at: time
|
|
9518
|
+
});
|
|
9519
|
+
var taskAnalysisMarkMoved = strictObject({ ...taskAnalysisMark.entries, moved: boolean() });
|
|
9520
|
+
var taskAnalysis = strictObject({
|
|
9521
|
+
chat: text,
|
|
9522
|
+
title: nullable(text),
|
|
9523
|
+
kind: text,
|
|
9524
|
+
newest_at: nullableTime,
|
|
9525
|
+
mark: nullable(taskAnalysisMark),
|
|
9526
|
+
waiting: count,
|
|
9527
|
+
late: count,
|
|
9528
|
+
untrusted
|
|
9529
|
+
});
|
|
9530
|
+
var taskReview = strictObject({
|
|
9531
|
+
chat: text,
|
|
9532
|
+
from: time,
|
|
9533
|
+
mark: nullable(taskAnalysisMark),
|
|
9534
|
+
late: count,
|
|
9535
|
+
has_more: boolean(),
|
|
9536
|
+
through: nullable(reference),
|
|
9537
|
+
messages: array(strictObject({
|
|
9538
|
+
ref: reference,
|
|
9539
|
+
at: time,
|
|
9540
|
+
sender: nullable(text),
|
|
9541
|
+
outgoing: boolean(),
|
|
9542
|
+
reply_to: nullable(text),
|
|
9543
|
+
text
|
|
9544
|
+
})),
|
|
9545
|
+
open_tasks: array(strictObject({ key: nullable(text), kind: text, title: nullable(text), source: nullable(text) })),
|
|
9546
|
+
untrusted
|
|
9547
|
+
});
|
|
8889
9548
|
|
|
8890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
8891
9550
|
var topic = strictObject({
|
|
8892
9551
|
id,
|
|
8893
9552
|
title: text,
|
|
@@ -8901,7 +9560,7 @@ var topic = strictObject({
|
|
|
8901
9560
|
untrusted
|
|
8902
9561
|
});
|
|
8903
9562
|
|
|
8904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
8905
9564
|
var ENTITIES = {
|
|
8906
9565
|
sync_progress: progress,
|
|
8907
9566
|
...MEETING_RESULT_ENTITIES,
|
|
@@ -8931,18 +9590,22 @@ var ENTITIES = {
|
|
|
8931
9590
|
attachments: optional(array(hitFile)),
|
|
8932
9591
|
untrusted
|
|
8933
9592
|
}),
|
|
8934
|
-
"message.summary":
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
9593
|
+
"message.summary": strictObject({
|
|
9594
|
+
...pick(message, [
|
|
9595
|
+
"ref",
|
|
9596
|
+
"chat_id",
|
|
9597
|
+
"chat_title",
|
|
9598
|
+
"timestamp",
|
|
9599
|
+
"sender_name",
|
|
9600
|
+
"sender_is_me",
|
|
9601
|
+
"outgoing",
|
|
9602
|
+
"text",
|
|
9603
|
+
"transcript",
|
|
9604
|
+
"attachments",
|
|
9605
|
+
"email"
|
|
9606
|
+
]).entries,
|
|
9607
|
+
untrusted
|
|
9608
|
+
}),
|
|
8946
9609
|
message_link: messageLink,
|
|
8947
9610
|
message_write: messageWrite,
|
|
8948
9611
|
message_send: messageSend,
|
|
@@ -9039,6 +9702,9 @@ var ENTITIES = {
|
|
|
9039
9702
|
task_unmerge: taskUnmerge,
|
|
9040
9703
|
task_categories: taskCategories,
|
|
9041
9704
|
task_scan: taskScan,
|
|
9705
|
+
task_analysis: taskAnalysis,
|
|
9706
|
+
task_analysis_mark: taskAnalysisMarkMoved,
|
|
9707
|
+
task_review: taskReview,
|
|
9042
9708
|
fact,
|
|
9043
9709
|
memory,
|
|
9044
9710
|
meeting,
|
|
@@ -9049,6 +9715,7 @@ var ENTITIES = {
|
|
|
9049
9715
|
meeting_project_evidence: meetingProjectEvidence,
|
|
9050
9716
|
meeting_preparation: meetingPreparation,
|
|
9051
9717
|
meeting_findings: meetingFindings,
|
|
9718
|
+
mail_findings: mailFindings,
|
|
9052
9719
|
meeting_transcript: meetingTranscript,
|
|
9053
9720
|
meeting_summary: meetingSummary,
|
|
9054
9721
|
meeting_evidence: meetingEvidence,
|
|
@@ -9057,6 +9724,7 @@ var ENTITIES = {
|
|
|
9057
9724
|
meeting_review: meetingReview,
|
|
9058
9725
|
meeting_link: meetingLink,
|
|
9059
9726
|
meeting_stats: meetingStats,
|
|
9727
|
+
meeting_counts: meetingCounts,
|
|
9060
9728
|
meeting_speaker: meetingSpeaker,
|
|
9061
9729
|
meeting_participants: meetingParticipants,
|
|
9062
9730
|
meeting_passage: meetingPassage,
|
|
@@ -9094,6 +9762,7 @@ var ENTITIES = {
|
|
|
9094
9762
|
job,
|
|
9095
9763
|
store_chat_status: storeChatStatus,
|
|
9096
9764
|
store_clear: storeClear,
|
|
9765
|
+
chat_coverage: chatCoverage,
|
|
9097
9766
|
store_export: storeExport,
|
|
9098
9767
|
store_gap_plan: storeGapPlan,
|
|
9099
9768
|
store_gap_repair: storeGapRepair,
|
|
@@ -9149,6 +9818,9 @@ var ENTITIES = {
|
|
|
9149
9818
|
topic,
|
|
9150
9819
|
folder,
|
|
9151
9820
|
message_counts: messageCounts,
|
|
9821
|
+
response_times: responseTimes,
|
|
9822
|
+
waiting_chats: waitingChats,
|
|
9823
|
+
mail_counts: mailCounts,
|
|
9152
9824
|
ranking,
|
|
9153
9825
|
admin_report: adminReport,
|
|
9154
9826
|
analysis_consent: analysisConsent,
|
|
@@ -9170,7 +9842,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
9170
9842
|
return [name, definition];
|
|
9171
9843
|
})), "entityDefinitions");
|
|
9172
9844
|
|
|
9173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
9174
9846
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
9175
9847
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
9176
9848
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -9204,7 +9876,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
9204
9876
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
9205
9877
|
}, "answerRow");
|
|
9206
9878
|
|
|
9207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
9208
9880
|
var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
|
|
9209
9881
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
9210
9882
|
var STATUS_SIGNAL_ROWS = {
|
|
@@ -9299,11 +9971,21 @@ var STATUS_ROWS = {
|
|
|
9299
9971
|
]
|
|
9300
9972
|
},
|
|
9301
9973
|
"status.signal": { columns: [{ field: "id" }, { field: "version" }] },
|
|
9302
|
-
"status.out-of-scope": {
|
|
9974
|
+
"status.out-of-scope": {
|
|
9975
|
+
columns: [
|
|
9976
|
+
{ field: "chat" },
|
|
9977
|
+
{ field: "reason" },
|
|
9978
|
+
{ field: "purpose" },
|
|
9979
|
+
{ field: "messages", as: "count", tag: "messages" },
|
|
9980
|
+
{ field: "first_at", as: "day" },
|
|
9981
|
+
{ field: "last_at", as: "day" },
|
|
9982
|
+
{ field: "read_command" }
|
|
9983
|
+
]
|
|
9984
|
+
},
|
|
9303
9985
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
9304
9986
|
};
|
|
9305
9987
|
|
|
9306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
9307
9989
|
var TEXT_CHARS = 400;
|
|
9308
9990
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
9309
9991
|
var messageRow = {
|
|
@@ -9318,6 +10000,60 @@ var messageRow = {
|
|
|
9318
10000
|
],
|
|
9319
10001
|
text: ["text", "transcript", "excerpt"]
|
|
9320
10002
|
};
|
|
10003
|
+
var linkedChatColumns = [
|
|
10004
|
+
{ field: "ref" },
|
|
10005
|
+
{ field: "title" },
|
|
10006
|
+
{ field: "purpose" },
|
|
10007
|
+
{ field: "proposed", prefix: "proposed" }
|
|
10008
|
+
];
|
|
10009
|
+
var EVIDENCE_ROWS = {
|
|
10010
|
+
project_evidence: {
|
|
10011
|
+
columns: [],
|
|
10012
|
+
sections: {
|
|
10013
|
+
items: "evidence_item",
|
|
10014
|
+
linked_chats: "linked_chat",
|
|
10015
|
+
left_out: "linked_chat.left_out",
|
|
10016
|
+
members: "evidence_member"
|
|
10017
|
+
},
|
|
10018
|
+
whole: ["checkpoint"]
|
|
10019
|
+
},
|
|
10020
|
+
evidence_item: {
|
|
10021
|
+
columns: [
|
|
10022
|
+
{ field: "ref" },
|
|
10023
|
+
{ field: "at", as: "day" },
|
|
10024
|
+
{ field: "context" },
|
|
10025
|
+
{ field: "proposed", prefix: "proposed" }
|
|
10026
|
+
],
|
|
10027
|
+
text: ["text"]
|
|
10028
|
+
},
|
|
10029
|
+
linked_chat: {
|
|
10030
|
+
columns: [
|
|
10031
|
+
...linkedChatColumns,
|
|
10032
|
+
{ field: "state" },
|
|
10033
|
+
{ field: "items", as: "count", tag: "items" },
|
|
10034
|
+
{ field: "capped", tag: "capped" },
|
|
10035
|
+
{ field: "score", prefix: "score" },
|
|
10036
|
+
{ field: "sync_command" }
|
|
10037
|
+
]
|
|
10038
|
+
},
|
|
10039
|
+
"linked_chat.left_out": {
|
|
10040
|
+
columns: [
|
|
10041
|
+
...linkedChatColumns,
|
|
10042
|
+
{ field: "messages", as: "count", tag: "messages" },
|
|
10043
|
+
{ field: "first_at", as: "day" },
|
|
10044
|
+
{ field: "last_at", as: "day" },
|
|
10045
|
+
{ field: "read_command" }
|
|
10046
|
+
]
|
|
10047
|
+
},
|
|
10048
|
+
evidence_member: {
|
|
10049
|
+
columns: [
|
|
10050
|
+
{ field: "person" },
|
|
10051
|
+
{ field: "state" },
|
|
10052
|
+
{ field: "proposed", prefix: "proposed" },
|
|
10053
|
+
{ field: "score", prefix: "score" }
|
|
10054
|
+
]
|
|
10055
|
+
}
|
|
10056
|
+
};
|
|
9321
10057
|
var SHARED_ROWS = {
|
|
9322
10058
|
message: messageRow,
|
|
9323
10059
|
"message.summary": messageRow,
|
|
@@ -9340,7 +10076,8 @@ var SHARED_ROWS = {
|
|
|
9340
10076
|
{ field: "last_message_at", as: "time" }
|
|
9341
10077
|
]
|
|
9342
10078
|
},
|
|
9343
|
-
...STATUS_ROWS
|
|
10079
|
+
...STATUS_ROWS,
|
|
10080
|
+
...EVIDENCE_ROWS
|
|
9344
10081
|
};
|
|
9345
10082
|
var GENERIC_ROW = {
|
|
9346
10083
|
columns: [
|
|
@@ -9401,10 +10138,10 @@ var clockFor = /* @__PURE__ */ __name((zone) => {
|
|
|
9401
10138
|
return {
|
|
9402
10139
|
zone,
|
|
9403
10140
|
parts: /* @__PURE__ */ __name((iso) => {
|
|
9404
|
-
const
|
|
9405
|
-
if (Number.isNaN(
|
|
10141
|
+
const ms2 = Date.parse(iso);
|
|
10142
|
+
if (Number.isNaN(ms2))
|
|
9406
10143
|
return void 0;
|
|
9407
|
-
const part = Object.fromEntries(format.formatToParts(
|
|
10144
|
+
const part = Object.fromEntries(format.formatToParts(ms2).map(({ type, value }) => [type, value]));
|
|
9408
10145
|
return { date: `${part.year}-${part.month}-${part.day}`, time: `${part.hour}:${part.minute}` };
|
|
9409
10146
|
}, "parts")
|
|
9410
10147
|
};
|
|
@@ -9427,11 +10164,12 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
|
|
|
9427
10164
|
switch (column.as) {
|
|
9428
10165
|
case "time":
|
|
9429
10166
|
case "day": {
|
|
9430
|
-
|
|
10167
|
+
const iso = typeof value === "number" && Number.isFinite(value) ? new Date(value).toISOString() : value;
|
|
10168
|
+
if (typeof iso !== "string")
|
|
9431
10169
|
return void 0;
|
|
9432
|
-
const parts = clock.parts(
|
|
10170
|
+
const parts = clock.parts(iso);
|
|
9433
10171
|
if (!parts)
|
|
9434
|
-
return { text: clean(
|
|
10172
|
+
return { text: clean(iso) };
|
|
9435
10173
|
const day = parts.date.slice(5);
|
|
9436
10174
|
return { text: column.as === "day" ? day : `${day} ${parts.time}`, date: parts.date };
|
|
9437
10175
|
}
|
|
@@ -9453,7 +10191,7 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
|
|
|
9453
10191
|
if (value === true)
|
|
9454
10192
|
return column.tag ? { text: column.tag } : void 0;
|
|
9455
10193
|
if (typeof value === "string" || typeof value === "number")
|
|
9456
|
-
return { text: clean(String(value)) };
|
|
10194
|
+
return { text: clean(column.prefix ? `${column.prefix} ${value}` : String(value)) };
|
|
9457
10195
|
return void 0;
|
|
9458
10196
|
}
|
|
9459
10197
|
}, "cellOf");
|
|
@@ -9516,31 +10254,31 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
|
9516
10254
|
return { header, lines };
|
|
9517
10255
|
}, "rowsOfItems");
|
|
9518
10256
|
var blockLine = /* @__PURE__ */ __name((fields, chars) => blockOf(fields, chars).join(" "), "blockLine");
|
|
9519
|
-
var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "") => Object.entries(fields).filter(([name]) => !(name === "priority" && "priority_label" in fields)).filter(([, value]) => present(value) || value === false).flatMap(([name, value]) => {
|
|
10257
|
+
var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "", whole = []) => Object.entries(fields).filter(([name]) => !(name === "priority" && "priority_label" in fields)).filter(([, value]) => present(value) || value === false).flatMap(([name, value]) => {
|
|
9520
10258
|
const label = `${indent}${clean(name)}:`;
|
|
9521
10259
|
if (isFields(value))
|
|
9522
10260
|
return [label, ...blockOf(value, chars, `${indent} `)];
|
|
9523
10261
|
if (Array.isArray(value))
|
|
9524
10262
|
return value.every((one) => !isFields(one) && !Array.isArray(one)) ? [`${label} ${cut(clean(value.join(", ")), chars)}`] : [`${label} ${value.length} \u2014 --json shows them`];
|
|
9525
|
-
return [`${label} ${cut(clean(String(value)), chars)}`];
|
|
10263
|
+
return [`${label} ${whole.includes(name) ? clean(String(value)) : cut(clean(String(value)), chars)}`];
|
|
9526
10264
|
}), "blockOf");
|
|
9527
10265
|
var footerOf = /* @__PURE__ */ __name((body) => {
|
|
9528
10266
|
const lines = [];
|
|
9529
10267
|
const steps = body.next ?? [];
|
|
9530
|
-
const lineOf2 = /* @__PURE__ */ __name((
|
|
10268
|
+
const lineOf2 = /* @__PURE__ */ __name((step2) => step2.kind === "command" ? step2.line ?? step2.command : void 0, "lineOf");
|
|
9531
10269
|
if ("items" in body && body.page.has_more) {
|
|
9532
|
-
const more = steps.find((
|
|
10270
|
+
const more = steps.find((step2) => step2.step === "page.next");
|
|
9533
10271
|
const line = more?.kind === "command" ? more.line : void 0;
|
|
9534
10272
|
const page2 = body.page;
|
|
9535
10273
|
lines.push(`# more: ${clean(line ?? (page2.mode === "cursor" && page2.next_cursor ? `--cursor ${page2.next_cursor}` : page2.mode === "page" && page2.next_page ? `--page ${page2.next_page}` : "raise --limit"))}`);
|
|
9536
10274
|
}
|
|
9537
10275
|
for (const missing of body.missing ?? [])
|
|
9538
10276
|
lines.push(`# missing: ${clean(missing.field)}: ${clean(missing.why)}`);
|
|
9539
|
-
for (const
|
|
9540
|
-
if (
|
|
10277
|
+
for (const step2 of steps) {
|
|
10278
|
+
if (step2.step === "page.next" && "items" in body)
|
|
9541
10279
|
continue;
|
|
9542
|
-
const line = lineOf2(
|
|
9543
|
-
lines.push(`# next: ${clean(
|
|
10280
|
+
const line = lineOf2(step2);
|
|
10281
|
+
lines.push(`# next: ${clean(step2.why)}${line ? `: ${clean(line)}` : ""}`);
|
|
9544
10282
|
}
|
|
9545
10283
|
if (body.meta?.complete === false) {
|
|
9546
10284
|
const issues = (body.meta.issues ?? []).map((issue) => `${clean(issue.source)}: ${clean(String(issue.code))}`);
|
|
@@ -9570,7 +10308,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
9570
10308
|
} else if (isFields(body.item)) {
|
|
9571
10309
|
const sections = shape.sections ?? {};
|
|
9572
10310
|
const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
|
|
9573
|
-
lines = blockOf(rest, chars).map(guarded);
|
|
10311
|
+
lines = blockOf(rest, chars, "", shape.whole).map(guarded);
|
|
9574
10312
|
for (const [name, entity] of Object.entries(sections)) {
|
|
9575
10313
|
const list = body.item[name];
|
|
9576
10314
|
if (!Array.isArray(list))
|
|
@@ -9583,7 +10321,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
9583
10321
|
return lines.concat(footerOf(body)).join("\n");
|
|
9584
10322
|
}, "compactText");
|
|
9585
10323
|
|
|
9586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
9587
10325
|
var STEPS2 = defineSteps([
|
|
9588
10326
|
...STEPS,
|
|
9589
10327
|
{
|
|
@@ -9787,6 +10525,16 @@ var STEPS2 = defineSteps([
|
|
|
9787
10525
|
args: [],
|
|
9788
10526
|
why: "serve still runs an older version; a restart runs the one installed now"
|
|
9789
10527
|
},
|
|
10528
|
+
{
|
|
10529
|
+
id: "tasks.acknowledge",
|
|
10530
|
+
command: "tasks acknowledge",
|
|
10531
|
+
args: [
|
|
10532
|
+
{ name: "chat", required: true },
|
|
10533
|
+
{ name: "message", required: true },
|
|
10534
|
+
{ name: "since_time", required: false }
|
|
10535
|
+
],
|
|
10536
|
+
why: "once the tasks these {shown} messages hold are opened, updated or closed, so the next review starts after them"
|
|
10537
|
+
},
|
|
9790
10538
|
{
|
|
9791
10539
|
id: "search.meetings",
|
|
9792
10540
|
command: "*",
|
|
@@ -9795,7 +10543,7 @@ var STEPS2 = defineSteps([
|
|
|
9795
10543
|
}
|
|
9796
10544
|
]);
|
|
9797
10545
|
var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
9798
|
-
const definition = STEPS2.find((
|
|
10546
|
+
const definition = STEPS2.find((step2) => step2.id === id6);
|
|
9799
10547
|
if (!definition)
|
|
9800
10548
|
throw new Error(`no step "${id6}"`);
|
|
9801
10549
|
const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
|
|
@@ -9818,7 +10566,7 @@ var commandAt = /* @__PURE__ */ __name((root, path2) => {
|
|
|
9818
10566
|
at2 = at2?.commands.find((one) => one.name() === word || one.aliases().includes(word));
|
|
9819
10567
|
return at2 === root ? void 0 : at2;
|
|
9820
10568
|
}, "commandAt");
|
|
9821
|
-
var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((
|
|
10569
|
+
var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((step2) => step2.kind === "user_action" || commandAt(root, step2.command) !== void 0).slice(0, MAX_NEXT_STEPS), judgedTargets(root)), "runnable");
|
|
9822
10570
|
var failureSteps = /* @__PURE__ */ __name((root, error) => {
|
|
9823
10571
|
const model3 = error.details?.model;
|
|
9824
10572
|
const own = error.reason === "model.not-downloaded" && typeof model3 === "string" ? [
|
|
@@ -9828,33 +10576,91 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
|
|
|
9828
10576
|
] : [];
|
|
9829
10577
|
return runnable(root, [...error.next ?? [], ...own]);
|
|
9830
10578
|
}, "failureSteps");
|
|
9831
|
-
var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((
|
|
9832
|
-
if (
|
|
9833
|
-
return
|
|
9834
|
-
const effects = targets(
|
|
9835
|
-
return { ...
|
|
10579
|
+
var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
|
|
10580
|
+
if (step2.kind === "user_action")
|
|
10581
|
+
return step2;
|
|
10582
|
+
const effects = targets(step2.command)?.effects;
|
|
10583
|
+
return { ...step2, safe_to_auto_execute: effects !== void 0 && !writes(effects) };
|
|
9836
10584
|
}), "withSafety");
|
|
9837
|
-
var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((
|
|
10585
|
+
var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: stepLine(root, step2) } : step2), "withLines");
|
|
9838
10586
|
var kebab = /* @__PURE__ */ __name((name) => name.replaceAll("_", "-"), "kebab");
|
|
9839
10587
|
var quoted2 = /* @__PURE__ */ __name((value) => {
|
|
9840
10588
|
const text5 = String(value);
|
|
9841
10589
|
return /^[\w@:./+-]+$/.test(text5) ? text5 : JSON.stringify(text5);
|
|
9842
10590
|
}, "quoted");
|
|
9843
|
-
var stepLine = /* @__PURE__ */ __name((root,
|
|
9844
|
-
const command = commandAt(root,
|
|
10591
|
+
var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
10592
|
+
const command = commandAt(root, step2.command);
|
|
9845
10593
|
const positional = new Set(command?.registeredArguments.map((argument) => argument.name()) ?? []);
|
|
9846
|
-
const args = Object.entries(
|
|
10594
|
+
const args = Object.entries(step2.args).filter(([, value]) => value !== void 0 && value !== false);
|
|
9847
10595
|
const profile = root.getOptionValue("profile");
|
|
9848
10596
|
return [
|
|
9849
10597
|
root.name(),
|
|
9850
10598
|
...typeof profile === "string" && profile !== "" ? [quoted2(profile)] : [],
|
|
9851
|
-
|
|
9852
|
-
...(command?.registeredArguments ?? []).flatMap((argument) =>
|
|
10599
|
+
step2.command,
|
|
10600
|
+
...(command?.registeredArguments ?? []).flatMap((argument) => step2.args[argument.name()] === void 0 ? [] : [quoted2(step2.args[argument.name()])]),
|
|
9853
10601
|
...args.filter(([name]) => !positional.has(name)).map(([name, value]) => value === true ? `--${kebab(name)}` : `--${kebab(name)} ${quoted2(value)}`)
|
|
9854
10602
|
].join(" ");
|
|
9855
10603
|
}, "stepLine");
|
|
9856
10604
|
|
|
9857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
10606
|
+
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
10607
|
+
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
10608
|
+
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
10609
|
+
var snake2 = /* @__PURE__ */ __name((name) => name.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
10610
|
+
var typed = /* @__PURE__ */ __name((command, key) => command.getOptionValueSource(key) === "cli", "typed");
|
|
10611
|
+
var typedArgs = /* @__PURE__ */ __name((command) => {
|
|
10612
|
+
const root = rootOf2(command);
|
|
10613
|
+
if (root.getOptionValue("fields") !== void 0)
|
|
10614
|
+
return void 0;
|
|
10615
|
+
if (command.options.some((option) => option.negate && typed(command, option.attributeName())))
|
|
10616
|
+
return void 0;
|
|
10617
|
+
const positional = command.registeredArguments.flatMap((argument, index) => {
|
|
10618
|
+
const value = command.processedArgs[index];
|
|
10619
|
+
const word = Array.isArray(value) ? value.join(" ") : value;
|
|
10620
|
+
return word === void 0 || word === "" ? [] : [[argument.name(), word]];
|
|
10621
|
+
});
|
|
10622
|
+
const own = command.options.map((option) => option.attributeName()).filter((key) => typed(command, key)).map((key) => [snake2(key), command.getOptionValue(key)]);
|
|
10623
|
+
const global = CARRIED.filter((key) => typed(root, key)).map((key) => [snake2(key), root.getOptionValue(key)]);
|
|
10624
|
+
return Object.fromEntries([...positional, ...own, ...global]);
|
|
10625
|
+
}, "typedArgs");
|
|
10626
|
+
var declaresRow = /* @__PURE__ */ __name((command) => {
|
|
10627
|
+
const { rows: rows2 } = environmentOf(command);
|
|
10628
|
+
return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
|
|
10629
|
+
}, "declaresRow");
|
|
10630
|
+
var pathOf3 = /* @__PURE__ */ __name((command) => {
|
|
10631
|
+
const words = [];
|
|
10632
|
+
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
10633
|
+
words.unshift(at2.name());
|
|
10634
|
+
return words.join(" ");
|
|
10635
|
+
}, "pathOf");
|
|
10636
|
+
var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
|
|
10637
|
+
kind: "command",
|
|
10638
|
+
step: id6,
|
|
10639
|
+
command: pathOf3(command),
|
|
10640
|
+
args,
|
|
10641
|
+
why,
|
|
10642
|
+
safe_to_auto_execute: true
|
|
10643
|
+
}), "step");
|
|
10644
|
+
var compactStep = /* @__PURE__ */ __name((command, args, why) => rootOf2(command).getOptionValue("compact") === true || !declaresRow(command) ? [] : [
|
|
10645
|
+
step(command, "output.compact", { ...Object.fromEntries(Object.entries(args).filter(([key]) => !NOT_WITH_COMPACT.has(key))), compact: true }, why)
|
|
10646
|
+
], "compactStep");
|
|
10647
|
+
var tooLargeSteps = /* @__PURE__ */ __name((command, { maxBytes, neededBytes }) => {
|
|
10648
|
+
const args = typedArgs(command);
|
|
10649
|
+
if (!args)
|
|
10650
|
+
return [];
|
|
10651
|
+
const limit = Number(command.getOptionValue("limit"));
|
|
10652
|
+
const fits = Math.floor(limit * maxBytes / neededBytes * 0.9);
|
|
10653
|
+
return [
|
|
10654
|
+
...compactStep(command, args, "the answer is over the output cap as JSON; one line per item keeps every ref"),
|
|
10655
|
+
...Number.isSafeInteger(limit) && fits >= 1 && fits < limit ? [step(command, "output.limit", { ...args, limit: fits }, `about ${fits} items fit under the output cap`)] : []
|
|
10656
|
+
];
|
|
10657
|
+
}, "tooLargeSteps");
|
|
10658
|
+
var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
10659
|
+
const args = typedArgs(command);
|
|
10660
|
+
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
10661
|
+
}, "largeAnswerSteps");
|
|
10662
|
+
|
|
10663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
9858
10664
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
9859
10665
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
9860
10666
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -9868,7 +10674,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
9868
10674
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
9869
10675
|
}, "strip");
|
|
9870
10676
|
|
|
9871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
9872
10678
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
9873
10679
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
9874
10680
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -9911,7 +10717,7 @@ var itemOf = /* @__PURE__ */ __name((item, { next = [], missing, meta } = {}) =>
|
|
|
9911
10717
|
};
|
|
9912
10718
|
return body;
|
|
9913
10719
|
}, "itemOf");
|
|
9914
|
-
var
|
|
10720
|
+
var snake3 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
9915
10721
|
var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
|
|
9916
10722
|
const kept = new Set(verbatim);
|
|
9917
10723
|
const convert = /* @__PURE__ */ __name((value) => {
|
|
@@ -9922,7 +10728,7 @@ var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
|
|
|
9922
10728
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => {
|
|
9923
10729
|
if (inner === void 0)
|
|
9924
10730
|
return [];
|
|
9925
|
-
const name =
|
|
10731
|
+
const name = snake3(key);
|
|
9926
10732
|
return [[name, kept.has(key) || kept.has(name) ? inner : convert(inner)]];
|
|
9927
10733
|
}));
|
|
9928
10734
|
}, "convert");
|
|
@@ -9962,7 +10768,16 @@ var sealed = /* @__PURE__ */ __name((value) => {
|
|
|
9962
10768
|
const { meta, ...rest } = withoutProviderRefs(value);
|
|
9963
10769
|
return { ...rest, meta: metaNow(meta) };
|
|
9964
10770
|
}, "sealed");
|
|
9965
|
-
var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((
|
|
10771
|
+
var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: `${step2.line ?? stepLine(root, step2)} ${COMPACT_FLAG}` } : step2), "compactSteps");
|
|
10772
|
+
var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
|
|
10773
|
+
if ((body.next?.length ?? 0) >= MAX_NEXT_STEPS)
|
|
10774
|
+
return body;
|
|
10775
|
+
const added = largeAnswerSteps(command);
|
|
10776
|
+
if (added.length === 0 || Buffer.byteLength(JSON.stringify(body)) <= SOFT_OUTPUT_BYTES)
|
|
10777
|
+
return body;
|
|
10778
|
+
const root = rootOf2(command);
|
|
10779
|
+
return { ...body, next: [...body.next ?? [], ...withLines(root, runnable(root, added))] };
|
|
10780
|
+
}, "withLargeAnswerStep");
|
|
9966
10781
|
var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body : { items: [body.item], page: { mode: "page", limit: 1, has_more: false }, meta: body.meta }), "linesOf");
|
|
9967
10782
|
var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
|
|
9968
10783
|
var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
|
|
@@ -9974,9 +10789,10 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
9974
10789
|
const kept = withoutProviderRefs({ ...body, ...next.length > 0 ? { next } : {} });
|
|
9975
10790
|
if (next.length === 0)
|
|
9976
10791
|
delete kept.next;
|
|
9977
|
-
const
|
|
10792
|
+
const sealedBody = sealed(kept);
|
|
9978
10793
|
const environment = environmentOf(command);
|
|
9979
10794
|
const drawn = compact && !environment.agent;
|
|
10795
|
+
const whole = format === "json" && !drawn && !environment.agent ? withLargeAnswerStep(command, sealedBody) : sealedBody;
|
|
9980
10796
|
if (drawn) {
|
|
9981
10797
|
const lined = whole.next ? { ...whole, next: compactSteps(root, whole.next) } : whole;
|
|
9982
10798
|
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -9996,8 +10812,8 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
9996
10812
|
setExitCode(command, code);
|
|
9997
10813
|
if (drawn || format === "json")
|
|
9998
10814
|
return;
|
|
9999
|
-
for (const
|
|
10000
|
-
renderer.note(
|
|
10815
|
+
for (const step2 of next)
|
|
10816
|
+
renderer.note(step2.kind === "command" ? `\u2192 ${step2.why}: ${stepLine(root, step2)}` : `\u2192 ${step2.why}`);
|
|
10001
10817
|
}, "renderAnswer");
|
|
10002
10818
|
var renderDocument = /* @__PURE__ */ __name(({ renderer }, document2) => renderer.result(document2), "renderDocument");
|
|
10003
10819
|
var itemAnswer = /* @__PURE__ */ __name((item) => sealed(itemOf(item)), "itemAnswer");
|
|
@@ -10062,10 +10878,17 @@ export {
|
|
|
10062
10878
|
AI_ENTRIES,
|
|
10063
10879
|
AI_SETTING_KEYS,
|
|
10064
10880
|
resolveAISettings,
|
|
10881
|
+
botsDirectory,
|
|
10882
|
+
botFiles,
|
|
10883
|
+
ChatRegistry,
|
|
10884
|
+
registryProfiles,
|
|
10885
|
+
REPAIR_WORDS,
|
|
10886
|
+
repairConfigText,
|
|
10065
10887
|
permissionIssues,
|
|
10066
10888
|
settingPathOf,
|
|
10067
10889
|
withoutSetting,
|
|
10068
10890
|
publicIssue,
|
|
10891
|
+
fixVerb,
|
|
10069
10892
|
issueMessage,
|
|
10070
10893
|
checkConfigText,
|
|
10071
10894
|
readConfigText,
|
|
@@ -10076,6 +10899,8 @@ export {
|
|
|
10076
10899
|
rememberAccount,
|
|
10077
10900
|
recalledAccount,
|
|
10078
10901
|
profilesHere,
|
|
10902
|
+
withSettingDefaults,
|
|
10903
|
+
settingRows,
|
|
10079
10904
|
plain,
|
|
10080
10905
|
count2 as count,
|
|
10081
10906
|
flag,
|
|
@@ -10105,6 +10930,12 @@ export {
|
|
|
10105
10930
|
logsInOrOut,
|
|
10106
10931
|
isLogin,
|
|
10107
10932
|
destroysNothing,
|
|
10933
|
+
PROPOSE_COMMANDS,
|
|
10934
|
+
proposesOnly,
|
|
10935
|
+
isProposal,
|
|
10936
|
+
LOCKED_AUTHORITY_COMMANDS,
|
|
10937
|
+
narrowsUnderLock,
|
|
10938
|
+
admittedUnderLock,
|
|
10108
10939
|
changesStore,
|
|
10109
10940
|
fetchesOnly,
|
|
10110
10941
|
fetchesOnlyAt,
|
|
@@ -10191,7 +11022,6 @@ export {
|
|
|
10191
11022
|
entityRows,
|
|
10192
11023
|
rowShapeOf,
|
|
10193
11024
|
compactText,
|
|
10194
|
-
withoutProviderRefs,
|
|
10195
11025
|
nextStep,
|
|
10196
11026
|
lineOf,
|
|
10197
11027
|
rootOf2,
|
|
@@ -10201,6 +11031,8 @@ export {
|
|
|
10201
11031
|
withSafety,
|
|
10202
11032
|
withLines,
|
|
10203
11033
|
stepLine,
|
|
11034
|
+
tooLargeSteps,
|
|
11035
|
+
withoutProviderRefs,
|
|
10204
11036
|
answerSchema,
|
|
10205
11037
|
listOf,
|
|
10206
11038
|
itemOf,
|