@wirecat/mail-cli 0.34.0 → 0.36.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/CHANGELOG.md +43 -0
- package/README.md +4 -1
- package/contracts/wirecat.json +52 -2
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-MW7YWUIY.js +39 -0
- package/dist/bundle/{all-profiles-2KUKROHY.js → all-profiles-RS6OV3YO.js} +63 -21
- package/dist/bundle/{anthropic-E5KRCEVC.js → anthropic-PPQ7DTXN.js} +5 -5
- package/dist/bundle/{app-server-HIQ3QO5K.js → app-server-EBFBMFQC.js} +81 -71
- package/dist/bundle/{bun-KARJPE5D.js → bun-J7HAT7MW.js} +2 -2
- package/dist/bundle/{bun-sqlite-NHGX6ZUN.js → bun-sqlite-PCSNAXIQ.js} +6 -6
- package/dist/bundle/{chunk-WYGDALB3.js → chunk-2RV4V55B.js} +18 -18
- package/dist/bundle/{chunk-QXYNDMA6.js → chunk-2UNZ3L2H.js} +6 -6
- package/dist/bundle/{chunk-DYQGEZA2.js → chunk-2VEFNFYZ.js} +3 -3
- package/dist/bundle/chunk-3BYKGMRM.js +338 -0
- package/dist/bundle/{chunk-PRDKEVUL.js → chunk-3NOXZZJV.js} +1 -1
- package/dist/bundle/{chunk-4VM3UCSO.js → chunk-3ZKNXKM7.js} +2 -2
- package/dist/bundle/{chunk-JVGVLRBA.js → chunk-42XY6D5C.js} +5 -5
- package/dist/bundle/{chunk-A2Y2RFNW.js → chunk-437UHSIO.js} +123 -6
- package/dist/bundle/{chunk-FNYWC6A3.js → chunk-4WSTWZUB.js} +3 -3
- package/dist/bundle/{chunk-V43KEZYA.js → chunk-5G4MDFZ2.js} +9 -60
- package/dist/bundle/{chunk-ZZEWQR43.js → chunk-5JEKBYIH.js} +14 -14
- package/dist/bundle/{chunk-CKVWAUBW.js → chunk-5TIWO6AR.js} +12 -12
- package/dist/bundle/{chunk-X6IGETU6.js → chunk-5VPLQS4S.js} +2 -2
- package/dist/bundle/chunk-645FQC4G.js +559 -0
- package/dist/bundle/{chunk-PA4GEJXQ.js → chunk-6FZPFNEU.js} +9 -9
- package/dist/bundle/{chunk-XWU3A7H6.js → chunk-6LJIENVT.js} +2 -2
- package/dist/bundle/{chunk-2GDLJKPT.js → chunk-6NDPOY4N.js} +1 -1
- package/dist/bundle/{chunk-QXLYLVEC.js → chunk-6PKMUKUF.js} +1 -1
- package/dist/bundle/{chunk-TZJC4AOK.js → chunk-6TT62IUW.js} +53 -33
- package/dist/bundle/chunk-6UYIWQLU.js +52 -0
- package/dist/bundle/{chunk-MGXYIVVJ.js → chunk-6VMJLOYO.js} +12 -12
- package/dist/bundle/{chunk-ZGZADWD7.js → chunk-774VG5WZ.js} +1 -1
- package/dist/bundle/chunk-AVR4FPYG.js +192 -0
- package/dist/bundle/{chunk-KF6O4RZO.js → chunk-BBQERXQX.js} +3 -3
- package/dist/bundle/{chunk-LOSYDRJU.js → chunk-C3JSQ7UJ.js} +53 -11
- package/dist/bundle/{chunk-OJ3BI2U4.js → chunk-CJHO6B3M.js} +34 -28
- package/dist/bundle/{chunk-VRGEDK4T.js → chunk-CJMZQ2MZ.js} +35 -12
- package/dist/bundle/{chunk-4SKE5GYA.js → chunk-CMOO4INK.js} +1 -1
- package/dist/bundle/{chunk-DZRP4UCK.js → chunk-DVJPEZGV.js} +30 -15
- package/dist/bundle/{chunk-H77ALM2Y.js → chunk-EGR3YUWD.js} +4 -4
- package/dist/bundle/{chunk-4VHK5UBM.js → chunk-GBZIWCEP.js} +3 -3
- package/dist/bundle/{chunk-2SCQ7Z4I.js → chunk-GCTHVCJU.js} +4 -4
- package/dist/bundle/{chunk-4URI6EAV.js → chunk-GEU3WR75.js} +3 -3
- package/dist/bundle/{chunk-OX5MCGXL.js → chunk-GI6DNX7Q.js} +63 -54
- package/dist/bundle/{chunk-KLI5FKZ2.js → chunk-HH34WRQE.js} +7 -7
- package/dist/bundle/chunk-HPSESLOZ.js +7 -0
- package/dist/bundle/{chunk-6LFRZDPV.js → chunk-IBOWSQ7X.js} +3 -4
- package/dist/bundle/{chunk-XIF75Z7D.js → chunk-JCILSTFK.js} +1 -1
- package/dist/bundle/{chunk-OOYRMTX5.js → chunk-KLPFPNZP.js} +12 -26
- package/dist/bundle/{chunk-6G4VQFVX.js → chunk-KP7JHJVP.js} +17 -17
- package/dist/bundle/chunk-KTVQIKU5.js +726 -0
- package/dist/bundle/{chunk-2VBEBPGX.js → chunk-KVFBSOCV.js} +9 -9
- package/dist/bundle/{chunk-KGYK3OI3.js → chunk-L4QLZDBZ.js} +43 -64
- package/dist/bundle/{chunk-R2GS3GBJ.js → chunk-LQQIYBHN.js} +100 -66
- package/dist/bundle/{chunk-I3MS74OF.js → chunk-MQ6DQRRI.js} +4 -4
- package/dist/bundle/{chunk-FORAOCZ3.js → chunk-MRWV5VNQ.js} +6 -6
- package/dist/bundle/{chunk-NJVJH5MH.js → chunk-MT3LYU4T.js} +3245 -1644
- package/dist/bundle/{chunk-5GANGHQI.js → chunk-NCY55XIT.js} +9 -9
- package/dist/bundle/{chunk-QFJC6POK.js → chunk-NJZR3OFK.js} +1 -1
- package/dist/bundle/chunk-NSH2UHJR.js +353 -0
- package/dist/bundle/chunk-NTUP5RCP.js +116 -0
- package/dist/bundle/chunk-NYR7PIAG.js +80 -0
- package/dist/bundle/{chunk-PC3N3LH3.js → chunk-NYYMMIVW.js} +3 -3
- package/dist/bundle/{chunk-NXERDBEK.js → chunk-OEL4DQTT.js} +4 -4
- package/dist/bundle/{chunk-RPNQXWRS.js → chunk-PF7ZNIVP.js} +2 -2
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-QQGPV3QN.js → chunk-PMGAU6AP.js} +2 -2
- package/dist/bundle/{chunk-PVZMN3UZ.js → chunk-PMSZBUC7.js} +8 -8
- package/dist/bundle/{chunk-HH647UBC.js → chunk-PPIMXOBT.js} +104 -255
- package/dist/bundle/{chunk-YWX5X5RI.js → chunk-Q6TPXXOS.js} +19 -17
- package/dist/bundle/{chunk-Z6A6QPPW.js → chunk-QDNYJOWJ.js} +1 -1
- package/dist/bundle/{chunk-OG5QO5RR.js → chunk-QI2XGTFH.js} +8 -8
- package/dist/bundle/{chunk-T2EE5M7O.js → chunk-REWV37HQ.js} +144 -10
- package/dist/bundle/{chunk-LKTDW5LH.js → chunk-RJUVWJTA.js} +18 -8
- package/dist/bundle/{chunk-MDISZMK4.js → chunk-RMWS7IQ4.js} +4 -4
- package/dist/bundle/{chunk-VBVR6JRC.js → chunk-ROK7Z5LQ.js} +275 -174
- package/dist/bundle/{chunk-HRDCH2VB.js → chunk-SCJVKWMV.js} +3665 -3339
- package/dist/bundle/{chunk-NAENYLIO.js → chunk-SJNFPBPF.js} +2 -2
- package/dist/bundle/{chunk-6GGMFL7J.js → chunk-TV634B6T.js} +2 -100
- package/dist/bundle/{chunk-26DYRMXE.js → chunk-U3BO342P.js} +1 -1
- package/dist/bundle/{chunk-KNVTBDTE.js → chunk-U67XMAEE.js} +3 -3
- package/dist/bundle/chunk-V5I7QP4T.js +108 -0
- package/dist/bundle/{chunk-NI4GCP2T.js → chunk-VIDPFLFM.js} +2 -2
- package/dist/bundle/{chunk-AGZ7SNFF.js → chunk-VIJV474N.js} +1 -1
- package/dist/bundle/{chunk-QOQF2TX3.js → chunk-WNQECDIP.js} +338 -299
- package/dist/bundle/{chunk-SK3N4CK5.js → chunk-WPPPO427.js} +4 -4
- package/dist/bundle/{chunk-EZAX77SM.js → chunk-WZFGZBGD.js} +86 -75
- package/dist/bundle/{chunk-EGQJDEFY.js → chunk-XRVZMM5B.js} +158 -562
- package/dist/bundle/{chunk-NWD7AFOR.js → chunk-YPB5BEAD.js} +2 -2
- package/dist/bundle/{chunk-NHD5BOJU.js → chunk-ZRSLG3B3.js} +6 -6
- package/dist/bundle/{chunk-IMQ4CVZJ.js → chunk-ZV57PIPE.js} +2 -2
- package/dist/bundle/command-contract-WFTIRPL5.js +39 -0
- package/dist/bundle/{command-server-entry-NF45UPEV.js → command-server-entry-73RJELAV.js} +28 -28
- package/dist/bundle/{decode-DUZA3EHC.js → decode-7BUWBDPT.js} +5 -5
- package/dist/bundle/{dispatch-CDJZAMVP.js → dispatch-IBOMVWZA.js} +8 -8
- package/dist/bundle/{dist-RH7EMC4J.js → dist-MULVCVSR.js} +25 -23
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-GZHZBNRA.js → echarts-VLWFC322.js} +2 -2
- package/dist/bundle/{embed-VE3CSJN4.js → embed-W3VH4HPY.js} +6 -6
- package/dist/bundle/{embedder-DSJ77DX5.js → embedder-I7ERQZJV.js} +9 -9
- package/dist/bundle/{failure-YH6HAGFT.js → failure-QMAPSQ7X.js} +2 -2
- package/dist/bundle/{first-run-3L7HLYTI.js → first-run-LCVER6QN.js} +12 -12
- package/dist/bundle/first-screen-DCTHI4NQ.js +39 -0
- package/dist/bundle/{instructions-OZK3BLIO.js → instructions-BNCVLSYQ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-YUG4YR4R.js → mcp-Z2KZNCXB.js} +2 -2
- package/dist/bundle/meeting-combined-ITU7SZ7E.js +24 -0
- package/dist/bundle/{meeting-model-U7LW5WEN.js → meeting-model-BWLSTNXA.js} +11 -11
- package/dist/bundle/{meeting-semantic-64IOIQRR.js → meeting-semantic-ZIEHXN2R.js} +6 -6
- package/dist/bundle/{node-OS3VWBUZ.js → node-RYFTRSG4.js} +2 -2
- package/dist/bundle/{node-sqlite-RQ623VFA.js → node-sqlite-XCHVNTGQ.js} +7 -7
- package/dist/bundle/{oauth-CBPAG734.js → oauth-FNUJSKKJ.js} +8 -8
- package/dist/bundle/{open-H4DGOMBC.js → open-WVWSJ3WI.js} +5 -5
- package/dist/bundle/{openai-EMWRGR54.js → openai-QOUTYYTF.js} +15 -15
- package/dist/bundle/{process-3TOIYASI.js → process-W5KPID53.js} +1 -1
- package/dist/bundle/{program-WA6RGAJL.js → program-L5UANM3I.js} +3397 -2219
- package/dist/bundle/{prompt-22KNCMBI.js → prompt-JSBAPNJE.js} +5 -5
- package/dist/bundle/{recognize-UWD4RSCZ.js → recognize-FDX4SJ6Q.js} +4 -4
- package/dist/bundle/{remote-LJY7MF2E.js → remote-MYOXOQHM.js} +9 -9
- package/dist/bundle/{rerank-JJ6KNJFB.js → rerank-NY5MSZCR.js} +7 -7
- package/dist/bundle/{serve-3EPLJYVZ.js → serve-URI6NZA3.js} +10 -10
- package/dist/bundle/{server-5JOFO4V4.js → server-HQ25RHQM.js} +75 -64
- package/dist/bundle/server-UVYFU2JN.js +84 -0
- package/dist/bundle/{sqlite-runtime-MGJA5E27.js → sqlite-runtime-6UUPSSKG.js} +6 -6
- package/dist/bundle/{state-UCRDOWOP.js → state-NDDVFPCI.js} +6 -6
- package/dist/bundle/{store-265VRRQV.js → store-2RDOICVN.js} +28 -23
- package/dist/bundle/{store-HS272YSA.js → store-PKYWPKKR.js} +34 -21
- package/dist/bundle/store-maintenance-command-Y5XTO47X.js +71 -0
- package/dist/bundle/surface-3XKM3MQ2.js +70 -0
- package/dist/commands/read.d.ts +2 -2
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +5 -4
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/sync.d.ts +2 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +16 -9
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -1
- package/dist/config.js.map +1 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +2 -1
- package/dist/oauth.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-FEBUZHU3.js +0 -2
- package/dist/bundle/command-contract-PZ7VOOXP.js +0 -39
- package/dist/bundle/first-screen-MY5KID77.js +0 -37
- package/dist/bundle/meeting-combined-RYMUPY54.js +0 -24
- package/dist/bundle/server-EOQNS7B7.js +0 -75
- package/dist/bundle/store-maintenance-command-IKZM5NRP.js +0 -66
|
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QDNYJOWJ.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WZFGZBGD.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-C3JSQ7UJ.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
text,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-C3JSQ7UJ.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
visibleControls
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PMGAU6AP.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__name,
|
|
@@ -1896,7 +1896,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
1898
|
|
|
1899
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1899
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1900
1900
|
import { realpathSync } from "node:fs";
|
|
1901
1901
|
import { homedir, userInfo } from "node:os";
|
|
1902
1902
|
import { join, posix, win32 } from "node:path";
|
|
@@ -1970,7 +1970,64 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1970
1970
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
1971
1971
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1972
1972
|
|
|
1973
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1973
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
1974
|
+
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
1975
|
+
if (signal?.aborted)
|
|
1976
|
+
return Promise.reject(signal.reason);
|
|
1977
|
+
if (stream.destroyed)
|
|
1978
|
+
return Promise.reject(new Error("output stream closed"));
|
|
1979
|
+
if (!stream.writableNeedDrain)
|
|
1980
|
+
return Promise.resolve();
|
|
1981
|
+
return new Promise((resolve2, reject) => {
|
|
1982
|
+
const cleanup = /* @__PURE__ */ __name(() => {
|
|
1983
|
+
stream.off("drain", drained).off("error", failed).off("close", closed);
|
|
1984
|
+
signal?.removeEventListener("abort", aborted);
|
|
1985
|
+
}, "cleanup");
|
|
1986
|
+
const drained = /* @__PURE__ */ __name(() => {
|
|
1987
|
+
cleanup();
|
|
1988
|
+
resolve2();
|
|
1989
|
+
}, "drained");
|
|
1990
|
+
const failed = /* @__PURE__ */ __name((error) => {
|
|
1991
|
+
cleanup();
|
|
1992
|
+
reject(error);
|
|
1993
|
+
}, "failed");
|
|
1994
|
+
const closed = /* @__PURE__ */ __name(() => failed(new Error("output stream closed before drain")), "closed");
|
|
1995
|
+
const aborted = /* @__PURE__ */ __name(() => failed(signal?.reason), "aborted");
|
|
1996
|
+
stream.once("drain", drained).once("error", failed).once("close", closed);
|
|
1997
|
+
signal?.addEventListener("abort", aborted, { once: true });
|
|
1998
|
+
});
|
|
1999
|
+
}, "waitForDrain");
|
|
2000
|
+
|
|
2001
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2002
|
+
var processStreams = {
|
|
2003
|
+
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2004
|
+
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
2005
|
+
}, "drain"),
|
|
2006
|
+
data: /* @__PURE__ */ __name((text2) => {
|
|
2007
|
+
process.stdout.write(`${text2}
|
|
2008
|
+
`);
|
|
2009
|
+
}, "data"),
|
|
2010
|
+
diagnostic: /* @__PURE__ */ __name((text2) => {
|
|
2011
|
+
process.stderr.write(`${text2}
|
|
2012
|
+
`);
|
|
2013
|
+
}, "diagnostic"),
|
|
2014
|
+
progress: /* @__PURE__ */ __name((text2) => {
|
|
2015
|
+
process.stderr.write(`\r${text2.padEnd(72)}${text2 === "" ? "\r" : ""}`);
|
|
2016
|
+
}, "progress")
|
|
2017
|
+
};
|
|
2018
|
+
var captureStreams = /* @__PURE__ */ __name(() => {
|
|
2019
|
+
const stdout = [];
|
|
2020
|
+
const stderr = [];
|
|
2021
|
+
return {
|
|
2022
|
+
stdout,
|
|
2023
|
+
stderr,
|
|
2024
|
+
data: /* @__PURE__ */ __name((text2) => stdout.push(text2), "data"),
|
|
2025
|
+
diagnostic: /* @__PURE__ */ __name((text2) => stderr.push(text2), "diagnostic"),
|
|
2026
|
+
progress: /* @__PURE__ */ __name((text2) => stderr.push(text2), "progress")
|
|
2027
|
+
};
|
|
2028
|
+
}, "captureStreams");
|
|
2029
|
+
|
|
2030
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
1974
2031
|
var DEFAULT_RETRY = {
|
|
1975
2032
|
retries: 1,
|
|
1976
2033
|
baseDelayMs: 250,
|
|
@@ -1982,7 +2039,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
1982
2039
|
return Math.round(random() * ceiling);
|
|
1983
2040
|
}, "backoffMs");
|
|
1984
2041
|
|
|
1985
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2042
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_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
|
|
1986
2043
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
1987
2044
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
1988
2045
|
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))))
|
|
@@ -2047,7 +2104,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2047
2104
|
return project(value, fields);
|
|
2048
2105
|
}, "projectFields");
|
|
2049
2106
|
|
|
2050
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2107
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2051
2108
|
var BATCH_LIMITS = Object.freeze({
|
|
2052
2109
|
requests: 32,
|
|
2053
2110
|
input_bytes: 262144,
|
|
@@ -2174,7 +2231,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2174
2231
|
};
|
|
2175
2232
|
}, "runBatch");
|
|
2176
2233
|
|
|
2177
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2234
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2178
2235
|
import { randomBytes } from "node:crypto";
|
|
2179
2236
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2180
2237
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2218,7 +2275,7 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2218
2275
|
`, 384);
|
|
2219
2276
|
}, "saveConfigFile");
|
|
2220
2277
|
|
|
2221
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2278
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2222
2279
|
import { fileURLToPath } from "node:url";
|
|
2223
2280
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2224
2281
|
var baseConstantsSchema = object({});
|
|
@@ -2273,11 +2330,11 @@ var loadConstants = /* @__PURE__ */ __name((layers, schema) => {
|
|
|
2273
2330
|
return deepFreeze(result.output);
|
|
2274
2331
|
}, "loadConstants");
|
|
2275
2332
|
|
|
2276
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2333
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2277
2334
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2278
2335
|
import { join as join3, resolve } from "node:path";
|
|
2279
2336
|
|
|
2280
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2337
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2281
2338
|
import { createRequire } from "node:module";
|
|
2282
2339
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2283
2340
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2303,7 +2360,7 @@ var systemKeyring = {
|
|
|
2303
2360
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2304
2361
|
};
|
|
2305
2362
|
|
|
2306
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2363
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2307
2364
|
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2308
2365
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2309
2366
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
@@ -2343,7 +2400,12 @@ var Credentials = class {
|
|
|
2343
2400
|
return { secret: fromFile, source: "file" };
|
|
2344
2401
|
if (this.#storage !== "file") {
|
|
2345
2402
|
const temporary = this.#temporaryService;
|
|
2346
|
-
|
|
2403
|
+
let fromKeyring;
|
|
2404
|
+
try {
|
|
2405
|
+
fromKeyring = temporary && this.#keyring.get(temporary, account) || this.#keyring.get(this.#service, account);
|
|
2406
|
+
} catch (error) {
|
|
2407
|
+
throw this.#unreachable(account, error);
|
|
2408
|
+
}
|
|
2347
2409
|
if (fromKeyring)
|
|
2348
2410
|
return { secret: fromKeyring, source: "keyring" };
|
|
2349
2411
|
}
|
|
@@ -2424,6 +2486,10 @@ var Credentials = class {
|
|
|
2424
2486
|
writeSecurely(this.#path(), `${JSON.stringify(store, null, 2)}
|
|
2425
2487
|
`, 384);
|
|
2426
2488
|
}
|
|
2489
|
+
#unreachable(account, error) {
|
|
2490
|
+
const where = this.#storage === "keyring" ? "" : `, and ${this.#path()} holds no sign-in for ${account}`;
|
|
2491
|
+
return new CliError("configuration_error", `the OS keyring did not answer (${error instanceof Error ? error.message : String(error)})${where}. On Linux a restarted session bus is a known cause: log out and back in, or set DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus. On a machine with no keyring, sign in with file storage.`, { reason: "keyring.unreachable" });
|
|
2492
|
+
}
|
|
2427
2493
|
#tryKeyring(operation) {
|
|
2428
2494
|
if (this.#storage === "keyring")
|
|
2429
2495
|
return operation();
|
|
@@ -2439,7 +2505,7 @@ var Credentials = class {
|
|
|
2439
2505
|
}
|
|
2440
2506
|
};
|
|
2441
2507
|
|
|
2442
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2508
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2443
2509
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2444
2510
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2445
2511
|
if (signal?.aborted) {
|
|
@@ -2452,11 +2518,12 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2452
2518
|
reject(abortError());
|
|
2453
2519
|
}, { once: true });
|
|
2454
2520
|
}), "realSleep");
|
|
2521
|
+
var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
|
|
2455
2522
|
|
|
2456
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2523
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2457
2524
|
import { appendFileSync } from "node:fs";
|
|
2458
2525
|
|
|
2459
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2526
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_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
|
|
2460
2527
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2461
2528
|
var logRecordSchema = strictObject({
|
|
2462
2529
|
time: isoTime,
|
|
@@ -2534,7 +2601,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2534
2601
|
return traceId;
|
|
2535
2602
|
}, "traceIdOf");
|
|
2536
2603
|
|
|
2537
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2604
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2538
2605
|
var REDACTED_FIELDS = [
|
|
2539
2606
|
"authorization",
|
|
2540
2607
|
"Authorization",
|
|
@@ -2628,7 +2695,7 @@ var silent = {
|
|
|
2628
2695
|
}, "error")
|
|
2629
2696
|
};
|
|
2630
2697
|
|
|
2631
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2698
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2632
2699
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2633
2700
|
import { styleText } from "node:util";
|
|
2634
2701
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2703,64 +2770,7 @@ var BORDERLESS = {
|
|
|
2703
2770
|
middle: ""
|
|
2704
2771
|
};
|
|
2705
2772
|
|
|
2706
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2707
|
-
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2708
|
-
if (signal?.aborted)
|
|
2709
|
-
return Promise.reject(signal.reason);
|
|
2710
|
-
if (stream.destroyed)
|
|
2711
|
-
return Promise.reject(new Error("output stream closed"));
|
|
2712
|
-
if (!stream.writableNeedDrain)
|
|
2713
|
-
return Promise.resolve();
|
|
2714
|
-
return new Promise((resolve2, reject) => {
|
|
2715
|
-
const cleanup = /* @__PURE__ */ __name(() => {
|
|
2716
|
-
stream.off("drain", drained).off("error", failed).off("close", closed);
|
|
2717
|
-
signal?.removeEventListener("abort", aborted);
|
|
2718
|
-
}, "cleanup");
|
|
2719
|
-
const drained = /* @__PURE__ */ __name(() => {
|
|
2720
|
-
cleanup();
|
|
2721
|
-
resolve2();
|
|
2722
|
-
}, "drained");
|
|
2723
|
-
const failed = /* @__PURE__ */ __name((error) => {
|
|
2724
|
-
cleanup();
|
|
2725
|
-
reject(error);
|
|
2726
|
-
}, "failed");
|
|
2727
|
-
const closed = /* @__PURE__ */ __name(() => failed(new Error("output stream closed before drain")), "closed");
|
|
2728
|
-
const aborted = /* @__PURE__ */ __name(() => failed(signal?.reason), "aborted");
|
|
2729
|
-
stream.once("drain", drained).once("error", failed).once("close", closed);
|
|
2730
|
-
signal?.addEventListener("abort", aborted, { once: true });
|
|
2731
|
-
});
|
|
2732
|
-
}, "waitForDrain");
|
|
2733
|
-
|
|
2734
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2735
|
-
var processStreams = {
|
|
2736
|
-
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2737
|
-
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
2738
|
-
}, "drain"),
|
|
2739
|
-
data: /* @__PURE__ */ __name((text2) => {
|
|
2740
|
-
process.stdout.write(`${text2}
|
|
2741
|
-
`);
|
|
2742
|
-
}, "data"),
|
|
2743
|
-
diagnostic: /* @__PURE__ */ __name((text2) => {
|
|
2744
|
-
process.stderr.write(`${text2}
|
|
2745
|
-
`);
|
|
2746
|
-
}, "diagnostic"),
|
|
2747
|
-
progress: /* @__PURE__ */ __name((text2) => {
|
|
2748
|
-
process.stderr.write(`\r${text2.padEnd(72)}${text2 === "" ? "\r" : ""}`);
|
|
2749
|
-
}, "progress")
|
|
2750
|
-
};
|
|
2751
|
-
var captureStreams = /* @__PURE__ */ __name(() => {
|
|
2752
|
-
const stdout = [];
|
|
2753
|
-
const stderr = [];
|
|
2754
|
-
return {
|
|
2755
|
-
stdout,
|
|
2756
|
-
stderr,
|
|
2757
|
-
data: /* @__PURE__ */ __name((text2) => stdout.push(text2), "data"),
|
|
2758
|
-
diagnostic: /* @__PURE__ */ __name((text2) => stderr.push(text2), "diagnostic"),
|
|
2759
|
-
progress: /* @__PURE__ */ __name((text2) => stderr.push(text2), "progress")
|
|
2760
|
-
};
|
|
2761
|
-
}, "captureStreams");
|
|
2762
|
-
|
|
2763
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2773
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2764
2774
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2765
2775
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2766
2776
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -2818,6 +2828,7 @@ export {
|
|
|
2818
2828
|
keyringService,
|
|
2819
2829
|
Credentials,
|
|
2820
2830
|
realSleep,
|
|
2831
|
+
wallClock,
|
|
2821
2832
|
defineLogEvents,
|
|
2822
2833
|
isContentKey,
|
|
2823
2834
|
traceIdOf,
|