@wirecat/drive-cli 0.49.0 → 0.51.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/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-WK2XXGPU.js → all-profiles-H3APJWSO.js} +8 -8
- package/dist/bundle/{anthropic-R354D7GT.js → anthropic-P7DXFYFE.js} +5 -5
- package/dist/bundle/{app-server-3YHJ757G.js → app-server-IQUR7ZC2.js} +52 -52
- package/dist/bundle/{bun-JVDJVDHL.js → bun-LZUEW2ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-KZCZWSRZ.js → bun-sqlite-6LUE7UA6.js} +4 -4
- package/dist/bundle/{chunk-NFU3OBCC.js → chunk-2TPENYCK.js} +4 -4
- package/dist/bundle/{chunk-SSD2V4HR.js → chunk-35IHF562.js} +280 -259
- package/dist/bundle/{chunk-U77RLMOK.js → chunk-3KTDFSSK.js} +2 -2
- package/dist/bundle/{chunk-463NMG57.js → chunk-4GFAOETW.js} +3 -3
- package/dist/bundle/{chunk-EOZPMJJP.js → chunk-4YG2FZ53.js} +7 -7
- package/dist/bundle/{chunk-JMRHDZMV.js → chunk-5C7RKU7O.js} +33 -32
- package/dist/bundle/{chunk-75VCGSNB.js → chunk-6FXFYXTR.js} +15 -15
- package/dist/bundle/{chunk-QEM3MOSB.js → chunk-7LYVWMKD.js} +8 -8
- package/dist/bundle/{chunk-467AQO7E.js → chunk-7ZNM6KXP.js} +7 -7
- package/dist/bundle/{chunk-P7INAZIT.js → chunk-AKW5MNQP.js} +5 -5
- package/dist/bundle/{chunk-HD3TFIT4.js → chunk-AUW45JPI.js} +6 -6
- package/dist/bundle/{chunk-JZ3SUK2M.js → chunk-BMI5VCR4.js} +5 -5
- package/dist/bundle/{chunk-22LTNYO2.js → chunk-BVDAP3FQ.js} +9 -9
- package/dist/bundle/{chunk-CCLDCM7J.js → chunk-CT6Z6Z64.js} +410 -244
- package/dist/bundle/{chunk-ABVFH76X.js → chunk-CX7HQ6KK.js} +5 -5
- package/dist/bundle/{chunk-MC77UZVA.js → chunk-D222O57O.js} +6 -6
- package/dist/bundle/{chunk-HF2T7E67.js → chunk-D3UFQC7K.js} +49 -49
- package/dist/bundle/{chunk-KK3BA4IS.js → chunk-DDD3FS6G.js} +2 -2
- package/dist/bundle/{chunk-254VYUWN.js → chunk-DEVPGI27.js} +17 -17
- package/dist/bundle/{chunk-BJ3JRO34.js → chunk-EY4CUQW2.js} +7 -7
- package/dist/bundle/{chunk-RAAI3JLI.js → chunk-F3PPSIKI.js} +3 -3
- package/dist/bundle/{chunk-6Z3W7LTD.js → chunk-FCZ762RV.js} +8 -8
- package/dist/bundle/{chunk-Y2AUB4TJ.js → chunk-FV5WG4WU.js} +80 -33
- package/dist/bundle/{chunk-R2QRP7EJ.js → chunk-G75FZQAZ.js} +13 -9
- package/dist/bundle/{chunk-2BADVV4A.js → chunk-GK2VUKQY.js} +2 -2
- package/dist/bundle/{chunk-3UHJC6HH.js → chunk-HBRTKJ3J.js} +7 -7
- package/dist/bundle/{chunk-VHT2WI4I.js → chunk-HGWMX7BM.js} +101 -73
- package/dist/bundle/{chunk-XVXXWNAA.js → chunk-HYT3FJVB.js} +4 -4
- package/dist/bundle/{chunk-HIAO4MPA.js → chunk-I7EP3VPJ.js} +1 -1
- package/dist/bundle/{chunk-P4OU3OVF.js → chunk-J2S7QDOP.js} +14 -14
- package/dist/bundle/{chunk-FB7I5JWC.js → chunk-JI5KFKTL.js} +6 -6
- package/dist/bundle/{chunk-IRDGH7DV.js → chunk-K3EK4MTU.js} +3 -3
- package/dist/bundle/{chunk-5KR7BKDV.js → chunk-K6JSVXDN.js} +5 -5
- package/dist/bundle/{chunk-5ISHP4TK.js → chunk-LLMHJE5Q.js} +2 -2
- package/dist/bundle/{chunk-7BA3HL7N.js → chunk-LZKPT7GY.js} +35 -35
- package/dist/bundle/{chunk-CB5NGX6E.js → chunk-MPTD5P53.js} +2 -2
- package/dist/bundle/{chunk-MP2UCK3Z.js → chunk-N33EOINW.js} +4 -4
- package/dist/bundle/{chunk-KYJYOZYG.js → chunk-NO34DAIB.js} +6 -6
- package/dist/bundle/{chunk-PPXNEHYX.js → chunk-NRWDEBJB.js} +8 -8
- package/dist/bundle/{chunk-FZQSGLHU.js → chunk-NVHPYKYC.js} +11 -11
- package/dist/bundle/{chunk-2ZFR67KY.js → chunk-OASIFIXM.js} +2 -2
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-OKSS7YUN.js} +1 -1
- package/dist/bundle/{chunk-HVM5LS5Z.js → chunk-OQVJQSEH.js} +3 -3
- package/dist/bundle/{chunk-MAXN7COO.js → chunk-P3T2SZW2.js} +1 -1
- package/dist/bundle/{chunk-A3FU4RR6.js → chunk-PNUS224S.js} +4 -4
- package/dist/bundle/{chunk-FUJZ5S2Q.js → chunk-POFLDSTX.js} +10 -10
- package/dist/bundle/{chunk-R235IRSJ.js → chunk-PQGIV36R.js} +2 -2
- package/dist/bundle/{chunk-ZK7Y5K63.js → chunk-PRBPVOW4.js} +1 -1
- package/dist/bundle/{chunk-ITZI7T2X.js → chunk-PT6XDCOY.js} +2 -2
- package/dist/bundle/{chunk-2CKGGIWF.js → chunk-Q5CLTK5R.js} +3 -3
- package/dist/bundle/{chunk-NVHB2MHX.js → chunk-SRIPLP7N.js} +4 -4
- package/dist/bundle/{chunk-46X7Z4FD.js → chunk-SRONUWOM.js} +343 -282
- package/dist/bundle/{chunk-E2Y6GJZX.js → chunk-SZWQFR5X.js} +4 -4
- package/dist/bundle/{chunk-IRNX4CO5.js → chunk-TEH76MZK.js} +27 -27
- package/dist/bundle/{chunk-45TPBTR3.js → chunk-TSZJXI4N.js} +21 -21
- package/dist/bundle/{chunk-7WEISHFA.js → chunk-TVJU245P.js} +2 -2
- package/dist/bundle/{chunk-JMOX454R.js → chunk-U3OS6V6S.js} +1 -1
- package/dist/bundle/{chunk-AN7HENGZ.js → chunk-U7DPS46V.js} +108 -96
- package/dist/bundle/{chunk-XLJV3ZOH.js → chunk-UM4E2OFL.js} +1 -1
- package/dist/bundle/{chunk-DKJGYYCP.js → chunk-UMY4IQE2.js} +46 -46
- package/dist/bundle/{chunk-L5RZI2M5.js → chunk-UW7VXKKZ.js} +19 -19
- package/dist/bundle/{chunk-4ORK4UAY.js → chunk-VCPS7Q2W.js} +3 -3
- package/dist/bundle/{chunk-KKZYZ32J.js → chunk-VH4GVA2N.js} +2 -2
- package/dist/bundle/{chunk-IEAZAPC3.js → chunk-WACVI3CS.js} +42 -17
- package/dist/bundle/{chunk-LF7ACSTK.js → chunk-WX2NQO2D.js} +1 -1
- package/dist/bundle/{chunk-HBYE4EP2.js → chunk-WYWXOIGT.js} +1 -1
- package/dist/bundle/{chunk-P4NOTS3U.js → chunk-XBENRRBS.js} +2 -2
- package/dist/bundle/{chunk-W5IDHD6C.js → chunk-XCXUP76D.js} +27 -27
- package/dist/bundle/{chunk-NXFEZQDL.js → chunk-XE2GEE3E.js} +26 -26
- package/dist/bundle/{chunk-BQV3WYXW.js → chunk-XXLTVVMT.js} +31 -21
- package/dist/bundle/{chunk-YYMHFXHK.js → chunk-Y4YBW5S4.js} +2 -2
- package/dist/bundle/{chunk-VAGF723Z.js → chunk-Y73IZWRI.js} +1 -1
- package/dist/bundle/{chunk-624B6G64.js → chunk-YLC4JVQZ.js} +5 -5
- package/dist/bundle/{chunk-2DLAJGRN.js → chunk-YOABRW2M.js} +1 -1
- package/dist/bundle/{chunk-YOF5BC4G.js → chunk-YVQJPLPU.js} +2 -2
- package/dist/bundle/{chunk-EF2RCQ3L.js → chunk-YXHMEFL7.js} +1 -1
- package/dist/bundle/{chunk-W5EUHV3J.js → chunk-Z3GWVRW3.js} +1 -1
- package/dist/bundle/{chunk-65AW2AEQ.js → chunk-Z6KTSXE3.js} +2 -2
- package/dist/bundle/{chunk-HQ2PGEOK.js → chunk-ZKAAFY4C.js} +11 -11
- package/dist/bundle/command-contract-R6CGYG7L.js +38 -0
- package/dist/bundle/{decode-BE3VDYTJ.js → decode-4EENADOV.js} +4 -4
- package/dist/bundle/drive.js +7 -7
- package/dist/bundle/{echarts-4OQHS575.js → echarts-ZFC37XW7.js} +2 -2
- package/dist/bundle/{embed-QR76SJDI.js → embed-UZMNP26C.js} +5 -5
- package/dist/bundle/{embedder-EMIDKBYV.js → embedder-7VDWDBKF.js} +8 -8
- package/dist/bundle/{entry-FE4REJDO.js → entry-JJKCHVIK.js} +6 -6
- package/dist/bundle/failure-VBQBKCD5.js +37 -0
- package/dist/bundle/{first-run-ALPI62PX.js → first-run-FJTEUJBF.js} +9 -9
- package/dist/bundle/first-screen-NSPQWNMQ.js +36 -0
- package/dist/bundle/{google-NV75VSCD.js → google-JBJASYKY.js} +9 -9
- package/dist/bundle/google-api-2FKF4UUN.js +82 -0
- package/dist/bundle/{identity-NZ7SP6OL.js → identity-XE73ALJH.js} +2 -2
- package/dist/bundle/{instructions-3QZBKKPF.js → instructions-Q4ASITKO.js} +1 -1
- package/dist/bundle/{login-KNBM6XUX.js → login-BD2WQT5F.js} +62 -62
- package/dist/bundle/{mcp-XY2FGGUM.js → mcp-G6U2Q63E.js} +76 -76
- package/dist/bundle/mcp-H3XD47NW.js +95 -0
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-ZYZ4DFW2.js} +2 -2
- package/dist/bundle/{node-R2BLYUSB.js → node-CYM7VXFR.js} +2 -2
- package/dist/bundle/{node-sqlite-PMRVP442.js → node-sqlite-RK4MHW57.js} +4 -4
- package/dist/bundle/{oauth-NM2AKRRT.js → oauth-CQXQRHJR.js} +6 -6
- package/dist/bundle/{open-XZH5ZNDA.js → open-WSE4NBD2.js} +3 -3
- package/dist/bundle/{process-IX5YWGDP.js → process-7HHZZZLA.js} +1 -1
- package/dist/bundle/{program-MDWQHGBY.js → program-ZMQYZNV5.js} +95 -88
- package/dist/bundle/{prompt-5K6XGWSK.js → prompt-YSBBQJGF.js} +4 -4
- package/dist/bundle/{reasons-GF2TYGX6.js → reasons-366PI7OV.js} +3 -3
- package/dist/bundle/{recognize-U7GDD6T2.js → recognize-AZKGPCAS.js} +3 -3
- package/dist/bundle/{remote-ZWXOGNQX.js → remote-EYSK3XKD.js} +6 -6
- package/dist/bundle/{rerank-YRQBCS63.js → rerank-LOW6VIDF.js} +6 -6
- package/dist/bundle/{serve-6PQ7K5RK.js → serve-UJ52HGA7.js} +8 -8
- package/dist/bundle/server-CA2VLY25.js +56 -0
- package/dist/bundle/server-TW75RDEP.js +69 -0
- package/dist/bundle/{services-QBIQX236.js → services-B4QUSCFN.js} +28 -28
- package/dist/bundle/{sqlite-runtime-7Q5UD2VR.js → sqlite-runtime-GEURBVK5.js} +4 -4
- package/dist/bundle/{state-U72TC26L.js → state-OJNSKOXO.js} +5 -5
- package/dist/bundle/{store-B4RAJ63G.js → store-62SBP45X.js} +14 -14
- package/dist/bundle/{store-FYABCSIH.js → store-FTS2HVVB.js} +16 -16
- package/dist/bundle/store-maintenance-command-FQMB3R4E.js +57 -0
- package/dist/bundle/tokens-JALZUGEM.js +103 -0
- package/dist/commands/search.js +1 -1
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +10 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/contract-overrides.js +1 -1
- package/dist/contract-overrides.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +2 -2
- package/dist/tokens.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/command-contract-AEA45IX7.js +0 -38
- package/dist/bundle/failure-GYOTW6NN.js +0 -37
- package/dist/bundle/first-screen-JLS57PIT.js +0 -36
- package/dist/bundle/google-api-6623OUF2.js +0 -82
- package/dist/bundle/mcp-4NPK6BM3.js +0 -95
- package/dist/bundle/server-O7SS6NAY.js +0 -56
- package/dist/bundle/server-WT57TF6S.js +0 -69
- package/dist/bundle/store-maintenance-command-DAF5NI3T.js +0 -57
- package/dist/bundle/tokens-DISQJKDM.js +0 -103
- /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-2WNDZFGG.js} +0 -0
- /package/dist/bundle/{chunk-YLBNPI7H.js → chunk-UO5O3665.js} +0 -0
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
safeParse,
|
|
15
15
|
stepOf,
|
|
16
16
|
writes
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EY4CUQW2.js";
|
|
18
18
|
import {
|
|
19
19
|
__commonJS,
|
|
20
20
|
__name,
|
|
@@ -1887,7 +1887,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1887
1887
|
}
|
|
1888
1888
|
});
|
|
1889
1889
|
|
|
1890
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
1890
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
1891
1891
|
var CONTROL = (
|
|
1892
1892
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
1893
1893
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -1911,7 +1911,7 @@ var visibleControls = /* @__PURE__ */ __name((text) => {
|
|
|
1911
1911
|
}, "visibleControls");
|
|
1912
1912
|
var singleLine = /* @__PURE__ */ __name((text) => visibleControls(text).replace(LINE_BREAKS, escaped), "singleLine");
|
|
1913
1913
|
|
|
1914
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
1914
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
1915
1915
|
var EXIT_CODES = {
|
|
1916
1916
|
validation_error: 2,
|
|
1917
1917
|
configuration_error: 3,
|
|
@@ -1931,7 +1931,7 @@ var EXIT_CODES = {
|
|
|
1931
1931
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
1932
1932
|
var GENERIC_FAILURE = 1;
|
|
1933
1933
|
|
|
1934
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
1934
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
1935
1935
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
1936
1936
|
if (isCliError(failure))
|
|
1937
1937
|
return failure;
|
|
@@ -2078,7 +2078,7 @@ var catchCrashes = /* @__PURE__ */ __name((options) => {
|
|
|
2078
2078
|
};
|
|
2079
2079
|
}, "catchCrashes");
|
|
2080
2080
|
|
|
2081
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2081
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_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
|
|
2082
2082
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
2083
2083
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
2084
2084
|
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))))
|
|
@@ -2143,7 +2143,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2143
2143
|
return project(value, fields);
|
|
2144
2144
|
}, "projectFields");
|
|
2145
2145
|
|
|
2146
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2146
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2147
2147
|
import { createRequire } from "node:module";
|
|
2148
2148
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2149
2149
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2163,18 +2163,70 @@ var systemKeyring = {
|
|
|
2163
2163
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2164
2164
|
};
|
|
2165
2165
|
|
|
2166
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2166
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
2167
|
+
import { homedir, userInfo } from "node:os";
|
|
2168
|
+
import { join, posix, win32 } from "node:path";
|
|
2169
|
+
var PATH_KINDS = ["config", "state", "cache"];
|
|
2170
|
+
var OVERRIDES = { config: "CONFIG_DIR", state: "STATE_DIR", cache: "CACHE_DIR" };
|
|
2171
|
+
var overrideName = /* @__PURE__ */ __name((appName, prefix, kind) => `${prefix ?? appName.toUpperCase().replace(/[^A-Z0-9]/g, "_")}_${OVERRIDES[kind]}`, "overrideName");
|
|
2172
|
+
var defaultPaths = /* @__PURE__ */ __name(({ appName, env = process.env, platform = process.platform }) => {
|
|
2173
|
+
if (platform === "win32") {
|
|
2174
|
+
const home2 = env.USERPROFILE || homedir();
|
|
2175
|
+
const roaming = env.APPDATA || win32.join(home2, "AppData", "Roaming");
|
|
2176
|
+
const local = env.LOCALAPPDATA || win32.join(home2, "AppData", "Local");
|
|
2177
|
+
return {
|
|
2178
|
+
config: win32.join(roaming, appName, "Config"),
|
|
2179
|
+
state: win32.join(local, appName, "Data"),
|
|
2180
|
+
cache: win32.join(local, appName, "Cache")
|
|
2181
|
+
};
|
|
2182
|
+
}
|
|
2183
|
+
const home = env.HOME || homedir();
|
|
2184
|
+
return {
|
|
2185
|
+
config: posix.join(env.XDG_CONFIG_HOME || posix.join(home, ".config"), appName),
|
|
2186
|
+
state: posix.join(env.XDG_DATA_HOME || posix.join(home, ".local", "share"), appName),
|
|
2187
|
+
cache: posix.join(env.XDG_CACHE_HOME || posix.join(home, ".cache"), appName)
|
|
2188
|
+
};
|
|
2189
|
+
}, "defaultPaths");
|
|
2190
|
+
var resolvePaths = /* @__PURE__ */ __name((options) => {
|
|
2191
|
+
const { appName, prefix, env = process.env } = options;
|
|
2192
|
+
const base = defaultPaths(options);
|
|
2193
|
+
return {
|
|
2194
|
+
config: env[overrideName(appName, prefix, "config")] ?? base.config,
|
|
2195
|
+
state: env[overrideName(appName, prefix, "state")] ?? base.state,
|
|
2196
|
+
cache: env[overrideName(appName, prefix, "cache")] ?? base.cache
|
|
2197
|
+
};
|
|
2198
|
+
}, "resolvePaths");
|
|
2199
|
+
var pathsAreOverridden = /* @__PURE__ */ __name(({ appName, prefix, env = process.env }) => PATH_KINDS.some((kind) => env[overrideName(appName, prefix, kind)] !== void 0), "pathsAreOverridden");
|
|
2200
|
+
var accountHome = /* @__PURE__ */ __name(() => {
|
|
2201
|
+
try {
|
|
2202
|
+
return userInfo().homedir;
|
|
2203
|
+
} catch {
|
|
2204
|
+
return void 0;
|
|
2205
|
+
}
|
|
2206
|
+
}, "accountHome");
|
|
2207
|
+
var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = process.platform, home = accountHome() } = {}) => {
|
|
2208
|
+
if (home === void 0)
|
|
2209
|
+
return true;
|
|
2210
|
+
const appName = "app";
|
|
2211
|
+
const actual = defaultPaths({ appName, env, platform });
|
|
2212
|
+
const owners = defaultPaths({ appName, env: { HOME: home, USERPROFILE: home }, platform });
|
|
2213
|
+
return PATH_KINDS.some((kind) => actual[kind] !== owners[kind]);
|
|
2214
|
+
}, "homeIsMoved");
|
|
2215
|
+
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
2216
|
+
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
2217
|
+
|
|
2218
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2167
2219
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2168
|
-
import { join as
|
|
2220
|
+
import { join as join3, resolve } from "node:path";
|
|
2169
2221
|
|
|
2170
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2222
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2171
2223
|
import { randomBytes } from "node:crypto";
|
|
2172
2224
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2173
|
-
import { dirname, join } from "node:path";
|
|
2225
|
+
import { dirname, join as join2 } from "node:path";
|
|
2174
2226
|
var writeSecurely = /* @__PURE__ */ __name((path, contents, mode) => {
|
|
2175
2227
|
const dir = dirname(path);
|
|
2176
2228
|
mkdirSync(dir, { recursive: true, mode: 448 });
|
|
2177
|
-
const temp =
|
|
2229
|
+
const temp = join2(dir, `.${randomBytes(8).toString("hex")}.tmp`);
|
|
2178
2230
|
try {
|
|
2179
2231
|
writeFileSync(temp, contents, { mode, flag: "wx" });
|
|
2180
2232
|
renameSync(temp, path);
|
|
@@ -2211,8 +2263,9 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2211
2263
|
`, 384);
|
|
2212
2264
|
}, "saveConfigFile");
|
|
2213
2265
|
|
|
2214
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2215
|
-
var keyringService = /* @__PURE__ */ __name((service,
|
|
2266
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2267
|
+
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2268
|
+
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2216
2269
|
var Credentials = class {
|
|
2217
2270
|
static {
|
|
2218
2271
|
__name(this, "Credentials");
|
|
@@ -2225,6 +2278,8 @@ var Credentials = class {
|
|
|
2225
2278
|
#envVar;
|
|
2226
2279
|
#fileName;
|
|
2227
2280
|
#warn;
|
|
2281
|
+
/** Set only for a moved run with the system keyring. */
|
|
2282
|
+
#temporaryService;
|
|
2228
2283
|
#warned = false;
|
|
2229
2284
|
constructor(options) {
|
|
2230
2285
|
this.#configDir = options.configDir;
|
|
@@ -2235,24 +2290,27 @@ var Credentials = class {
|
|
|
2235
2290
|
this.#fileName = options.fileName ?? "credentials.json";
|
|
2236
2291
|
this.#warn = options.warn ?? ((message) => process.stderr.write(`${message}
|
|
2237
2292
|
`));
|
|
2238
|
-
this.#service =
|
|
2293
|
+
this.#service = options.service;
|
|
2294
|
+
const moved = this.#keyring === systemKeyring && (options.isolated === true || homeIsMoved({ env: this.#env }));
|
|
2295
|
+
this.#temporaryService = moved ? movedRunService(options.service, options.configDir) : void 0;
|
|
2239
2296
|
}
|
|
2240
2297
|
read(account) {
|
|
2241
2298
|
const fromEnv = this.#envVar ? this.#env[this.#envVar]?.trim() : void 0;
|
|
2242
2299
|
if (fromEnv)
|
|
2243
2300
|
return { secret: fromEnv, source: "environment" };
|
|
2244
2301
|
if (this.#storage !== "file") {
|
|
2245
|
-
const
|
|
2302
|
+
const temporary = this.#temporaryService;
|
|
2303
|
+
const fromKeyring = this.#tryKeyring(() => temporary && this.#keyring.get(temporary, account) || this.#keyring.get(this.#service, account));
|
|
2246
2304
|
if (fromKeyring)
|
|
2247
2305
|
return { secret: fromKeyring, source: "keyring" };
|
|
2248
2306
|
}
|
|
2249
|
-
const
|
|
2250
|
-
return
|
|
2307
|
+
const secret = this.#readFile()?.[account]?.secret;
|
|
2308
|
+
return secret ? { secret, source: "file" } : void 0;
|
|
2251
2309
|
}
|
|
2252
2310
|
write(account, secret) {
|
|
2253
2311
|
if (this.#storage !== "file") {
|
|
2254
2312
|
const stored = this.#tryKeyring(() => {
|
|
2255
|
-
this.#keyring.set(this.#service, account, secret);
|
|
2313
|
+
this.#keyring.set(this.#temporaryService ?? this.#service, account, secret);
|
|
2256
2314
|
return true;
|
|
2257
2315
|
});
|
|
2258
2316
|
if (stored)
|
|
@@ -2268,8 +2326,13 @@ var Credentials = class {
|
|
|
2268
2326
|
}
|
|
2269
2327
|
remove(account) {
|
|
2270
2328
|
const removed = [];
|
|
2271
|
-
if (this.#storage !== "file"
|
|
2272
|
-
|
|
2329
|
+
if (this.#storage !== "file") {
|
|
2330
|
+
if (this.#tryKeyring(() => this.#keyring.delete(this.#temporaryService ?? this.#service, account))) {
|
|
2331
|
+
removed.push("keyring");
|
|
2332
|
+
}
|
|
2333
|
+
if (this.#temporaryService) {
|
|
2334
|
+
this.#warn(`kept ${account} in the OS keyring: it is the owner's sign-in, shared with every run, and a run with moved folders never removes it`);
|
|
2335
|
+
}
|
|
2273
2336
|
}
|
|
2274
2337
|
const store = this.#readFile();
|
|
2275
2338
|
if (store?.[account] !== void 0) {
|
|
@@ -2280,7 +2343,7 @@ var Credentials = class {
|
|
|
2280
2343
|
return removed;
|
|
2281
2344
|
}
|
|
2282
2345
|
#path() {
|
|
2283
|
-
return
|
|
2346
|
+
return join3(this.#configDir, this.#fileName);
|
|
2284
2347
|
}
|
|
2285
2348
|
/** `undefined` when the file exists but is not a store: writing would replace what it holds. */
|
|
2286
2349
|
#readFile() {
|
|
@@ -2318,21 +2381,21 @@ var Credentials = class {
|
|
|
2318
2381
|
}
|
|
2319
2382
|
};
|
|
2320
2383
|
|
|
2321
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2384
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2322
2385
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2323
|
-
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((
|
|
2386
|
+
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2324
2387
|
if (signal?.aborted) {
|
|
2325
2388
|
reject(abortError());
|
|
2326
2389
|
return;
|
|
2327
2390
|
}
|
|
2328
|
-
const timer = setTimeout(
|
|
2391
|
+
const timer = setTimeout(resolve2, ms);
|
|
2329
2392
|
signal?.addEventListener("abort", () => {
|
|
2330
2393
|
clearTimeout(timer);
|
|
2331
2394
|
reject(abortError());
|
|
2332
2395
|
}, { once: true });
|
|
2333
2396
|
}), "realSleep");
|
|
2334
2397
|
|
|
2335
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2398
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/deadline.js
|
|
2336
2399
|
var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSleep } = {}) => {
|
|
2337
2400
|
if (timeoutMs !== void 0 && (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0 || timeoutMs > 2147483647))
|
|
2338
2401
|
throw new CliError("validation_error", "timeoutMs must be an integer from zero through 2147483647");
|
|
@@ -2416,7 +2479,7 @@ var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSl
|
|
|
2416
2479
|
};
|
|
2417
2480
|
}, "createDeadline");
|
|
2418
2481
|
|
|
2419
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2482
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_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
|
|
2420
2483
|
var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1024, fields, format } = {}) => {
|
|
2421
2484
|
if (!Number.isSafeInteger(maxOutputBytes) || maxOutputBytes < 0)
|
|
2422
2485
|
throw new CliError("validation_error", "maxOutputBytes must be a nonnegative whole byte count");
|
|
@@ -2477,43 +2540,7 @@ var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1
|
|
|
2477
2540
|
};
|
|
2478
2541
|
}, "createOutputBuffer");
|
|
2479
2542
|
|
|
2480
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2481
|
-
import { homedir } from "node:os";
|
|
2482
|
-
import { join as join3, posix, win32 } from "node:path";
|
|
2483
|
-
var PATH_KINDS = ["config", "state", "cache"];
|
|
2484
|
-
var OVERRIDES = { config: "CONFIG_DIR", state: "STATE_DIR", cache: "CACHE_DIR" };
|
|
2485
|
-
var overrideName = /* @__PURE__ */ __name((appName, prefix, kind) => `${prefix ?? appName.toUpperCase().replace(/[^A-Z0-9]/g, "_")}_${OVERRIDES[kind]}`, "overrideName");
|
|
2486
|
-
var defaultPaths = /* @__PURE__ */ __name(({ appName, env = process.env, platform = process.platform }) => {
|
|
2487
|
-
if (platform === "win32") {
|
|
2488
|
-
const home2 = env.USERPROFILE || homedir();
|
|
2489
|
-
const roaming = env.APPDATA || win32.join(home2, "AppData", "Roaming");
|
|
2490
|
-
const local = env.LOCALAPPDATA || win32.join(home2, "AppData", "Local");
|
|
2491
|
-
return {
|
|
2492
|
-
config: win32.join(roaming, appName, "Config"),
|
|
2493
|
-
state: win32.join(local, appName, "Data"),
|
|
2494
|
-
cache: win32.join(local, appName, "Cache")
|
|
2495
|
-
};
|
|
2496
|
-
}
|
|
2497
|
-
const home = env.HOME || homedir();
|
|
2498
|
-
return {
|
|
2499
|
-
config: posix.join(env.XDG_CONFIG_HOME || posix.join(home, ".config"), appName),
|
|
2500
|
-
state: posix.join(env.XDG_DATA_HOME || posix.join(home, ".local", "share"), appName),
|
|
2501
|
-
cache: posix.join(env.XDG_CACHE_HOME || posix.join(home, ".cache"), appName)
|
|
2502
|
-
};
|
|
2503
|
-
}, "defaultPaths");
|
|
2504
|
-
var resolvePaths = /* @__PURE__ */ __name((options) => {
|
|
2505
|
-
const { appName, prefix, env = process.env } = options;
|
|
2506
|
-
const base = defaultPaths(options);
|
|
2507
|
-
return {
|
|
2508
|
-
config: env[overrideName(appName, prefix, "config")] ?? base.config,
|
|
2509
|
-
state: env[overrideName(appName, prefix, "state")] ?? base.state,
|
|
2510
|
-
cache: env[overrideName(appName, prefix, "cache")] ?? base.cache
|
|
2511
|
-
};
|
|
2512
|
-
}, "resolvePaths");
|
|
2513
|
-
var pathsAreOverridden = /* @__PURE__ */ __name(({ appName, prefix, env = process.env }) => PATH_KINDS.some((kind) => env[overrideName(appName, prefix, kind)] !== void 0), "pathsAreOverridden");
|
|
2514
|
-
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join3(configDir, fileName), "configFilePath");
|
|
2515
|
-
|
|
2516
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
2543
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
2517
2544
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2518
2545
|
if (signal?.aborted)
|
|
2519
2546
|
return Promise.reject(signal.reason);
|
|
@@ -2521,14 +2548,14 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2521
2548
|
return Promise.reject(new Error("output stream closed"));
|
|
2522
2549
|
if (!stream.writableNeedDrain)
|
|
2523
2550
|
return Promise.resolve();
|
|
2524
|
-
return new Promise((
|
|
2551
|
+
return new Promise((resolve2, reject) => {
|
|
2525
2552
|
const cleanup = /* @__PURE__ */ __name(() => {
|
|
2526
2553
|
stream.off("drain", drained).off("error", failed).off("close", closed);
|
|
2527
2554
|
signal?.removeEventListener("abort", aborted);
|
|
2528
2555
|
}, "cleanup");
|
|
2529
2556
|
const drained = /* @__PURE__ */ __name(() => {
|
|
2530
2557
|
cleanup();
|
|
2531
|
-
|
|
2558
|
+
resolve2();
|
|
2532
2559
|
}, "drained");
|
|
2533
2560
|
const failed = /* @__PURE__ */ __name((error) => {
|
|
2534
2561
|
cleanup();
|
|
@@ -2541,7 +2568,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2541
2568
|
});
|
|
2542
2569
|
}, "waitForDrain");
|
|
2543
2570
|
|
|
2544
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2571
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2545
2572
|
var processStreams = {
|
|
2546
2573
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2547
2574
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2570,7 +2597,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2570
2597
|
};
|
|
2571
2598
|
}, "captureStreams");
|
|
2572
2599
|
|
|
2573
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2600
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2574
2601
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2575
2602
|
import { styleText } from "node:util";
|
|
2576
2603
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2644,7 +2671,7 @@ var BORDERLESS = {
|
|
|
2644
2671
|
middle: ""
|
|
2645
2672
|
};
|
|
2646
2673
|
|
|
2647
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2674
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2648
2675
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2649
2676
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2650
2677
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -2681,7 +2708,7 @@ var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processS
|
|
|
2681
2708
|
};
|
|
2682
2709
|
}, "createRenderer");
|
|
2683
2710
|
|
|
2684
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2711
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2685
2712
|
var BATCH_LIMITS = Object.freeze({
|
|
2686
2713
|
requests: 32,
|
|
2687
2714
|
input_bytes: 262144,
|
|
@@ -2808,7 +2835,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2808
2835
|
};
|
|
2809
2836
|
}, "runBatch");
|
|
2810
2837
|
|
|
2811
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
2838
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2812
2839
|
import { appendFileSync } from "node:fs";
|
|
2813
2840
|
var REDACTED_FIELDS = [
|
|
2814
2841
|
"authorization",
|
|
@@ -2925,6 +2952,10 @@ export {
|
|
|
2925
2952
|
loadConfigFile,
|
|
2926
2953
|
saveConfigFile,
|
|
2927
2954
|
systemKeyring,
|
|
2955
|
+
resolvePaths,
|
|
2956
|
+
pathsAreOverridden,
|
|
2957
|
+
isMovedRun,
|
|
2958
|
+
configFilePath,
|
|
2928
2959
|
keyringService,
|
|
2929
2960
|
Credentials,
|
|
2930
2961
|
realSleep,
|
|
@@ -2932,9 +2963,6 @@ export {
|
|
|
2932
2963
|
logRecordOf,
|
|
2933
2964
|
createRecordLog,
|
|
2934
2965
|
createOutputBuffer,
|
|
2935
|
-
resolvePaths,
|
|
2936
|
-
pathsAreOverridden,
|
|
2937
|
-
configFilePath,
|
|
2938
2966
|
processStreams,
|
|
2939
2967
|
captureStreams,
|
|
2940
2968
|
createRenderer
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EY4CUQW2.js";
|
|
6
6
|
import {
|
|
7
7
|
importFrom
|
|
8
8
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -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.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -2,56 +2,56 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
operations
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F3PPSIKI.js";
|
|
6
6
|
import {
|
|
7
7
|
fileId,
|
|
8
8
|
inspectConfig,
|
|
9
9
|
paths,
|
|
10
10
|
profileName,
|
|
11
11
|
refusal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YLC4JVQZ.js";
|
|
13
13
|
import {
|
|
14
14
|
DRIVE_APP
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WX2NQO2D.js";
|
|
16
16
|
import {
|
|
17
17
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-U3OS6V6S.js";
|
|
19
19
|
import {
|
|
20
20
|
RecipientList,
|
|
21
21
|
SendJournal,
|
|
22
22
|
sendGuard
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XCXUP76D.js";
|
|
24
24
|
import {
|
|
25
25
|
newOperationId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CT6Z6Z64.js";
|
|
27
27
|
import {
|
|
28
28
|
profileFree
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5C7RKU7O.js";
|
|
30
30
|
import {
|
|
31
31
|
annotate,
|
|
32
32
|
commandsDocument,
|
|
33
33
|
describeProgram,
|
|
34
34
|
flatten
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BVDAP3FQ.js";
|
|
36
36
|
import {
|
|
37
37
|
guardedWrite
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XXLTVVMT.js";
|
|
39
39
|
import {
|
|
40
40
|
CEILING_KEY,
|
|
41
41
|
LEVELS,
|
|
42
42
|
layerPermissions,
|
|
43
43
|
levelFor
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-Y4YBW5S4.js";
|
|
45
45
|
import {
|
|
46
46
|
setupPermissionCeiling
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-2TPENYCK.js";
|
|
48
48
|
import {
|
|
49
49
|
readOnlyLockOf,
|
|
50
50
|
readOnlyRefusal
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-DDD3FS6G.js";
|
|
52
52
|
import {
|
|
53
53
|
writeSecurely
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-HGWMX7BM.js";
|
|
55
55
|
import {
|
|
56
56
|
CliError,
|
|
57
57
|
array,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
string,
|
|
71
71
|
unknown,
|
|
72
72
|
writes
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-EY4CUQW2.js";
|
|
74
74
|
import {
|
|
75
75
|
__name
|
|
76
76
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,23 +2,23 @@ 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-Z6KTSXE3.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
singleLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HGWMX7BM.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EY4CUQW2.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-G75FZQAZ.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EY4CUQW2.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
14
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
15
|
var QUERY = [
|
|
16
16
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PRBPVOW4.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GK2VUKQY.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -20,15 +20,15 @@ import {
|
|
|
20
20
|
calledTools,
|
|
21
21
|
httpActivityFile,
|
|
22
22
|
httpLock
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SRIPLP7N.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EY4CUQW2.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
32
32
|
import { randomUUID } from "node:crypto";
|
|
33
33
|
var MCP_PATH = "/mcp";
|
|
34
34
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
errorCodes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EY4CUQW2.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
11
11
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
12
12
|
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
13
13
|
|