@wirecat/zoom-cli 0.66.0 → 0.68.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 +2 -1
- package/constants.json +7 -0
- package/dist/answer-entities.d.ts +18 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +12 -0
- package/dist/answer-entities.js.map +1 -1
- package/dist/answer-policy.d.ts.map +1 -1
- package/dist/answer-policy.js +2 -1
- package/dist/answer-policy.js.map +1 -1
- package/dist/answers.d.ts +4 -4
- package/dist/bin/main.js +3 -2
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-D5CFH2OK.js → all-profiles-R66UM3HM.js} +12 -11
- package/dist/bundle/answer-policy-UCGUO53A.js +104 -0
- package/dist/bundle/{anthropic-K2E2JS4S.js → anthropic-4ZI2BPLG.js} +7 -7
- package/dist/bundle/{app-server-TVXDG6HZ.js → app-server-64O5IQI5.js} +61 -57
- package/dist/bundle/{bun-O4WHGL2F.js → bun-HUHQD76Z.js} +2 -2
- package/dist/bundle/{bun-sqlite-HGBEHQI3.js → bun-sqlite-VOVHPTIF.js} +6 -6
- package/dist/bundle/{chunk-N6JMJN5A.js → chunk-2OSBCYJT.js} +39 -26
- package/dist/bundle/{chunk-7JMBEPW2.js → chunk-2T6XHWDX.js} +2 -2
- package/dist/bundle/chunk-32FPA7P2.js +35 -0
- package/dist/bundle/{chunk-NO24PJNW.js → chunk-355PHJYX.js} +1 -1
- package/dist/bundle/{chunk-NMQUCHTX.js → chunk-3BRV2YU2.js} +3 -3
- package/dist/bundle/{chunk-GNGBG5BT.js → chunk-474WF55M.js} +95 -48
- package/dist/bundle/{chunk-O5FKJV3T.js → chunk-4TLPOY22.js} +12 -12
- package/dist/bundle/{chunk-CR4CXOLX.js → chunk-4YFJYSSK.js} +205 -59
- package/dist/bundle/chunk-5JAYUG3X.js +261 -0
- package/dist/bundle/{chunk-5HPALDUO.js → chunk-65T3PU75.js} +3 -2
- package/dist/bundle/{chunk-QAPU2JNO.js → chunk-6CJ7NHIP.js} +13 -13
- package/dist/bundle/{chunk-LN2S3RA3.js → chunk-6T3P226D.js} +4 -4
- package/dist/bundle/{chunk-P3XVLHIQ.js → chunk-6TJ62LZQ.js} +22 -14
- package/dist/bundle/{chunk-FWFFQV4D.js → chunk-6XO7RTJY.js} +129 -9
- package/dist/bundle/{chunk-K5CIN4JP.js → chunk-77I67HWF.js} +8 -8
- package/dist/bundle/{chunk-3B7L2UX4.js → chunk-77KFLU5F.js} +3 -3
- package/dist/bundle/{chunk-2YLNUZ3T.js → chunk-7AUP2WT3.js} +3 -3
- package/dist/bundle/{chunk-7PF56S6U.js → chunk-7DUYFITC.js} +25 -23
- package/dist/bundle/{chunk-ZKTXUDSR.js → chunk-7QNJICKZ.js} +30 -26
- package/dist/bundle/{chunk-XWDSEJWP.js → chunk-A63ZFOQJ.js} +18 -4
- package/dist/bundle/{chunk-A2SCXNA7.js → chunk-AJ7CMUGD.js} +1396 -326
- package/dist/bundle/{chunk-Z6U3MEGJ.js → chunk-AVEIQMHZ.js} +4 -2
- package/dist/bundle/chunk-AYEVBAGO.js +178 -0
- package/dist/bundle/{chunk-SU4WPBQE.js → chunk-B6JMVB6R.js} +22 -23
- package/dist/bundle/{chunk-YLEQN6PB.js → chunk-BL36NSV5.js} +3 -3
- package/dist/bundle/{chunk-RMKHYUHK.js → chunk-BOAMDYLY.js} +4 -4
- package/dist/bundle/chunk-BSM43OMN.js +31 -0
- package/dist/bundle/{chunk-67RNZGAG.js → chunk-DGNPJGD3.js} +16 -10
- package/dist/bundle/{chunk-Y3EIK4XW.js → chunk-DVA6MQWK.js} +1 -1
- package/dist/bundle/{chunk-AU4JHT3R.js → chunk-DWSUSWAX.js} +98 -13
- package/dist/bundle/{chunk-H5ZVZAOD.js → chunk-EH5QGQFR.js} +3 -3
- package/dist/bundle/chunk-EJDV5IIF.js +93 -0
- package/dist/bundle/{chunk-3WTKZ2ZS.js → chunk-EWIBLDQQ.js} +8 -8
- package/dist/bundle/{chunk-GHAPWKG2.js → chunk-EZRPSZJS.js} +3 -3
- package/dist/bundle/{chunk-QJHRYUMJ.js → chunk-FBLUKCIR.js} +1 -1
- package/dist/bundle/{chunk-S6S3KVJI.js → chunk-FEM2JQN2.js} +2 -1
- package/dist/bundle/{chunk-P2G4KGTR.js → chunk-FMQS7HCC.js} +12 -12
- package/dist/bundle/{chunk-ZNFPDTQM.js → chunk-FNQASORM.js} +2 -2
- package/dist/bundle/{chunk-GKXFL35E.js → chunk-GOXDBCDM.js} +728 -130
- package/dist/bundle/{chunk-U3ZUT557.js → chunk-HXOAPH47.js} +1 -1
- package/dist/bundle/{chunk-QV5ZGRK3.js → chunk-JO4YADNV.js} +7 -7
- package/dist/bundle/{chunk-5A26IBAR.js → chunk-JRCYFCPL.js} +30 -28
- package/dist/bundle/{chunk-ZTL7ANSG.js → chunk-K67V24AT.js} +5 -5
- package/dist/bundle/{chunk-BXSAROQP.js → chunk-KAPJQGHE.js} +2 -2
- package/dist/bundle/{chunk-TFDVFD4N.js → chunk-KNE6VFHZ.js} +97 -38
- package/dist/bundle/{chunk-AZ7ICKIA.js → chunk-KUB2U5NT.js} +6 -6
- package/dist/bundle/{chunk-GI6QVSCW.js → chunk-L4WVLRXM.js} +4 -4
- package/dist/bundle/{chunk-756RS4PH.js → chunk-LBOSTBAY.js} +2541 -1355
- package/dist/bundle/{chunk-62GOOZO3.js → chunk-LV7QRR5S.js} +6 -6
- package/dist/bundle/{chunk-J4EZL6HY.js → chunk-LYWUG43B.js} +33 -33
- package/dist/bundle/{chunk-N67BLTBV.js → chunk-NRRI37NJ.js} +28 -9
- package/dist/bundle/{chunk-N5JRRBEG.js → chunk-NUJMJQXV.js} +281 -10
- package/dist/bundle/{chunk-UYV2JGLQ.js → chunk-OE7EIP5L.js} +1 -1
- package/dist/bundle/{chunk-U4RVOSX3.js → chunk-P2TISY3R.js} +1 -1
- package/dist/bundle/{chunk-ILHTNOIV.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-UOIXBEFR.js → chunk-PIHBD3YS.js} +16 -6
- package/dist/bundle/{chunk-BLT3LR3U.js → chunk-PUTGTW6W.js} +4 -2
- package/dist/bundle/{chunk-TUEEXECZ.js → chunk-QXTREL2M.js} +3 -3
- package/dist/bundle/{chunk-2VPHQFO5.js → chunk-R7LFGEDE.js} +2 -2
- package/dist/bundle/{chunk-IDWHJ35K.js → chunk-RGJ7OWHU.js} +4 -4
- package/dist/bundle/{chunk-3Y2F65AY.js → chunk-RP3U3J53.js} +10 -89
- package/dist/bundle/{chunk-JX3V35A5.js → chunk-RRYUD2EF.js} +3 -3
- package/dist/bundle/{chunk-XFUID5NY.js → chunk-SRP6SFFD.js} +2 -2
- package/dist/bundle/{chunk-7SQJCKR6.js → chunk-SSPSNSC5.js} +1 -1
- package/dist/bundle/{chunk-Q47C3QZW.js → chunk-TDGZMC6K.js} +510 -318
- package/dist/bundle/{chunk-EXXM4RNI.js → chunk-TN3FH2GQ.js} +11 -11
- package/dist/bundle/chunk-TUNQ6NE2.js +64 -0
- package/dist/bundle/{chunk-CAW6IMFZ.js → chunk-TZUKDM72.js} +72 -20
- package/dist/bundle/{chunk-S4GDDO5S.js → chunk-UDJTRFRV.js} +1 -1
- package/dist/bundle/{chunk-5GD2XZ6X.js → chunk-US5C3WAY.js} +63 -53
- package/dist/bundle/{chunk-7KCTPGOF.js → chunk-UU5PLDRA.js} +2 -2
- package/dist/bundle/{chunk-6TIKPRVQ.js → chunk-VLD7Y4SY.js} +7 -7
- package/dist/bundle/{chunk-PQLBPYJR.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/chunk-W42BJ65M.js +37 -0
- package/dist/bundle/{chunk-KDKFGQWG.js → chunk-Y5LP5SHV.js} +15 -12
- package/dist/bundle/{chunk-TMVKZMDO.js → chunk-YJY3W2ZT.js} +232 -88
- package/dist/bundle/{chunk-6GSJLNP4.js → chunk-YOAEZSDG.js} +2 -2
- package/dist/bundle/{chunk-IKQ73INC.js → chunk-YQRNFG2E.js} +15849 -1674
- package/dist/bundle/{chunk-RO44LANT.js → chunk-YTF2WPV4.js} +1880 -778
- package/dist/bundle/{chunk-CZ4KLUJG.js → chunk-ZRD3NDOX.js} +2 -2
- package/dist/bundle/{cli-HWQIL2AC.js → cli-VQJ7ZRYR.js} +124 -69
- package/dist/bundle/command-contract-JPUWWYIV.js +41 -0
- package/dist/bundle/config-YGLLR77A.js +90 -0
- package/dist/bundle/{decode-XPAPPUGE.js → decode-L3ENO2XH.js} +6 -6
- package/dist/bundle/{dispatch-AKVJGP2S.js → dispatch-5MGDLOK4.js} +9 -9
- package/dist/bundle/{dist-LDIUQBM7.js → dist-WQLS7U23.js} +66 -17
- package/dist/bundle/{echarts-FMACRZQC.js → echarts-5LLJ6JXC.js} +2 -2
- package/dist/bundle/{embed-LK45GRQ7.js → embed-37MYTCU7.js} +7 -7
- package/dist/bundle/{embedder-QPBC5XBY.js → embedder-GNGHVJAO.js} +10 -10
- package/dist/bundle/{failure-7OULAOWQ.js → failure-CR64C4XA.js} +3 -3
- package/dist/bundle/{first-run-J5FG773Q.js → first-run-NR5JKYP3.js} +12 -12
- package/dist/bundle/first-screen-RCR7ATO2.js +39 -0
- package/dist/bundle/{folders-RHPUVMDI.js → folders-VU4IN35Y.js} +5 -5
- package/dist/bundle/{instructions-E5FXYCWF.js → instructions-P72XX4AK.js} +1 -1
- package/dist/bundle/{main-FJHE5YHU.js → main-QYFCYSTW.js} +23 -24
- package/dist/bundle/{mcp-MNI62HHE.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/{meetings-MYIDGYGW.js → meetings-66UQINKI.js} +37 -7
- package/dist/bundle/{node-4SNKUPXT.js → node-ZB4RNICS.js} +2 -2
- package/dist/bundle/{node-sqlite-SYZUTVPC.js → node-sqlite-XPRKBDF3.js} +7 -7
- package/dist/bundle/{oauth-QPS5VTN6.js → oauth-WJRDUU5J.js} +8 -8
- package/dist/bundle/{open-OVCASRSJ.js → open-S2YSIEOW.js} +6 -6
- package/dist/bundle/openai-CRNZFNZD.js +25 -0
- package/dist/bundle/{output-file-K5JEL33Z.js → output-file-6COFGPUL.js} +6 -6
- package/dist/bundle/{process-HQZOTT6U.js → process-XNN4WG6N.js} +1 -1
- package/dist/bundle/{program-A546WC4F.js → program-BRPJKRCX.js} +181 -205
- package/dist/bundle/{prompt-CYBKP7S5.js → prompt-7RQOL25I.js} +6 -6
- package/dist/bundle/{recognize-3H3YDCFI.js → recognize-N5WADGQB.js} +5 -5
- package/dist/bundle/{remote-VAYVTJBS.js → remote-WHYV35IF.js} +8 -8
- package/dist/bundle/{rerank-XA4GA5PS.js → rerank-FBMZVWSH.js} +8 -8
- package/dist/bundle/{run-log-XAFHMI3F.js → run-log-TOCHREH2.js} +59 -57
- package/dist/bundle/{serve-KGHEDUHB.js → serve-4BABX4WS.js} +10 -10
- package/dist/bundle/{server-ZYTSMDTP.js → server-CDVI6LOB.js} +47 -46
- package/dist/bundle/server-XOFQKFVO.js +72 -0
- package/dist/bundle/{services-ZHMZC2OQ.js → services-PIY33I7R.js} +59 -32
- package/dist/bundle/{speech-7CJEFKM3.js → speech-LS5Q4FL2.js} +14 -14
- package/dist/bundle/{state-U6KSYVOH.js → state-YUX5R2R7.js} +7 -7
- package/dist/bundle/{store-DJE3LAEG.js → store-BD7HAXAA.js} +22 -17
- package/dist/bundle/{store-WS4CQGYU.js → store-ERMGBF2B.js} +59 -30
- package/dist/bundle/store-connection-JBR6CMTJ.js +83 -0
- package/dist/bundle/store-maintenance-command-I5DUSO2C.js +62 -0
- package/dist/bundle/{streaming-QMHH7L6N.js → streaming-O53PIORL.js} +7 -7
- package/dist/bundle/{tokens-PWQ56OXO.js → tokens-QKNEP2GJ.js} +7 -7
- package/dist/bundle/zm.js +9 -10
- package/dist/bundle/zoom-app-XJXZ4ZBX.js +41 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +1 -0
- package/dist/commands.js.map +1 -1
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +48 -10
- package/dist/config.js.map +1 -1
- package/dist/identity.d.ts +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +11 -0
- package/dist/identity.js.map +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-source.js +2 -1
- package/dist/meeting-source.js.map +1 -1
- package/dist/meeting-stats-commands.d.ts +4 -2
- package/dist/meeting-stats-commands.d.ts.map +1 -1
- package/dist/meeting-stats-commands.js +27 -2
- package/dist/meeting-stats-commands.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +10 -4
- package/dist/program-bindings.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +5 -5
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +2 -6
- package/dist/run.js.map +1 -1
- package/dist/setup-commands.d.ts +7 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +45 -8
- package/dist/setup-commands.js.map +1 -1
- package/dist/store-commands.d.ts.map +1 -1
- package/dist/store-commands.js +6 -0
- package/dist/store-commands.js.map +1 -1
- package/dist/store-connection.d.ts +2 -1
- package/dist/store-connection.d.ts.map +1 -1
- package/dist/store-connection.js +4 -0
- package/dist/store-connection.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/watch-service.d.ts +1 -1
- package/dist/watch-service.d.ts.map +1 -1
- package/dist/watch-service.js +5 -3
- package/dist/watch-service.js.map +1 -1
- package/dist/zoom-app.d.ts +49 -0
- package/dist/zoom-app.d.ts.map +1 -0
- package/dist/zoom-app.js +83 -0
- package/dist/zoom-app.js.map +1 -0
- package/package.json +4 -3
- package/skills/zoom-cli/SKILL.md +4 -1
- package/dist/bundle/answer-policy-YAYMKRRD.js +0 -101
- package/dist/bundle/chunk-2T5BOLBS.js +0 -132
- package/dist/bundle/chunk-HKQWV3KT.js +0 -31
- package/dist/bundle/chunk-L7IK4FOA.js +0 -18
- package/dist/bundle/chunk-P2SYZNM4.js +0 -19
- package/dist/bundle/chunk-TN7K66PU.js +0 -9
- package/dist/bundle/command-contract-CQFJXWX6.js +0 -40
- package/dist/bundle/config-R2Y6ZVQS.js +0 -83
- package/dist/bundle/first-screen-MULOBUHN.js +0 -38
- package/dist/bundle/openai-VEVT7D7L.js +0 -25
- package/dist/bundle/server-IDNSJXF3.js +0 -71
- package/dist/bundle/store-connection-T5WGOOPH.js +0 -81
- package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +0 -61
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-VOXIGICJ.js} +0 -0
|
@@ -2,37 +2,37 @@ 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-77KFLU5F.js";
|
|
6
6
|
import {
|
|
7
7
|
SAMPLE_RATE,
|
|
8
8
|
toModelRate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A63ZFOQJ.js";
|
|
10
10
|
import {
|
|
11
11
|
OPENAI_URL
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3BRV2YU2.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENAI_TRANSCRIBE_MODEL,
|
|
15
15
|
VAD,
|
|
16
16
|
filesPresent,
|
|
17
17
|
modelsDirectory,
|
|
18
18
|
vadPath
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6TJ62LZQ.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_RETRY,
|
|
22
22
|
backoffMs
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KNE6VFHZ.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError,
|
|
26
26
|
isCliError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FEM2JQN2.js";
|
|
28
28
|
import {
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
33
33
|
import { setTimeout as wait } from "node:timers/promises";
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
35
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
|
|
36
36
|
var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
|
|
37
37
|
var checked = /* @__PURE__ */ __name((signal) => {
|
|
38
38
|
if (signal?.aborted)
|
|
@@ -117,7 +117,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
|
|
|
117
117
|
}
|
|
118
118
|
}, "readJsonResponse");
|
|
119
119
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
120
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
121
121
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
122
122
|
if (!header)
|
|
123
123
|
return void 0;
|
|
@@ -159,7 +159,7 @@ var statusToCode = /* @__PURE__ */ __name((status) => {
|
|
|
159
159
|
return "provider_error";
|
|
160
160
|
}, "statusToCode");
|
|
161
161
|
|
|
162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
163
163
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
164
164
|
var JOINED_SECONDS = 0.2;
|
|
165
165
|
var PAD_SECONDS = 0.2;
|
|
@@ -281,7 +281,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
281
281
|
return pieces;
|
|
282
282
|
}, "piecesOf");
|
|
283
283
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
284
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
284
|
+
const { openSpeechCutter } = await import("./recognize-N5WADGQB.js");
|
|
285
285
|
return openSpeechCutter(vadModel);
|
|
286
286
|
}, "openCutter");
|
|
287
287
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
count,
|
|
5
|
+
id,
|
|
6
|
+
text,
|
|
7
|
+
time
|
|
8
|
+
} from "./chunk-DWSUSWAX.js";
|
|
9
|
+
import {
|
|
10
|
+
array,
|
|
11
|
+
nullable,
|
|
12
|
+
optional,
|
|
13
|
+
picklist,
|
|
14
|
+
record,
|
|
15
|
+
reference,
|
|
16
|
+
strictObject,
|
|
17
|
+
string,
|
|
18
|
+
unknown
|
|
19
|
+
} from "./chunk-NRRI37NJ.js";
|
|
20
|
+
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
|
+
var link = {
|
|
23
|
+
target_text: nullable(text),
|
|
24
|
+
kind: text,
|
|
25
|
+
anchor: nullable(text)
|
|
26
|
+
};
|
|
27
|
+
var note = strictObject({
|
|
28
|
+
ref: reference,
|
|
29
|
+
kind: optional(picklist(["note", "document"])),
|
|
30
|
+
provider: optional(text),
|
|
31
|
+
account: optional(text),
|
|
32
|
+
url: optional(text),
|
|
33
|
+
id,
|
|
34
|
+
source: picklist(["file", "internal"]),
|
|
35
|
+
folder_id: nullable(id),
|
|
36
|
+
path: nullable(text),
|
|
37
|
+
title: nullable(text),
|
|
38
|
+
text,
|
|
39
|
+
/** Raises on every edit; `notes edit --revision` takes it, so an edit made meanwhile is refused, not lost. */
|
|
40
|
+
revision: count,
|
|
41
|
+
/** A file's front matter as parsed, keys as the file writes them; null for a note without it. */
|
|
42
|
+
front_matter: nullable(record(string(), unknown())),
|
|
43
|
+
/** The hash of a file's bytes when last imported; null for a note written here. */
|
|
44
|
+
content_hash: nullable(text),
|
|
45
|
+
/** The file the note was exported to, where that is known; null otherwise. */
|
|
46
|
+
export_path: nullable(text),
|
|
47
|
+
created_at: time,
|
|
48
|
+
/** When the store's copy last changed. */
|
|
49
|
+
updated_at: time,
|
|
50
|
+
deleted_at: optional(nullable(time)),
|
|
51
|
+
tags: optional(array(text)),
|
|
52
|
+
/** The first line holding a word of a search. */
|
|
53
|
+
excerpt: optional(text),
|
|
54
|
+
/** Which halves of a search found it. */
|
|
55
|
+
found_by: optional(array(picklist(["title", "words", "meaning"]))),
|
|
56
|
+
/** What the note links to; `to` is null while the name written matches nothing stored. */
|
|
57
|
+
links: optional(array(strictObject({ to: nullable(reference), ...link }))),
|
|
58
|
+
/** The notes and messages that link to it. */
|
|
59
|
+
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export {
|
|
63
|
+
note
|
|
64
|
+
};
|
|
@@ -6,10 +6,13 @@ import {
|
|
|
6
6
|
meetingResultItem,
|
|
7
7
|
runsCommand,
|
|
8
8
|
suggest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LBOSTBAY.js";
|
|
10
|
+
import {
|
|
11
|
+
checkedClientId
|
|
12
|
+
} from "./chunk-5JAYUG3X.js";
|
|
10
13
|
import {
|
|
11
14
|
sharedStoreCommand
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GOXDBCDM.js";
|
|
13
16
|
import {
|
|
14
17
|
NO_EFFECTS,
|
|
15
18
|
REMOTE_READ,
|
|
@@ -32,33 +35,39 @@ import {
|
|
|
32
35
|
profileFree,
|
|
33
36
|
renderAnswer,
|
|
34
37
|
snakeKeys,
|
|
35
|
-
usableProfileName
|
|
36
|
-
|
|
38
|
+
usableProfileName,
|
|
39
|
+
withSettingDefaults
|
|
40
|
+
} from "./chunk-AJ7CMUGD.js";
|
|
37
41
|
import {
|
|
38
42
|
readOnlyLockOf,
|
|
39
43
|
readOnlyRefusal
|
|
40
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-AVEIQMHZ.js";
|
|
41
45
|
import {
|
|
42
46
|
setupPermissionCeiling
|
|
43
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-L4WVLRXM.js";
|
|
48
|
+
import {
|
|
49
|
+
KEEP_RUNS_FOR_DAYS,
|
|
50
|
+
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
51
|
+
RUNS_SIZE_LIMIT_MB
|
|
52
|
+
} from "./chunk-JRCYFCPL.js";
|
|
44
53
|
import {
|
|
45
54
|
CEILING_KEY,
|
|
46
55
|
DEFAULT_PERMISSIONS,
|
|
47
56
|
LEVELS,
|
|
48
57
|
keyForCommand,
|
|
49
58
|
levelFor
|
|
50
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-65T3PU75.js";
|
|
51
60
|
import {
|
|
52
61
|
ZM
|
|
53
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BSM43OMN.js";
|
|
54
63
|
import {
|
|
55
64
|
MEETING_RESULT_ENTITIES
|
|
56
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-TDGZMC6K.js";
|
|
57
66
|
import {
|
|
58
67
|
createRenderer,
|
|
59
68
|
projectFields,
|
|
60
69
|
saveConfigFile
|
|
61
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-KNE6VFHZ.js";
|
|
62
71
|
import {
|
|
63
72
|
array,
|
|
64
73
|
boolean,
|
|
@@ -83,10 +92,10 @@ import {
|
|
|
83
92
|
strictObject,
|
|
84
93
|
string,
|
|
85
94
|
union
|
|
86
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-NRRI37NJ.js";
|
|
87
96
|
import {
|
|
88
97
|
CliError
|
|
89
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-FEM2JQN2.js";
|
|
90
99
|
import {
|
|
91
100
|
__name
|
|
92
101
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -366,7 +375,19 @@ var searchHit = strictObject({
|
|
|
366
375
|
container_id: nullableText,
|
|
367
376
|
details: record(text, nullable(union([text, number(), flag])))
|
|
368
377
|
});
|
|
378
|
+
var zoomAppSetup = strictObject({
|
|
379
|
+
marketplace_url: identifier,
|
|
380
|
+
guide_url: identifier,
|
|
381
|
+
app_type: identifier,
|
|
382
|
+
management: identifier,
|
|
383
|
+
oauth: identifier,
|
|
384
|
+
redirect_url: identifier,
|
|
385
|
+
allow_list: array(identifier),
|
|
386
|
+
scopes: array(strictObject({ scope: identifier, required: flag, use: identifier })),
|
|
387
|
+
config_key: identifier
|
|
388
|
+
});
|
|
369
389
|
var ZOOM_ANSWER_ENTITIES = {
|
|
390
|
+
app: { name: "zoom_app_setup", schema: zoomAppSetup },
|
|
370
391
|
"recordings list": { name: "zoom_recording", schema: recording },
|
|
371
392
|
"recordings show": { name: "zoom_recording", schema: recording },
|
|
372
393
|
"recordings download": { name: "zoom_archive", schema: union([archive, archiveReceipt]) },
|
|
@@ -589,6 +610,7 @@ var annotateMeetingCommands = /* @__PURE__ */ __name((program) => {
|
|
|
589
610
|
}
|
|
590
611
|
}, "annotateMeetingCommands");
|
|
591
612
|
var PROFILE_FREE = /* @__PURE__ */ new Set([
|
|
613
|
+
"app",
|
|
592
614
|
"commands",
|
|
593
615
|
"complete",
|
|
594
616
|
"config",
|
|
@@ -760,6 +782,26 @@ var ConfigFile = strictObject({
|
|
|
760
782
|
record_input: optional(union([boolean(), literal("failed")]))
|
|
761
783
|
});
|
|
762
784
|
var DOCTOR = "zm doctor";
|
|
785
|
+
var ZOOM_SETTINGS = [
|
|
786
|
+
{
|
|
787
|
+
key: "source",
|
|
788
|
+
default: "api",
|
|
789
|
+
description: "api reads recordings from Zoom; files imports transcript files from files.folder"
|
|
790
|
+
},
|
|
791
|
+
{ key: "record", default: true, description: "keep every run in zm runs list; false keeps failed runs only" },
|
|
792
|
+
{
|
|
793
|
+
key: "record_input",
|
|
794
|
+
default: true,
|
|
795
|
+
description: `keep what was typed in a run's command line: true, false, or "failed" for failed runs only`
|
|
796
|
+
},
|
|
797
|
+
{ key: "keep_runs_for_days", default: KEEP_RUNS_FOR_DAYS, description: "days a run is kept" },
|
|
798
|
+
{
|
|
799
|
+
key: "keep_successful_runs_for_days",
|
|
800
|
+
default: KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
801
|
+
description: "days a successful run is kept"
|
|
802
|
+
},
|
|
803
|
+
{ key: "runs_size_limit_mb", default: RUNS_SIZE_LIMIT_MB, description: "the most megabytes all runs may take" }
|
|
804
|
+
];
|
|
763
805
|
var configOf = /* @__PURE__ */ __name((file) => ({
|
|
764
806
|
clientId: file.client_id ?? null,
|
|
765
807
|
source: file.source ?? "api",
|
|
@@ -803,10 +845,21 @@ var changeFile = /* @__PURE__ */ __name((path, permissionKeys2, change) => {
|
|
|
803
845
|
if (!inspection.raw)
|
|
804
846
|
throw new CliError("configuration_error", issueMessage(inspection.issues.map(publicIssue), DOCTOR));
|
|
805
847
|
const raw = structuredClone(inspection.raw);
|
|
806
|
-
change(raw, inspection);
|
|
807
|
-
saveConfigFile(path, raw);
|
|
848
|
+
const removed = change(raw, inspection);
|
|
849
|
+
saveConfigFile(path, withSettingDefaults(raw, ZOOM_SETTINGS.filter(({ key }) => key !== removed)).config);
|
|
808
850
|
return inspectConfig(path, permissionKeys2).config;
|
|
809
851
|
}, "changeFile");
|
|
852
|
+
var migrateConfig = /* @__PURE__ */ __name((path) => {
|
|
853
|
+
const inspection = inspectConfig(path);
|
|
854
|
+
if (!inspection.found)
|
|
855
|
+
return [];
|
|
856
|
+
if (!inspection.raw)
|
|
857
|
+
throw new CliError("configuration_error", issueMessage(inspection.issues.map(publicIssue), DOCTOR));
|
|
858
|
+
const { config, added } = withSettingDefaults(inspection.raw, ZOOM_SETTINGS);
|
|
859
|
+
if (added.length > 0)
|
|
860
|
+
saveConfigFile(path, config);
|
|
861
|
+
return added;
|
|
862
|
+
}, "migrateConfig");
|
|
810
863
|
var profileEntry = /* @__PURE__ */ __name((raw, profile) => {
|
|
811
864
|
if (!isNode(raw.profiles))
|
|
812
865
|
raw.profiles = {};
|
|
@@ -833,9 +886,7 @@ var setConfig = /* @__PURE__ */ __name((path, key, value, profile, permissionKey
|
|
|
833
886
|
return;
|
|
834
887
|
}
|
|
835
888
|
case "zoom.client_id":
|
|
836
|
-
|
|
837
|
-
throw new CliError("validation_error", "client id must not contain whitespace");
|
|
838
|
-
raw.client_id = value;
|
|
889
|
+
raw.client_id = checkedClientId(value);
|
|
839
890
|
return;
|
|
840
891
|
case "source":
|
|
841
892
|
if (value !== "api" && value !== "files")
|
|
@@ -897,6 +948,7 @@ var unsetConfig = /* @__PURE__ */ __name((path, key, profile, permissionKeys2) =
|
|
|
897
948
|
if (Object.keys(entry.permissions).length === 0)
|
|
898
949
|
delete entry.permissions;
|
|
899
950
|
}
|
|
951
|
+
return at.join(".");
|
|
900
952
|
}), "unsetConfig");
|
|
901
953
|
var profileSettingAt = /* @__PURE__ */ __name((key, profile) => {
|
|
902
954
|
if (key !== "permissions" && !key.startsWith("permissions."))
|
|
@@ -908,9 +960,7 @@ var profileSettingAt = /* @__PURE__ */ __name((key, profile) => {
|
|
|
908
960
|
var addProfile = /* @__PURE__ */ __name((path, profile) => {
|
|
909
961
|
if (readConfig(path).profiles.includes(profile))
|
|
910
962
|
return;
|
|
911
|
-
changeFile(path, void 0, (raw) =>
|
|
912
|
-
profileEntry(raw, profile);
|
|
913
|
-
});
|
|
963
|
+
changeFile(path, void 0, (raw) => void profileEntry(raw, profile));
|
|
914
964
|
}, "addProfile");
|
|
915
965
|
var filesZone = /* @__PURE__ */ __name((config) => config.filesTimezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone, "filesZone");
|
|
916
966
|
|
|
@@ -934,8 +984,10 @@ export {
|
|
|
934
984
|
permissionKeyForPath,
|
|
935
985
|
permissionKeys,
|
|
936
986
|
guardCommand,
|
|
987
|
+
ZOOM_SETTINGS,
|
|
937
988
|
inspectConfig,
|
|
938
989
|
readConfig,
|
|
990
|
+
migrateConfig,
|
|
939
991
|
setConfig,
|
|
940
992
|
unsetConfig,
|
|
941
993
|
addProfile,
|
|
@@ -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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -2,10 +2,10 @@ 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-2OSBCYJT.js";
|
|
6
6
|
import {
|
|
7
7
|
servingProfiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EH5QGQFR.js";
|
|
9
9
|
import {
|
|
10
10
|
OFFLINE,
|
|
11
11
|
capability,
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
profilesOnAccount,
|
|
14
14
|
servicesFor,
|
|
15
15
|
throughWrapper
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YTF2WPV4.js";
|
|
17
17
|
import {
|
|
18
18
|
chatReferenceOf,
|
|
19
19
|
ensureAccount,
|
|
20
20
|
foldName,
|
|
21
21
|
isId,
|
|
22
22
|
pickPerson
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FMQS7HCC.js";
|
|
24
24
|
import {
|
|
25
25
|
asFirstWord,
|
|
26
26
|
baseContext,
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
recalledAccount,
|
|
32
32
|
rememberAccount,
|
|
33
33
|
rootOf2 as rootOf
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AJ7CMUGD.js";
|
|
35
35
|
import {
|
|
36
36
|
MESSENGER_CHANGE_REFUSAL,
|
|
37
37
|
readOnlyRefusal
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-AVEIQMHZ.js";
|
|
39
39
|
import {
|
|
40
40
|
providerErrorKey
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RP3U3J53.js";
|
|
42
42
|
import {
|
|
43
43
|
LOG_ATTRIBUTES,
|
|
44
44
|
codeOf,
|
|
@@ -47,10 +47,10 @@ import {
|
|
|
47
47
|
fromLogAttributes,
|
|
48
48
|
limitBatch,
|
|
49
49
|
logAttributes
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-JRCYFCPL.js";
|
|
51
51
|
import {
|
|
52
52
|
isCliFailure
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-YOAEZSDG.js";
|
|
54
54
|
import {
|
|
55
55
|
AUTHORITY_KEY,
|
|
56
56
|
CEILING_KEY,
|
|
@@ -61,24 +61,24 @@ import {
|
|
|
61
61
|
levelFor,
|
|
62
62
|
readKeysForCommand,
|
|
63
63
|
skipFlagFor
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-65T3PU75.js";
|
|
65
65
|
import {
|
|
66
66
|
openStore
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-YQRNFG2E.js";
|
|
68
68
|
import {
|
|
69
69
|
logRecordOf,
|
|
70
70
|
realSleep,
|
|
71
71
|
resolvePaths,
|
|
72
72
|
writeSecurely
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-KNE6VFHZ.js";
|
|
74
74
|
import {
|
|
75
75
|
CliError
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-FEM2JQN2.js";
|
|
77
77
|
import {
|
|
78
78
|
__name
|
|
79
79
|
} from "./chunk-ZVVMGPBJ.js";
|
|
80
80
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
82
82
|
import { openSync } from "node:fs";
|
|
83
83
|
import { createInterface } from "node:readline";
|
|
84
84
|
import { ReadStream } from "node:tty";
|
|
@@ -133,10 +133,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
133
133
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
134
134
|
}, "terminalAsker");
|
|
135
135
|
|
|
136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
137
137
|
import { randomUUID } from "node:crypto";
|
|
138
138
|
|
|
139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
140
140
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
141
141
|
import { dirname, join } from "node:path";
|
|
142
142
|
var MOST_DEADLINES = 50;
|
|
@@ -220,11 +220,11 @@ var FloodMemory = class {
|
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
|
|
223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
224
224
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
225
225
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
226
226
|
|
|
227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
228
228
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
229
229
|
import { dirname as dirname2 } from "node:path";
|
|
230
230
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -291,7 +291,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
291
291
|
}
|
|
292
292
|
}, "lockTime");
|
|
293
293
|
|
|
294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
295
295
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
296
296
|
var SendJournal = class {
|
|
297
297
|
static {
|
|
@@ -368,7 +368,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
368
368
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
369
369
|
}, "withSendId");
|
|
370
370
|
|
|
371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
372
372
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
373
373
|
import { join as join3 } from "node:path";
|
|
374
374
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -480,7 +480,7 @@ var RecipientList = class {
|
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
|
|
483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
484
484
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
485
485
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
486
486
|
"attachments.extract",
|
|
@@ -673,7 +673,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
673
673
|
}), "guardFor");
|
|
674
674
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
675
675
|
|
|
676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
677
677
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
678
678
|
"help",
|
|
679
679
|
"guide",
|
|
@@ -688,10 +688,11 @@ var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
|
688
688
|
"runs"
|
|
689
689
|
]);
|
|
690
690
|
var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) ? null : path.join("."), "commandPathKey");
|
|
691
|
-
var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {} } = {}) => ({
|
|
691
|
+
var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {}, alsoChecks } = {}) => ({
|
|
692
692
|
keyOf,
|
|
693
693
|
extra: [AUTHORITY_KEY, ...extra],
|
|
694
|
-
defaults: { ...DEFAULT_PERMISSIONS, ...defaults }
|
|
694
|
+
defaults: { ...DEFAULT_PERMISSIONS, ...defaults },
|
|
695
|
+
...alsoChecks ? { alsoChecks } : {}
|
|
695
696
|
}), "commandPermissions");
|
|
696
697
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
697
698
|
const words = [];
|
|
@@ -752,7 +753,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
752
753
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
753
754
|
}, "refuseUnknownPermissionKeys");
|
|
754
755
|
|
|
755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
756
757
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
757
758
|
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" }) => {
|
|
758
759
|
let warned = false;
|
|
@@ -1328,7 +1329,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1328
1329
|
}
|
|
1329
1330
|
}, "keep");
|
|
1330
1331
|
|
|
1331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
1332
1333
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
1333
1334
|
import { join as join4 } from "node:path";
|
|
1334
1335
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -1386,13 +1387,42 @@ var Pacer = class {
|
|
|
1386
1387
|
renameSync2(temporary, this.path);
|
|
1387
1388
|
}
|
|
1388
1389
|
};
|
|
1390
|
+
var ANNOUNCE_WAIT_MS = 5e3;
|
|
1391
|
+
var LONGEST_PACE_WAIT_MS = 5 * 6e4;
|
|
1392
|
+
var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
1393
|
+
const { name, operation, warn } = options;
|
|
1394
|
+
const now = options.now ?? Date.now;
|
|
1395
|
+
let at = now();
|
|
1396
|
+
try {
|
|
1397
|
+
at = await pacer.reserve();
|
|
1398
|
+
} catch (error) {
|
|
1399
|
+
warn?.(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
|
|
1400
|
+
event: "warning",
|
|
1401
|
+
code: "wait_not_remembered",
|
|
1402
|
+
operation
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
const waitMs = at - now();
|
|
1406
|
+
if (waitMs <= 0)
|
|
1407
|
+
return;
|
|
1408
|
+
if (waitMs > LONGEST_PACE_WAIT_MS)
|
|
1409
|
+
throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
|
|
1410
|
+
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
1411
|
+
const seconds = Math.ceil(waitMs / 1e3);
|
|
1412
|
+
warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
1413
|
+
event: "warning",
|
|
1414
|
+
code: "pace_wait",
|
|
1415
|
+
operation,
|
|
1416
|
+
counts: { seconds }
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
1420
|
+
}, "waitForTurn");
|
|
1389
1421
|
|
|
1390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
1391
1423
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
1392
1424
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
1393
1425
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
1394
|
-
var ANNOUNCE_WAIT_MS = 5e3;
|
|
1395
|
-
var LONGEST_PACE_WAIT_MS = 5 * 6e4;
|
|
1396
1426
|
var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
|
|
1397
1427
|
var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
|
|
1398
1428
|
const kept = /* @__PURE__ */ __name(async (operation, what2) => {
|
|
@@ -1448,28 +1478,8 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
1448
1478
|
await kept(operation, () => pacer.holdFor(waitMs));
|
|
1449
1479
|
}, "noted");
|
|
1450
1480
|
const turn = /* @__PURE__ */ __name(async (operation) => {
|
|
1451
|
-
if (
|
|
1452
|
-
|
|
1453
|
-
let at = Date.now();
|
|
1454
|
-
await kept(operation, async () => {
|
|
1455
|
-
at = await pacer.reserve();
|
|
1456
|
-
});
|
|
1457
|
-
const waitMs = at - Date.now();
|
|
1458
|
-
if (waitMs <= 0)
|
|
1459
|
-
return;
|
|
1460
|
-
if (waitMs > LONGEST_PACE_WAIT_MS) {
|
|
1461
|
-
throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
|
|
1462
|
-
}
|
|
1463
|
-
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
1464
|
-
const seconds = Math.ceil(waitMs / 1e3);
|
|
1465
|
-
warn(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
1466
|
-
event: "warning",
|
|
1467
|
-
code: "pace_wait",
|
|
1468
|
-
operation,
|
|
1469
|
-
counts: { seconds }
|
|
1470
|
-
});
|
|
1471
|
-
}
|
|
1472
|
-
await new Promise((resolve) => setTimeout(resolve, waitMs));
|
|
1481
|
+
if (pacer)
|
|
1482
|
+
await waitForTurn(pacer, { name, operation, warn });
|
|
1473
1483
|
}, "turn");
|
|
1474
1484
|
return throughWrapper(messenger, {}, (operation, call) => {
|
|
1475
1485
|
if (LONG_LIVED.has(operation))
|
|
@@ -1506,7 +1516,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
1506
1516
|
});
|
|
1507
1517
|
}, "flooded");
|
|
1508
1518
|
|
|
1509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
1510
1520
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
1511
1521
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
1512
1522
|
const write = currentOperation();
|
|
@@ -1605,7 +1615,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1605
1615
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1606
1616
|
}, "byPart");
|
|
1607
1617
|
|
|
1608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1609
1619
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1610
1620
|
let opened;
|
|
1611
1621
|
return {
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RP3U3J53.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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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")
|