@wirecat/mail-cli 0.12.0 → 0.14.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 +38 -0
- package/README.md +4 -0
- package/dist/bin/mail.js +6 -2
- package/dist/bundle/{all-profiles-OJPRIFKU.js → all-profiles-O7HQNZOF.js} +10 -9
- package/dist/bundle/{anthropic-3AXHD4WH.js → anthropic-SNA6PTVO.js} +6 -6
- package/dist/bundle/{app-server-V4KHCUGE.js → app-server-LBKMJMKN.js} +48 -45
- package/dist/bundle/{bun-ISYNUTQJ.js → bun-KF5QK2YN.js} +2 -2
- package/dist/bundle/{bun-sqlite-FH3D4AXL.js → bun-sqlite-2DKMM2PT.js} +5 -5
- package/dist/bundle/{chunk-YDUES6ET.js → chunk-2A4BAMNF.js} +4 -4
- package/dist/bundle/{chunk-XTIQFMZH.js → chunk-2F7D6YMB.js} +4 -4
- package/dist/bundle/{chunk-SW5NVASW.js → chunk-2KVR7FF3.js} +12 -89
- package/dist/bundle/{chunk-JAWJZTFL.js → chunk-3EAAEF5U.js} +18 -18
- package/dist/bundle/{chunk-TTKNBUMT.js → chunk-3YGYB3LJ.js} +43 -6
- package/dist/bundle/{chunk-GYNHU56E.js → chunk-5C74F7XX.js} +4 -4
- package/dist/bundle/{chunk-5TACUBRJ.js → chunk-6CZQJ5XR.js} +8 -8
- package/dist/bundle/{chunk-OHC4GVWV.js → chunk-6EZ7XGRG.js} +2 -2
- package/dist/bundle/{chunk-6UT3MXOB.js → chunk-7GSE57K3.js} +3 -3
- package/dist/bundle/{chunk-AJ4JS2ZR.js → chunk-7LDC275M.js} +8 -7
- package/dist/bundle/{chunk-QPQSMJBW.js → chunk-AOVOIXGR.js} +10 -10
- package/dist/bundle/{chunk-DN54W657.js → chunk-B5XAETYU.js} +4 -4
- package/dist/bundle/chunk-BP3TZ4EY.js +91 -0
- package/dist/bundle/{chunk-4DPICEPQ.js → chunk-CCHHEMPM.js} +2 -2
- package/dist/bundle/chunk-DIP3ENSY.js +34 -0
- package/dist/bundle/{chunk-4GPPRLIG.js → chunk-DPKHVBP3.js} +5 -5
- package/dist/bundle/{chunk-K2F7YMMM.js → chunk-E7BTD4P6.js} +8 -13
- package/dist/bundle/{chunk-VEXXVLBM.js → chunk-ER6PJAPK.js} +3 -3
- package/dist/bundle/{chunk-JIIEJLAX.js → chunk-EW3XTUPB.js} +4 -4
- package/dist/bundle/{chunk-6LNRNQHJ.js → chunk-F5SZVO3A.js} +6 -4
- package/dist/bundle/{chunk-UDJIC6YL.js → chunk-FTGCXIQA.js} +54 -29
- package/dist/bundle/{chunk-V6K2GX2Y.js → chunk-G53HRGTK.js} +17 -17
- package/dist/bundle/{chunk-L3PVAY3M.js → chunk-H2ZURG7Q.js} +2 -2
- package/dist/bundle/{chunk-F3QDSQ7V.js → chunk-H7OQ4YZV.js} +27 -26
- package/dist/bundle/{chunk-S64N24ON.js → chunk-I62OTHDE.js} +3 -3
- package/dist/bundle/{chunk-AO32MFDY.js → chunk-I7EWIIBC.js} +2 -2
- package/dist/bundle/{chunk-JNUKTAMZ.js → chunk-ILHTNOIV.js} +1 -1
- package/dist/bundle/{chunk-GAIVTJ3E.js → chunk-IPKXRW6W.js} +24 -23
- package/dist/bundle/{chunk-NSDOYHIS.js → chunk-IVDUR5Y4.js} +20 -8
- package/dist/bundle/{chunk-KJP2B65C.js → chunk-KBFIKUCA.js} +29 -28
- package/dist/bundle/{chunk-IWHXM2S7.js → chunk-KLLKDOO2.js} +3207 -1149
- package/dist/bundle/{chunk-4D52FA34.js → chunk-KQ5P5NLL.js} +1 -1
- package/dist/bundle/{chunk-PLPSFJO6.js → chunk-M2YIJDBL.js} +6 -6
- package/dist/bundle/{chunk-IG2WXKIT.js → chunk-MQK2UNG4.js} +8 -8
- package/dist/bundle/{chunk-YRZ23RCS.js → chunk-MXG4L7NH.js} +249 -8
- package/dist/bundle/{chunk-LXHLQ6RK.js → chunk-NGZW2JPK.js} +7 -9
- package/dist/bundle/{chunk-GFCNSU3B.js → chunk-NVQUK2DH.js} +176 -47
- package/dist/bundle/{chunk-6QNPJSRM.js → chunk-OGK7LMYT.js} +6 -6
- package/dist/bundle/{chunk-N6P55LDU.js → chunk-P547HU26.js} +10 -10
- package/dist/bundle/{chunk-NBQQ2ZTF.js → chunk-P62Z3Q35.js} +14 -14
- package/dist/bundle/{chunk-TZGQPTZ2.js → chunk-PQLBPYJR.js} +1 -1
- package/dist/bundle/{chunk-BYQ3Z6UL.js → chunk-Q5EYTU3Q.js} +3 -3
- package/dist/bundle/{chunk-PSXAC6OO.js → chunk-QWRBAQZ7.js} +1 -1
- package/dist/bundle/{chunk-QB54TE52.js → chunk-QZXHMQCM.js} +1 -1
- package/dist/bundle/{chunk-FYMQPAE5.js → chunk-RE5SEGSR.js} +4 -4
- package/dist/bundle/{chunk-KVN4RY7E.js → chunk-UHHARH5X.js} +421 -205
- package/dist/bundle/{chunk-44LVUMS2.js → chunk-UJEO3VWA.js} +1 -1
- package/dist/bundle/{chunk-IXYKM7OJ.js → chunk-UMWR5PKA.js} +13 -13
- package/dist/bundle/{chunk-WL7CYT7O.js → chunk-V5ZID7KC.js} +1 -1
- package/dist/bundle/{chunk-2TTCKOQ7.js → chunk-VA3JKERH.js} +2 -2
- package/dist/bundle/{chunk-G2WDY5XB.js → chunk-VERSKGJV.js} +2 -2
- package/dist/bundle/{chunk-GUFWLTOW.js → chunk-W643XZIR.js} +2 -2
- package/dist/bundle/{chunk-X37KLD23.js → chunk-WBJQEB6E.js} +12 -12
- package/dist/bundle/{chunk-SYBMOE6F.js → chunk-WVWNKZI4.js} +6195 -5014
- package/dist/bundle/chunk-X5XIFNTI.js +35 -0
- package/dist/bundle/{chunk-LIQ5LICB.js → chunk-XPREXN3W.js} +3 -3
- package/dist/bundle/{chunk-35Y3INBK.js → chunk-XRJIQC6P.js} +2 -2
- package/dist/bundle/{chunk-T3AGR4TI.js → chunk-YG4OI3HJ.js} +966 -204
- package/dist/bundle/{chunk-HVVLSCFB.js → chunk-ZCPUKUST.js} +1 -1
- package/dist/bundle/command-contract-B3OGAIDB.js +34 -0
- package/dist/bundle/{decode-FM4C2WWG.js → decode-X7Y2VSYZ.js} +5 -5
- package/dist/bundle/{dispatch-K3HG4RYT.js → dispatch-OWNO2CMC.js} +8 -8
- package/dist/bundle/{dist-7LNVI7VB.js → dist-L7FNC74Q.js} +42 -13
- package/dist/bundle/{echarts-5C2A72XM.js → echarts-5AB3LFVD.js} +2 -2
- package/dist/bundle/{embed-N56P6YVY.js → embed-VBS5LRCE.js} +6 -6
- package/dist/bundle/{embedder-QLYKFLOL.js → embedder-VFSYBDKK.js} +9 -9
- package/dist/bundle/{failure-5ZLVZTRU.js → failure-E534GZDF.js} +2 -2
- package/dist/bundle/{first-run-VMF4PJ7Q.js → first-run-NO2ODH2W.js} +11 -11
- package/dist/bundle/first-screen-7VJLGMJJ.js +32 -0
- package/dist/bundle/{instructions-QA5FHDOJ.js → instructions-52W6ZQTU.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-LO2XDBBC.js → mcp-MNI62HHE.js} +2 -2
- package/dist/bundle/{node-OXJZWUYZ.js → node-TL2PBNKO.js} +2 -2
- package/dist/bundle/{node-sqlite-7GCEI67B.js → node-sqlite-757HNQAD.js} +11 -5
- package/dist/bundle/{oauth-VTPIYBTP.js → oauth-VDRNJ7KN.js} +7 -7
- package/dist/bundle/{open-7XX3YF2X.js → open-NUWYOKPO.js} +5 -4
- package/dist/bundle/{openai-D3KRCXSY.js → openai-YLBFVK5X.js} +14 -14
- package/dist/bundle/{process-KFI7SXQD.js → process-PWAGP6YY.js} +1 -1
- package/dist/bundle/{program-4B25STRN.js → program-PPUPVL7O.js} +2253 -885
- package/dist/bundle/{prompt-TBZT3APW.js → prompt-M5U66RVJ.js} +5 -5
- package/dist/bundle/{recognize-WQSE5ZPL.js → recognize-DCMDZA2U.js} +4 -4
- package/dist/bundle/{remote-J5HHRNVQ.js → remote-4SHI5WJG.js} +7 -7
- package/dist/bundle/{rerank-DP2Y3WDT.js → rerank-DYMZMNPQ.js} +7 -7
- package/dist/bundle/{serve-VXPOQDQO.js → serve-HO3WME4G.js} +11 -10
- package/dist/bundle/server-244FHPY4.js +64 -0
- package/dist/bundle/{server-OSBNGA2F.js → server-R3TIPRZN.js} +39 -37
- package/dist/bundle/{sqlite-runtime-XY32WOIT.js → sqlite-runtime-DWRITUIH.js} +6 -5
- package/dist/bundle/{state-KPOPMR6O.js → state-QOMUDOGF.js} +6 -6
- package/dist/bundle/{store-FWRGNGP3.js → store-LHHMOE5V.js} +36 -18
- package/dist/bundle/{store-UBI2YCRC.js → store-RGO6IABA.js} +17 -13
- package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +54 -0
- package/dist/commands/session.js +1 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +12 -7
- package/dist/commands/status.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.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-MDIRW3AT.js +0 -18
- package/dist/bundle/command-contract-TW44FY47.js +0 -33
- package/dist/bundle/first-screen-ZN7ODW5K.js +0 -31
- package/dist/bundle/server-XHWSCXVX.js +0 -62
- package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +0 -52
- /package/dist/bundle/{chunk-MRLSUCHT.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
string,
|
|
19
19
|
text,
|
|
20
20
|
unknown
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IVDUR5Y4.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError,
|
|
24
24
|
visibleControls
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CCHHEMPM.js";
|
|
26
26
|
import {
|
|
27
27
|
__commonJS,
|
|
28
28
|
__name,
|
|
@@ -1895,7 +1895,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1895
1895
|
}
|
|
1896
1896
|
});
|
|
1897
1897
|
|
|
1898
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1898
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1899
1899
|
import { homedir, userInfo } from "node:os";
|
|
1900
1900
|
import { join, posix, win32 } from "node:path";
|
|
1901
1901
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -1947,7 +1947,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1947
1947
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
1948
1948
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1949
1949
|
|
|
1950
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1950
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
1951
1951
|
var DEFAULT_RETRY = {
|
|
1952
1952
|
retries: 1,
|
|
1953
1953
|
baseDelayMs: 250,
|
|
@@ -1959,7 +1959,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
1959
1959
|
return Math.round(random() * ceiling);
|
|
1960
1960
|
}, "backoffMs");
|
|
1961
1961
|
|
|
1962
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1962
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_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
|
|
1963
1963
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
1964
1964
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
1965
1965
|
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))))
|
|
@@ -2024,7 +2024,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2024
2024
|
return project(value, fields);
|
|
2025
2025
|
}, "projectFields");
|
|
2026
2026
|
|
|
2027
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2027
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2028
2028
|
var BATCH_LIMITS = Object.freeze({
|
|
2029
2029
|
requests: 32,
|
|
2030
2030
|
input_bytes: 262144,
|
|
@@ -2151,7 +2151,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2151
2151
|
};
|
|
2152
2152
|
}, "runBatch");
|
|
2153
2153
|
|
|
2154
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2154
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2155
2155
|
import { randomBytes } from "node:crypto";
|
|
2156
2156
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2157
2157
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2195,11 +2195,11 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2195
2195
|
`, 384);
|
|
2196
2196
|
}, "saveConfigFile");
|
|
2197
2197
|
|
|
2198
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2198
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2199
2199
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2200
2200
|
import { join as join3, resolve } from "node:path";
|
|
2201
2201
|
|
|
2202
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2202
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2203
2203
|
import { createRequire } from "node:module";
|
|
2204
2204
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2205
2205
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2219,7 +2219,7 @@ var systemKeyring = {
|
|
|
2219
2219
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2220
2220
|
};
|
|
2221
2221
|
|
|
2222
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2222
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2223
2223
|
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2224
2224
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2225
2225
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
@@ -2355,7 +2355,7 @@ var Credentials = class {
|
|
|
2355
2355
|
}
|
|
2356
2356
|
};
|
|
2357
2357
|
|
|
2358
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2358
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2359
2359
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2360
2360
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2361
2361
|
if (signal?.aborted) {
|
|
@@ -2369,10 +2369,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2369
2369
|
}, { once: true });
|
|
2370
2370
|
}), "realSleep");
|
|
2371
2371
|
|
|
2372
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2372
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2373
2373
|
import { appendFileSync } from "node:fs";
|
|
2374
2374
|
|
|
2375
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2375
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_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
|
|
2376
2376
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2377
2377
|
var logRecordSchema = strictObject({
|
|
2378
2378
|
time: isoTime,
|
|
@@ -2450,7 +2450,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2450
2450
|
return traceId;
|
|
2451
2451
|
}, "traceIdOf");
|
|
2452
2452
|
|
|
2453
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2453
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2454
2454
|
var REDACTED_FIELDS = [
|
|
2455
2455
|
"authorization",
|
|
2456
2456
|
"Authorization",
|
|
@@ -2544,7 +2544,7 @@ var silent = {
|
|
|
2544
2544
|
}, "error")
|
|
2545
2545
|
};
|
|
2546
2546
|
|
|
2547
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2547
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2548
2548
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2549
2549
|
import { styleText } from "node:util";
|
|
2550
2550
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2619,7 +2619,7 @@ var BORDERLESS = {
|
|
|
2619
2619
|
middle: ""
|
|
2620
2620
|
};
|
|
2621
2621
|
|
|
2622
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2622
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
2623
2623
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2624
2624
|
if (signal?.aborted)
|
|
2625
2625
|
return Promise.reject(signal.reason);
|
|
@@ -2647,7 +2647,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2647
2647
|
});
|
|
2648
2648
|
}, "waitForDrain");
|
|
2649
2649
|
|
|
2650
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2650
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
2651
2651
|
var processStreams = {
|
|
2652
2652
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2653
2653
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2676,7 +2676,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2676
2676
|
};
|
|
2677
2677
|
}, "captureStreams");
|
|
2678
2678
|
|
|
2679
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2679
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
2680
2680
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2681
2681
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2682
2682
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -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-UHHARH5X.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IVDUR5Y4.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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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"],
|
|
@@ -43,6 +43,7 @@ var SIGN_IN = [
|
|
|
43
43
|
["sign-in.client-file-invalid", "configuration_error", "the file is not a Desktop app OAuth client JSON"]
|
|
44
44
|
];
|
|
45
45
|
var OTHERS = [
|
|
46
|
+
["query.time-limit", "timeout", "the search took longer than its time limit; the query itself is valid"],
|
|
46
47
|
["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
|
|
47
48
|
[
|
|
48
49
|
"contract.unacknowledged-override",
|
|
@@ -53,7 +54,10 @@ var OTHERS = [
|
|
|
53
54
|
validation("meeting-findings.stale", "meeting findings changed since they were read; stage a new batch"),
|
|
54
55
|
validation("meeting-findings.dedicated-review", "review meeting findings through the dedicated findings command"),
|
|
55
56
|
validation("evidence-findings.stale", "evidence findings changed since they were read; stage a new batch"),
|
|
57
|
+
validation("mail-findings.stale", "mail findings cite mail that changed since it was read; stage a new batch"),
|
|
58
|
+
validation("mail-findings.partial", "a cited email is not stored whole yet; cite it once it is"),
|
|
56
59
|
validation("evidence-findings.dedicated-review", "review evidence findings through the dedicated findings command"),
|
|
60
|
+
validation("mail-findings.dedicated-review", "review mail findings through the dedicated findings command"),
|
|
57
61
|
validation("document.changed", "the document changed while it was read; nothing was saved"),
|
|
58
62
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
59
63
|
["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
|
|
@@ -66,6 +70,11 @@ var OTHERS = [
|
|
|
66
70
|
validation("push.too-many-files", "the folder holds more files than one push takes"),
|
|
67
71
|
validation("push.unreadable", "the folder to push could not be read"),
|
|
68
72
|
validation("spreadsheet.unreadable", "the workbook could not be read"),
|
|
73
|
+
[
|
|
74
|
+
"config.unrepairable",
|
|
75
|
+
"configuration_error",
|
|
76
|
+
"the settings file's damage has more than one reading; nothing was changed, so it is fixed by hand"
|
|
77
|
+
],
|
|
69
78
|
["state.invalid", "configuration_error", "the saved sync state is unreadable or invalid; it is kept, not reset"],
|
|
70
79
|
["sync.partial", "provider_error", "some calendars did not sync; the next sync retries them"],
|
|
71
80
|
validation("event.conflict", "the event changed at the provider since the last sync; sync and try again"),
|
|
@@ -109,6 +118,7 @@ var OTHERS = [
|
|
|
109
118
|
["meetings.index-pending", "not_found", "some stored meetings are not indexed by person yet"],
|
|
110
119
|
["profile.locked", "permission_error", "a profile lock pins this process to its own account"],
|
|
111
120
|
["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
|
|
121
|
+
["busy.unanswered", "provider_error", "the provider gave no busy times for a calendar or person that was asked"],
|
|
112
122
|
validation("busy.no-calendars", "no calendar syncs and no person was named, so there is nobody to ask"),
|
|
113
123
|
["search.offline", "permission_error", "search --backend server asks the provider; --offline was given"],
|
|
114
124
|
validation("search.no-calendars", "no calendar of this profile syncs yet, so the provider has nothing to search"),
|
|
@@ -142,8 +152,33 @@ var OTHERS = [
|
|
|
142
152
|
validation("input.required", "the command needs an answer and cannot ask for one"),
|
|
143
153
|
validation("input.too-large", "the input is over its size limit"),
|
|
144
154
|
["meeting-project.stale", "configuration_error", "the meeting's project changed meanwhile"],
|
|
155
|
+
validation("fact.payment-retired", "a payment is a payments row in store.finance, not a fact"),
|
|
156
|
+
validation("finance.allocate", "the invoice or payment cannot take an allocation in its state"),
|
|
157
|
+
validation("finance.currency", "the payment and the invoice are in different currencies; nothing is converted"),
|
|
158
|
+
validation("finance.field", "a field of the invoice or payment is not valid"),
|
|
159
|
+
validation("finance.line-amount", "the line's amount is not its quantity times its unit price"),
|
|
160
|
+
validation("finance.lines", "the invoice's lines are not valid"),
|
|
161
|
+
validation("finance.over-invoice", "the allocation would settle more than the invoice's total"),
|
|
162
|
+
validation("finance.over-payment", "the allocation would use more than the payment's amount"),
|
|
163
|
+
["finance.owner-only", "permission_error", "only the owner does this with money"],
|
|
164
|
+
validation("finance.party", "a party is a person: or organization: reference"),
|
|
165
|
+
validation("finance.ref", "the reference names no invoice or payment"),
|
|
166
|
+
validation("finance.status", "the invoice's status does not allow this"),
|
|
167
|
+
validation("finance.total", "the invoice's total is not the sum of its lines"),
|
|
168
|
+
validation("record.entity", "the invoice or payment the record stands for was refused"),
|
|
169
|
+
["record.map-owner-only", "permission_error", "only the owner says which entity a source record is"],
|
|
170
|
+
validation("record.map-type", "a record maps only to an entity of its own type"),
|
|
171
|
+
validation("record.mapped", "the record already stands for another entity"),
|
|
172
|
+
validation("record.not-found", "the store holds no such record to delete"),
|
|
173
|
+
validation("record.invalid", "a field of the record is not the kind the entity needs"),
|
|
174
|
+
validation("record.reference-not-found", "a reference in the record's fields is not in the store"),
|
|
175
|
+
validation("record.relation-ambiguous", "the record names more than one target for a role that takes one"),
|
|
176
|
+
validation("record.stale-revision", "the store holds a newer revision of the record"),
|
|
145
177
|
validation("memory.evidence-required", "a memory needs its evidence"),
|
|
146
178
|
validation("memory.scope-required", "a memory needs its scope"),
|
|
179
|
+
validation("money.amount", "the amount is not a decimal string in the currency's scale"),
|
|
180
|
+
validation("money.currency", "the currency is not one the store keeps money in"),
|
|
181
|
+
validation("money.quantity", "the quantity is not a decimal above 0"),
|
|
147
182
|
["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
|
|
148
183
|
["person.no-owner", "not_found", "no person is marked as the owner in the store"],
|
|
149
184
|
["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
|
|
@@ -194,9 +229,9 @@ var OTHERS = [
|
|
|
194
229
|
["task.stale", "configuration_error", "the task changed since it was read; read it again"],
|
|
195
230
|
validation("task.column", "the task beside which it moves is in another column than the status asked for"),
|
|
196
231
|
validation("task.dependency-cycle", "the task would depend on itself"),
|
|
197
|
-
validation("task.
|
|
198
|
-
validation("task.is-subtask", "a subtask moves to another project only when it is detached from its parent in the same write"),
|
|
232
|
+
validation("task.is-subtask", "a subtask moves to another project alone only when it is detached from its parent in the same write"),
|
|
199
233
|
validation("task.duplicate-candidates", "open tasks may be the same job: attach to one, or add it as new"),
|
|
234
|
+
validation("task.already-read", "the message was already read for tasks: a read again only updates and closes tasks unless --open-new"),
|
|
200
235
|
validation("task.certainty-required", "an agent closes a task with its certainty, 0 to 1"),
|
|
201
236
|
["task.pair-decided", "permission_error", "the owner already decided the pair; an agent does not change it"],
|
|
202
237
|
validation("task.no-close-suggestion", "the task has no agent's close waiting on the owner"),
|
|
@@ -249,9 +284,11 @@ var DETAILS = [
|
|
|
249
284
|
"chat",
|
|
250
285
|
"chat_id",
|
|
251
286
|
"cli",
|
|
287
|
+
"column",
|
|
252
288
|
"complete",
|
|
253
289
|
"emitted_bytes",
|
|
254
290
|
"exact",
|
|
291
|
+
"file",
|
|
255
292
|
"forum",
|
|
256
293
|
"guide",
|
|
257
294
|
"hint",
|
|
@@ -260,6 +297,7 @@ var DETAILS = [
|
|
|
260
297
|
"kind",
|
|
261
298
|
"limit",
|
|
262
299
|
"limit_source",
|
|
300
|
+
"line",
|
|
263
301
|
"max_bytes",
|
|
264
302
|
"model",
|
|
265
303
|
"name",
|
|
@@ -267,7 +305,6 @@ var DETAILS = [
|
|
|
267
305
|
"operation_ids",
|
|
268
306
|
"text_limit",
|
|
269
307
|
"store_refused_in",
|
|
270
|
-
"subtasks",
|
|
271
308
|
"partial_output",
|
|
272
309
|
"parent",
|
|
273
310
|
"path",
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Q5EYTU3Q.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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
commandPathOf,
|
|
5
5
|
findCommand,
|
|
6
6
|
outputOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DPKHVBP3.js";
|
|
8
8
|
import {
|
|
9
9
|
wrapAnsi
|
|
10
10
|
} from "./chunk-HTQTIKWP.js";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YG4OI3HJ.js";
|
|
22
22
|
import {
|
|
23
23
|
writes
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IVDUR5Y4.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CCHHEMPM.js";
|
|
28
28
|
import {
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
33
33
|
var SECTIONS = {
|
|
34
34
|
read: "Read",
|
|
35
35
|
write: "Write",
|
|
@@ -90,7 +90,7 @@ var CORE_SECTIONS = {
|
|
|
90
90
|
upgrade: "setup"
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
93
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
94
94
|
var DESCRIPTION = 90;
|
|
95
95
|
var COLUMN = 52;
|
|
96
96
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -129,7 +129,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
129
129
|
`;
|
|
130
130
|
}, "commandsText");
|
|
131
131
|
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
133
133
|
var ARGUMENT_KINDS = {
|
|
134
134
|
chat: "chat",
|
|
135
135
|
chats: "chat",
|
|
@@ -321,7 +321,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
321
321
|
command.addHelpText("after", () => commandHelpText(command));
|
|
322
322
|
}, "installCommandHelp");
|
|
323
323
|
|
|
324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
325
325
|
var WIRECAT_TOOLS = [
|
|
326
326
|
{
|
|
327
327
|
command: "tg",
|
|
@@ -2,12 +2,12 @@ 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-CCHHEMPM.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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OGK7LMYT.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CCHHEMPM.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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3EAAEF5U.js";
|
|
9
9
|
import {
|
|
10
10
|
COMPACT_FLAG
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IVDUR5Y4.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError,
|
|
14
14
|
singleLine
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CCHHEMPM.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
21
21
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
22
22
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
23
23
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -263,6 +263,7 @@ var NAMED_WRITE_KEYS = [
|
|
|
263
263
|
"mentions.reject",
|
|
264
264
|
"tags.add",
|
|
265
265
|
"tags.remove",
|
|
266
|
+
"tasks.acknowledge",
|
|
266
267
|
"tasks.add",
|
|
267
268
|
"tasks.claim",
|
|
268
269
|
"tasks.close",
|
|
@@ -412,7 +413,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
412
413
|
}
|
|
413
414
|
}, "assertRetentionEvidenceRead");
|
|
414
415
|
|
|
415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
416
417
|
var named = /* @__PURE__ */ __name((work) => {
|
|
417
418
|
try {
|
|
418
419
|
return work();
|
|
@@ -439,7 +440,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
439
440
|
return projectFields(value, fields);
|
|
440
441
|
}), "projectFields");
|
|
441
442
|
|
|
442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
443
444
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
444
445
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
445
446
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -475,7 +476,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
475
476
|
return value;
|
|
476
477
|
}, "atDetail");
|
|
477
478
|
|
|
478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/output.js
|
|
479
480
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
480
481
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
481
482
|
if (other)
|
|
@@ -2,26 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
validateFormattedText
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-P547HU26.js";
|
|
6
6
|
import {
|
|
7
7
|
inputPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-H2ZURG7Q.js";
|
|
9
9
|
import {
|
|
10
10
|
indent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3EAAEF5U.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CCHHEMPM.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/checks.js
|
|
20
20
|
var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
|
|
21
21
|
var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
|
|
22
22
|
var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/markdown.js
|
|
25
25
|
var MARKERS = [
|
|
26
26
|
["**", "bold"],
|
|
27
27
|
["~~", "strike"],
|
|
@@ -67,7 +67,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
|
|
|
67
67
|
return end;
|
|
68
68
|
}, "closing");
|
|
69
69
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
|
|
71
71
|
var STYLES = [
|
|
72
72
|
["**", "bold"],
|
|
73
73
|
["__", "underline"],
|
|
@@ -227,7 +227,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
|
|
|
227
227
|
return validateFormattedText(result);
|
|
228
228
|
}, "parseMarkdownSpans");
|
|
229
229
|
|
|
230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/polls.js
|
|
231
231
|
var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
232
232
|
const cast = votes.filter((vote) => vote.answers.length > 0);
|
|
233
233
|
const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
|
|
@@ -1876,7 +1876,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
1876
1876
|
var qrcode_default = qrcode;
|
|
1877
1877
|
var stringToBytes = qrcode.stringToBytes;
|
|
1878
1878
|
|
|
1879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/terminal/qr.js
|
|
1880
1880
|
var QUIET_ZONE = 4;
|
|
1881
1881
|
var BLACK_ON_WHITE = "\x1B[30;107m";
|
|
1882
1882
|
var RESET = "\x1B[0m";
|
|
@@ -1923,7 +1923,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
|
|
|
1923
1923
|
return lines.join("\n");
|
|
1924
1924
|
}, "plainQr");
|
|
1925
1925
|
|
|
1926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
|
|
1927
1927
|
var MARGIN = 2;
|
|
1928
1928
|
var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
|
|
1929
1929
|
var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5C74F7XX.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -57,7 +57,7 @@ var redirectAllowed = /* @__PURE__ */ __name((uri) => {
|
|
|
57
57
|
return false;
|
|
58
58
|
}
|
|
59
59
|
}, "redirectAllowed");
|
|
60
|
-
var ownerLogin = /* @__PURE__ */ __name(({ issuer, resource, file, appName, onCode, now = /* @__PURE__ */ __name(() => Date.now(), "now") }) => {
|
|
60
|
+
var ownerLogin = /* @__PURE__ */ __name(({ issuer, resource, file, appName, reaches = `your ${appName} data`, onCode, now = /* @__PURE__ */ __name(() => Date.now(), "now") }) => {
|
|
61
61
|
const store = tokenFile(file);
|
|
62
62
|
const codes = /* @__PURE__ */ new Map();
|
|
63
63
|
let login = { value: "", expires: 0 };
|
|
@@ -153,7 +153,7 @@ var ownerLogin = /* @__PURE__ */ __name(({ issuer, resource, file, appName, onCo
|
|
|
153
153
|
const hidden = ["response_type", "client_id", "redirect_uri", "code_challenge", "code_challenge_method", "state"].map((name) => `<input type="hidden" name="${name}" value="${escapeHtml(params.get(name) ?? "")}">`).join("");
|
|
154
154
|
const who = escapeHtml(client.name ?? "an application");
|
|
155
155
|
const target = new URL(params.get("redirect_uri") ?? "");
|
|
156
|
-
const html = `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${escapeHtml(appName)} login</title><style>body{font:16px system-ui,sans-serif;max-width:28rem;margin:3rem auto;padding:0 1rem;color:#1d2430}input[type=text]{font:20px ui-monospace,monospace;letter-spacing:.1em;width:100%;padding:.5rem;margin:.5rem 0 1rem;box-sizing:border-box}button{font:inherit;padding:.5rem 1rem}.error{color:#b42318}</style></head><body><h1>${escapeHtml(appName)}</h1><p>An app that calls itself <strong>${who}</strong> asks to reach
|
|
156
|
+
const html = `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${escapeHtml(appName)} login</title><style>body{font:16px system-ui,sans-serif;max-width:28rem;margin:3rem auto;padding:0 1rem;color:#1d2430}input[type=text]{font:20px ui-monospace,monospace;letter-spacing:.1em;width:100%;padding:.5rem;margin:.5rem 0 1rem;box-sizing:border-box}button{font:inherit;padding:.5rem 1rem}.error{color:#b42318}</style></head><body><h1>${escapeHtml(appName)}</h1><p>An app that calls itself <strong>${who}</strong> asks to reach ${escapeHtml(reaches)} through <code>${escapeHtml(appName)} mcp serve --http</code>.</p><p>After you allow it, the login goes to <strong>${escapeHtml(target.host)}</strong>. Allow only if that is the app you are connecting, such as chatgpt.com or claude.ai.</p><p>Type the code shown in WireCat Desktop, or in the terminal where the server runs. If you did not start this login, close this page.</p>${message ? `<p class="error">${escapeHtml(message)}</p>` : ""}<form method="post" action="${escapeHtml(`${base}/authorize`)}">${hidden}<label>Login code<input type="text" name="login_code" autocomplete="off" autofocus required></label><button type="submit">Allow</button></form></body></html>`;
|
|
157
157
|
return new Response(html, {
|
|
158
158
|
status: message ? 400 : 200,
|
|
159
159
|
headers: {
|