@wirecat/zoom-cli 0.76.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/README.md +12 -11
- package/contracts/wirecat.json +53 -105
- package/dist/answer-entities.d.ts +1 -141
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +0 -31
- package/dist/answer-entities.js.map +1 -1
- package/dist/api.d.ts +18 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +179 -54
- package/dist/api.js.map +1 -1
- package/dist/archive-commands.d.ts +0 -3
- package/dist/archive-commands.d.ts.map +1 -1
- package/dist/archive-commands.js +1 -54
- package/dist/archive-commands.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-AAMFP7IN.js → all-profiles-7JN3N3E6.js} +11 -11
- package/dist/bundle/answer-policy-G2BNMPEX.js +122 -0
- package/dist/bundle/{anthropic-6KIS53QB.js → anthropic-U6O7UYGZ.js} +6 -6
- package/dist/bundle/{app-server-6QYNNYEU.js → app-server-G7BTC6CE.js} +78 -68
- package/dist/bundle/{bun-QVVCH4MJ.js → bun-VLROVUFK.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y2ZFMNQ3.js → bun-sqlite-C5JLANDE.js} +7 -7
- package/dist/bundle/{chunk-25GMFXPF.js → chunk-2AWWMROP.js} +3244 -3674
- package/dist/bundle/{chunk-YESHGC3M.js → chunk-2LMD3JUD.js} +2 -2
- package/dist/bundle/{chunk-LGBLYFKI.js → chunk-2O66KMOR.js} +6 -2
- package/dist/bundle/{chunk-JADBHKBP.js → chunk-2USGT7LE.js} +1 -1
- package/dist/bundle/{chunk-M7WYBGQT.js → chunk-3A3B3JX4.js} +8 -8
- package/dist/bundle/{chunk-RJK5ADMH.js → chunk-3NZJKY7A.js} +103 -42
- package/dist/bundle/chunk-3QWYRZME.js +773 -0
- package/dist/bundle/{chunk-D2TGXSHQ.js → chunk-4QCLPSJ7.js} +5 -5
- package/dist/bundle/{chunk-XC4V6YCS.js → chunk-4XPVRZXE.js} +1 -1
- package/dist/bundle/{chunk-EZJSAYWZ.js → chunk-532FNLON.js} +31 -87
- package/dist/bundle/{chunk-QLUU3BV2.js → chunk-53TV72JG.js} +6 -6
- package/dist/bundle/{chunk-VJANMYEC.js → chunk-5DLK4OXF.js} +3 -3
- package/dist/bundle/chunk-5SM2IOAS.js +389 -0
- package/dist/bundle/{chunk-65VRWNDP.js → chunk-6MFEWAK4.js} +4 -4
- package/dist/bundle/{chunk-IUSY4ZJK.js → chunk-6NTNAEZF.js} +2379 -2114
- package/dist/bundle/{chunk-DQHS336B.js → chunk-7AMKSXMB.js} +7 -6
- package/dist/bundle/{chunk-IXPBSDKB.js → chunk-7EVB4UV7.js} +4 -4
- package/dist/bundle/chunk-7HEZQCHL.js +555 -0
- package/dist/bundle/{chunk-TYAFL66K.js → chunk-7IIQU5RA.js} +15 -31
- package/dist/bundle/{chunk-TK77DCE5.js → chunk-7K5O2VWO.js} +1 -1
- package/dist/bundle/{chunk-VG63EXRC.js → chunk-AEVSVVTP.js} +2 -2
- package/dist/bundle/chunk-B4V4DRVO.js +229 -0
- package/dist/bundle/{chunk-2HKUQ7DR.js → chunk-B6TUEQ4O.js} +3 -3
- package/dist/bundle/chunk-BAHXR4PA.js +259 -0
- package/dist/bundle/{chunk-ZFYNJERV.js → chunk-BGO7IEHY.js} +6 -6
- package/dist/bundle/{chunk-PFLJJQWW.js → chunk-BIUHLXL2.js} +54 -55
- package/dist/bundle/{chunk-5T7TBK5Y.js → chunk-C26V2XNV.js} +1 -1
- package/dist/bundle/chunk-C56OYYFG.js +170 -0
- package/dist/bundle/{chunk-MDTEAKA5.js → chunk-DLJPN47R.js} +8 -6
- package/dist/bundle/{chunk-FBVJGJDM.js → chunk-EV7QCFQR.js} +27 -574
- package/dist/bundle/{chunk-ORM73DZO.js → chunk-F2KZNAFF.js} +2 -2
- package/dist/bundle/{chunk-QY6GE7CL.js → chunk-F7IDYQLM.js} +2 -2
- package/dist/bundle/{chunk-WNXC42IU.js → chunk-FCGRXUAU.js} +9 -9
- package/dist/bundle/{chunk-ELW3LMJZ.js → chunk-FHOQWPQ6.js} +397 -157
- package/dist/bundle/{chunk-NQ356ERO.js → chunk-FMMCGQNT.js} +77 -10
- package/dist/bundle/{chunk-K3K3WKDB.js → chunk-FNLXFQN6.js} +1 -1
- package/dist/bundle/{chunk-YGKM2ZWF.js → chunk-FURKMNC2.js} +3 -3
- package/dist/bundle/{chunk-XRH2NKW4.js → chunk-FXHZHQKU.js} +6 -6
- package/dist/bundle/{chunk-GZYICXO4.js → chunk-GQ6EJDMV.js} +1 -1
- package/dist/bundle/{chunk-VABYJQYE.js → chunk-H34KEXTN.js} +24 -22
- package/dist/bundle/{chunk-HWYSJ4SL.js → chunk-H74NENWA.js} +3 -3
- package/dist/bundle/{chunk-Y2BGABXP.js → chunk-H7SRM26V.js} +3 -3
- package/dist/bundle/{chunk-VRA4RVQU.js → chunk-HGBZBQAE.js} +3 -3
- package/dist/bundle/{chunk-EZXW3ZCR.js → chunk-HI4QICF7.js} +12 -12
- package/dist/bundle/{chunk-LEVOI6Z3.js → chunk-HOJOVUO6.js} +14 -13
- package/dist/bundle/{chunk-XWQKRKMT.js → chunk-HUSIS3XO.js} +71 -252
- package/dist/bundle/chunk-IBINGDYF.js +335 -0
- package/dist/bundle/{chunk-55SWKR6Y.js → chunk-INJK7FNM.js} +337 -597
- package/dist/bundle/{chunk-CXHUOPN5.js → chunk-JOIAE3NO.js} +7 -7
- package/dist/bundle/{chunk-OFODCJ2A.js → chunk-KBTINKQF.js} +3 -3
- package/dist/bundle/{chunk-VCFSUGPE.js → chunk-KEAKNNXU.js} +4 -4
- package/dist/bundle/{chunk-XHVFX74L.js → chunk-LBTANUUH.js} +2 -2
- package/dist/bundle/chunk-LBV4673S.js +72 -0
- package/dist/bundle/chunk-LERF2FIK.js +295 -0
- package/dist/bundle/{chunk-UYZDH5LK.js → chunk-LX532BXO.js} +1 -1
- package/dist/bundle/{chunk-IVFNHIU4.js → chunk-M2M3U4UU.js} +81 -5
- package/dist/bundle/{chunk-JWMOHEDL.js → chunk-M5R2DURM.js} +10 -10
- package/dist/bundle/{chunk-4ERYXY4Y.js → chunk-MJMHUU3J.js} +1 -1
- package/dist/bundle/{chunk-GYTAHH5Y.js → chunk-MSMFYW6N.js} +2 -2
- package/dist/bundle/{chunk-X73YEFQE.js → chunk-MVLLWSV7.js} +20 -118
- package/dist/bundle/{chunk-RXUVXAMM.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-Y4WEAWU7.js → chunk-NS5XSCHC.js} +1 -1
- package/dist/bundle/{chunk-ZETM63M6.js → chunk-OAE6XR7E.js} +9 -60
- package/dist/bundle/{chunk-CS62FET6.js → chunk-OAYAGQ7C.js} +22 -22
- package/dist/bundle/{chunk-T2QVWRJF.js → chunk-OI4563JI.js} +39 -67
- package/dist/bundle/{chunk-WKT5RPSY.js → chunk-OOLNK3Y5.js} +8 -8
- package/dist/bundle/{chunk-EBIK5Q73.js → chunk-ORSTSBWU.js} +1 -1
- package/dist/bundle/{chunk-GB5LI5RM.js → chunk-P5QO7Y3H.js} +6 -6
- package/dist/bundle/{chunk-3D5PETD2.js → chunk-PJMQE4PW.js} +29 -9
- package/dist/bundle/{chunk-KEFDP6NL.js → chunk-Q4AKIAIA.js} +12 -12
- package/dist/bundle/{chunk-CPOFLYPU.js → chunk-Q4CNLEAY.js} +29 -29
- package/dist/bundle/{chunk-UAV74EY4.js → chunk-RJIJR6KH.js} +1 -1
- package/dist/bundle/{chunk-GPIQY4YB.js → chunk-TEFHNXXX.js} +14 -14
- package/dist/bundle/{chunk-FMJ4QSSU.js → chunk-TFDD4Q5Z.js} +10 -10
- package/dist/bundle/{chunk-HUHH25AG.js → chunk-TXDCIM5D.js} +3017 -1599
- package/dist/bundle/{chunk-FGRFIXG2.js → chunk-U2Z35B3W.js} +2 -2
- package/dist/bundle/{chunk-WZJ7ZYR4.js → chunk-UHBQM54J.js} +4 -4
- package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-UIBKGH5P.js} +1 -1
- package/dist/bundle/{chunk-5EII5RIL.js → chunk-UKYO3HNO.js} +1 -1
- package/dist/bundle/{chunk-7RORMNKP.js → chunk-V53TIJLY.js} +2 -2
- package/dist/bundle/{chunk-OOYIPK4F.js → chunk-VMA7SILL.js} +1 -1
- package/dist/bundle/chunk-VW36ZSAE.js +88 -0
- package/dist/bundle/chunk-WEAMGNST.js +31 -0
- package/dist/bundle/{chunk-EPPE6ZTS.js → chunk-WJTXO2EI.js} +1 -1
- package/dist/bundle/{chunk-4JPOELCT.js → chunk-WOYPWXZK.js} +4 -4
- package/dist/bundle/{chunk-OINDAHXC.js → chunk-XCOGI4JE.js} +4 -4
- package/dist/bundle/{chunk-CE5Y7PQU.js → chunk-XOG7B7K5.js} +4 -4
- package/dist/bundle/chunk-XSF5OBVZ.js +224 -0
- package/dist/bundle/{chunk-B7ZREOBD.js → chunk-XXD4YPHQ.js} +12 -12
- package/dist/bundle/{chunk-35AH33VJ.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-R47GYLNN.js → chunk-YHQ3TEGB.js} +29 -27
- package/dist/bundle/{chunk-LOEK6IFQ.js → chunk-YLNUKNGD.js} +87 -35
- package/dist/bundle/{chunk-6SXCGS3A.js → chunk-YNYQGZUW.js} +7 -7
- package/dist/bundle/{chunk-OWZETMRE.js → chunk-YZKVCTZI.js} +8 -8
- package/dist/bundle/{chunk-UG2QDGAH.js → chunk-ZCVO6GAT.js} +1 -1
- package/dist/bundle/{chunk-YEBWRWE3.js → chunk-ZDZASHSQ.js} +17 -17
- package/dist/bundle/chunk-ZZJ5IWNT.js +101 -0
- package/dist/bundle/{cli-FHMLYHUZ.js → cli-YALONJ4V.js} +135 -84
- package/dist/bundle/command-contract-DMR5EOIN.js +45 -0
- package/dist/bundle/{command-server-entry-YEZM52R5.js → command-server-entry-W4XTBUZE.js} +35 -31
- package/dist/bundle/config-4TLDRXRL.js +109 -0
- package/dist/bundle/{decode-SIYRMJOK.js → decode-IFQHVCFX.js} +16 -8
- package/dist/bundle/{dispatch-SMER3WDX.js → dispatch-GOJB4TDK.js} +9 -9
- package/dist/bundle/{dist-BSJETSFE.js → dist-H7XFUMRX.js} +25 -22
- package/dist/bundle/{echarts-UZJ6AREV.js → echarts-HPUHPJCO.js} +2 -2
- package/dist/bundle/{embed-A7DSHVI7.js → embed-ESU3WZYW.js} +7 -7
- package/dist/bundle/{embedder-WQBR4UGS.js → embedder-BV6O76B3.js} +10 -10
- package/dist/bundle/{failure-73UQXQTW.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-BH4SV6SI.js → folders-VQGKBM3P.js} +5 -5
- package/dist/bundle/{instructions-SDDUBGH4.js → instructions-UUX57I3V.js} +1 -1
- package/dist/bundle/{main-KL4FN5F3.js → main-UIKADOFB.js} +24 -24
- package/dist/bundle/{mcp-GN4FTJX5.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-F6GUICB7.js +23 -0
- package/dist/bundle/{meetings-URPXBHV7.js → meetings-KIBUPLPW.js} +37 -7
- package/dist/bundle/{node-ELCNUOCE.js → node-AM3JCAWB.js} +2 -2
- package/dist/bundle/{node-sqlite-QLSNHZBM.js → node-sqlite-VM6VS3RU.js} +8 -8
- package/dist/bundle/{oauth-LZ64S7Y3.js → oauth-AX5Z32H6.js} +8 -8
- package/dist/bundle/{open-WB4HUPQT.js → open-SSGOOOZG.js} +6 -6
- package/dist/bundle/openai-YIP73X2B.js +28 -0
- package/dist/bundle/{output-file-AHPQA5LR.js → output-file-FR226A64.js} +6 -6
- package/dist/bundle/{process-67DAKAAQ.js → process-5ZEK2VFY.js} +1 -1
- package/dist/bundle/{program-CIMACIBE.js → program-ROJAJHCB.js} +424 -251
- package/dist/bundle/{prompt-GG53UBDJ.js → prompt-6Y7A4453.js} +6 -6
- package/dist/bundle/{recognize-CFJ3CAEH.js → recognize-R5W25WKH.js} +5 -5
- package/dist/bundle/{remote-BLEM7C3Q.js → remote-PA4FQUZK.js} +11 -11
- package/dist/bundle/{rerank-ERN6PC66.js → rerank-CYX3UFTM.js} +8 -8
- package/dist/bundle/run-log-FHERL3H6.js +136 -0
- package/dist/bundle/{serve-FJPPTJXH.js → serve-MM5QEZJW.js} +15 -15
- package/dist/bundle/{server-FLUSDUGM.js → server-JQQAH7E5.js} +64 -54
- package/dist/bundle/server-W2BBONCQ.js +85 -0
- package/dist/bundle/{services-LXC6DVUQ.js → services-Y2DOQONM.js} +85 -54
- package/dist/bundle/{speech-WFEZTKXA.js → speech-O6WLX34V.js} +34 -18
- package/dist/bundle/{sqlite-runtime-KN33VSP7.js → sqlite-runtime-LQTBZMFH.js} +7 -7
- package/dist/bundle/{state-TXS4ZHIT.js → state-AIDPZLVH.js} +7 -7
- package/dist/bundle/{store-ZUREZYZB.js → store-BA4FQS5V.js} +26 -20
- package/dist/bundle/{store-MUOXLVL4.js → store-UNDS2TBG.js} +30 -22
- package/dist/bundle/store-connection-ADBJ36T4.js +102 -0
- package/dist/bundle/store-maintenance-command-IB6ML4UI.js +77 -0
- package/dist/bundle/{streaming-ZSCHRC5S.js → streaming-UFHT5MR2.js} +7 -7
- package/dist/bundle/{tokens-YVDOY4EV.js → tokens-Z32UKGQB.js} +10 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-O6GIMB7Y.js → zoom-app-6U46XBTG.js} +8 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -0
- package/dist/commands.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +3 -5
- package/dist/first-screen.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +46 -28
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-source.js +15 -1
- package/dist/meeting-source.js.map +1 -1
- package/dist/permissions.d.ts +8 -4
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +25 -24
- package/dist/permissions.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +8 -5
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +2 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js.map +1 -1
- package/dist/remote-meetings.d.ts +38 -8
- package/dist/remote-meetings.d.ts.map +1 -1
- package/dist/remote-meetings.js +52 -29
- package/dist/remote-meetings.js.map +1 -1
- package/dist/run.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +1 -0
- package/dist/zoom-app.js.map +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-ETAELI4A.js +0 -110
- package/dist/bundle/chunk-64N7MY3I.js +0 -161
- package/dist/bundle/command-contract-HUZ4I23S.js +0 -41
- package/dist/bundle/config-KVTWN7QZ.js +0 -97
- package/dist/bundle/first-run-SY6XSUZ3.js +0 -29
- package/dist/bundle/first-screen-ZDMODGWS.js +0 -39
- package/dist/bundle/openai-KN6JE4QU.js +0 -28
- package/dist/bundle/run-log-S67YPJF6.js +0 -124
- package/dist/bundle/server-UNJY3TSJ.js +0 -74
- package/dist/bundle/store-connection-NRNEBUPU.js +0 -90
- package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +0 -65
- /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-SHTHNBHG.js} +0 -0
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TFDD4Q5Z.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PJMQE4PW.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
14
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
15
|
var QUERY = [
|
|
16
16
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -32,10 +32,16 @@ var SIGN_IN = [
|
|
|
32
32
|
["oauth.timeout", "timeout", "the sign-in was not finished in time"],
|
|
33
33
|
["oauth.mismatch", "authentication_error", "the pasted sign-in result belongs to another sign-in"],
|
|
34
34
|
["session.missing", "authentication_error", "this profile is not signed in: no saved sign-in or API token"],
|
|
35
|
+
["session.unreadable", "configuration_error", "the profile's stored secrets cannot be read; sign in again"],
|
|
35
36
|
["oauth.locked", "provider_unavailable", "another process holds this sign-in's lock"],
|
|
36
37
|
["oauth.no-response", "outcome_unknown", "the token request did not finish"],
|
|
37
38
|
["oauth.unavailable", "provider_unavailable", "the provider's token endpoint is unavailable"],
|
|
38
39
|
["oauth.expired", "authentication_error", "the provider refused the saved sign-in; sign in again"],
|
|
40
|
+
[
|
|
41
|
+
"oauth.moved-rotating",
|
|
42
|
+
"authentication_error",
|
|
43
|
+
"a run with moved folders cannot refresh a sign-in whose refresh token rotates"
|
|
44
|
+
],
|
|
39
45
|
["oauth.invalid-response", "invalid_response", "the provider's token response could not be used"],
|
|
40
46
|
["oauth.failed", "authentication_error", "the provider returned no offline refresh token"],
|
|
41
47
|
["oauth.revoke-failed", "outcome_unknown", "the provider did not confirm the revoke"],
|
|
@@ -48,6 +54,7 @@ var SIGN_IN = [
|
|
|
48
54
|
["sign-in.secret-without-id", "configuration_error", "an OAuth client secret is set without its client id"],
|
|
49
55
|
validation("account-remove.no-choice", "account remove needs --keep-data or --delete-data, one of them"),
|
|
50
56
|
["account-remove.unknown-profile", "not_found", "no profile by this name on this computer"],
|
|
57
|
+
validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
|
|
51
58
|
["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
|
|
52
59
|
["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
|
|
53
60
|
["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
|
|
@@ -67,7 +74,8 @@ var PROVIDER_API = [
|
|
|
67
74
|
["item.not-found", "not_found", "the provider has no item by this id, or this account cannot see it"],
|
|
68
75
|
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
69
76
|
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
70
|
-
["file.denied", "permission_error", "the file cannot be opened: permission denied"]
|
|
77
|
+
["file.denied", "permission_error", "the file cannot be opened: permission denied"],
|
|
78
|
+
validation("file.too-large", "the file is larger than the limit set for this read")
|
|
71
79
|
];
|
|
72
80
|
var SFTP = [
|
|
73
81
|
["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
|
|
@@ -77,7 +85,21 @@ var SFTP = [
|
|
|
77
85
|
["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
|
|
78
86
|
["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
|
|
79
87
|
validation("sftp.too-large", "the file is larger than the read's byte limit"),
|
|
80
|
-
validation("sftp.closed", "the SFTP connection was closed before the operation")
|
|
88
|
+
validation("sftp.closed", "the SFTP connection was closed before the operation"),
|
|
89
|
+
validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
|
|
90
|
+
["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
|
|
91
|
+
["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
|
|
92
|
+
];
|
|
93
|
+
var SQL = [
|
|
94
|
+
validation("sql.bad-identifier", "a table or column name is not a plain identifier"),
|
|
95
|
+
["sql.library-missing", "configuration_error", "this database needs the mysql2 or pg package in the CLI"],
|
|
96
|
+
["db.refused", "authentication_error", "the database server refused the user or password"],
|
|
97
|
+
["db.no-database", "not_found", "the database server has no such database"],
|
|
98
|
+
["db.no-table", "not_found", "the database has no such table"],
|
|
99
|
+
["db.no-select", "permission_error", "the database user may not read the table; grant it SELECT"],
|
|
100
|
+
["db.read-only", "permission_error", "the database refused a write: the connection only reads"],
|
|
101
|
+
["db.timeout", "timeout", "the database server did not answer in time"],
|
|
102
|
+
["db.failed", "provider_error", "the database server failed the query"]
|
|
81
103
|
];
|
|
82
104
|
var OTHERS = [
|
|
83
105
|
validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
|
|
@@ -109,6 +131,13 @@ var OTHERS = [
|
|
|
109
131
|
["ai.images-not-allowed", "permission_error", "the AI model may not read pictures; models ai set --allow-remote"],
|
|
110
132
|
["picture-reading.off", "permission_error", "picture reading is never; models picture-reading set request"],
|
|
111
133
|
["picture-reading.owner-only", "permission_error", "only the owner turns picture reading on, not an agent"],
|
|
134
|
+
[
|
|
135
|
+
"chat-sending.denied",
|
|
136
|
+
"permission_error",
|
|
137
|
+
"models chats is denied: chat text never goes to a model off this computer, even with --yes"
|
|
138
|
+
],
|
|
139
|
+
["chat-sending.ask", "confirmation_required", "models chats is ask: pass --yes, or the owner sets it to allowed"],
|
|
140
|
+
["chat-sending.owner-only", "permission_error", "only the owner makes models chats less strict, not an agent"],
|
|
112
141
|
validation("picture-reading.agent-missing", "choose the agent that reads: --agent claude or --agent codex"),
|
|
113
142
|
validation("picture-reading.not-a-picture", "the file is not a PNG, JPEG or WebP picture"),
|
|
114
143
|
["picture-reading.unavailable-file", "not_found", "the picture could not be fetched, or is over the size limit"],
|
|
@@ -164,6 +193,7 @@ var OTHERS = [
|
|
|
164
193
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
165
194
|
["document.not-found", "not_found", "no listed document has that reference"],
|
|
166
195
|
["meeting.not-found", "not_found", "no meeting row has that event or meeting reference"],
|
|
196
|
+
["listing.too-large", "provider_error", "the listing is over its bound; the checkpoint was kept"],
|
|
167
197
|
["listing.source-not-found", "not_found", "a source: term names no account holding what is listed"],
|
|
168
198
|
validation("query.empty-window", "the time window ends before it starts, so no row can fall in it"),
|
|
169
199
|
["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
|
|
@@ -181,6 +211,15 @@ var OTHERS = [
|
|
|
181
211
|
"the email could not be read again, so its skipped attachments have no text"
|
|
182
212
|
],
|
|
183
213
|
["mirror.partial", "provider_error", "some mirrored files were not synced"],
|
|
214
|
+
["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
|
|
215
|
+
["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
|
|
216
|
+
validation("mirror.not-folder", "the path to mirror is not a folder"),
|
|
217
|
+
["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
|
|
218
|
+
["catalog.not-found", "not_found", "the file or folder is not in the local catalog; run catalog import or sync"],
|
|
219
|
+
validation("catalog.depth-invalid", "tree depth must be between 0 and 50"),
|
|
220
|
+
["catalog.cycle", "invalid_response", "local folder ancestry contains a cycle"],
|
|
221
|
+
validation("catalog.tree-limit", "the tree is over 10000 entries; name a smaller folder or lower --depth"),
|
|
222
|
+
validation("export.exists", "the output file already exists"),
|
|
184
223
|
["profile.wrong-account", "authentication_error", "the signed-in source account does not match this profile"],
|
|
185
224
|
validation("push.too-many-files", "the folder holds more files than one push takes"),
|
|
186
225
|
validation("push.unreadable", "the folder to push could not be read"),
|
|
@@ -191,7 +230,7 @@ var OTHERS = [
|
|
|
191
230
|
"the settings file's damage has more than one reading; nothing was changed, so it is fixed by hand"
|
|
192
231
|
],
|
|
193
232
|
["state.invalid", "configuration_error", "the saved sync state is unreadable or invalid; it is kept, not reset"],
|
|
194
|
-
["sync.partial", "provider_error", "some
|
|
233
|
+
["sync.partial", "provider_error", "some sources did not sync; the next sync retries them"],
|
|
195
234
|
validation("event.conflict", "the event changed at the provider since the last sync; sync and try again"),
|
|
196
235
|
validation("event.notify-required", "the event has other attendees; say whether to notify them"),
|
|
197
236
|
validation("remind.window", "--due-within is outside 1m to 1d"),
|
|
@@ -202,6 +241,7 @@ var OTHERS = [
|
|
|
202
241
|
"the reminder program failed for some events; the next run retries them"
|
|
203
242
|
],
|
|
204
243
|
["sync.failed", "provider_error", "the sync failed; the answer comes from what the store already holds"],
|
|
244
|
+
validation("event.conference-exists", "the event has a meeting link already, which its attendees use"),
|
|
205
245
|
validation("event.repeat-invalid", "the repeat rule is outside the RFC 5545 subset the calendars take"),
|
|
206
246
|
validation("event.repeat-kind", "the series' rule holds a date or a time of the kind the event is leaving"),
|
|
207
247
|
validation("event.repeat-split", "the series cannot be split at this occurrence, or was split there already"),
|
|
@@ -251,6 +291,7 @@ var OTHERS = [
|
|
|
251
291
|
["meetings.server-unreachable", "network_error", "the meetings service could not be reached"],
|
|
252
292
|
["meetings.server-signed-out", "authentication_error", "the meetings service needs a sign-in"],
|
|
253
293
|
["meetings.server-refused", "permission_error", "the meetings service refused the request"],
|
|
294
|
+
["meetings.server-rate-limited", "rate_limited", "the meetings service asked to wait before more requests"],
|
|
254
295
|
["meetings.server-failed", "provider_error", "the meetings service could not be read, or what it returned kept"],
|
|
255
296
|
[
|
|
256
297
|
"meetings.server-capped",
|
|
@@ -324,6 +365,7 @@ var OTHERS = [
|
|
|
324
365
|
validation("index.not-ready", "the search index is still being built"),
|
|
325
366
|
validation("input.closed", "the input closed before the answer"),
|
|
326
367
|
validation("input.empty", "a hidden prompt got an empty answer three times"),
|
|
368
|
+
validation("input.incomplete", "the answers stop before the step that checks them"),
|
|
327
369
|
validation("input.required", "the command needs an answer and cannot ask for one"),
|
|
328
370
|
validation("input.too-large", "the input is over its size limit"),
|
|
329
371
|
["meeting-project.stale", "conflict", "the meeting's project changed meanwhile"],
|
|
@@ -402,16 +444,33 @@ var OTHERS = [
|
|
|
402
444
|
validation("pipeline.field", "a pipeline needs a name and at least one stage, each named once"),
|
|
403
445
|
["pipeline.not-found", "not_found", "no stored pipeline has that name or reference"],
|
|
404
446
|
validation("crm.stage-unknown", "a CRM item stands in a stage the store does not hold; it was not kept"),
|
|
405
|
-
validation("crm.item-invalid", "a CRM item has a field the store refuses, such as a
|
|
447
|
+
validation("crm.item-invalid", "a CRM item has a field the store refuses, such as a status it does not know"),
|
|
448
|
+
validation("crm.amount-unkept", "a CRM deal's amount is in a currency or with decimals the store cannot hold: the deal is kept without it"),
|
|
406
449
|
validation("crm.pipeline-required", "the CRM has more than one pipeline of the kind; the command names one"),
|
|
407
450
|
validation("field.unknown", "no custom field of the kind has that code or label; `fields list` lists them"),
|
|
408
451
|
validation("field.ambiguous", "more than one custom field has that label; name one by its code"),
|
|
409
452
|
validation("field.unknown-option", "the list field has no option with that id or label"),
|
|
453
|
+
validation("crm.record-ambiguous", "more than one contact or company has that name; name one by its id"),
|
|
454
|
+
validation("field.ambiguous-option", "more than one option of the list field has that label; name one by its id"),
|
|
410
455
|
validation("field.unknown-kind", "fields are listed for deals, leads, people and organizations only"),
|
|
456
|
+
[
|
|
457
|
+
"crm.foreign-contacts-spent",
|
|
458
|
+
"permission_error",
|
|
459
|
+
"the day's views of contacts and companies that are not yours are spent"
|
|
460
|
+
],
|
|
461
|
+
[
|
|
462
|
+
"crm.client-reads-admin-only",
|
|
463
|
+
"permission_error",
|
|
464
|
+
"a raw api call that reads contacts or companies is the CRM administrator's"
|
|
465
|
+
],
|
|
466
|
+
validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
|
|
467
|
+
validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
|
|
468
|
+
validation("crm.record-field", "a contact's or company's field is not valid"),
|
|
469
|
+
validation("crm.owner-unknown", "owner: names no CRM user: me without a known sign-in user, or not a user id"),
|
|
411
470
|
validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
|
|
412
471
|
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
|
|
413
472
|
validation("crm.narrowing-held", "the default scope mine would mark most of a kind's stored rows deleted; none is, until the owner sets the scope"),
|
|
414
|
-
validation("crm.unassigned-dropped", "the CRM does not let this sign-in
|
|
473
|
+
validation("crm.unassigned-dropped", "the CRM does not let this sign-in choose a user in unassigned; that user's deals are not copied"),
|
|
415
474
|
validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
|
|
416
475
|
validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
|
|
417
476
|
validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
|
|
@@ -475,6 +534,11 @@ var OTHERS = [
|
|
|
475
534
|
"conflict",
|
|
476
535
|
"the people a merge or a proposed link names changed since; undo the later merge, or propose the link again"
|
|
477
536
|
],
|
|
537
|
+
[
|
|
538
|
+
"identity.merge-conflict",
|
|
539
|
+
"conflict",
|
|
540
|
+
"a row of the renamed identity has no counterpart on the identity it merges into; the pair is left as it was"
|
|
541
|
+
],
|
|
478
542
|
["identity.no-merge", "not_found", "nothing of that person is merged into the other; people show lists the merges"],
|
|
479
543
|
validation("identity.held-elsewhere", "the identity sits on another person than the one named; name that person to take it off them"),
|
|
480
544
|
validation("identity.several-persons", "the identities that leave a person are all of that one person"),
|
|
@@ -490,6 +554,7 @@ var OTHERS = [
|
|
|
490
554
|
"the owner rejected linking these people on this evidence; only a new signal or identity proposes them again"
|
|
491
555
|
],
|
|
492
556
|
validation("identity.same", "the two identities are one person already"),
|
|
557
|
+
validation("identity.agent-unnamed", "an agent's link names the agent, and never as the owner"),
|
|
493
558
|
validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
|
|
494
559
|
["organization.not-found", "not_found", "no stored organization has that id"],
|
|
495
560
|
validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
|
|
@@ -612,7 +677,7 @@ var INPUT_FIELD_REASONS = defineReasons([
|
|
|
612
677
|
var REASONS = defineReasons([
|
|
613
678
|
...QUERY_REASONS,
|
|
614
679
|
...INPUT_FIELD_REASONS,
|
|
615
|
-
...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...OTHERS].map(([reason, code, message]) => ({
|
|
680
|
+
...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OTHERS].map(([reason, code, message]) => ({
|
|
616
681
|
reason,
|
|
617
682
|
code,
|
|
618
683
|
message,
|
|
@@ -689,6 +754,8 @@ var DETAILS = [
|
|
|
689
754
|
];
|
|
690
755
|
var SHARED = { reasons: REASONS, details: DETAILS };
|
|
691
756
|
var merged = /* @__PURE__ */ new WeakMap();
|
|
757
|
+
var coreCodes = new Map(REASONS.map((entry) => [entry.reason, entry.code]));
|
|
758
|
+
var sameAsCore = /* @__PURE__ */ __name((entry) => coreCodes.get(entry.reason) === entry.code, "sameAsCore");
|
|
692
759
|
var failureContext = /* @__PURE__ */ __name((errors) => {
|
|
693
760
|
if (!errors)
|
|
694
761
|
return SHARED;
|
|
@@ -699,7 +766,7 @@ var failureContext = /* @__PURE__ */ __name((errors) => {
|
|
|
699
766
|
if (unnamed.length > 0)
|
|
700
767
|
throw new Error(`error details must be snake_case: ${unnamed.join(", ")}`);
|
|
701
768
|
const context = {
|
|
702
|
-
reasons: defineReasons([...REASONS, ...errors.reasons ?? []]),
|
|
769
|
+
reasons: defineReasons([...REASONS, ...(errors.reasons ?? []).filter((entry) => !sameAsCore(entry))]),
|
|
703
770
|
details: [.../* @__PURE__ */ new Set([...DETAILS, ...errors.details ?? []])]
|
|
704
771
|
};
|
|
705
772
|
merged.set(errors, context);
|
|
@@ -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/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
hostFetch
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BGO7IEHY.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
isCliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FNLXFQN6.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// 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/models/endpoint.js
|
|
15
15
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
16
16
|
try {
|
|
17
17
|
const url = new URL(value);
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VMA7SILL.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FNLXFQN6.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.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/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// 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/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-C5JLANDE.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-VM6VS3RU.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -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/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.",
|
|
@@ -2,40 +2,41 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
encodeWav
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5DLK4OXF.js";
|
|
6
6
|
import {
|
|
7
7
|
SAMPLE_RATE,
|
|
8
8
|
toModelRate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XOG7B7K5.js";
|
|
10
10
|
import {
|
|
11
11
|
OPENAI_URL,
|
|
12
12
|
refuseModelAddress
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FCGRXUAU.js";
|
|
14
14
|
import {
|
|
15
|
-
endpointFetch
|
|
16
|
-
|
|
15
|
+
endpointFetch,
|
|
16
|
+
onThisComputer
|
|
17
|
+
} from "./chunk-FURKMNC2.js";
|
|
17
18
|
import {
|
|
18
19
|
providerWaitMs
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BGO7IEHY.js";
|
|
20
21
|
import {
|
|
21
22
|
OPENAI_TRANSCRIBE_MODEL,
|
|
22
23
|
VAD,
|
|
23
24
|
filesPresent,
|
|
24
25
|
modelsDirectory,
|
|
25
26
|
vadPath
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XCOGI4JE.js";
|
|
27
28
|
import {
|
|
28
29
|
DEFAULT_RETRY,
|
|
29
30
|
backoffMs
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OAYAGQ7C.js";
|
|
31
32
|
import {
|
|
32
33
|
CliError
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FNLXFQN6.js";
|
|
34
35
|
import {
|
|
35
36
|
__name
|
|
36
37
|
} from "./chunk-ZVVMGPBJ.js";
|
|
37
38
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39
|
+
// 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/openai.js
|
|
39
40
|
import { setTimeout as wait } from "node:timers/promises";
|
|
40
41
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
41
42
|
var JOINED_SECONDS = 0.2;
|
|
@@ -91,27 +92,28 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
|
|
|
91
92
|
const retry = options.retry ?? RETRY;
|
|
92
93
|
const sleep = options.sleep ?? sleeping;
|
|
93
94
|
const random = options.random ?? Math.random;
|
|
95
|
+
const who = options.label ?? "OpenAI";
|
|
94
96
|
for (let attempt = 1; ; attempt++) {
|
|
95
97
|
interrupted(options.signal);
|
|
96
98
|
let response;
|
|
97
99
|
try {
|
|
98
100
|
response = await post(url, {
|
|
99
101
|
method: "POST",
|
|
100
|
-
headers: { authorization: `Bearer ${options.apiKey}` },
|
|
102
|
+
headers: options.apiKey ? { authorization: `Bearer ${options.apiKey}` } : {},
|
|
101
103
|
body: formOf(wav, options),
|
|
102
104
|
...options.signal ? { signal: options.signal } : {}
|
|
103
105
|
});
|
|
104
106
|
} catch {
|
|
105
107
|
interrupted(options.signal);
|
|
106
108
|
if (attempt > retry.retries)
|
|
107
|
-
throw new CliError("network_error",
|
|
109
|
+
throw new CliError("network_error", `${who} could not be reached`, { reason: "network.failed" });
|
|
108
110
|
await sleep(backoffMs(attempt, retry, random), options.signal);
|
|
109
111
|
continue;
|
|
110
112
|
}
|
|
111
113
|
if (response.ok) {
|
|
112
114
|
const body = await response.json().catch(() => interrupted(options.signal));
|
|
113
115
|
if (typeof body?.text !== "string")
|
|
114
|
-
throw new CliError("invalid_response",
|
|
116
|
+
throw new CliError("invalid_response", `${who} answered without a transcript`, {
|
|
115
117
|
reason: "provider.invalid-response"
|
|
116
118
|
});
|
|
117
119
|
return body.text.trim();
|
|
@@ -120,15 +122,15 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
|
|
|
120
122
|
const status = response.status;
|
|
121
123
|
const said = `HTTP ${status}${code ? `, ${code}` : type ? `, ${type}` : ""}`;
|
|
122
124
|
if (status === 401)
|
|
123
|
-
throw new CliError("authentication_error",
|
|
125
|
+
throw new CliError("authentication_error", `${who} refused the key (${said}) \u2014 set it again with \`${options.keyHint ?? "models keys set openai"}\``, { reason: "auth.failed" });
|
|
124
126
|
if (status === 403)
|
|
125
|
-
throw new CliError("permission_error",
|
|
127
|
+
throw new CliError("permission_error", `${who} refused the request (${said}) \u2014 OpenAI answers this when the country or region is not supported, or the key's project may not use the model`, { reason: "access.denied" });
|
|
126
128
|
if (status === 413)
|
|
127
|
-
throw new CliError("validation_error",
|
|
129
|
+
throw new CliError("validation_error", `${who} refused the audio as too large (${said})`, {
|
|
128
130
|
reason: "transcription.too-large"
|
|
129
131
|
});
|
|
130
132
|
if (EXHAUSTED.has(code ?? "") || EXHAUSTED.has(type ?? ""))
|
|
131
|
-
throw new CliError("permission_error",
|
|
133
|
+
throw new CliError("permission_error", `${who} refused: the account's credit, spend limit or usage limit is used up (${said}) \u2014 see the billing page`, { reason: "transcription.quota-exhausted" });
|
|
132
134
|
const again = status === 408 || status === 429 || status >= 500;
|
|
133
135
|
const asked = providerWaitMs(response.headers, () => /* @__PURE__ */ new Date());
|
|
134
136
|
if (again && attempt <= retry.retries && (asked === void 0 || asked <= retry.maxRetryAfterMs)) {
|
|
@@ -136,13 +138,13 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
|
|
|
136
138
|
continue;
|
|
137
139
|
}
|
|
138
140
|
if (status === 429)
|
|
139
|
-
throw new CliError("rate_limited",
|
|
141
|
+
throw new CliError("rate_limited", `${who} answered ${said}`, {
|
|
140
142
|
reason: "provider.rate-limited",
|
|
141
143
|
...asked === void 0 ? {} : { retry_after_ms: asked }
|
|
142
144
|
});
|
|
143
145
|
if (status >= 500)
|
|
144
|
-
throw new CliError([502, 503, 504].includes(status) ? "provider_unavailable" : "provider_error",
|
|
145
|
-
throw new CliError("provider_error",
|
|
146
|
+
throw new CliError([502, 503, 504].includes(status) ? "provider_unavailable" : "provider_error", `${who} answered ${said}`, { reason: [502, 503, 504].includes(status) ? "provider.unavailable" : "provider.refused" });
|
|
147
|
+
throw new CliError("provider_error", `${who} answered ${said}`, { reason: "provider.refused" });
|
|
146
148
|
}
|
|
147
149
|
}, "send");
|
|
148
150
|
var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
@@ -159,7 +161,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
159
161
|
return pieces;
|
|
160
162
|
}, "piecesOf");
|
|
161
163
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
162
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
164
|
+
const { openSpeechCutter } = await import("./recognize-R5W25WKH.js");
|
|
163
165
|
return openSpeechCutter(vadModel);
|
|
164
166
|
}, "openCutter");
|
|
165
167
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -169,7 +171,7 @@ var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
|
169
171
|
}, "checkKeywords");
|
|
170
172
|
var transcribeOpenAI = /* @__PURE__ */ __name(async (audio, options) => {
|
|
171
173
|
refuseModelAddress(options.env ?? process.env, options.baseUrl ?? OPENAI_URL, "audio");
|
|
172
|
-
if (!options.apiKey)
|
|
174
|
+
if (!options.apiKey && !onThisComputer(options.baseUrl ?? OPENAI_URL))
|
|
173
175
|
throw new CliError("authentication_error", "no OpenAI key \u2014 `models keys set openai`, or OPENAI_API_KEY", {
|
|
174
176
|
reason: "transcription.no-key"
|
|
175
177
|
});
|
|
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
checkCancelled
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-U2Z35B3W.js";
|
|
6
6
|
import {
|
|
7
7
|
createOutputBuffer
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OAYAGQ7C.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FNLXFQN6.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EV7QCFQR.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
strictObject,
|
|
17
17
|
string,
|
|
18
18
|
unknown
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PJMQE4PW.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// 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/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-JOIAE3NO.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// 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/mcp/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|
|
@@ -629,7 +629,7 @@ var passedOn = /* @__PURE__ */ __name((value, tool) => {
|
|
|
629
629
|
};
|
|
630
630
|
}, "passedOn");
|
|
631
631
|
|
|
632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
632
|
+
// 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/mcp/stdio-wire.js
|
|
633
633
|
import { PassThrough, Writable } from "node:stream";
|
|
634
634
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
635
635
|
let rest = "";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
LIST_QUERY_GUIDE,
|
|
6
6
|
nativeTerms,
|
|
7
7
|
throughWrapper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2AWWMROP.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_CONFIG,
|
|
11
11
|
environmentOf,
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
renderAnswer,
|
|
16
16
|
snakeKeys,
|
|
17
17
|
withAgentLevels
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-INJK7FNM.js";
|
|
19
19
|
import {
|
|
20
20
|
readOnlyLockOf
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-F7IDYQLM.js";
|
|
22
22
|
import {
|
|
23
23
|
formatReference
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7IIQU5RA.js";
|
|
25
25
|
import {
|
|
26
26
|
queryError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TFDD4Q5Z.js";
|
|
28
28
|
import {
|
|
29
29
|
array,
|
|
30
30
|
boolean,
|
|
@@ -34,15 +34,15 @@ import {
|
|
|
34
34
|
safeParse,
|
|
35
35
|
strictObject,
|
|
36
36
|
string
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-PJMQE4PW.js";
|
|
38
38
|
import {
|
|
39
39
|
CliError
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FNLXFQN6.js";
|
|
41
41
|
import {
|
|
42
42
|
__name
|
|
43
43
|
} from "./chunk-ZVVMGPBJ.js";
|
|
44
44
|
|
|
45
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45
|
+
// 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/lacks.js
|
|
46
46
|
var COMMAND_NEEDS = {
|
|
47
47
|
"account update": ["updateProfile", "change the profile"],
|
|
48
48
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -92,7 +92,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
92
92
|
return group;
|
|
93
93
|
}, "hideNever");
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// 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/paging.js
|
|
96
96
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
97
97
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
98
98
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -119,7 +119,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
|
119
119
|
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
120
120
|
}, "pagingOf");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// 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/chat-answers.js
|
|
123
123
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
124
124
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
125
125
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -381,7 +381,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
381
381
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
382
382
|
}), "sessionAnswer");
|
|
383
383
|
|
|
384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
384
|
+
// 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/background/relay.js
|
|
385
385
|
import { createHash } from "node:crypto";
|
|
386
386
|
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
387
387
|
import { createConnection, createServer } from "node:net";
|
|
@@ -602,7 +602,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
602
602
|
}, () => finish({ error: stopped() }));
|
|
603
603
|
}), "relayCommand");
|
|
604
604
|
|
|
605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
605
|
+
// 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/serve-relay.js
|
|
606
606
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
607
607
|
close: /* @__PURE__ */ __name(async () => {
|
|
608
608
|
}, "close"),
|