@wirecat/zoom-cli 0.67.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/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/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-SEW2VL76.js → all-profiles-R66UM3HM.js} +12 -12
- package/dist/bundle/answer-policy-UCGUO53A.js +104 -0
- package/dist/bundle/{anthropic-FSNASJML.js → anthropic-4ZI2BPLG.js} +7 -7
- package/dist/bundle/{app-server-EVSRYJ3H.js → app-server-64O5IQI5.js} +61 -58
- package/dist/bundle/{bun-DACL5SVO.js → bun-HUHQD76Z.js} +2 -2
- package/dist/bundle/{bun-sqlite-HQ2KOXSI.js → bun-sqlite-VOVHPTIF.js} +6 -6
- package/dist/bundle/{chunk-SMVO5R3T.js → chunk-2OSBCYJT.js} +39 -26
- package/dist/bundle/{chunk-TBRG2DPE.js → chunk-2T6XHWDX.js} +2 -2
- package/dist/bundle/{chunk-6AJDVJVZ.js → chunk-32FPA7P2.js} +2 -2
- package/dist/bundle/{chunk-7LLUUXJB.js → chunk-355PHJYX.js} +1 -1
- package/dist/bundle/{chunk-3GO3KME7.js → chunk-3BRV2YU2.js} +3 -3
- package/dist/bundle/{chunk-I7SOXH64.js → chunk-474WF55M.js} +53 -39
- package/dist/bundle/{chunk-L643D4RJ.js → chunk-4TLPOY22.js} +12 -12
- package/dist/bundle/{chunk-D6OXI2NV.js → chunk-4YFJYSSK.js} +205 -59
- package/dist/bundle/chunk-5JAYUG3X.js +261 -0
- package/dist/bundle/{chunk-VNIBTNV4.js → chunk-65T3PU75.js} +2 -2
- package/dist/bundle/{chunk-6TZF2JP7.js → chunk-6CJ7NHIP.js} +13 -13
- package/dist/bundle/{chunk-MWEOVTIF.js → chunk-6T3P226D.js} +4 -4
- package/dist/bundle/{chunk-EPDRF66S.js → chunk-6TJ62LZQ.js} +22 -14
- package/dist/bundle/{chunk-ZRMZBMOF.js → chunk-6XO7RTJY.js} +66 -6
- package/dist/bundle/{chunk-VFIEYRYD.js → chunk-77I67HWF.js} +8 -8
- package/dist/bundle/{chunk-QX2MAT6I.js → chunk-77KFLU5F.js} +3 -3
- package/dist/bundle/{chunk-4GCKDO2H.js → chunk-7AUP2WT3.js} +3 -3
- package/dist/bundle/{chunk-7VU5UGRR.js → chunk-7DUYFITC.js} +16 -16
- package/dist/bundle/{chunk-ASCHAVNW.js → chunk-7QNJICKZ.js} +27 -27
- package/dist/bundle/{chunk-KWRSC6O6.js → chunk-A63ZFOQJ.js} +18 -4
- package/dist/bundle/{chunk-SSXCOUP3.js → chunk-AJ7CMUGD.js} +464 -220
- package/dist/bundle/{chunk-SCFFCIIP.js → chunk-AVEIQMHZ.js} +2 -2
- package/dist/bundle/chunk-AYEVBAGO.js +178 -0
- package/dist/bundle/{chunk-AAZFLJSH.js → chunk-B6JMVB6R.js} +10 -10
- package/dist/bundle/{chunk-CRLBTNC4.js → chunk-BL36NSV5.js} +3 -3
- package/dist/bundle/{chunk-4UVT2QCO.js → chunk-BOAMDYLY.js} +4 -4
- package/dist/bundle/chunk-BSM43OMN.js +31 -0
- package/dist/bundle/{chunk-QEI55M2F.js → chunk-DGNPJGD3.js} +16 -10
- package/dist/bundle/{chunk-SOZVC3SV.js → chunk-DVA6MQWK.js} +1 -1
- package/dist/bundle/{chunk-YRNZT4GQ.js → chunk-DWSUSWAX.js} +98 -13
- package/dist/bundle/{chunk-LFQ73UFK.js → chunk-EH5QGQFR.js} +3 -3
- package/dist/bundle/{chunk-OZEYFJX2.js → chunk-EJDV5IIF.js} +1 -1
- package/dist/bundle/{chunk-VQTAU4DV.js → chunk-EWIBLDQQ.js} +8 -8
- package/dist/bundle/{chunk-4ZR5DJ26.js → chunk-EZRPSZJS.js} +3 -3
- package/dist/bundle/{chunk-KIJLM5UL.js → chunk-FBLUKCIR.js} +1 -1
- package/dist/bundle/{chunk-WZ5XK74U.js → chunk-FEM2JQN2.js} +1 -1
- package/dist/bundle/{chunk-GP4NSYDU.js → chunk-FMQS7HCC.js} +12 -12
- package/dist/bundle/{chunk-B5Z4XPVS.js → chunk-FNQASORM.js} +2 -2
- package/dist/bundle/{chunk-FWU3ZYHE.js → chunk-GOXDBCDM.js} +728 -130
- package/dist/bundle/{chunk-CLEZE65P.js → chunk-HXOAPH47.js} +1 -1
- package/dist/bundle/{chunk-7K5TDTZY.js → chunk-JO4YADNV.js} +7 -7
- package/dist/bundle/{chunk-4U2555EQ.js → chunk-JRCYFCPL.js} +30 -28
- package/dist/bundle/{chunk-L6CAUVMU.js → chunk-K67V24AT.js} +5 -5
- package/dist/bundle/{chunk-B3KWAULD.js → chunk-KAPJQGHE.js} +2 -2
- package/dist/bundle/{chunk-T6CZWSHF.js → chunk-KNE6VFHZ.js} +21 -21
- package/dist/bundle/{chunk-LM26DJOK.js → chunk-KUB2U5NT.js} +6 -6
- package/dist/bundle/{chunk-EUPZSR2G.js → chunk-L4WVLRXM.js} +4 -4
- package/dist/bundle/{chunk-BKY4XVB4.js → chunk-LBOSTBAY.js} +1248 -617
- package/dist/bundle/{chunk-C6UKW7JO.js → chunk-LV7QRR5S.js} +6 -6
- package/dist/bundle/{chunk-FGTPREAZ.js → chunk-LYWUG43B.js} +33 -33
- package/dist/bundle/{chunk-NTZDM5SJ.js → chunk-NRRI37NJ.js} +9 -9
- package/dist/bundle/{chunk-J3ZBEWQY.js → chunk-NUJMJQXV.js} +54 -147
- package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-OE7EIP5L.js} +1 -1
- package/dist/bundle/{chunk-ZMPTO2WB.js → chunk-P2TISY3R.js} +1 -1
- package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-V33VGWT3.js → chunk-PIHBD3YS.js} +16 -6
- package/dist/bundle/{chunk-RYKG6AEH.js → chunk-PUTGTW6W.js} +4 -2
- package/dist/bundle/{chunk-L6WUAGPN.js → chunk-QXTREL2M.js} +3 -3
- package/dist/bundle/{chunk-X67YD3QI.js → chunk-R7LFGEDE.js} +2 -2
- package/dist/bundle/{chunk-2UW533HQ.js → chunk-RGJ7OWHU.js} +4 -4
- package/dist/bundle/{chunk-LKJXTACE.js → chunk-RP3U3J53.js} +7 -7
- package/dist/bundle/{chunk-DG4DWAU7.js → chunk-RRYUD2EF.js} +3 -3
- package/dist/bundle/{chunk-Q65SDEFN.js → chunk-SRP6SFFD.js} +2 -2
- package/dist/bundle/{chunk-4KDZ22RA.js → chunk-SSPSNSC5.js} +1 -1
- package/dist/bundle/{chunk-DFUPETW7.js → chunk-TDGZMC6K.js} +130 -75
- package/dist/bundle/{chunk-EQ7XRRKV.js → chunk-TN3FH2GQ.js} +11 -11
- package/dist/bundle/chunk-TUNQ6NE2.js +64 -0
- package/dist/bundle/{chunk-FXQPK742.js → chunk-TZUKDM72.js} +29 -15
- package/dist/bundle/{chunk-IFDO3YPJ.js → chunk-UDJTRFRV.js} +1 -1
- package/dist/bundle/{chunk-ESFMHBHH.js → chunk-US5C3WAY.js} +60 -51
- package/dist/bundle/{chunk-KANH7GBB.js → chunk-UU5PLDRA.js} +2 -2
- package/dist/bundle/{chunk-OTMGAKUM.js → chunk-VLD7Y4SY.js} +7 -7
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/{chunk-JVCHGI7W.js → chunk-W42BJ65M.js} +1 -1
- package/dist/bundle/{chunk-RAMPYIO2.js → chunk-Y5LP5SHV.js} +11 -11
- package/dist/bundle/{chunk-WHQ4ZCJI.js → chunk-YJY3W2ZT.js} +210 -85
- package/dist/bundle/{chunk-3ZIHUSMM.js → chunk-YOAEZSDG.js} +2 -2
- package/dist/bundle/{chunk-M43MBWJX.js → chunk-YQRNFG2E.js} +13471 -1289
- package/dist/bundle/{chunk-7HAIM7GV.js → chunk-YTF2WPV4.js} +601 -443
- package/dist/bundle/{chunk-6UFWFKFH.js → chunk-ZRD3NDOX.js} +2 -2
- package/dist/bundle/{cli-YUATSOLA.js → cli-VQJ7ZRYR.js} +89 -61
- package/dist/bundle/command-contract-JPUWWYIV.js +41 -0
- package/dist/bundle/config-YGLLR77A.js +90 -0
- package/dist/bundle/{decode-IL44LNC3.js → decode-L3ENO2XH.js} +6 -6
- package/dist/bundle/{dispatch-3BGIXSJR.js → dispatch-5MGDLOK4.js} +9 -9
- package/dist/bundle/{dist-3W27UQ2S.js → dist-WQLS7U23.js} +47 -27
- package/dist/bundle/{echarts-CO4D26JF.js → echarts-5LLJ6JXC.js} +2 -2
- package/dist/bundle/{embed-XH2X4DFM.js → embed-37MYTCU7.js} +7 -7
- package/dist/bundle/{embedder-WTFWDXBJ.js → embedder-GNGHVJAO.js} +10 -10
- package/dist/bundle/{failure-HTIS3NLS.js → failure-CR64C4XA.js} +3 -3
- package/dist/bundle/{first-run-5RBH7FDO.js → first-run-NR5JKYP3.js} +12 -12
- package/dist/bundle/first-screen-RCR7ATO2.js +39 -0
- package/dist/bundle/{folders-F4DNQPIY.js → folders-VU4IN35Y.js} +5 -5
- package/dist/bundle/{instructions-EPPBL6TT.js → instructions-P72XX4AK.js} +1 -1
- package/dist/bundle/{main-LVQTCDZS.js → main-QYFCYSTW.js} +21 -23
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/{meetings-BMELXRTR.js → meetings-66UQINKI.js} +13 -7
- package/dist/bundle/{node-CQVMWVIG.js → node-ZB4RNICS.js} +2 -2
- package/dist/bundle/{node-sqlite-QQEX7LZT.js → node-sqlite-XPRKBDF3.js} +7 -7
- package/dist/bundle/{oauth-AYGX7CQS.js → oauth-WJRDUU5J.js} +8 -8
- package/dist/bundle/{open-MIL2TOT6.js → open-S2YSIEOW.js} +6 -6
- package/dist/bundle/openai-CRNZFNZD.js +25 -0
- package/dist/bundle/{output-file-4XADZPYH.js → output-file-6COFGPUL.js} +6 -6
- package/dist/bundle/{process-NJVQK6GB.js → process-XNN4WG6N.js} +1 -1
- package/dist/bundle/{program-WUYRS6H7.js → program-BRPJKRCX.js} +115 -187
- package/dist/bundle/{prompt-J4QPFLEA.js → prompt-7RQOL25I.js} +6 -6
- package/dist/bundle/{recognize-OLJZVNWW.js → recognize-N5WADGQB.js} +5 -5
- package/dist/bundle/{remote-JPUXNYLV.js → remote-WHYV35IF.js} +8 -8
- package/dist/bundle/{rerank-XVV3X5TT.js → rerank-FBMZVWSH.js} +8 -8
- package/dist/bundle/{run-log-DJXBEVS5.js → run-log-TOCHREH2.js} +59 -59
- package/dist/bundle/{serve-NYYUO3MR.js → serve-4BABX4WS.js} +10 -10
- package/dist/bundle/{server-4Z5E4YTT.js → server-CDVI6LOB.js} +47 -47
- package/dist/bundle/server-XOFQKFVO.js +72 -0
- package/dist/bundle/{services-EKWM76HP.js → services-PIY33I7R.js} +43 -33
- package/dist/bundle/{speech-WFJ44ACJ.js → speech-LS5Q4FL2.js} +14 -14
- package/dist/bundle/{state-VIRCT4VW.js → state-YUX5R2R7.js} +7 -7
- package/dist/bundle/{store-ZTDZ6UY5.js → store-BD7HAXAA.js} +20 -18
- package/dist/bundle/{store-2Q4GEZJS.js → store-ERMGBF2B.js} +49 -29
- package/dist/bundle/store-connection-JBR6CMTJ.js +83 -0
- package/dist/bundle/store-maintenance-command-I5DUSO2C.js +62 -0
- package/dist/bundle/{streaming-7BPKIGAS.js → streaming-O53PIORL.js} +7 -7
- package/dist/bundle/{tokens-CQHMMKNX.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.map +1 -1
- package/dist/config.js +2 -3
- 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/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +7 -2
- package/dist/program-bindings.js.map +1 -1
- package/dist/setup-commands.d.ts +6 -0
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +24 -9
- package/dist/setup-commands.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.d.ts +32 -0
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +61 -0
- package/dist/zoom-app.js.map +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-5OYUL6UF.js +0 -103
- package/dist/bundle/chunk-54RTMQL6.js +0 -132
- package/dist/bundle/chunk-6VFORXL3.js +0 -101
- package/dist/bundle/chunk-D4KBD63W.js +0 -19
- package/dist/bundle/chunk-SXFODCYK.js +0 -9
- package/dist/bundle/chunk-Z3WXI4DK.js +0 -31
- package/dist/bundle/command-contract-UWHY55UE.js +0 -41
- package/dist/bundle/config-TGF6E6ZD.js +0 -89
- package/dist/bundle/first-screen-PGFIXJAX.js +0 -39
- package/dist/bundle/openai-7QZZXQW5.js +0 -25
- package/dist/bundle/server-VW5UVCH7.js +0 -72
- package/dist/bundle/store-connection-FKVVQLEF.js +0 -83
- package/dist/bundle/store-maintenance-command-AU73UVUQ.js +0 -62
- package/dist/bundle/zoom-app-OEKFMJS6.js +0 -25
- /package/dist/bundle/{chunk-LU3WKZBA.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,
|
|
@@ -34,37 +37,37 @@ import {
|
|
|
34
37
|
snakeKeys,
|
|
35
38
|
usableProfileName,
|
|
36
39
|
withSettingDefaults
|
|
37
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-AJ7CMUGD.js";
|
|
38
41
|
import {
|
|
39
42
|
readOnlyLockOf,
|
|
40
43
|
readOnlyRefusal
|
|
41
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-AVEIQMHZ.js";
|
|
42
45
|
import {
|
|
43
46
|
setupPermissionCeiling
|
|
44
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-L4WVLRXM.js";
|
|
45
48
|
import {
|
|
46
49
|
KEEP_RUNS_FOR_DAYS,
|
|
47
50
|
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
48
51
|
RUNS_SIZE_LIMIT_MB
|
|
49
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-JRCYFCPL.js";
|
|
50
53
|
import {
|
|
51
54
|
CEILING_KEY,
|
|
52
55
|
DEFAULT_PERMISSIONS,
|
|
53
56
|
LEVELS,
|
|
54
57
|
keyForCommand,
|
|
55
58
|
levelFor
|
|
56
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-65T3PU75.js";
|
|
57
60
|
import {
|
|
58
61
|
ZM
|
|
59
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BSM43OMN.js";
|
|
60
63
|
import {
|
|
61
64
|
MEETING_RESULT_ENTITIES
|
|
62
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-TDGZMC6K.js";
|
|
63
66
|
import {
|
|
64
67
|
createRenderer,
|
|
65
68
|
projectFields,
|
|
66
69
|
saveConfigFile
|
|
67
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-KNE6VFHZ.js";
|
|
68
71
|
import {
|
|
69
72
|
array,
|
|
70
73
|
boolean,
|
|
@@ -89,10 +92,10 @@ import {
|
|
|
89
92
|
strictObject,
|
|
90
93
|
string,
|
|
91
94
|
union
|
|
92
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-NRRI37NJ.js";
|
|
93
96
|
import {
|
|
94
97
|
CliError
|
|
95
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-FEM2JQN2.js";
|
|
96
99
|
import {
|
|
97
100
|
__name
|
|
98
101
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -372,7 +375,19 @@ var searchHit = strictObject({
|
|
|
372
375
|
container_id: nullableText,
|
|
373
376
|
details: record(text, nullable(union([text, number(), flag])))
|
|
374
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
|
+
});
|
|
375
389
|
var ZOOM_ANSWER_ENTITIES = {
|
|
390
|
+
app: { name: "zoom_app_setup", schema: zoomAppSetup },
|
|
376
391
|
"recordings list": { name: "zoom_recording", schema: recording },
|
|
377
392
|
"recordings show": { name: "zoom_recording", schema: recording },
|
|
378
393
|
"recordings download": { name: "zoom_archive", schema: union([archive, archiveReceipt]) },
|
|
@@ -595,6 +610,7 @@ var annotateMeetingCommands = /* @__PURE__ */ __name((program) => {
|
|
|
595
610
|
}
|
|
596
611
|
}, "annotateMeetingCommands");
|
|
597
612
|
var PROFILE_FREE = /* @__PURE__ */ new Set([
|
|
613
|
+
"app",
|
|
598
614
|
"commands",
|
|
599
615
|
"complete",
|
|
600
616
|
"config",
|
|
@@ -870,9 +886,7 @@ var setConfig = /* @__PURE__ */ __name((path, key, value, profile, permissionKey
|
|
|
870
886
|
return;
|
|
871
887
|
}
|
|
872
888
|
case "zoom.client_id":
|
|
873
|
-
|
|
874
|
-
throw new CliError("validation_error", "client id must not contain whitespace");
|
|
875
|
-
raw.client_id = value;
|
|
889
|
+
raw.client_id = checkedClientId(value);
|
|
876
890
|
return;
|
|
877
891
|
case "source":
|
|
878
892
|
if (value !== "api" && value !== "files")
|
|
@@ -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",
|
|
@@ -753,7 +753,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
753
753
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
754
754
|
}, "refuseUnknownPermissionKeys");
|
|
755
755
|
|
|
756
|
-
// 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
|
|
757
757
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
758
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" }) => {
|
|
759
759
|
let warned = false;
|
|
@@ -1329,7 +1329,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1329
1329
|
}
|
|
1330
1330
|
}, "keep");
|
|
1331
1331
|
|
|
1332
|
-
// 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
|
|
1333
1333
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
1334
1334
|
import { join as join4 } from "node:path";
|
|
1335
1335
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -1387,13 +1387,42 @@ var Pacer = class {
|
|
|
1387
1387
|
renameSync2(temporary, this.path);
|
|
1388
1388
|
}
|
|
1389
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");
|
|
1390
1421
|
|
|
1391
|
-
// 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
|
|
1392
1423
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
1393
1424
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
1394
1425
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
1395
|
-
var ANNOUNCE_WAIT_MS = 5e3;
|
|
1396
|
-
var LONGEST_PACE_WAIT_MS = 5 * 6e4;
|
|
1397
1426
|
var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
|
|
1398
1427
|
var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
|
|
1399
1428
|
const kept = /* @__PURE__ */ __name(async (operation, what2) => {
|
|
@@ -1449,28 +1478,8 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
1449
1478
|
await kept(operation, () => pacer.holdFor(waitMs));
|
|
1450
1479
|
}, "noted");
|
|
1451
1480
|
const turn = /* @__PURE__ */ __name(async (operation) => {
|
|
1452
|
-
if (
|
|
1453
|
-
|
|
1454
|
-
let at = Date.now();
|
|
1455
|
-
await kept(operation, async () => {
|
|
1456
|
-
at = await pacer.reserve();
|
|
1457
|
-
});
|
|
1458
|
-
const waitMs = at - Date.now();
|
|
1459
|
-
if (waitMs <= 0)
|
|
1460
|
-
return;
|
|
1461
|
-
if (waitMs > LONGEST_PACE_WAIT_MS) {
|
|
1462
|
-
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 });
|
|
1463
|
-
}
|
|
1464
|
-
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
1465
|
-
const seconds = Math.ceil(waitMs / 1e3);
|
|
1466
|
-
warn(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
1467
|
-
event: "warning",
|
|
1468
|
-
code: "pace_wait",
|
|
1469
|
-
operation,
|
|
1470
|
-
counts: { seconds }
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
await new Promise((resolve) => setTimeout(resolve, waitMs));
|
|
1481
|
+
if (pacer)
|
|
1482
|
+
await waitForTurn(pacer, { name, operation, warn });
|
|
1474
1483
|
}, "turn");
|
|
1475
1484
|
return throughWrapper(messenger, {}, (operation, call) => {
|
|
1476
1485
|
if (LONG_LIVED.has(operation))
|
|
@@ -1507,7 +1516,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
1507
1516
|
});
|
|
1508
1517
|
}, "flooded");
|
|
1509
1518
|
|
|
1510
|
-
// 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
|
|
1511
1520
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
1512
1521
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
1513
1522
|
const write = currentOperation();
|
|
@@ -1606,7 +1615,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1606
1615
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1607
1616
|
}, "byPart");
|
|
1608
1617
|
|
|
1609
|
-
// 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
|
|
1610
1619
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1611
1620
|
let opened;
|
|
1612
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")
|
|
@@ -2,25 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-32FPA7P2.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KNE6VFHZ.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FEM2JQN2.js";
|
|
12
12
|
import {
|
|
13
13
|
singleLine
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OE7EIP5L.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// 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/store/shared-config.js
|
|
20
20
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
21
21
|
import { dirname, join, resolve } from "node:path";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// 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/domain/task-categories.js
|
|
24
24
|
var DEFAULT_TASK_CATEGORIES = [
|
|
25
25
|
{
|
|
26
26
|
name: "taxes",
|
|
@@ -775,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
775
775
|
}
|
|
776
776
|
}, "storedTaskCategories");
|
|
777
777
|
|
|
778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
778
|
+
// 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/store/shared-config.js
|
|
779
779
|
var SECTION = "task_categories";
|
|
780
780
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
781
781
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -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.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.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/private-files.js
|
|
8
8
|
import { existsSync, statSync } from "node:fs";
|
|
9
9
|
var shellQuoted = /* @__PURE__ */ __name((path) => `'${path.replaceAll("'", `'\\''`)}'`, "shellQuoted");
|
|
10
10
|
var privateFiles = /* @__PURE__ */ __name(({ files, dirs }, platform = process.platform) => {
|