@wirecat/zoom-cli 0.60.1 → 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 +3 -3
- package/dist/answers.d.ts +16 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{chunk-3R437ICM.js → all-profiles-HZLIU6RZ.js} +11 -7
- package/dist/bundle/answer-policy-GRODO2DY.js +96 -0
- package/dist/bundle/{anthropic-CSLAACWX.js → anthropic-O2YYPCVK.js} +4 -4
- package/dist/bundle/{app-server-RYYXX6QV.js → app-server-YYCANTUE.js} +50 -50
- package/dist/bundle/{bun-JVDJVDHL.js → bun-UEFRULAT.js} +2 -2
- package/dist/bundle/{bun-sqlite-B5CZHAV4.js → bun-sqlite-VVYKOY7S.js} +3 -3
- package/dist/bundle/{chunk-KNAS4VEA.js → chunk-2M2U43IF.js} +2 -2
- package/dist/bundle/{chunk-QKSCDALS.js → chunk-35X6G276.js} +1 -1
- package/dist/bundle/{chunk-PPHUBORC.js → chunk-3TGR4RDD.js} +32 -34
- package/dist/bundle/{chunk-WEUXLXOZ.js → chunk-4XI4PDEH.js} +31 -21
- package/dist/bundle/{chunk-W5EUHV3J.js → chunk-4XPIOW5L.js} +1 -1
- package/dist/bundle/{chunk-XS72YFPV.js → chunk-5NRBNGR3.js} +2 -2
- package/dist/bundle/{chunk-VVKHF6VJ.js → chunk-67WW33JB.js} +49 -24
- package/dist/bundle/{chunk-KYUIU5UR.js → chunk-6LHTWR3X.js} +2 -2
- package/dist/bundle/{chunk-K6NPOZUP.js → chunk-6RV7KXDF.js} +7 -7
- package/dist/bundle/{chunk-46R2JTGO.js → chunk-6SLGIPLT.js} +2 -2
- package/dist/bundle/{chunk-IQENQXUJ.js → chunk-77GJITSU.js} +2 -2
- package/dist/bundle/{chunk-BO7J5Z3T.js → chunk-7ATLKYBN.js} +17 -17
- package/dist/bundle/{chunk-VJBVNDFR.js → chunk-7DMMNCY2.js} +3 -3
- package/dist/bundle/chunk-ABCHE4YP.js +217 -0
- package/dist/bundle/{chunk-Y3YURIZF.js → chunk-AOSIU5T6.js} +51 -38
- package/dist/bundle/{chunk-HYZ545ON.js → chunk-B3PTSX5D.js} +2 -2
- package/dist/bundle/{chunk-GEVHI226.js → chunk-B45MFBBF.js} +6 -6
- package/dist/bundle/{chunk-6BJQBVMN.js → chunk-BNUNZTOU.js} +25 -25
- package/dist/bundle/{chunk-ZDRDCANC.js → chunk-BPQNTYLN.js} +388 -299
- package/dist/bundle/{chunk-VLE3FWE3.js → chunk-CMG54Q4X.js} +120 -32
- package/dist/bundle/{chunk-RACSKYNX.js → chunk-COU66X3X.js} +7 -5
- package/dist/bundle/{chunk-AOZGGGUK.js → chunk-CUSGSXSR.js} +2 -2
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-DLAFGSTN.js} +1 -1
- package/dist/bundle/{chunk-V53IB5AU.js → chunk-E4QPLXZT.js} +47 -47
- package/dist/bundle/{chunk-EUHQ5D4K.js → chunk-E4T7IJJO.js} +26 -26
- package/dist/bundle/{chunk-3LBA63D5.js → chunk-F32GKBMF.js} +22 -5
- package/dist/bundle/{chunk-YEZQ7SD7.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-ES6UWVTM.js → chunk-FXY45HU7.js} +6 -6
- package/dist/bundle/{chunk-REC3AZP6.js → chunk-GNHPYQMM.js} +2 -2
- package/dist/bundle/{chunk-TY5PBEH2.js → chunk-H5EAHMQN.js} +11 -11
- package/dist/bundle/chunk-HF233RN4.js +335 -0
- package/dist/bundle/{chunk-RUEPZTNA.js → chunk-HTGBUE2U.js} +2 -2
- package/dist/bundle/{chunk-HAUAEGGI.js → chunk-IKZFR645.js} +10 -10
- package/dist/bundle/chunk-JKWYXBGK.js +380 -0
- package/dist/bundle/{chunk-EN5DBDKW.js → chunk-KGZHRJ7H.js} +4 -4
- package/dist/bundle/{chunk-ZK7Y5K63.js → chunk-KPZIQKOF.js} +1 -1
- package/dist/bundle/{chunk-PAEBFJUC.js → chunk-KXYURHVE.js} +118 -95
- package/dist/bundle/{chunk-IRX2YVAH.js → chunk-KZGHGU2M.js} +4 -4
- package/dist/bundle/{chunk-ZXQCA3ZW.js → chunk-KZV5GU7G.js} +8 -8
- package/dist/bundle/{chunk-R4SRXI7M.js → chunk-L7VIPVHL.js} +166 -102
- 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-N27LOY3D.js → chunk-LXOSBFWW.js} +7 -7
- package/dist/bundle/{chunk-KXEC5FVT.js → chunk-M3EVVGR6.js} +2 -2
- package/dist/bundle/{chunk-YLATWUE7.js → chunk-MBMDF5EL.js} +6 -6
- package/dist/bundle/{chunk-AZZPMHP2.js → chunk-MTAVA2LS.js} +2 -2
- package/dist/bundle/{chunk-7IDNHVJS.js → chunk-MVRCLMQL.js} +2 -2
- package/dist/bundle/{chunk-LVHZQCP4.js → chunk-NVN4O5IC.js} +14 -10
- package/dist/bundle/{chunk-4TCQT57W.js → chunk-O3WVOAT7.js} +408 -420
- package/dist/bundle/{chunk-UWVNY5CA.js → chunk-OLZE27RS.js} +2 -2
- package/dist/bundle/{chunk-XX7KVQIG.js → chunk-OMUX4LSS.js} +4 -4
- package/dist/bundle/{chunk-IQSBMAYB.js → chunk-OU46OTTE.js} +3 -3
- package/dist/bundle/{chunk-Z4D6M62I.js → chunk-OVVDOVLN.js} +2 -2
- package/dist/bundle/{chunk-WB7MQHUI.js → chunk-P2NRA7E5.js} +2 -2
- package/dist/bundle/{chunk-PEMLI3T7.js → chunk-PCUPOGKR.js} +6 -4
- package/dist/bundle/{chunk-OEEMCNAO.js → chunk-QHT2LZRW.js} +6 -6
- package/dist/bundle/{decode-CTQJQYNU.js → chunk-RGOBGHWE.js} +21 -18
- package/dist/bundle/{chunk-Q7U627RY.js → chunk-RSXLI5GP.js} +79 -59
- package/dist/bundle/{chunk-LPY2ISJK.js → chunk-S726LZCH.js} +6 -6
- package/dist/bundle/{chunk-PATM7JGR.js → chunk-SVBM6F4Z.js} +1 -1
- package/dist/bundle/{chunk-X7YPTYM4.js → chunk-T7IQMYPW.js} +15 -3
- package/dist/bundle/{chunk-WFT2GGFH.js → chunk-TD4Y5LXG.js} +25 -22
- package/dist/bundle/{chunk-FZMRHNOP.js → chunk-U4Y2QQ2D.js} +3 -3
- package/dist/bundle/{chunk-CGCJ6P3A.js → chunk-UPWHCUVA.js} +617 -380
- package/dist/bundle/{chunk-FWJ3Q7NO.js → chunk-UYAKSUT5.js} +5 -5
- package/dist/bundle/{chunk-LPDYI5GR.js → chunk-VARX3SBT.js} +1 -1
- package/dist/bundle/{chunk-WWNZS7ZY.js → chunk-WVYSOV3C.js} +16 -4
- package/dist/bundle/{chunk-VKUS2V4L.js → chunk-XOJGXWTK.js} +8 -8
- package/dist/bundle/{chunk-OBUKZ2ZM.js → chunk-XX2PDQ54.js} +31 -211
- package/dist/bundle/{chunk-43BX56ZI.js → chunk-XZ4OVTA5.js} +9 -9
- package/dist/bundle/{chunk-Z5H47R4G.js → chunk-YESOQEOB.js} +735 -826
- package/dist/bundle/{cli-CYKEKT5P.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-YLSQKPPY.js → dist-SQK4GIJT.js} +14 -14
- package/dist/bundle/{echarts-4OQHS575.js → echarts-3DOOJSQR.js} +2 -2
- package/dist/bundle/{embed-P2BKRRJD.js → embed-OYRHTMFI.js} +4 -4
- package/dist/bundle/{embedder-HC6ZARP5.js → embedder-ZAYCL22W.js} +7 -7
- package/dist/bundle/{first-run-UERFFXBV.js → first-run-QXSPIXOQ.js} +8 -8
- package/dist/bundle/first-screen-MD6HWIJW.js +36 -0
- package/dist/bundle/{folders-RSLPTZLJ.js → folders-EXQLKXVK.js} +2 -2
- package/dist/bundle/{instructions-3QZBKKPF.js → instructions-GFEOB7XJ.js} +1 -1
- package/dist/bundle/{main-2T6D77JC.js → main-RADF3CRI.js} +16 -16
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-WSGVVZWI.js} +2 -2
- package/dist/bundle/{meetings-ZIDSQZBJ.js → meetings-6BIIT42H.js} +4 -4
- package/dist/bundle/{node-R2BLYUSB.js → node-A3B2YRQI.js} +2 -2
- package/dist/bundle/{node-sqlite-7CGHAHIS.js → node-sqlite-XRP5FUDY.js} +3 -3
- package/dist/bundle/{oauth-UBCYXTWV.js → oauth-YICY4AN4.js} +5 -5
- package/dist/bundle/{open-AWUB4Q7Z.js → open-4CNKSQRB.js} +2 -2
- package/dist/bundle/openai-YYRO3X7I.js +22 -0
- package/dist/bundle/{output-file-SN22HAVL.js → output-file-7BXYV6OL.js} +3 -3
- package/dist/bundle/{process-IX5YWGDP.js → process-A45QXKID.js} +1 -1
- package/dist/bundle/{program-STYPTNT3.js → program-DTP7BRTW.js} +415 -428
- package/dist/bundle/{prompt-MAYUHEGN.js → prompt-5LMKO7SE.js} +3 -3
- package/dist/bundle/{recognize-FVTNXRTF.js → recognize-MB6WRGUD.js} +4 -2
- package/dist/bundle/{remote-WCPRU73L.js → remote-PD7WMTTS.js} +5 -5
- package/dist/bundle/{rerank-6CBLZBCV.js → rerank-7E6GQ5Y6.js} +5 -5
- package/dist/bundle/{run-log-G4WZTOBW.js → run-log-TCFK4LEC.js} +53 -53
- package/dist/bundle/{chunk-XNUFDYR6.js → serve-JBT2BWHK.js} +8 -6
- package/dist/bundle/server-CFIKEPLG.js +66 -0
- package/dist/bundle/{chunk-INARC5O7.js → server-H2UPGGBI.js} +43 -10
- package/dist/bundle/{services-326Z3TNE.js → services-SJOTKL5V.js} +33 -26
- package/dist/bundle/{speech-KSZ7RKM3.js → speech-4SL25GSC.js} +28 -5
- package/dist/bundle/{state-EPB3L2JM.js → state-FVMTDZ6B.js} +4 -4
- package/dist/bundle/{store-KO242JBK.js → store-DNPKBUVO.js} +13 -13
- package/dist/bundle/{store-7WX7SW2R.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-M6VDKBBH.js → streaming-UHAHGPH5.js} +4 -4
- package/dist/bundle/{tokens-BTNXHR7T.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/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/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 +8 -46
- 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/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/all-profiles-E6KXASLY.js +0 -25
- package/dist/bundle/answer-policy-YWCC55NB.js +0 -96
- package/dist/bundle/chunk-DBSWVZES.js +0 -48
- package/dist/bundle/chunk-WYRYLBST.js +0 -390
- package/dist/bundle/chunk-YLBNPI7H.js +0 -2
- package/dist/bundle/command-contract-P45QCCXM.js +0 -38
- package/dist/bundle/config-JYKTLEA3.js +0 -79
- package/dist/bundle/first-screen-VFIS7FX3.js +0 -36
- package/dist/bundle/mcp-4VHVUMCR.js +0 -92
- package/dist/bundle/mcp-6CLW2IZM.js +0 -189
- package/dist/bundle/serve-3IDUVTZL.js +0 -19
- package/dist/bundle/server-7GU36TER.js +0 -66
- package/dist/bundle/server-VHRS5UAL.js +0 -53
- package/dist/bundle/store-connection-K3MNDCQQ.js +0 -76
- package/dist/bundle/store-maintenance-command-GJDJYI2U.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
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E4T7IJJO.js";
|
|
7
7
|
import {
|
|
8
8
|
chatEventAnswer,
|
|
9
9
|
memberAnswer,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
serveRelay,
|
|
13
13
|
typedQuery,
|
|
14
14
|
withQuery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TD4Y5LXG.js";
|
|
16
16
|
import {
|
|
17
17
|
holdLock,
|
|
18
18
|
lockPath,
|
|
19
19
|
releaseLock,
|
|
20
20
|
servingProfiles,
|
|
21
21
|
takeLock
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OU46OTTE.js";
|
|
23
23
|
import {
|
|
24
24
|
RULES_VERSION,
|
|
25
25
|
applyTaskRulesOnArrival,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
senderIsMe,
|
|
30
30
|
servicesFor,
|
|
31
31
|
syncsOneChat
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-YESOQEOB.js";
|
|
33
33
|
import {
|
|
34
34
|
Command,
|
|
35
35
|
LOCAL_READ,
|
|
@@ -53,38 +53,38 @@ import {
|
|
|
53
53
|
snakeKeys,
|
|
54
54
|
storeTable,
|
|
55
55
|
withoutProviderRefs
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-AOSIU5T6.js";
|
|
57
57
|
import {
|
|
58
58
|
envName
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-6LHTWR3X.js";
|
|
60
60
|
import {
|
|
61
61
|
holdersOf
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-4XPIOW5L.js";
|
|
63
63
|
import {
|
|
64
64
|
codeOf,
|
|
65
65
|
currentRun
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-4XI4PDEH.js";
|
|
67
67
|
import {
|
|
68
68
|
failureKey
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-77GJITSU.js";
|
|
70
70
|
import {
|
|
71
71
|
renderMessages
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-B3PTSX5D.js";
|
|
73
73
|
import {
|
|
74
74
|
levelFor
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-CUSGSXSR.js";
|
|
76
76
|
import {
|
|
77
77
|
readSecret
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-7DMMNCY2.js";
|
|
79
79
|
import {
|
|
80
80
|
checkedOptions,
|
|
81
81
|
range
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-GNHPYQMM.js";
|
|
83
83
|
import {
|
|
84
84
|
messagesFor,
|
|
85
85
|
systemFor,
|
|
86
86
|
validateImages
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-P2NRA7E5.js";
|
|
88
88
|
import {
|
|
89
89
|
MIGRATIONS,
|
|
90
90
|
drainNoteIndex,
|
|
@@ -111,20 +111,20 @@ import {
|
|
|
111
111
|
storeClients,
|
|
112
112
|
storeContents,
|
|
113
113
|
vectorIndexCounts
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-UPWHCUVA.js";
|
|
115
115
|
import {
|
|
116
116
|
formatLocator,
|
|
117
117
|
parseLocator
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-FXY45HU7.js";
|
|
119
119
|
import {
|
|
120
120
|
storePath
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-M3EVVGR6.js";
|
|
122
122
|
import {
|
|
123
123
|
openCache
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-MBMDF5EL.js";
|
|
125
125
|
import {
|
|
126
126
|
queryFieldsOf
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-NVN4O5IC.js";
|
|
128
128
|
import {
|
|
129
129
|
CliError,
|
|
130
130
|
Credentials,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
trim,
|
|
154
154
|
union,
|
|
155
155
|
writeSecurely
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-L7VIPVHL.js";
|
|
157
157
|
import {
|
|
158
158
|
__commonJS,
|
|
159
159
|
__name,
|
|
@@ -5493,11 +5493,11 @@ var require_liquid_node = __commonJS({
|
|
|
5493
5493
|
}
|
|
5494
5494
|
});
|
|
5495
5495
|
|
|
5496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5496
|
+
// 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/cli/messenger/store-maintenance-command.js
|
|
5497
5497
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5498
5498
|
import { dirname, resolve } from "node:path";
|
|
5499
5499
|
|
|
5500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5500
|
+
// 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/sealed.js
|
|
5501
5501
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5502
5502
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5503
5503
|
import { Transform } from "node:stream";
|
|
@@ -5604,7 +5604,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5604
5604
|
renameSync(pending, to);
|
|
5605
5605
|
}, "unsealFile");
|
|
5606
5606
|
|
|
5607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5607
|
+
// 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/compatibility.js
|
|
5608
5608
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5609
5609
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5610
5610
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5628,7 +5628,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5628
5628
|
};
|
|
5629
5629
|
}, "compatibilityOf");
|
|
5630
5630
|
|
|
5631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5631
|
+
// 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/repair.js
|
|
5632
5632
|
import { createHash as createHash2 } from "node:crypto";
|
|
5633
5633
|
var COPY_MARK = "__repair_";
|
|
5634
5634
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5882,7 +5882,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5882
5882
|
return found;
|
|
5883
5883
|
}, "deleteCopy");
|
|
5884
5884
|
|
|
5885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5885
|
+
// 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/cli/store-info.js
|
|
5886
5886
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5887
5887
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5888
5888
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5930,7 +5930,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5930
5930
|
}), "storeInfoCommand");
|
|
5931
5931
|
var sharedStoreCommand = /* @__PURE__ */ __name(() => annotate(new Command("store"), { effects: LOCAL_READ }).description("the shared local store every WireCat tool reads").addCommand(storeInfoCommand()), "sharedStoreCommand");
|
|
5932
5932
|
|
|
5933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5933
|
+
// 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/cli/messenger/password.js
|
|
5934
5934
|
var ENCRYPT_OPTION = [
|
|
5935
5935
|
"--encrypt",
|
|
5936
5936
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -5949,7 +5949,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5949
5949
|
return password;
|
|
5950
5950
|
}, "passwordOf");
|
|
5951
5951
|
|
|
5952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5952
|
+
// 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/replies/rules.js
|
|
5953
5953
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5954
5954
|
import { join } from "node:path";
|
|
5955
5955
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6120,7 +6120,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6120
6120
|
}, "problem");
|
|
6121
6121
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6122
6122
|
|
|
6123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6123
|
+
// 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/replies/state.js
|
|
6124
6124
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6125
6125
|
import { join as join2 } from "node:path";
|
|
6126
6126
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6173,7 +6173,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6173
6173
|
}, "recordReply");
|
|
6174
6174
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6175
6175
|
|
|
6176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6176
|
+
// 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/replies/decide.js
|
|
6177
6177
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6178
6178
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6179
6179
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6279,7 +6279,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6279
6279
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6280
6280
|
}, "filled");
|
|
6281
6281
|
|
|
6282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6282
|
+
// 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/replies/template.js
|
|
6283
6283
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6284
6284
|
var TEMPLATE_LIMITS = {
|
|
6285
6285
|
parse: 32768,
|
|
@@ -6439,7 +6439,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6439
6439
|
}
|
|
6440
6440
|
}, "renderReplyTemplate");
|
|
6441
6441
|
|
|
6442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6442
|
+
// 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/replies/dry-run.js
|
|
6443
6443
|
var DRY_RUN_DAYS = 7;
|
|
6444
6444
|
var PAGE = 500;
|
|
6445
6445
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6553,7 +6553,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6553
6553
|
}
|
|
6554
6554
|
}, "storedSince");
|
|
6555
6555
|
|
|
6556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6556
|
+
// 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/keys.js
|
|
6557
6557
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6558
6558
|
const host = new URL(baseUrl).host;
|
|
6559
6559
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6584,7 +6584,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6584
6584
|
};
|
|
6585
6585
|
}, "embeddingKeys");
|
|
6586
6586
|
|
|
6587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6587
|
+
// 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/models/openai.js
|
|
6588
6588
|
var options = strictObject({
|
|
6589
6589
|
temperature: range(0, 2),
|
|
6590
6590
|
top_p: range(0, 1),
|
|
@@ -6633,7 +6633,7 @@ var openai = {
|
|
|
6633
6633
|
}, "complete")
|
|
6634
6634
|
};
|
|
6635
6635
|
|
|
6636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6636
|
+
// 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/models/index.js
|
|
6637
6637
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6638
6638
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6639
6639
|
if (deps.signal?.aborted)
|
|
@@ -6648,7 +6648,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6648
6648
|
if (!adapter && target.provider === "openai")
|
|
6649
6649
|
adapter = openai;
|
|
6650
6650
|
if (!adapter && target.provider === "anthropic")
|
|
6651
|
-
adapter = (await import("./anthropic-
|
|
6651
|
+
adapter = (await import("./anthropic-O2YYPCVK.js")).anthropic;
|
|
6652
6652
|
if (!adapter)
|
|
6653
6653
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6654
6654
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6689,7 +6689,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6689
6689
|
}, "complete")
|
|
6690
6690
|
}), "modelGateway");
|
|
6691
6691
|
|
|
6692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6692
|
+
// 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/replies/consents.js
|
|
6693
6693
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6694
6694
|
import { join as join3 } from "node:path";
|
|
6695
6695
|
var shape = strictObject({
|
|
@@ -6714,7 +6714,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6714
6714
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6715
6715
|
}, "mayModelReply");
|
|
6716
6716
|
|
|
6717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6717
|
+
// 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/replies/rendering.js
|
|
6718
6718
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6719
6719
|
ai: true
|
|
6720
6720
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6761,7 +6761,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6761
6761
|
return result2;
|
|
6762
6762
|
}, "replyRenderer");
|
|
6763
6763
|
|
|
6764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6764
|
+
// 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/replies/serve.js
|
|
6765
6765
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6766
6766
|
var NO_RULES = "no rules";
|
|
6767
6767
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6854,7 +6854,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6854
6854
|
return { skip: why };
|
|
6855
6855
|
}, "replyTo");
|
|
6856
6856
|
|
|
6857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6857
|
+
// 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/cli/messenger/serve-members.js
|
|
6858
6858
|
var FIRST_FETCH_MS = 6e4;
|
|
6859
6859
|
var DAY_MS = 864e5;
|
|
6860
6860
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6908,7 +6908,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6908
6908
|
};
|
|
6909
6909
|
}, "memberFetches");
|
|
6910
6910
|
|
|
6911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6911
|
+
// 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/cli/messenger/serve-notice.js
|
|
6912
6912
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6913
6913
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6914
6914
|
if (context.format === "pretty") {
|
|
@@ -6941,7 +6941,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
6941
6941
|
return context;
|
|
6942
6942
|
}, "recordDiagnostics");
|
|
6943
6943
|
|
|
6944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6944
|
+
// 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/cli/messenger/serve-stems.js
|
|
6945
6945
|
var STEMS_EVERY_MS = 3e4;
|
|
6946
6946
|
var STEMS_SLICE_MS = 2e3;
|
|
6947
6947
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -6981,7 +6981,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
6981
6981
|
};
|
|
6982
6982
|
}, "stemFills");
|
|
6983
6983
|
|
|
6984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6984
|
+
// 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/cli/messenger/message-items.js
|
|
6985
6985
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
6986
6986
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
6987
6987
|
kind: attachment.kind,
|
|
@@ -7076,7 +7076,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7076
7076
|
locale: messenger.app.locale
|
|
7077
7077
|
}), "viewOf");
|
|
7078
7078
|
|
|
7079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7079
|
+
// 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/cli/messenger/watch-answers.js
|
|
7080
7080
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7081
7081
|
value: value.value,
|
|
7082
7082
|
observed_at: value.observedAt,
|
|
@@ -7143,7 +7143,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7143
7143
|
}
|
|
7144
7144
|
}, "watchEventItem");
|
|
7145
7145
|
|
|
7146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7146
|
+
// 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/cli/messenger/watch-command.js
|
|
7147
7147
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7148
7148
|
output: { entity: "watch_item" },
|
|
7149
7149
|
effects: REMOTE_READ,
|
|
@@ -7298,7 +7298,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7298
7298
|
}
|
|
7299
7299
|
}, "describe");
|
|
7300
7300
|
|
|
7301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7301
|
+
// 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/cli/messenger/serve-command.js
|
|
7302
7302
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7303
7303
|
const command = annotate(new Command("serve"), {
|
|
7304
7304
|
output: { entity: "serve_summary" },
|
|
@@ -7514,7 +7514,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7514
7514
|
};
|
|
7515
7515
|
}, "tasking");
|
|
7516
7516
|
|
|
7517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7517
|
+
// 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/cli/messenger/store-tables-command.js
|
|
7518
7518
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7519
7519
|
var PATH = "store tables list";
|
|
7520
7520
|
var STORE_TABLES_QUERY = {
|
|
@@ -7557,7 +7557,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7557
7557
|
return tables;
|
|
7558
7558
|
}, "storeTablesCommand");
|
|
7559
7559
|
|
|
7560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7560
|
+
// 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/cli/messenger/store-maintenance-command.js
|
|
7561
7561
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7562
7562
|
var WORD_INDEX = "message_words";
|
|
7563
7563
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -2,17 +2,17 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
refuseLacking
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TD4Y5LXG.js";
|
|
6
6
|
import {
|
|
7
7
|
servingProfiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OU46OTTE.js";
|
|
9
9
|
import {
|
|
10
10
|
OFFLINE,
|
|
11
11
|
capability,
|
|
12
12
|
chatIdIn,
|
|
13
13
|
servicesFor,
|
|
14
14
|
throughWrapper
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YESOQEOB.js";
|
|
16
16
|
import {
|
|
17
17
|
asFirstWord,
|
|
18
18
|
baseContext,
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
recalledAccount,
|
|
24
24
|
rememberAccount,
|
|
25
25
|
rootOf2 as rootOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AOSIU5T6.js";
|
|
27
27
|
import {
|
|
28
28
|
MESSENGER_CHANGE_REFUSAL,
|
|
29
29
|
readOnlyRefusal
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-6LHTWR3X.js";
|
|
31
31
|
import {
|
|
32
32
|
providerErrorKey
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-XOJGXWTK.js";
|
|
34
34
|
import {
|
|
35
35
|
LOG_ATTRIBUTES,
|
|
36
36
|
codeOf,
|
|
@@ -38,15 +38,15 @@ import {
|
|
|
38
38
|
currentRun,
|
|
39
39
|
fromLogAttributes,
|
|
40
40
|
logAttributes
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-4XI4PDEH.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-77GJITSU.js";
|
|
45
45
|
import {
|
|
46
46
|
foldName,
|
|
47
47
|
isId,
|
|
48
48
|
pickPerson
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-S726LZCH.js";
|
|
50
50
|
import {
|
|
51
51
|
AUTHORITY_KEY,
|
|
52
52
|
CEILING_KEY,
|
|
@@ -57,22 +57,22 @@ import {
|
|
|
57
57
|
levelFor,
|
|
58
58
|
readKeysForCommand,
|
|
59
59
|
skipFlagFor
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-CUSGSXSR.js";
|
|
61
61
|
import {
|
|
62
62
|
openStore
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-UPWHCUVA.js";
|
|
64
64
|
import {
|
|
65
65
|
CliError,
|
|
66
66
|
logRecordOf,
|
|
67
67
|
realSleep,
|
|
68
68
|
resolvePaths,
|
|
69
69
|
writeSecurely
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-L7VIPVHL.js";
|
|
71
71
|
import {
|
|
72
72
|
__name
|
|
73
73
|
} from "./chunk-ZVVMGPBJ.js";
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
75
|
+
// 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/cli/messenger/ask.js
|
|
76
76
|
import { openSync } from "node:fs";
|
|
77
77
|
import { createInterface } from "node:readline";
|
|
78
78
|
import { ReadStream } from "node:tty";
|
|
@@ -127,10 +127,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
127
127
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
128
128
|
}, "terminalAsker");
|
|
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/sends/guard.js
|
|
131
131
|
import { randomUUID } from "node:crypto";
|
|
132
132
|
|
|
133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
133
|
+
// 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/flood.js
|
|
134
134
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
135
135
|
import { dirname, join } from "node:path";
|
|
136
136
|
var MOST_DEADLINES = 50;
|
|
@@ -214,11 +214,11 @@ var FloodMemory = class {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// 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/journal.js
|
|
218
218
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
219
219
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// 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/file-lock.js
|
|
222
222
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
223
223
|
import { dirname as dirname2 } from "node:path";
|
|
224
224
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -285,7 +285,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
285
285
|
}
|
|
286
286
|
}, "lockTime");
|
|
287
287
|
|
|
288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
288
|
+
// 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/journal.js
|
|
289
289
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
290
290
|
var SendJournal = class {
|
|
291
291
|
static {
|
|
@@ -362,7 +362,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
362
362
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
363
363
|
}, "withSendId");
|
|
364
364
|
|
|
365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
365
|
+
// 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/recipients.js
|
|
366
366
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
367
367
|
import { join as join3 } from "node:path";
|
|
368
368
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -474,7 +474,7 @@ var RecipientList = class {
|
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
476
|
|
|
477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
477
|
+
// 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/guard.js
|
|
478
478
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
479
479
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
480
480
|
"attachments.extract",
|
|
@@ -667,7 +667,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
667
667
|
}), "guardFor");
|
|
668
668
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
669
669
|
|
|
670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
670
|
+
// 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/cli/permission-keys.js
|
|
671
671
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
672
672
|
"help",
|
|
673
673
|
"guide",
|
|
@@ -746,7 +746,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
746
746
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
747
747
|
}, "refuseUnknownPermissionKeys");
|
|
748
748
|
|
|
749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
749
|
+
// 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/cli/messenger/stored.js
|
|
750
750
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
751
751
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
|
|
752
752
|
let warned = false;
|
|
@@ -1238,7 +1238,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1238
1238
|
}
|
|
1239
1239
|
}, "keep");
|
|
1240
1240
|
|
|
1241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1241
|
+
// 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/pace.js
|
|
1242
1242
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
1243
1243
|
import { join as join4 } from "node:path";
|
|
1244
1244
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -1297,7 +1297,7 @@ var Pacer = class {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
1299
|
|
|
1300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1300
|
+
// 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/cli/messenger/flooded.js
|
|
1301
1301
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
1302
1302
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
1303
1303
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -1416,7 +1416,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
1416
1416
|
});
|
|
1417
1417
|
}, "flooded");
|
|
1418
1418
|
|
|
1419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1419
|
+
// 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/cli/messenger/observed.js
|
|
1420
1420
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
1421
1421
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
1422
1422
|
const write = currentOperation();
|
|
@@ -1515,7 +1515,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1515
1515
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1516
1516
|
}, "byPart");
|
|
1517
1517
|
|
|
1518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1518
|
+
// 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/cli/messenger/context.js
|
|
1519
1519
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1520
1520
|
let opened;
|
|
1521
1521
|
return {
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
modelsDirectory,
|
|
8
8
|
speechModel,
|
|
9
9
|
vadPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PCUPOGKR.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-L7VIPVHL.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// 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/local.js
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
import { isAbsolute } from "node:path";
|
|
21
21
|
import { setImmediate } from "node:timers/promises";
|
|
@@ -37,6 +37,22 @@ var localSpeechRecognitionModel = /* @__PURE__ */ __name((id) => {
|
|
|
37
37
|
})).digest("hex");
|
|
38
38
|
return Object.freeze({ engine: "sherpa-onnx", model: model.id, version, sampleRate: 16e3, maxChunkSamples: 48e4 });
|
|
39
39
|
}, "localSpeechRecognitionModel");
|
|
40
|
+
var notInstalled = /* @__PURE__ */ __name((id) => new CliError("not_found", `speech model ${id} is not installed; download it explicitly with a WireCat messenger's models download command`, { reason: "model.not-downloaded", model: id }), "notInstalled");
|
|
41
|
+
var recognizeLocalPieces = /* @__PURE__ */ __name(async (id, audio, options = {}) => {
|
|
42
|
+
const model = speechModel(id);
|
|
43
|
+
const directory = options.directory ?? modelsDirectory(options.env);
|
|
44
|
+
if (!isInstalled(model, directory))
|
|
45
|
+
throw notInstalled(model.id);
|
|
46
|
+
const { openRecognizer, toModelRate } = await import("./recognize-MB6WRGUD.js");
|
|
47
|
+
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
48
|
+
try {
|
|
49
|
+
if (!engine.pieces)
|
|
50
|
+
throw new CliError("configuration_error", "this speech backend gives no timed pieces");
|
|
51
|
+
return engine.pieces(toModelRate(audio.samples, audio.rate));
|
|
52
|
+
} finally {
|
|
53
|
+
engine.free();
|
|
54
|
+
}
|
|
55
|
+
}, "recognizeLocalPieces");
|
|
40
56
|
var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) => {
|
|
41
57
|
const options = { ...input };
|
|
42
58
|
const description = localSpeechRecognitionModel(id);
|
|
@@ -47,8 +63,8 @@ var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) =>
|
|
|
47
63
|
throw new CliError("validation_error", "local speech requires an absolute model directory and bounded output bytes");
|
|
48
64
|
cancelled(options.signal);
|
|
49
65
|
if (!isInstalled(model, directory))
|
|
50
|
-
throw
|
|
51
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
66
|
+
throw notInstalled(description.model);
|
|
67
|
+
const { openRecognizer, toModelRate } = await import("./recognize-MB6WRGUD.js");
|
|
52
68
|
cancelled(options.signal);
|
|
53
69
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
54
70
|
let closing = false;
|
|
@@ -96,5 +112,6 @@ var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) =>
|
|
|
96
112
|
|
|
97
113
|
export {
|
|
98
114
|
localSpeechRecognitionModel,
|
|
115
|
+
recognizeLocalPieces,
|
|
99
116
|
openLocalSpeechRecognizer
|
|
100
117
|
};
|