@wirecat/amo-cli 0.4.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 +33 -0
- package/contracts/wirecat.json +2 -1
- 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-PRNXEZRH.js → all-profiles-PIWUQWBA.js} +11 -11
- package/dist/bundle/amo.js +28 -28
- package/dist/bundle/{anthropic-FDI24DU2.js → anthropic-47CMXBPQ.js} +5 -5
- package/dist/bundle/{app-server-WAKJVDLN.js → app-server-QRBQODF2.js} +70 -69
- package/dist/bundle/areas-QVHVU57Z.js +63 -0
- package/dist/bundle/{bun-YPXUXMBI.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-UBQ5M47X.js → bun-sqlite-7I4X7CZW.js} +6 -6
- package/dist/bundle/{chunk-SFZVMKB6.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-SNBYFQHT.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-BCIZAUDV.js → chunk-3DEQUYEG.js} +9 -9
- package/dist/bundle/{chunk-2AIG2SSJ.js → chunk-3GX6KM2E.js} +1661 -164
- package/dist/bundle/{chunk-5II6TAJE.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-DWD3KDJA.js → chunk-3PYE55JY.js} +1 -1
- package/dist/bundle/{chunk-SMM7GS4Q.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-XEYT2EQT.js → chunk-43OW5NTG.js} +6 -6
- package/dist/bundle/{chunk-HDZNSOV5.js → chunk-43PMSR33.js} +13 -9
- package/dist/bundle/{chunk-EBNCUQLV.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-WAFB3IWJ.js → chunk-4VN7RI4I.js} +5 -5
- package/dist/bundle/{chunk-CEBX63XY.js → chunk-57HFPNMF.js} +8 -8
- package/dist/bundle/{chunk-Z2B3VNRI.js → chunk-5UTB3ADZ.js} +11 -11
- package/dist/bundle/{chunk-PLU2IQXC.js → chunk-633NQY2R.js} +3 -3
- package/dist/bundle/{chunk-NKYWQTS2.js → chunk-63N46DJU.js} +216 -233
- package/dist/bundle/{chunk-5HZMXHRH.js → chunk-6D4VWSJD.js} +6 -6
- package/dist/bundle/{chunk-V2QWX6B3.js → chunk-6JTHXWPE.js} +3 -3
- package/dist/bundle/{chunk-YREKMP24.js → chunk-6QGUK3H7.js} +4 -4
- package/dist/bundle/{chunk-4PQECIU2.js → chunk-6WS6GJ4V.js} +2 -2
- package/dist/bundle/{chunk-23AQD7JU.js → chunk-7IR2G5XY.js} +16 -16
- package/dist/bundle/{chunk-OYMHPQF7.js → chunk-7IWIFVXH.js} +4 -4
- package/dist/bundle/{chunk-YHVHDRED.js → chunk-ABX7BBS4.js} +6 -6
- package/dist/bundle/{chunk-3K6T2G52.js → chunk-ADTI5RUO.js} +6 -6
- package/dist/bundle/{chunk-YFRTEJ6V.js → chunk-AKRIUNYP.js} +7 -7
- package/dist/bundle/{chunk-KBAOJISR.js → chunk-BIKOE2IW.js} +7 -7
- package/dist/bundle/{chunk-TIR3AB35.js → chunk-BVVMIAQ6.js} +759 -694
- package/dist/bundle/{chunk-M54YKD3I.js → chunk-CGW5R4UD.js} +7 -7
- package/dist/bundle/{chunk-CYHIM5SL.js → chunk-D4NE7EON.js} +3 -3
- package/dist/bundle/{chunk-TCSVW7BA.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-WASBOYI2.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-VEFAYLKX.js → chunk-DQ6S5TFZ.js} +185 -114
- package/dist/bundle/{chunk-GMHRPX5M.js → chunk-DSJ6EAOA.js} +61 -61
- package/dist/bundle/{chunk-GQKEMBM6.js → chunk-DVZ75WZJ.js} +121 -36
- package/dist/bundle/{chunk-SHOSFYI7.js → chunk-EHK73OSW.js} +38 -24
- package/dist/bundle/{chunk-KQZTX4LM.js → chunk-FNV5HLHX.js} +17 -17
- package/dist/bundle/{chunk-RQPB2BSH.js → chunk-FV4GQNIK.js} +2 -2
- package/dist/bundle/{chunk-E3EWS6DF.js → chunk-G2TU5RYY.js} +6 -6
- package/dist/bundle/{chunk-WEWJA42Q.js → chunk-GDK7ETSB.js} +12 -12
- package/dist/bundle/{chunk-KORZEYZN.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-U46RNOEQ.js → chunk-GLYWZQY4.js} +3 -3
- package/dist/bundle/{chunk-KRD375P7.js → chunk-H4AFNENN.js} +34 -29
- package/dist/bundle/{chunk-SZX7EPPY.js → chunk-HOF7GQWW.js} +4 -4
- package/dist/bundle/{chunk-DWA5TZMP.js → chunk-HSPEU6S7.js} +8 -8
- package/dist/bundle/{chunk-VG2ERHFJ.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-O3WE5IGP.js → chunk-IB55P46L.js} +6 -6
- package/dist/bundle/{chunk-2UJ7ZZZC.js → chunk-IG2TJQJ7.js} +3 -3
- package/dist/bundle/{chunk-ZJC2XJQC.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-ELAKOEIO.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-UCM7C773.js → chunk-JXT6GY4V.js} +158 -61
- package/dist/bundle/{chunk-ABMPZL2P.js → chunk-K7YY6SXR.js} +19 -15
- package/dist/bundle/{chunk-TEGQVVCZ.js → chunk-KEKXERBE.js} +14581 -11880
- package/dist/bundle/{chunk-GJBOZAUD.js → chunk-KZ2FIDI3.js} +3 -3
- package/dist/bundle/{chunk-IBEHYGG6.js → chunk-KZN2BG3P.js} +8 -8
- package/dist/bundle/{chunk-VG26HDKH.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-PIOR6PIO.js → chunk-LZPKBN3C.js} +2 -2
- package/dist/bundle/{chunk-5SJEJYQZ.js → chunk-M6VZXAJC.js} +3 -3
- package/dist/bundle/{chunk-NFWD4QX3.js → chunk-MDEPJZYJ.js} +2 -2
- package/dist/bundle/{chunk-QGFURWEP.js → chunk-NB7EOAUZ.js} +8 -1
- package/dist/bundle/{chunk-GBQ76X6T.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-MW7HUD6R.js → chunk-NSKMNIY6.js} +9 -9
- package/dist/bundle/chunk-PPSAWFJD.js +1293 -0
- package/dist/bundle/{chunk-UEN5NWNW.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-7OVTUADG.js → chunk-QFOP3KUP.js} +8 -8
- package/dist/bundle/{chunk-LAR2DLTI.js → chunk-R53XXHEI.js} +4 -4
- package/dist/bundle/{chunk-A4W7J6VN.js → chunk-RIMPFMZE.js} +28 -189
- package/dist/bundle/{chunk-G3LAYJJJ.js → chunk-RN6RT5CB.js} +4 -4
- package/dist/bundle/{chunk-FQRP6JWX.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-AN6IJYH3.js → chunk-S4ZHQMNM.js} +5 -5
- package/dist/bundle/{chunk-AP3CWDRK.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-PL7TNKAY.js → chunk-TAVI73RW.js} +2 -2
- package/dist/bundle/{chunk-ZKRWNL4T.js → chunk-TLG6ECZ2.js} +2 -2
- package/dist/bundle/{chunk-745FMNI5.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-3WG4MTQI.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-WR2FPZTE.js → chunk-U5RJJ2EC.js} +8 -8
- package/dist/bundle/{chunk-6QMSKJB4.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-FEUNZG7U.js → chunk-V2CNGXWX.js} +37 -37
- package/dist/bundle/{chunk-V5SETIQK.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-HZZ56JO7.js → chunk-VZ5PPYDG.js} +1 -1
- package/dist/bundle/{chunk-LZ4IWN43.js → chunk-W5JRXIG6.js} +822 -1604
- package/dist/bundle/{chunk-SCMB4LI6.js → chunk-WIHN3ELW.js} +19 -19
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-6PILR4AX.js → chunk-WUFX4TKA.js} +2 -2
- package/dist/bundle/{chunk-NXNUCGGO.js → chunk-WXJYMMEL.js} +6 -6
- package/dist/bundle/{chunk-IPNIF5JE.js → chunk-XCCU2E3Z.js} +4 -4
- package/dist/bundle/{chunk-EAX5RO7S.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/{chunk-3PCVQCCV.js → chunk-XUT7DSM5.js} +2 -2
- package/dist/bundle/{chunk-ASU63X5C.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-S6DTLAOB.js → chunk-ZLUIRFJX.js} +37 -18
- package/dist/bundle/{cli-QDPKC2HJ.js → cli-3NXOSENF.js} +104 -105
- package/dist/bundle/command-contract-LNSAV5LA.js +39 -0
- package/dist/bundle/{command-server-entry-TX7WNN7G.js → command-server-entry-4ZQPNUL4.js} +28 -28
- package/dist/bundle/{decode-BLPC7OYE.js → decode-K7U7X5EL.js} +5 -5
- package/dist/bundle/{dispatch-5JUT55CS.js → dispatch-56FECRCU.js} +8 -8
- package/dist/bundle/{echarts-54D3FOCL.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-O7KMDYM7.js → embed-SWLVG73O.js} +6 -6
- package/dist/bundle/{embedder-4PE67CLX.js → embedder-EJN75BPV.js} +9 -9
- package/dist/bundle/{failure-NNQYTB3Z.js → failure-WDSX6H3B.js} +2 -2
- package/dist/bundle/{first-run-EAU5SHBI.js → first-run-WPGUUC4Z.js} +12 -12
- package/dist/bundle/first-screen-JMNEUQ46.js +40 -0
- package/dist/bundle/{instructions-ONXP5DZQ.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{mcp-ZNULRPZ4.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-5TKG2RYD.js +24 -0
- package/dist/bundle/{meeting-model-FWIZRKVN.js → meeting-model-YXXNETKC.js} +11 -11
- package/dist/bundle/{meeting-semantic-M4YVJ57W.js → meeting-semantic-U7EUB3ET.js} +6 -6
- package/dist/bundle/{node-UTQCYQF5.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-APJG6MGL.js → node-sqlite-YVOGMDSP.js} +7 -7
- package/dist/bundle/{oauth-TY7RMIBL.js → oauth-2SNRBIJM.js} +7 -7
- package/dist/bundle/{open-WDVEQL75.js → open-ABCPY5IH.js} +5 -5
- package/dist/bundle/{openai-H5UJHSEZ.js → openai-4D6PXJR7.js} +15 -15
- package/dist/bundle/{process-MGMXXPMY.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-IF36C6VR.js → program-CBDQBZZ3.js} +319 -133
- package/dist/bundle/{prompt-4RLIWLMF.js → prompt-2QUK5QST.js} +5 -5
- package/dist/bundle/{recognize-UIRTMWM4.js → recognize-QMQSJRIH.js} +4 -4
- package/dist/bundle/{remote-L3MNWZQK.js → remote-U7TC2BLZ.js} +9 -9
- package/dist/bundle/{rerank-F4KZQTY6.js → rerank-5UPVXGVV.js} +7 -7
- package/dist/bundle/{serve-37AUYTWS.js → serve-VX6GUM6J.js} +9 -9
- package/dist/bundle/{server-UBG676ZJ.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-CI3RW7VA.js → sqlite-runtime-77NKDEXN.js} +6 -6
- package/dist/bundle/{state-JOHLSLUO.js → state-X2HU6GB2.js} +6 -6
- package/dist/bundle/{store-2MBG4IUS.js → store-2U4U6KL4.js} +22 -22
- package/dist/bundle/{store-OSOUXBYL.js → store-3CHPHFP7.js} +26 -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/crm-shared.js +1 -1
- package/dist/commands/crm-shared.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-43BMVBX2.js +0 -40
- package/dist/bundle/chunk-M33XHJTM.js +0 -1266
- package/dist/bundle/command-contract-KWNCP3MQ.js +0 -39
- package/dist/bundle/first-screen-APSNGZYZ.js +0 -39
- package/dist/bundle/meeting-combined-W2XIYXFU.js +0 -24
- package/dist/bundle/server-CRF4QSZR.js +0 -86
- package/dist/bundle/source-Z7GH7T4B.js +0 -44
- package/dist/bundle/store-SNW6U32Y.js +0 -34
- package/dist/bundle/store-maintenance-command-W7V54SLT.js +0 -73
- package/dist/bundle/surface-ESJS2FUI.js +0 -72
- package/dist/bundle/writer-BJDQMKUV.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"];
|
|
@@ -6732,7 +6664,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6732
6664
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6733
6665
|
}, "readConfigFile");
|
|
6734
6666
|
|
|
6735
|
-
// 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
|
|
6736
6668
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
6737
6669
|
import { dirname as dirname2, join as join3 } from "node:path";
|
|
6738
6670
|
var DEFAULT_CONFIG = {
|
|
@@ -6761,7 +6693,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6761
6693
|
}
|
|
6762
6694
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6763
6695
|
|
|
6764
|
-
// 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
|
|
6765
6697
|
import { existsSync as existsSync4, readdirSync as readdirSync3, readFileSync as readFileSync5 } from "node:fs";
|
|
6766
6698
|
import { join as join4 } from "node:path";
|
|
6767
6699
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -6783,7 +6715,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
6783
6715
|
}, "profilesWithAccounts");
|
|
6784
6716
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
6785
6717
|
|
|
6786
|
-
// 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
|
|
6787
6719
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6788
6720
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6789
6721
|
const path2 = key.split(".");
|
|
@@ -6816,10 +6748,10 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
|
|
|
6816
6748
|
};
|
|
6817
6749
|
}), "settingRows");
|
|
6818
6750
|
|
|
6819
|
-
// 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
|
|
6820
6752
|
import { existsSync as existsSync5 } from "node:fs";
|
|
6821
6753
|
|
|
6822
|
-
// 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
|
|
6823
6755
|
var HISTORY_MAX_DAYS = 1095;
|
|
6824
6756
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
6825
6757
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -6866,7 +6798,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
6866
6798
|
return { batch: { ...batch, messages }, skipped };
|
|
6867
6799
|
}, "limitBatch");
|
|
6868
6800
|
|
|
6869
|
-
// 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
|
|
6870
6802
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6871
6803
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6872
6804
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -7394,7 +7326,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
7394
7326
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
7395
7327
|
}, "given");
|
|
7396
7328
|
|
|
7397
|
-
// 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
|
|
7398
7330
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
7399
7331
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
7400
7332
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -7451,7 +7383,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
7451
7383
|
};
|
|
7452
7384
|
}, "runBudget");
|
|
7453
7385
|
|
|
7454
|
-
// 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
|
|
7455
7387
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
|
|
7456
7388
|
const { deadline, signal, app } = environmentOf(command);
|
|
7457
7389
|
const now = deadline?.();
|
|
@@ -7605,7 +7537,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
7605
7537
|
return words.join(" ");
|
|
7606
7538
|
}, "commandPath");
|
|
7607
7539
|
|
|
7608
|
-
// 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
|
|
7609
7541
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
7610
7542
|
var FETCH = { remote: "read", local: "write" };
|
|
7611
7543
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -7741,6 +7673,12 @@ var reachesOtherService = /* @__PURE__ */ __name((command) => {
|
|
|
7741
7673
|
}, "reachesOtherService");
|
|
7742
7674
|
var isOtherServiceCall = /* @__PURE__ */ __name((command) => OTHER_SERVICE.has(command), "isOtherServiceCall");
|
|
7743
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");
|
|
7744
7682
|
var judgedEffects = /* @__PURE__ */ __name((effects) => effects && { remote: effects.remote, local: "none" }, "judgedEffects");
|
|
7745
7683
|
var judgedStepEffects = /* @__PURE__ */ __name((effects) => effects?.remote === "none" ? effects : judgedEffects(effects), "judgedStepEffects");
|
|
7746
7684
|
var judgedTargets = /* @__PURE__ */ __name((root) => {
|
|
@@ -7762,7 +7700,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
7762
7700
|
throw readOnlyRefusal(lock, what);
|
|
7763
7701
|
}, "refuseUnderReadOnly");
|
|
7764
7702
|
|
|
7765
|
-
// 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
|
|
7766
7704
|
var account = strictObject({
|
|
7767
7705
|
provider: text,
|
|
7768
7706
|
id,
|
|
@@ -7772,7 +7710,7 @@ var account = strictObject({
|
|
|
7772
7710
|
scope: optional(picklist(["personal", "work"]))
|
|
7773
7711
|
});
|
|
7774
7712
|
|
|
7775
|
-
// 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
|
|
7776
7714
|
var accountSession = strictObject({
|
|
7777
7715
|
current: boolean(),
|
|
7778
7716
|
client: nullable(text),
|
|
@@ -7782,7 +7720,7 @@ var accountSession = strictObject({
|
|
|
7782
7720
|
created_at: optional(nullable(time))
|
|
7783
7721
|
});
|
|
7784
7722
|
|
|
7785
|
-
// 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
|
|
7786
7724
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
7787
7725
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
7788
7726
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -7811,7 +7749,7 @@ var accountRemoval = strictObject({
|
|
|
7811
7749
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
7812
7750
|
});
|
|
7813
7751
|
|
|
7814
|
-
// 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
|
|
7815
7753
|
var accountProfile = strictObject({
|
|
7816
7754
|
profile: id,
|
|
7817
7755
|
current: boolean(),
|
|
@@ -7823,7 +7761,7 @@ var accountProfile = strictObject({
|
|
|
7823
7761
|
bot: optional(literal(true))
|
|
7824
7762
|
});
|
|
7825
7763
|
|
|
7826
|
-
// 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
|
|
7827
7765
|
var milliseconds = pipe(number(), minValue(0));
|
|
7828
7766
|
var counterReading = strictObject({
|
|
7829
7767
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7835,7 +7773,7 @@ var counterReading = strictObject({
|
|
|
7835
7773
|
});
|
|
7836
7774
|
var selection = record(string(), unknown());
|
|
7837
7775
|
|
|
7838
|
-
// 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
|
|
7839
7777
|
var adminRow = strictObject({
|
|
7840
7778
|
ref: reference,
|
|
7841
7779
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7888,7 +7826,7 @@ var adminReport = strictObject({
|
|
|
7888
7826
|
rows: array(adminRow)
|
|
7889
7827
|
});
|
|
7890
7828
|
|
|
7891
|
-
// 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
|
|
7892
7830
|
var closeSuggestion = strictObject({
|
|
7893
7831
|
as: picklist(["done", "dismissed"]),
|
|
7894
7832
|
/** The agent's name. */
|
|
@@ -7950,7 +7888,7 @@ var task = strictObject({
|
|
|
7950
7888
|
updated_at: optional(time)
|
|
7951
7889
|
});
|
|
7952
7890
|
|
|
7953
|
-
// 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
|
|
7954
7892
|
var agendaChat = strictObject({
|
|
7955
7893
|
chat: reference,
|
|
7956
7894
|
title: nullable(text),
|
|
@@ -8020,11 +7958,11 @@ var agenda = strictObject({
|
|
|
8020
7958
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
8021
7959
|
});
|
|
8022
7960
|
|
|
8023
|
-
// 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
|
|
8024
7962
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
8025
7963
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
8026
7964
|
|
|
8027
|
-
// 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
|
|
8028
7966
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
8029
7967
|
var attachmentBytes = strictObject({
|
|
8030
7968
|
ref: reference,
|
|
@@ -8055,7 +7993,7 @@ var attachmentTextChange = strictObject({
|
|
|
8055
7993
|
text: optional(text)
|
|
8056
7994
|
});
|
|
8057
7995
|
|
|
8058
|
-
// 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
|
|
8059
7997
|
var chart = strictObject({
|
|
8060
7998
|
version: literal(1),
|
|
8061
7999
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -8070,7 +8008,7 @@ var chart = strictObject({
|
|
|
8070
8008
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
8071
8009
|
});
|
|
8072
8010
|
|
|
8073
|
-
// 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
|
|
8074
8012
|
var named = strictObject({
|
|
8075
8013
|
id,
|
|
8076
8014
|
title: nullable(text),
|
|
@@ -8093,7 +8031,7 @@ var folder = strictObject({
|
|
|
8093
8031
|
excluded_chats: optional(array(named))
|
|
8094
8032
|
});
|
|
8095
8033
|
|
|
8096
|
-
// 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
|
|
8097
8035
|
var inviteLink = strictObject({
|
|
8098
8036
|
link: text,
|
|
8099
8037
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -8109,7 +8047,7 @@ var inviteLink = strictObject({
|
|
|
8109
8047
|
joined_count: optional(count)
|
|
8110
8048
|
});
|
|
8111
8049
|
|
|
8112
|
-
// 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
|
|
8113
8051
|
var operated = { operation_id: id, chat_id: id };
|
|
8114
8052
|
var group = strictObject({
|
|
8115
8053
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -8189,7 +8127,7 @@ var chatFolderOrder = strictObject({
|
|
|
8189
8127
|
folders: array(strictObject({ id, title: text }))
|
|
8190
8128
|
});
|
|
8191
8129
|
|
|
8192
|
-
// 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
|
|
8193
8131
|
var operated2 = { operation_id: id, chat_id: id };
|
|
8194
8132
|
var chatRemoval = strictObject(operated2);
|
|
8195
8133
|
var chatMuting = strictObject({
|
|
@@ -8200,7 +8138,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
8200
8138
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
8201
8139
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
8202
8140
|
|
|
8203
|
-
// 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
|
|
8204
8142
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
8205
8143
|
var chatEvent = strictObject({
|
|
8206
8144
|
chat_id: id,
|
|
@@ -8217,7 +8155,7 @@ var chatEvent = strictObject({
|
|
|
8217
8155
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
8218
8156
|
});
|
|
8219
8157
|
|
|
8220
|
-
// 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
|
|
8221
8159
|
var chatMetadata = strictObject({
|
|
8222
8160
|
chat_id: id,
|
|
8223
8161
|
title: nullable(text),
|
|
@@ -8232,7 +8170,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
8232
8170
|
has_more: boolean()
|
|
8233
8171
|
});
|
|
8234
8172
|
|
|
8235
|
-
// 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
|
|
8236
8174
|
var action = picklist(["report", "delete", "remove"]);
|
|
8237
8175
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
8238
8176
|
var chatRules = strictObject({
|
|
@@ -8269,7 +8207,7 @@ var chatModeration = strictObject({
|
|
|
8269
8207
|
}))
|
|
8270
8208
|
});
|
|
8271
8209
|
|
|
8272
|
-
// 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
|
|
8273
8211
|
var chatSending = strictObject({
|
|
8274
8212
|
mode: picklist(["allowed", "ask", "denied"]),
|
|
8275
8213
|
meaning: text,
|
|
@@ -8279,7 +8217,7 @@ var chatSending = strictObject({
|
|
|
8279
8217
|
changed: optional(boolean())
|
|
8280
8218
|
});
|
|
8281
8219
|
|
|
8282
|
-
// 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
|
|
8283
8221
|
var optionalCount = optional(count);
|
|
8284
8222
|
var minutes = nullable(number());
|
|
8285
8223
|
var chatStats = strictObject({
|
|
@@ -8355,7 +8293,7 @@ var taskStats = strictObject({
|
|
|
8355
8293
|
}))
|
|
8356
8294
|
});
|
|
8357
8295
|
|
|
8358
|
-
// 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
|
|
8359
8297
|
var memberCount = strictObject({
|
|
8360
8298
|
day: pipe(text, isoDate()),
|
|
8361
8299
|
participants: nullable(count),
|
|
@@ -8378,7 +8316,7 @@ var chatTracking = strictObject({
|
|
|
8378
8316
|
tracked: boolean()
|
|
8379
8317
|
});
|
|
8380
8318
|
|
|
8381
|
-
// 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
|
|
8382
8320
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8383
8321
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
8384
8322
|
var profileFields = {
|
|
@@ -8416,7 +8354,7 @@ var profileFields = {
|
|
|
8416
8354
|
}))
|
|
8417
8355
|
};
|
|
8418
8356
|
|
|
8419
|
-
// 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
|
|
8420
8358
|
var contact = strictObject({
|
|
8421
8359
|
ref: reference,
|
|
8422
8360
|
id,
|
|
@@ -8447,7 +8385,7 @@ var contact = strictObject({
|
|
|
8447
8385
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8448
8386
|
});
|
|
8449
8387
|
|
|
8450
|
-
// 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
|
|
8451
8389
|
var contactNote = strictObject({
|
|
8452
8390
|
id,
|
|
8453
8391
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8459,13 +8397,13 @@ var contactNote = strictObject({
|
|
|
8459
8397
|
updated_at: time
|
|
8460
8398
|
});
|
|
8461
8399
|
|
|
8462
|
-
// 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
|
|
8463
8401
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8464
8402
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8465
8403
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8466
8404
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8467
8405
|
|
|
8468
|
-
// 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
|
|
8469
8407
|
var conversation = strictObject({
|
|
8470
8408
|
id,
|
|
8471
8409
|
chat: reference,
|
|
@@ -8480,7 +8418,7 @@ var conversation = strictObject({
|
|
|
8480
8418
|
rules_version: count
|
|
8481
8419
|
});
|
|
8482
8420
|
|
|
8483
|
-
// 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
|
|
8484
8422
|
var conversationDetails = union([
|
|
8485
8423
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8486
8424
|
message
|
|
@@ -8575,7 +8513,7 @@ var conversationHit = strictObject({
|
|
|
8575
8513
|
untrusted
|
|
8576
8514
|
});
|
|
8577
8515
|
|
|
8578
|
-
// 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
|
|
8579
8517
|
var counters = strictObject({
|
|
8580
8518
|
cutoff: time,
|
|
8581
8519
|
max_age_ms: milliseconds,
|
|
@@ -8605,7 +8543,7 @@ var counterRefresh = strictObject({
|
|
|
8605
8543
|
complete: optional(boolean())
|
|
8606
8544
|
});
|
|
8607
8545
|
|
|
8608
|
-
// 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
|
|
8609
8547
|
var document = strictObject({
|
|
8610
8548
|
ref: reference,
|
|
8611
8549
|
id,
|
|
@@ -8620,7 +8558,7 @@ var document = strictObject({
|
|
|
8620
8558
|
owners: optional(array(text))
|
|
8621
8559
|
});
|
|
8622
8560
|
|
|
8623
|
-
// 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
|
|
8624
8562
|
var documentLink = strictObject({
|
|
8625
8563
|
ref: reference,
|
|
8626
8564
|
url: text,
|
|
@@ -8631,7 +8569,7 @@ var documentLink = strictObject({
|
|
|
8631
8569
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8632
8570
|
});
|
|
8633
8571
|
|
|
8634
|
-
// 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
|
|
8635
8573
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8636
8574
|
var contribution = strictObject({
|
|
8637
8575
|
message: evidenceMessage,
|
|
@@ -8661,7 +8599,7 @@ var retentionStay = strictObject({
|
|
|
8661
8599
|
});
|
|
8662
8600
|
var evidence = union([contribution, retentionStay]);
|
|
8663
8601
|
|
|
8664
|
-
// 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
|
|
8665
8603
|
var fact = strictObject({
|
|
8666
8604
|
ref: reference,
|
|
8667
8605
|
id,
|
|
@@ -8692,7 +8630,7 @@ var fact = strictObject({
|
|
|
8692
8630
|
updated_at: time
|
|
8693
8631
|
});
|
|
8694
8632
|
|
|
8695
|
-
// 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
|
|
8696
8634
|
var hit = strictObject({
|
|
8697
8635
|
kind: picklist([
|
|
8698
8636
|
"message",
|
|
@@ -8704,6 +8642,9 @@ var hit = strictObject({
|
|
|
8704
8642
|
"deal",
|
|
8705
8643
|
"lead",
|
|
8706
8644
|
"crm_file",
|
|
8645
|
+
"issue",
|
|
8646
|
+
"project",
|
|
8647
|
+
"issue_comment",
|
|
8707
8648
|
...BUSINESS_KINDS
|
|
8708
8649
|
]),
|
|
8709
8650
|
ref: reference,
|
|
@@ -8711,6 +8652,8 @@ var hit = strictObject({
|
|
|
8711
8652
|
url: optional(text),
|
|
8712
8653
|
/** The account it was found in; a note's folder id, or `internal` for a note written in memo. */
|
|
8713
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)),
|
|
8714
8657
|
/** The chat, the mail thread's subject, the note's, the event's or the meeting's title. */
|
|
8715
8658
|
title: nullable(text),
|
|
8716
8659
|
/** Null for a meeting whose start is unknown. */
|
|
@@ -8751,7 +8694,7 @@ var hit = strictObject({
|
|
|
8751
8694
|
untrusted
|
|
8752
8695
|
});
|
|
8753
8696
|
|
|
8754
|
-
// 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
|
|
8755
8698
|
var identity = strictObject({
|
|
8756
8699
|
ref: reference,
|
|
8757
8700
|
provider: text,
|
|
@@ -8767,7 +8710,7 @@ var identity = strictObject({
|
|
|
8767
8710
|
person: optional(nullable(reference))
|
|
8768
8711
|
});
|
|
8769
8712
|
|
|
8770
|
-
// 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
|
|
8771
8714
|
var imageEmbedding = strictObject({
|
|
8772
8715
|
model: text,
|
|
8773
8716
|
embedded: count,
|
|
@@ -8776,7 +8719,7 @@ var imageEmbedding = strictObject({
|
|
|
8776
8719
|
more: boolean()
|
|
8777
8720
|
});
|
|
8778
8721
|
|
|
8779
|
-
// 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
|
|
8780
8723
|
var joinRequest = strictObject({
|
|
8781
8724
|
person_id: id,
|
|
8782
8725
|
name: nullable(text),
|
|
@@ -8787,7 +8730,7 @@ var joinRequest = strictObject({
|
|
|
8787
8730
|
about: optional(text)
|
|
8788
8731
|
});
|
|
8789
8732
|
|
|
8790
|
-
// 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
|
|
8791
8734
|
var pollVote = strictObject({
|
|
8792
8735
|
person_id: id,
|
|
8793
8736
|
name: nullable(text),
|
|
@@ -8797,7 +8740,7 @@ var pollVote = strictObject({
|
|
|
8797
8740
|
voted_at: time
|
|
8798
8741
|
});
|
|
8799
8742
|
|
|
8800
|
-
// 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
|
|
8801
8744
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8802
8745
|
var observation = strictObject({
|
|
8803
8746
|
value: pipe(number(), minValue(0)),
|
|
@@ -8839,7 +8782,7 @@ var serveSummary = strictObject({
|
|
|
8839
8782
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8840
8783
|
});
|
|
8841
8784
|
|
|
8842
|
-
// 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
|
|
8843
8786
|
var mailCounts = strictObject({
|
|
8844
8787
|
by: picklist(["day", "week", "sender"]),
|
|
8845
8788
|
received: count,
|
|
@@ -8854,7 +8797,7 @@ var mailCounts = strictObject({
|
|
|
8854
8797
|
}))
|
|
8855
8798
|
});
|
|
8856
8799
|
|
|
8857
|
-
// 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
|
|
8858
8801
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8859
8802
|
var base = { id, evidence: array(evidence2) };
|
|
8860
8803
|
var finding = variant("kind", [
|
|
@@ -8998,7 +8941,7 @@ var mailFindings = strictObject({
|
|
|
8998
8941
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8999
8942
|
});
|
|
9000
8943
|
|
|
9001
|
-
// 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
|
|
9002
8945
|
var mediaArchive = strictObject({
|
|
9003
8946
|
directory: text,
|
|
9004
8947
|
chats: count,
|
|
@@ -9030,7 +8973,7 @@ var mediaArchiveTimer = union([
|
|
|
9030
8973
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9031
8974
|
]);
|
|
9032
8975
|
|
|
9033
|
-
// 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
|
|
9034
8977
|
var preparationId = pipe(string(), minLength(1));
|
|
9035
8978
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9036
8979
|
var preparationTime = nullable(isoTime);
|
|
@@ -9122,7 +9065,7 @@ var preparationMeeting = strictObject({
|
|
|
9122
9065
|
updated_at: isoTime
|
|
9123
9066
|
});
|
|
9124
9067
|
|
|
9125
|
-
// 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
|
|
9126
9069
|
var meetingEvidence = preparationEvidence;
|
|
9127
9070
|
var meetingPersonContext = strictObject({
|
|
9128
9071
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9144,7 +9087,7 @@ var meetingPersonContext = strictObject({
|
|
|
9144
9087
|
})
|
|
9145
9088
|
});
|
|
9146
9089
|
|
|
9147
|
-
// 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
|
|
9148
9091
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9149
9092
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9150
9093
|
var finding2 = variant("kind", [
|
|
@@ -9182,7 +9125,7 @@ var meetingFindings = strictObject({
|
|
|
9182
9125
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9183
9126
|
});
|
|
9184
9127
|
|
|
9185
|
-
// 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
|
|
9186
9129
|
var communicationCoverage = strictObject({
|
|
9187
9130
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9188
9131
|
query: string(),
|
|
@@ -9227,7 +9170,7 @@ var preparationCommunications = strictObject({
|
|
|
9227
9170
|
}))
|
|
9228
9171
|
});
|
|
9229
9172
|
|
|
9230
|
-
// 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
|
|
9231
9174
|
var meetingPreparation = strictObject({
|
|
9232
9175
|
communications: optional(preparationCommunications),
|
|
9233
9176
|
schema_version: literal(1),
|
|
@@ -9340,7 +9283,7 @@ var meetingPreparation = strictObject({
|
|
|
9340
9283
|
})
|
|
9341
9284
|
});
|
|
9342
9285
|
|
|
9343
|
-
// 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
|
|
9344
9287
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9345
9288
|
var id3 = pipe(string(), minLength(1));
|
|
9346
9289
|
var text3 = string();
|
|
@@ -9404,7 +9347,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9404
9347
|
})
|
|
9405
9348
|
});
|
|
9406
9349
|
|
|
9407
|
-
// 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
|
|
9408
9351
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9409
9352
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9410
9353
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9434,7 +9377,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9434
9377
|
})
|
|
9435
9378
|
});
|
|
9436
9379
|
|
|
9437
|
-
// 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
|
|
9438
9381
|
var text4 = string();
|
|
9439
9382
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9440
9383
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9451,7 +9394,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9451
9394
|
persistence: literal("proposal-only")
|
|
9452
9395
|
});
|
|
9453
9396
|
|
|
9454
|
-
// 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
|
|
9455
9398
|
var memory = strictObject({
|
|
9456
9399
|
ref: reference,
|
|
9457
9400
|
id,
|
|
@@ -9479,7 +9422,7 @@ var memory = strictObject({
|
|
|
9479
9422
|
updated_at: time
|
|
9480
9423
|
});
|
|
9481
9424
|
|
|
9482
|
-
// 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
|
|
9483
9426
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9484
9427
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
9485
9428
|
var mention = strictObject({
|
|
@@ -9523,7 +9466,7 @@ var mentionRebuild = strictObject({
|
|
|
9523
9466
|
mentions: count
|
|
9524
9467
|
});
|
|
9525
9468
|
|
|
9526
|
-
// 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
|
|
9527
9470
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9528
9471
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9529
9472
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
@@ -9532,7 +9475,7 @@ var scheduledCancellation = strictObject({ ...operated3, cancelled: array(id) })
|
|
|
9532
9475
|
var scheduledSendEntries = { ...operated3, sent: array(id), messages: array(message) };
|
|
9533
9476
|
var scheduledSend = strictObject(scheduledSendEntries);
|
|
9534
9477
|
|
|
9535
|
-
// 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
|
|
9536
9479
|
var messageTranscript = strictObject({
|
|
9537
9480
|
message_id: id,
|
|
9538
9481
|
text,
|
|
@@ -9590,7 +9533,7 @@ var evidencePacket = strictObject({
|
|
|
9590
9533
|
}))
|
|
9591
9534
|
});
|
|
9592
9535
|
|
|
9593
|
-
// 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
|
|
9594
9537
|
var messageThread = strictObject({
|
|
9595
9538
|
ref: reference,
|
|
9596
9539
|
chat: id,
|
|
@@ -9607,7 +9550,7 @@ var messageThread = strictObject({
|
|
|
9607
9550
|
});
|
|
9608
9551
|
var messageContext = union([message, messageThread]);
|
|
9609
9552
|
|
|
9610
|
-
// 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
|
|
9611
9554
|
var messageCounts = strictObject({
|
|
9612
9555
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9613
9556
|
total: count,
|
|
@@ -9620,7 +9563,7 @@ var messageCounts = strictObject({
|
|
|
9620
9563
|
}))
|
|
9621
9564
|
});
|
|
9622
9565
|
|
|
9623
|
-
// 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
|
|
9624
9567
|
var messageLink = strictObject({
|
|
9625
9568
|
ref: reference,
|
|
9626
9569
|
url: nullable(text),
|
|
@@ -9637,7 +9580,7 @@ var messageLink = strictObject({
|
|
|
9637
9580
|
})))
|
|
9638
9581
|
});
|
|
9639
9582
|
|
|
9640
|
-
// 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
|
|
9641
9584
|
var messageWrite = strictObject({
|
|
9642
9585
|
operation_id: id,
|
|
9643
9586
|
message,
|
|
@@ -9652,7 +9595,7 @@ var draftWrite = strictObject({
|
|
|
9652
9595
|
});
|
|
9653
9596
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9654
9597
|
|
|
9655
|
-
// 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
|
|
9656
9599
|
var model2 = strictObject({
|
|
9657
9600
|
id,
|
|
9658
9601
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9687,7 +9630,7 @@ var chosenModel = strictObject({
|
|
|
9687
9630
|
estimate_seconds: nullable(count)
|
|
9688
9631
|
});
|
|
9689
9632
|
|
|
9690
|
-
// 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
|
|
9691
9634
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9692
9635
|
var modelKey = strictObject({
|
|
9693
9636
|
provider: text,
|
|
@@ -9697,7 +9640,7 @@ var modelKey = strictObject({
|
|
|
9697
9640
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9698
9641
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9699
9642
|
|
|
9700
|
-
// 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
|
|
9701
9644
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9702
9645
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9703
9646
|
var graph = strictObject({
|
|
@@ -9731,14 +9674,14 @@ var officialStats = strictObject({
|
|
|
9731
9674
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9732
9675
|
});
|
|
9733
9676
|
|
|
9734
|
-
// 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
|
|
9735
9678
|
var person2 = strictObject({
|
|
9736
9679
|
ref: reference,
|
|
9737
9680
|
name: nullable(text),
|
|
9738
9681
|
identities: optional(array(identity))
|
|
9739
9682
|
});
|
|
9740
9683
|
|
|
9741
|
-
// 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
|
|
9742
9685
|
var poll = strictObject({
|
|
9743
9686
|
chat_id: id,
|
|
9744
9687
|
message_id: id,
|
|
@@ -9754,11 +9697,11 @@ var poll = strictObject({
|
|
|
9754
9697
|
});
|
|
9755
9698
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9756
9699
|
|
|
9757
|
-
// 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
|
|
9758
9701
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9759
9702
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9760
9703
|
|
|
9761
|
-
// 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
|
|
9762
9705
|
var figures = record(string(), number());
|
|
9763
9706
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9764
9707
|
var rankingRow = strictObject({
|
|
@@ -9805,7 +9748,7 @@ var ranking = strictObject({
|
|
|
9805
9748
|
rows: array(rankingRow)
|
|
9806
9749
|
});
|
|
9807
9750
|
|
|
9808
|
-
// 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
|
|
9809
9752
|
var reaction = strictObject({
|
|
9810
9753
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9811
9754
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9813,7 +9756,7 @@ var reaction = strictObject({
|
|
|
9813
9756
|
reacted_at: time
|
|
9814
9757
|
});
|
|
9815
9758
|
|
|
9816
|
-
// 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
|
|
9817
9760
|
var reactionChange = strictObject({
|
|
9818
9761
|
operation_id: id,
|
|
9819
9762
|
chat_id: id,
|
|
@@ -9821,7 +9764,7 @@ var reactionChange = strictObject({
|
|
|
9821
9764
|
reaction: nullable(text)
|
|
9822
9765
|
});
|
|
9823
9766
|
|
|
9824
|
-
// 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
|
|
9825
9768
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9826
9769
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9827
9770
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9832,7 +9775,7 @@ var recipientChange = strictObject({
|
|
|
9832
9775
|
...partial(recipientOff).entries
|
|
9833
9776
|
});
|
|
9834
9777
|
|
|
9835
|
-
// 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
|
|
9836
9779
|
var events = array(record(string(), unknown()));
|
|
9837
9780
|
var recordedRun = strictObject({
|
|
9838
9781
|
run_id: id,
|
|
@@ -9904,7 +9847,7 @@ var runHit = strictObject({
|
|
|
9904
9847
|
});
|
|
9905
9848
|
var runLocation = strictObject({ path: text });
|
|
9906
9849
|
|
|
9907
|
-
// 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
|
|
9908
9851
|
var relationship = strictObject({
|
|
9909
9852
|
id,
|
|
9910
9853
|
from: reference,
|
|
@@ -9931,7 +9874,7 @@ var relationship = strictObject({
|
|
|
9931
9874
|
created_at: time
|
|
9932
9875
|
});
|
|
9933
9876
|
|
|
9934
|
-
// 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
|
|
9935
9878
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9936
9879
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9937
9880
|
var responseTimes = strictObject({
|
|
@@ -9948,7 +9891,7 @@ var waitingChats = strictObject({
|
|
|
9948
9891
|
by_kind: strictObject({ private: count, group: count })
|
|
9949
9892
|
});
|
|
9950
9893
|
|
|
9951
|
-
// 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
|
|
9952
9895
|
var retentionCohort = strictObject({
|
|
9953
9896
|
/** The first day of the joining day or week. */
|
|
9954
9897
|
cohort: text,
|
|
@@ -9996,7 +9939,7 @@ var retention = strictObject({
|
|
|
9996
9939
|
rows: array(retentionCohort)
|
|
9997
9940
|
});
|
|
9998
9941
|
|
|
9999
|
-
// 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
|
|
10000
9943
|
var savedSearch = strictObject({
|
|
10001
9944
|
id,
|
|
10002
9945
|
/** `null` for a run in the history. */
|
|
@@ -10013,7 +9956,7 @@ var savedSearch = strictObject({
|
|
|
10013
9956
|
});
|
|
10014
9957
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10015
9958
|
|
|
10016
|
-
// 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
|
|
10017
9960
|
var sendAttempt = strictObject({
|
|
10018
9961
|
at: time,
|
|
10019
9962
|
profile: text,
|
|
@@ -10041,7 +9984,7 @@ var sendAttempt = strictObject({
|
|
|
10041
9984
|
error_code: optional(text)
|
|
10042
9985
|
});
|
|
10043
9986
|
|
|
10044
|
-
// 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
|
|
10045
9988
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10046
9989
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10047
9990
|
var infoSchema = strictObject({
|
|
@@ -10271,7 +10214,7 @@ var storeRepair = union([
|
|
|
10271
10214
|
]);
|
|
10272
10215
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10273
10216
|
|
|
10274
|
-
// 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
|
|
10275
10218
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10276
10219
|
var storeTable = strictObject({
|
|
10277
10220
|
name: text,
|
|
@@ -10280,7 +10223,7 @@ var storeTable = strictObject({
|
|
|
10280
10223
|
bytes: optional(nullable(count))
|
|
10281
10224
|
});
|
|
10282
10225
|
|
|
10283
|
-
// 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
|
|
10284
10227
|
var tagTarget = variant("type", [
|
|
10285
10228
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10286
10229
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10311,7 +10254,7 @@ var automaticTags = strictObject({
|
|
|
10311
10254
|
dry_run: boolean()
|
|
10312
10255
|
});
|
|
10313
10256
|
|
|
10314
|
-
// 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
|
|
10315
10258
|
var tagging = strictObject({
|
|
10316
10259
|
tag: text,
|
|
10317
10260
|
type: picklist(TAG_TYPES),
|
|
@@ -10324,7 +10267,7 @@ var tagging = strictObject({
|
|
|
10324
10267
|
created_at: time
|
|
10325
10268
|
});
|
|
10326
10269
|
|
|
10327
|
-
// 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
|
|
10328
10271
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10329
10272
|
var taskPair = strictObject({
|
|
10330
10273
|
task: nullable(side),
|
|
@@ -10347,7 +10290,7 @@ var taskPair = strictObject({
|
|
|
10347
10290
|
created_at: time
|
|
10348
10291
|
});
|
|
10349
10292
|
|
|
10350
|
-
// 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
|
|
10351
10294
|
var nullableTime = nullable(time);
|
|
10352
10295
|
var link = strictObject({
|
|
10353
10296
|
id,
|
|
@@ -10521,7 +10464,7 @@ var taskReview = strictObject({
|
|
|
10521
10464
|
untrusted
|
|
10522
10465
|
});
|
|
10523
10466
|
|
|
10524
|
-
// 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
|
|
10525
10468
|
var template = strictObject({
|
|
10526
10469
|
key: text,
|
|
10527
10470
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -10533,7 +10476,7 @@ var template = strictObject({
|
|
|
10533
10476
|
updated_by: nullable(text)
|
|
10534
10477
|
});
|
|
10535
10478
|
|
|
10536
|
-
// 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
|
|
10537
10480
|
var topic = strictObject({
|
|
10538
10481
|
id,
|
|
10539
10482
|
title: text,
|
|
@@ -10547,7 +10490,7 @@ var topic = strictObject({
|
|
|
10547
10490
|
untrusted
|
|
10548
10491
|
});
|
|
10549
10492
|
|
|
10550
|
-
// 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
|
|
10551
10494
|
var ENTITIES = {
|
|
10552
10495
|
sync_progress: progress,
|
|
10553
10496
|
deal,
|
|
@@ -10849,7 +10792,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10849
10792
|
return [name, definition];
|
|
10850
10793
|
})), "entityDefinitions");
|
|
10851
10794
|
|
|
10852
|
-
// 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
|
|
10853
10796
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10854
10797
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10855
10798
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10883,7 +10826,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10883
10826
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10884
10827
|
}, "answerRow");
|
|
10885
10828
|
|
|
10886
|
-
// 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
|
|
10887
10830
|
var where = [{ field: "ref" }];
|
|
10888
10831
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
10889
10832
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -10975,7 +10918,7 @@ var STATUS_ROWS = {
|
|
|
10975
10918
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
10976
10919
|
};
|
|
10977
10920
|
|
|
10978
|
-
// 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
|
|
10979
10922
|
var TEXT_CHARS = 400;
|
|
10980
10923
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
10981
10924
|
var messageRow = {
|
|
@@ -11109,9 +11052,13 @@ var isListOrRecord = /* @__PURE__ */ __name((value) => typeof value === "object"
|
|
|
11109
11052
|
var firstSet = /* @__PURE__ */ __name((item, field, column) => fieldsOfColumn(field).map((path2) => at(item, path2)).find((value) => printable(value, column)), "firstSet");
|
|
11110
11053
|
var sourceOf = /* @__PURE__ */ __name((item, column) => fieldsOfColumn(column.field).find((path2) => printable(at(item, path2), column)), "sourceOf");
|
|
11111
11054
|
var clean = /* @__PURE__ */ __name((text5) => visibleControls(text5.replace(/\s+/g, " ").trim()), "clean");
|
|
11055
|
+
var BLOCK = /^(⟦untrusted:([0-9a-f]{16}) [^⟦⟧]*⟧)([^⟦⟧]*)(⟦\/untrusted:\2⟧)$/su;
|
|
11112
11056
|
var cut = /* @__PURE__ */ __name((text5, chars) => {
|
|
11113
11057
|
if (chars <= 0)
|
|
11114
11058
|
return text5;
|
|
11059
|
+
const block = BLOCK.exec(text5);
|
|
11060
|
+
if (block)
|
|
11061
|
+
return `${block[1]}${cut(block[3] ?? "", chars)}${block[4]}`;
|
|
11115
11062
|
const letters = Array.from(text5);
|
|
11116
11063
|
return letters.length <= chars ? text5 : `${letters.slice(0, chars).join("")}\u2026(+${letters.length - chars})`;
|
|
11117
11064
|
}, "cut");
|
|
@@ -11343,7 +11290,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11343
11290
|
return lines.concat(footerOf(body)).join("\n");
|
|
11344
11291
|
}, "compactText");
|
|
11345
11292
|
|
|
11346
|
-
// 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
|
|
11347
11294
|
import { join as join5 } from "node:path";
|
|
11348
11295
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11349
11296
|
var IMAGE_MODELS = [
|
|
@@ -11397,7 +11344,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11397
11344
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
11398
11345
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11399
11346
|
|
|
11400
|
-
// 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
|
|
11401
11348
|
var STEPS2 = defineSteps([
|
|
11402
11349
|
...STEPS,
|
|
11403
11350
|
{
|
|
@@ -11645,6 +11592,20 @@ var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
|
11645
11592
|
root = root.parent;
|
|
11646
11593
|
return root;
|
|
11647
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");
|
|
11648
11609
|
var commandAt = /* @__PURE__ */ __name((root, path2) => {
|
|
11649
11610
|
let at2 = root;
|
|
11650
11611
|
for (const word of path2.split(" "))
|
|
@@ -11687,7 +11648,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11687
11648
|
].join(" ");
|
|
11688
11649
|
}, "stepLine");
|
|
11689
11650
|
|
|
11690
|
-
// 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
|
|
11691
11652
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11692
11653
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11693
11654
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11745,7 +11706,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11745
11706
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11746
11707
|
}, "largeAnswerSteps");
|
|
11747
11708
|
|
|
11748
|
-
// 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
|
|
11749
11710
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11750
11711
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11751
11712
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11759,7 +11720,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11759
11720
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11760
11721
|
}, "strip");
|
|
11761
11722
|
|
|
11762
|
-
// 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
|
|
11763
11724
|
var OPEN = "\u27E6";
|
|
11764
11725
|
var CLOSE = "\u27E7";
|
|
11765
11726
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -11781,19 +11742,35 @@ var idOf = /* @__PURE__ */ __name((value) => {
|
|
|
11781
11742
|
const id6 = value.ref ?? value.id;
|
|
11782
11743
|
return typeof id6 === "string" || typeof id6 === "number" ? String(id6) : void 0;
|
|
11783
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");
|
|
11784
11754
|
var markAt = /* @__PURE__ */ __name((value, path2, mark, source2, id6) => {
|
|
11785
11755
|
if (Array.isArray(value))
|
|
11786
11756
|
return value.map((one) => markAt(one, path2, mark, source2, id6));
|
|
11787
11757
|
if (path2.length === 0)
|
|
11788
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);
|
|
11789
11761
|
if (value === null || typeof value !== "object")
|
|
11790
11762
|
return value;
|
|
11791
11763
|
const [key = "", ...rest] = path2;
|
|
11792
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)]));
|
|
11793
11768
|
if (!(key in record2))
|
|
11794
11769
|
return value;
|
|
11795
|
-
return { ...record2, [key]: markAt(record2[key], rest, mark, source2,
|
|
11770
|
+
return { ...record2, [key]: markAt(record2[key], rest, mark, source2, own) };
|
|
11796
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.*"];
|
|
11797
11774
|
var withUntrustedMarked = /* @__PURE__ */ __name((value, mark, id6) => {
|
|
11798
11775
|
if (Array.isArray(value))
|
|
11799
11776
|
return value.map((one) => withUntrustedMarked(one, mark, id6));
|
|
@@ -11832,7 +11809,8 @@ var CHAT_UNTRUSTED = ["title", "description"];
|
|
|
11832
11809
|
var CONTACT_UNTRUSTED = ["description", "chats.title"];
|
|
11833
11810
|
var DECLARED = /* @__PURE__ */ new WeakMap();
|
|
11834
11811
|
var marksUntrusted = /* @__PURE__ */ __name((command, fields = MESSAGE_UNTRUSTED) => {
|
|
11835
|
-
DECLARED.
|
|
11812
|
+
const raw = DECLARED.get(command) === API_UNTRUSTED;
|
|
11813
|
+
DECLARED.set(command, raw ? [.../* @__PURE__ */ new Set([...API_UNTRUSTED, ...fields])] : fields);
|
|
11836
11814
|
return command;
|
|
11837
11815
|
}, "marksUntrusted");
|
|
11838
11816
|
var untrustedFieldsOf = /* @__PURE__ */ __name((command) => DECLARED.get(command), "untrustedFieldsOf");
|
|
@@ -11849,7 +11827,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
11849
11827
|
return result;
|
|
11850
11828
|
}, "withFieldsMarked");
|
|
11851
11829
|
|
|
11852
|
-
// 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
|
|
11853
11831
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11854
11832
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11855
11833
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12093,8 +12071,8 @@ export {
|
|
|
12093
12071
|
sharedContractOverrides,
|
|
12094
12072
|
sharedContracts,
|
|
12095
12073
|
sharedCommand,
|
|
12096
|
-
customizeSharedCommand,
|
|
12097
12074
|
refuseJoinedPath,
|
|
12075
|
+
deadlineMargin,
|
|
12098
12076
|
runBudget,
|
|
12099
12077
|
CORE_LOG_EVENTS,
|
|
12100
12078
|
recorded,
|
|
@@ -12211,6 +12189,7 @@ export {
|
|
|
12211
12189
|
reachesOtherService,
|
|
12212
12190
|
isOtherServiceCall,
|
|
12213
12191
|
ownerOnlyOption,
|
|
12192
|
+
allowDeletionsOption,
|
|
12214
12193
|
judgedEffects,
|
|
12215
12194
|
judgedTargets,
|
|
12216
12195
|
refuseUnderReadOnly,
|
|
@@ -12249,6 +12228,15 @@ export {
|
|
|
12249
12228
|
imageModelsDirectory,
|
|
12250
12229
|
placedImage,
|
|
12251
12230
|
isImageModelInstalled,
|
|
12231
|
+
untrustedMarkOf,
|
|
12232
|
+
runMarkOf,
|
|
12233
|
+
marked,
|
|
12234
|
+
withoutRunMarks,
|
|
12235
|
+
API_UNTRUSTED,
|
|
12236
|
+
withUntrustedMarked,
|
|
12237
|
+
CHAT_UNTRUSTED,
|
|
12238
|
+
CONTACT_UNTRUSTED,
|
|
12239
|
+
marksUntrusted,
|
|
12252
12240
|
answerEntity,
|
|
12253
12241
|
answerEntitySchema,
|
|
12254
12242
|
answerProjectionSchema,
|
|
@@ -12264,6 +12252,7 @@ export {
|
|
|
12264
12252
|
nextStep,
|
|
12265
12253
|
lineOf,
|
|
12266
12254
|
rootOf2,
|
|
12255
|
+
typedCommandPath,
|
|
12267
12256
|
commandAt,
|
|
12268
12257
|
runnable,
|
|
12269
12258
|
failureSteps,
|
|
@@ -12272,12 +12261,6 @@ export {
|
|
|
12272
12261
|
stepLine,
|
|
12273
12262
|
tooLargeSteps,
|
|
12274
12263
|
withoutProviderRefs,
|
|
12275
|
-
runMarkOf,
|
|
12276
|
-
marked,
|
|
12277
|
-
withUntrustedMarked,
|
|
12278
|
-
CHAT_UNTRUSTED,
|
|
12279
|
-
CONTACT_UNTRUSTED,
|
|
12280
|
-
marksUntrusted,
|
|
12281
12264
|
answerSchema,
|
|
12282
12265
|
listOf,
|
|
12283
12266
|
itemOf,
|