@wirecat/zoom-cli 0.71.0 → 0.73.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/contracts/wirecat.json +1478 -0
- package/dist/account-removal.d.ts.map +1 -1
- package/dist/account-removal.js +0 -2
- package/dist/account-removal.js.map +1 -1
- package/dist/answers.d.ts +57 -3
- package/dist/answers.d.ts.map +1 -1
- package/dist/answers.js +0 -3
- package/dist/answers.js.map +1 -1
- package/dist/bin/main.js +13 -5
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-O4YNVPZX.js → all-profiles-V47CUJFK.js} +12 -12
- package/dist/bundle/answer-policy-W6H72X2R.js +112 -0
- package/dist/bundle/{anthropic-7GGRX3RX.js → anthropic-SID7Z3QN.js} +19 -12
- package/dist/bundle/{app-server-CPMKM3HI.js → app-server-KCMUSY4A.js} +75 -57
- package/dist/bundle/{bun-POHZKEPV.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-PGYMBPEL.js → bun-sqlite-3TLKUN5A.js} +10 -6
- package/dist/bundle/{chunk-Q3XLZIY3.js → chunk-2BAZRRJP.js} +29 -23
- package/dist/bundle/{chunk-OWEBWDHV.js → chunk-2NQPB6MT.js} +103 -9
- package/dist/bundle/chunk-2PYZTRRC.js +84 -0
- package/dist/bundle/chunk-2VYEGKQ3.js +13 -0
- package/dist/bundle/{chunk-I4DFFR7F.js → chunk-35CYSRGJ.js} +14 -5
- package/dist/bundle/{chunk-GGS6D4W4.js → chunk-3ADFJ3UP.js} +3 -3
- package/dist/bundle/{chunk-EOSVN2ER.js → chunk-3HTJBGNP.js} +242 -242
- package/dist/bundle/{chunk-2KESWII5.js → chunk-44YVZIA4.js} +3 -3
- package/dist/bundle/{chunk-GXF5HFFP.js → chunk-4LFFDUUW.js} +4 -4
- package/dist/bundle/{chunk-WOIHSQAL.js → chunk-4RJL32PF.js} +49 -10
- package/dist/bundle/{chunk-7ROXXRGG.js → chunk-6AO2RSYH.js} +7031 -5279
- package/dist/bundle/{chunk-DIQLXAAZ.js → chunk-6NI4FE5G.js} +6 -8
- package/dist/bundle/{chunk-X277FBTF.js → chunk-6WUTUCKH.js} +3 -3
- package/dist/bundle/{chunk-77TCCHMP.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-MRI6QMZ3.js → chunk-CIUJEQH4.js} +27 -19
- package/dist/bundle/{chunk-CRFOGYDG.js → chunk-CMWFYZ45.js} +2 -2
- package/dist/bundle/{chunk-LE7MDAQG.js → chunk-CQBLPBZU.js} +2 -2
- package/dist/bundle/{chunk-RQG5VOGH.js → chunk-DPSTOVKC.js} +185 -34
- package/dist/bundle/{chunk-4QUFFB2U.js → chunk-DYLYH7VE.js} +4 -4
- package/dist/bundle/{chunk-FEM2JQN2.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/chunk-ERQRY6WZ.js +54 -0
- package/dist/bundle/{chunk-P3XC6EDU.js → chunk-ETQNHS3A.js} +10 -129
- package/dist/bundle/{chunk-IAV5BG3I.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-DSVZEXYJ.js → chunk-FJMRDRPN.js} +3573 -3347
- package/dist/bundle/{chunk-7QC4M4HS.js → chunk-FT7X74RT.js} +4 -4
- package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
- package/dist/bundle/{chunk-ZBFL5JPT.js → chunk-FZLJ2G7A.js} +22 -120
- package/dist/bundle/{chunk-GL3MYFMX.js → chunk-G2TSDMTA.js} +5 -5
- package/dist/bundle/{chunk-2FV5JUQU.js → chunk-G3SIY4MQ.js} +47 -40
- package/dist/bundle/{chunk-2U27KIKU.js → chunk-GCZMYDKU.js} +6 -6
- package/dist/bundle/{chunk-CKPCVEXU.js → chunk-HAMDPWEZ.js} +6 -6
- package/dist/bundle/{chunk-OE7EIP5L.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-OORMSM6O.js → chunk-HNWDEDMU.js} +61 -30
- package/dist/bundle/{chunk-FSHCAWZS.js → chunk-HO3GBTIT.js} +13464 -10422
- package/dist/bundle/chunk-IE7YBRUO.js +25 -0
- package/dist/bundle/{chunk-RGJ7OWHU.js → chunk-IJCUAKR5.js} +61 -21
- package/dist/bundle/{chunk-ULDXZ6LH.js → chunk-IKNOTHG2.js} +116 -70
- package/dist/bundle/{chunk-633QXP57.js → chunk-ILDGZBZD.js} +14 -9
- package/dist/bundle/{chunk-CFQF6IGY.js → chunk-JIS34MLC.js} +69 -6
- package/dist/bundle/{chunk-DHWBSXG3.js → chunk-JQF4LM3V.js} +415 -66
- package/dist/bundle/{chunk-4LAQDZXU.js → chunk-K5JFX5TK.js} +953 -210
- package/dist/bundle/{chunk-5LJTU4LY.js → chunk-K7EMVFJ7.js} +115 -113
- package/dist/bundle/chunk-KHBZ4OEP.js +16 -0
- package/dist/bundle/chunk-KK2IVZUQ.js +185 -0
- package/dist/bundle/{chunk-SELXER2Q.js → chunk-KQD4ZVNC.js} +7 -7
- package/dist/bundle/{chunk-VJXHIUFP.js → chunk-KSNJK4QM.js} +13 -13
- package/dist/bundle/{chunk-X4GWR6GO.js → chunk-KUL7S5Y3.js} +376 -10
- package/dist/bundle/{chunk-M76MXMLY.js → chunk-L6YSKCC3.js} +1 -1
- package/dist/bundle/chunk-LQYMN36C.js +73 -0
- package/dist/bundle/{chunk-USQ23X5V.js → chunk-LSVQCI6V.js} +751 -735
- package/dist/bundle/{chunk-DRBQDCDU.js → chunk-LVDTSCIN.js} +39 -122
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/chunk-MAE5UGRQ.js +301 -0
- package/dist/bundle/{chunk-CT4WVR4N.js → chunk-MG2CCAVG.js} +3 -3
- package/dist/bundle/chunk-MOKEB656.js +71 -0
- package/dist/bundle/{chunk-BGTEVIW4.js → chunk-N3SOTKXC.js} +6 -6
- package/dist/bundle/{chunk-VRH7VRTK.js → chunk-NBA2V6LB.js} +10 -15
- package/dist/bundle/{chunk-5J4AMBMM.js → chunk-OFA22L4G.js} +4 -4
- package/dist/bundle/chunk-OKOJEBHK.js +106 -0
- package/dist/bundle/{chunk-Q5PI72CR.js → chunk-OMLVWOEF.js} +7 -2
- package/dist/bundle/{chunk-DK6ICIGL.js → chunk-OU5OXA6Q.js} +2150 -1312
- package/dist/bundle/{chunk-QVSLSWAL.js → chunk-P4FU6R3Z.js} +27 -152
- package/dist/bundle/{chunk-YPO2U2YB.js → chunk-PACLT6IW.js} +363 -115
- package/dist/bundle/{chunk-BBTQIVFP.js → chunk-PGPHEC2X.js} +2 -2
- package/dist/bundle/chunk-PJ3FKBXG.js +18 -0
- package/dist/bundle/{chunk-X3ZDN3U7.js → chunk-PKON63JH.js} +2 -2
- package/dist/bundle/{chunk-Q2SUFGSH.js → chunk-Q43KX56Z.js} +2 -2
- package/dist/bundle/{chunk-XI3VIQKW.js → chunk-QS6DWXDB.js} +569 -537
- package/dist/bundle/{chunk-INVTDIF6.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-QTHIU7CO.js → chunk-QWGEOQHA.js} +3 -2
- package/dist/bundle/{chunk-N2FNMION.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-MW4EGDDV.js → chunk-SO52EJ2W.js} +2 -2
- package/dist/bundle/{chunk-HB6XJQ3Y.js → chunk-SYIOT45G.js} +5 -5
- package/dist/bundle/{chunk-4QPQ7MDA.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-ALIT5QFT.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-OHWMIUCT.js → chunk-USIMMGWS.js} +244 -245
- package/dist/bundle/{chunk-MEED7YFG.js → chunk-UYBLNGZ2.js} +8 -2
- package/dist/bundle/{chunk-IED3NS7G.js → chunk-V5Q2QKYM.js} +29 -36
- package/dist/bundle/{chunk-54YDWBYG.js → chunk-VJVYGTPM.js} +15 -2
- package/dist/bundle/{chunk-5K7OGPGA.js → chunk-VPPNYUQM.js} +8 -8
- package/dist/bundle/{chunk-ZBKWRYRS.js → chunk-X2FILY5F.js} +3 -3
- package/dist/bundle/{chunk-2RUAMDVV.js → chunk-XLY7V2LB.js} +14 -14
- package/dist/bundle/chunk-XWBPP2HX.js +2 -0
- package/dist/bundle/{chunk-ZVI6TFQR.js → chunk-Y3IH7EZC.js} +17 -17
- package/dist/bundle/{chunk-YD2RYVMK.js → chunk-Z5XCU4S7.js} +46 -40
- package/dist/bundle/{chunk-RN4EHCC5.js → chunk-ZAIE3G5I.js} +3 -3
- package/dist/bundle/{chunk-2U6SER67.js → chunk-ZMHZ6CQS.js} +2 -2
- package/dist/bundle/{chunk-64ZHF6PJ.js → chunk-ZVQDOKDY.js} +3 -1
- package/dist/bundle/{chunk-TM4JSVGQ.js → chunk-ZX4QWTMQ.js} +42 -43
- package/dist/bundle/{cli-KHMEUXNG.js → cli-4ZYJ6OZE.js} +158 -88
- package/dist/bundle/command-contract-FJDDCHYP.js +43 -0
- package/dist/bundle/command-server-entry-CASONRIJ.js +173 -0
- package/dist/bundle/config-4DZHX2WX.js +99 -0
- package/dist/bundle/{decode-7RP4HSVE.js → decode-KEFCVGEB.js} +6 -6
- package/dist/bundle/{dispatch-IZCAK47P.js → dispatch-EU67WGME.js} +11 -11
- package/dist/bundle/{dist-BFT2SUBV.js → dist-GCQ7KCKN.js} +55 -30
- package/dist/bundle/{echarts-T2BSQ2YV.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-BAS6YPDT.js → embed-43VJEPM6.js} +7 -7
- package/dist/bundle/{embedder-5XD5FCAO.js → embedder-Q4ZHAGRP.js} +10 -10
- package/dist/bundle/{failure-R2OIHCE5.js → failure-CTJLEB2R.js} +3 -3
- package/dist/bundle/first-run-CPOLQVNA.js +29 -0
- package/dist/bundle/first-screen-XYESRGWW.js +41 -0
- package/dist/bundle/folders-MSBTAPAG.js +24 -0
- package/dist/bundle/{instructions-XZPROPKY.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{main-TZXKGL3L.js → main-NA3QVPXS.js} +39 -25
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{meetings-JB2ISPND.js → meetings-7CVIQJTA.js} +9 -7
- package/dist/bundle/{node-A3B3MJWX.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
- package/dist/bundle/{node-sqlite-QVWDLGDX.js → node-sqlite-QHGB23B4.js} +11 -7
- package/dist/bundle/{oauth-YA6IYV4O.js → oauth-BMEMCM2I.js} +8 -8
- package/dist/bundle/{open-SY7TXJBS.js → open-JGU2NRJP.js} +6 -6
- package/dist/bundle/openai-VTXXFNCS.js +28 -0
- package/dist/bundle/{output-file-YGQYZCBJ.js → output-file-VDOCYH2G.js} +6 -6
- package/dist/bundle/{process-6HNBTJIY.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-77BUCJ4H.js → program-XM6CDIJ2.js} +134 -129
- package/dist/bundle/{prompt-YDG73YDS.js → prompt-2IPFXJ4B.js} +6 -6
- package/dist/bundle/{recognize-ECXDGTB7.js → recognize-672E2RIB.js} +5 -5
- package/dist/bundle/{remote-K4JHGBVJ.js → remote-YLHRVPDS.js} +11 -8
- package/dist/bundle/{rerank-IU2YYD4T.js → rerank-NBXQG3OS.js} +8 -8
- package/dist/bundle/run-log-3WITBT2F.js +126 -0
- package/dist/bundle/{serve-3XWIF3HI.js → serve-FNLOUMYP.js} +10 -10
- package/dist/bundle/{server-56VYOHWP.js → server-7ZB5AK5H.js} +53 -47
- package/dist/bundle/server-GGRGD4SH.js +77 -0
- package/dist/bundle/{services-X7IPEGQ5.js → services-Z4UWN64R.js} +56 -37
- package/dist/bundle/{speech-E2OBQWYA.js → speech-XSYVCKR3.js} +17 -14
- package/dist/bundle/sqlite-runtime-GAPXJNWU.js +20 -0
- package/dist/bundle/{state-4GMJYK4H.js → state-QSA53EF5.js} +7 -7
- package/dist/bundle/{store-LA4TV4DM.js → store-EKI4OAJH.js} +22 -19
- package/dist/bundle/{store-KPI7GB5Y.js → store-NOF5EYUC.js} +38 -21
- package/dist/bundle/store-connection-2OZQGEIO.js +92 -0
- package/dist/bundle/store-maintenance-command-GNX3SOZ6.js +67 -0
- package/dist/bundle/{streaming-EJ3NM2C2.js → streaming-PQEXKTE5.js} +7 -7
- package/dist/bundle/tokens-WJQYQ3FK.js +24 -0
- package/dist/bundle/zm.js +34 -10
- package/dist/bundle/{zoom-app-QEJBTIJ4.js → zoom-app-Y7RMWLVU.js} +9 -8
- package/dist/folders.d.ts +12 -2
- package/dist/folders.d.ts.map +1 -1
- package/dist/folders.js +81 -3
- package/dist/folders.js.map +1 -1
- package/dist/identity.d.ts +5 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +14 -0
- package/dist/identity.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +4 -7
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/remote-http.d.ts +1 -1
- package/dist/remote-http.d.ts.map +1 -1
- package/dist/remote-http.js +21 -23
- package/dist/remote-http.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +2 -4
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +17 -2
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +109 -29
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +15 -14
- package/dist/bundle/answer-policy-PPSPMCLH.js +0 -104
- package/dist/bundle/chunk-KMV7GZB6.js +0 -35
- package/dist/bundle/chunk-UG447QY2.js +0 -27
- package/dist/bundle/chunk-XRFHQGOD.js +0 -17
- package/dist/bundle/command-contract-4K6XXZYE.js +0 -41
- package/dist/bundle/config-EEDB632I.js +0 -90
- package/dist/bundle/first-run-23WWZ2PW.js +0 -28
- package/dist/bundle/first-screen-6HFUYVFR.js +0 -39
- package/dist/bundle/folders-ZXTOFY4T.js +0 -16
- package/dist/bundle/openai-2AU24NRN.js +0 -25
- package/dist/bundle/run-log-LFEXNZ74.js +0 -118
- package/dist/bundle/server-YSTMUZ22.js +0 -72
- package/dist/bundle/store-connection-AZTIF6IH.js +0 -83
- package/dist/bundle/store-maintenance-command-LR572PS4.js +0 -61
- package/dist/bundle/tokens-BE6CJMR5.js +0 -20
- /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-7O7XM37N.js} +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
endpoint
|
|
5
|
+
} from "./chunk-LQYMN36C.js";
|
|
6
|
+
import {
|
|
7
|
+
filesPresent,
|
|
8
|
+
sharedModelsDirectory
|
|
9
|
+
} from "./chunk-4LFFDUUW.js";
|
|
3
10
|
import {
|
|
4
11
|
PRIORITY_LABELS,
|
|
5
12
|
TASK_ORIGINS,
|
|
@@ -9,25 +16,21 @@ import {
|
|
|
9
16
|
id,
|
|
10
17
|
text,
|
|
11
18
|
time
|
|
12
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LSVQCI6V.js";
|
|
20
|
+
import {
|
|
21
|
+
TAG_TYPES
|
|
22
|
+
} from "./chunk-QS6DWXDB.js";
|
|
13
23
|
import {
|
|
14
24
|
readSharedSection,
|
|
15
25
|
sharedConfigPath,
|
|
16
26
|
writeSharedSection
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
TAG_TYPES
|
|
20
|
-
} from "./chunk-XI3VIQKW.js";
|
|
21
|
-
import {
|
|
22
|
-
filesPresent,
|
|
23
|
-
sharedModelsDirectory
|
|
24
|
-
} from "./chunk-GXF5HFFP.js";
|
|
27
|
+
} from "./chunk-VPPNYUQM.js";
|
|
25
28
|
import {
|
|
26
29
|
storePath
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ERQRY6WZ.js";
|
|
28
31
|
import {
|
|
29
32
|
writeSecurely
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HNWDEDMU.js";
|
|
31
34
|
import {
|
|
32
35
|
array,
|
|
33
36
|
boolean,
|
|
@@ -52,16 +55,16 @@ import {
|
|
|
52
55
|
string,
|
|
53
56
|
trim,
|
|
54
57
|
url
|
|
55
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-4RJL32PF.js";
|
|
56
59
|
import {
|
|
57
60
|
CliError,
|
|
58
61
|
isCliError
|
|
59
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-EA2OB75T.js";
|
|
60
63
|
import {
|
|
61
64
|
__name
|
|
62
65
|
} from "./chunk-ZVVMGPBJ.js";
|
|
63
66
|
|
|
64
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
67
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
65
68
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
66
69
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
67
70
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -75,7 +78,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
75
78
|
return ms;
|
|
76
79
|
}, "parseDuration");
|
|
77
80
|
|
|
78
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
79
82
|
import { existsSync } from "node:fs";
|
|
80
83
|
import { join } from "node:path";
|
|
81
84
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
@@ -352,7 +355,212 @@ var vectorModelKey = /* @__PURE__ */ __name((model) => {
|
|
|
352
355
|
}, "vectorModelKey");
|
|
353
356
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
354
357
|
|
|
355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
359
|
+
var closeSuggestion = strictObject({
|
|
360
|
+
as: picklist(["done", "dismissed"]),
|
|
361
|
+
/** The agent's name. */
|
|
362
|
+
by: text,
|
|
363
|
+
/** 0–1, as the agent rated it. */
|
|
364
|
+
certainty: number(),
|
|
365
|
+
reason: nullable(text),
|
|
366
|
+
at: time
|
|
367
|
+
});
|
|
368
|
+
var task = strictObject({
|
|
369
|
+
ref: reference,
|
|
370
|
+
id,
|
|
371
|
+
/** The readable key: `Q-15` for a task found in a message from now on, `IN1A2B3C4D-17` before, `HRB-12` in a project. */
|
|
372
|
+
key: optional(nullable(text)),
|
|
373
|
+
title: nullable(text),
|
|
374
|
+
description: optional(nullable(text)),
|
|
375
|
+
kind: picklist(TASK_TYPES),
|
|
376
|
+
state: picklist(TASK_STATES),
|
|
377
|
+
origin: optional(picklist(TASK_ORIGINS)),
|
|
378
|
+
project: optional(nullable(text)),
|
|
379
|
+
/** The project's key and name, as `tasks counts` names it. */
|
|
380
|
+
project_key: optional(nullable(text)),
|
|
381
|
+
project_name: optional(nullable(text)),
|
|
382
|
+
/** Who added it: the owner, or an agent by its bot name. */
|
|
383
|
+
created_by: optional(nullable(strictObject({ type: picklist(["person", "bot"]), id, name: nullable(text), owner: boolean() }))),
|
|
384
|
+
account: optional(text),
|
|
385
|
+
/** The chat it came from, as a `chat:` reference. */
|
|
386
|
+
chat: optional(nullable(reference)),
|
|
387
|
+
/** The message it came from. */
|
|
388
|
+
source_message: optional(nullable(reference)),
|
|
389
|
+
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
390
|
+
external_id: optional(nullable(text)),
|
|
391
|
+
/** The http or https page it is about, such as an Avito ad. */
|
|
392
|
+
source_url: optional(nullable(text)),
|
|
393
|
+
/** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
|
|
394
|
+
priority: optional(nullable(number())),
|
|
395
|
+
priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
|
|
396
|
+
/** The agent working on it, apart from its assignees and its claim. */
|
|
397
|
+
agent: optional(nullable(text)),
|
|
398
|
+
/** Give it back with `--revision` to refuse a write made on a stale copy. */
|
|
399
|
+
revision: optional(number()),
|
|
400
|
+
assignments: optional(array(strictObject({ to: reference, role: picklist(["assignee", "reviewer", "watcher"]) }))),
|
|
401
|
+
/** Open work whose blocked-by tasks are all done. */
|
|
402
|
+
ready: optional(boolean()),
|
|
403
|
+
/** The blocked-by tasks not done yet: open (any open state), dismissed, or unavailable. */
|
|
404
|
+
blocked_by: optional(array(strictObject({ task: reference, state: picklist(["open", "dismissed", "unavailable"]) }))),
|
|
405
|
+
parent: optional(nullable(reference)),
|
|
406
|
+
due_at: optional(nullable(time)),
|
|
407
|
+
closed_at: optional(nullable(time)),
|
|
408
|
+
reason: optional(nullable(text)),
|
|
409
|
+
/** One name from the category list (`tasks categories`). */
|
|
410
|
+
category: optional(nullable(text)),
|
|
411
|
+
/** Who works on it now, and until when; null when nobody does. */
|
|
412
|
+
claimed_by: optional(nullable(text)),
|
|
413
|
+
claimed_until: optional(nullable(time)),
|
|
414
|
+
/** The close an agent would make, waiting on the owner: `tasks close` confirms it, `tasks reject` refuses it. */
|
|
415
|
+
close_suggestion: optional(nullable(closeSuggestion)),
|
|
416
|
+
created_at: time,
|
|
417
|
+
updated_at: optional(time)
|
|
418
|
+
});
|
|
419
|
+
|
|
420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
421
|
+
var agendaChat = strictObject({
|
|
422
|
+
chat: reference,
|
|
423
|
+
title: nullable(text),
|
|
424
|
+
kind: picklist(["dialog", "group", "channel", "saved", "unknown"]),
|
|
425
|
+
/** The newest message, never its text; `null` while it is not stored. */
|
|
426
|
+
last_message: nullable(reference),
|
|
427
|
+
last_message_at: time,
|
|
428
|
+
/** `null` when the newest message is not stored, or the messenger did not say who sent it. */
|
|
429
|
+
last_from_owner: nullable(boolean()),
|
|
430
|
+
/** Open tasks whose source is in this chat. */
|
|
431
|
+
open_tasks: array(id),
|
|
432
|
+
/** `unknown` means nothing ever fetched the chat's history; `partial` that the store holds only part of it. */
|
|
433
|
+
completeness: strictObject({
|
|
434
|
+
state: picklist(["complete", "partial", "unknown"]),
|
|
435
|
+
up_to_date: nullable(boolean()),
|
|
436
|
+
gaps: boolean(),
|
|
437
|
+
reaches_start: boolean(),
|
|
438
|
+
fetched_at: nullable(time)
|
|
439
|
+
}),
|
|
440
|
+
/** What the store holds of the chat: the count and the span, never the text. */
|
|
441
|
+
held: strictObject({ messages: number(), oldest_at: nullable(time), newest_at: nullable(time) })
|
|
442
|
+
});
|
|
443
|
+
var agenda = strictObject({
|
|
444
|
+
at: time,
|
|
445
|
+
account: text,
|
|
446
|
+
stored_at: nullable(time),
|
|
447
|
+
/** The store saved nothing for a day: a chat may look quiet only because nothing was synced. */
|
|
448
|
+
stale: boolean(),
|
|
449
|
+
tasks: array(strictObject({
|
|
450
|
+
id,
|
|
451
|
+
key: text,
|
|
452
|
+
title: nullable(text),
|
|
453
|
+
kind: picklist(TASK_TYPES),
|
|
454
|
+
category: nullable(text),
|
|
455
|
+
/** The message or note it came from. */
|
|
456
|
+
source: nullable(reference),
|
|
457
|
+
due_at: nullable(time),
|
|
458
|
+
next_check_at: nullable(time),
|
|
459
|
+
/** Who works on it now; only the asker's own claims are listed unless the query names claimed:. */
|
|
460
|
+
claimed_by: nullable(text),
|
|
461
|
+
claimed_until: nullable(time),
|
|
462
|
+
/** An agent's close waiting on the owner: `tasks close` confirms it, `tasks reject` refuses it. */
|
|
463
|
+
close_suggestion: nullable(closeSuggestion),
|
|
464
|
+
created_at: time,
|
|
465
|
+
reasons: array(picklist(["overdue", "due", "check", "unplanned", "close-suggested"]))
|
|
466
|
+
})),
|
|
467
|
+
/** Someone else wrote last, and the owner has not answered. */
|
|
468
|
+
owed: array(agendaChat),
|
|
469
|
+
/** The owner wrote last, and nobody answered. */
|
|
470
|
+
waiting: array(agendaChat),
|
|
471
|
+
/** The chat list says these moved and their newest message is not stored: read them first. */
|
|
472
|
+
unsynced: array(agendaChat),
|
|
473
|
+
/** Open tasks someone else does: what they owe the owner, oldest first. */
|
|
474
|
+
assigned: array(strictObject({
|
|
475
|
+
id,
|
|
476
|
+
key: text,
|
|
477
|
+
title: nullable(text),
|
|
478
|
+
kind: picklist(TASK_TYPES),
|
|
479
|
+
category: nullable(text),
|
|
480
|
+
source: nullable(reference),
|
|
481
|
+
due_at: nullable(time),
|
|
482
|
+
created_at: time,
|
|
483
|
+
/** `person:<id>`, each one who does it. */
|
|
484
|
+
assignees: array(reference)
|
|
485
|
+
})),
|
|
486
|
+
/** Open tasks carry these categories, which the list no longer holds: move them, or put the category back. */
|
|
487
|
+
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
491
|
+
var attachment = strictObject({
|
|
492
|
+
/** The message it came with, as a locator; absent inside that message. */
|
|
493
|
+
message: optional(reference),
|
|
494
|
+
/** Lower-cased: `photo`, `video`, `file`, `voice`… */
|
|
495
|
+
kind: text,
|
|
496
|
+
/** Its place among the message's attachments, from 1, as `attachments show --attachment` takes it. */
|
|
497
|
+
position: optional(count),
|
|
498
|
+
url: optional(text),
|
|
499
|
+
name: optional(text),
|
|
500
|
+
title: optional(text),
|
|
501
|
+
mime: optional(text),
|
|
502
|
+
size: optional(count),
|
|
503
|
+
width: optional(count),
|
|
504
|
+
height: optional(count),
|
|
505
|
+
/** Seconds, for audio and video. */
|
|
506
|
+
duration: optional(number()),
|
|
507
|
+
/** The text read out of it; how it was read is `extraction`. */
|
|
508
|
+
text: optional(text),
|
|
509
|
+
extraction: optional(strictObject({ origin: text, extractor: text, chars: count, error: optional(text) })),
|
|
510
|
+
local_path: optional(text),
|
|
511
|
+
/** A shared contact card (`kind: "contact"`); the phone is the whole number as the sender put it. */
|
|
512
|
+
contact: optional(strictObject({
|
|
513
|
+
name: text,
|
|
514
|
+
first_name: optional(text),
|
|
515
|
+
last_name: optional(text),
|
|
516
|
+
phone: optional(text),
|
|
517
|
+
user_id: optional(id)
|
|
518
|
+
})),
|
|
519
|
+
/** A bot's keyboard under the message, row by row; `messages press` presses one. */
|
|
520
|
+
buttons: optional(array(array(strictObject({
|
|
521
|
+
kind: picklist(["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"]),
|
|
522
|
+
text,
|
|
523
|
+
url: optional(text)
|
|
524
|
+
}))))
|
|
525
|
+
});
|
|
526
|
+
var hitFile = strictObject({
|
|
527
|
+
position: count,
|
|
528
|
+
kind: text,
|
|
529
|
+
name: optional(text),
|
|
530
|
+
size: optional(count),
|
|
531
|
+
/** The saved copy on this computer, once `messages download` fetched it; absent until then. */
|
|
532
|
+
local_path: optional(text)
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
536
|
+
var conversation = strictObject({
|
|
537
|
+
id,
|
|
538
|
+
chat: reference,
|
|
539
|
+
/** The message it starts with. */
|
|
540
|
+
first_message: reference,
|
|
541
|
+
started_at: time,
|
|
542
|
+
ended_at: time,
|
|
543
|
+
messages_count: count,
|
|
544
|
+
/** How many people wrote in it. */
|
|
545
|
+
senders_count: count,
|
|
546
|
+
built_at: time,
|
|
547
|
+
rules_version: count
|
|
548
|
+
});
|
|
549
|
+
|
|
550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
551
|
+
var tagging = strictObject({
|
|
552
|
+
tag: text,
|
|
553
|
+
type: picklist(TAG_TYPES),
|
|
554
|
+
/** What carries it: a `chat:`, `contact:` or `msg:` reference. */
|
|
555
|
+
target: reference,
|
|
556
|
+
/** The chat's title or the person's name, as the store holds it. */
|
|
557
|
+
name: nullable(text),
|
|
558
|
+
/** Who claims it: `manual` the owner, `auto` the keyword rules; both when both do. */
|
|
559
|
+
sources: array(picklist(["manual", "auto"])),
|
|
560
|
+
created_at: time
|
|
561
|
+
});
|
|
562
|
+
|
|
563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
356
564
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
357
565
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
358
566
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -395,7 +603,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
395
603
|
};
|
|
396
604
|
}, "runBudget");
|
|
397
605
|
|
|
398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
399
607
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
400
608
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
401
609
|
messageId: message.id,
|
|
@@ -501,17 +709,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
|
|
|
501
709
|
}, "guardedWrite");
|
|
502
710
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
503
711
|
|
|
504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
505
|
-
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
506
|
-
try {
|
|
507
|
-
const url2 = new URL(value);
|
|
508
|
-
return ["https:", "http:"].includes(url2.protocol) && !url2.username && !url2.password && !url2.search && !url2.hash;
|
|
509
|
-
} catch {
|
|
510
|
-
return false;
|
|
511
|
-
}
|
|
512
|
-
}, "endpoint");
|
|
513
|
-
|
|
514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
515
713
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
516
714
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
517
715
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -580,7 +778,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
580
778
|
};
|
|
581
779
|
}, "modelTarget");
|
|
582
780
|
|
|
583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
584
782
|
var HISTORY_MAX_DAYS = 1095;
|
|
585
783
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
586
784
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -627,205 +825,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
627
825
|
return { batch: { ...batch, messages }, skipped };
|
|
628
826
|
}, "limitBatch");
|
|
629
827
|
|
|
630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
631
|
-
var closeSuggestion = strictObject({
|
|
632
|
-
as: picklist(["done", "dismissed"]),
|
|
633
|
-
/** The agent's name. */
|
|
634
|
-
by: text,
|
|
635
|
-
/** 0–1, as the agent rated it. */
|
|
636
|
-
certainty: number(),
|
|
637
|
-
reason: nullable(text),
|
|
638
|
-
at: time
|
|
639
|
-
});
|
|
640
|
-
var task = strictObject({
|
|
641
|
-
ref: reference,
|
|
642
|
-
id,
|
|
643
|
-
/** The readable key: `Q-15` for a task found in a message from now on, `IN1A2B3C4D-17` before, `HRB-12` in a project. */
|
|
644
|
-
key: optional(nullable(text)),
|
|
645
|
-
title: nullable(text),
|
|
646
|
-
description: optional(nullable(text)),
|
|
647
|
-
kind: picklist(TASK_TYPES),
|
|
648
|
-
state: picklist(TASK_STATES),
|
|
649
|
-
origin: optional(picklist(TASK_ORIGINS)),
|
|
650
|
-
project: optional(nullable(text)),
|
|
651
|
-
/** The project's key and name, as `tasks counts` names it. */
|
|
652
|
-
project_key: optional(nullable(text)),
|
|
653
|
-
project_name: optional(nullable(text)),
|
|
654
|
-
/** Who added it: the owner, or an agent by its bot name. */
|
|
655
|
-
created_by: optional(nullable(strictObject({ type: picklist(["person", "bot"]), id, name: nullable(text), owner: boolean() }))),
|
|
656
|
-
account: optional(text),
|
|
657
|
-
/** The chat it came from, as a `chat:` reference. */
|
|
658
|
-
chat: optional(nullable(reference)),
|
|
659
|
-
/** The message it came from. */
|
|
660
|
-
source_message: optional(nullable(reference)),
|
|
661
|
-
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
662
|
-
external_id: optional(nullable(text)),
|
|
663
|
-
/** The http or https page it is about, such as an Avito ad. */
|
|
664
|
-
source_url: optional(nullable(text)),
|
|
665
|
-
/** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
|
|
666
|
-
priority: optional(nullable(number())),
|
|
667
|
-
priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
|
|
668
|
-
/** The agent working on it, apart from its assignees and its claim. */
|
|
669
|
-
agent: optional(nullable(text)),
|
|
670
|
-
/** Give it back with `--revision` to refuse a write made on a stale copy. */
|
|
671
|
-
revision: optional(number()),
|
|
672
|
-
assignments: optional(array(strictObject({ to: reference, role: picklist(["assignee", "reviewer", "watcher"]) }))),
|
|
673
|
-
/** Open work whose blocked-by tasks are all done. */
|
|
674
|
-
ready: optional(boolean()),
|
|
675
|
-
/** The blocked-by tasks not done yet: open (any open state), dismissed, or unavailable. */
|
|
676
|
-
blocked_by: optional(array(strictObject({ task: reference, state: picklist(["open", "dismissed", "unavailable"]) }))),
|
|
677
|
-
parent: optional(nullable(reference)),
|
|
678
|
-
due_at: optional(nullable(time)),
|
|
679
|
-
closed_at: optional(nullable(time)),
|
|
680
|
-
reason: optional(nullable(text)),
|
|
681
|
-
/** One name from the category list (`tasks categories`). */
|
|
682
|
-
category: optional(nullable(text)),
|
|
683
|
-
/** Who works on it now, and until when; null when nobody does. */
|
|
684
|
-
claimed_by: optional(nullable(text)),
|
|
685
|
-
claimed_until: optional(nullable(time)),
|
|
686
|
-
/** The close an agent would make, waiting on the owner: `tasks close` confirms it, `tasks reject` refuses it. */
|
|
687
|
-
close_suggestion: optional(nullable(closeSuggestion)),
|
|
688
|
-
created_at: time,
|
|
689
|
-
updated_at: optional(time)
|
|
690
|
-
});
|
|
691
|
-
|
|
692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
693
|
-
var agendaChat = strictObject({
|
|
694
|
-
chat: reference,
|
|
695
|
-
title: nullable(text),
|
|
696
|
-
kind: picklist(["dialog", "group", "channel", "saved", "unknown"]),
|
|
697
|
-
/** The newest message, never its text; `null` while it is not stored. */
|
|
698
|
-
last_message: nullable(reference),
|
|
699
|
-
last_message_at: time,
|
|
700
|
-
/** `null` when the newest message is not stored, or the messenger did not say who sent it. */
|
|
701
|
-
last_from_owner: nullable(boolean()),
|
|
702
|
-
/** Open tasks whose source is in this chat. */
|
|
703
|
-
open_tasks: array(id),
|
|
704
|
-
/** `unknown` means nothing ever fetched the chat's history; `partial` that the store holds only part of it. */
|
|
705
|
-
completeness: strictObject({
|
|
706
|
-
state: picklist(["complete", "partial", "unknown"]),
|
|
707
|
-
up_to_date: nullable(boolean()),
|
|
708
|
-
gaps: boolean(),
|
|
709
|
-
reaches_start: boolean(),
|
|
710
|
-
fetched_at: nullable(time)
|
|
711
|
-
}),
|
|
712
|
-
/** What the store holds of the chat: the count and the span, never the text. */
|
|
713
|
-
held: strictObject({ messages: number(), oldest_at: nullable(time), newest_at: nullable(time) })
|
|
714
|
-
});
|
|
715
|
-
var agenda = strictObject({
|
|
716
|
-
at: time,
|
|
717
|
-
account: text,
|
|
718
|
-
stored_at: nullable(time),
|
|
719
|
-
/** The store saved nothing for a day: a chat may look quiet only because nothing was synced. */
|
|
720
|
-
stale: boolean(),
|
|
721
|
-
tasks: array(strictObject({
|
|
722
|
-
id,
|
|
723
|
-
key: text,
|
|
724
|
-
title: nullable(text),
|
|
725
|
-
kind: picklist(TASK_TYPES),
|
|
726
|
-
category: nullable(text),
|
|
727
|
-
/** The message or note it came from. */
|
|
728
|
-
source: nullable(reference),
|
|
729
|
-
due_at: nullable(time),
|
|
730
|
-
next_check_at: nullable(time),
|
|
731
|
-
/** Who works on it now; only the asker's own claims are listed unless the query names claimed:. */
|
|
732
|
-
claimed_by: nullable(text),
|
|
733
|
-
claimed_until: nullable(time),
|
|
734
|
-
/** An agent's close waiting on the owner: `tasks close` confirms it, `tasks reject` refuses it. */
|
|
735
|
-
close_suggestion: nullable(closeSuggestion),
|
|
736
|
-
created_at: time,
|
|
737
|
-
reasons: array(picklist(["overdue", "due", "check", "unplanned", "close-suggested"]))
|
|
738
|
-
})),
|
|
739
|
-
/** Someone else wrote last, and the owner has not answered. */
|
|
740
|
-
owed: array(agendaChat),
|
|
741
|
-
/** The owner wrote last, and nobody answered. */
|
|
742
|
-
waiting: array(agendaChat),
|
|
743
|
-
/** The chat list says these moved and their newest message is not stored: read them first. */
|
|
744
|
-
unsynced: array(agendaChat),
|
|
745
|
-
/** Open tasks someone else does: what they owe the owner, oldest first. */
|
|
746
|
-
assigned: array(strictObject({
|
|
747
|
-
id,
|
|
748
|
-
key: text,
|
|
749
|
-
title: nullable(text),
|
|
750
|
-
kind: picklist(TASK_TYPES),
|
|
751
|
-
category: nullable(text),
|
|
752
|
-
source: nullable(reference),
|
|
753
|
-
due_at: nullable(time),
|
|
754
|
-
created_at: time,
|
|
755
|
-
/** `person:<id>`, each one who does it. */
|
|
756
|
-
assignees: array(reference)
|
|
757
|
-
})),
|
|
758
|
-
/** Open tasks carry these categories, which the list no longer holds: move them, or put the category back. */
|
|
759
|
-
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
760
|
-
});
|
|
761
|
-
|
|
762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
763
|
-
var attachment = strictObject({
|
|
764
|
-
/** The message it came with, as a locator; absent inside that message. */
|
|
765
|
-
message: optional(reference),
|
|
766
|
-
/** Lower-cased: `photo`, `video`, `file`, `voice`… */
|
|
767
|
-
kind: text,
|
|
768
|
-
/** Its place among the message's attachments, from 1, as `attachments show --attachment` takes it. */
|
|
769
|
-
position: optional(count),
|
|
770
|
-
url: optional(text),
|
|
771
|
-
name: optional(text),
|
|
772
|
-
title: optional(text),
|
|
773
|
-
mime: optional(text),
|
|
774
|
-
size: optional(count),
|
|
775
|
-
width: optional(count),
|
|
776
|
-
height: optional(count),
|
|
777
|
-
/** Seconds, for audio and video. */
|
|
778
|
-
duration: optional(number()),
|
|
779
|
-
/** The text read out of it; how it was read is `extraction`. */
|
|
780
|
-
text: optional(text),
|
|
781
|
-
extraction: optional(strictObject({ origin: text, extractor: text, chars: count, error: optional(text) })),
|
|
782
|
-
local_path: optional(text),
|
|
783
|
-
/** A shared contact card (`kind: "contact"`); the phone is the whole number as the sender put it. */
|
|
784
|
-
contact: optional(strictObject({
|
|
785
|
-
name: text,
|
|
786
|
-
first_name: optional(text),
|
|
787
|
-
last_name: optional(text),
|
|
788
|
-
phone: optional(text),
|
|
789
|
-
user_id: optional(id)
|
|
790
|
-
})),
|
|
791
|
-
/** A bot's keyboard under the message, row by row; `messages press` presses one. */
|
|
792
|
-
buttons: optional(array(array(strictObject({
|
|
793
|
-
kind: picklist(["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"]),
|
|
794
|
-
text,
|
|
795
|
-
url: optional(text)
|
|
796
|
-
}))))
|
|
797
|
-
});
|
|
798
|
-
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
799
|
-
|
|
800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
801
|
-
var conversation = strictObject({
|
|
802
|
-
id,
|
|
803
|
-
chat: reference,
|
|
804
|
-
/** The message it starts with. */
|
|
805
|
-
first_message: reference,
|
|
806
|
-
started_at: time,
|
|
807
|
-
ended_at: time,
|
|
808
|
-
messages_count: count,
|
|
809
|
-
/** How many people wrote in it. */
|
|
810
|
-
senders_count: count,
|
|
811
|
-
built_at: time,
|
|
812
|
-
rules_version: count
|
|
813
|
-
});
|
|
814
|
-
|
|
815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
816
|
-
var tagging = strictObject({
|
|
817
|
-
tag: text,
|
|
818
|
-
type: picklist(TAG_TYPES),
|
|
819
|
-
/** What carries it: a `chat:`, `contact:` or `msg:` reference. */
|
|
820
|
-
target: reference,
|
|
821
|
-
/** The chat's title or the person's name, as the store holds it. */
|
|
822
|
-
name: nullable(text),
|
|
823
|
-
/** Who claims it: `manual` the owner, `auto` the keyword rules; both when both do. */
|
|
824
|
-
sources: array(picklist(["manual", "auto"])),
|
|
825
|
-
created_at: time
|
|
826
|
-
});
|
|
827
|
-
|
|
828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
829
829
|
import { join as join2 } from "node:path";
|
|
830
830
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
831
831
|
var IMAGE_MODELS = [
|
|
@@ -879,7 +879,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
879
879
|
var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
|
|
880
880
|
var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
|
|
881
881
|
|
|
882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
883
883
|
var WEIGHTS = {
|
|
884
884
|
bot: 3,
|
|
885
885
|
scam: 3,
|
|
@@ -904,7 +904,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
904
904
|
var DIGITS = /\d{5,}/;
|
|
905
905
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
906
906
|
|
|
907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
908
908
|
import { existsSync as existsSync2, readFileSync, rmSync } from "node:fs";
|
|
909
909
|
import { join as join3 } from "node:path";
|
|
910
910
|
var PART = /^[\w@+-][\w.@+-]{0,99}$/;
|
|
@@ -945,6 +945,20 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
945
945
|
}, "progressOf");
|
|
946
946
|
|
|
947
947
|
export {
|
|
948
|
+
closeSuggestion,
|
|
949
|
+
task,
|
|
950
|
+
agenda,
|
|
951
|
+
attachment,
|
|
952
|
+
hitFile,
|
|
953
|
+
WEIGHTS,
|
|
954
|
+
LINK,
|
|
955
|
+
oddName,
|
|
956
|
+
conversation,
|
|
957
|
+
checkpointPath,
|
|
958
|
+
readCheckpoint,
|
|
959
|
+
saveCheckpoint,
|
|
960
|
+
progressOf,
|
|
961
|
+
tagging,
|
|
948
962
|
runBudget,
|
|
949
963
|
sentIds,
|
|
950
964
|
withWriteScope,
|
|
@@ -952,7 +966,6 @@ export {
|
|
|
952
966
|
currentOperation,
|
|
953
967
|
guardedWrite,
|
|
954
968
|
codeOf,
|
|
955
|
-
endpoint,
|
|
956
969
|
modelSettingsShape,
|
|
957
970
|
resolveModelSettings,
|
|
958
971
|
modelTarget,
|
|
@@ -975,20 +988,6 @@ export {
|
|
|
975
988
|
DEFAULT_HISTORY_LIMITS,
|
|
976
989
|
historyWindow,
|
|
977
990
|
limitBatch,
|
|
978
|
-
closeSuggestion,
|
|
979
|
-
task,
|
|
980
|
-
agenda,
|
|
981
|
-
attachment,
|
|
982
|
-
hitFile,
|
|
983
|
-
WEIGHTS,
|
|
984
|
-
LINK,
|
|
985
|
-
oddName,
|
|
986
|
-
conversation,
|
|
987
|
-
checkpointPath,
|
|
988
|
-
readCheckpoint,
|
|
989
|
-
saveCheckpoint,
|
|
990
|
-
progressOf,
|
|
991
|
-
tagging,
|
|
992
991
|
IMAGE_MODELS,
|
|
993
992
|
DEFAULT_IMAGE_MODEL,
|
|
994
993
|
imageModel,
|
|
@@ -3,17 +3,22 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
errorCodes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EA2OB75T.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
15
15
|
return value instanceof Error && typeof code === "string" && code.startsWith("commander.") && typeof exitCode === "number";
|
|
16
16
|
}, "isCommanderFailure");
|
|
17
|
+
var USAGE_REASONS = {
|
|
18
|
+
"commander.unknownCommand": "usage.unknown-command",
|
|
19
|
+
"commander.unknownOption": "usage.unknown-option"
|
|
20
|
+
};
|
|
21
|
+
var usageReason = /* @__PURE__ */ __name((code) => USAGE_REASONS[code], "usageReason");
|
|
17
22
|
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
18
23
|
var SQLITE_CORRUPT = 11;
|
|
19
24
|
var SQLITE_NOTADB = 26;
|
|
@@ -58,6 +63,7 @@ var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0
|
|
|
58
63
|
export {
|
|
59
64
|
isCliFailure,
|
|
60
65
|
isCommanderFailure,
|
|
66
|
+
usageReason,
|
|
61
67
|
failureKey,
|
|
62
68
|
sqliteCode,
|
|
63
69
|
storeDamaged,
|