@wirecat/zoom-cli 0.69.0 → 0.71.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 +1 -1
- package/dist/account-removal.d.ts +6 -0
- package/dist/account-removal.d.ts.map +1 -0
- package/dist/account-removal.js +43 -0
- package/dist/account-removal.js.map +1 -0
- package/dist/answer-entities.d.ts +2 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-ZQWPCJEK.js → all-profiles-O4YNVPZX.js} +9 -9
- package/dist/bundle/answer-policy-PPSPMCLH.js +104 -0
- package/dist/bundle/{anthropic-7FUQ2HYJ.js → anthropic-7GGRX3RX.js} +20 -9
- package/dist/bundle/{app-server-DNPE2EQB.js → app-server-CPMKM3HI.js} +50 -50
- package/dist/bundle/{bun-ZVQFCFCC.js → bun-POHZKEPV.js} +2 -2
- package/dist/bundle/{bun-sqlite-EB2UMUPJ.js → bun-sqlite-PGYMBPEL.js} +4 -4
- package/dist/bundle/{chunk-R2ULMWB4.js → chunk-2FV5JUQU.js} +39 -593
- package/dist/bundle/{chunk-R3JYPY3J.js → chunk-2KESWII5.js} +2 -2
- package/dist/bundle/{chunk-S2EAGDS7.js → chunk-2RUAMDVV.js} +11 -11
- package/dist/bundle/{chunk-H3MFBYTQ.js → chunk-2U27KIKU.js} +5 -5
- package/dist/bundle/{chunk-KAPJQGHE.js → chunk-2U6SER67.js} +1 -1
- package/dist/bundle/chunk-4LAQDZXU.js +1635 -0
- package/dist/bundle/{chunk-SQT47CFW.js → chunk-4QPQ7MDA.js} +1 -1
- package/dist/bundle/{chunk-MNOVYS43.js → chunk-4QUFFB2U.js} +3 -3
- package/dist/bundle/{chunk-V74QFMSL.js → chunk-54YDWBYG.js} +1 -1
- package/dist/bundle/{chunk-MSDCZ6GT.js → chunk-5J4AMBMM.js} +4 -4
- package/dist/bundle/{chunk-GR3QDHBU.js → chunk-5K7OGPGA.js} +5 -5
- package/dist/bundle/{chunk-WY4NYPPS.js → chunk-5LJTU4LY.js} +12 -12
- package/dist/bundle/{chunk-MJMVIFSC.js → chunk-633QXP57.js} +10 -8
- package/dist/bundle/{chunk-EPPSMCEV.js → chunk-64ZHF6PJ.js} +1 -1
- package/dist/bundle/{chunk-ZRHMB3LQ.js → chunk-77TCCHMP.js} +1 -1
- package/dist/bundle/{chunk-BOAMDYLY.js → chunk-7QC4M4HS.js} +2 -2
- package/dist/bundle/{chunk-O7L44JK2.js → chunk-7ROXXRGG.js} +3933 -1525
- package/dist/bundle/{chunk-MVDPZRFE.js → chunk-ALIT5QFT.js} +1 -1
- package/dist/bundle/{chunk-6N2D6JGX.js → chunk-BBTQIVFP.js} +1 -1
- package/dist/bundle/{chunk-QXM7S3Y3.js → chunk-BGTEVIW4.js} +5 -5
- package/dist/bundle/{chunk-JX5JJZC3.js → chunk-CFQF6IGY.js} +2 -2
- package/dist/bundle/{chunk-5GOE6PQK.js → chunk-CKPCVEXU.js} +5 -5
- package/dist/bundle/{chunk-6KMTQX3D.js → chunk-CRFOGYDG.js} +1 -1
- package/dist/bundle/{chunk-5H6VTEEC.js → chunk-CT4WVR4N.js} +2 -2
- package/dist/bundle/{chunk-3TPRYZUW.js → chunk-DHWBSXG3.js} +23 -23
- package/dist/bundle/{chunk-IPBZKUC3.js → chunk-DIQLXAAZ.js} +3 -3
- package/dist/bundle/{chunk-JZ4YOAHA.js → chunk-DK6ICIGL.js} +4558 -1670
- package/dist/bundle/{chunk-OSBHEM2A.js → chunk-DRBQDCDU.js} +10 -10
- package/dist/bundle/{chunk-G6IX2MD2.js → chunk-DSVZEXYJ.js} +1104 -948
- package/dist/bundle/{chunk-B6JMVB6R.js → chunk-EOSVN2ER.js} +1 -1
- package/dist/bundle/{chunk-MOTKS7XG.js → chunk-FSHCAWZS.js} +29354 -16490
- package/dist/bundle/{chunk-TKXLWFM2.js → chunk-GGS6D4W4.js} +3 -3
- package/dist/bundle/{chunk-4APZQYCH.js → chunk-GL3MYFMX.js} +4 -4
- package/dist/bundle/{chunk-LDRQ5NAP.js → chunk-GXF5HFFP.js} +3 -3
- package/dist/bundle/{chunk-5ZF6QVMC.js → chunk-HB6XJQ3Y.js} +4 -4
- package/dist/bundle/{chunk-QW5VPZEH.js → chunk-I4DFFR7F.js} +23 -1
- package/dist/bundle/{chunk-DHD25JII.js → chunk-IAV5BG3I.js} +1 -1
- package/dist/bundle/{chunk-52DCABMU.js → chunk-IED3NS7G.js} +30 -38
- package/dist/bundle/{chunk-LQX74VKG.js → chunk-INVTDIF6.js} +1 -1
- package/dist/bundle/{chunk-CKK6JOC4.js → chunk-KMV7GZB6.js} +2 -2
- package/dist/bundle/{chunk-XRZDYWF6.js → chunk-LE7MDAQG.js} +2 -2
- package/dist/bundle/{chunk-B5D7NZI7.js → chunk-M76MXMLY.js} +1 -1
- package/dist/bundle/{chunk-37B7A4RP.js → chunk-MEED7YFG.js} +1 -1
- package/dist/bundle/{chunk-LEA4BGK7.js → chunk-MRI6QMZ3.js} +11 -11
- package/dist/bundle/{chunk-6TICX3MN.js → chunk-MW4EGDDV.js} +2 -2
- package/dist/bundle/{chunk-SZ3Z4ZNO.js → chunk-N2FNMION.js} +1 -1
- package/dist/bundle/{chunk-CUZHKYC2.js → chunk-OHWMIUCT.js} +450 -641
- package/dist/bundle/{chunk-KNE6VFHZ.js → chunk-OORMSM6O.js} +1 -1
- package/dist/bundle/{chunk-Z6TTGTMU.js → chunk-OWEBWDHV.js} +76 -6
- package/dist/bundle/{chunk-5ZJXKASF.js → chunk-P3XC6EDU.js} +17 -21
- package/dist/bundle/chunk-Q2SUFGSH.js +136 -0
- package/dist/bundle/{chunk-TFFEFEG2.js → chunk-Q3XLZIY3.js} +18 -18
- package/dist/bundle/{chunk-IEC4E65G.js → chunk-Q5PI72CR.js} +5 -1
- package/dist/bundle/{chunk-V4MM6GST.js → chunk-QTHIU7CO.js} +1 -1
- package/dist/bundle/{chunk-JHFP3Z5S.js → chunk-QVSLSWAL.js} +8 -8
- package/dist/bundle/{chunk-QLGG7S6F.js → chunk-RN4EHCC5.js} +22 -4
- package/dist/bundle/{chunk-BL36NSV5.js → chunk-RQG5VOGH.js} +12 -2
- package/dist/bundle/{chunk-RPQ3JOD3.js → chunk-SELXER2Q.js} +5 -5
- package/dist/bundle/{chunk-KX5MZVPX.js → chunk-TM4JSVGQ.js} +60 -53
- package/dist/bundle/{chunk-TN77LX6W.js → chunk-UG447QY2.js} +1 -1
- package/dist/bundle/{chunk-HC56J5LB.js → chunk-ULDXZ6LH.js} +66 -59
- package/dist/bundle/chunk-USQ23X5V.js +1227 -0
- package/dist/bundle/{chunk-UEZ6URJR.js → chunk-VJXHIUFP.js} +19 -19
- package/dist/bundle/{chunk-TWIC6JJG.js → chunk-VRH7VRTK.js} +7 -7
- package/dist/bundle/{chunk-NRRI37NJ.js → chunk-WOIHSQAL.js} +44 -0
- package/dist/bundle/{chunk-L62EJDNZ.js → chunk-X277FBTF.js} +3 -3
- package/dist/bundle/{chunk-XITUFTON.js → chunk-X3ZDN3U7.js} +1 -1
- package/dist/bundle/{chunk-GXDOTUUO.js → chunk-X4GWR6GO.js} +9 -9
- package/dist/bundle/chunk-XI3VIQKW.js +756 -0
- package/dist/bundle/{chunk-FBLUKCIR.js → chunk-XRFHQGOD.js} +1 -1
- package/dist/bundle/{chunk-HW5QTRFF.js → chunk-YD2RYVMK.js} +36 -36
- package/dist/bundle/{chunk-XJBYGMZ4.js → chunk-YPO2U2YB.js} +669 -458
- package/dist/bundle/{chunk-C6TEYKXV.js → chunk-ZBFL5JPT.js} +8 -7
- package/dist/bundle/{chunk-7AUP2WT3.js → chunk-ZBKWRYRS.js} +2 -2
- package/dist/bundle/{chunk-HSI7YOYK.js → chunk-ZVI6TFQR.js} +100 -43
- package/dist/bundle/{cli-P3BZUE6S.js → cli-KHMEUXNG.js} +123 -68
- package/dist/bundle/command-contract-4K6XXZYE.js +41 -0
- package/dist/bundle/config-EEDB632I.js +90 -0
- package/dist/bundle/{decode-QWOQXM7M.js → decode-7RP4HSVE.js} +4 -4
- package/dist/bundle/{dispatch-5MGDLOK4.js → dispatch-IZCAK47P.js} +1 -1
- package/dist/bundle/{dist-OUE4MF37.js → dist-BFT2SUBV.js} +87 -51
- package/dist/bundle/{echarts-65IMPY43.js → echarts-T2BSQ2YV.js} +2 -2
- package/dist/bundle/{embed-4IULBCKL.js → embed-BAS6YPDT.js} +5 -5
- package/dist/bundle/{embedder-JW4W6IZI.js → embedder-5XD5FCAO.js} +8 -8
- package/dist/bundle/{failure-CR64C4XA.js → failure-R2OIHCE5.js} +1 -1
- package/dist/bundle/{first-run-CH6C674R.js → first-run-23WWZ2PW.js} +8 -8
- package/dist/bundle/first-screen-6HFUYVFR.js +39 -0
- package/dist/bundle/{folders-VU4IN35Y.js → folders-ZXTOFY4T.js} +3 -3
- package/dist/bundle/{instructions-G5QIH2TM.js → instructions-XZPROPKY.js} +1 -1
- package/dist/bundle/{main-O4ZJIEWP.js → main-TZXKGL3L.js} +18 -18
- package/dist/bundle/{meetings-77CCAVYD.js → meetings-JB2ISPND.js} +6 -4
- package/dist/bundle/{node-E6VQHU4Y.js → node-A3B3MJWX.js} +2 -2
- package/dist/bundle/{node-sqlite-RJZ4PGLD.js → node-sqlite-QVWDLGDX.js} +5 -5
- package/dist/bundle/{oauth-F4JKNRW4.js → oauth-YA6IYV4O.js} +6 -6
- package/dist/bundle/{open-NYOGMIAA.js → open-SY7TXJBS.js} +4 -4
- package/dist/bundle/{openai-5U6EQTFQ.js → openai-2AU24NRN.js} +10 -10
- package/dist/bundle/{output-file-6COFGPUL.js → output-file-YGQYZCBJ.js} +4 -4
- package/dist/bundle/{process-OBWUKBMX.js → process-6HNBTJIY.js} +1 -1
- package/dist/bundle/{program-MU7DEJTO.js → program-77BUCJ4H.js} +132 -100
- package/dist/bundle/{prompt-2QWQTHWT.js → prompt-YDG73YDS.js} +6 -4
- package/dist/bundle/{recognize-SNUNTUC3.js → recognize-ECXDGTB7.js} +3 -3
- package/dist/bundle/{remote-2CTCIQGF.js → remote-K4JHGBVJ.js} +6 -6
- package/dist/bundle/{rerank-XDA7NJNH.js → rerank-IU2YYD4T.js} +6 -6
- package/dist/bundle/{run-log-NSG3DJVX.js → run-log-LFEXNZ74.js} +54 -54
- package/dist/bundle/{serve-TWQFHOV2.js → serve-3XWIF3HI.js} +8 -8
- package/dist/bundle/{server-RIQ6HMH2.js → server-56VYOHWP.js} +42 -42
- package/dist/bundle/server-YSTMUZ22.js +72 -0
- package/dist/bundle/{services-NKZQJQIV.js → services-X7IPEGQ5.js} +118 -36
- package/dist/bundle/{speech-ZOB76SXA.js → speech-E2OBQWYA.js} +12 -12
- package/dist/bundle/{state-7YYEIXQ5.js → state-4GMJYK4H.js} +5 -5
- package/dist/bundle/{store-OX4HRBLO.js → store-KPI7GB5Y.js} +49 -22
- package/dist/bundle/{store-E6RTSSNR.js → store-LA4TV4DM.js} +39 -16
- package/dist/bundle/store-connection-AZTIF6IH.js +83 -0
- package/dist/bundle/store-maintenance-command-LR572PS4.js +61 -0
- package/dist/bundle/{streaming-O53PIORL.js → streaming-EJ3NM2C2.js} +5 -5
- package/dist/bundle/{tokens-QKNEP2GJ.js → tokens-BE6CJMR5.js} +5 -5
- package/dist/bundle/zm.js +3 -3
- package/dist/bundle/{zoom-app-TSI2MGVK.js → zoom-app-QEJBTIJ4.js} +6 -6
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -6
- package/dist/contract-overrides.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +1 -0
- package/dist/first-screen.js.map +1 -1
- package/dist/ingestion-search-commands.d.ts.map +1 -1
- package/dist/ingestion-search-commands.js +0 -10
- package/dist/ingestion-search-commands.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +8 -6
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-integration.d.ts +3 -1
- package/dist/meeting-integration.d.ts.map +1 -1
- package/dist/permissions.js +1 -1
- package/dist/permissions.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +11 -0
- package/dist/setup-commands.js.map +1 -1
- package/dist/store-connection.d.ts.map +1 -1
- package/dist/store-connection.js +4 -3
- package/dist/store-connection.js.map +1 -1
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +11 -0
- package/dist/tokens.js.map +1 -1
- package/dist/unified-search.d.ts +4 -4
- package/dist/unified-search.d.ts.map +1 -1
- package/dist/unified-search.js +1 -24
- package/dist/unified-search.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/zoom-cli/SKILL.md +2 -2
- package/dist/bundle/answer-policy-VBDYLUXI.js +0 -104
- package/dist/bundle/chunk-2SYWVIQJ.js +0 -33
- package/dist/bundle/chunk-6AMMTXEA.js +0 -12473
- package/dist/bundle/chunk-F5DYBWH7.js +0 -299
- package/dist/bundle/chunk-T5X4LGXE.js +0 -380
- package/dist/bundle/command-contract-TOLB32NJ.js +0 -41
- package/dist/bundle/config-4KLLIADY.js +0 -90
- package/dist/bundle/first-screen-OCAW5ZN6.js +0 -39
- package/dist/bundle/server-XO6XQQTJ.js +0 -72
- package/dist/bundle/store-connection-55QPNUDS.js +0 -83
- package/dist/bundle/store-maintenance-command-Q5MSU6OK.js +0 -62
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
envName,
|
|
5
|
-
readOnlyLockOf,
|
|
6
|
-
readOnlyRefusal
|
|
7
|
-
} from "./chunk-TN77LX6W.js";
|
|
8
3
|
import {
|
|
9
4
|
currentCaller,
|
|
10
5
|
endpointTemplate,
|
|
@@ -14,51 +9,46 @@ import {
|
|
|
14
9
|
providerErrorKey,
|
|
15
10
|
renderEvent,
|
|
16
11
|
runContextOf
|
|
17
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-633QXP57.js";
|
|
18
13
|
import {
|
|
19
14
|
permissionCeiling
|
|
20
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DIQLXAAZ.js";
|
|
21
16
|
import {
|
|
22
17
|
fieldsOf,
|
|
23
18
|
projectFields,
|
|
24
19
|
resolveOutput
|
|
25
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SELXER2Q.js";
|
|
26
21
|
import {
|
|
27
22
|
carries
|
|
28
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ALIT5QFT.js";
|
|
29
24
|
import {
|
|
30
25
|
DEFAULT_HISTORY_LIMITS,
|
|
31
26
|
DEFAULT_RERANK_MODEL,
|
|
32
27
|
HISTORY_MAX_DAYS,
|
|
33
28
|
IMAGE_MODELS,
|
|
34
|
-
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
35
|
-
LOG_ATTRIBUTES,
|
|
36
29
|
RERANK_MODELS,
|
|
37
|
-
RUNS_SIZE_LIMIT_MB,
|
|
38
30
|
WEIGHTS,
|
|
39
31
|
agenda,
|
|
40
32
|
attachment,
|
|
41
|
-
childTrace,
|
|
42
33
|
closeSuggestion,
|
|
43
34
|
conversation,
|
|
44
|
-
|
|
45
|
-
enclosingTraceId,
|
|
35
|
+
endpoint,
|
|
46
36
|
hitFile,
|
|
47
|
-
|
|
48
|
-
logAttributes,
|
|
49
|
-
newRunId,
|
|
37
|
+
modelSettingsShape,
|
|
50
38
|
parseDuration,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
progressOf,
|
|
40
|
+
resolveModelSettings,
|
|
41
|
+
runBudget,
|
|
54
42
|
stopWrites,
|
|
55
43
|
tagging,
|
|
56
44
|
task,
|
|
57
|
-
traceOf,
|
|
58
|
-
typedCommand,
|
|
59
|
-
useAsProcessRun,
|
|
60
45
|
withWriteScope
|
|
61
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-OHWMIUCT.js";
|
|
47
|
+
import {
|
|
48
|
+
envName,
|
|
49
|
+
readOnlyLockOf,
|
|
50
|
+
readOnlyRefusal
|
|
51
|
+
} from "./chunk-UG447QY2.js";
|
|
62
52
|
import {
|
|
63
53
|
CEILING_KEY,
|
|
64
54
|
COMMAND_PATH_KEY,
|
|
@@ -69,18 +59,23 @@ import {
|
|
|
69
59
|
keyForCommand,
|
|
70
60
|
layerPermissions,
|
|
71
61
|
permissionOverrides
|
|
72
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-Q5PI72CR.js";
|
|
73
63
|
import {
|
|
74
64
|
note
|
|
75
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-X277FBTF.js";
|
|
76
66
|
import {
|
|
67
|
+
CATEGORIES,
|
|
77
68
|
FACT_STATUSES,
|
|
69
|
+
KEEP_STORE_RUNS_FOR_DAYS,
|
|
70
|
+
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
78
71
|
LINK_KINDS,
|
|
79
72
|
LINK_SOURCES,
|
|
73
|
+
LOG_ATTRIBUTES,
|
|
80
74
|
MEMORY_KINDS,
|
|
81
75
|
MEMORY_SCOPES,
|
|
82
76
|
MEMORY_STATUSES,
|
|
83
77
|
PRIORITY_LABELS,
|
|
78
|
+
RUNS_SIZE_LIMIT_MB,
|
|
84
79
|
TASK_KINDS,
|
|
85
80
|
TASK_ORIGINS,
|
|
86
81
|
TASK_STATES,
|
|
@@ -88,37 +83,56 @@ import {
|
|
|
88
83
|
TASK_VERDICTS,
|
|
89
84
|
WORK_TASK_TYPES,
|
|
90
85
|
author,
|
|
86
|
+
childTrace,
|
|
91
87
|
count,
|
|
88
|
+
currentRun,
|
|
89
|
+
enclosingTraceId,
|
|
92
90
|
evidenceSource,
|
|
93
91
|
id,
|
|
92
|
+
inRun,
|
|
93
|
+
isGroupName,
|
|
94
|
+
logAttributes,
|
|
94
95
|
markStoreDamaged,
|
|
96
|
+
newRunId,
|
|
95
97
|
organization,
|
|
96
98
|
project,
|
|
97
99
|
providerMetadata,
|
|
98
100
|
reminder,
|
|
101
|
+
runsDirFor,
|
|
102
|
+
snakeLogger,
|
|
103
|
+
sourceReview,
|
|
104
|
+
startRun,
|
|
99
105
|
text,
|
|
100
106
|
time,
|
|
101
|
-
|
|
102
|
-
|
|
107
|
+
traceOf,
|
|
108
|
+
typedCommand,
|
|
109
|
+
untrusted,
|
|
110
|
+
useAsProcessRun
|
|
111
|
+
} from "./chunk-USQ23X5V.js";
|
|
103
112
|
import {
|
|
104
113
|
isCliFailure,
|
|
105
114
|
storeDamaged
|
|
106
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-MEED7YFG.js";
|
|
107
116
|
import {
|
|
108
117
|
sharedConfigPath
|
|
109
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-5K7OGPGA.js";
|
|
110
119
|
import {
|
|
120
|
+
BUSINESS_KINDS,
|
|
121
|
+
DEAL_KINDS,
|
|
111
122
|
DEAL_ROLES,
|
|
123
|
+
DEAL_STATUSES,
|
|
124
|
+
FINANCE_REVIEWS,
|
|
112
125
|
INVOICE_DIRECTIONS,
|
|
126
|
+
INVOICE_STATUSES,
|
|
113
127
|
MONEY_DIRECTIONS,
|
|
114
128
|
ORDER_PURPOSES,
|
|
115
129
|
ORDER_STATUSES,
|
|
116
130
|
RELATION_KINDS,
|
|
117
131
|
STANDINGS
|
|
118
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-XI3VIQKW.js";
|
|
119
133
|
import {
|
|
120
134
|
storePath
|
|
121
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-KMV7GZB6.js";
|
|
122
136
|
import {
|
|
123
137
|
FACT_TYPES,
|
|
124
138
|
MEETING_RESULT_ENTITIES,
|
|
@@ -136,12 +150,12 @@ import {
|
|
|
136
150
|
meetingStats,
|
|
137
151
|
meetingSummary,
|
|
138
152
|
meetingTranscript
|
|
139
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-ULDXZ6LH.js";
|
|
140
154
|
import {
|
|
141
155
|
FIELD_TYPES,
|
|
142
156
|
QUERY_BACKENDS,
|
|
143
157
|
describeQuery
|
|
144
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-EOSVN2ER.js";
|
|
145
159
|
import {
|
|
146
160
|
configFilePath,
|
|
147
161
|
createRecordLog,
|
|
@@ -150,7 +164,7 @@ import {
|
|
|
150
164
|
resolvePaths,
|
|
151
165
|
saveConfigFile,
|
|
152
166
|
writeSecurely
|
|
153
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-OORMSM6O.js";
|
|
154
168
|
import {
|
|
155
169
|
COMPACT_FLAG,
|
|
156
170
|
MAX_NEXT_STEPS,
|
|
@@ -161,7 +175,6 @@ import {
|
|
|
161
175
|
defineSteps,
|
|
162
176
|
effectsSchema,
|
|
163
177
|
exitCodeOfAnswer,
|
|
164
|
-
getDotPath,
|
|
165
178
|
integer,
|
|
166
179
|
isoDate,
|
|
167
180
|
isoTime,
|
|
@@ -202,7 +215,7 @@ import {
|
|
|
202
215
|
unwrap,
|
|
203
216
|
variant,
|
|
204
217
|
writes
|
|
205
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-WOIHSQAL.js";
|
|
206
219
|
import {
|
|
207
220
|
CliError
|
|
208
221
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -3722,7 +3735,7 @@ var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidd
|
|
|
3722
3735
|
var snapshot = /* @__PURE__ */ __name((command, known = /* @__PURE__ */ new Map(), children) => {
|
|
3723
3736
|
if (hidden(command))
|
|
3724
3737
|
throw new Error("a hidden command cannot own a shared contract");
|
|
3725
|
-
const { commands:
|
|
3738
|
+
const { commands: _2, usage: __, path: ___, ...contract } = describeAlone(command, known);
|
|
3726
3739
|
return {
|
|
3727
3740
|
...contract,
|
|
3728
3741
|
aliases: [...command.aliases()],
|
|
@@ -4008,7 +4021,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
4008
4021
|
}
|
|
4009
4022
|
}, "refuseJoinedPath");
|
|
4010
4023
|
|
|
4011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4012
4025
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4013
4026
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4014
4027
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4018,6 +4031,7 @@ var CORE_LOG_EVENTS = defineLogEvents([
|
|
|
4018
4031
|
meaning: "a read was answered from what was kept, without asking the messenger",
|
|
4019
4032
|
keys: ["operation", "reason"]
|
|
4020
4033
|
},
|
|
4034
|
+
{ id: "store.write", meaning: "a committed write changed rows of one store table", keys: ["table", "op", "n"] },
|
|
4021
4035
|
{ id: "command.crashed", meaning: "a command failed on a bug; where, never what", keys: ["error_class", "frames"] },
|
|
4022
4036
|
{
|
|
4023
4037
|
id: "events.dropped",
|
|
@@ -4039,10 +4053,11 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4039
4053
|
request: "provider.request",
|
|
4040
4054
|
response: "provider.response",
|
|
4041
4055
|
warning: "client.warning",
|
|
4042
|
-
cache: "cache.answered"
|
|
4056
|
+
cache: "cache.answered",
|
|
4057
|
+
store: "store.write"
|
|
4043
4058
|
};
|
|
4044
4059
|
|
|
4045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4046
4061
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4047
4062
|
const recording = startRecording(options);
|
|
4048
4063
|
try {
|
|
@@ -4088,6 +4103,7 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
4088
4103
|
}, "onError"),
|
|
4089
4104
|
...options.keepDays === void 0 ? {} : { keepDays: options.keepDays },
|
|
4090
4105
|
...options.keepSuccessDays === void 0 ? {} : { keepSuccessDays: options.keepSuccessDays },
|
|
4106
|
+
...options.keepStoreDays === void 0 ? {} : { keepStoreDays: options.keepStoreDays },
|
|
4091
4107
|
...options.maxBytes === void 0 ? {} : { maxBytes: options.maxBytes },
|
|
4092
4108
|
now,
|
|
4093
4109
|
...extra
|
|
@@ -4096,6 +4112,7 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
4096
4112
|
const held = !run && options.keepFailed ? [] : void 0;
|
|
4097
4113
|
const counted = { wire: 0, operation: 0 };
|
|
4098
4114
|
let refused;
|
|
4115
|
+
let wroteStore = false;
|
|
4099
4116
|
const cap = capped();
|
|
4100
4117
|
const requests = /* @__PURE__ */ __name(() => counted.wire > 0 ? counted.wire : counted.operation, "requests");
|
|
4101
4118
|
const events2 = /* @__PURE__ */ __name((event2) => {
|
|
@@ -4103,6 +4120,8 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
4103
4120
|
counted[event2.level === "wire" ? "wire" : "operation"] += 1;
|
|
4104
4121
|
if (event2.event === "response" && event2.outcome === "error")
|
|
4105
4122
|
refused = event2;
|
|
4123
|
+
if (event2.event === "store")
|
|
4124
|
+
wroteStore = true;
|
|
4106
4125
|
if (options.trace)
|
|
4107
4126
|
streams.diagnostic(options.format === "pretty" ? renderEvent(event2) : JSON.stringify(logAttributes(event2)));
|
|
4108
4127
|
if (run)
|
|
@@ -4124,13 +4143,14 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
4124
4143
|
events: events2,
|
|
4125
4144
|
succeed: /* @__PURE__ */ __name(async (answer) => {
|
|
4126
4145
|
const partial2 = partialOutcome(answer);
|
|
4127
|
-
const kept = run ?? (partial2 && held ? keep(open({ startedAt })) : void 0);
|
|
4146
|
+
const kept = run ?? ((partial2 || wroteStore) && held ? keep(open({ startedAt })) : void 0);
|
|
4128
4147
|
if (kept)
|
|
4129
4148
|
cap.close(kept);
|
|
4130
4149
|
await kept?.finish(partial2 ? "partial" : "success", {
|
|
4131
4150
|
requests: requests(),
|
|
4132
4151
|
...cap.dropped(),
|
|
4133
|
-
...partial2 ? { partial: partial2 } : {}
|
|
4152
|
+
...partial2 ? { partial: partial2 } : {},
|
|
4153
|
+
...!run && !partial2 && wroteStore ? { keptBecauseStore: true } : {}
|
|
4134
4154
|
});
|
|
4135
4155
|
}, "succeed"),
|
|
4136
4156
|
fail: /* @__PURE__ */ __name(async (thrown) => {
|
|
@@ -4165,25 +4185,43 @@ var wasSettled = /* @__PURE__ */ __name((error) => typeof error === "object" &&
|
|
|
4165
4185
|
var HELD_AT_MOST = 500;
|
|
4166
4186
|
var EVENTS_AT_MOST = 2e3;
|
|
4167
4187
|
var EVENT_BYTES_AT_MOST = 1024 * 1024;
|
|
4188
|
+
var STORE_EVENTS_AT_MOST = 100;
|
|
4168
4189
|
var capped = /* @__PURE__ */ __name(() => {
|
|
4169
4190
|
let lines = 0;
|
|
4170
4191
|
let bytes = 0;
|
|
4171
4192
|
let dropped = 0;
|
|
4193
|
+
let stores = 0;
|
|
4172
4194
|
const byOperation = {};
|
|
4195
|
+
const summed = /* @__PURE__ */ new Map();
|
|
4196
|
+
const write = /* @__PURE__ */ __name((run, event2) => {
|
|
4197
|
+
const size = JSON.stringify(logAttributes(event2)).length + 200;
|
|
4198
|
+
if (lines >= EVENTS_AT_MOST || bytes + size > EVENT_BYTES_AT_MOST) {
|
|
4199
|
+
dropped += 1;
|
|
4200
|
+
const operation = "operation" in event2 && event2.operation ? event2.operation : event2.event;
|
|
4201
|
+
byOperation[operation] = (byOperation[operation] ?? 0) + 1;
|
|
4202
|
+
return;
|
|
4203
|
+
}
|
|
4204
|
+
lines += 1;
|
|
4205
|
+
bytes += size;
|
|
4206
|
+
logEvent(run, event2);
|
|
4207
|
+
}, "write");
|
|
4173
4208
|
return {
|
|
4174
4209
|
log: /* @__PURE__ */ __name((run, event2) => {
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4210
|
+
if (event2.event === "store" && ++stores > STORE_EVENTS_AT_MOST) {
|
|
4211
|
+
const key = `${event2.table} ${event2.op}`;
|
|
4212
|
+
const sum = summed.get(key);
|
|
4213
|
+
if (sum)
|
|
4214
|
+
sum.n += event2.n;
|
|
4215
|
+
else
|
|
4216
|
+
summed.set(key, { ...event2 });
|
|
4180
4217
|
return;
|
|
4181
4218
|
}
|
|
4182
|
-
|
|
4183
|
-
bytes += size;
|
|
4184
|
-
logEvent(run, event2);
|
|
4219
|
+
write(run, event2);
|
|
4185
4220
|
}, "log"),
|
|
4186
4221
|
close: /* @__PURE__ */ __name((run) => {
|
|
4222
|
+
for (const sum of summed.values())
|
|
4223
|
+
write(run, sum);
|
|
4224
|
+
summed.clear();
|
|
4187
4225
|
if (dropped > 0)
|
|
4188
4226
|
run.logger.warn({ event: "events.dropped", dropped, counts: byOperation });
|
|
4189
4227
|
}, "close"),
|
|
@@ -4198,7 +4236,7 @@ var logEvent = /* @__PURE__ */ __name((run, event2) => {
|
|
|
4198
4236
|
};
|
|
4199
4237
|
if (event2.event === "warning")
|
|
4200
4238
|
run.logger.warn(record2);
|
|
4201
|
-
else if (event2.event
|
|
4239
|
+
else if ((event2.event === "request" || event2.event === "response") && event2.outcome === "error")
|
|
4202
4240
|
run.logger.error(record2);
|
|
4203
4241
|
else
|
|
4204
4242
|
run.logger.info(record2);
|
|
@@ -4234,14 +4272,14 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4234
4272
|
return void 0;
|
|
4235
4273
|
}, "partialOutcome");
|
|
4236
4274
|
|
|
4237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4238
4276
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
4239
4277
|
if (ms2 === void 0)
|
|
4240
4278
|
return body();
|
|
4241
4279
|
let timer2;
|
|
4242
4280
|
let timedOut;
|
|
4243
4281
|
const writes2 = /* @__PURE__ */ new Set();
|
|
4244
|
-
const expired = new Promise((
|
|
4282
|
+
const expired = new Promise((_2, reject) => {
|
|
4245
4283
|
timer2 = setTimeout(() => {
|
|
4246
4284
|
const pending = [...writes2];
|
|
4247
4285
|
const cut2 = pending.filter((write) => !write.preparing);
|
|
@@ -4260,7 +4298,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
4260
4298
|
}
|
|
4261
4299
|
}, "withDeadline");
|
|
4262
4300
|
|
|
4263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4264
4302
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4265
4303
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4266
4304
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4285,7 +4323,7 @@ var execution = /* @__PURE__ */ __name((streams, { timeoutMs, fields, maxOutputB
|
|
|
4285
4323
|
let interrupted;
|
|
4286
4324
|
let reject = /* @__PURE__ */ __name(() => {
|
|
4287
4325
|
}, "reject");
|
|
4288
|
-
const interruption = new Promise((
|
|
4326
|
+
const interruption = new Promise((_2, fail) => {
|
|
4289
4327
|
reject = fail;
|
|
4290
4328
|
});
|
|
4291
4329
|
void interruption.catch(() => {
|
|
@@ -4432,7 +4470,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4432
4470
|
throw signal.reason;
|
|
4433
4471
|
let abort = /* @__PURE__ */ __name(() => {
|
|
4434
4472
|
}, "abort");
|
|
4435
|
-
const interrupted = new Promise((
|
|
4473
|
+
const interrupted = new Promise((_2, reject) => {
|
|
4436
4474
|
abort = /* @__PURE__ */ __name(() => reject(signal.reason), "abort");
|
|
4437
4475
|
signal.addEventListener("abort", abort, { once: true });
|
|
4438
4476
|
});
|
|
@@ -4443,7 +4481,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4443
4481
|
}
|
|
4444
4482
|
}, "withAbort");
|
|
4445
4483
|
|
|
4446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4447
4485
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4448
4486
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4449
4487
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4478,6 +4516,24 @@ var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */
|
|
|
4478
4516
|
return { rest: argv };
|
|
4479
4517
|
return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
|
|
4480
4518
|
}, "liftProfile");
|
|
4519
|
+
var runGroup = /* @__PURE__ */ __name((app, env, word) => {
|
|
4520
|
+
const GROUP = envName(app, "GROUP");
|
|
4521
|
+
const LOCK = envName(app, "GROUP_LOCK");
|
|
4522
|
+
const lock = env[LOCK]?.trim() || void 0;
|
|
4523
|
+
const named2 = word ?? (env[GROUP]?.trim() || void 0);
|
|
4524
|
+
const from = word === void 0 ? GROUP : "first word";
|
|
4525
|
+
for (const [name, origin] of [
|
|
4526
|
+
[named2, from],
|
|
4527
|
+
[lock, LOCK]
|
|
4528
|
+
])
|
|
4529
|
+
if (name !== void 0 && !isGroupName(name))
|
|
4530
|
+
throw new CliError("validation_error", `"${name}" (${origin}) is not a group name \u2014 letters, digits, - and _, starting with a letter or a digit`);
|
|
4531
|
+
if (lock === void 0 || lock.toLowerCase() === "all")
|
|
4532
|
+
return named2 === void 0 || named2.toLowerCase() === "all" ? void 0 : { name: named2, from, locked: false };
|
|
4533
|
+
if (named2 !== void 0 && named2 !== lock)
|
|
4534
|
+
throw new CliError("permission_error", `this process is locked to group ${lock} (${LOCK}) \u2014 group "${named2}" (${from}) is refused`);
|
|
4535
|
+
return { name: lock, from: LOCK, locked: true };
|
|
4536
|
+
}, "runGroup");
|
|
4481
4537
|
var valuedOptions = /* @__PURE__ */ __name((program2) => new Set(program2.options.filter((option) => option.required).flatMap((option) => [option.long, option.short].filter((flag2) => flag2 !== void 0))), "valuedOptions");
|
|
4482
4538
|
var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
|
|
4483
4539
|
if (words.has(profile)) {
|
|
@@ -4512,86 +4568,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4512
4568
|
return void 0;
|
|
4513
4569
|
}, "sampleCommand");
|
|
4514
4570
|
|
|
4515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4516
|
-
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
4517
|
-
try {
|
|
4518
|
-
const url2 = new URL(value);
|
|
4519
|
-
return ["https:", "http:"].includes(url2.protocol) && !url2.username && !url2.password && !url2.search && !url2.hash;
|
|
4520
|
-
} catch {
|
|
4521
|
-
return false;
|
|
4522
|
-
}
|
|
4523
|
-
}, "endpoint");
|
|
4524
|
-
|
|
4525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4526
|
-
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4527
|
-
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4528
|
-
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
4529
|
-
model: optional(pipe(string(), trim(), minLength(1), maxLength(200))),
|
|
4530
|
-
base_url: optional(pipe(string(), check((value) => endpoint(value), "use an HTTP/S endpoint without credentials, query or fragment")))
|
|
4531
|
-
}));
|
|
4532
|
-
var resolveModelSettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
4533
|
-
const configured = layers.map(([from, scope]) => [from, scope?.models ?? {}]);
|
|
4534
|
-
const purposes = /* @__PURE__ */ new Set([
|
|
4535
|
-
"default",
|
|
4536
|
-
"analysis",
|
|
4537
|
-
"replies",
|
|
4538
|
-
...configured.flatMap(([, models2]) => Object.keys(models2))
|
|
4539
|
-
]);
|
|
4540
|
-
for (const name of Object.keys(env)) {
|
|
4541
|
-
const match = new RegExp(`^${prefix}_MODELS_([A-Z][A-Z0-9_]*)_(PROVIDER|MODEL|BASE_URL)$`).exec(name);
|
|
4542
|
-
if (match?.[1])
|
|
4543
|
-
purposes.add(match[1].toLowerCase().replaceAll("_", "-"));
|
|
4544
|
-
}
|
|
4545
|
-
const models = {};
|
|
4546
|
-
const sources = {};
|
|
4547
|
-
for (const purpose of purposes) {
|
|
4548
|
-
const resolved = {};
|
|
4549
|
-
for (const field of MODEL_FIELDS) {
|
|
4550
|
-
const variable = `${prefix}_MODELS_${purpose.replaceAll("-", "_").toUpperCase()}_${field.toUpperCase()}`;
|
|
4551
|
-
const candidates = [
|
|
4552
|
-
[variable, env[variable]?.trim() || void 0],
|
|
4553
|
-
...configured.map(([from, model3]) => [
|
|
4554
|
-
`${from}: models.${purpose}.${field}`,
|
|
4555
|
-
model3[purpose]?.[field]
|
|
4556
|
-
]),
|
|
4557
|
-
...purpose === "default" ? [] : [
|
|
4558
|
-
[
|
|
4559
|
-
`${prefix}_MODELS_DEFAULT_${field.toUpperCase()}`,
|
|
4560
|
-
env[`${prefix}_MODELS_DEFAULT_${field.toUpperCase()}`]?.trim() || void 0
|
|
4561
|
-
],
|
|
4562
|
-
...configured.map(([from, model3]) => [
|
|
4563
|
-
`${from}: models.default.${field}`,
|
|
4564
|
-
model3.default?.[field]
|
|
4565
|
-
])
|
|
4566
|
-
]
|
|
4567
|
-
];
|
|
4568
|
-
const selected = candidates.find(([, value]) => value !== void 0);
|
|
4569
|
-
if (selected)
|
|
4570
|
-
resolved[field] = selected[1];
|
|
4571
|
-
sources[`models.${purpose}.${field}`] = selected?.[0] ?? "default";
|
|
4572
|
-
}
|
|
4573
|
-
if (Object.keys(resolved).length)
|
|
4574
|
-
models[purpose] = resolved;
|
|
4575
|
-
}
|
|
4576
|
-
const checked = safeParse(modelSettingsShape, models);
|
|
4577
|
-
if (!checked.success)
|
|
4578
|
-
throw new CliError("configuration_error", `models.${getDotPath(checked.issues[0]) ?? "settings"} is invalid`);
|
|
4579
|
-
return { models: checked.output, sources };
|
|
4580
|
-
}, "resolveModelSettings");
|
|
4581
|
-
var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
4582
|
-
const configured = { ...settings.models?.default, ...settings.models?.[purpose] };
|
|
4583
|
-
if (configured.provider === void 0 || configured.provider === "off")
|
|
4584
|
-
return void 0;
|
|
4585
|
-
if (!configured.model)
|
|
4586
|
-
throw new CliError("configuration_error", `set models.${purpose}.model before calling its provider`);
|
|
4587
|
-
return {
|
|
4588
|
-
provider: configured.provider,
|
|
4589
|
-
model: configured.model,
|
|
4590
|
-
...configured.base_url === void 0 ? {} : { baseUrl: configured.base_url }
|
|
4591
|
-
};
|
|
4592
|
-
}, "modelTarget");
|
|
4593
|
-
|
|
4594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
4571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
4595
4572
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
4596
4573
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
4597
4574
|
var AI_FIELDS = {
|
|
@@ -4635,7 +4612,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
4635
4612
|
};
|
|
4636
4613
|
}, "resolveAISettings");
|
|
4637
4614
|
|
|
4638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
4639
4616
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4640
4617
|
import { join } from "node:path";
|
|
4641
4618
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -4724,10 +4701,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
4724
4701
|
return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
4725
4702
|
}, "registryProfiles");
|
|
4726
4703
|
|
|
4727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
4728
4705
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
4729
4706
|
|
|
4730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
4731
4708
|
var REPAIR_WORDS = {
|
|
4732
4709
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
4733
4710
|
comment: "a comment, which JSON does not allow",
|
|
@@ -4968,7 +4945,7 @@ ${parts.join(",\n")}
|
|
|
4968
4945
|
${indent}${close}`;
|
|
4969
4946
|
}, "serialise");
|
|
4970
4947
|
|
|
4971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
4972
4949
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
4973
4950
|
var SECTIONS = ["personal", "bot"];
|
|
4974
4951
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -5155,12 +5132,12 @@ var scopes = /* @__PURE__ */ __name((raw) => {
|
|
|
5155
5132
|
if (isNode(node))
|
|
5156
5133
|
out.push([path2, node]);
|
|
5157
5134
|
}, "add");
|
|
5158
|
-
const addSection = /* @__PURE__ */ __name((path2,
|
|
5159
|
-
if (!isNode(
|
|
5135
|
+
const addSection = /* @__PURE__ */ __name((path2, section2) => {
|
|
5136
|
+
if (!isNode(section2))
|
|
5160
5137
|
return;
|
|
5161
|
-
add([...path2, "defaults"],
|
|
5162
|
-
if (isNode(
|
|
5163
|
-
for (const [name, scope] of Object.entries(
|
|
5138
|
+
add([...path2, "defaults"], section2.defaults);
|
|
5139
|
+
if (isNode(section2.profiles))
|
|
5140
|
+
for (const [name, scope] of Object.entries(section2.profiles))
|
|
5164
5141
|
add([...path2, "profiles", name], scope);
|
|
5165
5142
|
}, "addSection");
|
|
5166
5143
|
add([], raw);
|
|
@@ -5177,7 +5154,7 @@ var prune = /* @__PURE__ */ __name((raw, paths) => {
|
|
|
5177
5154
|
const kept = /* @__PURE__ */ new Map();
|
|
5178
5155
|
const walk = /* @__PURE__ */ __name((node, at2) => {
|
|
5179
5156
|
if (Array.isArray(node)) {
|
|
5180
|
-
const indices = node.flatMap((
|
|
5157
|
+
const indices = node.flatMap((_2, index) => drop.has(pathId([...at2, String(index)])) ? [] : [index]);
|
|
5181
5158
|
kept.set(pathId(at2), indices);
|
|
5182
5159
|
return indices.map((index) => walk(node[index], [...at2, String(index)]));
|
|
5183
5160
|
}
|
|
@@ -5214,7 +5191,7 @@ var withoutPath = /* @__PURE__ */ __name((raw, at2) => {
|
|
|
5214
5191
|
return { config: prune(raw, [gone]).pruned, removed: true };
|
|
5215
5192
|
}, "withoutPath");
|
|
5216
5193
|
var withoutSetting = /* @__PURE__ */ __name((raw, setting2) => withoutPath(raw, settingPathOf(setting2)), "withoutSetting");
|
|
5217
|
-
var publicIssue = /* @__PURE__ */ __name(({ at:
|
|
5194
|
+
var publicIssue = /* @__PURE__ */ __name(({ at: _2, ...issue }) => issue, "publicIssue");
|
|
5218
5195
|
var fixVerb = /* @__PURE__ */ __name((issue) => issue.kind === "invalid_json" ? "repair" : "remove", "fixVerb");
|
|
5219
5196
|
var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
|
|
5220
5197
|
const [first2] = issues;
|
|
@@ -5263,7 +5240,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5263
5240
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5264
5241
|
}, "readConfigFile");
|
|
5265
5242
|
|
|
5266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5267
5244
|
import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
5268
5245
|
import { dirname, join as join2 } from "node:path";
|
|
5269
5246
|
var DEFAULT_CONFIG = {
|
|
@@ -5292,7 +5269,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5292
5269
|
}
|
|
5293
5270
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5294
5271
|
|
|
5295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
5296
5273
|
import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
5297
5274
|
import { join as join3 } from "node:path";
|
|
5298
5275
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -5314,7 +5291,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
5314
5291
|
}, "profilesWithAccounts");
|
|
5315
5292
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
5316
5293
|
|
|
5317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
5318
5295
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5319
5296
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
5320
5297
|
const path2 = key.split(".");
|
|
@@ -5347,7 +5324,7 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
|
|
|
5347
5324
|
};
|
|
5348
5325
|
}), "settingRows");
|
|
5349
5326
|
|
|
5350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5351
5328
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5352
5329
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5353
5330
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
@@ -5387,6 +5364,7 @@ var SHARED_PROFILE_ENTRIES = {
|
|
|
5387
5364
|
record_input: optional(recordInputSetting),
|
|
5388
5365
|
keep_runs_for_days: optional(count2),
|
|
5389
5366
|
keep_successful_runs_for_days: optional(count2),
|
|
5367
|
+
keep_store_runs_for_days: optional(count2),
|
|
5390
5368
|
runs_size_limit_mb: optional(count2),
|
|
5391
5369
|
permissions: optional(permissionLevels),
|
|
5392
5370
|
sends_per_hour: optional(count2),
|
|
@@ -5397,6 +5375,7 @@ var SHARED_PROFILE_ENTRIES = {
|
|
|
5397
5375
|
history_dialog_days: optional(historyDays),
|
|
5398
5376
|
history_group_days: optional(historyDays),
|
|
5399
5377
|
history_group_members_max: optional(count2),
|
|
5378
|
+
history_muted: optional(flag),
|
|
5400
5379
|
picture_search: optional(flag),
|
|
5401
5380
|
search_reranker: optional(picklist([...RERANK_MODELS.map((model3) => model3.id), "off"], plain(`has to be off or a reranker id: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`))),
|
|
5402
5381
|
...AI_ENTRIES
|
|
@@ -5412,6 +5391,7 @@ var MESSENGER_ONLY_SETTINGS = [
|
|
|
5412
5391
|
"history_dialog_days",
|
|
5413
5392
|
"history_group_days",
|
|
5414
5393
|
"history_group_members_max",
|
|
5394
|
+
"history_muted",
|
|
5415
5395
|
"read_other_bots",
|
|
5416
5396
|
"speech_model",
|
|
5417
5397
|
"picture_search"
|
|
@@ -5445,6 +5425,11 @@ var SHARED_SETTINGS = [
|
|
|
5445
5425
|
default: KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
5446
5426
|
description: "days a successful run is kept"
|
|
5447
5427
|
},
|
|
5428
|
+
{
|
|
5429
|
+
key: "keep_store_runs_for_days",
|
|
5430
|
+
default: KEEP_STORE_RUNS_FOR_DAYS,
|
|
5431
|
+
description: "days a successful run that wrote the store is kept, even unrecorded"
|
|
5432
|
+
},
|
|
5448
5433
|
{ key: "runs_size_limit_mb", default: RUNS_SIZE_LIMIT_MB, description: "the most megabytes all runs may take" },
|
|
5449
5434
|
{ key: "sender_colors", default: false, description: "color each sender's name in a conversation" },
|
|
5450
5435
|
{ key: "search_catch_up", default: false, description: "prepare local search after a gaps repair" },
|
|
@@ -5463,6 +5448,7 @@ var SHARED_SETTINGS = [
|
|
|
5463
5448
|
default: DEFAULT_HISTORY_LIMITS.groupMembersMax,
|
|
5464
5449
|
description: "a group with more people than this keeps no pushed history"
|
|
5465
5450
|
},
|
|
5451
|
+
{ key: "history_muted", default: false, description: "messages sync --all reads muted chats too" },
|
|
5466
5452
|
{
|
|
5467
5453
|
key: "picture_search",
|
|
5468
5454
|
default: false,
|
|
@@ -5587,7 +5573,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5587
5573
|
const env = options.env ?? process.env;
|
|
5588
5574
|
const configPath = configPathFor(options);
|
|
5589
5575
|
try {
|
|
5590
|
-
if (!options.readOnly)
|
|
5576
|
+
if (!options.readOnly && !readOnlyLockOf(app, env))
|
|
5591
5577
|
ensureDefaultConfig(configPath, withDefaults(DEFAULT_CONFIG).config);
|
|
5592
5578
|
} catch (error) {
|
|
5593
5579
|
throw new CliError("configuration_error", error instanceof Error ? error.message : String(error));
|
|
@@ -5608,11 +5594,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5608
5594
|
const name = usableProfileName(profile.value);
|
|
5609
5595
|
const configured = config.profiles[name] ?? {};
|
|
5610
5596
|
const shared = config.defaults ?? {};
|
|
5611
|
-
const
|
|
5597
|
+
const section2 = config[kind2];
|
|
5612
5598
|
const layers = [
|
|
5613
|
-
[`config file: ${kind2}.profiles.${name}`,
|
|
5599
|
+
[`config file: ${kind2}.profiles.${name}`, section2?.profiles?.[name]],
|
|
5614
5600
|
[extension.sourcePaths ? `config file: profiles.${name}` : "config file", configured],
|
|
5615
|
-
[`config file: ${kind2}.defaults`,
|
|
5601
|
+
[`config file: ${kind2}.defaults`, section2?.defaults],
|
|
5616
5602
|
[extension.sourcePaths ? "config file: defaults" : "config defaults", shared]
|
|
5617
5603
|
];
|
|
5618
5604
|
const fromLayers = /* @__PURE__ */ __name((key, fallback, only = layers) => first(only.map(([from, scope]) => [from, scope?.[key]]), fallback), "fromLayers");
|
|
@@ -5626,11 +5612,13 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5626
5612
|
const historyDialogDays = fromLayers("history_dialog_days", DEFAULT_HISTORY_LIMITS.dialogDays);
|
|
5627
5613
|
const historyGroupDays = fromLayers("history_group_days", DEFAULT_HISTORY_LIMITS.groupDays);
|
|
5628
5614
|
const historyGroupMembersMax = fromLayers("history_group_members_max", DEFAULT_HISTORY_LIMITS.groupMembersMax);
|
|
5615
|
+
const historyMuted = fromLayers("history_muted", false);
|
|
5629
5616
|
const pictureSearch = fromLayers("picture_search", false);
|
|
5630
5617
|
const searchReranker = fromLayers("search_reranker", DEFAULT_RERANK_MODEL);
|
|
5631
5618
|
const recordInput = fromLayers("record_input", true);
|
|
5632
5619
|
const keepRunsForDays = fromLayers("keep_runs_for_days", DEFAULT_KEEP_RUNS_FOR_DAYS);
|
|
5633
5620
|
const keepSuccessfulRunsForDays = fromLayers("keep_successful_runs_for_days", KEEP_SUCCESSFUL_RUNS_FOR_DAYS);
|
|
5621
|
+
const keepStoreRunsForDays = fromLayers("keep_store_runs_for_days", KEEP_STORE_RUNS_FOR_DAYS);
|
|
5634
5622
|
const runsSizeLimitMb = fromLayers("runs_size_limit_mb", RUNS_SIZE_LIMIT_MB);
|
|
5635
5623
|
const readOnlyLock = readOnlyLockOf(app, env);
|
|
5636
5624
|
const sendsPerHour = kind2 === "bot" ? fromLayers("sends_per_hour", Number.POSITIVE_INFINITY, kindLayers) : fromLayers("sends_per_hour", DEFAULT_SENDS_PER_HOUR);
|
|
@@ -5673,6 +5661,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5673
5661
|
groupDays: historyGroupDays.value,
|
|
5674
5662
|
groupMembersMax: historyGroupMembersMax.value
|
|
5675
5663
|
},
|
|
5664
|
+
historyMuted: historyMuted.value,
|
|
5676
5665
|
pictureSearch: pictureSearch.value,
|
|
5677
5666
|
searchReranker: searchReranker.value,
|
|
5678
5667
|
limit: limit.value,
|
|
@@ -5685,6 +5674,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5685
5674
|
keepFailedRuns: record2.value || record2.from !== "flag",
|
|
5686
5675
|
keepRunsForDays: keepRunsForDays.value,
|
|
5687
5676
|
keepSuccessfulRunsForDays: keepSuccessfulRunsForDays.value,
|
|
5677
|
+
keepStoreRunsForDays: keepStoreRunsForDays.value,
|
|
5688
5678
|
runsSizeLimitMb: runsSizeLimitMb.value,
|
|
5689
5679
|
...readOnlyLock ? { readOnlyLock } : {},
|
|
5690
5680
|
permissions: permissions.levels,
|
|
@@ -5713,12 +5703,14 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5713
5703
|
historyDialogDays: historyDialogDays.from,
|
|
5714
5704
|
historyGroupDays: historyGroupDays.from,
|
|
5715
5705
|
historyGroupMembersMax: historyGroupMembersMax.from,
|
|
5706
|
+
historyMuted: historyMuted.from,
|
|
5716
5707
|
pictureSearch: pictureSearch.from,
|
|
5717
5708
|
searchReranker: searchReranker.from,
|
|
5718
5709
|
record: record2.from,
|
|
5719
5710
|
recordInput: recordInput.from,
|
|
5720
5711
|
keepRunsForDays: keepRunsForDays.from,
|
|
5721
5712
|
keepSuccessfulRunsForDays: keepSuccessfulRunsForDays.from,
|
|
5713
|
+
keepStoreRunsForDays: keepStoreRunsForDays.from,
|
|
5722
5714
|
runsSizeLimitMb: runsSizeLimitMb.from,
|
|
5723
5715
|
sendsPerHour: sendsPerHour.from,
|
|
5724
5716
|
requestsPerMinute: requestsPerMinute.from,
|
|
@@ -5858,50 +5850,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5858
5850
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5859
5851
|
}, "given");
|
|
5860
5852
|
|
|
5861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5862
|
-
var DEADLINE_MARGIN_MS = 5e3;
|
|
5863
|
-
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
5864
|
-
var DEFAULT_REQUEST_MS = 2e3;
|
|
5865
|
-
var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
|
|
5866
|
-
var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
|
|
5867
|
-
var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal, now = Date.now } = {}) => {
|
|
5868
|
-
const fits = requestsFor(deadline, requestMs);
|
|
5869
|
-
const limit = fits === null ? requests ?? null : Math.min(fits, requests ?? fits);
|
|
5870
|
-
const margin = deadline ? deadlineMargin(deadline) : 0;
|
|
5871
|
-
let used = 0;
|
|
5872
|
-
let stopped = null;
|
|
5873
|
-
let last;
|
|
5874
|
-
let slowest = 0;
|
|
5875
|
-
return {
|
|
5876
|
-
take() {
|
|
5877
|
-
if (stopped)
|
|
5878
|
-
return stopped;
|
|
5879
|
-
const at2 = now();
|
|
5880
|
-
if (last !== void 0)
|
|
5881
|
-
slowest = Math.max(slowest, at2 - last);
|
|
5882
|
-
if (signal?.aborted)
|
|
5883
|
-
stopped = "cancelled";
|
|
5884
|
-
else if (limit !== null && used >= limit)
|
|
5885
|
-
stopped = "requests";
|
|
5886
|
-
else if (deadline && at2 + margin + slowest >= deadline.endsAt)
|
|
5887
|
-
stopped = "deadline";
|
|
5888
|
-
if (stopped)
|
|
5889
|
-
return stopped;
|
|
5890
|
-
used += 1;
|
|
5891
|
-
last = at2;
|
|
5892
|
-
return null;
|
|
5893
|
-
},
|
|
5894
|
-
get used() {
|
|
5895
|
-
return used;
|
|
5896
|
-
},
|
|
5897
|
-
limit,
|
|
5898
|
-
get stopped() {
|
|
5899
|
-
return stopped;
|
|
5900
|
-
}
|
|
5901
|
-
};
|
|
5902
|
-
}, "runBudget");
|
|
5903
|
-
|
|
5904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5905
5854
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
5906
5855
|
const { deadline, signal, app } = environmentOf(command);
|
|
5907
5856
|
const now = deadline?.();
|
|
@@ -6006,6 +5955,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
6006
5955
|
trace: settings.trace,
|
|
6007
5956
|
keepDays: settings.keepRunsForDays,
|
|
6008
5957
|
...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
|
|
5958
|
+
...settings.keepStoreRunsForDays === void 0 ? {} : { keepStoreDays: settings.keepStoreRunsForDays },
|
|
6009
5959
|
...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
|
|
6010
5960
|
processRun: !environment.agent,
|
|
6011
5961
|
format,
|
|
@@ -6033,7 +5983,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6033
5983
|
return words.join(" ");
|
|
6034
5984
|
}, "commandPath");
|
|
6035
5985
|
|
|
6036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6037
5987
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6038
5988
|
var FETCH = { remote: "read", local: "write" };
|
|
6039
5989
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6179,7 +6129,55 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6179
6129
|
throw readOnlyRefusal(lock, what);
|
|
6180
6130
|
}, "refuseUnderReadOnly");
|
|
6181
6131
|
|
|
6182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
6133
|
+
var linkedIdentity = strictObject({
|
|
6134
|
+
provider: text,
|
|
6135
|
+
id,
|
|
6136
|
+
name: nullable(text),
|
|
6137
|
+
username: nullable(text),
|
|
6138
|
+
is_bot: nullable(boolean()),
|
|
6139
|
+
accounts: array(id),
|
|
6140
|
+
seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
|
|
6141
|
+
method: text,
|
|
6142
|
+
linked_by: text,
|
|
6143
|
+
linked_at: time
|
|
6144
|
+
});
|
|
6145
|
+
var linkedPerson = strictObject({
|
|
6146
|
+
uid: id,
|
|
6147
|
+
name: nullable(text),
|
|
6148
|
+
identities: array(linkedIdentity),
|
|
6149
|
+
/** An agent's link: the `identity_link` proposal the owner decides; the person is still as it was. */
|
|
6150
|
+
proposal: optional(text)
|
|
6151
|
+
});
|
|
6152
|
+
var contactActivity = strictObject({
|
|
6153
|
+
at: time,
|
|
6154
|
+
subject: text,
|
|
6155
|
+
subject_id: count,
|
|
6156
|
+
role: text,
|
|
6157
|
+
scope: text,
|
|
6158
|
+
provider: nullable(text),
|
|
6159
|
+
account: nullable(text),
|
|
6160
|
+
chat_id: nullable(text),
|
|
6161
|
+
locator: nullable(text),
|
|
6162
|
+
project_id: nullable(count)
|
|
6163
|
+
});
|
|
6164
|
+
var botReason = picklist(Object.keys(WEIGHTS));
|
|
6165
|
+
var contactCheck = strictObject({
|
|
6166
|
+
person: strictObject({ id, name: nullable(text), username: nullable(text), provider: text }),
|
|
6167
|
+
score: count,
|
|
6168
|
+
reasons: array(strictObject({ reason: botReason, weight: count, source: text, detail: optional(text) })),
|
|
6169
|
+
registries: array(strictObject({
|
|
6170
|
+
name: picklist(["cas", "lols"]),
|
|
6171
|
+
answer: picklist(["listed", "clean", "unknown"]),
|
|
6172
|
+
checked_at: time,
|
|
6173
|
+
detail: optional(text),
|
|
6174
|
+
reasons: optional(array(picklist(["cas_banned", "lols_banned", "lols_scammer"])))
|
|
6175
|
+
})),
|
|
6176
|
+
unknown: array(botReason),
|
|
6177
|
+
checked_at: time
|
|
6178
|
+
});
|
|
6179
|
+
|
|
6180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
6183
6181
|
var member = strictObject({
|
|
6184
6182
|
id,
|
|
6185
6183
|
name: nullable(text),
|
|
@@ -6202,7 +6200,7 @@ var member = strictObject({
|
|
|
6202
6200
|
check: optional(record(string(), unknown()))
|
|
6203
6201
|
});
|
|
6204
6202
|
|
|
6205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
6206
6204
|
var setting = optional(nullable(boolean()));
|
|
6207
6205
|
var chat = strictObject({
|
|
6208
6206
|
ref: reference,
|
|
@@ -6243,38 +6241,627 @@ var chat = strictObject({
|
|
|
6243
6241
|
members: optional(array(member))
|
|
6244
6242
|
});
|
|
6245
6243
|
|
|
6246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6247
|
-
var
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
6245
|
+
var quoted = strictObject({
|
|
6246
|
+
id,
|
|
6247
|
+
sender_id: nullable(id),
|
|
6248
|
+
sender_name: nullable(text),
|
|
6249
|
+
timestamp: nullable(time),
|
|
6250
|
+
text,
|
|
6251
|
+
attachments: array(attachment),
|
|
6252
|
+
outgoing: nullable(boolean())
|
|
6253
6253
|
});
|
|
6254
|
-
var
|
|
6255
|
-
|
|
6254
|
+
var mailPerson = strictObject({ name: nullable(text), address: text, ref: nullable(reference) });
|
|
6255
|
+
var message = strictObject({
|
|
6256
|
+
/** The message's locator. */
|
|
6257
|
+
ref: reference,
|
|
6256
6258
|
id,
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6259
|
+
provider: optional(text),
|
|
6260
|
+
account: optional(text),
|
|
6261
|
+
chat_id: id,
|
|
6262
|
+
chat_title: optional(nullable(text)),
|
|
6263
|
+
sender_id: nullable(id),
|
|
6264
|
+
sender_name: nullable(text),
|
|
6265
|
+
sender_username: optional(text),
|
|
6266
|
+
sender_is_chat: optional(boolean()),
|
|
6267
|
+
sender_is_me: boolean(),
|
|
6268
|
+
mentions: optional(array(id)),
|
|
6269
|
+
/** When it was sent. */
|
|
6270
|
+
timestamp: time,
|
|
6271
|
+
edited_at: nullable(time),
|
|
6272
|
+
text,
|
|
6273
|
+
/** What a voice message says, once heard. */
|
|
6274
|
+
transcript: optional(text),
|
|
6275
|
+
/** In a window of messages around one, the one asked for. */
|
|
6276
|
+
anchor: optional(boolean()),
|
|
6277
|
+
/** A stretch of the text, transcript, file name or file text around what a search matched. */
|
|
6278
|
+
excerpt: optional(text),
|
|
6279
|
+
/** `picture`: the picture search lane found it by what the picture shows; it follows the text hits. */
|
|
6280
|
+
matched_in: optional(picklist(["text", "transcript", "filename", "file", "context", "picture"])),
|
|
6281
|
+
score: optional(number()),
|
|
6282
|
+
/**
|
|
6283
|
+
* `corrected`: a query word matched only a spelling speech recognition garbled in a voice note's transcript,
|
|
6284
|
+
* listed in `corrections`. `words` and `beginnings`: what a discovery search matched.
|
|
6285
|
+
*/
|
|
6286
|
+
match: optional(picklist(["words", "beginnings", "corrected"])),
|
|
6287
|
+
corrections: optional(array(strictObject({ from: text, to: array(text) }))),
|
|
6288
|
+
/** Where a search found it: the local archive, the messenger's server, or both. */
|
|
6289
|
+
found_in: optional(picklist(["archive", "server", "both"])),
|
|
6290
|
+
/** A discovery search's partial match: how much of the question it covers, and which words it lacks. */
|
|
6291
|
+
discovery: optional(strictObject({
|
|
6292
|
+
coverage: number(),
|
|
6293
|
+
matched_terms: array(text),
|
|
6294
|
+
missing_terms: array(text),
|
|
6295
|
+
parent: optional(reference),
|
|
6296
|
+
/** Present when meaning was searched too: which of the two lists found it. */
|
|
6297
|
+
found_by: optional(array(picklist(["words", "meaning"]))),
|
|
6298
|
+
/** Present when the reranker read it: its own score, higher is better. It ordered the first hits with `score`. */
|
|
6299
|
+
reranker_score: optional(number())
|
|
6300
|
+
})),
|
|
6301
|
+
/** The messages around a search hit, or its thread, oldest first; the hit itself is among them. */
|
|
6302
|
+
context: optional(array(strictObject({ ref: reference, timestamp: time, sender_name: nullable(text), text }))),
|
|
6303
|
+
/**
|
|
6304
|
+
* A discovery hit's later messages, from any chat the search reads, that share a rare word with it, latest first:
|
|
6305
|
+
* one may change or cancel what the hit says. An excerpt, as the hit's own: `messages context <ref>` has the whole text.
|
|
6306
|
+
*/
|
|
6307
|
+
follow_ups: optional(array(strictObject({
|
|
6308
|
+
ref: reference,
|
|
6309
|
+
chat_title: nullable(text),
|
|
6310
|
+
timestamp: time,
|
|
6311
|
+
sender_name: nullable(text),
|
|
6312
|
+
excerpt: text
|
|
6313
|
+
}))),
|
|
6314
|
+
outgoing: nullable(boolean()),
|
|
6315
|
+
attachments: array(attachment),
|
|
6316
|
+
reply_to: nullable(quoted),
|
|
6317
|
+
/** The id a reply answers, also when the provider sent no copy of that message. */
|
|
6318
|
+
reply_to_id: optional(id),
|
|
6319
|
+
forwarded_from: nullable(quoted),
|
|
6320
|
+
thread_id: optional(id),
|
|
6321
|
+
thread_root_id: optional(id),
|
|
6322
|
+
reactions: optional(nullable(strictObject({
|
|
6323
|
+
counts: array(strictObject({ reaction: text, count })),
|
|
6324
|
+
mine: nullable(text),
|
|
6325
|
+
total: count
|
|
6326
|
+
}))),
|
|
6327
|
+
scheduled_for: optional(time),
|
|
6328
|
+
/** The owner starred it; only where the messenger has stars, and only when set. */
|
|
6329
|
+
starred: optional(literal(true)),
|
|
6330
|
+
/** The owner's own message in a one-to-one chat: `delivered`, or `read` once opened; absent when no receipt came. */
|
|
6331
|
+
delivery: optional(picklist(["delivered", "read"])),
|
|
6332
|
+
email: optional(strictObject({
|
|
6333
|
+
subject: nullable(text),
|
|
6334
|
+
from: nullable(mailPerson),
|
|
6335
|
+
to: array(mailPerson),
|
|
6336
|
+
cc: array(mailPerson),
|
|
6337
|
+
bcc: array(mailPerson),
|
|
6338
|
+
/** The mail header Reply-To; `reply_to` is the quoted message a chat reply answers. */
|
|
6339
|
+
reply_addresses: array(mailPerson),
|
|
6340
|
+
labels: array(text),
|
|
6341
|
+
/** The thread as a `chat:` reference. */
|
|
6342
|
+
thread: reference,
|
|
6343
|
+
read: nullable(boolean()),
|
|
6344
|
+
flagged: nullable(boolean()),
|
|
6345
|
+
/** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
|
|
6346
|
+
sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) })),
|
|
6347
|
+
/** Mail `review`: filed in the mailbox of mail sent to many. */
|
|
6348
|
+
bulk: optional(boolean()),
|
|
6349
|
+
/** Mail `review`: its List-Id, `null` when it has none. */
|
|
6350
|
+
list_id: optional(nullable(text)),
|
|
6351
|
+
/** Mail `review`: the mail rule that decided how it is stored, by its id in `rules list`; `null` when none. */
|
|
6352
|
+
rule_id: optional(nullable(number())),
|
|
6353
|
+
/** Mail `review`: the evidence fingerprint a finding cites this email by. */
|
|
6354
|
+
fingerprint: optional(pipe(text, regex(/^[a-f0-9]{64}$/))),
|
|
6355
|
+
/** Mail `review`: no earlier stored email, in any account, came from this address. */
|
|
6356
|
+
new_sender: optional(boolean()),
|
|
6357
|
+
/** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
|
|
6358
|
+
sender_identities: optional(number())
|
|
6359
|
+
})),
|
|
6360
|
+
provider_metadata: providerMetadata
|
|
6261
6361
|
});
|
|
6262
|
-
|
|
6362
|
+
|
|
6363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
6364
|
+
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
6365
|
+
var contextMessage = strictObject({
|
|
6366
|
+
locator: reference,
|
|
6367
|
+
provider: text,
|
|
6368
|
+
account: id,
|
|
6369
|
+
chat_id: id,
|
|
6370
|
+
chat_title: nullable(text),
|
|
6263
6371
|
id,
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6372
|
+
timestamp: time,
|
|
6373
|
+
sender_id: nullable(id),
|
|
6374
|
+
sender_name: nullable(text),
|
|
6375
|
+
outgoing: nullable(boolean()),
|
|
6376
|
+
text
|
|
6269
6377
|
});
|
|
6270
|
-
var
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
kind:
|
|
6276
|
-
|
|
6277
|
-
|
|
6378
|
+
var sharedChat = strictObject({
|
|
6379
|
+
provider: text,
|
|
6380
|
+
account: id,
|
|
6381
|
+
chat_id: id,
|
|
6382
|
+
title: nullable(text),
|
|
6383
|
+
kind: chat.entries.kind,
|
|
6384
|
+
last_message_at: nullable(time)
|
|
6385
|
+
});
|
|
6386
|
+
var contextEvent = strictObject({
|
|
6387
|
+
ref: reference,
|
|
6388
|
+
title: nullable(text),
|
|
6389
|
+
starts_at: nullable(time),
|
|
6390
|
+
ends_at: nullable(time),
|
|
6391
|
+
all_day: boolean(),
|
|
6392
|
+
location: nullable(text),
|
|
6393
|
+
status: nullable(text)
|
|
6394
|
+
});
|
|
6395
|
+
var context = strictObject({
|
|
6396
|
+
person: contextPerson,
|
|
6397
|
+
/** The accounts read: only those of the scopes the caller may read. */
|
|
6398
|
+
accounts: array(strictObject({ provider: text, account: id, scope: picklist(["personal", "work"]) })),
|
|
6399
|
+
shared: array(sharedChat),
|
|
6400
|
+
last: strictObject({
|
|
6401
|
+
from_them: nullable(contextMessage),
|
|
6402
|
+
from_me: nullable(contextMessage),
|
|
6403
|
+
from_them_anywhere: nullable(contextMessage)
|
|
6404
|
+
}),
|
|
6405
|
+
recent: strictObject({ direct: array(contextMessage), groups: array(contextMessage) }),
|
|
6406
|
+
mentions: array(contextMessage),
|
|
6407
|
+
/** Calendar events they are invited to, one occurrence per series. */
|
|
6408
|
+
events: optional(strictObject({ upcoming: array(contextEvent), recent: array(contextEvent) })),
|
|
6409
|
+
limits: strictObject({ messages: count, bytes: count }),
|
|
6410
|
+
complete: boolean(),
|
|
6411
|
+
not_read: array(strictObject({
|
|
6412
|
+
provider: text,
|
|
6413
|
+
account: id,
|
|
6414
|
+
chat_id: id,
|
|
6415
|
+
title: nullable(text),
|
|
6416
|
+
reason: picklist(["not_fetched", "partial"])
|
|
6417
|
+
}))
|
|
6418
|
+
});
|
|
6419
|
+
var shortMessage = strictObject({ at: time, text, transcript: optional(text) });
|
|
6420
|
+
var identifiedMessage = strictObject({
|
|
6421
|
+
...shortMessage.entries,
|
|
6422
|
+
id,
|
|
6423
|
+
locator: reference,
|
|
6424
|
+
sender_id: nullable(id),
|
|
6425
|
+
reply_to: nullable(id)
|
|
6426
|
+
});
|
|
6427
|
+
var counterObservation = strictObject({
|
|
6428
|
+
value: number(),
|
|
6429
|
+
observed_at: time,
|
|
6430
|
+
source: picklist(["remote_fetch", "remote_update"]),
|
|
6431
|
+
reactions: optional(message.entries.reactions.wrapped.wrapped)
|
|
6432
|
+
});
|
|
6433
|
+
var { reply_addresses: mailReplyTo, ...mailFields } = message.entries.email.wrapped.entries;
|
|
6434
|
+
var fullMessage = strictObject({
|
|
6435
|
+
...pick(message, [
|
|
6436
|
+
"id",
|
|
6437
|
+
"chat_id",
|
|
6438
|
+
"chat_title",
|
|
6439
|
+
"excerpt",
|
|
6440
|
+
"sender_id",
|
|
6441
|
+
"sender_name",
|
|
6442
|
+
"sender_username",
|
|
6443
|
+
"mentions",
|
|
6444
|
+
"sender_is_chat",
|
|
6445
|
+
"timestamp",
|
|
6446
|
+
"edited_at",
|
|
6447
|
+
"text",
|
|
6448
|
+
"outgoing",
|
|
6449
|
+
"attachments",
|
|
6450
|
+
"reply_to",
|
|
6451
|
+
"reply_to_id",
|
|
6452
|
+
"forwarded_from",
|
|
6453
|
+
"thread_id",
|
|
6454
|
+
"thread_root_id",
|
|
6455
|
+
"scheduled_for",
|
|
6456
|
+
"provider_metadata",
|
|
6457
|
+
"delivery"
|
|
6458
|
+
]).entries,
|
|
6459
|
+
reactions: nullable(message.entries.reactions.wrapped.wrapped),
|
|
6460
|
+
starred: optional(boolean()),
|
|
6461
|
+
email: optional(strictObject({ ...mailFields, reply_to: mailReplyTo })),
|
|
6462
|
+
counter_observations: optional(partial(strictObject({
|
|
6463
|
+
views: counterObservation,
|
|
6464
|
+
reactions: counterObservation,
|
|
6465
|
+
comments: counterObservation
|
|
6466
|
+
}))),
|
|
6467
|
+
...shortMessage.entries,
|
|
6468
|
+
locator: reference
|
|
6469
|
+
});
|
|
6470
|
+
var contactMessages = strictObject({
|
|
6471
|
+
person: strictObject({ uid: id, provider: text, id, name: nullable(text) }),
|
|
6472
|
+
chats: array(strictObject({
|
|
6473
|
+
chat: pick(chat, ["id", "title", "kind"]),
|
|
6474
|
+
messages: array(union([shortMessage, identifiedMessage, fullMessage])),
|
|
6475
|
+
complete: boolean(),
|
|
6476
|
+
more: boolean()
|
|
6477
|
+
})),
|
|
6478
|
+
limits: strictObject({ messages: count })
|
|
6479
|
+
});
|
|
6480
|
+
var contactContext = union([context, contactMessages]);
|
|
6481
|
+
var coverage = strictObject({
|
|
6482
|
+
included: count,
|
|
6483
|
+
has_more: boolean(),
|
|
6484
|
+
cut_by: nullable(picklist(["limit", "bytes"]))
|
|
6485
|
+
});
|
|
6486
|
+
var meetingCue = strictObject({
|
|
6487
|
+
reference,
|
|
6488
|
+
fingerprint: text,
|
|
6489
|
+
transcript_id: count,
|
|
6490
|
+
content_hash: nullable(text),
|
|
6491
|
+
position: count,
|
|
6492
|
+
start_ms: count,
|
|
6493
|
+
end_ms: count,
|
|
6494
|
+
speaker_participant_id: nullable(count),
|
|
6495
|
+
speaker_name: nullable(text),
|
|
6496
|
+
text,
|
|
6497
|
+
revision: picklist(["current", "superseded"])
|
|
6498
|
+
});
|
|
6499
|
+
var scopes2 = array(picklist(["personal", "work"]));
|
|
6500
|
+
var contactPreparation = strictObject({
|
|
6501
|
+
...context.entries,
|
|
6502
|
+
prepare: strictObject({
|
|
6503
|
+
waiting: array(strictObject({
|
|
6504
|
+
provider: text,
|
|
6505
|
+
account: id,
|
|
6506
|
+
chat_id: id,
|
|
6507
|
+
title: nullable(text),
|
|
6508
|
+
message: contextMessage,
|
|
6509
|
+
partial: boolean()
|
|
6510
|
+
})),
|
|
6511
|
+
tasks: array(strictObject({
|
|
6512
|
+
ref: reference,
|
|
6513
|
+
title: text,
|
|
6514
|
+
role: text,
|
|
6515
|
+
due_at: nullable(time),
|
|
6516
|
+
project: reference,
|
|
6517
|
+
source: nullable(reference),
|
|
6518
|
+
created_at: time
|
|
6519
|
+
})),
|
|
6520
|
+
facts: array(strictObject({
|
|
6521
|
+
ref: reference,
|
|
6522
|
+
type: text,
|
|
6523
|
+
statement: text,
|
|
6524
|
+
subject: nullable(reference),
|
|
6525
|
+
project: nullable(reference),
|
|
6526
|
+
updated_at: time
|
|
6527
|
+
})),
|
|
6528
|
+
notes: array(strictObject({ ref: reference, title: nullable(text), text, revision: count, updated_at: time })),
|
|
6529
|
+
meetings: array(strictObject({
|
|
6530
|
+
reference,
|
|
6531
|
+
cues: array(meetingCue),
|
|
6532
|
+
cue_coverage: strictObject({ included: count, omitted: nullable(count), has_more: boolean() })
|
|
6533
|
+
})),
|
|
6534
|
+
limits: strictObject({ items: count, bytes: count }),
|
|
6535
|
+
coverage: strictObject({
|
|
6536
|
+
waiting: strictObject({
|
|
6537
|
+
...coverage.entries,
|
|
6538
|
+
rule: literal("their message is the newest the store holds in a one-to-one chat")
|
|
6539
|
+
}),
|
|
6540
|
+
tasks: strictObject({
|
|
6541
|
+
...coverage.entries,
|
|
6542
|
+
selection: literal("open, assigned to them in any role"),
|
|
6543
|
+
accounts: array(text),
|
|
6544
|
+
scopes: scopes2
|
|
6545
|
+
}),
|
|
6546
|
+
facts: strictObject({
|
|
6547
|
+
...coverage.entries,
|
|
6548
|
+
selection: literal("accepted, about them or a project they are a member of"),
|
|
6549
|
+
scopes: scopes2
|
|
6550
|
+
}),
|
|
6551
|
+
notes: strictObject({
|
|
6552
|
+
...coverage.entries,
|
|
6553
|
+
selection: literal("written by you, about them"),
|
|
6554
|
+
scopes: scopes2,
|
|
6555
|
+
withheld: optional(literal("contacts.notes.list"))
|
|
6556
|
+
}),
|
|
6557
|
+
meetings: strictObject({
|
|
6558
|
+
...coverage.entries,
|
|
6559
|
+
read: literal("every account of the store that saw them"),
|
|
6560
|
+
accounts: array(text),
|
|
6561
|
+
pending: count
|
|
6562
|
+
})
|
|
6563
|
+
})
|
|
6564
|
+
})
|
|
6565
|
+
});
|
|
6566
|
+
|
|
6567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
6568
|
+
var nullableText = nullable(text);
|
|
6569
|
+
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
6570
|
+
var outcome = picklist(["open", "won", "lost"]);
|
|
6571
|
+
var crmAccount = nullable(strictObject({ provider: text, account: text }));
|
|
6572
|
+
var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
6573
|
+
var deal = strictObject({
|
|
6574
|
+
id,
|
|
6575
|
+
ref: reference,
|
|
6576
|
+
kind: picklist(["deal", "lead"]),
|
|
6577
|
+
title: text,
|
|
6578
|
+
/** One line with the stage, amount and status. */
|
|
6579
|
+
summary: text,
|
|
6580
|
+
pipeline: reference,
|
|
6581
|
+
pipeline_name: text,
|
|
6582
|
+
stage: text,
|
|
6583
|
+
/** The base stage `stage` maps to, once the owner confirmed it; `null` while unsorted. */
|
|
6584
|
+
base_stage: nullable(strictObject({ ref: reference, name: text })),
|
|
6585
|
+
status: outcome,
|
|
6586
|
+
organization: nullable(party),
|
|
6587
|
+
currency: nullableText,
|
|
6588
|
+
amount: nullableText,
|
|
6589
|
+
close_date: day,
|
|
6590
|
+
closed_date: day,
|
|
6591
|
+
closed_reason: nullableText,
|
|
6592
|
+
rank: nullable(number()),
|
|
6593
|
+
/** A lead's deal, once it became one. */
|
|
6594
|
+
deal: nullable(reference),
|
|
6595
|
+
/** The CRM account it is a copy from; `null` for the owner's own. */
|
|
6596
|
+
account: crmAccount,
|
|
6597
|
+
external_id: nullableText,
|
|
6598
|
+
/** A CRM copy's assignee, the identity `<account>/user/<id>`. */
|
|
6599
|
+
assignee: nullableText,
|
|
6600
|
+
/** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
|
|
6601
|
+
provider_metadata: record(string(), strictObject({
|
|
6602
|
+
label: nullable(string()),
|
|
6603
|
+
value: unknown(),
|
|
6604
|
+
option_id: optional(union([string(), array(string())]))
|
|
6605
|
+
})),
|
|
6606
|
+
people: array(strictObject({ ...party.entries, role: picklist(DEAL_ROLES) })),
|
|
6607
|
+
author: strictObject({
|
|
6608
|
+
type: picklist(["person", "bot"]),
|
|
6609
|
+
id,
|
|
6610
|
+
name: nullableText,
|
|
6611
|
+
kind: nullable(picklist(["agent", "rule"]))
|
|
6612
|
+
}),
|
|
6613
|
+
model: nullableText,
|
|
6614
|
+
source: text,
|
|
6615
|
+
reason: nullableText,
|
|
6616
|
+
evidence: array(reference),
|
|
6617
|
+
project: nullable(reference),
|
|
6618
|
+
project_name: nullableText,
|
|
6619
|
+
created_at: time,
|
|
6620
|
+
updated_at: time,
|
|
6621
|
+
untrusted
|
|
6622
|
+
});
|
|
6623
|
+
var lead = deal;
|
|
6624
|
+
var pipelineStage = strictObject({
|
|
6625
|
+
name: text,
|
|
6626
|
+
position: count,
|
|
6627
|
+
outcome,
|
|
6628
|
+
external_id: nullableText,
|
|
6629
|
+
/** Open deals or leads in it now. */
|
|
6630
|
+
open: count,
|
|
6631
|
+
/** With a funnel: rows that got this far, and the share of them that reached the next stage. */
|
|
6632
|
+
reached: optional(count),
|
|
6633
|
+
conversion: optional(nullable(number())),
|
|
6634
|
+
/** With a funnel: rows standing in it now, and their sum per currency, never converted. */
|
|
6635
|
+
items: optional(count),
|
|
6636
|
+
amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
|
|
6637
|
+
});
|
|
6638
|
+
var pipeline = strictObject({
|
|
6639
|
+
id,
|
|
6640
|
+
ref: reference,
|
|
6641
|
+
name: text,
|
|
6642
|
+
kind: picklist(["deal", "lead"]),
|
|
6643
|
+
account: crmAccount,
|
|
6644
|
+
external_id: nullableText,
|
|
6645
|
+
stages: array(pipelineStage),
|
|
6646
|
+
created_at: time,
|
|
6647
|
+
totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
|
|
6648
|
+
since: optional(day),
|
|
6649
|
+
untrusted
|
|
6650
|
+
});
|
|
6651
|
+
var stage = strictObject({
|
|
6652
|
+
...pipelineStage.entries,
|
|
6653
|
+
pipeline: reference,
|
|
6654
|
+
pipeline_name: text,
|
|
6655
|
+
kind: picklist(["deal", "lead"]),
|
|
6656
|
+
untrusted
|
|
6657
|
+
});
|
|
6658
|
+
|
|
6659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
6660
|
+
var nullableText2 = nullable(text);
|
|
6661
|
+
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
6662
|
+
var standing = picklist(STANDINGS);
|
|
6663
|
+
var categories = array(picklist(CATEGORIES));
|
|
6664
|
+
var section = /* @__PURE__ */ __name((item) => strictObject({ items: array(item), total: count, has_more: boolean(), next: nullableText2 }), "section");
|
|
6665
|
+
var relationRole = strictObject({
|
|
6666
|
+
/** `link:<id>`; absent for a proposal. */
|
|
6667
|
+
link: optional(reference),
|
|
6668
|
+
/** A `relationship` proposal waiting for the owner: its id, with `standing: proposed`. */
|
|
6669
|
+
proposal: optional(text),
|
|
6670
|
+
kind: picklist(RELATION_KINDS),
|
|
6671
|
+
role: nullableText2,
|
|
6672
|
+
/** `reported`: a CRM account says so and nobody confirmed it; `ended`: it no longer holds. */
|
|
6673
|
+
standing,
|
|
6674
|
+
/** The source account that reported it, `<provider>:<account>`. */
|
|
6675
|
+
account: optional(text),
|
|
6676
|
+
/** A job title the source gave; never a role. */
|
|
6677
|
+
position: optional(text),
|
|
6678
|
+
/** How a source made it when it stated none, such as `department-head`. */
|
|
6679
|
+
derived: optional(text),
|
|
6680
|
+
starts_at: optional(time),
|
|
6681
|
+
ends_at: optional(time)
|
|
6682
|
+
});
|
|
6683
|
+
var related = strictObject({ ref: reference, name: nullableText2, roles: array(relationRole) });
|
|
6684
|
+
var coverage2 = strictObject({
|
|
6685
|
+
/** `<provider>:<account>` of every account read. */
|
|
6686
|
+
accounts: array(text),
|
|
6687
|
+
not_read: array(strictObject({ source: text, reason: text }))
|
|
6688
|
+
});
|
|
6689
|
+
var linkedBy = array(picklist(["project", "counterparty"]));
|
|
6690
|
+
var financeTotal = strictObject({
|
|
6691
|
+
status: text,
|
|
6692
|
+
currency: text,
|
|
6693
|
+
rows: count,
|
|
6694
|
+
total: text,
|
|
6695
|
+
open: optional(text)
|
|
6696
|
+
});
|
|
6697
|
+
var money = strictObject({
|
|
6698
|
+
invoices: section(strictObject({
|
|
6699
|
+
ref: reference,
|
|
6700
|
+
title: text,
|
|
6701
|
+
direction: picklist(INVOICE_DIRECTIONS),
|
|
6702
|
+
status: picklist(INVOICE_STATUSES),
|
|
6703
|
+
review: picklist(FINANCE_REVIEWS),
|
|
6704
|
+
currency: text,
|
|
6705
|
+
total: text,
|
|
6706
|
+
open: text,
|
|
6707
|
+
due_date: day2,
|
|
6708
|
+
linked_by: linkedBy
|
|
6709
|
+
})),
|
|
6710
|
+
payments: section(strictObject({
|
|
6711
|
+
ref: reference,
|
|
6712
|
+
title: text,
|
|
6713
|
+
direction: picklist(MONEY_DIRECTIONS),
|
|
6714
|
+
review: picklist(FINANCE_REVIEWS),
|
|
6715
|
+
currency: text,
|
|
6716
|
+
amount: text,
|
|
6717
|
+
date: day2,
|
|
6718
|
+
linked_by: linkedBy
|
|
6719
|
+
})),
|
|
6720
|
+
orders: optional(section(strictObject({
|
|
6721
|
+
ref: reference,
|
|
6722
|
+
title: text,
|
|
6723
|
+
status: picklist(ORDER_STATUSES),
|
|
6724
|
+
review: picklist(FINANCE_REVIEWS),
|
|
6725
|
+
currency: nullableText2,
|
|
6726
|
+
total: nullableText2,
|
|
6727
|
+
side: picklist(["customer", "supplier"])
|
|
6728
|
+
}))),
|
|
6729
|
+
/** Confirmed rows only, per status (payments: direction) and currency; nothing converted. */
|
|
6730
|
+
totals: strictObject({ invoices: array(financeTotal), payments: array(financeTotal) }),
|
|
6731
|
+
/** Invoices and payments still proposed, of every row read. */
|
|
6732
|
+
unconfirmed: count,
|
|
6733
|
+
/** `false` when a read stopped at the store's page: the totals may leave rows out. */
|
|
6734
|
+
complete: boolean()
|
|
6735
|
+
});
|
|
6736
|
+
var taskLine = strictObject({
|
|
6737
|
+
ref: reference,
|
|
6738
|
+
key: text,
|
|
6739
|
+
title: text,
|
|
6740
|
+
status: picklist(TASK_STATES),
|
|
6741
|
+
project: reference,
|
|
6742
|
+
due_at: nullable(time)
|
|
6743
|
+
});
|
|
6744
|
+
var counts = { messages: count, mail: count, meetings: count };
|
|
6745
|
+
var personBusiness = strictObject({
|
|
6746
|
+
organizations: section(strictObject({ ...related.entries, categories })),
|
|
6747
|
+
reports_to: section(related),
|
|
6748
|
+
direct_reports: section(related),
|
|
6749
|
+
deals: section(related),
|
|
6750
|
+
projects: section(related),
|
|
6751
|
+
categories
|
|
6752
|
+
});
|
|
6753
|
+
var personContext = strictObject({
|
|
6754
|
+
...context.entries,
|
|
6755
|
+
person: linkedPerson,
|
|
6756
|
+
has_more: boolean(),
|
|
6757
|
+
business: personBusiness,
|
|
6758
|
+
coverage: coverage2
|
|
6759
|
+
});
|
|
6760
|
+
var organizationContext = strictObject({
|
|
6761
|
+
organization: strictObject({ ...organization.entries, own: boolean() }),
|
|
6762
|
+
categories,
|
|
6763
|
+
people: section(related),
|
|
6764
|
+
customers: section(related),
|
|
6765
|
+
/** Whom it is a customer of: "supplier of", read backwards. */
|
|
6766
|
+
suppliers: section(related),
|
|
6767
|
+
partners: section(related),
|
|
6768
|
+
projects: section(strictObject({ ref: reference, name: text, via: array(picklist(["organization", "deal"])) })),
|
|
6769
|
+
deals: section(strictObject({
|
|
6770
|
+
ref: reference,
|
|
6771
|
+
kind: picklist(DEAL_KINDS),
|
|
6772
|
+
title: text,
|
|
6773
|
+
summary: text,
|
|
6774
|
+
stage: text,
|
|
6775
|
+
status: picklist(DEAL_STATUSES),
|
|
6776
|
+
currency: nullableText2,
|
|
6777
|
+
amount: nullableText2,
|
|
6778
|
+
close_date: day2,
|
|
6779
|
+
project: nullable(reference)
|
|
6780
|
+
})),
|
|
6781
|
+
money,
|
|
6782
|
+
/** Counts only, through its own people, in the accounts read. */
|
|
6783
|
+
communications: strictObject({ ...counts, has_more: boolean() }),
|
|
6784
|
+
tasks: section(taskLine),
|
|
6785
|
+
coverage: coverage2
|
|
6786
|
+
});
|
|
6787
|
+
var { untrusted: _, ...dealRow } = deal.entries;
|
|
6788
|
+
var dealContext = strictObject({
|
|
6789
|
+
deal: strictObject(dealRow),
|
|
6790
|
+
stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time })),
|
|
6791
|
+
organization: nullable(strictObject({ ref: reference, name: nullableText2, categories })),
|
|
6792
|
+
participants: section(related),
|
|
6793
|
+
owner: nullable(related),
|
|
6794
|
+
project: nullable(strictObject({ ref: reference, name: nullableText2 })),
|
|
6795
|
+
money,
|
|
6796
|
+
window: strictObject({ since: time, until: time }),
|
|
6797
|
+
/** Shared people within its lifetime: `proposed`, an overlap of people, never a link. */
|
|
6798
|
+
communications: strictObject({
|
|
6799
|
+
...section(strictObject({
|
|
6800
|
+
kind: picklist(["message", "mail", "meeting"]),
|
|
6801
|
+
ref: reference,
|
|
6802
|
+
title: nullableText2,
|
|
6803
|
+
at: nullable(time),
|
|
6804
|
+
people: array(reference),
|
|
6805
|
+
standing: literal("proposed")
|
|
6806
|
+
})).entries,
|
|
6807
|
+
counts: strictObject(counts)
|
|
6808
|
+
}),
|
|
6809
|
+
tasks: section(taskLine),
|
|
6810
|
+
coverage: coverage2
|
|
6811
|
+
});
|
|
6812
|
+
var dealBrief = strictObject({
|
|
6813
|
+
ref: reference,
|
|
6814
|
+
kind: picklist(DEAL_KINDS),
|
|
6815
|
+
title: text,
|
|
6816
|
+
pipeline: text,
|
|
6817
|
+
stage: text,
|
|
6818
|
+
status: picklist(DEAL_STATUSES),
|
|
6819
|
+
amount: nullableText2,
|
|
6820
|
+
currency: nullableText2,
|
|
6821
|
+
close_date: day2,
|
|
6822
|
+
organization: nullableText2,
|
|
6823
|
+
owner: nullableText2,
|
|
6824
|
+
people: array(strictObject({ ref: reference, name: nullableText2, roles: array(text), standing })),
|
|
6825
|
+
project: nullableText2,
|
|
6826
|
+
stages: array(text),
|
|
6827
|
+
money: strictObject({ ...money.entries.totals.entries, unconfirmed: count, complete: boolean() }),
|
|
6828
|
+
communications: strictObject({ ...counts, standing: literal("proposed") }),
|
|
6829
|
+
open_tasks: count,
|
|
6830
|
+
not_read: coverage2.entries.not_read
|
|
6831
|
+
});
|
|
6832
|
+
|
|
6833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
6834
|
+
var botProfile = strictObject({
|
|
6835
|
+
name: text,
|
|
6836
|
+
token: text,
|
|
6837
|
+
bot: optional(text),
|
|
6838
|
+
id: optional(id),
|
|
6839
|
+
problem: optional(text)
|
|
6840
|
+
});
|
|
6841
|
+
var botSeenChat = strictObject({
|
|
6842
|
+
...partial(omit(chat, ["ref", "provider", "account", "description", "invite_link", "settings", "members"])).entries,
|
|
6843
|
+
id,
|
|
6844
|
+
parent_chat_id: optional(nullable(id)),
|
|
6845
|
+
muted_until: optional(nullable(time)),
|
|
6846
|
+
first_seen_at: optional(time),
|
|
6847
|
+
last_seen_at: optional(time)
|
|
6848
|
+
});
|
|
6849
|
+
var botAdmin = strictObject({
|
|
6850
|
+
id,
|
|
6851
|
+
name: nullable(text),
|
|
6852
|
+
username: nullable(text),
|
|
6853
|
+
role: picklist(["owner", "admin"]),
|
|
6854
|
+
rights: array(picklist(["read", "members", "admins", "info", "pin", "link", "post", "edit", "delete"])),
|
|
6855
|
+
title: nullable(text)
|
|
6856
|
+
});
|
|
6857
|
+
var botMenuEntry = strictObject({ name: text, description: nullable(text) });
|
|
6858
|
+
var topicIcon = strictObject({ emoji: text });
|
|
6859
|
+
var botWebhook = strictObject({ url: text, types: optional(array(text)) });
|
|
6860
|
+
var scheduledJob = strictObject({
|
|
6861
|
+
name: text,
|
|
6862
|
+
kind: picklist(["command", "agent"]),
|
|
6863
|
+
when: text,
|
|
6864
|
+
/** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
|
|
6278
6865
|
notify: optional(picklist(["always", "failures", "never"])),
|
|
6279
6866
|
/** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
|
|
6280
6867
|
deliver_to: optional(array(text)),
|
|
@@ -6288,11 +6875,13 @@ var scheduledJob = strictObject({
|
|
|
6288
6875
|
failing_since: optional(time),
|
|
6289
6876
|
failures: optional(number()),
|
|
6290
6877
|
cost_usd: optional(number()),
|
|
6291
|
-
|
|
6878
|
+
input_hash: optional(text),
|
|
6879
|
+
/** The last time a run did not start, and why: the day's cost cap, too little new mail, or the same input. */
|
|
6292
6880
|
skipped: optional(strictObject({
|
|
6293
6881
|
at: time,
|
|
6294
6882
|
why: text,
|
|
6295
|
-
/** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold
|
|
6883
|
+
/** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`,
|
|
6884
|
+
* `mail.same-input`. */
|
|
6296
6885
|
reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
|
|
6297
6886
|
})),
|
|
6298
6887
|
/** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
|
|
@@ -6336,7 +6925,7 @@ var stickerInventory = strictObject({
|
|
|
6336
6925
|
url: optional(nullable(text))
|
|
6337
6926
|
});
|
|
6338
6927
|
|
|
6339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
6340
6929
|
var actionableError = objectWithRest({
|
|
6341
6930
|
code: text,
|
|
6342
6931
|
message: text,
|
|
@@ -6353,7 +6942,7 @@ var batchResult = strictObject({
|
|
|
6353
6942
|
max_error_percent: count
|
|
6354
6943
|
});
|
|
6355
6944
|
|
|
6356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
6357
6946
|
var conversationBuild = strictObject({
|
|
6358
6947
|
chat: id,
|
|
6359
6948
|
messages: count,
|
|
@@ -6378,53 +6967,13 @@ var catchUpPreparation = strictObject({
|
|
|
6378
6967
|
prepared: optional(conversationPreparation)
|
|
6379
6968
|
});
|
|
6380
6969
|
|
|
6381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6382
6971
|
import { spawn } from "node:child_process";
|
|
6383
6972
|
import { randomBytes } from "node:crypto";
|
|
6384
|
-
import { closeSync, existsSync as
|
|
6385
|
-
import { dirname as dirname2, join as
|
|
6386
|
-
|
|
6387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
6388
|
-
import { existsSync as existsSync5, readFileSync as readFileSync4, rmSync as rmSync2 } from "node:fs";
|
|
6389
|
-
import { join as join4 } from "node:path";
|
|
6390
|
-
var PART = /^[\w@+-][\w.@+-]{0,99}$/;
|
|
6391
|
-
var checkpointPath = /* @__PURE__ */ __name((state, profile, job2) => {
|
|
6392
|
-
for (const part of [profile, job2]) {
|
|
6393
|
-
if (!PART.test(part) || part.includes("..")) {
|
|
6394
|
-
throw new CliError("validation_error", `a checkpoint is named by letters, digits, ".", "@" and "-" \u2014 not "${part}"`);
|
|
6395
|
-
}
|
|
6396
|
-
}
|
|
6397
|
-
return join4(state, "checkpoints", profile, `${job2}.json`);
|
|
6398
|
-
}, "checkpointPath");
|
|
6399
|
-
var readCheckpoint = /* @__PURE__ */ __name((path2) => {
|
|
6400
|
-
try {
|
|
6401
|
-
return existsSync5(path2) ? JSON.parse(readFileSync4(path2, "utf8")) : void 0;
|
|
6402
|
-
} catch {
|
|
6403
|
-
return void 0;
|
|
6404
|
-
}
|
|
6405
|
-
}, "readCheckpoint");
|
|
6406
|
-
var saveCheckpoint = /* @__PURE__ */ __name((path2, point, now = /* @__PURE__ */ new Date()) => {
|
|
6407
|
-
const saved = { ...point, updated_at: now.toISOString() };
|
|
6408
|
-
writeSecurely(path2, `${JSON.stringify(saved, null, 2)}
|
|
6409
|
-
`, 384);
|
|
6410
|
-
return saved;
|
|
6411
|
-
}, "saveCheckpoint");
|
|
6412
|
-
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
6413
|
-
const total = input.total ?? null;
|
|
6414
|
-
const updated = input.updatedAt ?? null;
|
|
6415
|
-
return {
|
|
6416
|
-
job: input.job,
|
|
6417
|
-
profile: input.profile,
|
|
6418
|
-
done: input.done,
|
|
6419
|
-
total,
|
|
6420
|
-
remaining: total === null ? null : Math.max(0, total - input.done),
|
|
6421
|
-
state: input.complete ?? (total !== null && input.done >= total) ? "complete" : "partial",
|
|
6422
|
-
updated_at: updated,
|
|
6423
|
-
cursor_age_ms: updated === null ? null : Math.max(0, (input.now ?? /* @__PURE__ */ new Date()).getTime() - Date.parse(updated))
|
|
6424
|
-
};
|
|
6425
|
-
}, "progressOf");
|
|
6973
|
+
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync2 } from "node:fs";
|
|
6974
|
+
import { dirname as dirname2, join as join4 } from "node:path";
|
|
6426
6975
|
|
|
6427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
6428
6977
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6429
6978
|
const run = currentRun();
|
|
6430
6979
|
const trace = traceId ?? run.traceId;
|
|
@@ -6438,7 +6987,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6438
6987
|
}));
|
|
6439
6988
|
}, "recordLogFor");
|
|
6440
6989
|
|
|
6441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6442
6991
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
6443
6992
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
6444
6993
|
const out = openSync(log, "a", 384);
|
|
@@ -6454,23 +7003,23 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
|
6454
7003
|
closeSync(out);
|
|
6455
7004
|
}
|
|
6456
7005
|
}, "spawnDetached");
|
|
6457
|
-
var jobsDir = /* @__PURE__ */ __name((app, env) =>
|
|
6458
|
-
var jobPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
7006
|
+
var jobsDir = /* @__PURE__ */ __name((app, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
|
|
7007
|
+
var jobPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.json`), "jobPath");
|
|
6459
7008
|
var saveJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
6460
7009
|
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
6461
7010
|
writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
|
|
6462
7011
|
`, 384);
|
|
6463
7012
|
}, "saveJob");
|
|
6464
7013
|
var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
6465
|
-
if (!/^[\w-]+$/.test(id6) || !
|
|
7014
|
+
if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
|
|
6466
7015
|
return void 0;
|
|
6467
7016
|
try {
|
|
6468
|
-
return JSON.parse(
|
|
7017
|
+
return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
|
|
6469
7018
|
} catch {
|
|
6470
7019
|
return void 0;
|
|
6471
7020
|
}
|
|
6472
7021
|
}, "readJob");
|
|
6473
|
-
var recordsPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
7022
|
+
var recordsPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.jsonl`), "recordsPath");
|
|
6474
7023
|
var tracedJob = /* @__PURE__ */ __name((env) => {
|
|
6475
7024
|
const trace = childTrace();
|
|
6476
7025
|
return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
|
|
@@ -6502,12 +7051,12 @@ var updateJob = /* @__PURE__ */ __name((dir, id6, change) => {
|
|
|
6502
7051
|
saveJob(dir, { ...job2, ...change });
|
|
6503
7052
|
}, "updateJob");
|
|
6504
7053
|
var removeJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
6505
|
-
|
|
6506
|
-
|
|
7054
|
+
rmSync2(jobPath(dir, job2.id), { force: true });
|
|
7055
|
+
rmSync2(recordsPath(dir, job2.id), { force: true });
|
|
6507
7056
|
if (dirname2(job2.log) === dir)
|
|
6508
|
-
|
|
7057
|
+
rmSync2(job2.log, { force: true });
|
|
6509
7058
|
}, "removeJob");
|
|
6510
|
-
var listJobs = /* @__PURE__ */ __name((dir) =>
|
|
7059
|
+
var listJobs = /* @__PURE__ */ __name((dir) => existsSync5(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");
|
|
6511
7060
|
var jobDetails = /* @__PURE__ */ __name((job2) => ({
|
|
6512
7061
|
job: job2.id,
|
|
6513
7062
|
profile: job2.profile,
|
|
@@ -6573,7 +7122,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6573
7122
|
const startedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
6574
7123
|
const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
|
|
6575
7124
|
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
6576
|
-
const log =
|
|
7125
|
+
const log = join4(dir, `${id6}.log`);
|
|
6577
7126
|
const job2 = {
|
|
6578
7127
|
id: id6,
|
|
6579
7128
|
chat: input.chat,
|
|
@@ -6593,149 +7142,30 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6593
7142
|
return { job: id6, pid, chat: input.chat, log };
|
|
6594
7143
|
}, "startArchiveJob");
|
|
6595
7144
|
|
|
6596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
6597
7146
|
var problem = strictObject({ code: text, message: text });
|
|
6598
|
-
var job = strictObject({
|
|
6599
|
-
id,
|
|
6600
|
-
/** The chat as the sync was given it. */
|
|
6601
|
-
chat: text,
|
|
6602
|
-
state: picklist(JOB_STATES),
|
|
6603
|
-
pid: count,
|
|
6604
|
-
started_at: time,
|
|
6605
|
-
finished_at: optional(time),
|
|
6606
|
-
/** Messages fetched so far, or in all once it finished. */
|
|
6607
|
-
fetched: count,
|
|
6608
|
-
/** The `--limit` the sync was started with: how many messages it may fetch. */
|
|
6609
|
-
message_limit: optional(count),
|
|
6610
|
-
page_size: optional(count),
|
|
6611
|
-
last: optional(count),
|
|
6612
|
-
/** Whether the sync reached its window; set once it finished. */
|
|
6613
|
-
complete: optional(boolean()),
|
|
6614
|
-
/** Why a partial job stopped short; `store jobs retry` resumes it. */
|
|
6615
|
-
issue: optional(problem),
|
|
6616
|
-
error: optional(problem)
|
|
6617
|
-
});
|
|
6618
|
-
|
|
6619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
6620
|
-
var quoted = strictObject({
|
|
6621
|
-
id,
|
|
6622
|
-
sender_id: nullable(id),
|
|
6623
|
-
sender_name: nullable(text),
|
|
6624
|
-
timestamp: nullable(time),
|
|
6625
|
-
text,
|
|
6626
|
-
attachments: array(attachment),
|
|
6627
|
-
outgoing: nullable(boolean())
|
|
6628
|
-
});
|
|
6629
|
-
var mailPerson = strictObject({ name: nullable(text), address: text, ref: nullable(reference) });
|
|
6630
|
-
var message = strictObject({
|
|
6631
|
-
/** The message's locator. */
|
|
6632
|
-
ref: reference,
|
|
6633
|
-
id,
|
|
6634
|
-
provider: optional(text),
|
|
6635
|
-
account: optional(text),
|
|
6636
|
-
chat_id: id,
|
|
6637
|
-
chat_title: optional(nullable(text)),
|
|
6638
|
-
sender_id: nullable(id),
|
|
6639
|
-
sender_name: nullable(text),
|
|
6640
|
-
sender_username: optional(text),
|
|
6641
|
-
sender_is_chat: optional(boolean()),
|
|
6642
|
-
sender_is_me: boolean(),
|
|
6643
|
-
mentions: optional(array(id)),
|
|
6644
|
-
/** When it was sent. */
|
|
6645
|
-
timestamp: time,
|
|
6646
|
-
edited_at: nullable(time),
|
|
6647
|
-
text,
|
|
6648
|
-
/** What a voice message says, once heard. */
|
|
6649
|
-
transcript: optional(text),
|
|
6650
|
-
/** In a window of messages around one, the one asked for. */
|
|
6651
|
-
anchor: optional(boolean()),
|
|
6652
|
-
/** A stretch of the text, transcript, file name or file text around what a search matched. */
|
|
6653
|
-
excerpt: optional(text),
|
|
6654
|
-
/** `picture`: the picture search lane found it by what the picture shows; it follows the text hits. */
|
|
6655
|
-
matched_in: optional(picklist(["text", "transcript", "filename", "file", "context", "picture"])),
|
|
6656
|
-
score: optional(number()),
|
|
6657
|
-
/**
|
|
6658
|
-
* `corrected`: a query word matched only a spelling speech recognition garbled in a voice note's transcript,
|
|
6659
|
-
* listed in `corrections`. `words` and `beginnings`: what a discovery search matched.
|
|
6660
|
-
*/
|
|
6661
|
-
match: optional(picklist(["words", "beginnings", "corrected"])),
|
|
6662
|
-
corrections: optional(array(strictObject({ from: text, to: array(text) }))),
|
|
6663
|
-
/** Where a search found it: the local archive, the messenger's server, or both. */
|
|
6664
|
-
found_in: optional(picklist(["archive", "server", "both"])),
|
|
6665
|
-
/** A discovery search's partial match: how much of the question it covers, and which words it lacks. */
|
|
6666
|
-
discovery: optional(strictObject({
|
|
6667
|
-
coverage: number(),
|
|
6668
|
-
matched_terms: array(text),
|
|
6669
|
-
missing_terms: array(text),
|
|
6670
|
-
parent: optional(reference),
|
|
6671
|
-
/** Present when meaning was searched too: which of the two lists found it. */
|
|
6672
|
-
found_by: optional(array(picklist(["words", "meaning"]))),
|
|
6673
|
-
/** Present when the reranker read it: its own score, higher is better. It ordered the first hits with `score`. */
|
|
6674
|
-
reranker_score: optional(number())
|
|
6675
|
-
})),
|
|
6676
|
-
/** The messages around a search hit, or its thread, oldest first; the hit itself is among them. */
|
|
6677
|
-
context: optional(array(strictObject({ ref: reference, timestamp: time, sender_name: nullable(text), text }))),
|
|
6678
|
-
/**
|
|
6679
|
-
* A discovery hit's later messages, from any chat the search reads, that share a rare word with it, latest first:
|
|
6680
|
-
* one may change or cancel what the hit says. An excerpt, as the hit's own: `messages context <ref>` has the whole text.
|
|
6681
|
-
*/
|
|
6682
|
-
follow_ups: optional(array(strictObject({
|
|
6683
|
-
ref: reference,
|
|
6684
|
-
chat_title: nullable(text),
|
|
6685
|
-
timestamp: time,
|
|
6686
|
-
sender_name: nullable(text),
|
|
6687
|
-
excerpt: text
|
|
6688
|
-
}))),
|
|
6689
|
-
outgoing: nullable(boolean()),
|
|
6690
|
-
attachments: array(attachment),
|
|
6691
|
-
reply_to: nullable(quoted),
|
|
6692
|
-
/** The id a reply answers, also when the provider sent no copy of that message. */
|
|
6693
|
-
reply_to_id: optional(id),
|
|
6694
|
-
forwarded_from: nullable(quoted),
|
|
6695
|
-
thread_id: optional(id),
|
|
6696
|
-
thread_root_id: optional(id),
|
|
6697
|
-
reactions: optional(nullable(strictObject({
|
|
6698
|
-
counts: array(strictObject({ reaction: text, count })),
|
|
6699
|
-
mine: nullable(text),
|
|
6700
|
-
total: count
|
|
6701
|
-
}))),
|
|
6702
|
-
scheduled_for: optional(time),
|
|
6703
|
-
/** The owner starred it; only where the messenger has stars, and only when set. */
|
|
6704
|
-
starred: optional(literal(true)),
|
|
6705
|
-
/** The owner's own message in a one-to-one chat: `delivered`, or `read` once opened; absent when no receipt came. */
|
|
6706
|
-
delivery: optional(picklist(["delivered", "read"])),
|
|
6707
|
-
email: optional(strictObject({
|
|
6708
|
-
subject: nullable(text),
|
|
6709
|
-
from: nullable(mailPerson),
|
|
6710
|
-
to: array(mailPerson),
|
|
6711
|
-
cc: array(mailPerson),
|
|
6712
|
-
bcc: array(mailPerson),
|
|
6713
|
-
/** The mail header Reply-To; `reply_to` is the quoted message a chat reply answers. */
|
|
6714
|
-
reply_addresses: array(mailPerson),
|
|
6715
|
-
labels: array(text),
|
|
6716
|
-
/** The thread as a `chat:` reference. */
|
|
6717
|
-
thread: reference,
|
|
6718
|
-
read: nullable(boolean()),
|
|
6719
|
-
flagged: nullable(boolean()),
|
|
6720
|
-
/** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
|
|
6721
|
-
sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) })),
|
|
6722
|
-
/** Mail `review`: filed in the mailbox of mail sent to many. */
|
|
6723
|
-
bulk: optional(boolean()),
|
|
6724
|
-
/** Mail `review`: its List-Id, `null` when it has none. */
|
|
6725
|
-
list_id: optional(nullable(text)),
|
|
6726
|
-
/** Mail `review`: the mail rule that decided how it is stored, by its id in `rules list`; `null` when none. */
|
|
6727
|
-
rule_id: optional(nullable(number())),
|
|
6728
|
-
/** Mail `review`: the evidence fingerprint a finding cites this email by. */
|
|
6729
|
-
fingerprint: optional(pipe(text, regex(/^[a-f0-9]{64}$/))),
|
|
6730
|
-
/** Mail `review`: no earlier stored email, in any account, came from this address. */
|
|
6731
|
-
new_sender: optional(boolean()),
|
|
6732
|
-
/** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
|
|
6733
|
-
sender_identities: optional(number())
|
|
6734
|
-
})),
|
|
6735
|
-
provider_metadata: providerMetadata
|
|
7147
|
+
var job = strictObject({
|
|
7148
|
+
id,
|
|
7149
|
+
/** The chat as the sync was given it. */
|
|
7150
|
+
chat: text,
|
|
7151
|
+
state: picklist(JOB_STATES),
|
|
7152
|
+
pid: count,
|
|
7153
|
+
started_at: time,
|
|
7154
|
+
finished_at: optional(time),
|
|
7155
|
+
/** Messages fetched so far, or in all once it finished. */
|
|
7156
|
+
fetched: count,
|
|
7157
|
+
/** The `--limit` the sync was started with: how many messages it may fetch. */
|
|
7158
|
+
message_limit: optional(count),
|
|
7159
|
+
page_size: optional(count),
|
|
7160
|
+
last: optional(count),
|
|
7161
|
+
/** Whether the sync reached its window; set once it finished. */
|
|
7162
|
+
complete: optional(boolean()),
|
|
7163
|
+
/** Why a partial job stopped short; `store jobs retry` resumes it. */
|
|
7164
|
+
issue: optional(problem),
|
|
7165
|
+
error: optional(problem)
|
|
6736
7166
|
});
|
|
6737
7167
|
|
|
6738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
6739
7169
|
var extractionItem = strictObject({
|
|
6740
7170
|
ref: reference,
|
|
6741
7171
|
attachment: count,
|
|
@@ -6768,7 +7198,7 @@ var extractionReport = strictObject({
|
|
|
6768
7198
|
cursor: optional(text)
|
|
6769
7199
|
});
|
|
6770
7200
|
|
|
6771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
6772
7202
|
var savedMessageFile = strictObject({
|
|
6773
7203
|
kind: text,
|
|
6774
7204
|
path: text,
|
|
@@ -6848,14 +7278,14 @@ var messageSyncAll = strictObject({
|
|
|
6848
7278
|
issue: optional(actionableError),
|
|
6849
7279
|
limited: optional(historyLimited)
|
|
6850
7280
|
})),
|
|
6851
|
-
/** How many chats the history limits left unread (big groups) or read only to the window's start. */
|
|
6852
|
-
limited: optional(strictObject({ group_too_large: count, older_than_window: count })),
|
|
7281
|
+
/** How many chats the history limits left unread (big groups) or read only to the window's start; muted, unread. */
|
|
7282
|
+
limited: optional(strictObject({ group_too_large: count, older_than_window: count, muted: optional(count) })),
|
|
6853
7283
|
tasks
|
|
6854
7284
|
});
|
|
6855
7285
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
6856
7286
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
6857
7287
|
|
|
6858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
6859
7289
|
var range = strictObject({ from: number(), to: number() });
|
|
6860
7290
|
var storeChatStatus = strictObject({
|
|
6861
7291
|
chat_id: id,
|
|
@@ -6953,7 +7383,7 @@ var storeJobRetry = union([
|
|
|
6953
7383
|
]);
|
|
6954
7384
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
6955
7385
|
|
|
6956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6957
7387
|
var account = strictObject({
|
|
6958
7388
|
provider: text,
|
|
6959
7389
|
id,
|
|
@@ -6963,7 +7393,7 @@ var account = strictObject({
|
|
|
6963
7393
|
scope: optional(picklist(["personal", "work"]))
|
|
6964
7394
|
});
|
|
6965
7395
|
|
|
6966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6967
7397
|
var accountSession = strictObject({
|
|
6968
7398
|
current: boolean(),
|
|
6969
7399
|
client: nullable(text),
|
|
@@ -6973,7 +7403,7 @@ var accountSession = strictObject({
|
|
|
6973
7403
|
created_at: optional(nullable(time))
|
|
6974
7404
|
});
|
|
6975
7405
|
|
|
6976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6977
7407
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6978
7408
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6979
7409
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6990,8 +7420,19 @@ var accountPrivacy = strictObject({
|
|
|
6990
7420
|
last_seen: optional(shownAudience)
|
|
6991
7421
|
});
|
|
6992
7422
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
7423
|
+
var removalKind = picklist(["sign_in", "keyring", "config", "file", "store", "unit", "schedule"]);
|
|
7424
|
+
var accountRemoval = strictObject({
|
|
7425
|
+
profile: text,
|
|
7426
|
+
data: picklist(["kept", "deleted"]),
|
|
7427
|
+
dry_run: boolean(),
|
|
7428
|
+
account: nullable(strictObject({ provider: text, account: text })),
|
|
7429
|
+
revoked: nullable(boolean()),
|
|
7430
|
+
config_file: text,
|
|
7431
|
+
removed: array(strictObject({ kind: removalKind, target: text })),
|
|
7432
|
+
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
7433
|
+
});
|
|
6993
7434
|
|
|
6994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6995
7436
|
var accountProfile = strictObject({
|
|
6996
7437
|
profile: id,
|
|
6997
7438
|
current: boolean(),
|
|
@@ -7003,7 +7444,7 @@ var accountProfile = strictObject({
|
|
|
7003
7444
|
bot: optional(literal(true))
|
|
7004
7445
|
});
|
|
7005
7446
|
|
|
7006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
7007
7448
|
var milliseconds = pipe(number(), minValue(0));
|
|
7008
7449
|
var counterReading = strictObject({
|
|
7009
7450
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7015,7 +7456,7 @@ var counterReading = strictObject({
|
|
|
7015
7456
|
});
|
|
7016
7457
|
var selection = record(string(), unknown());
|
|
7017
7458
|
|
|
7018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7019
7460
|
var adminRow = strictObject({
|
|
7020
7461
|
ref: reference,
|
|
7021
7462
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7068,11 +7509,11 @@ var adminReport = strictObject({
|
|
|
7068
7509
|
rows: array(adminRow)
|
|
7069
7510
|
});
|
|
7070
7511
|
|
|
7071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7072
7513
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7073
7514
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7074
7515
|
|
|
7075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7076
7517
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7077
7518
|
var attachmentBytes = strictObject({
|
|
7078
7519
|
ref: reference,
|
|
@@ -7100,7 +7541,7 @@ var attachmentTextChange = strictObject({
|
|
|
7100
7541
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7101
7542
|
});
|
|
7102
7543
|
|
|
7103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7104
7545
|
var chart = strictObject({
|
|
7105
7546
|
version: literal(1),
|
|
7106
7547
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7115,7 +7556,7 @@ var chart = strictObject({
|
|
|
7115
7556
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7116
7557
|
});
|
|
7117
7558
|
|
|
7118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7119
7560
|
var named = strictObject({
|
|
7120
7561
|
id,
|
|
7121
7562
|
title: nullable(text),
|
|
@@ -7138,7 +7579,7 @@ var folder = strictObject({
|
|
|
7138
7579
|
excluded_chats: optional(array(named))
|
|
7139
7580
|
});
|
|
7140
7581
|
|
|
7141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7142
7583
|
var inviteLink = strictObject({
|
|
7143
7584
|
link: text,
|
|
7144
7585
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7154,7 +7595,7 @@ var inviteLink = strictObject({
|
|
|
7154
7595
|
joined_count: optional(count)
|
|
7155
7596
|
});
|
|
7156
7597
|
|
|
7157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7158
7599
|
var operated = { operation_id: id, chat_id: id };
|
|
7159
7600
|
var group = strictObject({
|
|
7160
7601
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7234,7 +7675,7 @@ var chatFolderOrder = strictObject({
|
|
|
7234
7675
|
folders: array(strictObject({ id, title: text }))
|
|
7235
7676
|
});
|
|
7236
7677
|
|
|
7237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7238
7679
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7239
7680
|
var chatRemoval = strictObject(operated2);
|
|
7240
7681
|
var chatMuting = strictObject({
|
|
@@ -7245,7 +7686,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7245
7686
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7246
7687
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7247
7688
|
|
|
7248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7249
7690
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7250
7691
|
var chatEvent = strictObject({
|
|
7251
7692
|
chat_id: id,
|
|
@@ -7262,7 +7703,7 @@ var chatEvent = strictObject({
|
|
|
7262
7703
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7263
7704
|
});
|
|
7264
7705
|
|
|
7265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7266
7707
|
var chatMetadata = strictObject({
|
|
7267
7708
|
chat_id: id,
|
|
7268
7709
|
title: nullable(text),
|
|
@@ -7277,7 +7718,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7277
7718
|
has_more: boolean()
|
|
7278
7719
|
});
|
|
7279
7720
|
|
|
7280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7281
7722
|
var action = picklist(["report", "delete", "remove"]);
|
|
7282
7723
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7283
7724
|
var chatRules = strictObject({
|
|
@@ -7314,7 +7755,7 @@ var chatModeration = strictObject({
|
|
|
7314
7755
|
}))
|
|
7315
7756
|
});
|
|
7316
7757
|
|
|
7317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7318
7759
|
var optionalCount = optional(count);
|
|
7319
7760
|
var minutes = nullable(number());
|
|
7320
7761
|
var chatStats = strictObject({
|
|
@@ -7388,7 +7829,7 @@ var taskStats = strictObject({
|
|
|
7388
7829
|
}))
|
|
7389
7830
|
});
|
|
7390
7831
|
|
|
7391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7392
7833
|
var memberCount = strictObject({
|
|
7393
7834
|
day: pipe(text, isoDate()),
|
|
7394
7835
|
participants: nullable(count),
|
|
@@ -7399,330 +7840,88 @@ var trackedChat = strictObject({
|
|
|
7399
7840
|
chat_id: id,
|
|
7400
7841
|
title: nullable(text),
|
|
7401
7842
|
tracked_at: time,
|
|
7402
|
-
last_count: nullable(memberCount)
|
|
7403
|
-
});
|
|
7404
|
-
var trackedChatHistory = strictObject({
|
|
7405
|
-
chat_id: id,
|
|
7406
|
-
tracked_at: nullable(time),
|
|
7407
|
-
counts: array(memberCount)
|
|
7408
|
-
});
|
|
7409
|
-
var chatTracking = strictObject({
|
|
7410
|
-
chat_id: id,
|
|
7411
|
-
tracked: boolean()
|
|
7412
|
-
});
|
|
7413
|
-
|
|
7414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7415
|
-
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7416
|
-
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7417
|
-
var profileFields = {
|
|
7418
|
-
usernames: array(text),
|
|
7419
|
-
birthday: optional(nullable(text)),
|
|
7420
|
-
phone: optional(nullable(text)),
|
|
7421
|
-
flags: partial(strictObject({
|
|
7422
|
-
bot: boolean(),
|
|
7423
|
-
verified: boolean(),
|
|
7424
|
-
premium: boolean(),
|
|
7425
|
-
scam: boolean(),
|
|
7426
|
-
fake: boolean(),
|
|
7427
|
-
restricted: boolean(),
|
|
7428
|
-
deleted: boolean(),
|
|
7429
|
-
support: boolean()
|
|
7430
|
-
})),
|
|
7431
|
-
seen: optional(text),
|
|
7432
|
-
contact: optional(boolean()),
|
|
7433
|
-
mutual_contact: optional(boolean()),
|
|
7434
|
-
common_chats_count: optional(nullable(count)),
|
|
7435
|
-
registered: optional(nullable(strictObject({
|
|
7436
|
-
at: text,
|
|
7437
|
-
source: picklist(["telegram", "max", "estimate"]),
|
|
7438
|
-
precision: picklist(["day", "month"])
|
|
7439
|
-
}))),
|
|
7440
|
-
has_photo: optional(boolean()),
|
|
7441
|
-
/** Earlier names and usernames, oldest first; the current ones are not repeated. */
|
|
7442
|
-
aliases: array(strictObject({
|
|
7443
|
-
name: optional(text),
|
|
7444
|
-
username: optional(text),
|
|
7445
|
-
link: optional(text),
|
|
7446
|
-
first_seen_at: time,
|
|
7447
|
-
last_seen_at: time,
|
|
7448
|
-
source: picklist(["profile", "messages"])
|
|
7449
|
-
}))
|
|
7450
|
-
};
|
|
7451
|
-
|
|
7452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7453
|
-
var contact = strictObject({
|
|
7454
|
-
ref: reference,
|
|
7455
|
-
id,
|
|
7456
|
-
name: nullable(text),
|
|
7457
|
-
username: nullable(text),
|
|
7458
|
-
alias: optional(nullable(text)),
|
|
7459
|
-
display_name: optional(nullable(text)),
|
|
7460
|
-
/** Whatever they wrote about themselves. */
|
|
7461
|
-
description: nullable(text),
|
|
7462
|
-
/** The newest message in a one-to-one chat with them. */
|
|
7463
|
-
last_messaged_at: nullable(time),
|
|
7464
|
-
/** For a source that knows it, such as a Zoom contact. */
|
|
7465
|
-
email: optional(nullable(text)),
|
|
7466
|
-
phones: optional(array(strictObject({ number: text, label: nullable(text) }))),
|
|
7467
|
-
/** `contacts show`: the chats shared with them, and what the store holds of their messages in each. */
|
|
7468
|
-
chats: optional(array(strictObject({
|
|
7469
|
-
...pick(chat, ["ref", "id", "title", "kind", "last_message_at"]).entries,
|
|
7470
|
-
/** Their messages stored; a floor unless `complete`. */
|
|
7471
|
-
their_messages: optional(count),
|
|
7472
|
-
first_at: optional(nullable(time)),
|
|
7473
|
-
last_at: optional(nullable(time)),
|
|
7474
|
-
/** The store holds the whole chat, so the count is the real one. */
|
|
7475
|
-
complete: optional(boolean())
|
|
7476
|
-
}))),
|
|
7477
|
-
/** `contacts show`: what the messenger says about them, or with `--offline` what the store saw of them. */
|
|
7478
|
-
...partial(strictObject(profileFields)).entries,
|
|
7479
|
-
/** `contacts show --with-notes`: the owner's private notes about them. */
|
|
7480
|
-
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7481
|
-
});
|
|
7482
|
-
|
|
7483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
7484
|
-
var linkedIdentity = strictObject({
|
|
7485
|
-
provider: text,
|
|
7486
|
-
id,
|
|
7487
|
-
name: nullable(text),
|
|
7488
|
-
username: nullable(text),
|
|
7489
|
-
is_bot: nullable(boolean()),
|
|
7490
|
-
accounts: array(id),
|
|
7491
|
-
seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
|
|
7492
|
-
method: text,
|
|
7493
|
-
linked_by: text,
|
|
7494
|
-
linked_at: time
|
|
7495
|
-
});
|
|
7496
|
-
var linkedPerson = strictObject({ uid: id, name: nullable(text), identities: array(linkedIdentity) });
|
|
7497
|
-
var contactActivity = strictObject({
|
|
7498
|
-
at: time,
|
|
7499
|
-
subject: text,
|
|
7500
|
-
subject_id: count,
|
|
7501
|
-
role: text,
|
|
7502
|
-
scope: text,
|
|
7503
|
-
provider: nullable(text),
|
|
7504
|
-
account: nullable(text),
|
|
7505
|
-
chat_id: nullable(text),
|
|
7506
|
-
locator: nullable(text),
|
|
7507
|
-
project_id: nullable(count)
|
|
7508
|
-
});
|
|
7509
|
-
var botReason = picklist(Object.keys(WEIGHTS));
|
|
7510
|
-
var contactCheck = strictObject({
|
|
7511
|
-
person: strictObject({ id, name: nullable(text), username: nullable(text), provider: text }),
|
|
7512
|
-
score: count,
|
|
7513
|
-
reasons: array(strictObject({ reason: botReason, weight: count, source: text, detail: optional(text) })),
|
|
7514
|
-
registries: array(strictObject({
|
|
7515
|
-
name: picklist(["cas", "lols"]),
|
|
7516
|
-
answer: picklist(["listed", "clean", "unknown"]),
|
|
7517
|
-
checked_at: time,
|
|
7518
|
-
detail: optional(text),
|
|
7519
|
-
reasons: optional(array(picklist(["cas_banned", "lols_banned", "lols_scammer"])))
|
|
7520
|
-
})),
|
|
7521
|
-
unknown: array(botReason),
|
|
7522
|
-
checked_at: time
|
|
7523
|
-
});
|
|
7524
|
-
|
|
7525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7526
|
-
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7527
|
-
var contextMessage = strictObject({
|
|
7528
|
-
locator: reference,
|
|
7529
|
-
provider: text,
|
|
7530
|
-
account: id,
|
|
7531
|
-
chat_id: id,
|
|
7532
|
-
chat_title: nullable(text),
|
|
7533
|
-
id,
|
|
7534
|
-
timestamp: time,
|
|
7535
|
-
sender_id: nullable(id),
|
|
7536
|
-
sender_name: nullable(text),
|
|
7537
|
-
outgoing: nullable(boolean()),
|
|
7538
|
-
text
|
|
7539
|
-
});
|
|
7540
|
-
var sharedChat = strictObject({
|
|
7541
|
-
provider: text,
|
|
7542
|
-
account: id,
|
|
7543
|
-
chat_id: id,
|
|
7544
|
-
title: nullable(text),
|
|
7545
|
-
kind: chat.entries.kind,
|
|
7546
|
-
last_message_at: nullable(time)
|
|
7547
|
-
});
|
|
7548
|
-
var contextEvent = strictObject({
|
|
7549
|
-
ref: reference,
|
|
7550
|
-
title: nullable(text),
|
|
7551
|
-
starts_at: nullable(time),
|
|
7552
|
-
ends_at: nullable(time),
|
|
7553
|
-
all_day: boolean(),
|
|
7554
|
-
location: nullable(text),
|
|
7555
|
-
status: nullable(text)
|
|
7556
|
-
});
|
|
7557
|
-
var context = strictObject({
|
|
7558
|
-
person: contextPerson,
|
|
7559
|
-
/** The accounts read: only those of the scopes the caller may read. */
|
|
7560
|
-
accounts: array(strictObject({ provider: text, account: id, scope: picklist(["personal", "work"]) })),
|
|
7561
|
-
shared: array(sharedChat),
|
|
7562
|
-
last: strictObject({
|
|
7563
|
-
from_them: nullable(contextMessage),
|
|
7564
|
-
from_me: nullable(contextMessage),
|
|
7565
|
-
from_them_anywhere: nullable(contextMessage)
|
|
7566
|
-
}),
|
|
7567
|
-
recent: strictObject({ direct: array(contextMessage), groups: array(contextMessage) }),
|
|
7568
|
-
mentions: array(contextMessage),
|
|
7569
|
-
/** Calendar events they are invited to, one occurrence per series. */
|
|
7570
|
-
events: optional(strictObject({ upcoming: array(contextEvent), recent: array(contextEvent) })),
|
|
7571
|
-
limits: strictObject({ messages: count, bytes: count }),
|
|
7572
|
-
complete: boolean(),
|
|
7573
|
-
not_read: array(strictObject({
|
|
7574
|
-
provider: text,
|
|
7575
|
-
account: id,
|
|
7576
|
-
chat_id: id,
|
|
7577
|
-
title: nullable(text),
|
|
7578
|
-
reason: picklist(["not_fetched", "partial"])
|
|
7579
|
-
}))
|
|
7580
|
-
});
|
|
7581
|
-
var shortMessage = strictObject({ at: time, text, transcript: optional(text) });
|
|
7582
|
-
var identifiedMessage = strictObject({
|
|
7583
|
-
...shortMessage.entries,
|
|
7584
|
-
id,
|
|
7585
|
-
locator: reference,
|
|
7586
|
-
sender_id: nullable(id),
|
|
7587
|
-
reply_to: nullable(id)
|
|
7588
|
-
});
|
|
7589
|
-
var counterObservation = strictObject({
|
|
7590
|
-
value: number(),
|
|
7591
|
-
observed_at: time,
|
|
7592
|
-
source: picklist(["remote_fetch", "remote_update"]),
|
|
7593
|
-
reactions: optional(message.entries.reactions.wrapped.wrapped)
|
|
7594
|
-
});
|
|
7595
|
-
var { reply_addresses: mailReplyTo, ...mailFields } = message.entries.email.wrapped.entries;
|
|
7596
|
-
var fullMessage = strictObject({
|
|
7597
|
-
...pick(message, [
|
|
7598
|
-
"id",
|
|
7599
|
-
"chat_id",
|
|
7600
|
-
"chat_title",
|
|
7601
|
-
"excerpt",
|
|
7602
|
-
"sender_id",
|
|
7603
|
-
"sender_name",
|
|
7604
|
-
"sender_username",
|
|
7605
|
-
"mentions",
|
|
7606
|
-
"sender_is_chat",
|
|
7607
|
-
"timestamp",
|
|
7608
|
-
"edited_at",
|
|
7609
|
-
"text",
|
|
7610
|
-
"outgoing",
|
|
7611
|
-
"attachments",
|
|
7612
|
-
"reply_to",
|
|
7613
|
-
"reply_to_id",
|
|
7614
|
-
"forwarded_from",
|
|
7615
|
-
"thread_id",
|
|
7616
|
-
"thread_root_id",
|
|
7617
|
-
"scheduled_for",
|
|
7618
|
-
"provider_metadata",
|
|
7619
|
-
"delivery"
|
|
7620
|
-
]).entries,
|
|
7621
|
-
reactions: nullable(message.entries.reactions.wrapped.wrapped),
|
|
7622
|
-
starred: optional(boolean()),
|
|
7623
|
-
email: optional(strictObject({ ...mailFields, reply_to: mailReplyTo })),
|
|
7624
|
-
counter_observations: optional(partial(strictObject({
|
|
7625
|
-
views: counterObservation,
|
|
7626
|
-
reactions: counterObservation,
|
|
7627
|
-
comments: counterObservation
|
|
7628
|
-
}))),
|
|
7629
|
-
...shortMessage.entries,
|
|
7630
|
-
locator: reference
|
|
7631
|
-
});
|
|
7632
|
-
var contactMessages = strictObject({
|
|
7633
|
-
person: strictObject({ uid: id, provider: text, id, name: nullable(text) }),
|
|
7634
|
-
chats: array(strictObject({
|
|
7635
|
-
chat: pick(chat, ["id", "title", "kind"]),
|
|
7636
|
-
messages: array(union([shortMessage, identifiedMessage, fullMessage])),
|
|
7637
|
-
complete: boolean(),
|
|
7638
|
-
more: boolean()
|
|
7639
|
-
})),
|
|
7640
|
-
limits: strictObject({ messages: count })
|
|
7843
|
+
last_count: nullable(memberCount)
|
|
7641
7844
|
});
|
|
7642
|
-
var
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
cut_by: nullable(picklist(["limit", "bytes"]))
|
|
7845
|
+
var trackedChatHistory = strictObject({
|
|
7846
|
+
chat_id: id,
|
|
7847
|
+
tracked_at: nullable(time),
|
|
7848
|
+
counts: array(memberCount)
|
|
7647
7849
|
});
|
|
7648
|
-
var
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
transcript_id: count,
|
|
7652
|
-
content_hash: nullable(text),
|
|
7653
|
-
position: count,
|
|
7654
|
-
start_ms: count,
|
|
7655
|
-
end_ms: count,
|
|
7656
|
-
speaker_participant_id: nullable(count),
|
|
7657
|
-
speaker_name: nullable(text),
|
|
7658
|
-
text,
|
|
7659
|
-
revision: picklist(["current", "superseded"])
|
|
7850
|
+
var chatTracking = strictObject({
|
|
7851
|
+
chat_id: id,
|
|
7852
|
+
tracked: boolean()
|
|
7660
7853
|
});
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7854
|
+
|
|
7855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7856
|
+
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7857
|
+
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7858
|
+
var profileFields = {
|
|
7859
|
+
usernames: array(text),
|
|
7860
|
+
birthday: optional(nullable(text)),
|
|
7861
|
+
phone: optional(nullable(text)),
|
|
7862
|
+
flags: partial(strictObject({
|
|
7863
|
+
bot: boolean(),
|
|
7864
|
+
verified: boolean(),
|
|
7865
|
+
premium: boolean(),
|
|
7866
|
+
scam: boolean(),
|
|
7867
|
+
fake: boolean(),
|
|
7868
|
+
restricted: boolean(),
|
|
7869
|
+
deleted: boolean(),
|
|
7870
|
+
support: boolean()
|
|
7871
|
+
})),
|
|
7872
|
+
seen: optional(text),
|
|
7873
|
+
contact: optional(boolean()),
|
|
7874
|
+
mutual_contact: optional(boolean()),
|
|
7875
|
+
common_chats_count: optional(nullable(count)),
|
|
7876
|
+
registered: optional(nullable(strictObject({
|
|
7877
|
+
at: text,
|
|
7878
|
+
source: picklist(["telegram", "max", "estimate"]),
|
|
7879
|
+
precision: picklist(["day", "month"])
|
|
7880
|
+
}))),
|
|
7881
|
+
has_photo: optional(boolean()),
|
|
7882
|
+
/** Earlier names and usernames, oldest first; the current ones are not repeated. */
|
|
7883
|
+
aliases: array(strictObject({
|
|
7884
|
+
name: optional(text),
|
|
7885
|
+
username: optional(text),
|
|
7886
|
+
link: optional(text),
|
|
7887
|
+
first_seen_at: time,
|
|
7888
|
+
last_seen_at: time,
|
|
7889
|
+
source: picklist(["profile", "messages"])
|
|
7890
|
+
}))
|
|
7891
|
+
};
|
|
7892
|
+
|
|
7893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7894
|
+
var contact = strictObject({
|
|
7895
|
+
ref: reference,
|
|
7896
|
+
id,
|
|
7897
|
+
name: nullable(text),
|
|
7898
|
+
username: nullable(text),
|
|
7899
|
+
alias: optional(nullable(text)),
|
|
7900
|
+
display_name: optional(nullable(text)),
|
|
7901
|
+
/** Whatever they wrote about themselves. */
|
|
7902
|
+
description: nullable(text),
|
|
7903
|
+
/** The newest message in a one-to-one chat with them. */
|
|
7904
|
+
last_messaged_at: nullable(time),
|
|
7905
|
+
/** For a source that knows it, such as a Zoom contact. */
|
|
7906
|
+
email: optional(nullable(text)),
|
|
7907
|
+
phones: optional(array(strictObject({ number: text, label: nullable(text) }))),
|
|
7908
|
+
/** `contacts show`: the chats shared with them, and what the store holds of their messages in each. */
|
|
7909
|
+
chats: optional(array(strictObject({
|
|
7910
|
+
...pick(chat, ["ref", "id", "title", "kind", "last_message_at"]).entries,
|
|
7911
|
+
/** Their messages stored; a floor unless `complete`. */
|
|
7912
|
+
their_messages: optional(count),
|
|
7913
|
+
first_at: optional(nullable(time)),
|
|
7914
|
+
last_at: optional(nullable(time)),
|
|
7915
|
+
/** The store holds the whole chat, so the count is the real one. */
|
|
7916
|
+
complete: optional(boolean())
|
|
7917
|
+
}))),
|
|
7918
|
+
/** `contacts show`: what the messenger says about them, or with `--offline` what the store saw of them. */
|
|
7919
|
+
...partial(strictObject(profileFields)).entries,
|
|
7920
|
+
/** `contacts show --with-notes`: the owner's private notes about them. */
|
|
7921
|
+
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7723
7922
|
});
|
|
7724
7923
|
|
|
7725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
7726
7925
|
var contactNote = strictObject({
|
|
7727
7926
|
id,
|
|
7728
7927
|
/** The contact, as a `contact:` reference. */
|
|
@@ -7734,13 +7933,13 @@ var contactNote = strictObject({
|
|
|
7734
7933
|
updated_at: time
|
|
7735
7934
|
});
|
|
7736
7935
|
|
|
7737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
7738
7937
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7739
7938
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
7740
7939
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
7741
7940
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
7742
7941
|
|
|
7743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
7744
7943
|
var conversationDetails = union([
|
|
7745
7944
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
7746
7945
|
message
|
|
@@ -7830,7 +8029,7 @@ var conversationHit = strictObject({
|
|
|
7830
8029
|
stale: boolean()
|
|
7831
8030
|
});
|
|
7832
8031
|
|
|
7833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
7834
8033
|
var counters = strictObject({
|
|
7835
8034
|
cutoff: time,
|
|
7836
8035
|
max_age_ms: milliseconds,
|
|
@@ -7860,97 +8059,7 @@ var counterRefresh = strictObject({
|
|
|
7860
8059
|
complete: optional(boolean())
|
|
7861
8060
|
});
|
|
7862
8061
|
|
|
7863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7864
|
-
var nullableText = nullable(text);
|
|
7865
|
-
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
7866
|
-
var outcome = picklist(["open", "won", "lost"]);
|
|
7867
|
-
var crmAccount = nullable(strictObject({ provider: text, account: text }));
|
|
7868
|
-
var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
7869
|
-
var deal = strictObject({
|
|
7870
|
-
id,
|
|
7871
|
-
ref: reference,
|
|
7872
|
-
kind: picklist(["deal", "lead"]),
|
|
7873
|
-
title: text,
|
|
7874
|
-
/** One line with the stage, amount and status. */
|
|
7875
|
-
summary: text,
|
|
7876
|
-
pipeline: reference,
|
|
7877
|
-
pipeline_name: text,
|
|
7878
|
-
stage: text,
|
|
7879
|
-
status: outcome,
|
|
7880
|
-
organization: nullable(party),
|
|
7881
|
-
currency: nullableText,
|
|
7882
|
-
amount: nullableText,
|
|
7883
|
-
close_date: day,
|
|
7884
|
-
closed_date: day,
|
|
7885
|
-
closed_reason: nullableText,
|
|
7886
|
-
rank: nullable(number()),
|
|
7887
|
-
/** A lead's deal, once it became one. */
|
|
7888
|
-
deal: nullable(reference),
|
|
7889
|
-
/** The CRM account it is a copy from; `null` for the owner's own. */
|
|
7890
|
-
account: crmAccount,
|
|
7891
|
-
external_id: nullableText,
|
|
7892
|
-
/** A CRM copy's assignee, the identity `<account>/user/<id>`. */
|
|
7893
|
-
assignee: nullableText,
|
|
7894
|
-
/** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
|
|
7895
|
-
provider_metadata: record(string(), strictObject({
|
|
7896
|
-
label: nullable(string()),
|
|
7897
|
-
value: unknown(),
|
|
7898
|
-
option_id: optional(union([string(), array(string())]))
|
|
7899
|
-
})),
|
|
7900
|
-
people: array(strictObject({ ...party.entries, role: picklist(DEAL_ROLES) })),
|
|
7901
|
-
author: strictObject({
|
|
7902
|
-
type: picklist(["person", "bot"]),
|
|
7903
|
-
id,
|
|
7904
|
-
name: nullableText,
|
|
7905
|
-
kind: nullable(picklist(["agent", "rule"]))
|
|
7906
|
-
}),
|
|
7907
|
-
model: nullableText,
|
|
7908
|
-
source: text,
|
|
7909
|
-
reason: nullableText,
|
|
7910
|
-
evidence: array(reference),
|
|
7911
|
-
project: nullable(reference),
|
|
7912
|
-
project_name: nullableText,
|
|
7913
|
-
created_at: time,
|
|
7914
|
-
updated_at: time,
|
|
7915
|
-
untrusted
|
|
7916
|
-
});
|
|
7917
|
-
var lead = deal;
|
|
7918
|
-
var pipelineStage = strictObject({
|
|
7919
|
-
name: text,
|
|
7920
|
-
position: count,
|
|
7921
|
-
outcome,
|
|
7922
|
-
external_id: nullableText,
|
|
7923
|
-
/** Open deals or leads in it now. */
|
|
7924
|
-
open: count,
|
|
7925
|
-
/** With a funnel: rows that got this far, and the share of them that reached the next stage. */
|
|
7926
|
-
reached: optional(count),
|
|
7927
|
-
conversion: optional(nullable(number())),
|
|
7928
|
-
/** With a funnel: rows standing in it now, and their sum per currency, never converted. */
|
|
7929
|
-
items: optional(count),
|
|
7930
|
-
amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
|
|
7931
|
-
});
|
|
7932
|
-
var pipeline = strictObject({
|
|
7933
|
-
id,
|
|
7934
|
-
ref: reference,
|
|
7935
|
-
name: text,
|
|
7936
|
-
kind: picklist(["deal", "lead"]),
|
|
7937
|
-
account: crmAccount,
|
|
7938
|
-
external_id: nullableText,
|
|
7939
|
-
stages: array(pipelineStage),
|
|
7940
|
-
created_at: time,
|
|
7941
|
-
totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
|
|
7942
|
-
since: optional(day),
|
|
7943
|
-
untrusted
|
|
7944
|
-
});
|
|
7945
|
-
var stage = strictObject({
|
|
7946
|
-
...pipelineStage.entries,
|
|
7947
|
-
pipeline: reference,
|
|
7948
|
-
pipeline_name: text,
|
|
7949
|
-
kind: picklist(["deal", "lead"]),
|
|
7950
|
-
untrusted
|
|
7951
|
-
});
|
|
7952
|
-
|
|
7953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
7954
8063
|
var document = strictObject({
|
|
7955
8064
|
ref: reference,
|
|
7956
8065
|
id,
|
|
@@ -7965,7 +8074,7 @@ var document = strictObject({
|
|
|
7965
8074
|
owners: optional(array(text))
|
|
7966
8075
|
});
|
|
7967
8076
|
|
|
7968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
7969
8078
|
var documentLink = strictObject({
|
|
7970
8079
|
ref: reference,
|
|
7971
8080
|
url: text,
|
|
@@ -7976,7 +8085,7 @@ var documentLink = strictObject({
|
|
|
7976
8085
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
7977
8086
|
});
|
|
7978
8087
|
|
|
7979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
7980
8089
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
7981
8090
|
var contribution = strictObject({
|
|
7982
8091
|
message: evidenceMessage,
|
|
@@ -8006,7 +8115,7 @@ var retentionStay = strictObject({
|
|
|
8006
8115
|
});
|
|
8007
8116
|
var evidence = union([contribution, retentionStay]);
|
|
8008
8117
|
|
|
8009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8010
8119
|
var fact = strictObject({
|
|
8011
8120
|
ref: reference,
|
|
8012
8121
|
id,
|
|
@@ -8032,13 +8141,14 @@ var fact = strictObject({
|
|
|
8032
8141
|
evidence: array(reference),
|
|
8033
8142
|
/** With `--sources`: each piece of evidence read back. */
|
|
8034
8143
|
sources: optional(array(evidenceSource)),
|
|
8144
|
+
source_review: optional(sourceReview),
|
|
8035
8145
|
created_at: time,
|
|
8036
8146
|
updated_at: time
|
|
8037
8147
|
});
|
|
8038
8148
|
|
|
8039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8040
8150
|
var hit = strictObject({
|
|
8041
|
-
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
|
|
8151
|
+
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
8042
8152
|
ref: reference,
|
|
8043
8153
|
provider: text,
|
|
8044
8154
|
url: optional(text),
|
|
@@ -8057,8 +8167,8 @@ var hit = strictObject({
|
|
|
8057
8167
|
found_by: optional(array(picklist(["title", "words", "meaning"]))),
|
|
8058
8168
|
/** How far into the meeting the passage is. */
|
|
8059
8169
|
offset_ms: optional(nullable(count)),
|
|
8060
|
-
/** A meeting
|
|
8061
|
-
scope: optional(picklist(["transcript", "chat", "summary"])),
|
|
8170
|
+
/** A meeting hit's place: its title, transcript, chat or summary. */
|
|
8171
|
+
scope: optional(picklist(["title", "transcript", "chat", "summary"])),
|
|
8062
8172
|
/** A meeting transcript hit's cue, which `meetings passage` opens with the lines around it. */
|
|
8063
8173
|
cue_ref: optional(reference),
|
|
8064
8174
|
/** A meeting transcript hit's transcript language (`ru`, `en`…), `null` when unknown. */
|
|
@@ -8066,15 +8176,23 @@ var hit = strictObject({
|
|
|
8066
8176
|
/** A meeting transcript hit's line, from 1, of `lines_total` lines in its transcript. */
|
|
8067
8177
|
line: optional(pipe(count, minValue(1))),
|
|
8068
8178
|
lines_total: optional(count),
|
|
8179
|
+
/** `corrected`: a meeting hit found only through a spelling speech recognition may have garbled. */
|
|
8180
|
+
match: optional(picklist(["corrected"])),
|
|
8181
|
+
/** For a `corrected` hit, the stored words each such query word matched. */
|
|
8182
|
+
corrections: optional(array(strictObject({ from: text, to: array(text) }))),
|
|
8069
8183
|
/** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
|
|
8070
8184
|
id: optional(pipe(string(), minLength(1))),
|
|
8185
|
+
/** A business hit's: `proposed` waits for the owner; a product or a wallet has no review and is `confirmed`. */
|
|
8186
|
+
review: optional(picklist(["proposed", "confirmed"])),
|
|
8187
|
+
/** A business hit's record in the import that made it; absent for one the owner or an agent wrote. */
|
|
8188
|
+
source_record: optional(strictObject({ provider: text, account: text, external_id: text })),
|
|
8071
8189
|
/** A message's files; absent when it has none. */
|
|
8072
8190
|
attachments: optional(array(hitFile)),
|
|
8073
8191
|
/** Absent on a note hit: the owner wrote it. */
|
|
8074
8192
|
untrusted
|
|
8075
8193
|
});
|
|
8076
8194
|
|
|
8077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8078
8196
|
var identity = strictObject({
|
|
8079
8197
|
ref: reference,
|
|
8080
8198
|
provider: text,
|
|
@@ -8087,7 +8205,7 @@ var identity = strictObject({
|
|
|
8087
8205
|
person: optional(nullable(reference))
|
|
8088
8206
|
});
|
|
8089
8207
|
|
|
8090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8091
8209
|
var imageEmbedding = strictObject({
|
|
8092
8210
|
model: text,
|
|
8093
8211
|
embedded: count,
|
|
@@ -8096,7 +8214,7 @@ var imageEmbedding = strictObject({
|
|
|
8096
8214
|
more: boolean()
|
|
8097
8215
|
});
|
|
8098
8216
|
|
|
8099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8100
8218
|
var joinRequest = strictObject({
|
|
8101
8219
|
person_id: id,
|
|
8102
8220
|
name: nullable(text),
|
|
@@ -8107,7 +8225,7 @@ var joinRequest = strictObject({
|
|
|
8107
8225
|
about: optional(text)
|
|
8108
8226
|
});
|
|
8109
8227
|
|
|
8110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8111
8229
|
var pollVote = strictObject({
|
|
8112
8230
|
person_id: id,
|
|
8113
8231
|
name: nullable(text),
|
|
@@ -8117,7 +8235,7 @@ var pollVote = strictObject({
|
|
|
8117
8235
|
voted_at: time
|
|
8118
8236
|
});
|
|
8119
8237
|
|
|
8120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8121
8239
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8122
8240
|
var observation = strictObject({
|
|
8123
8241
|
value: pipe(number(), minValue(0)),
|
|
@@ -8159,7 +8277,7 @@ var serveSummary = strictObject({
|
|
|
8159
8277
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8160
8278
|
});
|
|
8161
8279
|
|
|
8162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8163
8281
|
var mailCounts = strictObject({
|
|
8164
8282
|
by: picklist(["day", "week", "sender"]),
|
|
8165
8283
|
received: count,
|
|
@@ -8174,7 +8292,7 @@ var mailCounts = strictObject({
|
|
|
8174
8292
|
}))
|
|
8175
8293
|
});
|
|
8176
8294
|
|
|
8177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8178
8296
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8179
8297
|
var base = { id, evidence: array(evidence2) };
|
|
8180
8298
|
var finding = variant("kind", [
|
|
@@ -8318,7 +8436,7 @@ var mailFindings = strictObject({
|
|
|
8318
8436
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8319
8437
|
});
|
|
8320
8438
|
|
|
8321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8322
8440
|
var mediaArchive = strictObject({
|
|
8323
8441
|
directory: text,
|
|
8324
8442
|
chats: count,
|
|
@@ -8350,7 +8468,7 @@ var mediaArchiveTimer = union([
|
|
|
8350
8468
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
8351
8469
|
]);
|
|
8352
8470
|
|
|
8353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
8354
8472
|
var preparationId = pipe(string(), minLength(1));
|
|
8355
8473
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
8356
8474
|
var preparationTime = nullable(isoTime);
|
|
@@ -8442,7 +8560,7 @@ var preparationMeeting = strictObject({
|
|
|
8442
8560
|
updated_at: isoTime
|
|
8443
8561
|
});
|
|
8444
8562
|
|
|
8445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
8446
8564
|
var meetingEvidence = preparationEvidence;
|
|
8447
8565
|
var meetingPersonContext = strictObject({
|
|
8448
8566
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -8464,7 +8582,7 @@ var meetingPersonContext = strictObject({
|
|
|
8464
8582
|
})
|
|
8465
8583
|
});
|
|
8466
8584
|
|
|
8467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
8468
8586
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
8469
8587
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
8470
8588
|
var finding2 = variant("kind", [
|
|
@@ -8502,7 +8620,7 @@ var meetingFindings = strictObject({
|
|
|
8502
8620
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
8503
8621
|
});
|
|
8504
8622
|
|
|
8505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
8506
8624
|
var communicationCoverage = strictObject({
|
|
8507
8625
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
8508
8626
|
query: string(),
|
|
@@ -8547,7 +8665,7 @@ var preparationCommunications = strictObject({
|
|
|
8547
8665
|
}))
|
|
8548
8666
|
});
|
|
8549
8667
|
|
|
8550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
8551
8669
|
var meetingPreparation = strictObject({
|
|
8552
8670
|
communications: optional(preparationCommunications),
|
|
8553
8671
|
schema_version: literal(1),
|
|
@@ -8660,7 +8778,7 @@ var meetingPreparation = strictObject({
|
|
|
8660
8778
|
})
|
|
8661
8779
|
});
|
|
8662
8780
|
|
|
8663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
8664
8782
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
8665
8783
|
var id3 = pipe(string(), minLength(1));
|
|
8666
8784
|
var text3 = string();
|
|
@@ -8724,7 +8842,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
8724
8842
|
})
|
|
8725
8843
|
});
|
|
8726
8844
|
|
|
8727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
8728
8846
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
8729
8847
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
8730
8848
|
var meetingSeriesInventory = strictObject({
|
|
@@ -8754,7 +8872,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
8754
8872
|
})
|
|
8755
8873
|
});
|
|
8756
8874
|
|
|
8757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
8758
8876
|
var text4 = string();
|
|
8759
8877
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
8760
8878
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -8771,7 +8889,7 @@ var meetingTaskProposal = strictObject({
|
|
|
8771
8889
|
persistence: literal("proposal-only")
|
|
8772
8890
|
});
|
|
8773
8891
|
|
|
8774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
8775
8893
|
var memory = strictObject({
|
|
8776
8894
|
ref: reference,
|
|
8777
8895
|
id,
|
|
@@ -8794,13 +8912,14 @@ var memory = strictObject({
|
|
|
8794
8912
|
/** With `--sources`: each piece of evidence read back. */
|
|
8795
8913
|
sources: optional(array(evidenceSource)),
|
|
8796
8914
|
last_verified_at: nullable(time),
|
|
8915
|
+
source_review: optional(sourceReview),
|
|
8797
8916
|
created_at: time,
|
|
8798
8917
|
updated_at: time
|
|
8799
8918
|
});
|
|
8800
8919
|
|
|
8801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
8802
8921
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
8803
|
-
var status = picklist(["found", "linked", "dismissed"]);
|
|
8922
|
+
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
8804
8923
|
var mention = strictObject({
|
|
8805
8924
|
id: count,
|
|
8806
8925
|
kind,
|
|
@@ -8830,7 +8949,8 @@ var mentionDecision = strictObject({
|
|
|
8830
8949
|
value: text,
|
|
8831
8950
|
status,
|
|
8832
8951
|
target: nullable(reference),
|
|
8833
|
-
mentions: count
|
|
8952
|
+
mentions: count,
|
|
8953
|
+
proposal: optional(text)
|
|
8834
8954
|
});
|
|
8835
8955
|
var mentionRebuild = strictObject({
|
|
8836
8956
|
messages: count,
|
|
@@ -8841,13 +8961,13 @@ var mentionRebuild = strictObject({
|
|
|
8841
8961
|
mentions: count
|
|
8842
8962
|
});
|
|
8843
8963
|
|
|
8844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
8845
8965
|
var operated3 = { operation_id: id, chat_id: id };
|
|
8846
8966
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
8847
8967
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
8848
8968
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
8849
8969
|
|
|
8850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
8851
8971
|
var messageTranscript = strictObject({
|
|
8852
8972
|
message_id: id,
|
|
8853
8973
|
text,
|
|
@@ -8905,7 +9025,7 @@ var evidencePacket = strictObject({
|
|
|
8905
9025
|
}))
|
|
8906
9026
|
});
|
|
8907
9027
|
|
|
8908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
8909
9029
|
var messageThread = strictObject({
|
|
8910
9030
|
ref: reference,
|
|
8911
9031
|
chat: id,
|
|
@@ -8922,7 +9042,7 @@ var messageThread = strictObject({
|
|
|
8922
9042
|
});
|
|
8923
9043
|
var messageContext = union([message, messageThread]);
|
|
8924
9044
|
|
|
8925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
8926
9046
|
var messageCounts = strictObject({
|
|
8927
9047
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
8928
9048
|
total: count,
|
|
@@ -8935,7 +9055,7 @@ var messageCounts = strictObject({
|
|
|
8935
9055
|
}))
|
|
8936
9056
|
});
|
|
8937
9057
|
|
|
8938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
8939
9059
|
var messageLink = strictObject({
|
|
8940
9060
|
ref: reference,
|
|
8941
9061
|
url: nullable(text),
|
|
@@ -8952,7 +9072,7 @@ var messageLink = strictObject({
|
|
|
8952
9072
|
})))
|
|
8953
9073
|
});
|
|
8954
9074
|
|
|
8955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
8956
9076
|
var messageWrite = strictObject({
|
|
8957
9077
|
operation_id: id,
|
|
8958
9078
|
message,
|
|
@@ -8967,7 +9087,7 @@ var draftWrite = strictObject({
|
|
|
8967
9087
|
});
|
|
8968
9088
|
var messageSend = union([messageWrite, draftWrite]);
|
|
8969
9089
|
|
|
8970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
8971
9091
|
var model2 = strictObject({
|
|
8972
9092
|
id,
|
|
8973
9093
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -8975,16 +9095,34 @@ var model2 = strictObject({
|
|
|
8975
9095
|
/** Which languages it reads, in words. */
|
|
8976
9096
|
languages: text,
|
|
8977
9097
|
licence: optional(text),
|
|
9098
|
+
/** A text model's licence page, for a model under conditions of its own (`NOTICE` beside its files says the same). */
|
|
9099
|
+
terms: optional(text),
|
|
9100
|
+
/** A text model's size next to the others: small is fastest, large reads best. */
|
|
9101
|
+
size: optional(picklist(["small", "medium", "large"])),
|
|
9102
|
+
/** A text model's vector length. */
|
|
9103
|
+
dims: optional(count),
|
|
9104
|
+
/** About how many chunks a second a text model embeds here, when measured. */
|
|
9105
|
+
chunks_per_second: optional(number()),
|
|
9106
|
+
/** A text model the owner added with `models add`. */
|
|
9107
|
+
custom: optional(boolean()),
|
|
8978
9108
|
/** What its files take on disk once downloaded. */
|
|
8979
9109
|
size_bytes: count,
|
|
8980
9110
|
downloaded: boolean(),
|
|
8981
|
-
/** The one used when no model is named. */
|
|
9111
|
+
/** The one used when no model is named: for text, the one `models use` chose. */
|
|
8982
9112
|
default: boolean(),
|
|
8983
9113
|
/** The folder its files are in once downloaded, so an agent can place them by hand. */
|
|
8984
9114
|
path: text
|
|
8985
9115
|
});
|
|
9116
|
+
var chosenModel = strictObject({
|
|
9117
|
+
...model2.entries,
|
|
9118
|
+
previous: id,
|
|
9119
|
+
/** Chunk texts the previous model has vectors for and this one has not; `null` when no store is there to count. */
|
|
9120
|
+
to_embed: nullable(count),
|
|
9121
|
+
/** Embedding time alone at the model's speed, done a part per sync; `null` when the speed or the count is unknown. */
|
|
9122
|
+
estimate_seconds: nullable(count)
|
|
9123
|
+
});
|
|
8986
9124
|
|
|
8987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
8988
9126
|
var source = picklist(["environment", "keyring", "file"]);
|
|
8989
9127
|
var modelKey = strictObject({
|
|
8990
9128
|
provider: text,
|
|
@@ -8994,7 +9132,7 @@ var modelKey = strictObject({
|
|
|
8994
9132
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
8995
9133
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
8996
9134
|
|
|
8997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
8998
9136
|
var versus = strictObject({ current: number(), previous: number() });
|
|
8999
9137
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9000
9138
|
var graph = strictObject({
|
|
@@ -9028,14 +9166,14 @@ var officialStats = strictObject({
|
|
|
9028
9166
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9029
9167
|
});
|
|
9030
9168
|
|
|
9031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9032
9170
|
var person2 = strictObject({
|
|
9033
9171
|
ref: reference,
|
|
9034
9172
|
name: nullable(text),
|
|
9035
9173
|
identities: optional(array(identity))
|
|
9036
9174
|
});
|
|
9037
9175
|
|
|
9038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9039
9177
|
var poll = strictObject({
|
|
9040
9178
|
chat_id: id,
|
|
9041
9179
|
message_id: id,
|
|
@@ -9051,11 +9189,11 @@ var poll = strictObject({
|
|
|
9051
9189
|
});
|
|
9052
9190
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9053
9191
|
|
|
9054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9055
9193
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9056
9194
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9057
9195
|
|
|
9058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9059
9197
|
var figures = record(string(), number());
|
|
9060
9198
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9061
9199
|
var rankingRow = strictObject({
|
|
@@ -9102,7 +9240,7 @@ var ranking = strictObject({
|
|
|
9102
9240
|
rows: array(rankingRow)
|
|
9103
9241
|
});
|
|
9104
9242
|
|
|
9105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9106
9244
|
var reaction = strictObject({
|
|
9107
9245
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9108
9246
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9110,7 +9248,7 @@ var reaction = strictObject({
|
|
|
9110
9248
|
reacted_at: time
|
|
9111
9249
|
});
|
|
9112
9250
|
|
|
9113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9114
9252
|
var reactionChange = strictObject({
|
|
9115
9253
|
operation_id: id,
|
|
9116
9254
|
chat_id: id,
|
|
@@ -9118,7 +9256,7 @@ var reactionChange = strictObject({
|
|
|
9118
9256
|
reaction: nullable(text)
|
|
9119
9257
|
});
|
|
9120
9258
|
|
|
9121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9122
9260
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9123
9261
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9124
9262
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9129,7 +9267,7 @@ var recipientChange = strictObject({
|
|
|
9129
9267
|
...partial(recipientOff).entries
|
|
9130
9268
|
});
|
|
9131
9269
|
|
|
9132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9133
9271
|
var events = array(record(string(), unknown()));
|
|
9134
9272
|
var recordedRun = strictObject({
|
|
9135
9273
|
run_id: id,
|
|
@@ -9201,7 +9339,7 @@ var runHit = strictObject({
|
|
|
9201
9339
|
});
|
|
9202
9340
|
var runLocation = strictObject({ path: text });
|
|
9203
9341
|
|
|
9204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9205
9343
|
var relationship = strictObject({
|
|
9206
9344
|
id,
|
|
9207
9345
|
from: reference,
|
|
@@ -9221,10 +9359,14 @@ var relationship = strictObject({
|
|
|
9221
9359
|
position: nullable(text),
|
|
9222
9360
|
starts_at: nullable(time),
|
|
9223
9361
|
ends_at: nullable(time),
|
|
9362
|
+
/** The source account that reported it, `<provider>:<account>`. */
|
|
9363
|
+
account: optional(text),
|
|
9364
|
+
/** How a source made it when it stated none, such as `department-head`. */
|
|
9365
|
+
derived: optional(text),
|
|
9224
9366
|
created_at: time
|
|
9225
9367
|
});
|
|
9226
9368
|
|
|
9227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
9228
9370
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9229
9371
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9230
9372
|
var responseTimes = strictObject({
|
|
@@ -9241,7 +9383,7 @@ var waitingChats = strictObject({
|
|
|
9241
9383
|
by_kind: strictObject({ private: count, group: count })
|
|
9242
9384
|
});
|
|
9243
9385
|
|
|
9244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9245
9387
|
var retentionCohort = strictObject({
|
|
9246
9388
|
/** The first day of the joining day or week. */
|
|
9247
9389
|
cohort: text,
|
|
@@ -9289,7 +9431,7 @@ var retention = strictObject({
|
|
|
9289
9431
|
rows: array(retentionCohort)
|
|
9290
9432
|
});
|
|
9291
9433
|
|
|
9292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
9293
9435
|
var savedSearch = strictObject({
|
|
9294
9436
|
id,
|
|
9295
9437
|
/** `null` for a run in the history. */
|
|
@@ -9306,7 +9448,7 @@ var savedSearch = strictObject({
|
|
|
9306
9448
|
});
|
|
9307
9449
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
9308
9450
|
|
|
9309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
9310
9452
|
var sendAttempt = strictObject({
|
|
9311
9453
|
at: time,
|
|
9312
9454
|
profile: text,
|
|
@@ -9334,7 +9476,7 @@ var sendAttempt = strictObject({
|
|
|
9334
9476
|
error_code: optional(text)
|
|
9335
9477
|
});
|
|
9336
9478
|
|
|
9337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
9338
9480
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
9339
9481
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
9340
9482
|
var infoSchema = strictObject({
|
|
@@ -9555,7 +9697,7 @@ var storeRepair = union([
|
|
|
9555
9697
|
]);
|
|
9556
9698
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
9557
9699
|
|
|
9558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
9559
9701
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
9560
9702
|
var storeTable = strictObject({
|
|
9561
9703
|
name: text,
|
|
@@ -9564,7 +9706,7 @@ var storeTable = strictObject({
|
|
|
9564
9706
|
bytes: optional(nullable(count))
|
|
9565
9707
|
});
|
|
9566
9708
|
|
|
9567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
9568
9710
|
var tagTarget = variant("type", [
|
|
9569
9711
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
9570
9712
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -9595,7 +9737,7 @@ var automaticTags = strictObject({
|
|
|
9595
9737
|
dry_run: boolean()
|
|
9596
9738
|
});
|
|
9597
9739
|
|
|
9598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
9599
9741
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
9600
9742
|
var taskPair = strictObject({
|
|
9601
9743
|
task: nullable(side),
|
|
@@ -9618,7 +9760,7 @@ var taskPair = strictObject({
|
|
|
9618
9760
|
created_at: time
|
|
9619
9761
|
});
|
|
9620
9762
|
|
|
9621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
9622
9764
|
var nullableTime = nullable(time);
|
|
9623
9765
|
var link = strictObject({
|
|
9624
9766
|
id,
|
|
@@ -9792,7 +9934,19 @@ var taskReview = strictObject({
|
|
|
9792
9934
|
untrusted
|
|
9793
9935
|
});
|
|
9794
9936
|
|
|
9795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
9938
|
+
var template = strictObject({
|
|
9939
|
+
key: text,
|
|
9940
|
+
channel: picklist(["telegram", "email", "text"]),
|
|
9941
|
+
language: text,
|
|
9942
|
+
about: text,
|
|
9943
|
+
renders: boolean(),
|
|
9944
|
+
source: picklist(["stored", "default"]),
|
|
9945
|
+
updated_at: nullable(time),
|
|
9946
|
+
updated_by: nullable(text)
|
|
9947
|
+
});
|
|
9948
|
+
|
|
9949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
9796
9950
|
var topic = strictObject({
|
|
9797
9951
|
id,
|
|
9798
9952
|
title: text,
|
|
@@ -9806,7 +9960,7 @@ var topic = strictObject({
|
|
|
9806
9960
|
untrusted
|
|
9807
9961
|
});
|
|
9808
9962
|
|
|
9809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
9810
9964
|
var ENTITIES = {
|
|
9811
9965
|
sync_progress: progress,
|
|
9812
9966
|
deal,
|
|
@@ -9878,6 +10032,10 @@ var ENTITIES = {
|
|
|
9878
10032
|
identity,
|
|
9879
10033
|
contact_context: contactContext,
|
|
9880
10034
|
contact_preparation: contactPreparation,
|
|
10035
|
+
person_context: personContext,
|
|
10036
|
+
organization_context: organizationContext,
|
|
10037
|
+
deal_context: dealContext,
|
|
10038
|
+
"deal_context.brief": dealBrief,
|
|
9881
10039
|
contact_activity: contactActivity,
|
|
9882
10040
|
contact_check: contactCheck,
|
|
9883
10041
|
linked_person: linkedPerson,
|
|
@@ -9894,6 +10052,7 @@ var ENTITIES = {
|
|
|
9894
10052
|
account_session: accountSession,
|
|
9895
10053
|
account_change: accountChange,
|
|
9896
10054
|
ended_account_sessions: endedAccountSessions,
|
|
10055
|
+
account_removal: accountRemoval,
|
|
9897
10056
|
account_privacy: accountPrivacy,
|
|
9898
10057
|
account_privacy_change: accountPrivacyChange,
|
|
9899
10058
|
account_profile: accountProfile,
|
|
@@ -10048,6 +10207,7 @@ var ENTITIES = {
|
|
|
10048
10207
|
chat_folder_order: chatFolderOrder,
|
|
10049
10208
|
chat_rules: chatRules,
|
|
10050
10209
|
chat_moderation: chatModeration,
|
|
10210
|
+
"model.chosen": chosenModel,
|
|
10051
10211
|
model_key: modelKey,
|
|
10052
10212
|
"model_key.stored": storedModelKey,
|
|
10053
10213
|
"model_key.removed": removedModelKey,
|
|
@@ -10085,14 +10245,15 @@ var ENTITIES = {
|
|
|
10085
10245
|
tracked_chat: trackedChat,
|
|
10086
10246
|
tracked_chat_history: trackedChatHistory,
|
|
10087
10247
|
chat_tracking: chatTracking,
|
|
10088
|
-
task_stats: taskStats
|
|
10248
|
+
task_stats: taskStats,
|
|
10249
|
+
template
|
|
10089
10250
|
};
|
|
10090
10251
|
var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.entries(ENTITIES).map(([name, schema2]) => {
|
|
10091
|
-
const { $schema:
|
|
10252
|
+
const { $schema: _2, ...definition } = jsonSchemaOf(schema2);
|
|
10092
10253
|
return [name, definition];
|
|
10093
10254
|
})), "entityDefinitions");
|
|
10094
10255
|
|
|
10095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10096
10257
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10097
10258
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10098
10259
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10126,7 +10287,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10126
10287
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10127
10288
|
}, "answerRow");
|
|
10128
10289
|
|
|
10129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
10130
10291
|
var where = [{ field: "ref" }];
|
|
10131
10292
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
10132
10293
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -10218,7 +10379,7 @@ var STATUS_ROWS = {
|
|
|
10218
10379
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
10219
10380
|
};
|
|
10220
10381
|
|
|
10221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
10222
10383
|
var TEXT_CHARS = 400;
|
|
10223
10384
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
10224
10385
|
var messageRow = {
|
|
@@ -10403,8 +10564,8 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
|
|
|
10403
10564
|
const parts = clock.parts(iso);
|
|
10404
10565
|
if (!parts)
|
|
10405
10566
|
return { text: clean(iso) };
|
|
10406
|
-
const
|
|
10407
|
-
return column.as === "day" ? { text:
|
|
10567
|
+
const day3 = parts.date.slice(5);
|
|
10568
|
+
return column.as === "day" ? { text: day3, date: parts.date } : { text: `${day3} ${parts.time}`, date: parts.date, time: parts.time };
|
|
10408
10569
|
}
|
|
10409
10570
|
case "count":
|
|
10410
10571
|
return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
|
|
@@ -10477,7 +10638,7 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
|
10477
10638
|
const firstColumn = shape.columns[0];
|
|
10478
10639
|
const refs = rows2.map(({ item }) => item && firstColumn ? firstSet(item, firstColumn.field) : void 0);
|
|
10479
10640
|
const prefix = sharedPrefix(refs.map((ref) => typeof ref === "string" ? ref : void 0));
|
|
10480
|
-
const hoisted = rows2.length < 2 ? [] : shape.columns.map((
|
|
10641
|
+
const hoisted = rows2.length < 2 ? [] : shape.columns.map((_2, index) => index > 0 && sameEverywhere(rows2, index));
|
|
10481
10642
|
const named2 = hoisted.flatMap((hoist, index) => {
|
|
10482
10643
|
const column = shape.columns[index];
|
|
10483
10644
|
const item = rows2[0]?.item;
|
|
@@ -10584,7 +10745,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
10584
10745
|
return lines.concat(footerOf(body)).join("\n");
|
|
10585
10746
|
}, "compactText");
|
|
10586
10747
|
|
|
10587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10588
10749
|
var STEPS2 = defineSteps([
|
|
10589
10750
|
...STEPS,
|
|
10590
10751
|
{
|
|
@@ -10803,12 +10964,6 @@ var STEPS2 = defineSteps([
|
|
|
10803
10964
|
command: "store recover",
|
|
10804
10965
|
args: [],
|
|
10805
10966
|
why: "the store file is damaged; this says what is lost and the commands that recover it"
|
|
10806
|
-
},
|
|
10807
|
-
{
|
|
10808
|
-
id: "search.meetings",
|
|
10809
|
-
command: "*",
|
|
10810
|
-
args: [{ name: "max_meetings", required: true }],
|
|
10811
|
-
why: "stopped after {scanned} meetings; more may match"
|
|
10812
10967
|
}
|
|
10813
10968
|
]);
|
|
10814
10969
|
var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
@@ -10871,7 +11026,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
10871
11026
|
].join(" ");
|
|
10872
11027
|
}, "stepLine");
|
|
10873
11028
|
|
|
10874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
10875
11030
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
10876
11031
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
10877
11032
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -10929,7 +11084,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
10929
11084
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
10930
11085
|
}, "largeAnswerSteps");
|
|
10931
11086
|
|
|
10932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
10933
11088
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
10934
11089
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
10935
11090
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -10943,7 +11098,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
10943
11098
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
10944
11099
|
}, "strip");
|
|
10945
11100
|
|
|
10946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
10947
11102
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
10948
11103
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
10949
11104
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -11138,12 +11293,11 @@ export {
|
|
|
11138
11293
|
takesProfile,
|
|
11139
11294
|
commandWords,
|
|
11140
11295
|
liftProfile,
|
|
11296
|
+
runGroup,
|
|
11141
11297
|
valuedOptions,
|
|
11142
11298
|
refuseCommandName,
|
|
11143
11299
|
rootOf,
|
|
11144
11300
|
sampleCommand,
|
|
11145
|
-
endpoint,
|
|
11146
|
-
modelTarget,
|
|
11147
11301
|
AI_ENTRIES,
|
|
11148
11302
|
AI_SETTING_KEYS,
|
|
11149
11303
|
resolveAISettings,
|
|
@@ -11155,6 +11309,7 @@ export {
|
|
|
11155
11309
|
repairConfigText,
|
|
11156
11310
|
permissionIssues,
|
|
11157
11311
|
settingPathOf,
|
|
11312
|
+
withoutPath,
|
|
11158
11313
|
withoutSetting,
|
|
11159
11314
|
publicIssue,
|
|
11160
11315
|
fixVerb,
|
|
@@ -11230,17 +11385,17 @@ export {
|
|
|
11230
11385
|
analysisConsent,
|
|
11231
11386
|
member,
|
|
11232
11387
|
chat,
|
|
11388
|
+
message,
|
|
11389
|
+
personContext,
|
|
11390
|
+
organizationContext,
|
|
11391
|
+
dealContext,
|
|
11392
|
+
dealBrief,
|
|
11233
11393
|
folder,
|
|
11234
11394
|
inviteLink,
|
|
11235
11395
|
chatEvent,
|
|
11236
11396
|
contact,
|
|
11237
|
-
message,
|
|
11238
11397
|
contactNote,
|
|
11239
11398
|
documentLink,
|
|
11240
|
-
checkpointPath,
|
|
11241
|
-
readCheckpoint,
|
|
11242
|
-
saveCheckpoint,
|
|
11243
|
-
progressOf,
|
|
11244
11399
|
recordLogFor,
|
|
11245
11400
|
spawnDetached,
|
|
11246
11401
|
jobsDir,
|
|
@@ -11280,6 +11435,7 @@ export {
|
|
|
11280
11435
|
sendAttempt,
|
|
11281
11436
|
progress,
|
|
11282
11437
|
storeTable,
|
|
11438
|
+
template,
|
|
11283
11439
|
topic,
|
|
11284
11440
|
ENTITIES,
|
|
11285
11441
|
entityDefinitions,
|