@wirecat/zoom-cli 0.60.0 → 0.61.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 +7 -6
- package/dist/answers.d.ts +16 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/bin/main.js +1 -0
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{chunk-PUOBYJFI.js → all-profiles-HZLIU6RZ.js} +11 -7
- package/dist/bundle/answer-policy-GRODO2DY.js +96 -0
- package/dist/bundle/{anthropic-TT2XV74T.js → anthropic-O2YYPCVK.js} +4 -4
- package/dist/bundle/{app-server-POMYD6QV.js → app-server-YYCANTUE.js} +50 -50
- package/dist/bundle/{bun-JVDJVDHL.js → bun-UEFRULAT.js} +2 -2
- package/dist/bundle/{bun-sqlite-BBOPAQVG.js → bun-sqlite-VVYKOY7S.js} +3 -3
- package/dist/bundle/{chunk-KVPYI52N.js → chunk-2M2U43IF.js} +2 -2
- package/dist/bundle/{chunk-7GVNQOV6.js → chunk-35X6G276.js} +1 -1
- package/dist/bundle/{chunk-RH5YXXAB.js → chunk-3TGR4RDD.js} +32 -34
- package/dist/bundle/{chunk-YZZ6NBXC.js → chunk-4XI4PDEH.js} +31 -21
- package/dist/bundle/{chunk-W5EUHV3J.js → chunk-4XPIOW5L.js} +1 -1
- package/dist/bundle/{chunk-PU4FKK5T.js → chunk-5NRBNGR3.js} +2 -2
- package/dist/bundle/{chunk-LYZNVNJA.js → chunk-67WW33JB.js} +49 -24
- package/dist/bundle/{chunk-3P4LUGXI.js → chunk-6LHTWR3X.js} +2 -2
- package/dist/bundle/{chunk-SG3WSP7Y.js → chunk-6RV7KXDF.js} +7 -7
- package/dist/bundle/{chunk-VYUSEJE4.js → chunk-6SLGIPLT.js} +2 -2
- package/dist/bundle/{chunk-EOZWDEJL.js → chunk-77GJITSU.js} +2 -2
- package/dist/bundle/{chunk-72A7CIPL.js → chunk-7ATLKYBN.js} +17 -17
- package/dist/bundle/{chunk-YSZQ5SZK.js → chunk-7DMMNCY2.js} +3 -3
- package/dist/bundle/chunk-ABCHE4YP.js +217 -0
- package/dist/bundle/{chunk-G3MXAGF2.js → chunk-AOSIU5T6.js} +51 -38
- package/dist/bundle/{chunk-TAQKNWCD.js → chunk-B3PTSX5D.js} +2 -2
- package/dist/bundle/{chunk-J3N2LL37.js → chunk-B45MFBBF.js} +6 -6
- package/dist/bundle/{chunk-GNRYFESK.js → chunk-BNUNZTOU.js} +25 -25
- package/dist/bundle/{chunk-SK3K2VHF.js → chunk-BPQNTYLN.js} +388 -299
- package/dist/bundle/{chunk-LKV3NRCJ.js → chunk-CMG54Q4X.js} +120 -32
- package/dist/bundle/{chunk-DP5DX45H.js → chunk-COU66X3X.js} +7 -5
- package/dist/bundle/{chunk-NKFRV2LB.js → chunk-CUSGSXSR.js} +2 -2
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-DLAFGSTN.js} +1 -1
- package/dist/bundle/{chunk-DKIIKMSE.js → chunk-E4QPLXZT.js} +47 -47
- package/dist/bundle/{chunk-MGYFSXI5.js → chunk-E4T7IJJO.js} +26 -26
- package/dist/bundle/{chunk-AJA5ZAV6.js → chunk-F32GKBMF.js} +22 -5
- package/dist/bundle/{chunk-DN7VHENQ.js → chunk-FAOVUALC.js} +13 -13
- package/dist/bundle/{chunk-EF2RCQ3L.js → chunk-FBJC7OCI.js} +1 -1
- package/dist/bundle/{chunk-HIAO4MPA.js → chunk-FQ54A7GI.js} +1 -1
- package/dist/bundle/{chunk-EXFAA4N3.js → chunk-FXY45HU7.js} +6 -6
- package/dist/bundle/{chunk-2EVRKK75.js → chunk-GNHPYQMM.js} +2 -2
- package/dist/bundle/{chunk-M5WLBRL7.js → chunk-H5EAHMQN.js} +11 -11
- package/dist/bundle/chunk-HF233RN4.js +335 -0
- package/dist/bundle/{chunk-24DLFGES.js → chunk-HTGBUE2U.js} +2 -2
- package/dist/bundle/{chunk-RSLXLUTS.js → chunk-IKZFR645.js} +10 -10
- package/dist/bundle/chunk-JKWYXBGK.js +380 -0
- package/dist/bundle/{chunk-DAQXO6SM.js → chunk-KGZHRJ7H.js} +4 -4
- package/dist/bundle/{chunk-ZK7Y5K63.js → chunk-KPZIQKOF.js} +1 -1
- package/dist/bundle/{chunk-7T3BUWJK.js → chunk-KXYURHVE.js} +118 -95
- package/dist/bundle/{chunk-4HZRZDMC.js → chunk-KZGHGU2M.js} +4 -4
- package/dist/bundle/{chunk-2TV7UTHK.js → chunk-KZV5GU7G.js} +8 -8
- package/dist/bundle/{chunk-YIMI6O7R.js → chunk-L7VIPVHL.js} +263 -199
- package/dist/bundle/{chunk-XLJV3ZOH.js → chunk-LPJ3S6GE.js} +1 -1
- package/dist/bundle/{chunk-HBYE4EP2.js → chunk-LX6DO44O.js} +1 -1
- package/dist/bundle/{chunk-3UMXCNDI.js → chunk-LXOSBFWW.js} +7 -7
- package/dist/bundle/{chunk-KUBCUE6T.js → chunk-M3EVVGR6.js} +2 -2
- package/dist/bundle/{chunk-WVXAQVLG.js → chunk-MBMDF5EL.js} +6 -6
- package/dist/bundle/{chunk-KUBWRI5E.js → chunk-MTAVA2LS.js} +2 -2
- package/dist/bundle/{chunk-AQDWGJZT.js → chunk-MVRCLMQL.js} +39 -2
- package/dist/bundle/{chunk-UOFOMU3T.js → chunk-NVN4O5IC.js} +14 -10
- package/dist/bundle/{chunk-SKENSSY2.js → chunk-O3WVOAT7.js} +408 -420
- package/dist/bundle/{chunk-EROQ5SC7.js → chunk-OLZE27RS.js} +2 -2
- package/dist/bundle/{chunk-22UBF6U6.js → chunk-OMUX4LSS.js} +4 -4
- package/dist/bundle/{chunk-QJCVOVNR.js → chunk-OU46OTTE.js} +3 -3
- package/dist/bundle/{chunk-JBGYI5BY.js → chunk-OVVDOVLN.js} +2 -2
- package/dist/bundle/{chunk-I45V6AFG.js → chunk-P2NRA7E5.js} +2 -2
- package/dist/bundle/{chunk-7PQY4ISY.js → chunk-PCUPOGKR.js} +6 -4
- package/dist/bundle/{chunk-4MC4Z45G.js → chunk-QHT2LZRW.js} +6 -6
- package/dist/bundle/{decode-UBPIHVNG.js → chunk-RGOBGHWE.js} +21 -18
- package/dist/bundle/{chunk-UOL4ILXT.js → chunk-RSXLI5GP.js} +79 -59
- package/dist/bundle/{chunk-RNX73QCL.js → chunk-S726LZCH.js} +6 -6
- package/dist/bundle/{chunk-TB72GE55.js → chunk-SVBM6F4Z.js} +1 -1
- package/dist/bundle/{chunk-GXACHTB2.js → chunk-T7IQMYPW.js} +15 -3
- package/dist/bundle/{chunk-Q4NDCDFG.js → chunk-TD4Y5LXG.js} +25 -22
- package/dist/bundle/{chunk-V2QOLHPM.js → chunk-U4Y2QQ2D.js} +3 -3
- package/dist/bundle/{chunk-ODFIV4OS.js → chunk-UPWHCUVA.js} +617 -380
- package/dist/bundle/{chunk-E3AMUYNB.js → chunk-UYAKSUT5.js} +5 -5
- package/dist/bundle/{chunk-J5ZVGKSZ.js → chunk-VARX3SBT.js} +1 -1
- package/dist/bundle/{chunk-IFXPNXAH.js → chunk-WVYSOV3C.js} +16 -4
- package/dist/bundle/{chunk-LZBWU2IA.js → chunk-XOJGXWTK.js} +8 -8
- package/dist/bundle/{chunk-4FTPE5SB.js → chunk-XX2PDQ54.js} +31 -211
- package/dist/bundle/{chunk-D6L35XQS.js → chunk-XZ4OVTA5.js} +9 -9
- package/dist/bundle/{chunk-XAF2LHZG.js → chunk-YESOQEOB.js} +735 -826
- package/dist/bundle/{cli-WIMAOCXF.js → cli-O4LAGYXI.js} +60 -54
- package/dist/bundle/command-contract-67QKBY6M.js +38 -0
- package/dist/bundle/config-ABURZDD2.js +78 -0
- package/dist/bundle/decode-WRMZJJCR.js +20 -0
- package/dist/bundle/{dist-YYDTME5J.js → dist-SQK4GIJT.js} +14 -14
- package/dist/bundle/{echarts-4OQHS575.js → echarts-3DOOJSQR.js} +2 -2
- package/dist/bundle/{embed-7JHEPBFD.js → embed-OYRHTMFI.js} +4 -4
- package/dist/bundle/{embedder-HTRPWR6T.js → embedder-ZAYCL22W.js} +7 -7
- package/dist/bundle/{first-run-I52ADRJ2.js → first-run-QXSPIXOQ.js} +8 -8
- package/dist/bundle/first-screen-MD6HWIJW.js +36 -0
- package/dist/bundle/{folders-5ZBUQHAM.js → folders-EXQLKXVK.js} +2 -2
- package/dist/bundle/{instructions-3QZBKKPF.js → instructions-GFEOB7XJ.js} +1 -1
- package/dist/bundle/{main-64VVZ5QG.js → main-RADF3CRI.js} +17 -16
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-WSGVVZWI.js} +2 -2
- package/dist/bundle/{meetings-RD3NU6NN.js → meetings-6BIIT42H.js} +4 -4
- package/dist/bundle/{node-R2BLYUSB.js → node-A3B2YRQI.js} +2 -2
- package/dist/bundle/{node-sqlite-DGEEDBXV.js → node-sqlite-XRP5FUDY.js} +3 -3
- package/dist/bundle/{oauth-NRZMCFH3.js → oauth-YICY4AN4.js} +5 -5
- package/dist/bundle/{open-SUGCOCAU.js → open-4CNKSQRB.js} +2 -2
- package/dist/bundle/openai-YYRO3X7I.js +22 -0
- package/dist/bundle/{output-file-SXV2ANW7.js → output-file-7BXYV6OL.js} +3 -3
- package/dist/bundle/{process-IX5YWGDP.js → process-A45QXKID.js} +1 -1
- package/dist/bundle/{program-WGNTV7NS.js → program-DTP7BRTW.js} +422 -431
- package/dist/bundle/{prompt-NICXDWN3.js → prompt-5LMKO7SE.js} +3 -3
- package/dist/bundle/{recognize-6DAHO6X6.js → recognize-MB6WRGUD.js} +4 -2
- package/dist/bundle/{remote-JZ3TXP6I.js → remote-PD7WMTTS.js} +5 -5
- package/dist/bundle/{rerank-YSXWCAGZ.js → rerank-7E6GQ5Y6.js} +5 -5
- package/dist/bundle/{run-log-APHZZWC7.js → run-log-TCFK4LEC.js} +53 -53
- package/dist/bundle/{chunk-HWZXQLR5.js → serve-JBT2BWHK.js} +8 -6
- package/dist/bundle/server-CFIKEPLG.js +66 -0
- package/dist/bundle/{chunk-EH6G2LEU.js → server-H2UPGGBI.js} +43 -10
- package/dist/bundle/{services-D64U72OE.js → services-SJOTKL5V.js} +33 -26
- package/dist/bundle/{speech-QLCQAT4O.js → speech-4SL25GSC.js} +28 -5
- package/dist/bundle/{state-KAD3R27T.js → state-FVMTDZ6B.js} +4 -4
- package/dist/bundle/{store-7UNPRLZ3.js → store-DNPKBUVO.js} +13 -13
- package/dist/bundle/{store-2BHHS77S.js → store-TI77SCNL.js} +15 -15
- package/dist/bundle/store-connection-GIFWWMNO.js +76 -0
- package/dist/bundle/store-maintenance-command-WBKGF2CZ.js +55 -0
- package/dist/bundle/{streaming-AK6Q2ZGQ.js → streaming-UHAHGPH5.js} +4 -4
- package/dist/bundle/{tokens-CCM3D4ZT.js → tokens-Y2MX6JBL.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/commands.d.ts +1 -2
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -16
- package/dist/commands.js.map +1 -1
- package/dist/contract-overrides.d.ts +0 -2
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -158
- package/dist/contract-overrides.js.map +1 -1
- package/dist/login.d.ts +1 -0
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +1 -1
- package/dist/login.js.map +1 -1
- package/dist/program-bindings.d.ts +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +16 -18
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +2 -4
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js.map +1 -1
- package/dist/read-only.d.ts.map +1 -1
- package/dist/read-only.js +3 -0
- package/dist/read-only.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +1 -0
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +82 -32
- package/dist/run.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +14 -47
- package/dist/setup-commands.js.map +1 -1
- package/dist/store-commands.d.ts.map +1 -1
- package/dist/store-commands.js +4 -1
- package/dist/store-commands.js.map +1 -1
- package/dist/tokens.d.ts +15 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +40 -1
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/all-profiles-7OZPJY76.js +0 -25
- package/dist/bundle/answer-policy-PVWMA2QC.js +0 -96
- package/dist/bundle/chunk-57LT4A2E.js +0 -48
- package/dist/bundle/chunk-XMCVB4Q4.js +0 -390
- package/dist/bundle/chunk-YLBNPI7H.js +0 -2
- package/dist/bundle/command-contract-J7PDZQMC.js +0 -38
- package/dist/bundle/config-G62PBNZF.js +0 -79
- package/dist/bundle/first-screen-XNCFWOLC.js +0 -36
- package/dist/bundle/mcp-5SJXWEJW.js +0 -92
- package/dist/bundle/mcp-ZMIPDB4R.js +0 -189
- package/dist/bundle/serve-7VWL475U.js +0 -19
- package/dist/bundle/server-7LABFAA5.js +0 -53
- package/dist/bundle/server-VFXB5WRG.js +0 -66
- package/dist/bundle/store-connection-QTMLZ7LR.js +0 -76
- package/dist/bundle/store-maintenance-command-ND6PQCVZ.js +0 -54
- package/dist/mcp-command.d.ts +0 -33
- package/dist/mcp-command.d.ts.map +0 -1
- package/dist/mcp-command.js +0 -143
- package/dist/mcp-command.js.map +0 -1
- package/dist/mcp.d.ts +0 -30
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -110
- package/dist/mcp.js.map +0 -1
- /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-62EDJKGP.js} +0 -0
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BNUNZTOU.js";
|
|
24
24
|
import {
|
|
25
25
|
CHART_KINDS,
|
|
26
26
|
CHART_SIZE,
|
|
@@ -29,32 +29,30 @@ import {
|
|
|
29
29
|
chartRenderer,
|
|
30
30
|
chatChart,
|
|
31
31
|
keepRefreshedRefs,
|
|
32
|
+
mcpUrlOf,
|
|
32
33
|
refuseWriteBeforeConnecting,
|
|
33
34
|
registerPrompts,
|
|
34
35
|
stdinFieldOf,
|
|
35
36
|
syncsFirst
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import {
|
|
38
|
-
mcpUrlOf
|
|
39
|
-
} from "./chunk-57LT4A2E.js";
|
|
37
|
+
} from "./chunk-CMG54Q4X.js";
|
|
40
38
|
import {
|
|
41
39
|
agentJson,
|
|
42
40
|
skillResource
|
|
43
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-FAOVUALC.js";
|
|
44
42
|
import {
|
|
45
43
|
instructions
|
|
46
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LPJ3S6GE.js";
|
|
47
45
|
import {
|
|
48
46
|
mcpHttpMarker
|
|
49
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-OMUX4LSS.js";
|
|
50
48
|
import {
|
|
51
49
|
answeredWire
|
|
52
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FBJC7OCI.js";
|
|
53
51
|
import {
|
|
54
52
|
StdioServerTransport,
|
|
55
53
|
callerOf,
|
|
56
54
|
serveStdio
|
|
57
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2M2U43IF.js";
|
|
58
56
|
import {
|
|
59
57
|
McpServer,
|
|
60
58
|
ResourceTemplate
|
|
@@ -62,21 +60,21 @@ import {
|
|
|
62
60
|
import {
|
|
63
61
|
connectedFor,
|
|
64
62
|
guardFor
|
|
65
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-E4T7IJJO.js";
|
|
66
64
|
import {
|
|
67
65
|
lackedNeed,
|
|
68
66
|
wholeList
|
|
69
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-TD4Y5LXG.js";
|
|
70
68
|
import {
|
|
71
69
|
capability,
|
|
72
70
|
dateWindow,
|
|
73
71
|
imageSize,
|
|
74
72
|
servicesFor,
|
|
75
73
|
storedDeps
|
|
76
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-YESOQEOB.js";
|
|
77
75
|
import {
|
|
78
76
|
findCommand
|
|
79
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-QHT2LZRW.js";
|
|
80
78
|
import {
|
|
81
79
|
DEFAULT_OUTPUT_BYTES,
|
|
82
80
|
changesAuthorityAt,
|
|
@@ -89,33 +87,33 @@ import {
|
|
|
89
87
|
rootOf2 as rootOf,
|
|
90
88
|
sealed,
|
|
91
89
|
snakeKeys
|
|
92
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-AOSIU5T6.js";
|
|
93
91
|
import {
|
|
94
92
|
readOnlyLockOf
|
|
95
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-6LHTWR3X.js";
|
|
96
94
|
import {
|
|
97
95
|
withCaller
|
|
98
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-XOJGXWTK.js";
|
|
99
97
|
import {
|
|
100
98
|
typedCommand
|
|
101
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-4XI4PDEH.js";
|
|
102
100
|
import {
|
|
103
101
|
isCliFailure
|
|
104
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-77GJITSU.js";
|
|
105
103
|
import {
|
|
106
104
|
levelFor,
|
|
107
105
|
readKeysForCommand
|
|
108
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-CUSGSXSR.js";
|
|
109
107
|
import {
|
|
110
108
|
warmEmbedders
|
|
111
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-B45MFBBF.js";
|
|
112
110
|
import {
|
|
113
111
|
openStore,
|
|
114
112
|
pdfPreviewLimits
|
|
115
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-UPWHCUVA.js";
|
|
116
114
|
import {
|
|
117
115
|
timezoneOf
|
|
118
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-NVN4O5IC.js";
|
|
119
117
|
import {
|
|
120
118
|
CliError,
|
|
121
119
|
description,
|
|
@@ -133,15 +131,15 @@ import {
|
|
|
133
131
|
strictObject,
|
|
134
132
|
string,
|
|
135
133
|
visibleControls
|
|
136
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-L7VIPVHL.js";
|
|
137
135
|
import {
|
|
138
136
|
__name
|
|
139
137
|
} from "./chunk-ZVVMGPBJ.js";
|
|
140
138
|
|
|
141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
142
140
|
import { randomUUID } from "node:crypto";
|
|
143
141
|
|
|
144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
145
143
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
146
144
|
let held;
|
|
147
145
|
return {
|
|
@@ -160,7 +158,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
160
158
|
};
|
|
161
159
|
}, "agentLog");
|
|
162
160
|
|
|
163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
164
162
|
var LISTED = 100;
|
|
165
163
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
166
164
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -198,7 +196,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
198
196
|
});
|
|
199
197
|
}, "registerResources");
|
|
200
198
|
|
|
201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
202
200
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
203
201
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
204
202
|
var MessengerSession = class {
|
|
@@ -273,7 +271,7 @@ var MessengerSession = class {
|
|
|
273
271
|
}
|
|
274
272
|
};
|
|
275
273
|
|
|
276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
277
275
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
278
276
|
const _command = messenger.app.command;
|
|
279
277
|
return {
|
|
@@ -327,7 +325,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
327
325
|
};
|
|
328
326
|
}, "attachmentsTools");
|
|
329
327
|
|
|
330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
331
329
|
var PHOTO_LIMIT = 512 * 1024;
|
|
332
330
|
var IMAGE_TYPES = [
|
|
333
331
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -381,7 +379,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
381
379
|
return new Uint8Array(Buffer.concat(chunks));
|
|
382
380
|
}, "readUpTo");
|
|
383
381
|
|
|
384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
385
383
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
386
384
|
stats_charts: tool({
|
|
387
385
|
title: "A chart from a chat's statistics",
|
|
@@ -418,14 +416,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
418
416
|
})
|
|
419
417
|
}), "statsTools");
|
|
420
418
|
|
|
421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
422
420
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
423
421
|
...messagesPhotoTools(messenger),
|
|
424
422
|
...attachmentsTools(messenger),
|
|
425
423
|
...statsTools(messenger)
|
|
426
424
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
427
425
|
|
|
428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
429
427
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
430
428
|
"streams",
|
|
431
429
|
"stdin",
|
|
@@ -749,7 +747,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
749
747
|
}, "serveOverStdio");
|
|
750
748
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
751
749
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
752
|
-
const { serveOverHttp } = await import("./serve-
|
|
750
|
+
const { serveOverHttp } = await import("./serve-JBT2BWHK.js");
|
|
753
751
|
const appName = messenger.app.command;
|
|
754
752
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
755
753
|
const listening = await serveOverHttp(build, {
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WVYSOV3C.js";
|
|
9
9
|
import {
|
|
10
10
|
filesPresent,
|
|
11
11
|
sharedModelsDirectory
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PCUPOGKR.js";
|
|
13
13
|
import {
|
|
14
14
|
TASK_ORIGINS,
|
|
15
15
|
TASK_STATES,
|
|
16
16
|
TASK_TYPES
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6RV7KXDF.js";
|
|
18
18
|
import {
|
|
19
19
|
TAG_TYPES
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OVVDOVLN.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError,
|
|
23
23
|
array,
|
|
@@ -33,18 +33,18 @@ import {
|
|
|
33
33
|
strictObject,
|
|
34
34
|
traceIdOf,
|
|
35
35
|
writeSecurely
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-L7VIPVHL.js";
|
|
37
37
|
import {
|
|
38
38
|
__name
|
|
39
39
|
} from "./chunk-ZVVMGPBJ.js";
|
|
40
40
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
42
42
|
import { randomUUID } from "node:crypto";
|
|
43
43
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
44
44
|
import { userInfo } from "node:os";
|
|
45
45
|
import { join, sep } from "node:path";
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
48
48
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
49
49
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
50
50
|
var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -57,7 +57,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
57
57
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
58
58
|
}), "snakeLogger");
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
61
61
|
var diagnostic = {
|
|
62
62
|
event: true,
|
|
63
63
|
operation: true,
|
|
@@ -127,7 +127,7 @@ var LOG_ATTRIBUTES = [
|
|
|
127
127
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
128
128
|
].sort();
|
|
129
129
|
|
|
130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
131
131
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
132
132
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
133
133
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -480,7 +480,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
480
480
|
};
|
|
481
481
|
}, "metadataOf");
|
|
482
482
|
|
|
483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
484
484
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
485
485
|
import { randomBytes } from "node:crypto";
|
|
486
486
|
var scopes = new AsyncLocalStorage();
|
|
@@ -518,7 +518,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
518
518
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
519
519
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
520
520
|
|
|
521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
522
522
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
523
523
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
524
524
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -532,7 +532,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
532
532
|
return ms;
|
|
533
533
|
}, "parseDuration");
|
|
534
534
|
|
|
535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
536
536
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
537
537
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
538
538
|
messageId: message.id,
|
|
@@ -638,7 +638,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
|
|
|
638
638
|
}, "guardedWrite");
|
|
639
639
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
640
640
|
|
|
641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
642
642
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
643
643
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
644
644
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -797,7 +797,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
797
797
|
var vectorModelKey = /* @__PURE__ */ __name((model) => `local:${model.id}:${model.dims}`, "vectorModelKey");
|
|
798
798
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
799
799
|
|
|
800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
801
801
|
import { join as join2 } from "node:path";
|
|
802
802
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
803
803
|
var IMAGE_MODELS = [
|
|
@@ -851,7 +851,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
851
851
|
var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
|
|
852
852
|
var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
|
|
853
853
|
|
|
854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
855
855
|
var closeSuggestion = strictObject({
|
|
856
856
|
as: picklist(["done", "dismissed"]),
|
|
857
857
|
/** The agent's name. */
|
|
@@ -893,7 +893,7 @@ var task = strictObject({
|
|
|
893
893
|
updated_at: optional(time)
|
|
894
894
|
});
|
|
895
895
|
|
|
896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
897
897
|
var agendaChat = strictObject({
|
|
898
898
|
chat: reference,
|
|
899
899
|
title: nullable(text),
|
|
@@ -904,7 +904,17 @@ var agendaChat = strictObject({
|
|
|
904
904
|
/** `null` when the newest message is not stored, or the messenger did not say who sent it. */
|
|
905
905
|
last_from_owner: nullable(boolean()),
|
|
906
906
|
/** Open tasks whose source is in this chat. */
|
|
907
|
-
open_tasks: array(id)
|
|
907
|
+
open_tasks: array(id),
|
|
908
|
+
/** `unknown` means nothing ever fetched the chat's history; `partial` that the store holds only part of it. */
|
|
909
|
+
completeness: strictObject({
|
|
910
|
+
state: picklist(["complete", "partial", "unknown"]),
|
|
911
|
+
up_to_date: nullable(boolean()),
|
|
912
|
+
gaps: boolean(),
|
|
913
|
+
reaches_start: boolean(),
|
|
914
|
+
fetched_at: nullable(time)
|
|
915
|
+
}),
|
|
916
|
+
/** What the store holds of the chat: the count and the span, never the text. */
|
|
917
|
+
held: strictObject({ messages: number(), oldest_at: nullable(time), newest_at: nullable(time) })
|
|
908
918
|
});
|
|
909
919
|
var agenda = strictObject({
|
|
910
920
|
at: time,
|
|
@@ -953,7 +963,7 @@ var agenda = strictObject({
|
|
|
953
963
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
954
964
|
});
|
|
955
965
|
|
|
956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
957
967
|
var conversation = strictObject({
|
|
958
968
|
id,
|
|
959
969
|
chat: reference,
|
|
@@ -968,7 +978,7 @@ var conversation = strictObject({
|
|
|
968
978
|
rules_version: count
|
|
969
979
|
});
|
|
970
980
|
|
|
971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
972
982
|
var attachment = strictObject({
|
|
973
983
|
/** The message it came with, as a locator; absent inside that message. */
|
|
974
984
|
message: optional(reference),
|
|
@@ -1005,7 +1015,7 @@ var attachment = strictObject({
|
|
|
1005
1015
|
}))))
|
|
1006
1016
|
});
|
|
1007
1017
|
|
|
1008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
1009
1019
|
var tagging = strictObject({
|
|
1010
1020
|
tag: text,
|
|
1011
1021
|
type: picklist(TAG_TYPES),
|
|
@@ -1018,7 +1028,7 @@ var tagging = strictObject({
|
|
|
1018
1028
|
created_at: time
|
|
1019
1029
|
});
|
|
1020
1030
|
|
|
1021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
1022
1032
|
var WEIGHTS = {
|
|
1023
1033
|
bot: 3,
|
|
1024
1034
|
scam: 3,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7VIPVHL.js";
|
|
6
6
|
import {
|
|
7
7
|
importFrom
|
|
8
8
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7VIPVHL.js";
|
|
6
6
|
import {
|
|
7
7
|
importFrom
|
|
8
8
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -94,10 +94,9 @@ var decodeOgg = /* @__PURE__ */ __name(async (bytes) => {
|
|
|
94
94
|
await decoder.ready;
|
|
95
95
|
try {
|
|
96
96
|
const { channelData, sampleRate, samplesDecoded } = await decoder.decodeFile(bytes);
|
|
97
|
-
|
|
98
|
-
if (!samples || samplesDecoded === 0)
|
|
97
|
+
if (!channelData[0] || samplesDecoded === 0)
|
|
99
98
|
throw new Error("no Ogg Opus audio in it");
|
|
100
|
-
return { samples, rate: sampleRate };
|
|
99
|
+
return channelData.map((samples) => ({ samples, rate: sampleRate }));
|
|
101
100
|
} finally {
|
|
102
101
|
decoder.free();
|
|
103
102
|
}
|
|
@@ -120,6 +119,37 @@ var detector = /* @__PURE__ */ __name((vadModel) => ({
|
|
|
120
119
|
debug: 0,
|
|
121
120
|
bufferSizeInSeconds: 30
|
|
122
121
|
}), "detector");
|
|
122
|
+
var cut = /* @__PURE__ */ __name((vad, pcm, each) => {
|
|
123
|
+
vad.reset();
|
|
124
|
+
const last = Math.max(0, pcm.length - LEAD);
|
|
125
|
+
const drain = /* @__PURE__ */ __name(() => {
|
|
126
|
+
for (; !vad.isEmpty(); vad.pop()) {
|
|
127
|
+
const { start, samples } = vad.front();
|
|
128
|
+
each({
|
|
129
|
+
start: Math.min(last, Math.max(0, start - LEAD)) / SAMPLE_RATE,
|
|
130
|
+
end: Math.min(last, Math.max(0, start + samples.length - LEAD)) / SAMPLE_RATE,
|
|
131
|
+
samples
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}, "drain");
|
|
135
|
+
for (let i = 0; i + WINDOW <= pcm.length; i += WINDOW) {
|
|
136
|
+
vad.acceptWaveform(pcm.subarray(i, i + WINDOW));
|
|
137
|
+
drain();
|
|
138
|
+
}
|
|
139
|
+
vad.flush();
|
|
140
|
+
drain();
|
|
141
|
+
}, "cut");
|
|
142
|
+
var openSpeechCutter = /* @__PURE__ */ __name((vadModel) => {
|
|
143
|
+
const vad = loadSherpa().createVad(detector(vadModel));
|
|
144
|
+
return {
|
|
145
|
+
cut: /* @__PURE__ */ __name((pcm) => {
|
|
146
|
+
const spans = [];
|
|
147
|
+
cut(vad, pcm, ({ start, end }) => spans.push({ start, end }));
|
|
148
|
+
return spans;
|
|
149
|
+
}, "cut"),
|
|
150
|
+
free: /* @__PURE__ */ __name(() => vad.free(), "free")
|
|
151
|
+
};
|
|
152
|
+
}, "openSpeechCutter");
|
|
123
153
|
var loaded;
|
|
124
154
|
var loadSherpa = /* @__PURE__ */ __name(() => {
|
|
125
155
|
if (loaded)
|
|
@@ -156,24 +186,18 @@ var openRecognizer = /* @__PURE__ */ __name((model, path, vadModel) => {
|
|
|
156
186
|
stream.free();
|
|
157
187
|
}
|
|
158
188
|
}, "piece");
|
|
189
|
+
const pieces = /* @__PURE__ */ __name((pcm) => {
|
|
190
|
+
const heard = [];
|
|
191
|
+
cut(vad, pcm, ({ start, end, samples }) => {
|
|
192
|
+
const text = piece(samples);
|
|
193
|
+
if (text)
|
|
194
|
+
heard.push({ start, end, text });
|
|
195
|
+
});
|
|
196
|
+
return heard;
|
|
197
|
+
}, "pieces");
|
|
159
198
|
return {
|
|
160
|
-
recognize: /* @__PURE__ */ __name((pcm) => {
|
|
161
|
-
|
|
162
|
-
const parts = [];
|
|
163
|
-
const drain = /* @__PURE__ */ __name(() => {
|
|
164
|
-
while (!vad.isEmpty()) {
|
|
165
|
-
parts.push(piece(vad.front().samples));
|
|
166
|
-
vad.pop();
|
|
167
|
-
}
|
|
168
|
-
}, "drain");
|
|
169
|
-
for (let i = 0; i + WINDOW <= pcm.length; i += WINDOW) {
|
|
170
|
-
vad.acceptWaveform(pcm.subarray(i, i + WINDOW));
|
|
171
|
-
drain();
|
|
172
|
-
}
|
|
173
|
-
vad.flush();
|
|
174
|
-
drain();
|
|
175
|
-
return parts.filter(Boolean).join(" ");
|
|
176
|
-
}, "recognize"),
|
|
199
|
+
recognize: /* @__PURE__ */ __name((pcm) => pieces(pcm).map(({ text }) => text).join(" "), "recognize"),
|
|
200
|
+
pieces,
|
|
177
201
|
free: /* @__PURE__ */ __name(() => {
|
|
178
202
|
vad.free();
|
|
179
203
|
engine.free();
|
|
@@ -186,6 +210,7 @@ export {
|
|
|
186
210
|
toModelRate,
|
|
187
211
|
decodeOgg,
|
|
188
212
|
detector,
|
|
213
|
+
openSpeechCutter,
|
|
189
214
|
loadSherpa,
|
|
190
215
|
openRecognizer
|
|
191
216
|
};
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7VIPVHL.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7VIPVHL.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
11
11
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
12
|
var TASK_STATES = ["open", "done", "dismissed"];
|
|
13
13
|
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
@@ -20,7 +20,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
20
20
|
}
|
|
21
21
|
__name(closeTask, "closeTask");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
24
24
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
25
25
|
async function find(id) {
|
|
26
26
|
const task = await store.get(id);
|
|
@@ -80,22 +80,22 @@ function median(values) {
|
|
|
80
80
|
}
|
|
81
81
|
__name(median, "median");
|
|
82
82
|
|
|
83
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
83
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
84
84
|
function matches(task, filter) {
|
|
85
85
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
86
86
|
}
|
|
87
87
|
__name(matches, "matches");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
90
90
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
91
|
-
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed"];
|
|
91
|
+
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
92
92
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
93
93
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
94
94
|
var MEMORY_SCOPES = ["personal", "work"];
|
|
95
95
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
96
96
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
97
97
|
|
|
98
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
98
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
99
99
|
var LINK_KINDS = [
|
|
100
100
|
"links-to",
|
|
101
101
|
"blocked-by",
|
|
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
timezoneOf,
|
|
5
5
|
wallTime
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NVN4O5IC.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
isCliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L7VIPVHL.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
errorCodes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7VIPVHL.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
11
11
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
12
12
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
13
13
|
const { code, exitCode } = value ?? {};
|