@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
|
@@ -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/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KNE6VFHZ.js";
|
|
9
9
|
import {
|
|
10
10
|
COMPACT_FLAG
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NRRI37NJ.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FEM2JQN2.js";
|
|
15
15
|
import {
|
|
16
16
|
singleLine
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OE7EIP5L.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// 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/result-fields.js
|
|
23
23
|
var named = /* @__PURE__ */ __name((work) => {
|
|
24
24
|
try {
|
|
25
25
|
return work();
|
|
@@ -46,7 +46,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
46
46
|
return projectFields(value, fields);
|
|
47
47
|
}), "projectFields");
|
|
48
48
|
|
|
49
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49
|
+
// 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/output-detail.js
|
|
50
50
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
51
51
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
52
52
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -82,7 +82,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
82
82
|
return value;
|
|
83
83
|
}, "atDetail");
|
|
84
84
|
|
|
85
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
85
|
+
// 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/output.js
|
|
86
86
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
87
87
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
88
88
|
if (other)
|
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
+
PRIORITY_LABELS,
|
|
5
|
+
TASK_ORIGINS,
|
|
6
|
+
TASK_STATES,
|
|
7
|
+
TASK_TYPES,
|
|
4
8
|
count,
|
|
5
9
|
id,
|
|
6
10
|
text,
|
|
7
11
|
time
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
PRIORITY_LABELS,
|
|
11
|
-
TASK_ORIGINS,
|
|
12
|
-
TASK_STATES,
|
|
13
|
-
TASK_TYPES
|
|
14
|
-
} from "./chunk-AU4JHT3R.js";
|
|
12
|
+
} from "./chunk-DWSUSWAX.js";
|
|
15
13
|
import {
|
|
16
14
|
TAG_TYPES
|
|
17
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AYEVBAGO.js";
|
|
18
16
|
import {
|
|
19
17
|
filesPresent,
|
|
20
18
|
sharedModelsDirectory
|
|
21
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6TJ62LZQ.js";
|
|
22
20
|
import {
|
|
23
21
|
createRecordLog,
|
|
24
22
|
resolvePaths,
|
|
25
23
|
traceIdOf,
|
|
26
24
|
writeSecurely
|
|
27
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KNE6VFHZ.js";
|
|
28
26
|
import {
|
|
29
27
|
array,
|
|
30
28
|
boolean,
|
|
@@ -34,22 +32,22 @@ import {
|
|
|
34
32
|
picklist,
|
|
35
33
|
reference,
|
|
36
34
|
strictObject
|
|
37
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NRRI37NJ.js";
|
|
38
36
|
import {
|
|
39
37
|
CliError,
|
|
40
38
|
isCliError
|
|
41
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FEM2JQN2.js";
|
|
42
40
|
import {
|
|
43
41
|
__name
|
|
44
42
|
} from "./chunk-ZVVMGPBJ.js";
|
|
45
43
|
|
|
46
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// 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/runs/run.js
|
|
47
45
|
import { randomUUID } from "node:crypto";
|
|
48
46
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
49
47
|
import { userInfo } from "node:os";
|
|
50
48
|
import { join, sep } from "node:path";
|
|
51
49
|
|
|
52
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// 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/runs/log-keys.js
|
|
53
51
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
54
52
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
55
53
|
var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -62,7 +60,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
62
60
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
63
61
|
}), "snakeLogger");
|
|
64
62
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
63
|
+
// 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/runs/log-attributes.js
|
|
66
64
|
var diagnostic = {
|
|
67
65
|
event: true,
|
|
68
66
|
operation: true,
|
|
@@ -132,7 +130,7 @@ var LOG_ATTRIBUTES = [
|
|
|
132
130
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
133
131
|
].sort();
|
|
134
132
|
|
|
135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
133
|
+
// 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/runs/run.js
|
|
136
134
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
137
135
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
138
136
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -485,7 +483,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
485
483
|
};
|
|
486
484
|
}, "metadataOf");
|
|
487
485
|
|
|
488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
486
|
+
// 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/runs/scope.js
|
|
489
487
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
490
488
|
import { randomBytes } from "node:crypto";
|
|
491
489
|
var scopes = new AsyncLocalStorage();
|
|
@@ -523,7 +521,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
523
521
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
524
522
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
525
523
|
|
|
526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
524
|
+
// 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/duration.js
|
|
527
525
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
528
526
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
529
527
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -537,7 +535,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
537
535
|
return ms;
|
|
538
536
|
}, "parseDuration");
|
|
539
537
|
|
|
540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
538
|
+
// 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/guarded.js
|
|
541
539
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
542
540
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
543
541
|
messageId: message.id,
|
|
@@ -643,7 +641,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
|
|
|
643
641
|
}, "guardedWrite");
|
|
644
642
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
645
643
|
|
|
646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
644
|
+
// 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/embeddings/models.js
|
|
647
645
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
648
646
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
649
647
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -802,7 +800,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
802
800
|
var vectorModelKey = /* @__PURE__ */ __name((model) => `local:${model.id}:${model.dims}`, "vectorModelKey");
|
|
803
801
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
804
802
|
|
|
805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
803
|
+
// 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/services/history-limits.js
|
|
806
804
|
var HISTORY_MAX_DAYS = 1095;
|
|
807
805
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
808
806
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -849,7 +847,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
849
847
|
return { batch: { ...batch, messages }, skipped };
|
|
850
848
|
}, "limitBatch");
|
|
851
849
|
|
|
852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
850
|
+
// 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/task.js
|
|
853
851
|
var closeSuggestion = strictObject({
|
|
854
852
|
as: picklist(["done", "dismissed"]),
|
|
855
853
|
/** The agent's name. */
|
|
@@ -880,6 +878,10 @@ var task = strictObject({
|
|
|
880
878
|
chat: optional(nullable(reference)),
|
|
881
879
|
/** The message it came from. */
|
|
882
880
|
source_message: optional(nullable(reference)),
|
|
881
|
+
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
882
|
+
external_id: optional(nullable(text)),
|
|
883
|
+
/** The http or https page it is about, such as an Avito ad. */
|
|
884
|
+
source_url: optional(nullable(text)),
|
|
883
885
|
/** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
|
|
884
886
|
priority: optional(nullable(number())),
|
|
885
887
|
priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
|
|
@@ -907,7 +909,7 @@ var task = strictObject({
|
|
|
907
909
|
updated_at: optional(time)
|
|
908
910
|
});
|
|
909
911
|
|
|
910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
912
|
+
// 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/agenda.js
|
|
911
913
|
var agendaChat = strictObject({
|
|
912
914
|
chat: reference,
|
|
913
915
|
title: nullable(text),
|
|
@@ -977,7 +979,7 @@ var agenda = strictObject({
|
|
|
977
979
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
978
980
|
});
|
|
979
981
|
|
|
980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
982
|
+
// 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/attachment.js
|
|
981
983
|
var attachment = strictObject({
|
|
982
984
|
/** The message it came with, as a locator; absent inside that message. */
|
|
983
985
|
message: optional(reference),
|
|
@@ -1015,7 +1017,7 @@ var attachment = strictObject({
|
|
|
1015
1017
|
});
|
|
1016
1018
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
1017
1019
|
|
|
1018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1020
|
+
// 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/conversation.js
|
|
1019
1021
|
var conversation = strictObject({
|
|
1020
1022
|
id,
|
|
1021
1023
|
chat: reference,
|
|
@@ -1030,7 +1032,7 @@ var conversation = strictObject({
|
|
|
1030
1032
|
rules_version: count
|
|
1031
1033
|
});
|
|
1032
1034
|
|
|
1033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1035
|
+
// 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/tagging.js
|
|
1034
1036
|
var tagging = strictObject({
|
|
1035
1037
|
tag: text,
|
|
1036
1038
|
type: picklist(TAG_TYPES),
|
|
@@ -1043,7 +1045,7 @@ var tagging = strictObject({
|
|
|
1043
1045
|
created_at: time
|
|
1044
1046
|
});
|
|
1045
1047
|
|
|
1046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1048
|
+
// 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/images/picture/models.js
|
|
1047
1049
|
import { join as join2 } from "node:path";
|
|
1048
1050
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
1049
1051
|
var IMAGE_MODELS = [
|
|
@@ -1097,7 +1099,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
1097
1099
|
var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
|
|
1098
1100
|
var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
|
|
1099
1101
|
|
|
1100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1102
|
+
// 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/botcheck/reasons.js
|
|
1101
1103
|
var WEIGHTS = {
|
|
1102
1104
|
bot: 3,
|
|
1103
1105
|
scam: 3,
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
answerSchema,
|
|
7
7
|
describeOptions,
|
|
8
8
|
metaOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AJ7CMUGD.js";
|
|
10
10
|
import {
|
|
11
11
|
keyForCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-65T3PU75.js";
|
|
13
13
|
import {
|
|
14
14
|
jsonSchemaOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NRRI37NJ.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FEM2JQN2.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
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/cli/command-contract.js
|
|
24
24
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
25
25
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
26
26
|
const entity = answerEntitySchema(command);
|
|
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
timezoneOf,
|
|
5
5
|
wallTime
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B6JMVB6R.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
isCliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FEM2JQN2.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
errorObjectOf,
|
|
8
8
|
getDotPath,
|
|
9
9
|
isoTime,
|
|
10
|
+
object,
|
|
10
11
|
optional,
|
|
11
12
|
parseRegistry,
|
|
12
13
|
picklist,
|
|
@@ -18,14 +19,14 @@ import {
|
|
|
18
19
|
string,
|
|
19
20
|
text,
|
|
20
21
|
unknown
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NRRI37NJ.js";
|
|
22
23
|
import {
|
|
23
24
|
CliError,
|
|
24
25
|
isCliError
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FEM2JQN2.js";
|
|
26
27
|
import {
|
|
27
28
|
visibleControls
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OE7EIP5L.js";
|
|
29
30
|
import {
|
|
30
31
|
__commonJS,
|
|
31
32
|
__name,
|
|
@@ -1898,7 +1899,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1898
1899
|
}
|
|
1899
1900
|
});
|
|
1900
1901
|
|
|
1901
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1902
|
+
// 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/result-fields.js
|
|
1902
1903
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
1903
1904
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
1904
1905
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -1909,14 +1910,14 @@ var fieldsOf = /* @__PURE__ */ __name((value) => {
|
|
|
1909
1910
|
validate(paths);
|
|
1910
1911
|
return [...new Set(paths)];
|
|
1911
1912
|
}, "fieldsOf");
|
|
1912
|
-
var
|
|
1913
|
+
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "object");
|
|
1913
1914
|
var retained = /* @__PURE__ */ new Set(["operation_id", "page", "next", "missing", "meta", "coverage"]);
|
|
1914
1915
|
var itemPaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("items.") ? path.slice(6) : path), "itemPaths");
|
|
1915
1916
|
var onePaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("item.") ? path.slice(5) : path), "onePaths");
|
|
1916
1917
|
var select = /* @__PURE__ */ __name((value, paths) => {
|
|
1917
1918
|
if (Array.isArray(value))
|
|
1918
1919
|
return value.map((item) => select(item, paths));
|
|
1919
|
-
if (!
|
|
1920
|
+
if (!object2(value))
|
|
1920
1921
|
return value;
|
|
1921
1922
|
const result = {};
|
|
1922
1923
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -1934,9 +1935,9 @@ var select = /* @__PURE__ */ __name((value, paths) => {
|
|
|
1934
1935
|
const found = value[key];
|
|
1935
1936
|
if (children.includes(""))
|
|
1936
1937
|
result[key] = found;
|
|
1937
|
-
else if (
|
|
1938
|
+
else if (object2(found) || Array.isArray(found)) {
|
|
1938
1939
|
const selected = select(found, children);
|
|
1939
|
-
if (Array.isArray(selected) ||
|
|
1940
|
+
if (Array.isArray(selected) || object2(selected) && Object.keys(selected).length > 0)
|
|
1940
1941
|
result[key] = selected;
|
|
1941
1942
|
}
|
|
1942
1943
|
}
|
|
@@ -1948,22 +1949,22 @@ var select = /* @__PURE__ */ __name((value, paths) => {
|
|
|
1948
1949
|
var project = /* @__PURE__ */ __name((value, fields) => {
|
|
1949
1950
|
if (Array.isArray(value))
|
|
1950
1951
|
return value.map((item) => select(item, itemPaths(fields)));
|
|
1951
|
-
if (
|
|
1952
|
+
if (object2(value) && Object.hasOwn(value, "type") && value.type === "item" && Object.hasOwn(value, "data") && Object.keys(value).every((key) => ["type", "data"].includes(key)))
|
|
1952
1953
|
return { ...value, data: project(value.data, fields) };
|
|
1953
|
-
if (
|
|
1954
|
+
if (object2(value) && Object.hasOwn(value, "type") && value.type === "end" && Object.hasOwn(value, "complete") && typeof value.complete === "boolean")
|
|
1954
1955
|
return value;
|
|
1955
|
-
if (
|
|
1956
|
+
if (object2(value) && Object.hasOwn(value, "item") && (Object.hasOwn(value, "meta") || Object.keys(value).every((key) => ["item", "next", "missing"].includes(key))))
|
|
1956
1957
|
return { ...value, item: project(value.item, onePaths(fields)) };
|
|
1957
|
-
if (
|
|
1958
|
+
if (object2(value) && Array.isArray(value.items))
|
|
1958
1959
|
return { ...value, items: value.items.map((item) => select(item, itemPaths(fields))) };
|
|
1959
|
-
return select(value,
|
|
1960
|
+
return select(value, object2(value) && !Object.hasOwn(value, "items") ? itemPaths(fields) : fields);
|
|
1960
1961
|
}, "project");
|
|
1961
1962
|
var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
1962
1963
|
validate(fields);
|
|
1963
1964
|
return project(value, fields);
|
|
1964
1965
|
}, "projectFields");
|
|
1965
1966
|
|
|
1966
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1967
|
+
// 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/batch.js
|
|
1967
1968
|
var BATCH_LIMITS = Object.freeze({
|
|
1968
1969
|
requests: 32,
|
|
1969
1970
|
input_bytes: 262144,
|
|
@@ -2041,10 +2042,10 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2041
2042
|
if (maxOutputBytes < 8192 + requests.length * 2048)
|
|
2042
2043
|
invalid("batch output budget cannot hold its result framing");
|
|
2043
2044
|
const errorOf = /* @__PURE__ */ __name((error) => {
|
|
2044
|
-
const
|
|
2045
|
+
const object3 = errorObjectOf(error, options.failureContext).error;
|
|
2045
2046
|
try {
|
|
2046
|
-
if (Buffer.byteLength(JSON.stringify(
|
|
2047
|
-
return
|
|
2047
|
+
if (Buffer.byteLength(JSON.stringify(object3), "utf8") <= 512)
|
|
2048
|
+
return object3;
|
|
2048
2049
|
} catch {
|
|
2049
2050
|
}
|
|
2050
2051
|
const fallback = errorObjectOf(error).error;
|
|
@@ -2089,11 +2090,11 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2089
2090
|
}
|
|
2090
2091
|
} catch (error) {
|
|
2091
2092
|
options.signal?.throwIfAborted();
|
|
2092
|
-
const
|
|
2093
|
+
const object3 = errorOf(error);
|
|
2093
2094
|
result = {
|
|
2094
2095
|
...framing,
|
|
2095
|
-
status:
|
|
2096
|
-
error:
|
|
2096
|
+
status: object3.reason === "batch.read-budget" ? "not_run" : "error",
|
|
2097
|
+
error: object3,
|
|
2097
2098
|
complete: false
|
|
2098
2099
|
};
|
|
2099
2100
|
}
|
|
@@ -2110,7 +2111,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2110
2111
|
};
|
|
2111
2112
|
}, "runBatch");
|
|
2112
2113
|
|
|
2113
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2114
|
+
// 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/config.js
|
|
2114
2115
|
import { randomBytes } from "node:crypto";
|
|
2115
2116
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2116
2117
|
import { dirname, join } from "node:path";
|
|
@@ -2154,7 +2155,7 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2154
2155
|
`, 384);
|
|
2155
2156
|
}, "saveConfigFile");
|
|
2156
2157
|
|
|
2157
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2158
|
+
// 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/keyring.js
|
|
2158
2159
|
import { createRequire } from "node:module";
|
|
2159
2160
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2160
2161
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2174,7 +2175,7 @@ var systemKeyring = {
|
|
|
2174
2175
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2175
2176
|
};
|
|
2176
2177
|
|
|
2177
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2178
|
+
// 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/paths.js
|
|
2178
2179
|
import { homedir, userInfo } from "node:os";
|
|
2179
2180
|
import { join as join2, posix, win32 } from "node:path";
|
|
2180
2181
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -2226,7 +2227,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
2226
2227
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
2227
2228
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join2(configDir, fileName), "configFilePath");
|
|
2228
2229
|
|
|
2229
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2230
|
+
// 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/credentials.js
|
|
2230
2231
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2231
2232
|
import { join as join3, resolve } from "node:path";
|
|
2232
2233
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
@@ -2363,10 +2364,10 @@ var Credentials = class {
|
|
|
2363
2364
|
}
|
|
2364
2365
|
};
|
|
2365
2366
|
|
|
2366
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2367
|
+
// 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/logging.js
|
|
2367
2368
|
import { appendFileSync } from "node:fs";
|
|
2368
2369
|
|
|
2369
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2370
|
+
// 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/standards/log.js
|
|
2370
2371
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2371
2372
|
var logRecordSchema = strictObject({
|
|
2372
2373
|
time: isoTime,
|
|
@@ -2444,7 +2445,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2444
2445
|
return traceId;
|
|
2445
2446
|
}, "traceIdOf");
|
|
2446
2447
|
|
|
2447
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2448
|
+
// 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/logging.js
|
|
2448
2449
|
var REDACTED_FIELDS = [
|
|
2449
2450
|
"authorization",
|
|
2450
2451
|
"Authorization",
|
|
@@ -2538,7 +2539,7 @@ var silent = {
|
|
|
2538
2539
|
}, "error")
|
|
2539
2540
|
};
|
|
2540
2541
|
|
|
2541
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2542
|
+
// 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/output-buffer.js
|
|
2542
2543
|
var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1024, fields, format } = {}) => {
|
|
2543
2544
|
if (!Number.isSafeInteger(maxOutputBytes) || maxOutputBytes < 0)
|
|
2544
2545
|
throw new CliError("validation_error", "maxOutputBytes must be a nonnegative whole byte count");
|
|
@@ -2599,7 +2600,7 @@ var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1
|
|
|
2599
2600
|
};
|
|
2600
2601
|
}, "createOutputBuffer");
|
|
2601
2602
|
|
|
2602
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2603
|
+
// 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/retry.js
|
|
2603
2604
|
var DEFAULT_RETRY = {
|
|
2604
2605
|
retries: 1,
|
|
2605
2606
|
baseDelayMs: 250,
|
|
@@ -2611,7 +2612,62 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2611
2612
|
return Math.round(random() * ceiling);
|
|
2612
2613
|
}, "backoffMs");
|
|
2613
2614
|
|
|
2614
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2615
|
+
// 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/constants.js
|
|
2616
|
+
import { fileURLToPath } from "node:url";
|
|
2617
|
+
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2618
|
+
var baseConstantsSchema = object({});
|
|
2619
|
+
var LayerSchema = record(string(), unknown());
|
|
2620
|
+
var isPlainObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isPlainObject");
|
|
2621
|
+
var merge = /* @__PURE__ */ __name((into, from, file, setBy, prefix = "") => {
|
|
2622
|
+
const out = { ...into };
|
|
2623
|
+
for (const [key, value] of Object.entries(from)) {
|
|
2624
|
+
const path = prefix ? `${prefix}.${key}` : key;
|
|
2625
|
+
const current = out[key];
|
|
2626
|
+
if (isPlainObject(current) && isPlainObject(value)) {
|
|
2627
|
+
out[key] = merge(current, value, file, setBy, path);
|
|
2628
|
+
} else {
|
|
2629
|
+
out[key] = value;
|
|
2630
|
+
setBy.set(path, file);
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
return out;
|
|
2634
|
+
}, "merge");
|
|
2635
|
+
var deepFreeze = /* @__PURE__ */ __name((value) => {
|
|
2636
|
+
if (typeof value === "object" && value !== null && !Object.isFrozen(value)) {
|
|
2637
|
+
for (const child of Object.values(value))
|
|
2638
|
+
deepFreeze(child);
|
|
2639
|
+
Object.freeze(value);
|
|
2640
|
+
}
|
|
2641
|
+
return value;
|
|
2642
|
+
}, "deepFreeze");
|
|
2643
|
+
var fileOf = /* @__PURE__ */ __name((path, setBy, files) => {
|
|
2644
|
+
for (let at = path.split("."); at.length > 0; at = at.slice(0, -1)) {
|
|
2645
|
+
const file = setBy.get(at.join("."));
|
|
2646
|
+
if (file)
|
|
2647
|
+
return `set in ${file}`;
|
|
2648
|
+
}
|
|
2649
|
+
return `not set in ${files.join(", ")}`;
|
|
2650
|
+
}, "fileOf");
|
|
2651
|
+
var loadConstants = /* @__PURE__ */ __name((layers, schema) => {
|
|
2652
|
+
const files = layers.map((layer) => fileURLToPath(layer));
|
|
2653
|
+
const setBy = /* @__PURE__ */ new Map();
|
|
2654
|
+
let merged = {};
|
|
2655
|
+
for (const file of files) {
|
|
2656
|
+
merged = merge(merged, loadConfigFile(file, LayerSchema, () => ({})), file, setBy);
|
|
2657
|
+
}
|
|
2658
|
+
const result = safeParse(schema, merged);
|
|
2659
|
+
if (!result.success) {
|
|
2660
|
+
const problems = result.issues.map((issue) => {
|
|
2661
|
+
const path = getDotPath(issue) ?? "(root)";
|
|
2662
|
+
return `${path}: ${issue.message} (${fileOf(path, setBy, files)})`;
|
|
2663
|
+
});
|
|
2664
|
+
throw new Error(`the packaged constants are not valid:
|
|
2665
|
+
${problems.join("\n ")}`);
|
|
2666
|
+
}
|
|
2667
|
+
return deepFreeze(result.output);
|
|
2668
|
+
}, "loadConstants");
|
|
2669
|
+
|
|
2670
|
+
// 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/time.js
|
|
2615
2671
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2616
2672
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2617
2673
|
if (signal?.aborted) {
|
|
@@ -2625,7 +2681,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2625
2681
|
}, { once: true });
|
|
2626
2682
|
}), "realSleep");
|
|
2627
2683
|
|
|
2628
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2684
|
+
// 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/deadline.js
|
|
2629
2685
|
var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSleep } = {}) => {
|
|
2630
2686
|
if (timeoutMs !== void 0 && (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0 || timeoutMs > 2147483647))
|
|
2631
2687
|
throw new CliError("validation_error", "timeoutMs must be an integer from zero through 2147483647");
|
|
@@ -2709,7 +2765,7 @@ var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSl
|
|
|
2709
2765
|
};
|
|
2710
2766
|
}, "createDeadline");
|
|
2711
2767
|
|
|
2712
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2768
|
+
// 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/pretty.js
|
|
2713
2769
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2714
2770
|
import { styleText } from "node:util";
|
|
2715
2771
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2719,7 +2775,7 @@ var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
|
2719
2775
|
return paint2.dim("(nothing)");
|
|
2720
2776
|
return isRowLike(value) ? renderTable(value, paint2) : renderJson(value);
|
|
2721
2777
|
}
|
|
2722
|
-
if (
|
|
2778
|
+
if (isPlainObject2(value)) {
|
|
2723
2779
|
const listKey = Object.keys(value).find((key) => Array.isArray(value[key]) && isRowLike(value[key]));
|
|
2724
2780
|
if (listKey) {
|
|
2725
2781
|
const rest = Object.fromEntries(Object.entries(value).filter(([key]) => key !== listKey));
|
|
@@ -2739,8 +2795,8 @@ var palette = /* @__PURE__ */ __name((color) => ({
|
|
|
2739
2795
|
bold: paint("bold", color),
|
|
2740
2796
|
label: paint("cyan", color)
|
|
2741
2797
|
}), "palette");
|
|
2742
|
-
var
|
|
2743
|
-
var isRowLike = /* @__PURE__ */ __name((value) => value.length > 0 && value.every((item) =>
|
|
2798
|
+
var isPlainObject2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isPlainObject");
|
|
2799
|
+
var isRowLike = /* @__PURE__ */ __name((value) => value.length > 0 && value.every((item) => isPlainObject2(item)) && value.length <= 500, "isRowLike");
|
|
2744
2800
|
var renderTable = /* @__PURE__ */ __name((rows, paint2) => {
|
|
2745
2801
|
const columns = [...new Set(rows.flatMap((row) => Object.keys(row)))];
|
|
2746
2802
|
const table = new import_cli_table3.default({
|
|
@@ -2784,7 +2840,7 @@ var BORDERLESS = {
|
|
|
2784
2840
|
middle: ""
|
|
2785
2841
|
};
|
|
2786
2842
|
|
|
2787
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2843
|
+
// 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/drain.js
|
|
2788
2844
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2789
2845
|
if (signal?.aborted)
|
|
2790
2846
|
return Promise.reject(signal.reason);
|
|
@@ -2812,7 +2868,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2812
2868
|
});
|
|
2813
2869
|
}, "waitForDrain");
|
|
2814
2870
|
|
|
2815
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2871
|
+
// 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/streams.js
|
|
2816
2872
|
var processStreams = {
|
|
2817
2873
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2818
2874
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2841,7 +2897,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2841
2897
|
};
|
|
2842
2898
|
}, "captureStreams");
|
|
2843
2899
|
|
|
2844
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2900
|
+
// 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/renderer.js
|
|
2845
2901
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2846
2902
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2847
2903
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -2888,6 +2944,9 @@ export {
|
|
|
2888
2944
|
writeSecurely,
|
|
2889
2945
|
loadConfigFile,
|
|
2890
2946
|
saveConfigFile,
|
|
2947
|
+
BASE_CONSTANTS,
|
|
2948
|
+
baseConstantsSchema,
|
|
2949
|
+
loadConstants,
|
|
2891
2950
|
systemKeyring,
|
|
2892
2951
|
resolvePaths,
|
|
2893
2952
|
pathsAreOverridden,
|