@wirecat/zoom-cli 0.75.0 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -11
- package/contracts/wirecat.json +53 -105
- package/dist/answer-entities.d.ts +1 -141
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +0 -31
- package/dist/answer-entities.js.map +1 -1
- package/dist/api.d.ts +18 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +179 -54
- package/dist/api.js.map +1 -1
- package/dist/archive-commands.d.ts +0 -3
- package/dist/archive-commands.d.ts.map +1 -1
- package/dist/archive-commands.js +1 -54
- package/dist/archive-commands.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-WFLKFKJC.js → all-profiles-PMCFNDMA.js} +11 -11
- package/dist/bundle/answer-policy-XU7KEW2V.js +121 -0
- package/dist/bundle/{anthropic-H45W4P22.js → anthropic-TGJOKLUS.js} +6 -6
- package/dist/bundle/{app-server-I4FPLBIX.js → app-server-OAODUFM3.js} +73 -63
- package/dist/bundle/{bun-V5QLYBZU.js → bun-HJHVHJJV.js} +2 -2
- package/dist/bundle/{bun-sqlite-X2YZPHDS.js → bun-sqlite-PLBOY6FP.js} +7 -7
- package/dist/bundle/{chunk-P6MQ6FS4.js → chunk-2QDD6S2R.js} +8 -8
- package/dist/bundle/{chunk-ZMHZ6CQS.js → chunk-2QRGJSKO.js} +2 -2
- package/dist/bundle/{chunk-DQBLDZ7M.js → chunk-36SI35XZ.js} +5 -5
- package/dist/bundle/{chunk-HKPNQL52.js → chunk-375BH5OD.js} +4 -4
- package/dist/bundle/{chunk-T4FMXDDV.js → chunk-3TLQF3DN.js} +3 -3
- package/dist/bundle/{chunk-EA2OB75T.js → chunk-4QNW4NK6.js} +1 -1
- package/dist/bundle/{chunk-4XDWV6VJ.js → chunk-4Z4VOQRR.js} +17 -17
- package/dist/bundle/{chunk-VLK3X53X.js → chunk-5A5W322G.js} +6 -2
- package/dist/bundle/chunk-5C5UEKUJ.js +170 -0
- package/dist/bundle/chunk-5C6CRSEM.js +389 -0
- package/dist/bundle/{chunk-3YKAFLXY.js → chunk-5KHCFIWI.js} +2 -2
- package/dist/bundle/{chunk-NQQVNLO6.js → chunk-635GRAO5.js} +12 -12
- package/dist/bundle/{chunk-RKI4BGWG.js → chunk-6JRBMNRN.js} +3 -3
- package/dist/bundle/{chunk-Y5J5CAG2.js → chunk-6YCFDDRO.js} +1 -1
- package/dist/bundle/{chunk-ZVVRRMLW.js → chunk-77JQIY2V.js} +3 -3
- package/dist/bundle/{chunk-IW245Q5B.js → chunk-7AFYZOHU.js} +36 -32
- package/dist/bundle/{chunk-V3UK6E5B.js → chunk-7CMYNW3W.js} +4 -4
- package/dist/bundle/chunk-7DTU7QZP.js +72 -0
- package/dist/bundle/chunk-7ILGYNWX.js +773 -0
- package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-7S3N5CTA.js} +1 -1
- package/dist/bundle/chunk-7SNU7RFU.js +229 -0
- package/dist/bundle/{chunk-4YNUQGDP.js → chunk-A6LK2W5J.js} +1 -1
- package/dist/bundle/{chunk-MHXZ62CU.js → chunk-ADJIYY33.js} +1 -1
- package/dist/bundle/{chunk-WUWF4EXZ.js → chunk-B7XFDMFV.js} +22 -12
- package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-BOJCRTQW.js} +2 -2
- package/dist/bundle/{chunk-GPVSGZ4R.js → chunk-CJL5GHTQ.js} +1010 -617
- package/dist/bundle/{chunk-BY2YPKZZ.js → chunk-CL6QAZGT.js} +39 -67
- package/dist/bundle/{chunk-GU4FVTJV.js → chunk-CUJJZJ4R.js} +44 -9
- package/dist/bundle/{chunk-FBYGBR4Q.js → chunk-CZ6OO66B.js} +4 -4
- package/dist/bundle/chunk-DCEQIKFD.js +259 -0
- package/dist/bundle/{chunk-QBKKTTA3.js → chunk-DDUNPLET.js} +279 -588
- package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-DYIRJINE.js} +1 -1
- package/dist/bundle/{chunk-L5UILROP.js → chunk-E3UPMPUV.js} +8 -8
- package/dist/bundle/{chunk-F6RB5FHZ.js → chunk-ECRFXQHA.js} +1 -1
- package/dist/bundle/{chunk-AVCYD4WQ.js → chunk-F4ROWGLU.js} +68 -38
- package/dist/bundle/{chunk-6XNTELM5.js → chunk-FDQE2CLT.js} +1 -1
- package/dist/bundle/{chunk-PCJRHC5Y.js → chunk-FRC5QIPQ.js} +8 -8
- package/dist/bundle/{chunk-4RJL32PF.js → chunk-FS5HPXQN.js} +26 -9
- package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-GHBDYYPO.js} +2 -2
- package/dist/bundle/{chunk-OUM4ZO53.js → chunk-H2EVYY5Z.js} +1 -1
- package/dist/bundle/{chunk-VPSQZ2YR.js → chunk-I3QMPQYD.js} +49 -49
- package/dist/bundle/{chunk-3U3W6YY5.js → chunk-ICZVSVTW.js} +71 -252
- package/dist/bundle/{chunk-QEO3XTIE.js → chunk-IJTBB23F.js} +32 -33
- package/dist/bundle/{chunk-FT7X74RT.js → chunk-IS6MUPN2.js} +4 -4
- package/dist/bundle/{chunk-NL6AZ6S2.js → chunk-IUOKIZZN.js} +2 -2
- package/dist/bundle/{chunk-3HTJBGNP.js → chunk-IZMRQ3MV.js} +21 -16
- package/dist/bundle/{chunk-X2FILY5F.js → chunk-JFVZVPRW.js} +3 -3
- package/dist/bundle/{chunk-MNVT7EJS.js → chunk-JMU3E2WA.js} +2 -2
- package/dist/bundle/{chunk-T25PR26L.js → chunk-JQUYHPQD.js} +7 -7
- package/dist/bundle/{chunk-JDTZCZ5K.js → chunk-KHBSQROH.js} +5 -5
- package/dist/bundle/{chunk-HCZYJMBP.js → chunk-KYKW2W6X.js} +1 -1
- package/dist/bundle/chunk-LMZUC4CS.js +101 -0
- package/dist/bundle/{chunk-PPM7UTCT.js → chunk-LUAS73NT.js} +18 -18
- package/dist/bundle/{chunk-P4ZQQLZF.js → chunk-LWMDLXEO.js} +2384 -3000
- package/dist/bundle/{chunk-W2AC2RAG.js → chunk-LYVHQ6DJ.js} +14 -14
- package/dist/bundle/{chunk-DUPFAY35.js → chunk-MCLZ74II.js} +7 -7
- package/dist/bundle/chunk-MIG4RLDB.js +555 -0
- package/dist/bundle/{chunk-3URYKAJP.js → chunk-MMAZUJBO.js} +1 -1
- package/dist/bundle/{chunk-B6Q53CVA.js → chunk-MTH3JJHF.js} +24 -22
- package/dist/bundle/{chunk-7ZVWV33Z.js → chunk-NJJEUG4C.js} +35 -13
- package/dist/bundle/{chunk-SEJBS7SI.js → chunk-NKKVVPL5.js} +1 -1
- package/dist/bundle/{chunk-TSHUBGN4.js → chunk-NOF6LABG.js} +6 -6
- package/dist/bundle/{chunk-F7K2V6OA.js → chunk-NPDPD2H3.js} +12 -12
- package/dist/bundle/{chunk-2PYZTRRC.js → chunk-NPIVV52M.js} +1 -1
- package/dist/bundle/{chunk-WQOGHND4.js → chunk-OOIU36FA.js} +1 -1
- package/dist/bundle/{chunk-XCJGDPMN.js → chunk-OXXJW3A5.js} +22320 -22886
- package/dist/bundle/chunk-PM3MB3E7.js +295 -0
- package/dist/bundle/{chunk-VUPWDCYV.js → chunk-PO4RZ4XZ.js} +1 -1
- package/dist/bundle/{chunk-K5E5MB4C.js → chunk-Q7ZW7XAX.js} +31 -87
- package/dist/bundle/{chunk-HNWDEDMU.js → chunk-QAGECFHL.js} +22 -22
- package/dist/bundle/{chunk-JTYWSXJG.js → chunk-QE4L2QQZ.js} +9 -9
- package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-QKNO3JTG.js} +2 -2
- package/dist/bundle/{chunk-IMDTC4MD.js → chunk-QUGESVOE.js} +22 -35
- package/dist/bundle/{chunk-ELD5AC7Q.js → chunk-RQS3W4P6.js} +7 -6
- package/dist/bundle/{chunk-A3Q3PG54.js → chunk-SFPUSEOT.js} +2 -2
- package/dist/bundle/{chunk-SR5X7YKB.js → chunk-SP5OMHOO.js} +3 -3
- package/dist/bundle/chunk-STNZQBY4.js +335 -0
- package/dist/bundle/{chunk-EOZAJGB4.js → chunk-SVJQRG5N.js} +16 -16
- package/dist/bundle/{chunk-IDGWBKMH.js → chunk-SY5NGYKA.js} +12 -12
- package/dist/bundle/{chunk-NE4GYKQA.js → chunk-T4CI3YXW.js} +6 -6
- package/dist/bundle/{chunk-3YRPDNWK.js → chunk-T6RSYDFA.js} +1075 -443
- package/dist/bundle/{chunk-QXQUANWE.js → chunk-TY4FFK2P.js} +6 -6
- package/dist/bundle/chunk-UGRGYLEI.js +224 -0
- package/dist/bundle/{chunk-C5WQ57AB.js → chunk-VGERRRDC.js} +1 -1
- package/dist/bundle/{chunk-NQLL4KRN.js → chunk-VJ2TLU7R.js} +6 -6
- package/dist/bundle/{chunk-PX4IMYVB.js → chunk-W7UCN7MF.js} +3 -3
- package/dist/bundle/{chunk-RBYVQE3S.js → chunk-WD5OL5JB.js} +81 -5
- package/dist/bundle/{chunk-LRCSDAYK.js → chunk-XC3MWABM.js} +4 -4
- package/dist/bundle/{chunk-MAE5UGRQ.js → chunk-XCA5N63N.js} +6 -6
- package/dist/bundle/chunk-XVHDT4CO.js +31 -0
- package/dist/bundle/{chunk-532H3KT3.js → chunk-YFN5A7OP.js} +4 -4
- package/dist/bundle/{chunk-IJCUAKR5.js → chunk-YJIGGUPI.js} +4 -4
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-YVI5SQPY.js} +1 -1
- package/dist/bundle/{chunk-IO3BQ6JU.js → chunk-ZRNNMBPC.js} +31 -577
- package/dist/bundle/{chunk-RABCFGT3.js → chunk-ZUMKZOHR.js} +3 -3
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-ZZ32DXTH.js} +1 -1
- package/dist/bundle/{cli-NPRYCWFH.js → cli-Y27PHKBV.js} +105 -84
- package/dist/bundle/command-contract-GB7YA3KW.js +45 -0
- package/dist/bundle/{command-server-entry-BV4SUPUI.js → command-server-entry-AXQSW2X6.js} +35 -31
- package/dist/bundle/config-2OOABHR7.js +108 -0
- package/dist/bundle/{decode-PRMKCHHC.js → decode-ZRNOOTUZ.js} +16 -8
- package/dist/bundle/{dispatch-EU67WGME.js → dispatch-2GHGPAYH.js} +9 -9
- package/dist/bundle/{dist-HGLDGKUW.js → dist-MUFVAMKB.js} +25 -22
- package/dist/bundle/{echarts-QIXLXS3G.js → echarts-F4PHDYET.js} +2 -2
- package/dist/bundle/{embed-OZN2BIJY.js → embed-KWHCKPCV.js} +7 -7
- package/dist/bundle/{embedder-RBDHO6Z6.js → embedder-U3R3RY54.js} +10 -10
- package/dist/bundle/{failure-CTJLEB2R.js → failure-S2YXEN4A.js} +3 -3
- package/dist/bundle/first-run-F4YR2E2C.js +29 -0
- package/dist/bundle/first-screen-HPRHD3VK.js +43 -0
- package/dist/bundle/{folders-MSBTAPAG.js → folders-DVTRFQKW.js} +5 -5
- package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-JU4YW6QY.js} +1 -1
- package/dist/bundle/{main-FPMCCRIQ.js → main-5UCRPACH.js} +24 -24
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-O6ACR2DX.js} +2 -2
- package/dist/bundle/meeting-combined-IWU5SPAH.js +26 -0
- package/dist/bundle/meeting-model-ILIUJECZ.js +26 -0
- package/dist/bundle/meeting-semantic-5DKRGZFS.js +23 -0
- package/dist/bundle/{meetings-WYCVHAIP.js → meetings-T2UY35DV.js} +43 -7
- package/dist/bundle/{node-IEVT2FSJ.js → node-MAVRAF4M.js} +2 -2
- package/dist/bundle/{node-sqlite-O4C6IWSM.js → node-sqlite-TFBQ5NDI.js} +8 -8
- package/dist/bundle/{oauth-6VXOUXSE.js → oauth-7IG5HWSY.js} +8 -8
- package/dist/bundle/{open-AMUIWV3Y.js → open-3R3N7L3X.js} +6 -6
- package/dist/bundle/openai-DD5I3DWC.js +28 -0
- package/dist/bundle/{output-file-VDOCYH2G.js → output-file-KKHHAYWF.js} +6 -6
- package/dist/bundle/{process-6Q23D3TO.js → process-OIO254NR.js} +1 -1
- package/dist/bundle/{program-CF2NKA2A.js → program-IBYRU76H.js} +428 -250
- package/dist/bundle/{prompt-N3UZE4ZR.js → prompt-LNEOO7PN.js} +6 -6
- package/dist/bundle/{recognize-I5F3K3CZ.js → recognize-2WYLT3PC.js} +5 -5
- package/dist/bundle/{remote-CJF5KMMY.js → remote-7EAJEIV7.js} +11 -11
- package/dist/bundle/{rerank-6WLY6MKY.js → rerank-DZBZ744F.js} +8 -8
- package/dist/bundle/run-log-CCIVRSHP.js +135 -0
- package/dist/bundle/{serve-FOQJ3WMX.js → serve-T3KQV5SS.js} +15 -15
- package/dist/bundle/{server-OEEGRSQD.js → server-2QQAQZ2J.js} +59 -49
- package/dist/bundle/server-OJQMPF2R.js +84 -0
- package/dist/bundle/{services-Q6SFESMS.js → services-DETAKMC3.js} +80 -54
- package/dist/bundle/{speech-PBVEIG4N.js → speech-HD57JNTK.js} +34 -18
- package/dist/bundle/{sqlite-runtime-IWR65V6I.js → sqlite-runtime-OCETZSEZ.js} +7 -7
- package/dist/bundle/{state-G54C2N6U.js → state-ZKVQ4DBI.js} +7 -7
- package/dist/bundle/{store-D5OLXIFW.js → store-7IZ2WMHF.js} +24 -20
- package/dist/bundle/{store-7EWMPTTW.js → store-GEAQ7V5R.js} +26 -22
- package/dist/bundle/store-connection-BALCZW7P.js +101 -0
- package/dist/bundle/store-maintenance-command-SBT4LDSI.js +76 -0
- package/dist/bundle/{streaming-PQEXKTE5.js → streaming-CLBAO3MG.js} +7 -7
- package/dist/bundle/{tokens-J7TFHLEG.js → tokens-WH73ZWFI.js} +10 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-SULPMVN4.js → zoom-app-ZDTYMJET.js} +8 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -0
- package/dist/commands.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +3 -5
- package/dist/first-screen.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +46 -28
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-search-commands.d.ts.map +1 -1
- package/dist/meeting-search-commands.js +6 -5
- package/dist/meeting-search-commands.js.map +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-source.js +15 -1
- package/dist/meeting-source.js.map +1 -1
- package/dist/permissions.d.ts +8 -4
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +25 -24
- package/dist/permissions.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +10 -6
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +2 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js.map +1 -1
- package/dist/remote-meetings.d.ts +38 -8
- package/dist/remote-meetings.d.ts.map +1 -1
- package/dist/remote-meetings.js +52 -29
- package/dist/remote-meetings.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +4 -2
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +1 -0
- package/dist/zoom-app.js.map +1 -1
- package/package.json +3 -3
- package/skills/zoom-cli/SKILL.md +2 -2
- package/dist/bundle/answer-policy-XCKC2LLN.js +0 -110
- package/dist/bundle/chunk-NU4FSSMN.js +0 -161
- package/dist/bundle/command-contract-OJYRKQHR.js +0 -41
- package/dist/bundle/config-UMEV24OE.js +0 -97
- package/dist/bundle/first-run-HNCD7U3B.js +0 -29
- package/dist/bundle/first-screen-374BBMO6.js +0 -39
- package/dist/bundle/openai-MEDN6FSK.js +0 -28
- package/dist/bundle/run-log-FKF4ZX4M.js +0 -124
- package/dist/bundle/server-BAGY5HEZ.js +0 -74
- package/dist/bundle/store-connection-34747SCC.js +0 -90
- package/dist/bundle/store-maintenance-command-QBO67F7Z.js +0 -65
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-VKE77B3F.js} +0 -0
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
modelSettingsShape,
|
|
5
|
+
resolveModelSettings
|
|
6
|
+
} from "./chunk-LMZUC4CS.js";
|
|
3
7
|
import {
|
|
4
8
|
ancestorValue,
|
|
5
9
|
envName,
|
|
6
10
|
readOnlyLockOf,
|
|
7
11
|
readOnlyRefusal
|
|
8
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GHBDYYPO.js";
|
|
13
|
+
import {
|
|
14
|
+
carries
|
|
15
|
+
} from "./chunk-OOIU36FA.js";
|
|
9
16
|
import {
|
|
10
17
|
currentCaller,
|
|
11
18
|
endpointTemplate,
|
|
@@ -15,10 +22,10 @@ import {
|
|
|
15
22
|
providerErrorKey,
|
|
16
23
|
renderEvent,
|
|
17
24
|
runContextOf
|
|
18
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MCLZ74II.js";
|
|
19
26
|
import {
|
|
20
27
|
permissionCeiling
|
|
21
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-375BH5OD.js";
|
|
22
29
|
import {
|
|
23
30
|
CEILING_KEY,
|
|
24
31
|
COMMAND_PATH_KEY,
|
|
@@ -32,33 +39,30 @@ import {
|
|
|
32
39
|
permissionOverrides,
|
|
33
40
|
projectFields,
|
|
34
41
|
resolveOutput
|
|
35
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-2QDD6S2R.js";
|
|
36
43
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./chunk-
|
|
44
|
+
note
|
|
45
|
+
} from "./chunk-6JRBMNRN.js";
|
|
39
46
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
DEFAULT_RERANK_MODEL,
|
|
48
|
+
RERANK_MODELS
|
|
49
|
+
} from "./chunk-STNZQBY4.js";
|
|
42
50
|
import {
|
|
43
|
-
|
|
44
|
-
} from "./chunk-
|
|
51
|
+
endpoint
|
|
52
|
+
} from "./chunk-SP5OMHOO.js";
|
|
45
53
|
import {
|
|
46
54
|
filesPresent,
|
|
47
55
|
sharedModelsDirectory
|
|
48
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-CZ6OO66B.js";
|
|
49
57
|
import {
|
|
50
58
|
CATEGORIES,
|
|
51
59
|
FACT_STATUSES,
|
|
52
|
-
KEEP_STORE_RUNS_FOR_DAYS,
|
|
53
|
-
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
54
60
|
LINK_KINDS,
|
|
55
61
|
LINK_SOURCES,
|
|
56
|
-
LOG_ATTRIBUTES,
|
|
57
62
|
MEMORY_KINDS,
|
|
58
63
|
MEMORY_SCOPES,
|
|
59
64
|
MEMORY_STATUSES,
|
|
60
65
|
PRIORITY_LABELS,
|
|
61
|
-
RUNS_SIZE_LIMIT_MB,
|
|
62
66
|
TASK_KINDS,
|
|
63
67
|
TASK_ORIGINS,
|
|
64
68
|
TASK_STATES,
|
|
@@ -66,36 +70,42 @@ import {
|
|
|
66
70
|
TASK_VERDICTS,
|
|
67
71
|
WORK_TASK_TYPES,
|
|
68
72
|
author,
|
|
69
|
-
childTrace,
|
|
70
73
|
count,
|
|
71
|
-
currentRun,
|
|
72
|
-
enclosingTraceId,
|
|
73
74
|
evidenceSource,
|
|
74
75
|
id,
|
|
75
|
-
inRun,
|
|
76
76
|
isGroupName,
|
|
77
|
-
logAttributes,
|
|
78
77
|
markStoreDamaged,
|
|
79
|
-
newRunId,
|
|
80
78
|
organization,
|
|
81
79
|
project,
|
|
82
80
|
providerMetadata,
|
|
83
81
|
reminder,
|
|
84
|
-
runsDirFor,
|
|
85
|
-
snakeLogger,
|
|
86
82
|
sourceReview,
|
|
87
|
-
startRun,
|
|
88
83
|
text,
|
|
89
84
|
time,
|
|
85
|
+
untrusted
|
|
86
|
+
} from "./chunk-ZRNNMBPC.js";
|
|
87
|
+
import {
|
|
88
|
+
KEEP_STORE_RUNS_FOR_DAYS,
|
|
89
|
+
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
90
|
+
LOG_ATTRIBUTES,
|
|
91
|
+
RUNS_SIZE_LIMIT_MB,
|
|
92
|
+
childTrace,
|
|
93
|
+
currentRun,
|
|
94
|
+
enclosingTraceId,
|
|
95
|
+
inRun,
|
|
96
|
+
logAttributes,
|
|
97
|
+
newRunId,
|
|
98
|
+
runsDirFor,
|
|
99
|
+
snakeLogger,
|
|
100
|
+
startRun,
|
|
90
101
|
traceOf,
|
|
91
102
|
typedCommand,
|
|
92
|
-
untrusted,
|
|
93
103
|
useAsProcessRun
|
|
94
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-MIG4RLDB.js";
|
|
95
105
|
import {
|
|
96
106
|
isCliFailure,
|
|
97
107
|
storeDamaged
|
|
98
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-5KHCFIWI.js";
|
|
99
109
|
import {
|
|
100
110
|
BUSINESS_KINDS,
|
|
101
111
|
CRM_ACTIVITY_KINDS,
|
|
@@ -109,21 +119,22 @@ import {
|
|
|
109
119
|
ORDER_PURPOSES,
|
|
110
120
|
ORDER_STATUSES,
|
|
111
121
|
RELATION_KINDS,
|
|
112
|
-
STANDINGS
|
|
122
|
+
STANDINGS
|
|
123
|
+
} from "./chunk-QUGESVOE.js";
|
|
124
|
+
import {
|
|
113
125
|
TAG_TYPES
|
|
114
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-XVHDT4CO.js";
|
|
115
127
|
import {
|
|
116
|
-
readSharedSection,
|
|
117
128
|
repairConfigText,
|
|
118
|
-
sharedConfigPath
|
|
119
|
-
|
|
120
|
-
} from "./chunk-L5UILROP.js";
|
|
129
|
+
sharedConfigPath
|
|
130
|
+
} from "./chunk-E3UPMPUV.js";
|
|
121
131
|
import {
|
|
122
132
|
storePath
|
|
123
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-SFPUSEOT.js";
|
|
124
134
|
import {
|
|
125
135
|
FACT_TYPES,
|
|
126
136
|
MEETING_RESULT_ENTITIES,
|
|
137
|
+
callStats,
|
|
127
138
|
event,
|
|
128
139
|
meeting,
|
|
129
140
|
meetingCounts,
|
|
@@ -137,13 +148,18 @@ import {
|
|
|
137
148
|
meetingSpeaker,
|
|
138
149
|
meetingStats,
|
|
139
150
|
meetingSummary,
|
|
140
|
-
|
|
141
|
-
|
|
151
|
+
meetingTagChange,
|
|
152
|
+
meetingTagging,
|
|
153
|
+
meetingTranscript,
|
|
154
|
+
readsZone
|
|
155
|
+
} from "./chunk-T6RSYDFA.js";
|
|
142
156
|
import {
|
|
143
157
|
FIELD_TYPES,
|
|
144
158
|
QUERY_BACKENDS,
|
|
145
|
-
describeQuery
|
|
146
|
-
|
|
159
|
+
describeQuery,
|
|
160
|
+
parseLucene,
|
|
161
|
+
timezoneOf
|
|
162
|
+
} from "./chunk-IZMRQ3MV.js";
|
|
147
163
|
import {
|
|
148
164
|
configFilePath,
|
|
149
165
|
createRecordLog,
|
|
@@ -152,7 +168,7 @@ import {
|
|
|
152
168
|
resolvePaths,
|
|
153
169
|
saveConfigFile,
|
|
154
170
|
writeSecurely
|
|
155
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-QAGECFHL.js";
|
|
156
172
|
import {
|
|
157
173
|
COMPACT_FLAG,
|
|
158
174
|
MAX_NEXT_STEPS,
|
|
@@ -163,7 +179,6 @@ import {
|
|
|
163
179
|
defineSteps,
|
|
164
180
|
effectsSchema,
|
|
165
181
|
exitCodeOfAnswer,
|
|
166
|
-
getDotPath,
|
|
167
182
|
integer,
|
|
168
183
|
isoDate,
|
|
169
184
|
isoTime,
|
|
@@ -195,7 +210,6 @@ import {
|
|
|
195
210
|
regex,
|
|
196
211
|
safeInteger,
|
|
197
212
|
safeParse,
|
|
198
|
-
startsWith,
|
|
199
213
|
stepOf,
|
|
200
214
|
strictObject,
|
|
201
215
|
string,
|
|
@@ -203,22 +217,21 @@ import {
|
|
|
203
217
|
union,
|
|
204
218
|
unknown,
|
|
205
219
|
unwrap,
|
|
206
|
-
url,
|
|
207
220
|
variant,
|
|
208
221
|
writes
|
|
209
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-FS5HPXQN.js";
|
|
210
223
|
import {
|
|
211
224
|
CliError,
|
|
212
225
|
isCliError
|
|
213
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-4QNW4NK6.js";
|
|
214
227
|
import {
|
|
215
228
|
visibleControls
|
|
216
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-KYKW2W6X.js";
|
|
217
230
|
import {
|
|
218
231
|
__name
|
|
219
232
|
} from "./chunk-ZVVMGPBJ.js";
|
|
220
233
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
234
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
222
235
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
223
236
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
224
237
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3719,7 +3732,7 @@ __name(useColor, "useColor");
|
|
|
3719
3732
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3720
3733
|
var program = new Command();
|
|
3721
3734
|
|
|
3722
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3735
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3723
3736
|
import { isDeepStrictEqual } from "node:util";
|
|
3724
3737
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3725
3738
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3921,7 +3934,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3921
3934
|
return command;
|
|
3922
3935
|
}, "customizeSharedCommand");
|
|
3923
3936
|
|
|
3924
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3937
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3925
3938
|
var argumentInfoSchema = object({
|
|
3926
3939
|
name: string(),
|
|
3927
3940
|
required: boolean(),
|
|
@@ -3995,7 +4008,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3995
4008
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3996
4009
|
});
|
|
3997
4010
|
|
|
3998
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4011
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3999
4012
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
4000
4013
|
let command = root;
|
|
4001
4014
|
const path2 = [];
|
|
@@ -4013,7 +4026,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
4013
4026
|
}
|
|
4014
4027
|
}, "refuseJoinedPath");
|
|
4015
4028
|
|
|
4016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
4017
4030
|
var WEIGHTS = {
|
|
4018
4031
|
bot: 3,
|
|
4019
4032
|
scam: 3,
|
|
@@ -4038,7 +4051,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
4038
4051
|
var DIGITS = /\d{5,}/;
|
|
4039
4052
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
4040
4053
|
|
|
4041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
4042
4055
|
var linkedIdentity = strictObject({
|
|
4043
4056
|
provider: text,
|
|
4044
4057
|
id,
|
|
@@ -4093,7 +4106,7 @@ var contactCheck = strictObject({
|
|
|
4093
4106
|
checked_at: time
|
|
4094
4107
|
});
|
|
4095
4108
|
|
|
4096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
4097
4110
|
var member = strictObject({
|
|
4098
4111
|
id,
|
|
4099
4112
|
name: nullable(text),
|
|
@@ -4116,7 +4129,7 @@ var member = strictObject({
|
|
|
4116
4129
|
check: optional(record(string(), unknown()))
|
|
4117
4130
|
});
|
|
4118
4131
|
|
|
4119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
4120
4133
|
var setting = optional(nullable(boolean()));
|
|
4121
4134
|
var chat = strictObject({
|
|
4122
4135
|
ref: reference,
|
|
@@ -4157,7 +4170,7 @@ var chat = strictObject({
|
|
|
4157
4170
|
members: optional(array(member))
|
|
4158
4171
|
});
|
|
4159
4172
|
|
|
4160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
4161
4174
|
var attachment = strictObject({
|
|
4162
4175
|
/** The message it came with, as a locator; absent inside that message. */
|
|
4163
4176
|
message: optional(reference),
|
|
@@ -4202,7 +4215,7 @@ var hitFile = strictObject({
|
|
|
4202
4215
|
local_path: optional(text)
|
|
4203
4216
|
});
|
|
4204
4217
|
|
|
4205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
4206
4219
|
var quoted = strictObject({
|
|
4207
4220
|
id,
|
|
4208
4221
|
sender_id: nullable(id),
|
|
@@ -4321,7 +4334,7 @@ var message = strictObject({
|
|
|
4321
4334
|
provider_metadata: providerMetadata
|
|
4322
4335
|
});
|
|
4323
4336
|
|
|
4324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
4325
4338
|
var recordedMeeting = strictObject({
|
|
4326
4339
|
ref: reference,
|
|
4327
4340
|
meeting_id: count,
|
|
@@ -4334,7 +4347,7 @@ var recordedMeeting = strictObject({
|
|
|
4334
4347
|
people: array(reference)
|
|
4335
4348
|
});
|
|
4336
4349
|
|
|
4337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
4338
4351
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
4339
4352
|
var contextMessage = strictObject({
|
|
4340
4353
|
locator: reference,
|
|
@@ -4540,7 +4553,7 @@ var contactPreparation = strictObject({
|
|
|
4540
4553
|
})
|
|
4541
4554
|
});
|
|
4542
4555
|
|
|
4543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
4544
4557
|
var nullableText = nullable(text);
|
|
4545
4558
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
4546
4559
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -4651,7 +4664,7 @@ var stage = strictObject({
|
|
|
4651
4664
|
untrusted
|
|
4652
4665
|
});
|
|
4653
4666
|
|
|
4654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
4655
4668
|
var nullableText2 = nullable(text);
|
|
4656
4669
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
4657
4670
|
var standing = picklist(STANDINGS);
|
|
@@ -4825,7 +4838,7 @@ var dealBrief = strictObject({
|
|
|
4825
4838
|
not_read: coverage2.entries.not_read
|
|
4826
4839
|
});
|
|
4827
4840
|
|
|
4828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
4829
4842
|
var botProfile = strictObject({
|
|
4830
4843
|
name: text,
|
|
4831
4844
|
token: text,
|
|
@@ -4949,7 +4962,7 @@ var stickerInventory = strictObject({
|
|
|
4949
4962
|
url: optional(nullable(text))
|
|
4950
4963
|
});
|
|
4951
4964
|
|
|
4952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
4953
4966
|
var actionableError = objectWithRest({
|
|
4954
4967
|
code: text,
|
|
4955
4968
|
message: text,
|
|
@@ -4966,7 +4979,7 @@ var batchResult = strictObject({
|
|
|
4966
4979
|
max_error_percent: count
|
|
4967
4980
|
});
|
|
4968
4981
|
|
|
4969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
4970
4983
|
var conversationBuild = strictObject({
|
|
4971
4984
|
chat: id,
|
|
4972
4985
|
messages: count,
|
|
@@ -4991,13 +5004,13 @@ var catchUpPreparation = strictObject({
|
|
|
4991
5004
|
prepared: optional(conversationPreparation)
|
|
4992
5005
|
});
|
|
4993
5006
|
|
|
4994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
4995
5008
|
import { spawn } from "node:child_process";
|
|
4996
5009
|
import { randomBytes } from "node:crypto";
|
|
4997
5010
|
import { closeSync, existsSync as existsSync2, mkdirSync, openSync, readdirSync, readFileSync as readFileSync2, realpathSync, rmSync as rmSync2 } from "node:fs";
|
|
4998
5011
|
import { dirname, join as join2 } from "node:path";
|
|
4999
5012
|
|
|
5000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
5001
5014
|
import { existsSync, readFileSync, rmSync } from "node:fs";
|
|
5002
5015
|
import { join } from "node:path";
|
|
5003
5016
|
var PART = /^[\w@+-][\w.@+-]{0,99}$/;
|
|
@@ -5037,7 +5050,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
5037
5050
|
};
|
|
5038
5051
|
}, "progressOf");
|
|
5039
5052
|
|
|
5040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
5041
5054
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
5042
5055
|
const run = currentRun();
|
|
5043
5056
|
const trace = traceId ?? run.traceId;
|
|
@@ -5051,7 +5064,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
5051
5064
|
}));
|
|
5052
5065
|
}, "recordLogFor");
|
|
5053
5066
|
|
|
5054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
5055
5068
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
5056
5069
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
5057
5070
|
const out = openSync(log, "a", 384);
|
|
@@ -5206,7 +5219,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
5206
5219
|
return { job: id6, pid, chat: input.chat, log };
|
|
5207
5220
|
}, "startArchiveJob");
|
|
5208
5221
|
|
|
5209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
5210
5223
|
var problem = strictObject({ code: text, message: text });
|
|
5211
5224
|
var job = strictObject({
|
|
5212
5225
|
id,
|
|
@@ -5229,7 +5242,7 @@ var job = strictObject({
|
|
|
5229
5242
|
error: optional(problem)
|
|
5230
5243
|
});
|
|
5231
5244
|
|
|
5232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
5233
5246
|
var extractionItem = strictObject({
|
|
5234
5247
|
ref: reference,
|
|
5235
5248
|
attachment: count,
|
|
@@ -5262,7 +5275,7 @@ var extractionReport = strictObject({
|
|
|
5262
5275
|
cursor: optional(text)
|
|
5263
5276
|
});
|
|
5264
5277
|
|
|
5265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
5266
5279
|
var savedMessageFile = strictObject({
|
|
5267
5280
|
kind: text,
|
|
5268
5281
|
path: text,
|
|
@@ -5349,7 +5362,7 @@ var messageSyncAll = strictObject({
|
|
|
5349
5362
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
5350
5363
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
5351
5364
|
|
|
5352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
5353
5366
|
var range = strictObject({ from: number(), to: number() });
|
|
5354
5367
|
var storeChatStatus = strictObject({
|
|
5355
5368
|
chat_id: id,
|
|
@@ -5447,7 +5460,7 @@ var storeJobRetry = union([
|
|
|
5447
5460
|
]);
|
|
5448
5461
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
5449
5462
|
|
|
5450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
5451
5464
|
var account = strictObject({
|
|
5452
5465
|
provider: text,
|
|
5453
5466
|
id,
|
|
@@ -5457,7 +5470,7 @@ var account = strictObject({
|
|
|
5457
5470
|
scope: optional(picklist(["personal", "work"]))
|
|
5458
5471
|
});
|
|
5459
5472
|
|
|
5460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
5461
5474
|
var accountSession = strictObject({
|
|
5462
5475
|
current: boolean(),
|
|
5463
5476
|
client: nullable(text),
|
|
@@ -5467,7 +5480,7 @@ var accountSession = strictObject({
|
|
|
5467
5480
|
created_at: optional(nullable(time))
|
|
5468
5481
|
});
|
|
5469
5482
|
|
|
5470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
5471
5484
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
5472
5485
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
5473
5486
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -5496,7 +5509,7 @@ var accountRemoval = strictObject({
|
|
|
5496
5509
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
5497
5510
|
});
|
|
5498
5511
|
|
|
5499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
5500
5513
|
var accountProfile = strictObject({
|
|
5501
5514
|
profile: id,
|
|
5502
5515
|
current: boolean(),
|
|
@@ -5508,7 +5521,7 @@ var accountProfile = strictObject({
|
|
|
5508
5521
|
bot: optional(literal(true))
|
|
5509
5522
|
});
|
|
5510
5523
|
|
|
5511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
5512
5525
|
var milliseconds = pipe(number(), minValue(0));
|
|
5513
5526
|
var counterReading = strictObject({
|
|
5514
5527
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -5520,7 +5533,7 @@ var counterReading = strictObject({
|
|
|
5520
5533
|
});
|
|
5521
5534
|
var selection = record(string(), unknown());
|
|
5522
5535
|
|
|
5523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
5524
5537
|
var adminRow = strictObject({
|
|
5525
5538
|
ref: reference,
|
|
5526
5539
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -5573,7 +5586,7 @@ var adminReport = strictObject({
|
|
|
5573
5586
|
rows: array(adminRow)
|
|
5574
5587
|
});
|
|
5575
5588
|
|
|
5576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
5577
5590
|
var closeSuggestion = strictObject({
|
|
5578
5591
|
as: picklist(["done", "dismissed"]),
|
|
5579
5592
|
/** The agent's name. */
|
|
@@ -5635,7 +5648,7 @@ var task = strictObject({
|
|
|
5635
5648
|
updated_at: optional(time)
|
|
5636
5649
|
});
|
|
5637
5650
|
|
|
5638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
5639
5652
|
var agendaChat = strictObject({
|
|
5640
5653
|
chat: reference,
|
|
5641
5654
|
title: nullable(text),
|
|
@@ -5705,11 +5718,11 @@ var agenda = strictObject({
|
|
|
5705
5718
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
5706
5719
|
});
|
|
5707
5720
|
|
|
5708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
5709
5722
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
5710
5723
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
5711
5724
|
|
|
5712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
5713
5726
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
5714
5727
|
var attachmentBytes = strictObject({
|
|
5715
5728
|
ref: reference,
|
|
@@ -5740,7 +5753,7 @@ var attachmentTextChange = strictObject({
|
|
|
5740
5753
|
text: optional(text)
|
|
5741
5754
|
});
|
|
5742
5755
|
|
|
5743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
5744
5757
|
var chart = strictObject({
|
|
5745
5758
|
version: literal(1),
|
|
5746
5759
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -5755,7 +5768,7 @@ var chart = strictObject({
|
|
|
5755
5768
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
5756
5769
|
});
|
|
5757
5770
|
|
|
5758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
5759
5772
|
var named = strictObject({
|
|
5760
5773
|
id,
|
|
5761
5774
|
title: nullable(text),
|
|
@@ -5778,7 +5791,7 @@ var folder = strictObject({
|
|
|
5778
5791
|
excluded_chats: optional(array(named))
|
|
5779
5792
|
});
|
|
5780
5793
|
|
|
5781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
5782
5795
|
var inviteLink = strictObject({
|
|
5783
5796
|
link: text,
|
|
5784
5797
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -5794,7 +5807,7 @@ var inviteLink = strictObject({
|
|
|
5794
5807
|
joined_count: optional(count)
|
|
5795
5808
|
});
|
|
5796
5809
|
|
|
5797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
5798
5811
|
var operated = { operation_id: id, chat_id: id };
|
|
5799
5812
|
var group = strictObject({
|
|
5800
5813
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -5874,7 +5887,7 @@ var chatFolderOrder = strictObject({
|
|
|
5874
5887
|
folders: array(strictObject({ id, title: text }))
|
|
5875
5888
|
});
|
|
5876
5889
|
|
|
5877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
5878
5891
|
var operated2 = { operation_id: id, chat_id: id };
|
|
5879
5892
|
var chatRemoval = strictObject(operated2);
|
|
5880
5893
|
var chatMuting = strictObject({
|
|
@@ -5885,7 +5898,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
5885
5898
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
5886
5899
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
5887
5900
|
|
|
5888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
5889
5902
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
5890
5903
|
var chatEvent = strictObject({
|
|
5891
5904
|
chat_id: id,
|
|
@@ -5902,7 +5915,7 @@ var chatEvent = strictObject({
|
|
|
5902
5915
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
5903
5916
|
});
|
|
5904
5917
|
|
|
5905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
5906
5919
|
var chatMetadata = strictObject({
|
|
5907
5920
|
chat_id: id,
|
|
5908
5921
|
title: nullable(text),
|
|
@@ -5917,7 +5930,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
5917
5930
|
has_more: boolean()
|
|
5918
5931
|
});
|
|
5919
5932
|
|
|
5920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
5921
5934
|
var action = picklist(["report", "delete", "remove"]);
|
|
5922
5935
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
5923
5936
|
var chatRules = strictObject({
|
|
@@ -5954,7 +5967,17 @@ var chatModeration = strictObject({
|
|
|
5954
5967
|
}))
|
|
5955
5968
|
});
|
|
5956
5969
|
|
|
5957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
5971
|
+
var chatSending = strictObject({
|
|
5972
|
+
mode: picklist(["allowed", "ask", "denied"]),
|
|
5973
|
+
meaning: text,
|
|
5974
|
+
/** When the owner last set it; `null` while it is the default, ask. */
|
|
5975
|
+
since: nullable(time),
|
|
5976
|
+
/** `set` only: whether this run changed it. */
|
|
5977
|
+
changed: optional(boolean())
|
|
5978
|
+
});
|
|
5979
|
+
|
|
5980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
5958
5981
|
var optionalCount = optional(count);
|
|
5959
5982
|
var minutes = nullable(number());
|
|
5960
5983
|
var chatStats = strictObject({
|
|
@@ -6030,7 +6053,7 @@ var taskStats = strictObject({
|
|
|
6030
6053
|
}))
|
|
6031
6054
|
});
|
|
6032
6055
|
|
|
6033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
6034
6057
|
var memberCount = strictObject({
|
|
6035
6058
|
day: pipe(text, isoDate()),
|
|
6036
6059
|
participants: nullable(count),
|
|
@@ -6053,7 +6076,7 @@ var chatTracking = strictObject({
|
|
|
6053
6076
|
tracked: boolean()
|
|
6054
6077
|
});
|
|
6055
6078
|
|
|
6056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
6057
6080
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
6058
6081
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
6059
6082
|
var profileFields = {
|
|
@@ -6091,7 +6114,7 @@ var profileFields = {
|
|
|
6091
6114
|
}))
|
|
6092
6115
|
};
|
|
6093
6116
|
|
|
6094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
6095
6118
|
var contact = strictObject({
|
|
6096
6119
|
ref: reference,
|
|
6097
6120
|
id,
|
|
@@ -6122,7 +6145,7 @@ var contact = strictObject({
|
|
|
6122
6145
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
6123
6146
|
});
|
|
6124
6147
|
|
|
6125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
6126
6149
|
var contactNote = strictObject({
|
|
6127
6150
|
id,
|
|
6128
6151
|
/** The contact, as a `contact:` reference. */
|
|
@@ -6134,13 +6157,13 @@ var contactNote = strictObject({
|
|
|
6134
6157
|
updated_at: time
|
|
6135
6158
|
});
|
|
6136
6159
|
|
|
6137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
6138
6161
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
6139
6162
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
6140
6163
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
6141
6164
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
6142
6165
|
|
|
6143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
6144
6167
|
var conversation = strictObject({
|
|
6145
6168
|
id,
|
|
6146
6169
|
chat: reference,
|
|
@@ -6155,7 +6178,7 @@ var conversation = strictObject({
|
|
|
6155
6178
|
rules_version: count
|
|
6156
6179
|
});
|
|
6157
6180
|
|
|
6158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
6159
6182
|
var conversationDetails = union([
|
|
6160
6183
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
6161
6184
|
message
|
|
@@ -6245,7 +6268,7 @@ var conversationHit = strictObject({
|
|
|
6245
6268
|
stale: boolean()
|
|
6246
6269
|
});
|
|
6247
6270
|
|
|
6248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
6249
6272
|
var counters = strictObject({
|
|
6250
6273
|
cutoff: time,
|
|
6251
6274
|
max_age_ms: milliseconds,
|
|
@@ -6275,7 +6298,7 @@ var counterRefresh = strictObject({
|
|
|
6275
6298
|
complete: optional(boolean())
|
|
6276
6299
|
});
|
|
6277
6300
|
|
|
6278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
6279
6302
|
var document = strictObject({
|
|
6280
6303
|
ref: reference,
|
|
6281
6304
|
id,
|
|
@@ -6290,7 +6313,7 @@ var document = strictObject({
|
|
|
6290
6313
|
owners: optional(array(text))
|
|
6291
6314
|
});
|
|
6292
6315
|
|
|
6293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
6294
6317
|
var documentLink = strictObject({
|
|
6295
6318
|
ref: reference,
|
|
6296
6319
|
url: text,
|
|
@@ -6301,7 +6324,7 @@ var documentLink = strictObject({
|
|
|
6301
6324
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
6302
6325
|
});
|
|
6303
6326
|
|
|
6304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
6305
6328
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
6306
6329
|
var contribution = strictObject({
|
|
6307
6330
|
message: evidenceMessage,
|
|
@@ -6331,7 +6354,7 @@ var retentionStay = strictObject({
|
|
|
6331
6354
|
});
|
|
6332
6355
|
var evidence = union([contribution, retentionStay]);
|
|
6333
6356
|
|
|
6334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
6335
6358
|
var fact = strictObject({
|
|
6336
6359
|
ref: reference,
|
|
6337
6360
|
id,
|
|
@@ -6362,7 +6385,7 @@ var fact = strictObject({
|
|
|
6362
6385
|
updated_at: time
|
|
6363
6386
|
});
|
|
6364
6387
|
|
|
6365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
6366
6389
|
var hit = strictObject({
|
|
6367
6390
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
6368
6391
|
ref: reference,
|
|
@@ -6410,7 +6433,7 @@ var hit = strictObject({
|
|
|
6410
6433
|
untrusted
|
|
6411
6434
|
});
|
|
6412
6435
|
|
|
6413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
6414
6437
|
var identity = strictObject({
|
|
6415
6438
|
ref: reference,
|
|
6416
6439
|
provider: text,
|
|
@@ -6426,7 +6449,7 @@ var identity = strictObject({
|
|
|
6426
6449
|
person: optional(nullable(reference))
|
|
6427
6450
|
});
|
|
6428
6451
|
|
|
6429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
6430
6453
|
var imageEmbedding = strictObject({
|
|
6431
6454
|
model: text,
|
|
6432
6455
|
embedded: count,
|
|
@@ -6435,7 +6458,7 @@ var imageEmbedding = strictObject({
|
|
|
6435
6458
|
more: boolean()
|
|
6436
6459
|
});
|
|
6437
6460
|
|
|
6438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
6439
6462
|
var joinRequest = strictObject({
|
|
6440
6463
|
person_id: id,
|
|
6441
6464
|
name: nullable(text),
|
|
@@ -6446,7 +6469,7 @@ var joinRequest = strictObject({
|
|
|
6446
6469
|
about: optional(text)
|
|
6447
6470
|
});
|
|
6448
6471
|
|
|
6449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
6450
6473
|
var pollVote = strictObject({
|
|
6451
6474
|
person_id: id,
|
|
6452
6475
|
name: nullable(text),
|
|
@@ -6456,7 +6479,7 @@ var pollVote = strictObject({
|
|
|
6456
6479
|
voted_at: time
|
|
6457
6480
|
});
|
|
6458
6481
|
|
|
6459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
6460
6483
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
6461
6484
|
var observation = strictObject({
|
|
6462
6485
|
value: pipe(number(), minValue(0)),
|
|
@@ -6498,7 +6521,7 @@ var serveSummary = strictObject({
|
|
|
6498
6521
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
6499
6522
|
});
|
|
6500
6523
|
|
|
6501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
6502
6525
|
var mailCounts = strictObject({
|
|
6503
6526
|
by: picklist(["day", "week", "sender"]),
|
|
6504
6527
|
received: count,
|
|
@@ -6513,7 +6536,7 @@ var mailCounts = strictObject({
|
|
|
6513
6536
|
}))
|
|
6514
6537
|
});
|
|
6515
6538
|
|
|
6516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
6517
6540
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
6518
6541
|
var base = { id, evidence: array(evidence2) };
|
|
6519
6542
|
var finding = variant("kind", [
|
|
@@ -6657,7 +6680,7 @@ var mailFindings = strictObject({
|
|
|
6657
6680
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
6658
6681
|
});
|
|
6659
6682
|
|
|
6660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
6661
6684
|
var mediaArchive = strictObject({
|
|
6662
6685
|
directory: text,
|
|
6663
6686
|
chats: count,
|
|
@@ -6689,7 +6712,7 @@ var mediaArchiveTimer = union([
|
|
|
6689
6712
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
6690
6713
|
]);
|
|
6691
6714
|
|
|
6692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
6693
6716
|
var preparationId = pipe(string(), minLength(1));
|
|
6694
6717
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
6695
6718
|
var preparationTime = nullable(isoTime);
|
|
@@ -6781,7 +6804,7 @@ var preparationMeeting = strictObject({
|
|
|
6781
6804
|
updated_at: isoTime
|
|
6782
6805
|
});
|
|
6783
6806
|
|
|
6784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
6785
6808
|
var meetingEvidence = preparationEvidence;
|
|
6786
6809
|
var meetingPersonContext = strictObject({
|
|
6787
6810
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -6803,7 +6826,7 @@ var meetingPersonContext = strictObject({
|
|
|
6803
6826
|
})
|
|
6804
6827
|
});
|
|
6805
6828
|
|
|
6806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
6807
6830
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
6808
6831
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
6809
6832
|
var finding2 = variant("kind", [
|
|
@@ -6841,7 +6864,7 @@ var meetingFindings = strictObject({
|
|
|
6841
6864
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
6842
6865
|
});
|
|
6843
6866
|
|
|
6844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
6845
6868
|
var communicationCoverage = strictObject({
|
|
6846
6869
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
6847
6870
|
query: string(),
|
|
@@ -6886,7 +6909,7 @@ var preparationCommunications = strictObject({
|
|
|
6886
6909
|
}))
|
|
6887
6910
|
});
|
|
6888
6911
|
|
|
6889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
6890
6913
|
var meetingPreparation = strictObject({
|
|
6891
6914
|
communications: optional(preparationCommunications),
|
|
6892
6915
|
schema_version: literal(1),
|
|
@@ -6999,7 +7022,7 @@ var meetingPreparation = strictObject({
|
|
|
6999
7022
|
})
|
|
7000
7023
|
});
|
|
7001
7024
|
|
|
7002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
7003
7026
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
7004
7027
|
var id3 = pipe(string(), minLength(1));
|
|
7005
7028
|
var text3 = string();
|
|
@@ -7063,7 +7086,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
7063
7086
|
})
|
|
7064
7087
|
});
|
|
7065
7088
|
|
|
7066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
7067
7090
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
7068
7091
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
7069
7092
|
var meetingSeriesInventory = strictObject({
|
|
@@ -7093,7 +7116,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
7093
7116
|
})
|
|
7094
7117
|
});
|
|
7095
7118
|
|
|
7096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
7097
7120
|
var text4 = string();
|
|
7098
7121
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
7099
7122
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -7110,7 +7133,7 @@ var meetingTaskProposal = strictObject({
|
|
|
7110
7133
|
persistence: literal("proposal-only")
|
|
7111
7134
|
});
|
|
7112
7135
|
|
|
7113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
7114
7137
|
var memory = strictObject({
|
|
7115
7138
|
ref: reference,
|
|
7116
7139
|
id,
|
|
@@ -7138,7 +7161,7 @@ var memory = strictObject({
|
|
|
7138
7161
|
updated_at: time
|
|
7139
7162
|
});
|
|
7140
7163
|
|
|
7141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
7142
7165
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
7143
7166
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
7144
7167
|
var mention = strictObject({
|
|
@@ -7182,13 +7205,13 @@ var mentionRebuild = strictObject({
|
|
|
7182
7205
|
mentions: count
|
|
7183
7206
|
});
|
|
7184
7207
|
|
|
7185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
7186
7209
|
var operated3 = { operation_id: id, chat_id: id };
|
|
7187
7210
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
7188
7211
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
7189
7212
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
7190
7213
|
|
|
7191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
7192
7215
|
var messageTranscript = strictObject({
|
|
7193
7216
|
message_id: id,
|
|
7194
7217
|
text,
|
|
@@ -7246,7 +7269,7 @@ var evidencePacket = strictObject({
|
|
|
7246
7269
|
}))
|
|
7247
7270
|
});
|
|
7248
7271
|
|
|
7249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
7250
7273
|
var messageThread = strictObject({
|
|
7251
7274
|
ref: reference,
|
|
7252
7275
|
chat: id,
|
|
@@ -7263,7 +7286,7 @@ var messageThread = strictObject({
|
|
|
7263
7286
|
});
|
|
7264
7287
|
var messageContext = union([message, messageThread]);
|
|
7265
7288
|
|
|
7266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
7267
7290
|
var messageCounts = strictObject({
|
|
7268
7291
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
7269
7292
|
total: count,
|
|
@@ -7276,7 +7299,7 @@ var messageCounts = strictObject({
|
|
|
7276
7299
|
}))
|
|
7277
7300
|
});
|
|
7278
7301
|
|
|
7279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
7280
7303
|
var messageLink = strictObject({
|
|
7281
7304
|
ref: reference,
|
|
7282
7305
|
url: nullable(text),
|
|
@@ -7293,7 +7316,7 @@ var messageLink = strictObject({
|
|
|
7293
7316
|
})))
|
|
7294
7317
|
});
|
|
7295
7318
|
|
|
7296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
7297
7320
|
var messageWrite = strictObject({
|
|
7298
7321
|
operation_id: id,
|
|
7299
7322
|
message,
|
|
@@ -7308,7 +7331,7 @@ var draftWrite = strictObject({
|
|
|
7308
7331
|
});
|
|
7309
7332
|
var messageSend = union([messageWrite, draftWrite]);
|
|
7310
7333
|
|
|
7311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
7312
7335
|
var model = strictObject({
|
|
7313
7336
|
id,
|
|
7314
7337
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -7343,7 +7366,7 @@ var chosenModel = strictObject({
|
|
|
7343
7366
|
estimate_seconds: nullable(count)
|
|
7344
7367
|
});
|
|
7345
7368
|
|
|
7346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
7347
7370
|
var source = picklist(["environment", "keyring", "file"]);
|
|
7348
7371
|
var modelKey = strictObject({
|
|
7349
7372
|
provider: text,
|
|
@@ -7353,7 +7376,7 @@ var modelKey = strictObject({
|
|
|
7353
7376
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
7354
7377
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
7355
7378
|
|
|
7356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
7357
7380
|
var versus = strictObject({ current: number(), previous: number() });
|
|
7358
7381
|
var person = { person_ref: reference, name: nullable(text) };
|
|
7359
7382
|
var graph = strictObject({
|
|
@@ -7387,14 +7410,14 @@ var officialStats = strictObject({
|
|
|
7387
7410
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
7388
7411
|
});
|
|
7389
7412
|
|
|
7390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
7391
7414
|
var person2 = strictObject({
|
|
7392
7415
|
ref: reference,
|
|
7393
7416
|
name: nullable(text),
|
|
7394
7417
|
identities: optional(array(identity))
|
|
7395
7418
|
});
|
|
7396
7419
|
|
|
7397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
7398
7421
|
var poll = strictObject({
|
|
7399
7422
|
chat_id: id,
|
|
7400
7423
|
message_id: id,
|
|
@@ -7410,11 +7433,11 @@ var poll = strictObject({
|
|
|
7410
7433
|
});
|
|
7411
7434
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
7412
7435
|
|
|
7413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
7414
7437
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
7415
7438
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
7416
7439
|
|
|
7417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
7418
7441
|
var figures = record(string(), number());
|
|
7419
7442
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
7420
7443
|
var rankingRow = strictObject({
|
|
@@ -7461,7 +7484,7 @@ var ranking = strictObject({
|
|
|
7461
7484
|
rows: array(rankingRow)
|
|
7462
7485
|
});
|
|
7463
7486
|
|
|
7464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
7465
7488
|
var reaction = strictObject({
|
|
7466
7489
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
7467
7490
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -7469,7 +7492,7 @@ var reaction = strictObject({
|
|
|
7469
7492
|
reacted_at: time
|
|
7470
7493
|
});
|
|
7471
7494
|
|
|
7472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
7473
7496
|
var reactionChange = strictObject({
|
|
7474
7497
|
operation_id: id,
|
|
7475
7498
|
chat_id: id,
|
|
@@ -7477,7 +7500,7 @@ var reactionChange = strictObject({
|
|
|
7477
7500
|
reaction: nullable(text)
|
|
7478
7501
|
});
|
|
7479
7502
|
|
|
7480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
7481
7504
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
7482
7505
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
7483
7506
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -7488,7 +7511,7 @@ var recipientChange = strictObject({
|
|
|
7488
7511
|
...partial(recipientOff).entries
|
|
7489
7512
|
});
|
|
7490
7513
|
|
|
7491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
7492
7515
|
var events = array(record(string(), unknown()));
|
|
7493
7516
|
var recordedRun = strictObject({
|
|
7494
7517
|
run_id: id,
|
|
@@ -7560,7 +7583,7 @@ var runHit = strictObject({
|
|
|
7560
7583
|
});
|
|
7561
7584
|
var runLocation = strictObject({ path: text });
|
|
7562
7585
|
|
|
7563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
7564
7587
|
var relationship = strictObject({
|
|
7565
7588
|
id,
|
|
7566
7589
|
from: reference,
|
|
@@ -7587,7 +7610,7 @@ var relationship = strictObject({
|
|
|
7587
7610
|
created_at: time
|
|
7588
7611
|
});
|
|
7589
7612
|
|
|
7590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
7591
7614
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
7592
7615
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
7593
7616
|
var responseTimes = strictObject({
|
|
@@ -7604,7 +7627,7 @@ var waitingChats = strictObject({
|
|
|
7604
7627
|
by_kind: strictObject({ private: count, group: count })
|
|
7605
7628
|
});
|
|
7606
7629
|
|
|
7607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
7608
7631
|
var retentionCohort = strictObject({
|
|
7609
7632
|
/** The first day of the joining day or week. */
|
|
7610
7633
|
cohort: text,
|
|
@@ -7652,7 +7675,7 @@ var retention = strictObject({
|
|
|
7652
7675
|
rows: array(retentionCohort)
|
|
7653
7676
|
});
|
|
7654
7677
|
|
|
7655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
7656
7679
|
var savedSearch = strictObject({
|
|
7657
7680
|
id,
|
|
7658
7681
|
/** `null` for a run in the history. */
|
|
@@ -7669,7 +7692,7 @@ var savedSearch = strictObject({
|
|
|
7669
7692
|
});
|
|
7670
7693
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
7671
7694
|
|
|
7672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
7673
7696
|
var sendAttempt = strictObject({
|
|
7674
7697
|
at: time,
|
|
7675
7698
|
profile: text,
|
|
@@ -7697,7 +7720,7 @@ var sendAttempt = strictObject({
|
|
|
7697
7720
|
error_code: optional(text)
|
|
7698
7721
|
});
|
|
7699
7722
|
|
|
7700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
7701
7724
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
7702
7725
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
7703
7726
|
var infoSchema = strictObject({
|
|
@@ -7927,7 +7950,7 @@ var storeRepair = union([
|
|
|
7927
7950
|
]);
|
|
7928
7951
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
7929
7952
|
|
|
7930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
7931
7954
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
7932
7955
|
var storeTable = strictObject({
|
|
7933
7956
|
name: text,
|
|
@@ -7936,7 +7959,7 @@ var storeTable = strictObject({
|
|
|
7936
7959
|
bytes: optional(nullable(count))
|
|
7937
7960
|
});
|
|
7938
7961
|
|
|
7939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
7940
7963
|
var tagTarget = variant("type", [
|
|
7941
7964
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
7942
7965
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -7967,7 +7990,7 @@ var automaticTags = strictObject({
|
|
|
7967
7990
|
dry_run: boolean()
|
|
7968
7991
|
});
|
|
7969
7992
|
|
|
7970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
7971
7994
|
var tagging = strictObject({
|
|
7972
7995
|
tag: text,
|
|
7973
7996
|
type: picklist(TAG_TYPES),
|
|
@@ -7980,7 +8003,7 @@ var tagging = strictObject({
|
|
|
7980
8003
|
created_at: time
|
|
7981
8004
|
});
|
|
7982
8005
|
|
|
7983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
7984
8007
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
7985
8008
|
var taskPair = strictObject({
|
|
7986
8009
|
task: nullable(side),
|
|
@@ -8003,7 +8026,7 @@ var taskPair = strictObject({
|
|
|
8003
8026
|
created_at: time
|
|
8004
8027
|
});
|
|
8005
8028
|
|
|
8006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
8007
8030
|
var nullableTime = nullable(time);
|
|
8008
8031
|
var link = strictObject({
|
|
8009
8032
|
id,
|
|
@@ -8177,7 +8200,7 @@ var taskReview = strictObject({
|
|
|
8177
8200
|
untrusted
|
|
8178
8201
|
});
|
|
8179
8202
|
|
|
8180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
8181
8204
|
var template = strictObject({
|
|
8182
8205
|
key: text,
|
|
8183
8206
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -8189,7 +8212,7 @@ var template = strictObject({
|
|
|
8189
8212
|
updated_by: nullable(text)
|
|
8190
8213
|
});
|
|
8191
8214
|
|
|
8192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
8193
8216
|
var topic = strictObject({
|
|
8194
8217
|
id,
|
|
8195
8218
|
title: text,
|
|
@@ -8203,7 +8226,7 @@ var topic = strictObject({
|
|
|
8203
8226
|
untrusted
|
|
8204
8227
|
});
|
|
8205
8228
|
|
|
8206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
8207
8230
|
var ENTITIES = {
|
|
8208
8231
|
sync_progress: progress,
|
|
8209
8232
|
deal,
|
|
@@ -8378,6 +8401,9 @@ var ENTITIES = {
|
|
|
8378
8401
|
meeting_link: meetingLink,
|
|
8379
8402
|
meeting_stats: meetingStats,
|
|
8380
8403
|
meeting_counts: meetingCounts,
|
|
8404
|
+
call_stats: callStats,
|
|
8405
|
+
meeting_tag_change: meetingTagChange,
|
|
8406
|
+
meeting_tagging: meetingTagging,
|
|
8381
8407
|
meeting_speaker: meetingSpeaker,
|
|
8382
8408
|
meeting_participants: meetingParticipants,
|
|
8383
8409
|
meeting_passage: meetingPassage,
|
|
@@ -8454,6 +8480,7 @@ var ENTITIES = {
|
|
|
8454
8480
|
chat_moderation: chatModeration,
|
|
8455
8481
|
"model.chosen": chosenModel,
|
|
8456
8482
|
model_key: modelKey,
|
|
8483
|
+
chat_sending: chatSending,
|
|
8457
8484
|
"model_key.stored": storedModelKey,
|
|
8458
8485
|
"model_key.removed": removedModelKey,
|
|
8459
8486
|
chat_event: chatEvent,
|
|
@@ -8498,7 +8525,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
8498
8525
|
return [name, definition];
|
|
8499
8526
|
})), "entityDefinitions");
|
|
8500
8527
|
|
|
8501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
8502
8529
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
8503
8530
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
8504
8531
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -8532,7 +8559,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
8532
8559
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
8533
8560
|
}, "answerRow");
|
|
8534
8561
|
|
|
8535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
8536
8563
|
var where = [{ field: "ref" }];
|
|
8537
8564
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
8538
8565
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -8624,7 +8651,7 @@ var STATUS_ROWS = {
|
|
|
8624
8651
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
8625
8652
|
};
|
|
8626
8653
|
|
|
8627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
8628
8655
|
var TEXT_CHARS = 400;
|
|
8629
8656
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
8630
8657
|
var messageRow = {
|
|
@@ -8992,7 +9019,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
8992
9019
|
return lines.concat(footerOf(body)).join("\n");
|
|
8993
9020
|
}, "compactText");
|
|
8994
9021
|
|
|
8995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
8996
9023
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
8997
9024
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
8998
9025
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -9030,7 +9057,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
9030
9057
|
progress: "sync.progress"
|
|
9031
9058
|
};
|
|
9032
9059
|
|
|
9033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
9034
9061
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
9035
9062
|
const recording = startRecording(options);
|
|
9036
9063
|
try {
|
|
@@ -9245,7 +9272,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
9245
9272
|
return void 0;
|
|
9246
9273
|
}, "partialOutcome");
|
|
9247
9274
|
|
|
9248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
9249
9276
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
9250
9277
|
var requests = new AsyncLocalStorage();
|
|
9251
9278
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -9260,7 +9287,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
9260
9287
|
return direct;
|
|
9261
9288
|
}, "exitCodeSet");
|
|
9262
9289
|
|
|
9263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
9264
9291
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
9265
9292
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
9266
9293
|
messageId: message2.id,
|
|
@@ -9366,7 +9393,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
9366
9393
|
}, "guardedWrite");
|
|
9367
9394
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
9368
9395
|
|
|
9369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
9370
9397
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
9371
9398
|
if (ms2 === void 0)
|
|
9372
9399
|
return body();
|
|
@@ -9392,7 +9419,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
9392
9419
|
}
|
|
9393
9420
|
}, "withDeadline");
|
|
9394
9421
|
|
|
9395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
9396
9423
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
9397
9424
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
9398
9425
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -9575,7 +9602,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
9575
9602
|
}
|
|
9576
9603
|
}, "withAbort");
|
|
9577
9604
|
|
|
9578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
9579
9606
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
9580
9607
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
9581
9608
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -9601,12 +9628,12 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
|
|
|
9601
9628
|
return top !== void 0 && !PROFILE_FREE.has(top.name());
|
|
9602
9629
|
}, "takesProfile");
|
|
9603
9630
|
var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
|
|
9604
|
-
var liftProfile = /* @__PURE__ */ __name((argv,
|
|
9631
|
+
var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
|
|
9605
9632
|
let at2 = 0;
|
|
9606
9633
|
while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
|
|
9607
9634
|
at2 += valued.has(argv[at2]) ? 2 : 1;
|
|
9608
9635
|
const first2 = argv[at2];
|
|
9609
|
-
if (first2 === void 0 || first2.startsWith("-") ||
|
|
9636
|
+
if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
|
|
9610
9637
|
return { rest: argv };
|
|
9611
9638
|
return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
|
|
9612
9639
|
}, "liftProfile");
|
|
@@ -9629,9 +9656,9 @@ var runGroup = /* @__PURE__ */ __name((app, env, word) => {
|
|
|
9629
9656
|
return { name: lock, from: LOCK, locked: true };
|
|
9630
9657
|
}, "runGroup");
|
|
9631
9658
|
var valuedOptions = /* @__PURE__ */ __name((program2) => new Set(program2.options.filter((option) => option.required).flatMap((option) => [option.long, option.short].filter((flag2) => flag2 !== void 0))), "valuedOptions");
|
|
9632
|
-
var refuseCommandName = /* @__PURE__ */ __name((profile,
|
|
9633
|
-
if (
|
|
9634
|
-
throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...
|
|
9659
|
+
var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
|
|
9660
|
+
if (words.has(profile)) {
|
|
9661
|
+
throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words].sort().join(", "));
|
|
9635
9662
|
}
|
|
9636
9663
|
}, "refuseCommandName");
|
|
9637
9664
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
@@ -9662,82 +9689,13 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
9662
9689
|
return void 0;
|
|
9663
9690
|
}, "sampleCommand");
|
|
9664
9691
|
|
|
9665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9666
|
-
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
9667
|
-
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
9668
|
-
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
9669
|
-
model: optional(pipe(string(), trim(), minLength(1), maxLength(200))),
|
|
9670
|
-
base_url: optional(pipe(string(), check((value) => endpoint(value), "use an HTTP/S endpoint without credentials, query or fragment")))
|
|
9671
|
-
}));
|
|
9672
|
-
var resolveModelSettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
9673
|
-
const configured = layers.map(([from, scope]) => [from, scope?.models ?? {}]);
|
|
9674
|
-
const purposes = /* @__PURE__ */ new Set([
|
|
9675
|
-
"default",
|
|
9676
|
-
"analysis",
|
|
9677
|
-
"replies",
|
|
9678
|
-
...configured.flatMap(([, models2]) => Object.keys(models2))
|
|
9679
|
-
]);
|
|
9680
|
-
for (const name of Object.keys(env)) {
|
|
9681
|
-
const match = new RegExp(`^${prefix}_MODELS_([A-Z][A-Z0-9_]*)_(PROVIDER|MODEL|BASE_URL)$`).exec(name);
|
|
9682
|
-
if (match?.[1])
|
|
9683
|
-
purposes.add(match[1].toLowerCase().replaceAll("_", "-"));
|
|
9684
|
-
}
|
|
9685
|
-
const models = {};
|
|
9686
|
-
const sources = {};
|
|
9687
|
-
for (const purpose of purposes) {
|
|
9688
|
-
const resolved = {};
|
|
9689
|
-
for (const field of MODEL_FIELDS) {
|
|
9690
|
-
const variable = `${prefix}_MODELS_${purpose.replaceAll("-", "_").toUpperCase()}_${field.toUpperCase()}`;
|
|
9691
|
-
const candidates = [
|
|
9692
|
-
[variable, env[variable]?.trim() || void 0],
|
|
9693
|
-
...configured.map(([from, model3]) => [
|
|
9694
|
-
`${from}: models.${purpose}.${field}`,
|
|
9695
|
-
model3[purpose]?.[field]
|
|
9696
|
-
]),
|
|
9697
|
-
...purpose === "default" ? [] : [
|
|
9698
|
-
[
|
|
9699
|
-
`${prefix}_MODELS_DEFAULT_${field.toUpperCase()}`,
|
|
9700
|
-
env[`${prefix}_MODELS_DEFAULT_${field.toUpperCase()}`]?.trim() || void 0
|
|
9701
|
-
],
|
|
9702
|
-
...configured.map(([from, model3]) => [
|
|
9703
|
-
`${from}: models.default.${field}`,
|
|
9704
|
-
model3.default?.[field]
|
|
9705
|
-
])
|
|
9706
|
-
]
|
|
9707
|
-
];
|
|
9708
|
-
const selected = candidates.find(([, value]) => value !== void 0);
|
|
9709
|
-
if (selected)
|
|
9710
|
-
resolved[field] = selected[1];
|
|
9711
|
-
sources[`models.${purpose}.${field}`] = selected?.[0] ?? "default";
|
|
9712
|
-
}
|
|
9713
|
-
if (Object.keys(resolved).length)
|
|
9714
|
-
models[purpose] = resolved;
|
|
9715
|
-
}
|
|
9716
|
-
const checked = safeParse(modelSettingsShape, models);
|
|
9717
|
-
if (!checked.success)
|
|
9718
|
-
throw new CliError("configuration_error", `models.${getDotPath(checked.issues[0]) ?? "settings"} is invalid`);
|
|
9719
|
-
return { models: checked.output, sources };
|
|
9720
|
-
}, "resolveModelSettings");
|
|
9721
|
-
var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
9722
|
-
const configured = { ...settings.models?.default, ...settings.models?.[purpose] };
|
|
9723
|
-
if (configured.provider === void 0 || configured.provider === "off")
|
|
9724
|
-
return void 0;
|
|
9725
|
-
if (!configured.model)
|
|
9726
|
-
throw new CliError("configuration_error", `set models.${purpose}.model before calling its provider`);
|
|
9727
|
-
return {
|
|
9728
|
-
provider: configured.provider,
|
|
9729
|
-
model: configured.model,
|
|
9730
|
-
...configured.base_url === void 0 ? {} : { baseUrl: configured.base_url }
|
|
9731
|
-
};
|
|
9732
|
-
}, "modelTarget");
|
|
9733
|
-
|
|
9734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
9692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
9735
9693
|
var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
9736
|
-
var
|
|
9694
|
+
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
9737
9695
|
var AI_FIELDS = {
|
|
9738
9696
|
embeddingProvider: optional(picklist(["local", "openai"])),
|
|
9739
9697
|
embeddingModel: optional(model2),
|
|
9740
|
-
embeddingBaseUrl: optional(
|
|
9698
|
+
embeddingBaseUrl: optional(url),
|
|
9741
9699
|
embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
|
|
9742
9700
|
models: optional(modelSettingsShape)
|
|
9743
9701
|
};
|
|
@@ -9775,7 +9733,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
9775
9733
|
};
|
|
9776
9734
|
}, "resolveAISettings");
|
|
9777
9735
|
|
|
9778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
9779
9737
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
9780
9738
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
9781
9739
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -9789,296 +9747,19 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
9789
9747
|
return ms2;
|
|
9790
9748
|
}, "parseDuration");
|
|
9791
9749
|
|
|
9792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9793
|
-
import { existsSync as existsSync3 } from "node:fs";
|
|
9750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
9751
|
+
import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
9794
9752
|
import { join as join3 } from "node:path";
|
|
9795
|
-
var
|
|
9796
|
-
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
9797
|
-
var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
|
|
9798
|
-
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
9799
|
-
var TEXT_MODELS = [
|
|
9800
|
-
{
|
|
9801
|
-
id: "e5-small",
|
|
9802
|
-
title: "multilingual-e5-small, 8-bit",
|
|
9803
|
-
size: "small",
|
|
9804
|
-
languages: "about 100 languages, Russian and English among them",
|
|
9805
|
-
licence: "MIT",
|
|
9806
|
-
dims: 384,
|
|
9807
|
-
maxTokens: 512,
|
|
9808
|
-
// 100k-message corpus, one 8-thread session on Ryzen AI 9 HX 470: 31–32 chunks/s.
|
|
9809
|
-
chunksPerSecond: 31,
|
|
9810
|
-
pooling: "mean",
|
|
9811
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
9812
|
-
onnx: "onnx/model_quantized.onnx",
|
|
9813
|
-
files: [
|
|
9814
|
-
{
|
|
9815
|
-
name: "onnx/model_quantized.onnx",
|
|
9816
|
-
url: e5("onnx/model_quantized.onnx"),
|
|
9817
|
-
sha256: "f80102d3f2a1229f387d3c81909990d8945513e347b0eab049f7de3c6f98c193",
|
|
9818
|
-
bytes: 118308185
|
|
9819
|
-
},
|
|
9820
|
-
{
|
|
9821
|
-
name: "tokenizer.json",
|
|
9822
|
-
url: e5("tokenizer.json"),
|
|
9823
|
-
sha256: "0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39",
|
|
9824
|
-
bytes: 17082730
|
|
9825
|
-
},
|
|
9826
|
-
{
|
|
9827
|
-
name: "tokenizer_config.json",
|
|
9828
|
-
url: e5("tokenizer_config.json"),
|
|
9829
|
-
sha256: "a1d6bc8734a6f635dc158508bef000f8e2e5a759c7d92f984b2c86e5ff53425b",
|
|
9830
|
-
bytes: 443
|
|
9831
|
-
}
|
|
9832
|
-
]
|
|
9833
|
-
},
|
|
9834
|
-
{
|
|
9835
|
-
id: "embeddinggemma",
|
|
9836
|
-
title: "EmbeddingGemma 300M, 4-bit",
|
|
9837
|
-
size: "medium",
|
|
9838
|
-
languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
|
|
9839
|
-
licence: "Gemma Terms of Use",
|
|
9840
|
-
terms: "https://ai.google.dev/gemma/terms",
|
|
9841
|
-
// Gemma Terms of Use §3.1: every copy carries this notice and the use restrictions of §3.2.
|
|
9842
|
-
notice: "Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. Its use is restricted by the Gemma Prohibited Use Policy: https://ai.google.dev/gemma/prohibited_use_policy",
|
|
9843
|
-
dims: 768,
|
|
9844
|
-
maxTokens: 2048,
|
|
9845
|
-
// 2026-11-08, 1,200-character chunks, 8 threads on the Ryzen AI 9 HX 470: 8.3 chunks/s against e5-small's 52.7, so
|
|
9846
|
-
// 5 on the scale e5-small's 31 sets. It was 2, which held a memo sync to 39 chunks.
|
|
9847
|
-
chunksPerSecond: 5,
|
|
9848
|
-
pooling: "sentence_embedding",
|
|
9849
|
-
prefix: { query: "task: search result | query: ", passage: "title: none | text: " },
|
|
9850
|
-
onnx: "onnx/model_q4.onnx",
|
|
9851
|
-
externalData: "onnx/model_q4.onnx_data",
|
|
9852
|
-
files: [
|
|
9853
|
-
{
|
|
9854
|
-
name: "onnx/model_q4.onnx",
|
|
9855
|
-
url: gemma("onnx/model_q4.onnx"),
|
|
9856
|
-
sha256: "ad1dfee81a70f7944b9b9d1cc6e48075b832881cf33fab2f2b248be78f3f0043",
|
|
9857
|
-
bytes: 519322
|
|
9858
|
-
},
|
|
9859
|
-
{
|
|
9860
|
-
name: "onnx/model_q4.onnx_data",
|
|
9861
|
-
url: gemma("onnx/model_q4.onnx_data"),
|
|
9862
|
-
sha256: "599962c3143b040de2dd05e5975be3e9091dd067cacc6a8f7186e3203bab9e02",
|
|
9863
|
-
bytes: 196725760
|
|
9864
|
-
},
|
|
9865
|
-
{
|
|
9866
|
-
name: "tokenizer.json",
|
|
9867
|
-
url: gemma("tokenizer.json"),
|
|
9868
|
-
sha256: "4dda02faaf32bc91031dc8c88457ac272b00c1016cc679757d1c441b248b9c47",
|
|
9869
|
-
bytes: 20323312
|
|
9870
|
-
},
|
|
9871
|
-
{
|
|
9872
|
-
name: "tokenizer_config.json",
|
|
9873
|
-
url: gemma("tokenizer_config.json"),
|
|
9874
|
-
sha256: "3ca953eea6c3c9fcda9cf3df22949ff18b216f7c74bd6459230f3f1013953f3a",
|
|
9875
|
-
bytes: 1156830
|
|
9876
|
-
}
|
|
9877
|
-
]
|
|
9878
|
-
},
|
|
9879
|
-
{
|
|
9880
|
-
id: "e5-large",
|
|
9881
|
-
title: "multilingual-e5-large, 8-bit",
|
|
9882
|
-
size: "large",
|
|
9883
|
-
languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
|
|
9884
|
-
licence: "MIT",
|
|
9885
|
-
dims: 1024,
|
|
9886
|
-
maxTokens: 512,
|
|
9887
|
-
// 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
|
|
9888
|
-
chunksPerSecond: 4,
|
|
9889
|
-
pooling: "mean",
|
|
9890
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
9891
|
-
onnx: "onnx/model_quantized.onnx",
|
|
9892
|
-
files: [
|
|
9893
|
-
{
|
|
9894
|
-
name: "onnx/model_quantized.onnx",
|
|
9895
|
-
url: e5Large("onnx/model_quantized.onnx"),
|
|
9896
|
-
sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
|
|
9897
|
-
bytes: 561768762
|
|
9898
|
-
},
|
|
9899
|
-
{
|
|
9900
|
-
name: "tokenizer.json",
|
|
9901
|
-
url: e5Large("tokenizer.json"),
|
|
9902
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
9903
|
-
bytes: 17082660
|
|
9904
|
-
},
|
|
9905
|
-
{
|
|
9906
|
-
name: "tokenizer_config.json",
|
|
9907
|
-
url: e5Large("tokenizer_config.json"),
|
|
9908
|
-
sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
|
|
9909
|
-
bytes: 418
|
|
9910
|
-
}
|
|
9911
|
-
]
|
|
9912
|
-
}
|
|
9913
|
-
];
|
|
9914
|
-
var DEFAULT_TEXT_MODEL = "embeddinggemma";
|
|
9915
|
-
var PREVIOUS_DEFAULT_TEXT_MODEL = "e5-small";
|
|
9916
|
-
var SECTION = "text_models";
|
|
9917
|
-
var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
|
|
9918
|
-
var words = pipe(string(), trim(), minLength(1), maxLength(300));
|
|
9919
|
-
var fileName = pipe(string(), check((name) => /^[\w.-]+(\/[\w.-]+)*$/.test(name) && !name.split("/").some((part) => part === ".." || part === "."), "is not a file inside the model's folder"));
|
|
9920
|
-
var modelFile = strictObject({
|
|
9921
|
-
name: fileName,
|
|
9922
|
-
url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
|
|
9923
|
-
sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
|
|
9924
|
-
bytes: pipe(number(), integer(), minValue(1))
|
|
9925
|
-
});
|
|
9926
|
-
var CustomTextModelShape = pipe(strictObject({
|
|
9927
|
-
id: slug,
|
|
9928
|
-
title: words,
|
|
9929
|
-
languages: words,
|
|
9930
|
-
licence: words,
|
|
9931
|
-
terms: optional(pipe(string(), url())),
|
|
9932
|
-
dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
|
|
9933
|
-
maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
|
|
9934
|
-
chunksPerSecond: optional(pipe(number(), minValue(0.01))),
|
|
9935
|
-
pooling: picklist(["mean", "sentence_embedding"]),
|
|
9936
|
-
prefix: strictObject({
|
|
9937
|
-
query: pipe(string(), maxLength(200)),
|
|
9938
|
-
passage: pipe(string(), maxLength(200))
|
|
9939
|
-
}),
|
|
9940
|
-
onnx: fileName,
|
|
9941
|
-
externalData: optional(fileName),
|
|
9942
|
-
files: pipe(array(modelFile), minLength(1), maxLength(16))
|
|
9943
|
-
}), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
|
|
9944
|
-
const names = model3.files.map(({ name }) => name);
|
|
9945
|
-
return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
|
|
9946
|
-
}, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
|
|
9947
|
-
var TextModelsSection = strictObject({
|
|
9948
|
-
use: optional(slug),
|
|
9949
|
-
custom: optional(array(CustomTextModelShape))
|
|
9950
|
-
});
|
|
9951
|
-
var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
|
|
9952
|
-
var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
|
|
9953
|
-
const path2 = textModelsFile(env);
|
|
9954
|
-
const section2 = readSharedSection(path2, SECTION);
|
|
9955
|
-
if (section2 === void 0)
|
|
9956
|
-
return {};
|
|
9957
|
-
const checked = safeParse(TextModelsSection, section2);
|
|
9958
|
-
if (!checked.success) {
|
|
9959
|
-
const issue = checked.issues[0];
|
|
9960
|
-
const at2 = issue ? getDotPath(issue) : null;
|
|
9961
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
|
|
9962
|
-
}
|
|
9963
|
-
const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
|
|
9964
|
-
const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
|
|
9965
|
-
if (twice)
|
|
9966
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
|
|
9967
|
-
return checked.output;
|
|
9968
|
-
}, "readTextModelsSection");
|
|
9969
|
-
var writeTextModelsSection = /* @__PURE__ */ __name((section2, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section2.use === void 0 && !section2.custom?.length ? void 0 : section2), "writeTextModelsSection");
|
|
9970
|
-
var textModels = /* @__PURE__ */ __name((env = process.env) => [
|
|
9971
|
-
...TEXT_MODELS,
|
|
9972
|
-
...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
|
|
9973
|
-
], "textModels");
|
|
9974
|
-
var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
|
|
9975
|
-
const known = textModels(env);
|
|
9976
|
-
const found = known.find((model3) => model3.id === id6);
|
|
9977
|
-
if (!found) {
|
|
9978
|
-
throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
|
|
9979
|
-
}
|
|
9980
|
-
return found;
|
|
9981
|
-
}, "textModel");
|
|
9982
|
-
var downloaded = /* @__PURE__ */ __name((id6, env) => {
|
|
9983
|
-
const model3 = TEXT_MODELS.find((one) => one.id === id6);
|
|
9984
|
-
const directory = sharedModelsDirectory("text", env);
|
|
9985
|
-
return model3 !== void 0 && filesPresent(model3.files.map((file) => [file, join3(directory, model3.id, file.name)]));
|
|
9986
|
-
}, "downloaded");
|
|
9987
|
-
var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
|
|
9988
|
-
const use = readTextModelsSection(env).use;
|
|
9989
|
-
if (use !== void 0)
|
|
9990
|
-
return { id: use, from: "chosen" };
|
|
9991
|
-
const kept = !downloaded(DEFAULT_TEXT_MODEL, env) && existsSync3(join3(sharedModelsDirectory("text", env), PREVIOUS_DEFAULT_TEXT_MODEL));
|
|
9992
|
-
return { id: kept ? PREVIOUS_DEFAULT_TEXT_MODEL : DEFAULT_TEXT_MODEL, from: "default" };
|
|
9993
|
-
}, "chosenTextModel");
|
|
9994
|
-
var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
|
|
9995
|
-
var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
|
|
9996
|
-
var RERANK_MODELS = [
|
|
9997
|
-
{
|
|
9998
|
-
id: "mmarco",
|
|
9999
|
-
title: "mMARCO mMiniLMv2-L12 cross-encoder, 8-bit",
|
|
10000
|
-
languages: "about 100 languages, Russian and English among them",
|
|
10001
|
-
licence: "Apache-2.0",
|
|
10002
|
-
maxTokens: 512,
|
|
10003
|
-
// The x86 name is the quantizer's target; WebAssembly and native ONNX Runtime both run it on any processor.
|
|
10004
|
-
onnx: "onnx/model_quint8_avx2.onnx",
|
|
10005
|
-
files: [
|
|
10006
|
-
{
|
|
10007
|
-
name: "onnx/model_quint8_avx2.onnx",
|
|
10008
|
-
url: mmarco("onnx/model_quint8_avx2.onnx"),
|
|
10009
|
-
sha256: "6c2513767fb63d008a4377bef7a7a3555433d9436342bb53e35a3a72ffc52d4b",
|
|
10010
|
-
bytes: 118620016
|
|
10011
|
-
},
|
|
10012
|
-
{
|
|
10013
|
-
name: "tokenizer.json",
|
|
10014
|
-
url: mmarco("tokenizer.json"),
|
|
10015
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
10016
|
-
bytes: 17082660
|
|
10017
|
-
},
|
|
10018
|
-
{
|
|
10019
|
-
name: "tokenizer_config.json",
|
|
10020
|
-
url: mmarco("tokenizer_config.json"),
|
|
10021
|
-
sha256: "e7fbfbfa6347b4e414c1cee50d142e2c2f9a895dad68b068ae83a8b564c3837e",
|
|
10022
|
-
bytes: 435
|
|
10023
|
-
}
|
|
10024
|
-
]
|
|
10025
|
-
},
|
|
10026
|
-
{
|
|
10027
|
-
id: "bge-reranker-v2-m3",
|
|
10028
|
-
title: "BGE reranker v2 m3, 8-bit",
|
|
10029
|
-
languages: "over 100 languages \u2014 better than mmarco in the benchmark, about seven times slower",
|
|
10030
|
-
licence: "Apache-2.0 (BAAI's; the ONNX export declares none)",
|
|
10031
|
-
maxTokens: 512,
|
|
10032
|
-
onnx: "onnx/model_quantized.onnx",
|
|
10033
|
-
files: [
|
|
10034
|
-
{
|
|
10035
|
-
name: "onnx/model_quantized.onnx",
|
|
10036
|
-
url: bge("onnx/model_quantized.onnx"),
|
|
10037
|
-
sha256: "912fc1215c2dbff6499700534bd8d31253af01573861abbfc43afd1fab6cce5d",
|
|
10038
|
-
bytes: 570727094
|
|
10039
|
-
},
|
|
10040
|
-
{
|
|
10041
|
-
name: "tokenizer.json",
|
|
10042
|
-
url: bge("tokenizer.json"),
|
|
10043
|
-
sha256: "8bf8afbfd11306bd872018c53bfdf2e160a56f8edbcf49933324404791c148d3",
|
|
10044
|
-
bytes: 17082900
|
|
10045
|
-
},
|
|
10046
|
-
{
|
|
10047
|
-
name: "tokenizer_config.json",
|
|
10048
|
-
url: bge("tokenizer_config.json"),
|
|
10049
|
-
sha256: "b87c8703482b0300d3da30e201519aa641f6a450f5eb5bf1e624afbf70c74d80",
|
|
10050
|
-
bytes: 1203
|
|
10051
|
-
}
|
|
10052
|
-
]
|
|
10053
|
-
}
|
|
10054
|
-
];
|
|
10055
|
-
var DEFAULT_RERANK_MODEL = "mmarco";
|
|
10056
|
-
var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
10057
|
-
const found = RERANK_MODELS.find((model3) => model3.id === id6);
|
|
10058
|
-
if (!found) {
|
|
10059
|
-
throw new CliError("validation_error", `no reranker ${id6} \u2014 one of: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`);
|
|
10060
|
-
}
|
|
10061
|
-
return found;
|
|
10062
|
-
}, "rerankModel");
|
|
10063
|
-
var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
10064
|
-
const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
|
|
10065
|
-
return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
|
|
10066
|
-
}, "vectorModelKey");
|
|
10067
|
-
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
10068
|
-
|
|
10069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
10070
|
-
import { existsSync as existsSync4, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
10071
|
-
import { join as join4 } from "node:path";
|
|
10072
|
-
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
9753
|
+
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
10073
9754
|
var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
|
|
10074
9755
|
const directory = botsDirectory(app, env);
|
|
10075
9756
|
return {
|
|
10076
|
-
registry:
|
|
10077
|
-
recipients:
|
|
10078
|
-
journal:
|
|
10079
|
-
updates:
|
|
10080
|
-
presses:
|
|
10081
|
-
checks:
|
|
9757
|
+
registry: join3(directory, `${profile}.json`),
|
|
9758
|
+
recipients: join3(directory, "recipients", `${profile}.json`),
|
|
9759
|
+
journal: join3(directory, "sends", `${profile}.jsonl`),
|
|
9760
|
+
updates: join3(directory, "updates", `${profile}.json`),
|
|
9761
|
+
presses: join3(directory, "presses", `${profile}.json`),
|
|
9762
|
+
checks: join3(directory, "checks", `${profile}.json`)
|
|
10082
9763
|
};
|
|
10083
9764
|
}, "botFiles");
|
|
10084
9765
|
var ChatRegistry = class {
|
|
@@ -10105,7 +9786,7 @@ var ChatRegistry = class {
|
|
|
10105
9786
|
}
|
|
10106
9787
|
/** Makes this bot known to `bot list` before it has seen any chat. */
|
|
10107
9788
|
touch() {
|
|
10108
|
-
if (!
|
|
9789
|
+
if (!existsSync3(this.#path))
|
|
10109
9790
|
writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
|
|
10110
9791
|
`, 384);
|
|
10111
9792
|
}
|
|
@@ -10134,7 +9815,7 @@ var ChatRegistry = class {
|
|
|
10134
9815
|
this.#write({ ...this.#read(), chats: [...byId.values()] });
|
|
10135
9816
|
}
|
|
10136
9817
|
#read() {
|
|
10137
|
-
if (!
|
|
9818
|
+
if (!existsSync3(this.#path))
|
|
10138
9819
|
return {};
|
|
10139
9820
|
try {
|
|
10140
9821
|
const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
|
|
@@ -10150,12 +9831,12 @@ var ChatRegistry = class {
|
|
|
10150
9831
|
};
|
|
10151
9832
|
var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
10152
9833
|
const directory = botsDirectory(app, env);
|
|
10153
|
-
if (!
|
|
9834
|
+
if (!existsSync3(directory))
|
|
10154
9835
|
return [];
|
|
10155
9836
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
10156
9837
|
}, "registryProfiles");
|
|
10157
9838
|
|
|
10158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
10159
9840
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
10160
9841
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10161
9842
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -10451,20 +10132,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
10451
10132
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
10452
10133
|
}, "readConfigFile");
|
|
10453
10134
|
|
|
10454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10455
|
-
import { existsSync as
|
|
10456
|
-
import { dirname as dirname2, join as
|
|
10135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
10136
|
+
import { existsSync as existsSync4, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync3, writeFileSync } from "node:fs";
|
|
10137
|
+
import { dirname as dirname2, join as join4 } from "node:path";
|
|
10457
10138
|
var DEFAULT_CONFIG = {
|
|
10458
10139
|
defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
|
|
10459
10140
|
profiles: {}
|
|
10460
10141
|
};
|
|
10461
10142
|
function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
10462
|
-
if (
|
|
10143
|
+
if (existsSync4(path2))
|
|
10463
10144
|
return;
|
|
10464
10145
|
const directory = dirname2(path2);
|
|
10465
10146
|
mkdirSync2(directory, { recursive: true, mode: 448 });
|
|
10466
|
-
const temporary = mkdtempSync(
|
|
10467
|
-
const candidate =
|
|
10147
|
+
const temporary = mkdtempSync(join4(directory, ".config-"));
|
|
10148
|
+
const candidate = join4(temporary, "config.json");
|
|
10468
10149
|
try {
|
|
10469
10150
|
writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
|
|
10470
10151
|
`, { flag: "wx", mode: 384 });
|
|
@@ -10480,10 +10161,10 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
10480
10161
|
}
|
|
10481
10162
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
10482
10163
|
|
|
10483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10484
|
-
import { existsSync as
|
|
10485
|
-
import { join as
|
|
10486
|
-
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) =>
|
|
10164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
10165
|
+
import { existsSync as existsSync5, readdirSync as readdirSync3, readFileSync as readFileSync5 } from "node:fs";
|
|
10166
|
+
import { join as join5 } from "node:path";
|
|
10167
|
+
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
10487
10168
|
var rememberAccount = /* @__PURE__ */ __name((app, profile, id6, env) => writeSecurely(accountFileFor(app, profile, env), `${JSON.stringify({ account: id6 })}
|
|
10488
10169
|
`, 384), "rememberAccount");
|
|
10489
10170
|
var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
|
|
@@ -10495,14 +10176,14 @@ var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
|
|
|
10495
10176
|
}
|
|
10496
10177
|
}, "recalledAccount");
|
|
10497
10178
|
var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
10498
|
-
const dir =
|
|
10499
|
-
if (!
|
|
10179
|
+
const dir = join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts");
|
|
10180
|
+
if (!existsSync5(dir))
|
|
10500
10181
|
return [];
|
|
10501
10182
|
return readdirSync3(dir).filter((name) => name.endsWith(".json")).map((name) => name.slice(0, -".json".length));
|
|
10502
10183
|
}, "profilesWithAccounts");
|
|
10503
10184
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
10504
10185
|
|
|
10505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
10506
10187
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10507
10188
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
10508
10189
|
const path2 = key.split(".");
|
|
@@ -10535,10 +10216,10 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
|
|
|
10535
10216
|
};
|
|
10536
10217
|
}), "settingRows");
|
|
10537
10218
|
|
|
10538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10539
|
-
import { existsSync as
|
|
10219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
10220
|
+
import { existsSync as existsSync6 } from "node:fs";
|
|
10540
10221
|
|
|
10541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
10542
10223
|
var HISTORY_MAX_DAYS = 1095;
|
|
10543
10224
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
10544
10225
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -10585,7 +10266,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
10585
10266
|
return { batch: { ...batch, messages }, skipped };
|
|
10586
10267
|
}, "limitBatch");
|
|
10587
10268
|
|
|
10588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
10589
10270
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
10590
10271
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
10591
10272
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -10738,8 +10419,8 @@ var NoProfileHere = class extends CliError {
|
|
|
10738
10419
|
this.app = app;
|
|
10739
10420
|
}
|
|
10740
10421
|
/** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
|
|
10741
|
-
withoutSetup(
|
|
10742
|
-
const command =
|
|
10422
|
+
withoutSetup(words) {
|
|
10423
|
+
const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
|
|
10743
10424
|
return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { profiles: [] });
|
|
10744
10425
|
}
|
|
10745
10426
|
};
|
|
@@ -10947,7 +10628,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
10947
10628
|
updateCheck: updateCheck.value,
|
|
10948
10629
|
skillHint: skillHint.value,
|
|
10949
10630
|
configPath,
|
|
10950
|
-
configFound:
|
|
10631
|
+
configFound: existsSync6(configPath),
|
|
10951
10632
|
configuredProfiles: namedProfiles(config),
|
|
10952
10633
|
profilesHere: profilesOf(config, env),
|
|
10953
10634
|
accountProfiles: accountsOf(config, env, bots),
|
|
@@ -11111,7 +10792,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
11111
10792
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
11112
10793
|
}, "given");
|
|
11113
10794
|
|
|
11114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
11115
10796
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
11116
10797
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
11117
10798
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -11154,7 +10835,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
11154
10835
|
};
|
|
11155
10836
|
}, "runBudget");
|
|
11156
10837
|
|
|
11157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
11158
10839
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
|
|
11159
10840
|
const { deadline, signal, app } = environmentOf(command);
|
|
11160
10841
|
const now = deadline?.();
|
|
@@ -11194,11 +10875,17 @@ var detailOf = /* @__PURE__ */ __name(({ brief, full }) => {
|
|
|
11194
10875
|
return brief ? { hitDetail: "brief" } : full ? { hitDetail: "full" } : {};
|
|
11195
10876
|
}, "detailOf");
|
|
11196
10877
|
var COMPACT_KEY = new Option(COMPACT_FLAG).attributeName();
|
|
10878
|
+
var outputFieldsOf = /* @__PURE__ */ __name((command) => {
|
|
10879
|
+
const fields = rootOf(command).getOptionValue("fields");
|
|
10880
|
+
return typeof fields === "string" ? { fields } : {};
|
|
10881
|
+
}, "outputFieldsOf");
|
|
11197
10882
|
var compactOf = /* @__PURE__ */ __name((command) => command.optsWithGlobals()[COMPACT_KEY] === true, "compactOf");
|
|
11198
10883
|
var outputFor = /* @__PURE__ */ __name((command) => {
|
|
11199
10884
|
const { streams, tty, env, agent } = environmentOf(command);
|
|
10885
|
+
const { fields: _own, ...flags } = command.optsWithGlobals();
|
|
11200
10886
|
return resolveOutput({
|
|
11201
|
-
...
|
|
10887
|
+
...flags,
|
|
10888
|
+
...outputFieldsOf(command),
|
|
11202
10889
|
...detailOf(command.optsWithGlobals()),
|
|
11203
10890
|
compact: compactOf(command),
|
|
11204
10891
|
...agent ? { capture: agent.result } : {},
|
|
@@ -11216,7 +10903,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
11216
10903
|
env,
|
|
11217
10904
|
compact: compactOf(command),
|
|
11218
10905
|
...detailOf(command.optsWithGlobals()),
|
|
11219
|
-
...
|
|
10906
|
+
...outputFieldsOf(command),
|
|
11220
10907
|
...environment.agent ? { capture: environment.agent.result } : {},
|
|
11221
10908
|
...environment.streams ? { streams: environment.streams } : {},
|
|
11222
10909
|
...environment.tty === void 0 ? {} : { tty: environment.tty }
|
|
@@ -11288,13 +10975,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
|
11288
10975
|
return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
|
|
11289
10976
|
}, "inCommandRun");
|
|
11290
10977
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
11291
|
-
const
|
|
10978
|
+
const words = [];
|
|
11292
10979
|
for (let current2 = command; current2?.parent; current2 = current2.parent)
|
|
11293
|
-
|
|
11294
|
-
return
|
|
10980
|
+
words.unshift(current2.name());
|
|
10981
|
+
return words.join(" ");
|
|
11295
10982
|
}, "commandPath");
|
|
11296
10983
|
|
|
11297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
11298
10985
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
11299
10986
|
var FETCH = { remote: "read", local: "write" };
|
|
11300
10987
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -11409,10 +11096,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
|
|
|
11409
11096
|
throw readOnlyRefusal(lock, storeChangeRefusal(app));
|
|
11410
11097
|
}, "refuseStoreChange");
|
|
11411
11098
|
var pathOf2 = /* @__PURE__ */ __name((command) => {
|
|
11412
|
-
const
|
|
11099
|
+
const words = [];
|
|
11413
11100
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
11414
|
-
|
|
11415
|
-
return
|
|
11101
|
+
words.unshift(at2.name());
|
|
11102
|
+
return words;
|
|
11416
11103
|
}, "pathOf");
|
|
11417
11104
|
var changesMessenger = /* @__PURE__ */ __name((command) => {
|
|
11418
11105
|
const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
|
|
@@ -11446,8 +11133,8 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
11446
11133
|
throw readOnlyRefusal(lock, what);
|
|
11447
11134
|
}, "refuseUnderReadOnly");
|
|
11448
11135
|
|
|
11449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11450
|
-
import { join as
|
|
11136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11137
|
+
import { join as join6 } from "node:path";
|
|
11451
11138
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11452
11139
|
var IMAGE_MODELS = [
|
|
11453
11140
|
{
|
|
@@ -11497,10 +11184,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
|
|
|
11497
11184
|
return found;
|
|
11498
11185
|
}, "imageModel");
|
|
11499
11186
|
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
11500
|
-
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file,
|
|
11187
|
+
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11501
11188
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11502
11189
|
|
|
11503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11504
11191
|
var STEPS2 = defineSteps([
|
|
11505
11192
|
...STEPS,
|
|
11506
11193
|
{
|
|
@@ -11737,10 +11424,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
|
11737
11424
|
const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
|
|
11738
11425
|
return stepOf(definition, { ...input, args });
|
|
11739
11426
|
}, "nextStep");
|
|
11740
|
-
var lineOf = /* @__PURE__ */ __name((command,
|
|
11427
|
+
var lineOf = /* @__PURE__ */ __name((command, words) => {
|
|
11741
11428
|
const root = rootOf2(command);
|
|
11742
11429
|
const profile = root.getOptionValue("profile");
|
|
11743
|
-
return typedCommand(root.name(),
|
|
11430
|
+
return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
|
|
11744
11431
|
}, "lineOf");
|
|
11745
11432
|
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
11746
11433
|
let root = command;
|
|
@@ -11790,7 +11477,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11790
11477
|
].join(" ");
|
|
11791
11478
|
}, "stepLine");
|
|
11792
11479
|
|
|
11793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11794
11481
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11795
11482
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11796
11483
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11816,10 +11503,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
|
|
|
11816
11503
|
return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
|
|
11817
11504
|
}, "declaresRow");
|
|
11818
11505
|
var pathOf3 = /* @__PURE__ */ __name((command) => {
|
|
11819
|
-
const
|
|
11506
|
+
const words = [];
|
|
11820
11507
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
11821
|
-
|
|
11822
|
-
return
|
|
11508
|
+
words.unshift(at2.name());
|
|
11509
|
+
return words.join(" ");
|
|
11823
11510
|
}, "pathOf");
|
|
11824
11511
|
var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
|
|
11825
11512
|
kind: "command",
|
|
@@ -11848,7 +11535,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11848
11535
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11849
11536
|
}, "largeAnswerSteps");
|
|
11850
11537
|
|
|
11851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11852
11539
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11853
11540
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11854
11541
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11862,7 +11549,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11862
11549
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11863
11550
|
}, "strip");
|
|
11864
11551
|
|
|
11865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
11866
11553
|
var OPEN = "\u27E6";
|
|
11867
11554
|
var CLOSE = "\u27E7";
|
|
11868
11555
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -11946,7 +11633,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
11946
11633
|
return result;
|
|
11947
11634
|
}, "withFieldsMarked");
|
|
11948
11635
|
|
|
11949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11950
11637
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11951
11638
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11952
11639
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12052,9 +11739,27 @@ var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
|
|
|
12052
11739
|
}, "withLargeAnswerStep");
|
|
12053
11740
|
var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body : { items: [body.item], page: { mode: "page", limit: 1, has_more: false }, meta: body.meta }), "linesOf");
|
|
12054
11741
|
var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
|
|
11742
|
+
var listZone = /* @__PURE__ */ __name((command) => {
|
|
11743
|
+
const registry = metaOf(command).query;
|
|
11744
|
+
const words = command.processedArgs.at(-1);
|
|
11745
|
+
const text5 = Array.isArray(words) ? words.join(" ") : typeof words === "string" ? words : "";
|
|
11746
|
+
const times = new Set(registry?.fields.filter(({ type }) => type === "time").map(({ name }) => name));
|
|
11747
|
+
if (times.size === 0 || text5.trim() === "")
|
|
11748
|
+
return void 0;
|
|
11749
|
+
try {
|
|
11750
|
+
if (!readsZone(parseLucene(text5, { defaultField: "none" }), times))
|
|
11751
|
+
return void 0;
|
|
11752
|
+
} catch {
|
|
11753
|
+
return void 0;
|
|
11754
|
+
}
|
|
11755
|
+
return timezoneOf(command.optsWithGlobals().timezone);
|
|
11756
|
+
}, "listZone");
|
|
12055
11757
|
var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
|
|
12056
11758
|
if (!isBody(body))
|
|
12057
11759
|
refuse(body);
|
|
11760
|
+
const zone = "items" in body && body.meta?.timezone === void 0 ? listZone(command) : void 0;
|
|
11761
|
+
if (zone)
|
|
11762
|
+
body = { ...body, meta: { ...body.meta, timezone: zone } };
|
|
12058
11763
|
const root = rootOf2(command);
|
|
12059
11764
|
const runnableSteps = runnable(root, body.next);
|
|
12060
11765
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
@@ -12241,25 +11946,10 @@ export {
|
|
|
12241
11946
|
refuseCommandName,
|
|
12242
11947
|
rootOf,
|
|
12243
11948
|
sampleCommand,
|
|
12244
|
-
modelTarget,
|
|
12245
11949
|
AI_ENTRIES,
|
|
12246
11950
|
AI_SETTING_KEYS,
|
|
12247
11951
|
resolveAISettings,
|
|
12248
11952
|
parseDuration,
|
|
12249
|
-
DEFAULT_TEXT_MODEL,
|
|
12250
|
-
PREVIOUS_DEFAULT_TEXT_MODEL,
|
|
12251
|
-
CustomTextModelShape,
|
|
12252
|
-
textModelsFile,
|
|
12253
|
-
readTextModelsSection,
|
|
12254
|
-
writeTextModelsSection,
|
|
12255
|
-
textModels,
|
|
12256
|
-
textModel,
|
|
12257
|
-
chosenTextModel,
|
|
12258
|
-
RERANK_MODELS,
|
|
12259
|
-
DEFAULT_RERANK_MODEL,
|
|
12260
|
-
rerankModel,
|
|
12261
|
-
vectorModelKey,
|
|
12262
|
-
meaningFloor,
|
|
12263
11953
|
historyWindow,
|
|
12264
11954
|
limitBatch,
|
|
12265
11955
|
botsDirectory,
|
|
@@ -12299,6 +11989,7 @@ export {
|
|
|
12299
11989
|
environmentOf,
|
|
12300
11990
|
withAgentLevels,
|
|
12301
11991
|
secretInputOf,
|
|
11992
|
+
outputFieldsOf,
|
|
12302
11993
|
outputFor,
|
|
12303
11994
|
baseContext,
|
|
12304
11995
|
inCommandRun,
|