@wirecat/zoom-cli 0.77.0 → 0.78.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/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-PMCFNDMA.js → all-profiles-7JN3N3E6.js} +11 -11
- package/dist/bundle/answer-policy-G2BNMPEX.js +122 -0
- package/dist/bundle/{anthropic-TGJOKLUS.js → anthropic-U6O7UYGZ.js} +6 -6
- package/dist/bundle/{app-server-OAODUFM3.js → app-server-G7BTC6CE.js} +72 -72
- package/dist/bundle/{bun-HJHVHJJV.js → bun-VLROVUFK.js} +2 -2
- package/dist/bundle/{bun-sqlite-PLBOY6FP.js → bun-sqlite-C5JLANDE.js} +7 -7
- package/dist/bundle/{chunk-LWMDLXEO.js → chunk-2AWWMROP.js} +3252 -3057
- package/dist/bundle/{chunk-QKNO3JTG.js → chunk-2LMD3JUD.js} +2 -2
- package/dist/bundle/{chunk-5A5W322G.js → chunk-2O66KMOR.js} +2 -2
- package/dist/bundle/{chunk-MMAZUJBO.js → chunk-2USGT7LE.js} +1 -1
- package/dist/bundle/{chunk-FRC5QIPQ.js → chunk-3A3B3JX4.js} +8 -8
- package/dist/bundle/{chunk-SVJQRG5N.js → chunk-3NZJKY7A.js} +103 -42
- package/dist/bundle/{chunk-7ILGYNWX.js → chunk-3QWYRZME.js} +8 -8
- package/dist/bundle/{chunk-36SI35XZ.js → chunk-4QCLPSJ7.js} +5 -5
- package/dist/bundle/{chunk-6YCFDDRO.js → chunk-4XPVRZXE.js} +1 -1
- package/dist/bundle/{chunk-Q7ZW7XAX.js → chunk-532FNLON.js} +20 -20
- package/dist/bundle/{chunk-NOF6LABG.js → chunk-53TV72JG.js} +2 -2
- package/dist/bundle/{chunk-ZUMKZOHR.js → chunk-5DLK4OXF.js} +3 -3
- package/dist/bundle/{chunk-5C6CRSEM.js → chunk-5SM2IOAS.js} +12 -12
- package/dist/bundle/{chunk-YFN5A7OP.js → chunk-6MFEWAK4.js} +4 -4
- package/dist/bundle/{chunk-OXXJW3A5.js → chunk-6NTNAEZF.js} +2014 -1032
- package/dist/bundle/{chunk-RQS3W4P6.js → chunk-7AMKSXMB.js} +6 -6
- package/dist/bundle/{chunk-7CMYNW3W.js → chunk-7EVB4UV7.js} +4 -4
- package/dist/bundle/{chunk-MIG4RLDB.js → chunk-7HEZQCHL.js} +6 -6
- package/dist/bundle/{chunk-QUGESVOE.js → chunk-7IIQU5RA.js} +13 -13
- package/dist/bundle/{chunk-A6LK2W5J.js → chunk-7K5O2VWO.js} +1 -1
- package/dist/bundle/{chunk-5KHCFIWI.js → chunk-AEVSVVTP.js} +2 -2
- package/dist/bundle/{chunk-7SNU7RFU.js → chunk-B4V4DRVO.js} +12 -12
- package/dist/bundle/{chunk-W7UCN7MF.js → chunk-B6TUEQ4O.js} +3 -3
- package/dist/bundle/{chunk-DCEQIKFD.js → chunk-BAHXR4PA.js} +6 -6
- package/dist/bundle/{chunk-XCA5N63N.js → chunk-BGO7IEHY.js} +6 -6
- package/dist/bundle/{chunk-I3QMPQYD.js → chunk-BIUHLXL2.js} +38 -39
- package/dist/bundle/{chunk-ECRFXQHA.js → chunk-C26V2XNV.js} +1 -1
- package/dist/bundle/{chunk-5C5UEKUJ.js → chunk-C56OYYFG.js} +3 -3
- package/dist/bundle/{chunk-KHBSQROH.js → chunk-DLJPN47R.js} +8 -6
- package/dist/bundle/{chunk-ZRNNMBPC.js → chunk-EV7QCFQR.js} +19 -19
- package/dist/bundle/{chunk-IUOKIZZN.js → chunk-F2KZNAFF.js} +2 -2
- package/dist/bundle/{chunk-GHBDYYPO.js → chunk-F7IDYQLM.js} +2 -2
- package/dist/bundle/{chunk-QE4L2QQZ.js → chunk-FCGRXUAU.js} +9 -9
- package/dist/bundle/{chunk-T6RSYDFA.js → chunk-FHOQWPQ6.js} +119 -67
- package/dist/bundle/{chunk-CUJJZJ4R.js → chunk-FMMCGQNT.js} +36 -5
- package/dist/bundle/{chunk-4QNW4NK6.js → chunk-FNLXFQN6.js} +1 -1
- package/dist/bundle/{chunk-SP5OMHOO.js → chunk-FURKMNC2.js} +3 -3
- package/dist/bundle/{chunk-VJ2TLU7R.js → chunk-FXHZHQKU.js} +6 -6
- package/dist/bundle/{chunk-NKKVVPL5.js → chunk-GQ6EJDMV.js} +1 -1
- package/dist/bundle/{chunk-MTH3JJHF.js → chunk-H34KEXTN.js} +10 -10
- package/dist/bundle/{chunk-JFVZVPRW.js → chunk-H74NENWA.js} +3 -3
- package/dist/bundle/{chunk-6JRBMNRN.js → chunk-H7SRM26V.js} +3 -3
- package/dist/bundle/{chunk-77JQIY2V.js → chunk-HGBZBQAE.js} +3 -3
- package/dist/bundle/{chunk-NJJEUG4C.js → chunk-HI4QICF7.js} +12 -12
- package/dist/bundle/{chunk-635GRAO5.js → chunk-HOJOVUO6.js} +14 -13
- package/dist/bundle/{chunk-ICZVSVTW.js → chunk-HUSIS3XO.js} +59 -59
- package/dist/bundle/{chunk-STNZQBY4.js → chunk-IBINGDYF.js} +6 -6
- package/dist/bundle/{chunk-DDUNPLET.js → chunk-INJK7FNM.js} +240 -168
- package/dist/bundle/{chunk-MCLZ74II.js → chunk-JOIAE3NO.js} +7 -7
- package/dist/bundle/{chunk-3TLQF3DN.js → chunk-KBTINKQF.js} +3 -3
- package/dist/bundle/{chunk-YJIGGUPI.js → chunk-KEAKNNXU.js} +4 -4
- package/dist/bundle/{chunk-SFPUSEOT.js → chunk-LBTANUUH.js} +2 -2
- package/dist/bundle/{chunk-7DTU7QZP.js → chunk-LBV4673S.js} +3 -3
- package/dist/bundle/{chunk-PM3MB3E7.js → chunk-LERF2FIK.js} +3 -3
- package/dist/bundle/{chunk-FDQE2CLT.js → chunk-LX532BXO.js} +1 -1
- package/dist/bundle/{chunk-WD5OL5JB.js → chunk-M2M3U4UU.js} +12 -12
- package/dist/bundle/{chunk-B7XFDMFV.js → chunk-M5R2DURM.js} +10 -10
- package/dist/bundle/{chunk-VGERRRDC.js → chunk-MJMHUU3J.js} +1 -1
- package/dist/bundle/{chunk-BOJCRTQW.js → chunk-MSMFYW6N.js} +2 -2
- package/dist/bundle/{chunk-LUAS73NT.js → chunk-MVLLWSV7.js} +20 -118
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-7S3N5CTA.js → chunk-NS5XSCHC.js} +1 -1
- package/dist/bundle/{chunk-TY4FFK2P.js → chunk-OAE6XR7E.js} +9 -60
- package/dist/bundle/{chunk-QAGECFHL.js → chunk-OAYAGQ7C.js} +21 -21
- package/dist/bundle/{chunk-CL6QAZGT.js → chunk-OI4563JI.js} +13 -13
- package/dist/bundle/{chunk-E3UPMPUV.js → chunk-OOLNK3Y5.js} +8 -8
- package/dist/bundle/{chunk-PO4RZ4XZ.js → chunk-ORSTSBWU.js} +1 -1
- package/dist/bundle/{chunk-T4CI3YXW.js → chunk-P5QO7Y3H.js} +6 -6
- package/dist/bundle/{chunk-FS5HPXQN.js → chunk-PJMQE4PW.js} +29 -9
- package/dist/bundle/{chunk-NPDPD2H3.js → chunk-Q4AKIAIA.js} +12 -12
- package/dist/bundle/{chunk-7AFYZOHU.js → chunk-Q4CNLEAY.js} +26 -26
- package/dist/bundle/{chunk-ADJIYY33.js → chunk-RJIJR6KH.js} +1 -1
- package/dist/bundle/{chunk-LYVHQ6DJ.js → chunk-TEFHNXXX.js} +14 -14
- package/dist/bundle/{chunk-IZMRQ3MV.js → chunk-TFDD4Q5Z.js} +10 -10
- package/dist/bundle/{chunk-CJL5GHTQ.js → chunk-TXDCIM5D.js} +2493 -1444
- package/dist/bundle/{chunk-2QRGJSKO.js → chunk-U2Z35B3W.js} +2 -2
- package/dist/bundle/{chunk-IS6MUPN2.js → chunk-UHBQM54J.js} +4 -4
- package/dist/bundle/{chunk-DYIRJINE.js → chunk-UIBKGH5P.js} +1 -1
- package/dist/bundle/{chunk-NPIVV52M.js → chunk-UKYO3HNO.js} +1 -1
- package/dist/bundle/{chunk-JMU3E2WA.js → chunk-V53TIJLY.js} +2 -2
- package/dist/bundle/{chunk-H2EVYY5Z.js → chunk-VMA7SILL.js} +1 -1
- package/dist/bundle/chunk-VW36ZSAE.js +88 -0
- package/dist/bundle/{chunk-XVHDT4CO.js → chunk-WEAMGNST.js} +3 -3
- package/dist/bundle/{chunk-KYKW2W6X.js → chunk-WJTXO2EI.js} +1 -1
- package/dist/bundle/{chunk-375BH5OD.js → chunk-WOYPWXZK.js} +4 -4
- package/dist/bundle/{chunk-CZ6OO66B.js → chunk-XCOGI4JE.js} +4 -4
- package/dist/bundle/{chunk-XC3MWABM.js → chunk-XOG7B7K5.js} +4 -4
- package/dist/bundle/{chunk-UGRGYLEI.js → chunk-XSF5OBVZ.js} +8 -8
- package/dist/bundle/{chunk-SY5NGYKA.js → chunk-XXD4YPHQ.js} +12 -12
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-IJTBB23F.js → chunk-YHQ3TEGB.js} +27 -27
- package/dist/bundle/{chunk-F4ROWGLU.js → chunk-YLNUKNGD.js} +63 -33
- package/dist/bundle/{chunk-JQUYHPQD.js → chunk-YNYQGZUW.js} +7 -7
- package/dist/bundle/{chunk-2QDD6S2R.js → chunk-YZKVCTZI.js} +8 -8
- package/dist/bundle/{chunk-OOIU36FA.js → chunk-ZCVO6GAT.js} +1 -1
- package/dist/bundle/{chunk-4Z4VOQRR.js → chunk-ZDZASHSQ.js} +17 -17
- package/dist/bundle/{chunk-LMZUC4CS.js → chunk-ZZJ5IWNT.js} +4 -4
- package/dist/bundle/{cli-Y27PHKBV.js → cli-YALONJ4V.js} +111 -77
- package/dist/bundle/command-contract-DMR5EOIN.js +45 -0
- package/dist/bundle/{command-server-entry-AXQSW2X6.js → command-server-entry-W4XTBUZE.js} +35 -35
- package/dist/bundle/config-4TLDRXRL.js +109 -0
- package/dist/bundle/{decode-ZRNOOTUZ.js → decode-IFQHVCFX.js} +6 -6
- package/dist/bundle/{dispatch-2GHGPAYH.js → dispatch-GOJB4TDK.js} +9 -9
- package/dist/bundle/{dist-MUFVAMKB.js → dist-H7XFUMRX.js} +21 -21
- package/dist/bundle/{echarts-F4PHDYET.js → echarts-HPUHPJCO.js} +2 -2
- package/dist/bundle/{embed-KWHCKPCV.js → embed-ESU3WZYW.js} +7 -7
- package/dist/bundle/{embedder-U3R3RY54.js → embedder-BV6O76B3.js} +10 -10
- package/dist/bundle/{failure-S2YXEN4A.js → failure-SWVCYFQX.js} +3 -3
- package/dist/bundle/first-run-OEJGAQAE.js +29 -0
- package/dist/bundle/first-screen-QLM4IABL.js +45 -0
- package/dist/bundle/{folders-DVTRFQKW.js → folders-VQGKBM3P.js} +5 -5
- package/dist/bundle/{instructions-JU4YW6QY.js → instructions-UUX57I3V.js} +1 -1
- package/dist/bundle/{main-5UCRPACH.js → main-UIKADOFB.js} +24 -24
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/meeting-combined-SKJISCC7.js +26 -0
- package/dist/bundle/meeting-model-YG3Z5KCB.js +26 -0
- package/dist/bundle/{meeting-semantic-5DKRGZFS.js → meeting-semantic-F6GUICB7.js} +8 -8
- package/dist/bundle/{meetings-T2UY35DV.js → meetings-KIBUPLPW.js} +19 -7
- package/dist/bundle/{node-MAVRAF4M.js → node-AM3JCAWB.js} +2 -2
- package/dist/bundle/{node-sqlite-TFBQ5NDI.js → node-sqlite-VM6VS3RU.js} +8 -8
- package/dist/bundle/{oauth-7IG5HWSY.js → oauth-AX5Z32H6.js} +8 -8
- package/dist/bundle/{open-3R3N7L3X.js → open-SSGOOOZG.js} +6 -6
- package/dist/bundle/openai-YIP73X2B.js +28 -0
- package/dist/bundle/{output-file-KKHHAYWF.js → output-file-FR226A64.js} +6 -6
- package/dist/bundle/{process-OIO254NR.js → process-5ZEK2VFY.js} +1 -1
- package/dist/bundle/{program-IBYRU76H.js → program-ROJAJHCB.js} +93 -92
- package/dist/bundle/{prompt-LNEOO7PN.js → prompt-6Y7A4453.js} +6 -6
- package/dist/bundle/{recognize-2WYLT3PC.js → recognize-R5W25WKH.js} +5 -5
- package/dist/bundle/{remote-7EAJEIV7.js → remote-PA4FQUZK.js} +11 -11
- package/dist/bundle/{rerank-DZBZ744F.js → rerank-CYX3UFTM.js} +8 -8
- package/dist/bundle/run-log-FHERL3H6.js +136 -0
- package/dist/bundle/{serve-T3KQV5SS.js → serve-MM5QEZJW.js} +10 -10
- package/dist/bundle/{server-2QQAQZ2J.js → server-JQQAH7E5.js} +64 -64
- package/dist/bundle/server-W2BBONCQ.js +85 -0
- package/dist/bundle/{services-DETAKMC3.js → services-Y2DOQONM.js} +58 -51
- package/dist/bundle/{speech-HD57JNTK.js → speech-O6WLX34V.js} +25 -25
- package/dist/bundle/{sqlite-runtime-OCETZSEZ.js → sqlite-runtime-LQTBZMFH.js} +7 -7
- package/dist/bundle/{state-ZKVQ4DBI.js → state-AIDPZLVH.js} +7 -7
- package/dist/bundle/{store-7IZ2WMHF.js → store-BA4FQS5V.js} +26 -24
- package/dist/bundle/{store-GEAQ7V5R.js → store-UNDS2TBG.js} +30 -26
- package/dist/bundle/store-connection-ADBJ36T4.js +102 -0
- package/dist/bundle/store-maintenance-command-IB6ML4UI.js +77 -0
- package/dist/bundle/{streaming-CLBAO3MG.js → streaming-UFHT5MR2.js} +7 -7
- package/dist/bundle/{tokens-WH73ZWFI.js → tokens-Z32UKGQB.js} +10 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-ZDTYMJET.js → zoom-app-6U46XBTG.js} +8 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/zoom-cli/SKILL.md +88 -236
- package/skills/zoom-cli/references/archive.md +59 -0
- package/skills/zoom-cli/references/people-and-projects.md +51 -0
- package/skills/zoom-cli/references/prepare.md +78 -0
- package/skills/zoom-cli/references/search.md +71 -0
- package/skills/zoom-cli/references/setup.md +31 -0
- package/skills/zoom-cli/references/zoom-live.md +27 -0
- package/dist/bundle/answer-policy-XU7KEW2V.js +0 -121
- package/dist/bundle/command-contract-GB7YA3KW.js +0 -45
- package/dist/bundle/config-2OOABHR7.js +0 -108
- package/dist/bundle/first-run-F4YR2E2C.js +0 -29
- package/dist/bundle/first-screen-HPRHD3VK.js +0 -43
- package/dist/bundle/meeting-combined-IWU5SPAH.js +0 -26
- package/dist/bundle/meeting-model-ILIUJECZ.js +0 -26
- package/dist/bundle/openai-DD5I3DWC.js +0 -28
- package/dist/bundle/run-log-CCIVRSHP.js +0 -135
- package/dist/bundle/server-OJQMPF2R.js +0 -84
- package/dist/bundle/store-connection-BALCZW7P.js +0 -101
- package/dist/bundle/store-maintenance-command-SBT4LDSI.js +0 -76
- /package/dist/bundle/{chunk-VKE77B3F.js → chunk-SHTHNBHG.js} +0 -0
|
@@ -2,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AEVSVVTP.js";
|
|
6
6
|
import {
|
|
7
7
|
secretNamed,
|
|
8
8
|
withoutSecrets
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ORSTSBWU.js";
|
|
10
10
|
import {
|
|
11
11
|
isContentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OAYAGQ7C.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
18
18
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
19
19
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
20
20
|
if (event.event === "store")
|
|
@@ -66,11 +66,11 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
66
66
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
67
67
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
70
70
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
71
71
|
import { createHash } from "node:crypto";
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
74
74
|
import { homedir } from "node:os";
|
|
75
75
|
var MESSAGE_AT_MOST = 500;
|
|
76
76
|
var CAUSES_AT_MOST = 5;
|
|
@@ -183,7 +183,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
183
183
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
184
184
|
}, "redactText");
|
|
185
185
|
|
|
186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
187
187
|
var REDACTED = "[redacted]";
|
|
188
188
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
189
189
|
if (!record)
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MSMFYW6N.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FNLXFQN6.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var EMPTY_TRIES = 3;
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WJTXO2EI.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|
|
@@ -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-OAYAGQ7C.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.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { realpathSync } from "node:fs";
|
|
12
12
|
import { userInfo } from "node:os";
|
|
13
13
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
QUERY_LIMITS,
|
|
5
5
|
queryError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TFDD4Q5Z.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
isCliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FNLXFQN6.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
16
16
|
var QUERY_VERSION = 1;
|
|
17
17
|
var QUERY_LIMITS2 = {
|
|
18
18
|
...QUERY_LIMITS,
|
|
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XOG7B7K5.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FNLXFQN6.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
19
19
|
import { mkdtemp, open, readFile, rm, writeFile } from "node:fs/promises";
|
|
20
20
|
import { createRequire } from "node:module";
|
|
@@ -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.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
aiOrigin,
|
|
6
6
|
aiSettingPath,
|
|
7
7
|
readAiSetting
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XSF5OBVZ.js";
|
|
9
9
|
import {
|
|
10
10
|
OPENAI_URL,
|
|
11
11
|
localOnly,
|
|
12
12
|
localOnlyRefusal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FCGRXUAU.js";
|
|
14
14
|
import {
|
|
15
15
|
readOnlyLockOf,
|
|
16
16
|
readOnlyRefusal
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-F7IDYQLM.js";
|
|
18
18
|
import {
|
|
19
19
|
onThisComputer
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FURKMNC2.js";
|
|
21
21
|
import {
|
|
22
22
|
OPENAI_TRANSCRIBE_MODEL,
|
|
23
23
|
VAD,
|
|
@@ -26,18 +26,18 @@ import {
|
|
|
26
26
|
modelsDirectory,
|
|
27
27
|
speechModel,
|
|
28
28
|
vadPath
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XCOGI4JE.js";
|
|
30
30
|
import {
|
|
31
31
|
typedCommand
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7HEZQCHL.js";
|
|
33
33
|
import {
|
|
34
34
|
CliError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FNLXFQN6.js";
|
|
36
36
|
import {
|
|
37
37
|
__name
|
|
38
38
|
} from "./chunk-ZVVMGPBJ.js";
|
|
39
39
|
|
|
40
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/speech/cloud.js
|
|
41
41
|
var addressOf = /* @__PURE__ */ __name((env) => {
|
|
42
42
|
const setting = readAiSetting(aiSettingPath(env));
|
|
43
43
|
return setting?.provider === "openai" && setting.base_url ? setting.base_url : OPENAI_URL;
|
|
@@ -73,7 +73,7 @@ var cloudSpeech = /* @__PURE__ */ __name((deps) => {
|
|
|
73
73
|
told = true;
|
|
74
74
|
deps.notify(leavesComputer ? `the recordings' audio leaves this computer: it goes to ${host} (${model}) to be transcribed` : `the recordings' audio goes to ${host} on this computer (${model}) to be transcribed`);
|
|
75
75
|
}
|
|
76
|
-
const { transcribeOpenAI: transcribeOpenAI2 } = await import("./openai-
|
|
76
|
+
const { transcribeOpenAI: transcribeOpenAI2 } = await import("./openai-YIP73X2B.js");
|
|
77
77
|
return transcribeOpenAI2(audio, {
|
|
78
78
|
apiKey: apiKey ?? "",
|
|
79
79
|
model,
|
|
@@ -90,7 +90,7 @@ var cloudSpeech = /* @__PURE__ */ __name((deps) => {
|
|
|
90
90
|
};
|
|
91
91
|
}, "cloudSpeech");
|
|
92
92
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
93
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/speech/local.js
|
|
94
94
|
import { createHash } from "node:crypto";
|
|
95
95
|
import { isAbsolute } from "node:path";
|
|
96
96
|
import { setImmediate } from "node:timers/promises";
|
|
@@ -125,7 +125,7 @@ var recognizeLocalPieces = /* @__PURE__ */ __name(async (id, audio, options = {}
|
|
|
125
125
|
const directory = options.directory ?? modelsDirectory(options.env);
|
|
126
126
|
if (!isInstalled(model, directory))
|
|
127
127
|
throw notInstalled(model.id);
|
|
128
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
128
|
+
const { openRecognizer, toModelRate } = await import("./recognize-R5W25WKH.js");
|
|
129
129
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
130
130
|
try {
|
|
131
131
|
if (!engine.pieces)
|
|
@@ -156,7 +156,7 @@ var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) =>
|
|
|
156
156
|
cancelled(options.signal);
|
|
157
157
|
if (!isInstalled(model, directory))
|
|
158
158
|
throw notInstalled(description.model);
|
|
159
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
159
|
+
const { openRecognizer, toModelRate } = await import("./recognize-R5W25WKH.js");
|
|
160
160
|
cancelled(options.signal);
|
|
161
161
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
162
162
|
let closing = false;
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YZKVCTZI.js";
|
|
6
6
|
import {
|
|
7
7
|
WORD_BODY,
|
|
8
8
|
e164Of
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-532FNLON.js";
|
|
10
10
|
import {
|
|
11
11
|
resolvePaths,
|
|
12
12
|
writeSecurely
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OAYAGQ7C.js";
|
|
14
14
|
import {
|
|
15
15
|
array,
|
|
16
16
|
getDotPath,
|
|
@@ -29,18 +29,18 @@ import {
|
|
|
29
29
|
string,
|
|
30
30
|
transform,
|
|
31
31
|
unknown
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PJMQE4PW.js";
|
|
33
33
|
import {
|
|
34
34
|
CliError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FNLXFQN6.js";
|
|
36
36
|
import {
|
|
37
37
|
visibleControls
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-WJTXO2EI.js";
|
|
39
39
|
import {
|
|
40
40
|
__name
|
|
41
41
|
} from "./chunk-ZVVMGPBJ.js";
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
44
44
|
import { createHash } from "node:crypto";
|
|
45
45
|
var MAX_ID = 512;
|
|
46
46
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -271,7 +271,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId
|
|
|
271
271
|
};
|
|
272
272
|
}, "envelopeOfVcard");
|
|
273
273
|
|
|
274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
275
275
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
276
276
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
277
277
|
const { text, spans } = formatted;
|
|
@@ -331,7 +331,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
331
331
|
};
|
|
332
332
|
}, "visibleFormattedText");
|
|
333
333
|
|
|
334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
335
335
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
336
336
|
var LINK = /https?:\/\/\S+/i;
|
|
337
337
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -519,7 +519,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
519
519
|
}, "nextPoint");
|
|
520
520
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
521
521
|
|
|
522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
523
523
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
524
524
|
import { join } from "node:path";
|
|
525
525
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -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.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/private-files.js
|
|
8
8
|
import { existsSync, statSync } from "node:fs";
|
|
9
9
|
var shellQuoted = /* @__PURE__ */ __name((path) => `'${path.replaceAll("'", `'\\''`)}'`, "shellQuoted");
|
|
10
10
|
var privateFiles = /* @__PURE__ */ __name(({ files, dirs }, platform = process.platform) => {
|
|
@@ -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-FNLXFQN6.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.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/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();
|
|
@@ -2,13 +2,15 @@ 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-HI4QICF7.js";
|
|
6
6
|
import {
|
|
7
7
|
servingProfiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B6TUEQ4O.js";
|
|
9
9
|
import {
|
|
10
|
+
DEFAULT_PACE,
|
|
10
11
|
FloodMemory,
|
|
11
12
|
OFFLINE,
|
|
13
|
+
Pacer,
|
|
12
14
|
RecipientList,
|
|
13
15
|
capability,
|
|
14
16
|
ceilingRefusal,
|
|
@@ -16,12 +18,13 @@ import {
|
|
|
16
18
|
floodPathFor,
|
|
17
19
|
guardFor,
|
|
18
20
|
holdEnd,
|
|
21
|
+
pacePathFor,
|
|
19
22
|
profilesOnAccount,
|
|
20
23
|
recipientsPathFor,
|
|
21
24
|
servicesFor,
|
|
22
25
|
throughWrapper,
|
|
23
|
-
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
waitForTurn
|
|
27
|
+
} from "./chunk-2AWWMROP.js";
|
|
25
28
|
import {
|
|
26
29
|
asFirstWord,
|
|
27
30
|
baseContext,
|
|
@@ -35,10 +38,10 @@ import {
|
|
|
35
38
|
recalledAccount,
|
|
36
39
|
rememberAccount,
|
|
37
40
|
rootOf2 as rootOf
|
|
38
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-INJK7FNM.js";
|
|
39
42
|
import {
|
|
40
43
|
providerErrorKey
|
|
41
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-JOIAE3NO.js";
|
|
42
45
|
import {
|
|
43
46
|
AUTHORITY_KEY,
|
|
44
47
|
CEILING_KEY,
|
|
@@ -50,31 +53,28 @@ import {
|
|
|
50
53
|
levelFor,
|
|
51
54
|
readKeysForCommand,
|
|
52
55
|
skipFlagFor
|
|
53
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-YZKVCTZI.js";
|
|
54
57
|
import {
|
|
55
58
|
openStore
|
|
56
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-6NTNAEZF.js";
|
|
57
60
|
import {
|
|
58
61
|
chatReferenceOf,
|
|
59
62
|
ensureAccount,
|
|
60
63
|
foldName,
|
|
61
64
|
isId,
|
|
62
65
|
pickPerson
|
|
63
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-532FNLON.js";
|
|
64
67
|
import {
|
|
65
68
|
isCliFailure
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import {
|
|
68
|
-
resolvePaths
|
|
69
|
-
} from "./chunk-QAGECFHL.js";
|
|
69
|
+
} from "./chunk-AEVSVVTP.js";
|
|
70
70
|
import {
|
|
71
71
|
CliError
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-FNLXFQN6.js";
|
|
73
73
|
import {
|
|
74
74
|
__name
|
|
75
75
|
} from "./chunk-ZVVMGPBJ.js";
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
78
78
|
import { openSync } from "node:fs";
|
|
79
79
|
import { createInterface } from "node:readline";
|
|
80
80
|
import { ReadStream } from "node:tty";
|
|
@@ -129,7 +129,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
129
129
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
130
130
|
}, "terminalAsker");
|
|
131
131
|
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
133
133
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
134
134
|
"help",
|
|
135
135
|
"guide",
|
|
@@ -209,7 +209,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
209
209
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
210
210
|
}, "refuseUnknownPermissionKeys");
|
|
211
211
|
|
|
212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
213
213
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
214
214
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
215
215
|
let warned = false;
|
|
@@ -785,102 +785,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
785
785
|
}
|
|
786
786
|
}, "keep");
|
|
787
787
|
|
|
788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
789
|
-
import { readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
790
|
-
import { join } from "node:path";
|
|
791
|
-
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
792
|
-
var pacePathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "pace", `${profile}.json`), "pacePathFor");
|
|
793
|
-
var Pacer = class {
|
|
794
|
-
static {
|
|
795
|
-
__name(this, "Pacer");
|
|
796
|
-
}
|
|
797
|
-
path;
|
|
798
|
-
rate;
|
|
799
|
-
now;
|
|
800
|
-
constructor(path, rate, now = Date.now) {
|
|
801
|
-
this.path = path;
|
|
802
|
-
this.rate = rate;
|
|
803
|
-
this.now = now;
|
|
804
|
-
}
|
|
805
|
-
get interval() {
|
|
806
|
-
return this.rate.perMinute > 0 ? 6e4 / this.rate.perMinute : 0;
|
|
807
|
-
}
|
|
808
|
-
/** When this call may go; reserved at once, so the next caller in any process lines up behind it. */
|
|
809
|
-
async reserve() {
|
|
810
|
-
if (this.interval === 0)
|
|
811
|
-
return this.now();
|
|
812
|
-
return withFileLockAsync(this.path, "the request pace", () => {
|
|
813
|
-
const now = this.now();
|
|
814
|
-
const tat = Math.max(this.read(now), now);
|
|
815
|
-
this.write(tat + this.interval, now);
|
|
816
|
-
return Math.max(now, tat - this.rate.burst * this.interval);
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
/** The messenger asked every caller to wait: nothing goes before `now + waitMs`, in any process. */
|
|
820
|
-
async holdFor(waitMs) {
|
|
821
|
-
if (this.interval === 0)
|
|
822
|
-
return;
|
|
823
|
-
await withFileLockAsync(this.path, "the request pace", () => {
|
|
824
|
-
const now = this.now();
|
|
825
|
-
const hold = now + waitMs + this.rate.burst * this.interval;
|
|
826
|
-
this.write(Math.max(this.read(now), hold), now);
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
/** The owner's `flood clear`: every process may go again at once. */
|
|
830
|
-
async reset() {
|
|
831
|
-
await withFileLockAsync(this.path, "the request pace", () => this.write(0, this.now()));
|
|
832
|
-
}
|
|
833
|
-
read(now) {
|
|
834
|
-
try {
|
|
835
|
-
const file = JSON.parse(readFileSync(this.path, "utf8"));
|
|
836
|
-
const tat = Number(file.tat);
|
|
837
|
-
if (!Number.isFinite(tat))
|
|
838
|
-
return 0;
|
|
839
|
-
const at = Number(file.at);
|
|
840
|
-
return Number.isFinite(at) && at > now ? now + Math.max(0, tat - at) : tat;
|
|
841
|
-
} catch {
|
|
842
|
-
return 0;
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
write(tat, at) {
|
|
846
|
-
const temporary = `${this.path}.${process.pid}.tmp`;
|
|
847
|
-
writeFileSync(temporary, JSON.stringify({ tat, at }), { mode: 384 });
|
|
848
|
-
renameSync(temporary, this.path);
|
|
849
|
-
}
|
|
850
|
-
};
|
|
851
|
-
var ANNOUNCE_WAIT_MS = 5e3;
|
|
852
|
-
var LONGEST_PACE_WAIT_MS = 5 * 6e4;
|
|
853
|
-
var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
854
|
-
const { name, operation, warn } = options;
|
|
855
|
-
const now = options.now ?? Date.now;
|
|
856
|
-
let at = now();
|
|
857
|
-
try {
|
|
858
|
-
at = await pacer.reserve();
|
|
859
|
-
} catch (error) {
|
|
860
|
-
warn?.(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
|
|
861
|
-
event: "warning",
|
|
862
|
-
code: "wait_not_remembered",
|
|
863
|
-
operation
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
const waitMs = at - now();
|
|
867
|
-
if (waitMs <= 0)
|
|
868
|
-
return;
|
|
869
|
-
if (waitMs > (options.longestWaitMs ?? LONGEST_PACE_WAIT_MS))
|
|
870
|
-
throw new CliError("rate_limited", `this profile's next request to ${name} has to wait ${Math.ceil(waitMs / 1e3)} s more \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
|
|
871
|
-
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
872
|
-
const seconds = Math.ceil(waitMs / 1e3);
|
|
873
|
-
warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
874
|
-
event: "warning",
|
|
875
|
-
code: "pace_wait",
|
|
876
|
-
operation,
|
|
877
|
-
counts: { seconds }
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
881
|
-
}, "waitForTurn");
|
|
882
|
-
|
|
883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
884
789
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
885
790
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
886
791
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -977,7 +882,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
977
882
|
});
|
|
978
883
|
}, "flooded");
|
|
979
884
|
|
|
980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
981
886
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
982
887
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
983
888
|
const write = currentOperation();
|
|
@@ -1076,7 +981,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1076
981
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1077
982
|
}, "byPart");
|
|
1078
983
|
|
|
1079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1080
985
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1081
986
|
let opened;
|
|
1082
987
|
return {
|
|
@@ -1479,9 +1384,6 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1479
1384
|
export {
|
|
1480
1385
|
answerOf,
|
|
1481
1386
|
terminalAsker,
|
|
1482
|
-
DEFAULT_PACE,
|
|
1483
|
-
pacePathFor,
|
|
1484
|
-
Pacer,
|
|
1485
1387
|
commandPathKey,
|
|
1486
1388
|
commandPermissions,
|
|
1487
1389
|
knownPermissionKeys,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -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.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
|
|
8
8
|
var COMMAND_SERVER_ARGV = ["commands", "--serve"];
|
|
9
9
|
var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
|
|
10
10
|
|