@wirecat/amo-cli 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -0
- package/README.md +8 -4
- package/contracts/wirecat.json +15 -14
- package/dist/amo/allow-list.d.ts +1 -1
- package/dist/amo/allow-list.d.ts.map +1 -1
- package/dist/amo/operation.d.ts +1 -1
- package/dist/amo/operation.d.ts.map +1 -1
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-EFMUK732.js +41 -0
- package/dist/bundle/{all-profiles-PPUN52SP.js → all-profiles-PIWUQWBA.js} +11 -11
- package/dist/bundle/amo.js +28 -28
- package/dist/bundle/{anthropic-RDNDT6ZP.js → anthropic-47CMXBPQ.js} +5 -5
- package/dist/bundle/{app-server-MMALJDBP.js → app-server-QRBQODF2.js} +70 -69
- package/dist/bundle/areas-QVHVU57Z.js +63 -0
- package/dist/bundle/{bun-Y4FRPURU.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-7NXJGZCO.js → bun-sqlite-7I4X7CZW.js} +6 -6
- package/dist/bundle/{chunk-OMH3WP7F.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-MPXKBF37.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-XI75EKLG.js → chunk-3DEQUYEG.js} +9 -9
- package/dist/bundle/{chunk-TWZF7VO6.js → chunk-3GX6KM2E.js} +1666 -163
- package/dist/bundle/{chunk-E2DLRLJ5.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-D6UPCAPD.js → chunk-3PYE55JY.js} +1 -1
- package/dist/bundle/{chunk-UM6SDFB6.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-JTFAG3BX.js → chunk-43OW5NTG.js} +6 -6
- package/dist/bundle/{chunk-ZIFEIJRK.js → chunk-43PMSR33.js} +13 -9
- package/dist/bundle/{chunk-5DPMNYQT.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-XM2G62YF.js → chunk-4VN7RI4I.js} +5 -7
- package/dist/bundle/{chunk-5POLHHDZ.js → chunk-57HFPNMF.js} +8 -8
- package/dist/bundle/{chunk-CQ472K6W.js → chunk-5UTB3ADZ.js} +11 -11
- package/dist/bundle/{chunk-3NDMVXGS.js → chunk-633NQY2R.js} +3 -3
- package/dist/bundle/{chunk-VPBSZ4HQ.js → chunk-63N46DJU.js} +220 -234
- package/dist/bundle/{chunk-SJZ52MZE.js → chunk-6D4VWSJD.js} +6 -6
- package/dist/bundle/{chunk-Q2YVY7IR.js → chunk-6JTHXWPE.js} +3 -3
- package/dist/bundle/{chunk-QQT7WUR4.js → chunk-6QGUK3H7.js} +4 -4
- package/dist/bundle/{chunk-AYR6FIXN.js → chunk-6WS6GJ4V.js} +2 -2
- package/dist/bundle/{chunk-N4A6E2LL.js → chunk-7IR2G5XY.js} +16 -16
- package/dist/bundle/{chunk-7Z6NYSAN.js → chunk-7IWIFVXH.js} +4 -4
- package/dist/bundle/{chunk-LOSOWTAZ.js → chunk-ABX7BBS4.js} +6 -6
- package/dist/bundle/{chunk-3YOZTGZ6.js → chunk-ADTI5RUO.js} +6 -6
- package/dist/bundle/{chunk-QHA33ZS6.js → chunk-AKRIUNYP.js} +7 -7
- package/dist/bundle/{chunk-KZDBO2FT.js → chunk-BIKOE2IW.js} +7 -7
- package/dist/bundle/{chunk-VY27K2SH.js → chunk-BVVMIAQ6.js} +769 -692
- package/dist/bundle/{chunk-SBQ5MFHM.js → chunk-CGW5R4UD.js} +7 -7
- package/dist/bundle/{chunk-UZLT6VSP.js → chunk-D4NE7EON.js} +3 -3
- package/dist/bundle/{chunk-L2ZQDTDU.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-VFU25P57.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-KEOKH2OZ.js → chunk-DQ6S5TFZ.js} +185 -114
- package/dist/bundle/{chunk-5RXH35ZA.js → chunk-DSJ6EAOA.js} +61 -61
- package/dist/bundle/{chunk-HQH4YPO5.js → chunk-DVZ75WZJ.js} +157 -35
- package/dist/bundle/{chunk-VEGNZPQU.js → chunk-EHK73OSW.js} +38 -24
- package/dist/bundle/{chunk-IEAPNTHT.js → chunk-FNV5HLHX.js} +17 -17
- package/dist/bundle/{chunk-FPDTIQOK.js → chunk-FV4GQNIK.js} +2 -2
- package/dist/bundle/{chunk-7USADF2W.js → chunk-G2TU5RYY.js} +6 -6
- package/dist/bundle/{chunk-IDQ7BNCZ.js → chunk-GDK7ETSB.js} +12 -12
- package/dist/bundle/{chunk-B4ITT55D.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-NJ2LJKNH.js → chunk-GLYWZQY4.js} +3 -3
- package/dist/bundle/{chunk-XDT74W5P.js → chunk-H4AFNENN.js} +34 -29
- package/dist/bundle/{chunk-2YEDK2XV.js → chunk-HOF7GQWW.js} +4 -4
- package/dist/bundle/{chunk-H34RBRS3.js → chunk-HSPEU6S7.js} +8 -8
- package/dist/bundle/{chunk-VJHOBOJR.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-YSOGGUK3.js → chunk-IB55P46L.js} +6 -6
- package/dist/bundle/{chunk-PFZ7WG2B.js → chunk-IG2TJQJ7.js} +3 -3
- package/dist/bundle/{chunk-CUZISGWH.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-MMOEAH5G.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-3RP57VDS.js → chunk-JXT6GY4V.js} +174 -62
- package/dist/bundle/{chunk-7SBAHYZW.js → chunk-K7YY6SXR.js} +19 -15
- package/dist/bundle/{chunk-TCDER3G7.js → chunk-KEKXERBE.js} +14883 -11912
- package/dist/bundle/{chunk-JZ2AITOE.js → chunk-KZ2FIDI3.js} +3 -3
- package/dist/bundle/{chunk-ILUREFWJ.js → chunk-KZN2BG3P.js} +8 -8
- package/dist/bundle/{chunk-L3JDQNBC.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-UA7C57IB.js → chunk-LZPKBN3C.js} +2 -2
- package/dist/bundle/{chunk-FI2TP6TY.js → chunk-M6VZXAJC.js} +3 -3
- package/dist/bundle/{chunk-7VSYOMEH.js → chunk-MDEPJZYJ.js} +2 -2
- package/dist/bundle/{chunk-WBWVBEHH.js → chunk-NB7EOAUZ.js} +8 -1
- package/dist/bundle/{chunk-LYRICHEK.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-VD7HD25M.js → chunk-NSKMNIY6.js} +9 -9
- package/dist/bundle/chunk-PPSAWFJD.js +1293 -0
- package/dist/bundle/{chunk-7E6QSIRQ.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-BKTLAXUK.js → chunk-QFOP3KUP.js} +8 -8
- package/dist/bundle/{chunk-ORFLQGWH.js → chunk-R53XXHEI.js} +4 -4
- package/dist/bundle/{chunk-UOPP6ORQ.js → chunk-RIMPFMZE.js} +28 -179
- package/dist/bundle/{chunk-MYMBPQPQ.js → chunk-RN6RT5CB.js} +4 -4
- package/dist/bundle/{chunk-BYVDMPLX.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-R23DRW2T.js → chunk-S4ZHQMNM.js} +5 -5
- package/dist/bundle/{chunk-GCUFGDKE.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-W4KY5JF5.js → chunk-TAVI73RW.js} +2 -2
- package/dist/bundle/{chunk-KTLCQ7GC.js → chunk-TLG6ECZ2.js} +2 -2
- package/dist/bundle/{chunk-V3ZWYMXT.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-KKXF6TSS.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-YVO2YGML.js → chunk-U5RJJ2EC.js} +8 -8
- package/dist/bundle/{chunk-I4QCJZW7.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-SJYVKR54.js → chunk-V2CNGXWX.js} +37 -37
- package/dist/bundle/{chunk-L72UALL5.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-T6D34X5S.js → chunk-VZ5PPYDG.js} +1 -1
- package/dist/bundle/{chunk-FPIUFSWK.js → chunk-W5JRXIG6.js} +826 -1619
- package/dist/bundle/{chunk-ELJGALVX.js → chunk-WIHN3ELW.js} +19 -19
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-4MVTSMWP.js → chunk-WUFX4TKA.js} +2 -2
- package/dist/bundle/{chunk-GKP7CKW2.js → chunk-WXJYMMEL.js} +6 -6
- package/dist/bundle/{chunk-UT3ODJMI.js → chunk-XCCU2E3Z.js} +4 -4
- package/dist/bundle/{chunk-EHULZEXQ.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/{chunk-EKNP326Q.js → chunk-XUT7DSM5.js} +2 -2
- package/dist/bundle/{chunk-4EYPFFTN.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-IYUWVMGP.js → chunk-ZLUIRFJX.js} +37 -18
- package/dist/bundle/{cli-GAO7LDDA.js → cli-3NXOSENF.js} +104 -105
- package/dist/bundle/command-contract-LNSAV5LA.js +39 -0
- package/dist/bundle/{command-server-entry-BCDJP7XE.js → command-server-entry-4ZQPNUL4.js} +28 -28
- package/dist/bundle/{decode-OY2GR442.js → decode-K7U7X5EL.js} +5 -5
- package/dist/bundle/{dispatch-JWEJCBTF.js → dispatch-56FECRCU.js} +8 -8
- package/dist/bundle/{echarts-AHEPEA5P.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-RVSUV54Z.js → embed-SWLVG73O.js} +6 -6
- package/dist/bundle/{embedder-GRZXZUXR.js → embedder-EJN75BPV.js} +9 -9
- package/dist/bundle/{failure-DDCSR54L.js → failure-WDSX6H3B.js} +2 -2
- package/dist/bundle/{first-run-G3WI4DH4.js → first-run-WPGUUC4Z.js} +12 -12
- package/dist/bundle/first-screen-JMNEUQ46.js +40 -0
- package/dist/bundle/{instructions-NWQC5IP4.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{mcp-KGWT6TGO.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-5TKG2RYD.js +24 -0
- package/dist/bundle/{meeting-model-I6T5HIZ5.js → meeting-model-YXXNETKC.js} +11 -11
- package/dist/bundle/{meeting-semantic-47UA5JBF.js → meeting-semantic-U7EUB3ET.js} +6 -6
- package/dist/bundle/{node-7VXN7F4B.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-BSEON57L.js → node-sqlite-YVOGMDSP.js} +7 -7
- package/dist/bundle/{oauth-V6UAT4YD.js → oauth-2SNRBIJM.js} +7 -7
- package/dist/bundle/{open-7LVAY7ZU.js → open-ABCPY5IH.js} +5 -5
- package/dist/bundle/{openai-OIEH342H.js → openai-4D6PXJR7.js} +15 -15
- package/dist/bundle/{process-PTUCNLZ7.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-S5WY5IZP.js → program-CBDQBZZ3.js} +1319 -1079
- package/dist/bundle/{prompt-7XWTEQ62.js → prompt-2QUK5QST.js} +5 -5
- package/dist/bundle/{recognize-HGIAJXDR.js → recognize-QMQSJRIH.js} +4 -4
- package/dist/bundle/{remote-X4SVEMHS.js → remote-U7TC2BLZ.js} +9 -9
- package/dist/bundle/{rerank-QWM3DQMU.js → rerank-5UPVXGVV.js} +7 -7
- package/dist/bundle/{serve-VVG3TXYT.js → serve-VX6GUM6J.js} +9 -9
- package/dist/bundle/{server-EHYK62BJ.js → server-FOPC6DJ3.js} +62 -61
- package/dist/bundle/server-OIVNOMVK.js +87 -0
- package/dist/bundle/source-HWS5SJIV.js +46 -0
- package/dist/bundle/{sqlite-runtime-MCKXDNYC.js → sqlite-runtime-77NKDEXN.js} +6 -6
- package/dist/bundle/{state-MYNYQJCT.js → state-X2HU6GB2.js} +6 -6
- package/dist/bundle/{store-B7O3F3QB.js → store-2U4U6KL4.js} +22 -22
- package/dist/bundle/{store-FPIU2546.js → store-3CHPHFP7.js} +30 -24
- package/dist/bundle/store-Z3747L5F.js +34 -0
- package/dist/bundle/store-maintenance-command-UOSZJTVP.js +74 -0
- package/dist/bundle/surface-MUT72QON.js +73 -0
- package/dist/bundle/writer-RBKQ64ZM.js +48 -0
- package/dist/commands/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +38 -77
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +3 -1
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +0 -6
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +9 -34
- package/dist/commands/session.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -2
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/amo-cli/SKILL.md +6 -0
- package/dist/bundle/agent-FDNP27SW.js +0 -40
- package/dist/bundle/chunk-77FP6AWC.js +0 -1266
- package/dist/bundle/command-contract-RLIBGIDT.js +0 -39
- package/dist/bundle/first-screen-6MLCMW2U.js +0 -39
- package/dist/bundle/meeting-combined-SVTFVZNJ.js +0 -24
- package/dist/bundle/server-WRPTBVNW.js +0 -86
- package/dist/bundle/source-YISMYLBQ.js +0 -44
- package/dist/bundle/store-A7R2SZVD.js +0 -34
- package/dist/bundle/store-maintenance-command-D55FRTIK.js +0 -73
- package/dist/bundle/surface-3EX6IGHW.js +0 -72
- package/dist/bundle/writer-XDHZ54JD.js +0 -46
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
providerErrorKey,
|
|
10
10
|
renderEvent,
|
|
11
11
|
runContextOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CGW5R4UD.js";
|
|
13
13
|
import {
|
|
14
14
|
permissionCeiling
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RN6RT5CB.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_RERANK_MODEL,
|
|
18
18
|
RERANK_MODELS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IB55P46L.js";
|
|
20
20
|
import {
|
|
21
21
|
carries
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3YM4B2GT.js";
|
|
23
23
|
import {
|
|
24
24
|
note
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6JTHXWPE.js";
|
|
26
26
|
import {
|
|
27
27
|
CATEGORIES,
|
|
28
28
|
FACT_STATUSES,
|
|
@@ -68,18 +68,18 @@ import {
|
|
|
68
68
|
typedCommand,
|
|
69
69
|
untrusted,
|
|
70
70
|
useAsProcessRun
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-PPSAWFJD.js";
|
|
72
72
|
import {
|
|
73
73
|
isCliFailure,
|
|
74
74
|
storeDamaged
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-JLXXUEAM.js";
|
|
76
76
|
import {
|
|
77
77
|
endpoint
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-G2TU5RYY.js";
|
|
79
79
|
import {
|
|
80
80
|
filesPresent,
|
|
81
81
|
sharedModelsDirectory
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-XCCU2E3Z.js";
|
|
83
83
|
import {
|
|
84
84
|
CEILING_KEY,
|
|
85
85
|
COMMAND_PATH_KEY,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
permissionOverrides,
|
|
94
94
|
projectFields,
|
|
95
95
|
resolveOutput
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-BIKOE2IW.js";
|
|
97
97
|
import {
|
|
98
98
|
BUSINESS_KINDS,
|
|
99
99
|
CRM_ACTIVITY_KINDS,
|
|
@@ -108,10 +108,10 @@ import {
|
|
|
108
108
|
ORDER_STATUSES,
|
|
109
109
|
RELATION_KINDS,
|
|
110
110
|
STANDINGS
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-ZLUIRFJX.js";
|
|
112
112
|
import {
|
|
113
113
|
TAG_TYPES
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-RRTMPSQR.js";
|
|
115
115
|
import {
|
|
116
116
|
FACT_TYPES,
|
|
117
117
|
FIELD_TYPES,
|
|
@@ -139,14 +139,14 @@ import {
|
|
|
139
139
|
parseLucene,
|
|
140
140
|
readsZone,
|
|
141
141
|
timezoneOf
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-DSJ6EAOA.js";
|
|
143
143
|
import {
|
|
144
144
|
repairConfigText,
|
|
145
145
|
sharedConfigPath
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-AKRIUNYP.js";
|
|
147
147
|
import {
|
|
148
148
|
storePath
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-TLG6ECZ2.js";
|
|
150
150
|
import {
|
|
151
151
|
configFilePath,
|
|
152
152
|
createRecordLog,
|
|
@@ -155,7 +155,7 @@ import {
|
|
|
155
155
|
resolvePaths,
|
|
156
156
|
saveConfigFile,
|
|
157
157
|
writeSecurely
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-WIHN3ELW.js";
|
|
159
159
|
import {
|
|
160
160
|
COMPACT_FLAG,
|
|
161
161
|
MAX_NEXT_STEPS,
|
|
@@ -207,17 +207,17 @@ import {
|
|
|
207
207
|
unwrap,
|
|
208
208
|
variant,
|
|
209
209
|
writes
|
|
210
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-QFOP3KUP.js";
|
|
211
211
|
import {
|
|
212
212
|
CliError,
|
|
213
213
|
isCliError,
|
|
214
214
|
visibleControls
|
|
215
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-S6JG4YUH.js";
|
|
216
216
|
import {
|
|
217
217
|
__name
|
|
218
218
|
} from "./chunk-ZVVMGPBJ.js";
|
|
219
219
|
|
|
220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
220
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
221
221
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
222
222
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
223
223
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -286,7 +286,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
286
286
|
};
|
|
287
287
|
}, "modelTarget");
|
|
288
288
|
|
|
289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
289
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
290
290
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
291
291
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
292
292
|
var AI_FIELDS = {
|
|
@@ -330,7 +330,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
330
330
|
};
|
|
331
331
|
}, "resolveAISettings");
|
|
332
332
|
|
|
333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
333
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
334
334
|
import { readFileSync } from "node:fs";
|
|
335
335
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
336
336
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -384,7 +384,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
|
|
|
384
384
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
385
385
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
386
386
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
387
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
388
388
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
389
389
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
390
390
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -398,7 +398,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
398
398
|
return ms2;
|
|
399
399
|
}, "parseDuration");
|
|
400
400
|
|
|
401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
401
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
402
402
|
var WEIGHTS = {
|
|
403
403
|
bot: 3,
|
|
404
404
|
scam: 3,
|
|
@@ -423,7 +423,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
423
423
|
var DIGITS = /\d{5,}/;
|
|
424
424
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
425
425
|
|
|
426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
426
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
427
427
|
var linkedIdentity = strictObject({
|
|
428
428
|
provider: text,
|
|
429
429
|
id,
|
|
@@ -478,7 +478,7 @@ var contactCheck = strictObject({
|
|
|
478
478
|
checked_at: time
|
|
479
479
|
});
|
|
480
480
|
|
|
481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
481
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
482
482
|
var member = strictObject({
|
|
483
483
|
id,
|
|
484
484
|
name: nullable(text),
|
|
@@ -501,7 +501,7 @@ var member = strictObject({
|
|
|
501
501
|
check: optional(record(string(), unknown()))
|
|
502
502
|
});
|
|
503
503
|
|
|
504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
504
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
505
505
|
var setting = optional(nullable(boolean()));
|
|
506
506
|
var chat = strictObject({
|
|
507
507
|
ref: reference,
|
|
@@ -542,7 +542,7 @@ var chat = strictObject({
|
|
|
542
542
|
members: optional(array(member))
|
|
543
543
|
});
|
|
544
544
|
|
|
545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
545
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
546
546
|
var attachment = strictObject({
|
|
547
547
|
/** The message it came with, as a locator; absent inside that message. */
|
|
548
548
|
message: optional(reference),
|
|
@@ -587,7 +587,7 @@ var hitFile = strictObject({
|
|
|
587
587
|
local_path: optional(text)
|
|
588
588
|
});
|
|
589
589
|
|
|
590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
590
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
591
591
|
var quoted = strictObject({
|
|
592
592
|
id,
|
|
593
593
|
sender_id: nullable(id),
|
|
@@ -708,7 +708,7 @@ var message = strictObject({
|
|
|
708
708
|
provider_metadata: providerMetadata
|
|
709
709
|
});
|
|
710
710
|
|
|
711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
711
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
712
712
|
var recordedMeeting = strictObject({
|
|
713
713
|
ref: reference,
|
|
714
714
|
meeting_id: count,
|
|
@@ -725,7 +725,7 @@ var recordedMeeting = strictObject({
|
|
|
725
725
|
call: optional(meetingCall)
|
|
726
726
|
});
|
|
727
727
|
|
|
728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
728
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
729
729
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
730
730
|
var contextMessage = strictObject({
|
|
731
731
|
locator: reference,
|
|
@@ -931,7 +931,7 @@ var contactPreparation = strictObject({
|
|
|
931
931
|
})
|
|
932
932
|
});
|
|
933
933
|
|
|
934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
934
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
935
935
|
var nullableText = nullable(text);
|
|
936
936
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
937
937
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -1087,7 +1087,7 @@ var stage = strictObject({
|
|
|
1087
1087
|
untrusted
|
|
1088
1088
|
});
|
|
1089
1089
|
|
|
1090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1090
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
1091
1091
|
var nullableText2 = nullable(text);
|
|
1092
1092
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
1093
1093
|
var standing = picklist(STANDINGS);
|
|
@@ -1266,7 +1266,7 @@ var dealBrief = strictObject({
|
|
|
1266
1266
|
not_read: coverage2.entries.not_read
|
|
1267
1267
|
});
|
|
1268
1268
|
|
|
1269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1269
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
1270
1270
|
var botProfile = strictObject({
|
|
1271
1271
|
name: text,
|
|
1272
1272
|
token: text,
|
|
@@ -1390,7 +1390,7 @@ var stickerInventory = strictObject({
|
|
|
1390
1390
|
url: optional(nullable(text))
|
|
1391
1391
|
});
|
|
1392
1392
|
|
|
1393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1393
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
1394
1394
|
var actionableError = objectWithRest({
|
|
1395
1395
|
code: text,
|
|
1396
1396
|
message: text,
|
|
@@ -1407,7 +1407,7 @@ var batchResult = strictObject({
|
|
|
1407
1407
|
max_error_percent: count
|
|
1408
1408
|
});
|
|
1409
1409
|
|
|
1410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1410
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
1411
1411
|
var conversationBuild = strictObject({
|
|
1412
1412
|
chat: id,
|
|
1413
1413
|
messages: count,
|
|
@@ -1432,13 +1432,13 @@ var catchUpPreparation = strictObject({
|
|
|
1432
1432
|
prepared: optional(conversationPreparation)
|
|
1433
1433
|
});
|
|
1434
1434
|
|
|
1435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1435
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
1436
1436
|
import { spawn } from "node:child_process";
|
|
1437
1437
|
import { randomBytes } from "node:crypto";
|
|
1438
1438
|
import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync as readFileSync2, realpathSync, rmSync } from "node:fs";
|
|
1439
1439
|
import { dirname, join } from "node:path";
|
|
1440
1440
|
|
|
1441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1441
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
1442
1442
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
1443
1443
|
const total = input.total ?? null;
|
|
1444
1444
|
const updated = input.updatedAt ?? null;
|
|
@@ -1469,7 +1469,7 @@ var progressLine = /* @__PURE__ */ __name((progress2) => {
|
|
|
1469
1469
|
return `${progress2.job} ${progress2.profile}: ${of} \u2014 ${progress2.state}${when}`;
|
|
1470
1470
|
}, "progressLine");
|
|
1471
1471
|
|
|
1472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1472
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
1473
1473
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
1474
1474
|
const run = currentRun();
|
|
1475
1475
|
const trace = traceId ?? run.traceId;
|
|
@@ -1483,7 +1483,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
1483
1483
|
}));
|
|
1484
1484
|
}, "recordLogFor");
|
|
1485
1485
|
|
|
1486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1486
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
1487
1487
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
1488
1488
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
1489
1489
|
const out = openSync(log, "a", 384);
|
|
@@ -1638,7 +1638,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
1638
1638
|
return { job: id6, pid, chat: input.chat, log };
|
|
1639
1639
|
}, "startArchiveJob");
|
|
1640
1640
|
|
|
1641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1641
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
1642
1642
|
var problem = strictObject({ code: text, message: text });
|
|
1643
1643
|
var job = strictObject({
|
|
1644
1644
|
id,
|
|
@@ -1661,7 +1661,7 @@ var job = strictObject({
|
|
|
1661
1661
|
error: optional(problem)
|
|
1662
1662
|
});
|
|
1663
1663
|
|
|
1664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1664
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
1665
1665
|
var extractionItem = strictObject({
|
|
1666
1666
|
ref: reference,
|
|
1667
1667
|
attachment: count,
|
|
@@ -1694,7 +1694,7 @@ var extractionReport = strictObject({
|
|
|
1694
1694
|
cursor: optional(text)
|
|
1695
1695
|
});
|
|
1696
1696
|
|
|
1697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1697
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
1698
1698
|
var savedMessageFile = strictObject({
|
|
1699
1699
|
kind: text,
|
|
1700
1700
|
path: text,
|
|
@@ -1781,7 +1781,7 @@ var messageSyncAll = strictObject({
|
|
|
1781
1781
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
1782
1782
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
1783
1783
|
|
|
1784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1784
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
1785
1785
|
var range = strictObject({ from: number(), to: number() });
|
|
1786
1786
|
var storeChatStatus = strictObject({
|
|
1787
1787
|
chat_id: id,
|
|
@@ -1879,7 +1879,7 @@ var storeJobRetry = union([
|
|
|
1879
1879
|
]);
|
|
1880
1880
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
1881
1881
|
|
|
1882
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1882
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
1883
1883
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
1884
1884
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
1885
1885
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -5380,7 +5380,7 @@ __name(useColor, "useColor");
|
|
|
5380
5380
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
5381
5381
|
var program = new Command();
|
|
5382
5382
|
|
|
5383
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5383
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
5384
5384
|
import { isDeepStrictEqual } from "node:util";
|
|
5385
5385
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
5386
5386
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -5513,76 +5513,8 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
5513
5513
|
}
|
|
5514
5514
|
return result;
|
|
5515
5515
|
}, "sharedCommand");
|
|
5516
|
-
var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build, expectedOverrides) => {
|
|
5517
|
-
if (reason.trim().length < 10)
|
|
5518
|
-
throw new Error("a shared contract override needs a specific reason");
|
|
5519
|
-
assertSharedContracts(reference2);
|
|
5520
|
-
if (!hasSharedContract(reference2))
|
|
5521
|
-
throw new Error("a provider shell needs a protected shared definition");
|
|
5522
|
-
const command = build();
|
|
5523
|
-
assertSharedContracts(command);
|
|
5524
|
-
const pending = [];
|
|
5525
|
-
const known = /* @__PURE__ */ new Map();
|
|
5526
|
-
const edits = [];
|
|
5527
|
-
const bindingPath = /* @__PURE__ */ __name((own) => {
|
|
5528
|
-
const path2 = [own.name()];
|
|
5529
|
-
for (let at2 = own.parent; at2 && own !== command; at2 = at2.parent) {
|
|
5530
|
-
path2.unshift(at2.name());
|
|
5531
|
-
if (at2 === command)
|
|
5532
|
-
break;
|
|
5533
|
-
}
|
|
5534
|
-
return path2;
|
|
5535
|
-
}, "bindingPath");
|
|
5536
|
-
const adopt = /* @__PURE__ */ __name((shared, own) => {
|
|
5537
|
-
const inherited = protectedCommands.get(shared);
|
|
5538
|
-
if (!inherited)
|
|
5539
|
-
return;
|
|
5540
|
-
if (!protectedCommands.has(own)) {
|
|
5541
|
-
const originalChildren = own.commands.filter((child) => inherited.reference.children.includes(child.name()));
|
|
5542
|
-
const actual = structuredClone(snapshot(own, known, originalChildren));
|
|
5543
|
-
const overrides = differences(inherited.contract, actual).map((field) => ({
|
|
5544
|
-
command: bindingPath(own),
|
|
5545
|
-
field,
|
|
5546
|
-
before: inherited.contract[field] ?? null,
|
|
5547
|
-
after: actual[field] ?? null,
|
|
5548
|
-
reason: reason.trim()
|
|
5549
|
-
}));
|
|
5550
|
-
for (const edit of overrides)
|
|
5551
|
-
edits.push(edit);
|
|
5552
|
-
pending.push({
|
|
5553
|
-
command: own,
|
|
5554
|
-
record: {
|
|
5555
|
-
reference: structuredClone(inherited.reference),
|
|
5556
|
-
contract: actual,
|
|
5557
|
-
overrides: [...structuredClone(inherited.overrides), ...overrides],
|
|
5558
|
-
originalChildren
|
|
5559
|
-
}
|
|
5560
|
-
});
|
|
5561
|
-
}
|
|
5562
|
-
for (const child of shared.commands) {
|
|
5563
|
-
const actual = own.commands.find((one) => one.name() === child.name());
|
|
5564
|
-
if (actual)
|
|
5565
|
-
adopt(child, actual);
|
|
5566
|
-
}
|
|
5567
|
-
}, "adopt");
|
|
5568
|
-
adopt(reference2, command);
|
|
5569
|
-
const ordered2 = /* @__PURE__ */ __name((records) => [...records].sort((a, b) => JSON.stringify([a.command, a.field]).localeCompare(JSON.stringify([b.command, b.field]))), "ordered");
|
|
5570
|
-
if (!Array.isArray(expectedOverrides) || !same(ordered2(edits), ordered2(expectedOverrides)))
|
|
5571
|
-
throw new CliError("configuration_error", `provider shell ${command.name()} differs from its reviewed shared contract overrides; review Core and provider definitions before updating the explicit declarations`, { reason: "contract.unacknowledged-override", expected: expectedOverrides ?? null, actual: edits });
|
|
5572
|
-
for (const { command: own, record: record2 } of pending) {
|
|
5573
|
-
protectedCommands.set(own, record2);
|
|
5574
|
-
own.hook("preAction", () => {
|
|
5575
|
-
let root = own;
|
|
5576
|
-
while (root.parent)
|
|
5577
|
-
root = root.parent;
|
|
5578
|
-
assertSharedContracts(root);
|
|
5579
|
-
});
|
|
5580
|
-
}
|
|
5581
|
-
assertSharedContracts(command);
|
|
5582
|
-
return command;
|
|
5583
|
-
}, "customizeSharedCommand");
|
|
5584
5516
|
|
|
5585
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5517
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
5586
5518
|
var argumentInfoSchema = object({
|
|
5587
5519
|
name: string(),
|
|
5588
5520
|
required: boolean(),
|
|
@@ -5656,7 +5588,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
5656
5588
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
5657
5589
|
});
|
|
5658
5590
|
|
|
5659
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5591
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
5660
5592
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
5661
5593
|
let command = root;
|
|
5662
5594
|
const path2 = [];
|
|
@@ -5674,7 +5606,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
5674
5606
|
}
|
|
5675
5607
|
}, "refuseJoinedPath");
|
|
5676
5608
|
|
|
5677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5609
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
5678
5610
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
5679
5611
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
5680
5612
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -5712,7 +5644,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
5712
5644
|
progress: "sync.progress"
|
|
5713
5645
|
};
|
|
5714
5646
|
|
|
5715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5647
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5716
5648
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5717
5649
|
const recording = startRecording(options);
|
|
5718
5650
|
try {
|
|
@@ -5927,7 +5859,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5927
5859
|
return void 0;
|
|
5928
5860
|
}, "partialOutcome");
|
|
5929
5861
|
|
|
5930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5862
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
5931
5863
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5932
5864
|
var requests = new AsyncLocalStorage();
|
|
5933
5865
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -5942,7 +5874,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
5942
5874
|
return direct;
|
|
5943
5875
|
}, "exitCodeSet");
|
|
5944
5876
|
|
|
5945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5877
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
5946
5878
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5947
5879
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
5948
5880
|
messageId: message2.id,
|
|
@@ -6048,7 +5980,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
6048
5980
|
}, "guardedWrite");
|
|
6049
5981
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
6050
5982
|
|
|
6051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5983
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
6052
5984
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
6053
5985
|
if (ms2 === void 0)
|
|
6054
5986
|
return body();
|
|
@@ -6074,7 +6006,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
6074
6006
|
}
|
|
6075
6007
|
}, "withDeadline");
|
|
6076
6008
|
|
|
6077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6009
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
6078
6010
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
6079
6011
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
6080
6012
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -6257,7 +6189,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
6257
6189
|
}
|
|
6258
6190
|
}, "withAbort");
|
|
6259
6191
|
|
|
6260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6192
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
6261
6193
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
6262
6194
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
6263
6195
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -6344,7 +6276,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
6344
6276
|
return void 0;
|
|
6345
6277
|
}, "sampleCommand");
|
|
6346
6278
|
|
|
6347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6279
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
6348
6280
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
6349
6281
|
import { join as join2 } from "node:path";
|
|
6350
6282
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -6433,7 +6365,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
6433
6365
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
6434
6366
|
}, "registryProfiles");
|
|
6435
6367
|
|
|
6436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6368
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6437
6369
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
6438
6370
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6439
6371
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -6636,7 +6568,10 @@ var scopes2 = /* @__PURE__ */ __name((raw) => {
|
|
|
6636
6568
|
return out;
|
|
6637
6569
|
}, "scopes");
|
|
6638
6570
|
var savedPermissionKeys = /* @__PURE__ */ __name((raw) => scopes2(raw).flatMap(([path2, scope]) => isNode(scope.permissions) ? Object.keys(scope.permissions).map((key) => ({ key, at: [...path2, "permissions", key] })) : []), "savedPermissionKeys");
|
|
6639
|
-
var permissionIssues = /* @__PURE__ */ __name((saved, known, context2) => saved.filter(({ key }) => !known.has(key)).map(({ at: at2 }) => locate("unknown_permission", at2, context2, (key) =>
|
|
6571
|
+
var permissionIssues = /* @__PURE__ */ __name((saved, known, context2, renamed = /* @__PURE__ */ new Map()) => saved.filter(({ key }) => !known.has(key)).map(({ key: name, at: at2 }) => locate("unknown_permission", at2, context2, (key) => {
|
|
6572
|
+
const now = renamed.get(name);
|
|
6573
|
+
return now === void 0 ? `${key} names no command` : `${key} names no command: its command moved, so rename it to permissions.${now}`;
|
|
6574
|
+
})), "permissionIssues");
|
|
6640
6575
|
var pathId = /* @__PURE__ */ __name((path2) => path2.join("\0"), "pathId");
|
|
6641
6576
|
var prune = /* @__PURE__ */ __name((raw, paths) => {
|
|
6642
6577
|
const drop = new Set(paths.map(pathId));
|
|
@@ -6729,7 +6664,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6729
6664
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6730
6665
|
}, "readConfigFile");
|
|
6731
6666
|
|
|
6732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6667
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6733
6668
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
6734
6669
|
import { dirname as dirname2, join as join3 } from "node:path";
|
|
6735
6670
|
var DEFAULT_CONFIG = {
|
|
@@ -6758,7 +6693,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6758
6693
|
}
|
|
6759
6694
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6760
6695
|
|
|
6761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6696
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
6762
6697
|
import { existsSync as existsSync4, readdirSync as readdirSync3, readFileSync as readFileSync5 } from "node:fs";
|
|
6763
6698
|
import { join as join4 } from "node:path";
|
|
6764
6699
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -6780,7 +6715,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
6780
6715
|
}, "profilesWithAccounts");
|
|
6781
6716
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
6782
6717
|
|
|
6783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6718
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6784
6719
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6785
6720
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6786
6721
|
const path2 = key.split(".");
|
|
@@ -6813,10 +6748,10 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
|
|
|
6813
6748
|
};
|
|
6814
6749
|
}), "settingRows");
|
|
6815
6750
|
|
|
6816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6751
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6817
6752
|
import { existsSync as existsSync5 } from "node:fs";
|
|
6818
6753
|
|
|
6819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6754
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
6820
6755
|
var HISTORY_MAX_DAYS = 1095;
|
|
6821
6756
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
6822
6757
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -6863,7 +6798,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
6863
6798
|
return { batch: { ...batch, messages }, skipped };
|
|
6864
6799
|
}, "limitBatch");
|
|
6865
6800
|
|
|
6866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6801
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6867
6802
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6868
6803
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6869
6804
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -7391,7 +7326,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
7391
7326
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
7392
7327
|
}, "given");
|
|
7393
7328
|
|
|
7394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7329
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
7395
7330
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
7396
7331
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
7397
7332
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -7448,7 +7383,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
7448
7383
|
};
|
|
7449
7384
|
}, "runBudget");
|
|
7450
7385
|
|
|
7451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7386
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
7452
7387
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
|
|
7453
7388
|
const { deadline, signal, app } = environmentOf(command);
|
|
7454
7389
|
const now = deadline?.();
|
|
@@ -7602,7 +7537,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
7602
7537
|
return words.join(" ");
|
|
7603
7538
|
}, "commandPath");
|
|
7604
7539
|
|
|
7605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7540
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
7606
7541
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
7607
7542
|
var FETCH = { remote: "read", local: "write" };
|
|
7608
7543
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -7738,6 +7673,12 @@ var reachesOtherService = /* @__PURE__ */ __name((command) => {
|
|
|
7738
7673
|
}, "reachesOtherService");
|
|
7739
7674
|
var isOtherServiceCall = /* @__PURE__ */ __name((command) => OTHER_SERVICE.has(command), "isOtherServiceCall");
|
|
7740
7675
|
var ownerOnlyOption = /* @__PURE__ */ __name((flags, description) => annotateOption(new Option(flags, description), { mcp: false }), "ownerOnlyOption");
|
|
7676
|
+
var allowDeletionsOption = /* @__PURE__ */ __name(() => ownerOnlyOption("--allow-deletions <count>", "let this run mark deleted up to this many of what its full list no longer has, when the guard holds it").argParser((text5) => {
|
|
7677
|
+
const count6 = Number(text5);
|
|
7678
|
+
if (!Number.isSafeInteger(count6) || count6 < 1)
|
|
7679
|
+
throw new InvalidArgumentError("a whole number, 1 or more");
|
|
7680
|
+
return count6;
|
|
7681
|
+
}), "allowDeletionsOption");
|
|
7741
7682
|
var judgedEffects = /* @__PURE__ */ __name((effects) => effects && { remote: effects.remote, local: "none" }, "judgedEffects");
|
|
7742
7683
|
var judgedStepEffects = /* @__PURE__ */ __name((effects) => effects?.remote === "none" ? effects : judgedEffects(effects), "judgedStepEffects");
|
|
7743
7684
|
var judgedTargets = /* @__PURE__ */ __name((root) => {
|
|
@@ -7759,7 +7700,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
7759
7700
|
throw readOnlyRefusal(lock, what);
|
|
7760
7701
|
}, "refuseUnderReadOnly");
|
|
7761
7702
|
|
|
7762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7703
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
7763
7704
|
var account = strictObject({
|
|
7764
7705
|
provider: text,
|
|
7765
7706
|
id,
|
|
@@ -7769,7 +7710,7 @@ var account = strictObject({
|
|
|
7769
7710
|
scope: optional(picklist(["personal", "work"]))
|
|
7770
7711
|
});
|
|
7771
7712
|
|
|
7772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7713
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
7773
7714
|
var accountSession = strictObject({
|
|
7774
7715
|
current: boolean(),
|
|
7775
7716
|
client: nullable(text),
|
|
@@ -7779,7 +7720,7 @@ var accountSession = strictObject({
|
|
|
7779
7720
|
created_at: optional(nullable(time))
|
|
7780
7721
|
});
|
|
7781
7722
|
|
|
7782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7723
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
7783
7724
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
7784
7725
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
7785
7726
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -7808,7 +7749,7 @@ var accountRemoval = strictObject({
|
|
|
7808
7749
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
7809
7750
|
});
|
|
7810
7751
|
|
|
7811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7752
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
7812
7753
|
var accountProfile = strictObject({
|
|
7813
7754
|
profile: id,
|
|
7814
7755
|
current: boolean(),
|
|
@@ -7820,7 +7761,7 @@ var accountProfile = strictObject({
|
|
|
7820
7761
|
bot: optional(literal(true))
|
|
7821
7762
|
});
|
|
7822
7763
|
|
|
7823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7764
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
7824
7765
|
var milliseconds = pipe(number(), minValue(0));
|
|
7825
7766
|
var counterReading = strictObject({
|
|
7826
7767
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7832,7 +7773,7 @@ var counterReading = strictObject({
|
|
|
7832
7773
|
});
|
|
7833
7774
|
var selection = record(string(), unknown());
|
|
7834
7775
|
|
|
7835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7776
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7836
7777
|
var adminRow = strictObject({
|
|
7837
7778
|
ref: reference,
|
|
7838
7779
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7885,7 +7826,7 @@ var adminReport = strictObject({
|
|
|
7885
7826
|
rows: array(adminRow)
|
|
7886
7827
|
});
|
|
7887
7828
|
|
|
7888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7829
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7889
7830
|
var closeSuggestion = strictObject({
|
|
7890
7831
|
as: picklist(["done", "dismissed"]),
|
|
7891
7832
|
/** The agent's name. */
|
|
@@ -7947,7 +7888,7 @@ var task = strictObject({
|
|
|
7947
7888
|
updated_at: optional(time)
|
|
7948
7889
|
});
|
|
7949
7890
|
|
|
7950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7891
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7951
7892
|
var agendaChat = strictObject({
|
|
7952
7893
|
chat: reference,
|
|
7953
7894
|
title: nullable(text),
|
|
@@ -8017,11 +7958,11 @@ var agenda = strictObject({
|
|
|
8017
7958
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
8018
7959
|
});
|
|
8019
7960
|
|
|
8020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7961
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
8021
7962
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
8022
7963
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
8023
7964
|
|
|
8024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7965
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
8025
7966
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
8026
7967
|
var attachmentBytes = strictObject({
|
|
8027
7968
|
ref: reference,
|
|
@@ -8052,7 +7993,7 @@ var attachmentTextChange = strictObject({
|
|
|
8052
7993
|
text: optional(text)
|
|
8053
7994
|
});
|
|
8054
7995
|
|
|
8055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7996
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
8056
7997
|
var chart = strictObject({
|
|
8057
7998
|
version: literal(1),
|
|
8058
7999
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -8067,7 +8008,7 @@ var chart = strictObject({
|
|
|
8067
8008
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
8068
8009
|
});
|
|
8069
8010
|
|
|
8070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8011
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
8071
8012
|
var named = strictObject({
|
|
8072
8013
|
id,
|
|
8073
8014
|
title: nullable(text),
|
|
@@ -8090,7 +8031,7 @@ var folder = strictObject({
|
|
|
8090
8031
|
excluded_chats: optional(array(named))
|
|
8091
8032
|
});
|
|
8092
8033
|
|
|
8093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8034
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
8094
8035
|
var inviteLink = strictObject({
|
|
8095
8036
|
link: text,
|
|
8096
8037
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -8106,7 +8047,7 @@ var inviteLink = strictObject({
|
|
|
8106
8047
|
joined_count: optional(count)
|
|
8107
8048
|
});
|
|
8108
8049
|
|
|
8109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8050
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
8110
8051
|
var operated = { operation_id: id, chat_id: id };
|
|
8111
8052
|
var group = strictObject({
|
|
8112
8053
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -8186,7 +8127,7 @@ var chatFolderOrder = strictObject({
|
|
|
8186
8127
|
folders: array(strictObject({ id, title: text }))
|
|
8187
8128
|
});
|
|
8188
8129
|
|
|
8189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8130
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
8190
8131
|
var operated2 = { operation_id: id, chat_id: id };
|
|
8191
8132
|
var chatRemoval = strictObject(operated2);
|
|
8192
8133
|
var chatMuting = strictObject({
|
|
@@ -8197,7 +8138,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
8197
8138
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
8198
8139
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
8199
8140
|
|
|
8200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8141
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
8201
8142
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
8202
8143
|
var chatEvent = strictObject({
|
|
8203
8144
|
chat_id: id,
|
|
@@ -8214,7 +8155,7 @@ var chatEvent = strictObject({
|
|
|
8214
8155
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
8215
8156
|
});
|
|
8216
8157
|
|
|
8217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8158
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
8218
8159
|
var chatMetadata = strictObject({
|
|
8219
8160
|
chat_id: id,
|
|
8220
8161
|
title: nullable(text),
|
|
@@ -8229,7 +8170,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
8229
8170
|
has_more: boolean()
|
|
8230
8171
|
});
|
|
8231
8172
|
|
|
8232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8173
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
8233
8174
|
var action = picklist(["report", "delete", "remove"]);
|
|
8234
8175
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
8235
8176
|
var chatRules = strictObject({
|
|
@@ -8266,7 +8207,7 @@ var chatModeration = strictObject({
|
|
|
8266
8207
|
}))
|
|
8267
8208
|
});
|
|
8268
8209
|
|
|
8269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8210
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
8270
8211
|
var chatSending = strictObject({
|
|
8271
8212
|
mode: picklist(["allowed", "ask", "denied"]),
|
|
8272
8213
|
meaning: text,
|
|
@@ -8276,7 +8217,7 @@ var chatSending = strictObject({
|
|
|
8276
8217
|
changed: optional(boolean())
|
|
8277
8218
|
});
|
|
8278
8219
|
|
|
8279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8220
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
8280
8221
|
var optionalCount = optional(count);
|
|
8281
8222
|
var minutes = nullable(number());
|
|
8282
8223
|
var chatStats = strictObject({
|
|
@@ -8352,7 +8293,7 @@ var taskStats = strictObject({
|
|
|
8352
8293
|
}))
|
|
8353
8294
|
});
|
|
8354
8295
|
|
|
8355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8296
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
8356
8297
|
var memberCount = strictObject({
|
|
8357
8298
|
day: pipe(text, isoDate()),
|
|
8358
8299
|
participants: nullable(count),
|
|
@@ -8375,7 +8316,7 @@ var chatTracking = strictObject({
|
|
|
8375
8316
|
tracked: boolean()
|
|
8376
8317
|
});
|
|
8377
8318
|
|
|
8378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8319
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
8379
8320
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8380
8321
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
8381
8322
|
var profileFields = {
|
|
@@ -8413,7 +8354,7 @@ var profileFields = {
|
|
|
8413
8354
|
}))
|
|
8414
8355
|
};
|
|
8415
8356
|
|
|
8416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8357
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
8417
8358
|
var contact = strictObject({
|
|
8418
8359
|
ref: reference,
|
|
8419
8360
|
id,
|
|
@@ -8444,7 +8385,7 @@ var contact = strictObject({
|
|
|
8444
8385
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8445
8386
|
});
|
|
8446
8387
|
|
|
8447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8388
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8448
8389
|
var contactNote = strictObject({
|
|
8449
8390
|
id,
|
|
8450
8391
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8456,13 +8397,13 @@ var contactNote = strictObject({
|
|
|
8456
8397
|
updated_at: time
|
|
8457
8398
|
});
|
|
8458
8399
|
|
|
8459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8400
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8460
8401
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8461
8402
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8462
8403
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8463
8404
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8464
8405
|
|
|
8465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8406
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8466
8407
|
var conversation = strictObject({
|
|
8467
8408
|
id,
|
|
8468
8409
|
chat: reference,
|
|
@@ -8477,7 +8418,7 @@ var conversation = strictObject({
|
|
|
8477
8418
|
rules_version: count
|
|
8478
8419
|
});
|
|
8479
8420
|
|
|
8480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8421
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8481
8422
|
var conversationDetails = union([
|
|
8482
8423
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8483
8424
|
message
|
|
@@ -8572,7 +8513,7 @@ var conversationHit = strictObject({
|
|
|
8572
8513
|
untrusted
|
|
8573
8514
|
});
|
|
8574
8515
|
|
|
8575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8516
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8576
8517
|
var counters = strictObject({
|
|
8577
8518
|
cutoff: time,
|
|
8578
8519
|
max_age_ms: milliseconds,
|
|
@@ -8602,7 +8543,7 @@ var counterRefresh = strictObject({
|
|
|
8602
8543
|
complete: optional(boolean())
|
|
8603
8544
|
});
|
|
8604
8545
|
|
|
8605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8546
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8606
8547
|
var document = strictObject({
|
|
8607
8548
|
ref: reference,
|
|
8608
8549
|
id,
|
|
@@ -8617,7 +8558,7 @@ var document = strictObject({
|
|
|
8617
8558
|
owners: optional(array(text))
|
|
8618
8559
|
});
|
|
8619
8560
|
|
|
8620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8561
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8621
8562
|
var documentLink = strictObject({
|
|
8622
8563
|
ref: reference,
|
|
8623
8564
|
url: text,
|
|
@@ -8628,7 +8569,7 @@ var documentLink = strictObject({
|
|
|
8628
8569
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8629
8570
|
});
|
|
8630
8571
|
|
|
8631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8572
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8632
8573
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8633
8574
|
var contribution = strictObject({
|
|
8634
8575
|
message: evidenceMessage,
|
|
@@ -8658,7 +8599,7 @@ var retentionStay = strictObject({
|
|
|
8658
8599
|
});
|
|
8659
8600
|
var evidence = union([contribution, retentionStay]);
|
|
8660
8601
|
|
|
8661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8602
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8662
8603
|
var fact = strictObject({
|
|
8663
8604
|
ref: reference,
|
|
8664
8605
|
id,
|
|
@@ -8689,7 +8630,7 @@ var fact = strictObject({
|
|
|
8689
8630
|
updated_at: time
|
|
8690
8631
|
});
|
|
8691
8632
|
|
|
8692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8633
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8693
8634
|
var hit = strictObject({
|
|
8694
8635
|
kind: picklist([
|
|
8695
8636
|
"message",
|
|
@@ -8701,6 +8642,9 @@ var hit = strictObject({
|
|
|
8701
8642
|
"deal",
|
|
8702
8643
|
"lead",
|
|
8703
8644
|
"crm_file",
|
|
8645
|
+
"issue",
|
|
8646
|
+
"project",
|
|
8647
|
+
"issue_comment",
|
|
8704
8648
|
...BUSINESS_KINDS
|
|
8705
8649
|
]),
|
|
8706
8650
|
ref: reference,
|
|
@@ -8708,6 +8652,8 @@ var hit = strictObject({
|
|
|
8708
8652
|
url: optional(text),
|
|
8709
8653
|
/** The account it was found in; a note's folder id, or `internal` for a note written in memo. */
|
|
8710
8654
|
account: text,
|
|
8655
|
+
/** A tracker hit that more than one sign-in holds: every account it was found in, `account` first. */
|
|
8656
|
+
accounts: optional(array(text)),
|
|
8711
8657
|
/** The chat, the mail thread's subject, the note's, the event's or the meeting's title. */
|
|
8712
8658
|
title: nullable(text),
|
|
8713
8659
|
/** Null for a meeting whose start is unknown. */
|
|
@@ -8748,7 +8694,7 @@ var hit = strictObject({
|
|
|
8748
8694
|
untrusted
|
|
8749
8695
|
});
|
|
8750
8696
|
|
|
8751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8697
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8752
8698
|
var identity = strictObject({
|
|
8753
8699
|
ref: reference,
|
|
8754
8700
|
provider: text,
|
|
@@ -8764,7 +8710,7 @@ var identity = strictObject({
|
|
|
8764
8710
|
person: optional(nullable(reference))
|
|
8765
8711
|
});
|
|
8766
8712
|
|
|
8767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8713
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8768
8714
|
var imageEmbedding = strictObject({
|
|
8769
8715
|
model: text,
|
|
8770
8716
|
embedded: count,
|
|
@@ -8773,7 +8719,7 @@ var imageEmbedding = strictObject({
|
|
|
8773
8719
|
more: boolean()
|
|
8774
8720
|
});
|
|
8775
8721
|
|
|
8776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8722
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8777
8723
|
var joinRequest = strictObject({
|
|
8778
8724
|
person_id: id,
|
|
8779
8725
|
name: nullable(text),
|
|
@@ -8784,7 +8730,7 @@ var joinRequest = strictObject({
|
|
|
8784
8730
|
about: optional(text)
|
|
8785
8731
|
});
|
|
8786
8732
|
|
|
8787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8733
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8788
8734
|
var pollVote = strictObject({
|
|
8789
8735
|
person_id: id,
|
|
8790
8736
|
name: nullable(text),
|
|
@@ -8794,7 +8740,7 @@ var pollVote = strictObject({
|
|
|
8794
8740
|
voted_at: time
|
|
8795
8741
|
});
|
|
8796
8742
|
|
|
8797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8743
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8798
8744
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8799
8745
|
var observation = strictObject({
|
|
8800
8746
|
value: pipe(number(), minValue(0)),
|
|
@@ -8836,7 +8782,7 @@ var serveSummary = strictObject({
|
|
|
8836
8782
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8837
8783
|
});
|
|
8838
8784
|
|
|
8839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8785
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8840
8786
|
var mailCounts = strictObject({
|
|
8841
8787
|
by: picklist(["day", "week", "sender"]),
|
|
8842
8788
|
received: count,
|
|
@@ -8851,7 +8797,7 @@ var mailCounts = strictObject({
|
|
|
8851
8797
|
}))
|
|
8852
8798
|
});
|
|
8853
8799
|
|
|
8854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8800
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8855
8801
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8856
8802
|
var base = { id, evidence: array(evidence2) };
|
|
8857
8803
|
var finding = variant("kind", [
|
|
@@ -8995,7 +8941,7 @@ var mailFindings = strictObject({
|
|
|
8995
8941
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8996
8942
|
});
|
|
8997
8943
|
|
|
8998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8944
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8999
8945
|
var mediaArchive = strictObject({
|
|
9000
8946
|
directory: text,
|
|
9001
8947
|
chats: count,
|
|
@@ -9027,7 +8973,7 @@ var mediaArchiveTimer = union([
|
|
|
9027
8973
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9028
8974
|
]);
|
|
9029
8975
|
|
|
9030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8976
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9031
8977
|
var preparationId = pipe(string(), minLength(1));
|
|
9032
8978
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9033
8979
|
var preparationTime = nullable(isoTime);
|
|
@@ -9119,7 +9065,7 @@ var preparationMeeting = strictObject({
|
|
|
9119
9065
|
updated_at: isoTime
|
|
9120
9066
|
});
|
|
9121
9067
|
|
|
9122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9068
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9123
9069
|
var meetingEvidence = preparationEvidence;
|
|
9124
9070
|
var meetingPersonContext = strictObject({
|
|
9125
9071
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9141,7 +9087,7 @@ var meetingPersonContext = strictObject({
|
|
|
9141
9087
|
})
|
|
9142
9088
|
});
|
|
9143
9089
|
|
|
9144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9090
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9145
9091
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9146
9092
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9147
9093
|
var finding2 = variant("kind", [
|
|
@@ -9179,7 +9125,7 @@ var meetingFindings = strictObject({
|
|
|
9179
9125
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9180
9126
|
});
|
|
9181
9127
|
|
|
9182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9128
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9183
9129
|
var communicationCoverage = strictObject({
|
|
9184
9130
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9185
9131
|
query: string(),
|
|
@@ -9224,7 +9170,7 @@ var preparationCommunications = strictObject({
|
|
|
9224
9170
|
}))
|
|
9225
9171
|
});
|
|
9226
9172
|
|
|
9227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9173
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9228
9174
|
var meetingPreparation = strictObject({
|
|
9229
9175
|
communications: optional(preparationCommunications),
|
|
9230
9176
|
schema_version: literal(1),
|
|
@@ -9337,7 +9283,7 @@ var meetingPreparation = strictObject({
|
|
|
9337
9283
|
})
|
|
9338
9284
|
});
|
|
9339
9285
|
|
|
9340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9286
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9341
9287
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9342
9288
|
var id3 = pipe(string(), minLength(1));
|
|
9343
9289
|
var text3 = string();
|
|
@@ -9401,7 +9347,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9401
9347
|
})
|
|
9402
9348
|
});
|
|
9403
9349
|
|
|
9404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9350
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9405
9351
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9406
9352
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9407
9353
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9431,7 +9377,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9431
9377
|
})
|
|
9432
9378
|
});
|
|
9433
9379
|
|
|
9434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9380
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9435
9381
|
var text4 = string();
|
|
9436
9382
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9437
9383
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9448,7 +9394,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9448
9394
|
persistence: literal("proposal-only")
|
|
9449
9395
|
});
|
|
9450
9396
|
|
|
9451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9397
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9452
9398
|
var memory = strictObject({
|
|
9453
9399
|
ref: reference,
|
|
9454
9400
|
id,
|
|
@@ -9476,7 +9422,7 @@ var memory = strictObject({
|
|
|
9476
9422
|
updated_at: time
|
|
9477
9423
|
});
|
|
9478
9424
|
|
|
9479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9425
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9480
9426
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9481
9427
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
9482
9428
|
var mention = strictObject({
|
|
@@ -9520,7 +9466,7 @@ var mentionRebuild = strictObject({
|
|
|
9520
9466
|
mentions: count
|
|
9521
9467
|
});
|
|
9522
9468
|
|
|
9523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9469
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9524
9470
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9525
9471
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9526
9472
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
@@ -9529,7 +9475,7 @@ var scheduledCancellation = strictObject({ ...operated3, cancelled: array(id) })
|
|
|
9529
9475
|
var scheduledSendEntries = { ...operated3, sent: array(id), messages: array(message) };
|
|
9530
9476
|
var scheduledSend = strictObject(scheduledSendEntries);
|
|
9531
9477
|
|
|
9532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9478
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9533
9479
|
var messageTranscript = strictObject({
|
|
9534
9480
|
message_id: id,
|
|
9535
9481
|
text,
|
|
@@ -9587,7 +9533,7 @@ var evidencePacket = strictObject({
|
|
|
9587
9533
|
}))
|
|
9588
9534
|
});
|
|
9589
9535
|
|
|
9590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9536
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9591
9537
|
var messageThread = strictObject({
|
|
9592
9538
|
ref: reference,
|
|
9593
9539
|
chat: id,
|
|
@@ -9604,7 +9550,7 @@ var messageThread = strictObject({
|
|
|
9604
9550
|
});
|
|
9605
9551
|
var messageContext = union([message, messageThread]);
|
|
9606
9552
|
|
|
9607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9553
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9608
9554
|
var messageCounts = strictObject({
|
|
9609
9555
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9610
9556
|
total: count,
|
|
@@ -9617,7 +9563,7 @@ var messageCounts = strictObject({
|
|
|
9617
9563
|
}))
|
|
9618
9564
|
});
|
|
9619
9565
|
|
|
9620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9566
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9621
9567
|
var messageLink = strictObject({
|
|
9622
9568
|
ref: reference,
|
|
9623
9569
|
url: nullable(text),
|
|
@@ -9634,7 +9580,7 @@ var messageLink = strictObject({
|
|
|
9634
9580
|
})))
|
|
9635
9581
|
});
|
|
9636
9582
|
|
|
9637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9583
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9638
9584
|
var messageWrite = strictObject({
|
|
9639
9585
|
operation_id: id,
|
|
9640
9586
|
message,
|
|
@@ -9649,7 +9595,7 @@ var draftWrite = strictObject({
|
|
|
9649
9595
|
});
|
|
9650
9596
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9651
9597
|
|
|
9652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9598
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9653
9599
|
var model2 = strictObject({
|
|
9654
9600
|
id,
|
|
9655
9601
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9684,7 +9630,7 @@ var chosenModel = strictObject({
|
|
|
9684
9630
|
estimate_seconds: nullable(count)
|
|
9685
9631
|
});
|
|
9686
9632
|
|
|
9687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9633
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9688
9634
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9689
9635
|
var modelKey = strictObject({
|
|
9690
9636
|
provider: text,
|
|
@@ -9694,7 +9640,7 @@ var modelKey = strictObject({
|
|
|
9694
9640
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9695
9641
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9696
9642
|
|
|
9697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9643
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9698
9644
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9699
9645
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9700
9646
|
var graph = strictObject({
|
|
@@ -9728,14 +9674,14 @@ var officialStats = strictObject({
|
|
|
9728
9674
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9729
9675
|
});
|
|
9730
9676
|
|
|
9731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9677
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9732
9678
|
var person2 = strictObject({
|
|
9733
9679
|
ref: reference,
|
|
9734
9680
|
name: nullable(text),
|
|
9735
9681
|
identities: optional(array(identity))
|
|
9736
9682
|
});
|
|
9737
9683
|
|
|
9738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9684
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9739
9685
|
var poll = strictObject({
|
|
9740
9686
|
chat_id: id,
|
|
9741
9687
|
message_id: id,
|
|
@@ -9751,11 +9697,11 @@ var poll = strictObject({
|
|
|
9751
9697
|
});
|
|
9752
9698
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9753
9699
|
|
|
9754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9700
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9755
9701
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9756
9702
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9757
9703
|
|
|
9758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9704
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9759
9705
|
var figures = record(string(), number());
|
|
9760
9706
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9761
9707
|
var rankingRow = strictObject({
|
|
@@ -9802,7 +9748,7 @@ var ranking = strictObject({
|
|
|
9802
9748
|
rows: array(rankingRow)
|
|
9803
9749
|
});
|
|
9804
9750
|
|
|
9805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9751
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9806
9752
|
var reaction = strictObject({
|
|
9807
9753
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9808
9754
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9810,7 +9756,7 @@ var reaction = strictObject({
|
|
|
9810
9756
|
reacted_at: time
|
|
9811
9757
|
});
|
|
9812
9758
|
|
|
9813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9759
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9814
9760
|
var reactionChange = strictObject({
|
|
9815
9761
|
operation_id: id,
|
|
9816
9762
|
chat_id: id,
|
|
@@ -9818,7 +9764,7 @@ var reactionChange = strictObject({
|
|
|
9818
9764
|
reaction: nullable(text)
|
|
9819
9765
|
});
|
|
9820
9766
|
|
|
9821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9767
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9822
9768
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9823
9769
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9824
9770
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9829,7 +9775,7 @@ var recipientChange = strictObject({
|
|
|
9829
9775
|
...partial(recipientOff).entries
|
|
9830
9776
|
});
|
|
9831
9777
|
|
|
9832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9778
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9833
9779
|
var events = array(record(string(), unknown()));
|
|
9834
9780
|
var recordedRun = strictObject({
|
|
9835
9781
|
run_id: id,
|
|
@@ -9901,7 +9847,7 @@ var runHit = strictObject({
|
|
|
9901
9847
|
});
|
|
9902
9848
|
var runLocation = strictObject({ path: text });
|
|
9903
9849
|
|
|
9904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9850
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9905
9851
|
var relationship = strictObject({
|
|
9906
9852
|
id,
|
|
9907
9853
|
from: reference,
|
|
@@ -9928,7 +9874,7 @@ var relationship = strictObject({
|
|
|
9928
9874
|
created_at: time
|
|
9929
9875
|
});
|
|
9930
9876
|
|
|
9931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9877
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
9932
9878
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9933
9879
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9934
9880
|
var responseTimes = strictObject({
|
|
@@ -9945,7 +9891,7 @@ var waitingChats = strictObject({
|
|
|
9945
9891
|
by_kind: strictObject({ private: count, group: count })
|
|
9946
9892
|
});
|
|
9947
9893
|
|
|
9948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9894
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9949
9895
|
var retentionCohort = strictObject({
|
|
9950
9896
|
/** The first day of the joining day or week. */
|
|
9951
9897
|
cohort: text,
|
|
@@ -9993,7 +9939,7 @@ var retention = strictObject({
|
|
|
9993
9939
|
rows: array(retentionCohort)
|
|
9994
9940
|
});
|
|
9995
9941
|
|
|
9996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9942
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
9997
9943
|
var savedSearch = strictObject({
|
|
9998
9944
|
id,
|
|
9999
9945
|
/** `null` for a run in the history. */
|
|
@@ -10010,7 +9956,7 @@ var savedSearch = strictObject({
|
|
|
10010
9956
|
});
|
|
10011
9957
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10012
9958
|
|
|
10013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9959
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10014
9960
|
var sendAttempt = strictObject({
|
|
10015
9961
|
at: time,
|
|
10016
9962
|
profile: text,
|
|
@@ -10038,7 +9984,7 @@ var sendAttempt = strictObject({
|
|
|
10038
9984
|
error_code: optional(text)
|
|
10039
9985
|
});
|
|
10040
9986
|
|
|
10041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9987
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10042
9988
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10043
9989
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10044
9990
|
var infoSchema = strictObject({
|
|
@@ -10268,7 +10214,7 @@ var storeRepair = union([
|
|
|
10268
10214
|
]);
|
|
10269
10215
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10270
10216
|
|
|
10271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10217
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10272
10218
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10273
10219
|
var storeTable = strictObject({
|
|
10274
10220
|
name: text,
|
|
@@ -10277,7 +10223,7 @@ var storeTable = strictObject({
|
|
|
10277
10223
|
bytes: optional(nullable(count))
|
|
10278
10224
|
});
|
|
10279
10225
|
|
|
10280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10226
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10281
10227
|
var tagTarget = variant("type", [
|
|
10282
10228
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10283
10229
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10308,7 +10254,7 @@ var automaticTags = strictObject({
|
|
|
10308
10254
|
dry_run: boolean()
|
|
10309
10255
|
});
|
|
10310
10256
|
|
|
10311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10257
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10312
10258
|
var tagging = strictObject({
|
|
10313
10259
|
tag: text,
|
|
10314
10260
|
type: picklist(TAG_TYPES),
|
|
@@ -10321,7 +10267,7 @@ var tagging = strictObject({
|
|
|
10321
10267
|
created_at: time
|
|
10322
10268
|
});
|
|
10323
10269
|
|
|
10324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10270
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10325
10271
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10326
10272
|
var taskPair = strictObject({
|
|
10327
10273
|
task: nullable(side),
|
|
@@ -10344,7 +10290,7 @@ var taskPair = strictObject({
|
|
|
10344
10290
|
created_at: time
|
|
10345
10291
|
});
|
|
10346
10292
|
|
|
10347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10293
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10348
10294
|
var nullableTime = nullable(time);
|
|
10349
10295
|
var link = strictObject({
|
|
10350
10296
|
id,
|
|
@@ -10518,7 +10464,7 @@ var taskReview = strictObject({
|
|
|
10518
10464
|
untrusted
|
|
10519
10465
|
});
|
|
10520
10466
|
|
|
10521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10467
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
10522
10468
|
var template = strictObject({
|
|
10523
10469
|
key: text,
|
|
10524
10470
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -10530,7 +10476,7 @@ var template = strictObject({
|
|
|
10530
10476
|
updated_by: nullable(text)
|
|
10531
10477
|
});
|
|
10532
10478
|
|
|
10533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10479
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10534
10480
|
var topic = strictObject({
|
|
10535
10481
|
id,
|
|
10536
10482
|
title: text,
|
|
@@ -10544,7 +10490,7 @@ var topic = strictObject({
|
|
|
10544
10490
|
untrusted
|
|
10545
10491
|
});
|
|
10546
10492
|
|
|
10547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10493
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10548
10494
|
var ENTITIES = {
|
|
10549
10495
|
sync_progress: progress,
|
|
10550
10496
|
deal,
|
|
@@ -10846,7 +10792,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10846
10792
|
return [name, definition];
|
|
10847
10793
|
})), "entityDefinitions");
|
|
10848
10794
|
|
|
10849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10795
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10850
10796
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10851
10797
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10852
10798
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10880,7 +10826,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10880
10826
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10881
10827
|
}, "answerRow");
|
|
10882
10828
|
|
|
10883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10829
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
10884
10830
|
var where = [{ field: "ref" }];
|
|
10885
10831
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
10886
10832
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -10972,7 +10918,7 @@ var STATUS_ROWS = {
|
|
|
10972
10918
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
10973
10919
|
};
|
|
10974
10920
|
|
|
10975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10921
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
10976
10922
|
var TEXT_CHARS = 400;
|
|
10977
10923
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
10978
10924
|
var messageRow = {
|
|
@@ -11106,9 +11052,13 @@ var isListOrRecord = /* @__PURE__ */ __name((value) => typeof value === "object"
|
|
|
11106
11052
|
var firstSet = /* @__PURE__ */ __name((item, field, column) => fieldsOfColumn(field).map((path2) => at(item, path2)).find((value) => printable(value, column)), "firstSet");
|
|
11107
11053
|
var sourceOf = /* @__PURE__ */ __name((item, column) => fieldsOfColumn(column.field).find((path2) => printable(at(item, path2), column)), "sourceOf");
|
|
11108
11054
|
var clean = /* @__PURE__ */ __name((text5) => visibleControls(text5.replace(/\s+/g, " ").trim()), "clean");
|
|
11055
|
+
var BLOCK = /^(⟦untrusted:([0-9a-f]{16}) [^⟦⟧]*⟧)([^⟦⟧]*)(⟦\/untrusted:\2⟧)$/su;
|
|
11109
11056
|
var cut = /* @__PURE__ */ __name((text5, chars) => {
|
|
11110
11057
|
if (chars <= 0)
|
|
11111
11058
|
return text5;
|
|
11059
|
+
const block = BLOCK.exec(text5);
|
|
11060
|
+
if (block)
|
|
11061
|
+
return `${block[1]}${cut(block[3] ?? "", chars)}${block[4]}`;
|
|
11112
11062
|
const letters = Array.from(text5);
|
|
11113
11063
|
return letters.length <= chars ? text5 : `${letters.slice(0, chars).join("")}\u2026(+${letters.length - chars})`;
|
|
11114
11064
|
}, "cut");
|
|
@@ -11340,7 +11290,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11340
11290
|
return lines.concat(footerOf(body)).join("\n");
|
|
11341
11291
|
}, "compactText");
|
|
11342
11292
|
|
|
11343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11293
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11344
11294
|
import { join as join5 } from "node:path";
|
|
11345
11295
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11346
11296
|
var IMAGE_MODELS = [
|
|
@@ -11394,7 +11344,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11394
11344
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
11395
11345
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11396
11346
|
|
|
11397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11347
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11398
11348
|
var STEPS2 = defineSteps([
|
|
11399
11349
|
...STEPS,
|
|
11400
11350
|
{
|
|
@@ -11642,6 +11592,20 @@ var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
|
11642
11592
|
root = root.parent;
|
|
11643
11593
|
return root;
|
|
11644
11594
|
}, "rootOf");
|
|
11595
|
+
var typedCommandPath = /* @__PURE__ */ __name((program2, rest) => {
|
|
11596
|
+
const words = [];
|
|
11597
|
+
let current2 = program2;
|
|
11598
|
+
for (const token of rest) {
|
|
11599
|
+
if (token.startsWith("-"))
|
|
11600
|
+
continue;
|
|
11601
|
+
const next = current2.commands.find((one) => one.name() === token || one.aliases().includes(token));
|
|
11602
|
+
if (!next)
|
|
11603
|
+
break;
|
|
11604
|
+
words.push(token);
|
|
11605
|
+
current2 = next;
|
|
11606
|
+
}
|
|
11607
|
+
return words.join(" ");
|
|
11608
|
+
}, "typedCommandPath");
|
|
11645
11609
|
var commandAt = /* @__PURE__ */ __name((root, path2) => {
|
|
11646
11610
|
let at2 = root;
|
|
11647
11611
|
for (const word of path2.split(" "))
|
|
@@ -11684,7 +11648,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11684
11648
|
].join(" ");
|
|
11685
11649
|
}, "stepLine");
|
|
11686
11650
|
|
|
11687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11651
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11688
11652
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11689
11653
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11690
11654
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11742,7 +11706,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11742
11706
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11743
11707
|
}, "largeAnswerSteps");
|
|
11744
11708
|
|
|
11745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11709
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11746
11710
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11747
11711
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11748
11712
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11756,7 +11720,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11756
11720
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11757
11721
|
}, "strip");
|
|
11758
11722
|
|
|
11759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11723
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
11760
11724
|
var OPEN = "\u27E6";
|
|
11761
11725
|
var CLOSE = "\u27E7";
|
|
11762
11726
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -11778,19 +11742,35 @@ var idOf = /* @__PURE__ */ __name((value) => {
|
|
|
11778
11742
|
const id6 = value.ref ?? value.id;
|
|
11779
11743
|
return typeof id6 === "string" || typeof id6 === "number" ? String(id6) : void 0;
|
|
11780
11744
|
}, "idOf");
|
|
11745
|
+
var everyStringAt = /* @__PURE__ */ __name((value, mark, source2, id6) => {
|
|
11746
|
+
if (Array.isArray(value))
|
|
11747
|
+
return value.map((one) => everyStringAt(one, mark, source2, id6));
|
|
11748
|
+
if (value === null || typeof value !== "object")
|
|
11749
|
+
return markAt(value, [], mark, source2, id6);
|
|
11750
|
+
const record2 = value;
|
|
11751
|
+
const own = idOf(record2) ?? id6;
|
|
11752
|
+
return Object.fromEntries(Object.entries(record2).map(([key, child]) => [key, everyStringAt(child, mark, source2, own)]));
|
|
11753
|
+
}, "everyStringAt");
|
|
11781
11754
|
var markAt = /* @__PURE__ */ __name((value, path2, mark, source2, id6) => {
|
|
11782
11755
|
if (Array.isArray(value))
|
|
11783
11756
|
return value.map((one) => markAt(one, path2, mark, source2, id6));
|
|
11784
11757
|
if (path2.length === 0)
|
|
11785
11758
|
return typeof value === "string" && !value.startsWith(`${OPEN}untrusted:${mark} `) ? marked(value, mark, source2, id6) : value;
|
|
11759
|
+
if (path2.length === 1 && path2[0] === "*")
|
|
11760
|
+
return everyStringAt(value, mark, source2, id6);
|
|
11786
11761
|
if (value === null || typeof value !== "object")
|
|
11787
11762
|
return value;
|
|
11788
11763
|
const [key = "", ...rest] = path2;
|
|
11789
11764
|
const record2 = value;
|
|
11765
|
+
const own = idOf(record2) ?? id6;
|
|
11766
|
+
if (key === "*")
|
|
11767
|
+
return Object.fromEntries(Object.entries(record2).map(([name, child]) => [name, markAt(child, rest, mark, source2, own)]));
|
|
11790
11768
|
if (!(key in record2))
|
|
11791
11769
|
return value;
|
|
11792
|
-
return { ...record2, [key]: markAt(record2[key], rest, mark, source2,
|
|
11770
|
+
return { ...record2, [key]: markAt(record2[key], rest, mark, source2, own) };
|
|
11793
11771
|
}, "markAt");
|
|
11772
|
+
var withoutRunMarks = /* @__PURE__ */ __name((text5, mark) => text5.replace(new RegExp(`${OPEN}untrusted:${mark}(?: [^${OPEN}${CLOSE}]*)?${CLOSE}|${OPEN}/untrusted:${mark}${CLOSE}`, "gu"), ""), "withoutRunMarks");
|
|
11773
|
+
var API_UNTRUSTED = ["item.*", "items.*"];
|
|
11794
11774
|
var withUntrustedMarked = /* @__PURE__ */ __name((value, mark, id6) => {
|
|
11795
11775
|
if (Array.isArray(value))
|
|
11796
11776
|
return value.map((one) => withUntrustedMarked(one, mark, id6));
|
|
@@ -11829,7 +11809,8 @@ var CHAT_UNTRUSTED = ["title", "description"];
|
|
|
11829
11809
|
var CONTACT_UNTRUSTED = ["description", "chats.title"];
|
|
11830
11810
|
var DECLARED = /* @__PURE__ */ new WeakMap();
|
|
11831
11811
|
var marksUntrusted = /* @__PURE__ */ __name((command, fields = MESSAGE_UNTRUSTED) => {
|
|
11832
|
-
DECLARED.
|
|
11812
|
+
const raw = DECLARED.get(command) === API_UNTRUSTED;
|
|
11813
|
+
DECLARED.set(command, raw ? [.../* @__PURE__ */ new Set([...API_UNTRUSTED, ...fields])] : fields);
|
|
11833
11814
|
return command;
|
|
11834
11815
|
}, "marksUntrusted");
|
|
11835
11816
|
var untrustedFieldsOf = /* @__PURE__ */ __name((command) => DECLARED.get(command), "untrustedFieldsOf");
|
|
@@ -11846,7 +11827,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
11846
11827
|
return result;
|
|
11847
11828
|
}, "withFieldsMarked");
|
|
11848
11829
|
|
|
11849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11830
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11850
11831
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11851
11832
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11852
11833
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12090,8 +12071,8 @@ export {
|
|
|
12090
12071
|
sharedContractOverrides,
|
|
12091
12072
|
sharedContracts,
|
|
12092
12073
|
sharedCommand,
|
|
12093
|
-
customizeSharedCommand,
|
|
12094
12074
|
refuseJoinedPath,
|
|
12075
|
+
deadlineMargin,
|
|
12095
12076
|
runBudget,
|
|
12096
12077
|
CORE_LOG_EVENTS,
|
|
12097
12078
|
recorded,
|
|
@@ -12208,6 +12189,7 @@ export {
|
|
|
12208
12189
|
reachesOtherService,
|
|
12209
12190
|
isOtherServiceCall,
|
|
12210
12191
|
ownerOnlyOption,
|
|
12192
|
+
allowDeletionsOption,
|
|
12211
12193
|
judgedEffects,
|
|
12212
12194
|
judgedTargets,
|
|
12213
12195
|
refuseUnderReadOnly,
|
|
@@ -12246,6 +12228,15 @@ export {
|
|
|
12246
12228
|
imageModelsDirectory,
|
|
12247
12229
|
placedImage,
|
|
12248
12230
|
isImageModelInstalled,
|
|
12231
|
+
untrustedMarkOf,
|
|
12232
|
+
runMarkOf,
|
|
12233
|
+
marked,
|
|
12234
|
+
withoutRunMarks,
|
|
12235
|
+
API_UNTRUSTED,
|
|
12236
|
+
withUntrustedMarked,
|
|
12237
|
+
CHAT_UNTRUSTED,
|
|
12238
|
+
CONTACT_UNTRUSTED,
|
|
12239
|
+
marksUntrusted,
|
|
12249
12240
|
answerEntity,
|
|
12250
12241
|
answerEntitySchema,
|
|
12251
12242
|
answerProjectionSchema,
|
|
@@ -12261,6 +12252,7 @@ export {
|
|
|
12261
12252
|
nextStep,
|
|
12262
12253
|
lineOf,
|
|
12263
12254
|
rootOf2,
|
|
12255
|
+
typedCommandPath,
|
|
12264
12256
|
commandAt,
|
|
12265
12257
|
runnable,
|
|
12266
12258
|
failureSteps,
|
|
@@ -12269,12 +12261,6 @@ export {
|
|
|
12269
12261
|
stepLine,
|
|
12270
12262
|
tooLargeSteps,
|
|
12271
12263
|
withoutProviderRefs,
|
|
12272
|
-
runMarkOf,
|
|
12273
|
-
marked,
|
|
12274
|
-
withUntrustedMarked,
|
|
12275
|
-
CHAT_UNTRUSTED,
|
|
12276
|
-
CONTACT_UNTRUSTED,
|
|
12277
|
-
marksUntrusted,
|
|
12278
12264
|
answerSchema,
|
|
12279
12265
|
listOf,
|
|
12280
12266
|
itemOf,
|