@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
|
@@ -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/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -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/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
commandPathOf,
|
|
5
5
|
findCommand,
|
|
6
6
|
outputOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QHT2LZRW.js";
|
|
8
8
|
import {
|
|
9
9
|
Command,
|
|
10
10
|
Help,
|
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
environmentOf,
|
|
16
16
|
metaOf,
|
|
17
17
|
takesProfile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AOSIU5T6.js";
|
|
19
19
|
import {
|
|
20
20
|
wrapAnsi
|
|
21
21
|
} from "./chunk-HTQTIKWP.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError,
|
|
24
24
|
writes
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-L7VIPVHL.js";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// 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/help/sections.js
|
|
31
31
|
var SECTIONS = {
|
|
32
32
|
read: "Read",
|
|
33
33
|
write: "Write",
|
|
@@ -92,7 +92,7 @@ var CORE_SECTIONS = {
|
|
|
92
92
|
upgrade: "setup"
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// 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/help/commands-text.js
|
|
96
96
|
var DESCRIPTION = 90;
|
|
97
97
|
var COLUMN = 52;
|
|
98
98
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -131,7 +131,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
131
131
|
`;
|
|
132
132
|
}, "commandsText");
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// 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/help/command-help.js
|
|
135
135
|
var ARGUMENT_KINDS = {
|
|
136
136
|
chat: "chat",
|
|
137
137
|
chats: "chat",
|
|
@@ -352,7 +352,7 @@ var exampleReport = /* @__PURE__ */ __name((program) => {
|
|
|
352
352
|
return { written, generated, text };
|
|
353
353
|
}, "exampleReport");
|
|
354
354
|
|
|
355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
355
|
+
// 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/help/first-screen.js
|
|
356
356
|
var WIRECAT_TOOLS = [
|
|
357
357
|
{
|
|
358
358
|
command: "tg",
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
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/store/path.js
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
13
13
|
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|
|
@@ -2,19 +2,19 @@ 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/store/driver.js
|
|
11
11
|
var PRAGMAS = `
|
|
12
12
|
PRAGMA busy_timeout = 5000;
|
|
13
13
|
PRAGMA journal_mode = WAL;
|
|
14
14
|
PRAGMA foreign_keys = ON;
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// 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-warning.js
|
|
18
18
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
19
19
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
20
20
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
35
35
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
36
36
|
}, "isSqliteWarning");
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// 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/open.js
|
|
39
39
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
40
40
|
const database = await openFile(path);
|
|
41
41
|
try {
|
|
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
48
|
}, "openCache");
|
|
49
49
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
50
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
51
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-VVYKOY7S.js");
|
|
52
52
|
return await openWithBunSqlite(path);
|
|
53
53
|
}, "openUnderBun");
|
|
54
54
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
55
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
56
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-XRP5FUDY.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -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/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -3,11 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
checkCancelled,
|
|
5
5
|
object
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6SLGIPLT.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
|
+
Credentials,
|
|
9
10
|
isCliError
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-L7VIPVHL.js";
|
|
11
12
|
import {
|
|
12
13
|
__name
|
|
13
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -16,14 +17,32 @@ import {
|
|
|
16
17
|
var TOKEN_LOG_ALLOW = ["rotated", "saved", "pid"];
|
|
17
18
|
var TOKEN_LOG_EVENT = "zoom.token.exchange";
|
|
18
19
|
var abortReason = /* @__PURE__ */ __name((parent) => !parent?.aborted ? "timeout" : isCliError(parent.reason) ? parent.reason.code : "cancelled", "abortReason");
|
|
20
|
+
var storesOf = /* @__PURE__ */ __name(({ configDir, service, keyring }) => configDir === void 0 ? void 0 : {
|
|
21
|
+
auto: new Credentials({ configDir, service, keyring }),
|
|
22
|
+
file: new Credentials({ configDir, service, keyring, storage: "file" })
|
|
23
|
+
}, "storesOf");
|
|
19
24
|
var TokenManager = class _TokenManager {
|
|
20
25
|
static {
|
|
21
26
|
__name(this, "TokenManager");
|
|
22
27
|
}
|
|
23
28
|
options;
|
|
24
29
|
refreshState = /* @__PURE__ */ new Map();
|
|
30
|
+
// Shared by every scoped manager, so a failing keyring is reported once per run.
|
|
31
|
+
stores;
|
|
25
32
|
constructor(options) {
|
|
26
33
|
this.options = options;
|
|
34
|
+
this.stores = storesOf(options);
|
|
35
|
+
}
|
|
36
|
+
/** Where this login is kept: the file once it holds it, the keyring otherwise. */
|
|
37
|
+
storageOf(account = this.accountOf()) {
|
|
38
|
+
return this.stores?.file.read(account) ? "file" : "keyring";
|
|
39
|
+
}
|
|
40
|
+
/** The same login, saved where `session start --credential-storage` says. */
|
|
41
|
+
storedIn(storage) {
|
|
42
|
+
const scoped = new _TokenManager({ ...this.options, storage });
|
|
43
|
+
scoped.refreshState = this.refreshState;
|
|
44
|
+
scoped.stores = this.stores;
|
|
45
|
+
return scoped;
|
|
27
46
|
}
|
|
28
47
|
/** The login of one profile: `<client id>:<profile>` in the keyring. */
|
|
29
48
|
forProfile(profile) {
|
|
@@ -37,12 +56,15 @@ var TokenManager = class _TokenManager {
|
|
|
37
56
|
},
|
|
38
57
|
keyring: parent.keyring,
|
|
39
58
|
service: parent.service,
|
|
59
|
+
...parent.configDir === void 0 ? {} : { configDir: parent.configDir },
|
|
60
|
+
...parent.storage === void 0 ? {} : { storage: parent.storage },
|
|
40
61
|
fetch: parent.fetch,
|
|
41
62
|
now: parent.now,
|
|
42
63
|
log: parent.log,
|
|
43
64
|
signal: parent.signal
|
|
44
65
|
});
|
|
45
66
|
scoped.refreshState = this.refreshState;
|
|
67
|
+
scoped.stores = this.stores;
|
|
46
68
|
return scoped;
|
|
47
69
|
}
|
|
48
70
|
withSignal(signal, fetcher = this.options.fetch) {
|
|
@@ -58,18 +80,23 @@ var TokenManager = class _TokenManager {
|
|
|
58
80
|
},
|
|
59
81
|
keyring: parent.keyring,
|
|
60
82
|
service: parent.service,
|
|
83
|
+
...parent.configDir === void 0 ? {} : { configDir: parent.configDir },
|
|
84
|
+
...parent.storage === void 0 ? {} : { storage: parent.storage },
|
|
61
85
|
fetch: fetcher,
|
|
62
86
|
now: parent.now,
|
|
63
87
|
log: parent.log,
|
|
64
88
|
signal: signal && parent.signal ? AbortSignal.any([signal, parent.signal]) : signal ?? parent.signal
|
|
65
89
|
});
|
|
66
90
|
scoped.refreshState = this.refreshState;
|
|
91
|
+
scoped.stores = this.stores;
|
|
67
92
|
return scoped;
|
|
68
93
|
}
|
|
69
94
|
accountOf() {
|
|
70
95
|
return this.options.account ?? this.options.clientId;
|
|
71
96
|
}
|
|
72
97
|
read(account) {
|
|
98
|
+
if (this.stores)
|
|
99
|
+
return this.stores.file.read(account)?.secret ?? this.stores.auto.read(account)?.secret ?? null;
|
|
73
100
|
try {
|
|
74
101
|
return this.options.keyring.get(this.options.service, account);
|
|
75
102
|
} catch {
|
|
@@ -97,6 +124,16 @@ var TokenManager = class _TokenManager {
|
|
|
97
124
|
}
|
|
98
125
|
}
|
|
99
126
|
save(tokens, account = this.accountOf()) {
|
|
127
|
+
if (this.stores) {
|
|
128
|
+
const { auto, file } = this.stores;
|
|
129
|
+
const storage = this.options.storage ?? this.storageOf(account);
|
|
130
|
+
const value = JSON.stringify(tokens);
|
|
131
|
+
if (storage === "file")
|
|
132
|
+
file.write(account, value);
|
|
133
|
+
else if (auto.write(account, value) === "keyring" && this.options.storage === "keyring")
|
|
134
|
+
file.remove(account);
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
100
137
|
try {
|
|
101
138
|
this.options.keyring.set(this.options.service, account, JSON.stringify(tokens));
|
|
102
139
|
} catch {
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
reference,
|
|
22
22
|
string,
|
|
23
23
|
variant
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-L7VIPVHL.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
|
|
30
30
|
var QUERY_LIMITS = {
|
|
31
31
|
bytes: 8192,
|
|
32
32
|
depth: 32,
|
|
@@ -70,7 +70,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
|
|
|
70
70
|
__name(queryError, "queryError");
|
|
71
71
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
|
|
74
74
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
75
75
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
76
76
|
try {
|
|
@@ -215,7 +215,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
215
215
|
};
|
|
216
216
|
}, "dateRange");
|
|
217
217
|
|
|
218
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
218
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
|
|
219
219
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
220
220
|
var OPERATORS_BY_TYPE = {
|
|
221
221
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -292,7 +292,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
292
292
|
return [...own, ...relations, ...states];
|
|
293
293
|
}, "queryFieldsOf");
|
|
294
294
|
|
|
295
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
295
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
|
|
296
296
|
var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
|
|
297
297
|
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
298
298
|
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
@@ -308,7 +308,7 @@ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
|
308
308
|
].join("\n");
|
|
309
309
|
}, "fieldsHelp");
|
|
310
310
|
|
|
311
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
311
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
|
|
312
312
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
313
313
|
var reserved = /* @__PURE__ */ new Set([
|
|
314
314
|
"+",
|
|
@@ -610,10 +610,10 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
|
|
|
610
610
|
const tokens = tokensOf(text);
|
|
611
611
|
if (tokens.some(({ kind }) => ["AND", "OR", "NOT", "+", "-", "!", "(", ")"].includes(kind)))
|
|
612
612
|
return /* @__PURE__ */ new Set();
|
|
613
|
-
return new Set(tokens.flatMap((token, index) => token.kind === "term" && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
613
|
+
return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
614
614
|
}, "implicitTextTerms");
|
|
615
615
|
|
|
616
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
616
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
|
|
617
617
|
var inContext = /* @__PURE__ */ __name((context, run) => {
|
|
618
618
|
try {
|
|
619
619
|
run();
|
|
@@ -688,7 +688,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
688
688
|
}, "validateQuery");
|
|
689
689
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
690
690
|
|
|
691
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
691
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
|
|
692
692
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
693
693
|
entity: registry.entity,
|
|
694
694
|
backend: registry.backend,
|
|
@@ -716,7 +716,10 @@ var exampleProblems = /* @__PURE__ */ __name((registry) => {
|
|
|
716
716
|
...defaults
|
|
717
717
|
].filter((entry) => entry.problem !== void 0);
|
|
718
718
|
}, "exampleProblems");
|
|
719
|
+
var checked = /* @__PURE__ */ new WeakSet();
|
|
719
720
|
var defineQuery = /* @__PURE__ */ __name((registry) => {
|
|
721
|
+
if (checked.has(registry))
|
|
722
|
+
return registry;
|
|
720
723
|
const names = registry.fields.map((field) => field.name);
|
|
721
724
|
const problems = [
|
|
722
725
|
...duplicates(names).map((name) => `"${name}" is listed twice`),
|
|
@@ -725,6 +728,7 @@ var defineQuery = /* @__PURE__ */ __name((registry) => {
|
|
|
725
728
|
];
|
|
726
729
|
if (problems.length > 0)
|
|
727
730
|
throw new RegistryError(`${registry.entity} query`, problems);
|
|
731
|
+
checked.add(registry);
|
|
728
732
|
return registry;
|
|
729
733
|
}, "defineQuery");
|
|
730
734
|
var SPAN = ["span", "alternative", "guide"];
|
|
@@ -755,7 +759,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
755
759
|
details: [...SPAN, ...details]
|
|
756
760
|
})));
|
|
757
761
|
|
|
758
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
762
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
|
|
759
763
|
var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
760
764
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
761
765
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|