@wirecat/mail-cli 0.8.0 → 0.10.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 +51 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-MXGDUBAM.js → all-profiles-OJPRIFKU.js} +9 -9
- package/dist/bundle/{anthropic-A2QA4W7L.js → anthropic-3AXHD4WH.js} +6 -6
- package/dist/bundle/{app-server-PMIMK6FK.js → app-server-V4KHCUGE.js} +45 -46
- package/dist/bundle/{bun-3UW3LFNL.js → bun-ISYNUTQJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGFZFKAX.js → bun-sqlite-FH3D4AXL.js} +5 -5
- package/dist/bundle/{chunk-W7H3PZ67.js → chunk-2TTCKOQ7.js} +2 -2
- package/dist/bundle/{chunk-U4IF2MOB.js → chunk-35Y3INBK.js} +2 -2
- package/dist/bundle/{chunk-Q5DOXSBM.js → chunk-44LVUMS2.js} +1 -1
- package/dist/bundle/{chunk-ZKAT6I2I.js → chunk-4D52FA34.js} +1 -1
- package/dist/bundle/{chunk-L3KMVMRJ.js → chunk-4DPICEPQ.js} +2 -2
- package/dist/bundle/{chunk-PXCIM6D5.js → chunk-4GPPRLIG.js} +7 -42
- package/dist/bundle/{chunk-BEUQ2X7U.js → chunk-5TACUBRJ.js} +8 -8
- package/dist/bundle/{chunk-EN3UZPGB.js → chunk-6LNRNQHJ.js} +4 -4
- package/dist/bundle/{chunk-6U6Z3GXR.js → chunk-6QNPJSRM.js} +6 -6
- package/dist/bundle/{chunk-5W74YMCK.js → chunk-6UT3MXOB.js} +3 -3
- package/dist/bundle/{chunk-TCWJYOZV.js → chunk-AJ4JS2ZR.js} +36 -11
- package/dist/bundle/{chunk-NEBO3NZU.js → chunk-BYQ3Z6UL.js} +3 -3
- package/dist/bundle/{chunk-Z5GDZ3QF.js → chunk-DN54W657.js} +2 -2
- package/dist/bundle/{chunk-RFWTPSJX.js → chunk-F3QDSQ7V.js} +34 -28
- package/dist/bundle/{chunk-YS2WUWY7.js → chunk-FYMQPAE5.js} +4 -4
- package/dist/bundle/{chunk-NI6WX55Z.js → chunk-G2WDY5XB.js} +2 -2
- package/dist/bundle/{chunk-EU35YQXE.js → chunk-GAIVTJ3E.js} +121 -32
- package/dist/bundle/{chunk-J5RKMQ6A.js → chunk-GFCNSU3B.js} +48 -48
- package/dist/bundle/{chunk-L2ZHPIFC.js → chunk-GUFWLTOW.js} +2 -2
- package/dist/bundle/{chunk-CMNFLAUG.js → chunk-GYNHU56E.js} +4 -4
- package/dist/bundle/{chunk-BCDPLG7T.js → chunk-HVVLSCFB.js} +1 -1
- package/dist/bundle/{chunk-EVO77D3Y.js → chunk-IG2WXKIT.js} +8 -8
- package/dist/bundle/{chunk-QBBKSCQD.js → chunk-IWHXM2S7.js} +1620 -671
- package/dist/bundle/{chunk-KBKEZV4L.js → chunk-IXYKM7OJ.js} +13 -13
- package/dist/bundle/{chunk-ZISFMUYB.js → chunk-JAWJZTFL.js} +18 -18
- package/dist/bundle/{chunk-PEF637VV.js → chunk-JIIEJLAX.js} +4 -4
- package/dist/bundle/{chunk-DLB2JPLU.js → chunk-JNUKTAMZ.js} +1 -1
- package/dist/bundle/{chunk-DM4ULDS3.js → chunk-K2F7YMMM.js} +6 -6
- package/dist/bundle/{chunk-NWKLBZN5.js → chunk-KJP2B65C.js} +30 -30
- package/dist/bundle/{chunk-CRS63C3T.js → chunk-KQXLRAHT.js} +2 -5
- package/dist/bundle/{chunk-4QDBMYK4.js → chunk-KVN4RY7E.js} +52 -53
- package/dist/bundle/{chunk-DYCPBLUC.js → chunk-L3PVAY3M.js} +2 -2
- package/dist/bundle/{chunk-W5J6I5GW.js → chunk-LIQ5LICB.js} +3 -3
- package/dist/bundle/{chunk-SZ5PKNDF.js → chunk-LXHLQ6RK.js} +7 -7
- package/dist/bundle/{chunk-XWNCXFR5.js → chunk-MDIRW3AT.js} +2 -2
- package/dist/bundle/{chunk-LN7TNZIS.js → chunk-N6P55LDU.js} +84 -8
- package/dist/bundle/{chunk-7JUTNCQX.js → chunk-NBQQ2ZTF.js} +19 -14
- package/dist/bundle/{chunk-NAIJNJZZ.js → chunk-NSDOYHIS.js} +10 -8
- package/dist/bundle/{chunk-UR6WHUJF.js → chunk-OHC4GVWV.js} +2 -2
- package/dist/bundle/{chunk-6JK46V5X.js → chunk-PLPSFJO6.js} +6 -6
- package/dist/bundle/{chunk-RVZ4JIRR.js → chunk-PSXAC6OO.js} +1 -1
- package/dist/bundle/{chunk-WS4L47DG.js → chunk-QB54TE52.js} +1 -1
- package/dist/bundle/{chunk-KF4YULWC.js → chunk-QPQSMJBW.js} +10 -10
- package/dist/bundle/{chunk-WWNAQ75T.js → chunk-S64N24ON.js} +3 -3
- package/dist/bundle/{chunk-J6ACLZKV.js → chunk-SW5NVASW.js} +9 -9
- package/dist/bundle/{chunk-FSBKLJXM.js → chunk-SYBMOE6F.js} +865 -838
- package/dist/bundle/{chunk-VSDVH2M2.js → chunk-T3AGR4TI.js} +4840 -894
- package/dist/bundle/{chunk-KEZHPPMI.js → chunk-TTKNBUMT.js} +45 -5
- package/dist/bundle/{chunk-ROZBXOES.js → chunk-TZGQPTZ2.js} +1 -1
- package/dist/bundle/{chunk-AO3XYONW.js → chunk-UDJIC6YL.js} +67 -30
- package/dist/bundle/{chunk-2MQXXPPK.js → chunk-V6K2GX2Y.js} +17 -17
- package/dist/bundle/{chunk-2KZJWBXB.js → chunk-VEXXVLBM.js} +3 -3
- package/dist/bundle/{chunk-TMQA4KR7.js → chunk-WL7CYT7O.js} +1 -1
- package/dist/bundle/{chunk-6J3DKKOV.js → chunk-X37KLD23.js} +14 -14
- package/dist/bundle/{chunk-5PWKPRTD.js → chunk-XTIQFMZH.js} +4 -4
- package/dist/bundle/{chunk-OAQ4UB6V.js → chunk-YDUES6ET.js} +4 -4
- package/dist/bundle/{chunk-VGR3AGAC.js → chunk-YRZ23RCS.js} +164 -59
- package/dist/bundle/command-contract-TW44FY47.js +33 -0
- package/dist/bundle/{decode-NF4TGOR3.js → decode-FM4C2WWG.js} +5 -5
- package/dist/bundle/{dispatch-5C6XNGEE.js → dispatch-K3HG4RYT.js} +8 -8
- package/dist/bundle/{dist-DVYY3YFG.js → dist-7LNVI7VB.js} +17 -13
- package/dist/bundle/{echarts-F3USGP5B.js → echarts-5C2A72XM.js} +2 -2
- package/dist/bundle/{embed-2RXV3BEC.js → embed-N56P6YVY.js} +6 -6
- package/dist/bundle/{embedder-I2SJMC6N.js → embedder-QLYKFLOL.js} +9 -9
- package/dist/bundle/{failure-YRGRZBTX.js → failure-5ZLVZTRU.js} +2 -2
- package/dist/bundle/{first-run-3GA7YCKZ.js → first-run-VMF4PJ7Q.js} +11 -11
- package/dist/bundle/first-screen-ZN7ODW5K.js +31 -0
- package/dist/bundle/{instructions-VHI5CWH5.js → instructions-QA5FHDOJ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-B25MZCS7.js → mcp-LO2XDBBC.js} +2 -2
- package/dist/bundle/{node-4RBB3RDY.js → node-OXJZWUYZ.js} +2 -2
- package/dist/bundle/{node-sqlite-FWYX3P2D.js → node-sqlite-7GCEI67B.js} +5 -5
- package/dist/bundle/{oauth-6JKKRGLX.js → oauth-VTPIYBTP.js} +7 -7
- package/dist/bundle/{open-7JSNC3MR.js → open-7XX3YF2X.js} +4 -4
- package/dist/bundle/{openai-ASLWL3D6.js → openai-D3KRCXSY.js} +14 -14
- package/dist/bundle/{process-AB2D2G2Q.js → process-KFI7SXQD.js} +1 -1
- package/dist/bundle/{program-ZJPQ3IDU.js → program-OJUWUHHC.js} +1355 -864
- package/dist/bundle/{prompt-JDFVQR3L.js → prompt-TBZT3APW.js} +5 -5
- package/dist/bundle/{recognize-PKYA4HRC.js → recognize-WQSE5ZPL.js} +4 -4
- package/dist/bundle/{remote-USBVVO4O.js → remote-J5HHRNVQ.js} +7 -7
- package/dist/bundle/{rerank-UBMV6KO6.js → rerank-DP2Y3WDT.js} +7 -7
- package/dist/bundle/{serve-SVS3YOYS.js → serve-VXPOQDQO.js} +9 -9
- package/dist/bundle/{server-7PZMYXY6.js → server-OSBNGA2F.js} +37 -38
- package/dist/bundle/server-XHWSCXVX.js +62 -0
- package/dist/bundle/{sqlite-runtime-IDPTXAM7.js → sqlite-runtime-XY32WOIT.js} +5 -5
- package/dist/bundle/{state-6G2TSVP7.js → state-KPOPMR6O.js} +6 -6
- package/dist/bundle/{store-7A464D4X.js → store-FWRGNGP3.js} +25 -17
- package/dist/bundle/{store-L56GFI4P.js → store-UBI2YCRC.js} +13 -13
- package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +52 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +2 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +3 -3
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +22 -7
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +6 -4
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/imap/errors.d.ts +7 -0
- package/dist/mail/imap/errors.d.ts.map +1 -1
- package/dist/mail/imap/errors.js +8 -4
- package/dist/mail/imap/errors.js.map +1 -1
- package/dist/mail/imap/read.d.ts.map +1 -1
- package/dist/mail/imap/read.js +36 -20
- package/dist/mail/imap/read.js.map +1 -1
- package/dist/mail/imap/search.d.ts +7 -2
- package/dist/mail/imap/search.d.ts.map +1 -1
- package/dist/mail/imap/search.js +13 -7
- package/dist/mail/imap/search.js.map +1 -1
- package/dist/mail/imap/write.d.ts.map +1 -1
- package/dist/mail/imap/write.js +2 -1
- package/dist/mail/imap/write.js.map +1 -1
- package/dist/mail/organise.d.ts.map +1 -1
- package/dist/mail/organise.js +92 -87
- package/dist/mail/organise.js.map +1 -1
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +26 -5
- package/dist/mail/send.js.map +1 -1
- package/dist/oauth.d.ts +2 -8
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +6 -40
- package/dist/oauth.js.map +1 -1
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +2 -1
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -3
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-NSODLSEL.js +0 -3604
- package/dist/bundle/command-contract-Q32SL5KX.js +0 -34
- package/dist/bundle/first-screen-JFIXKYAK.js +0 -32
- package/dist/bundle/server-KA7Q5XCL.js +0 -63
- package/dist/bundle/store-maintenance-command-2LM4GOI3.js +0 -52
- /package/dist/bundle/{chunk-EKRM2QJB.js → chunk-MRLSUCHT.js} +0 -0
|
@@ -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-4DPICEPQ.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3 } from "node:path";
|
|
374
374
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
375
375
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
string,
|
|
19
19
|
text,
|
|
20
20
|
unknown
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NSDOYHIS.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError,
|
|
24
24
|
visibleControls
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4DPICEPQ.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.74.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.74.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.74.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.74.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.74.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.74.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.74.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.74.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.74.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.74.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.74.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.74.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.74.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.74.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.74.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.74.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,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4DPICEPQ.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -30,7 +30,7 @@ var PROGRAM_PREFIX = "wcat-";
|
|
|
30
30
|
var DESCRIBE_FLAG = "--wcat-describe";
|
|
31
31
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
34
34
|
var DESCRIBE_FORMAT = 1;
|
|
35
35
|
var describeAnswer = /* @__PURE__ */ __name((tool) => ({
|
|
36
36
|
wcat_describe: DESCRIBE_FORMAT,
|
|
@@ -59,7 +59,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
59
59
|
};
|
|
60
60
|
}, "parseDescribe");
|
|
61
61
|
|
|
62
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
62
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
63
63
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
64
64
|
import { join } from "node:path";
|
|
65
65
|
var SHIM_FORMAT = 1;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
8
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
9
|
const path = scriptPath.replaceAll("\\", "/");
|
|
10
10
|
if (path.includes("/_npx/"))
|
|
@@ -2,19 +2,19 @@ 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-4DPICEPQ.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
11
11
|
var PRAGMAS = `
|
|
12
12
|
PRAGMA busy_timeout = 5000;
|
|
13
13
|
PRAGMA journal_mode = WAL;
|
|
14
14
|
PRAGMA foreign_keys = ON;
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
18
18
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
19
19
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
20
20
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
35
35
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
36
36
|
}, "isSqliteWarning");
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
39
39
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
40
40
|
const database = await openFile(path);
|
|
41
41
|
try {
|
|
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
48
|
}, "openCache");
|
|
49
49
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
50
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
51
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-FH3D4AXL.js");
|
|
52
52
|
return await openWithBunSqlite(path);
|
|
53
53
|
}, "openUnderBun");
|
|
54
54
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
55
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
56
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-7GCEI67B.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-F3QDSQ7V.js";
|
|
24
24
|
import {
|
|
25
25
|
CHART_KINDS,
|
|
26
26
|
CHART_SIZE,
|
|
@@ -34,23 +34,23 @@ import {
|
|
|
34
34
|
registerPrompts,
|
|
35
35
|
stdinFieldOf,
|
|
36
36
|
syncsFirst
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-UDJIC6YL.js";
|
|
38
38
|
import {
|
|
39
39
|
agentJson,
|
|
40
40
|
skillResource
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-NBQQ2ZTF.js";
|
|
42
42
|
import {
|
|
43
43
|
instructions
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-HVVLSCFB.js";
|
|
45
45
|
import {
|
|
46
46
|
answeredWire
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-4D52FA34.js";
|
|
48
48
|
import {
|
|
49
49
|
StdioServerTransport,
|
|
50
50
|
callerOf,
|
|
51
51
|
callingAgent,
|
|
52
52
|
serveStdio
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-G2WDY5XB.js";
|
|
54
54
|
import {
|
|
55
55
|
McpServer,
|
|
56
56
|
ResourceTemplate
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
import {
|
|
59
59
|
connectedFor,
|
|
60
60
|
guardFor
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-GAIVTJ3E.js";
|
|
62
62
|
import {
|
|
63
63
|
capability,
|
|
64
64
|
dateWindow,
|
|
@@ -67,10 +67,10 @@ import {
|
|
|
67
67
|
servicesFor,
|
|
68
68
|
storedDeps,
|
|
69
69
|
wholeList
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-SYBMOE6F.js";
|
|
71
71
|
import {
|
|
72
72
|
findCommand
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-4GPPRLIG.js";
|
|
74
74
|
import {
|
|
75
75
|
DEFAULT_OUTPUT_BYTES,
|
|
76
76
|
changesAuthorityAt,
|
|
@@ -85,28 +85,28 @@ import {
|
|
|
85
85
|
sealed,
|
|
86
86
|
snakeKeys,
|
|
87
87
|
typedCommand
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-T3AGR4TI.js";
|
|
89
89
|
import {
|
|
90
90
|
levelFor,
|
|
91
91
|
readKeysForCommand
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-AJ4JS2ZR.js";
|
|
93
93
|
import {
|
|
94
94
|
isCliFailure,
|
|
95
95
|
withCaller
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-SW5NVASW.js";
|
|
97
97
|
import {
|
|
98
98
|
mcpHttpMarker
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-GYNHU56E.js";
|
|
100
|
+
import {
|
|
101
|
+
warmEmbedders
|
|
102
|
+
} from "./chunk-6QNPJSRM.js";
|
|
100
103
|
import {
|
|
101
104
|
openStore,
|
|
102
105
|
pdfPreviewLimits
|
|
103
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-IWHXM2S7.js";
|
|
104
107
|
import {
|
|
105
108
|
timezoneOf
|
|
106
|
-
} from "./chunk-
|
|
107
|
-
import {
|
|
108
|
-
warmEmbedders
|
|
109
|
-
} from "./chunk-6U6Z3GXR.js";
|
|
109
|
+
} from "./chunk-KVN4RY7E.js";
|
|
110
110
|
import {
|
|
111
111
|
description,
|
|
112
112
|
integer,
|
|
@@ -122,19 +122,19 @@ import {
|
|
|
122
122
|
regex,
|
|
123
123
|
strictObject,
|
|
124
124
|
string
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-NSDOYHIS.js";
|
|
126
126
|
import {
|
|
127
127
|
CliError,
|
|
128
128
|
visibleControls
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-4DPICEPQ.js";
|
|
130
130
|
import {
|
|
131
131
|
__name
|
|
132
132
|
} from "./chunk-ZVVMGPBJ.js";
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
135
135
|
import { randomUUID } from "node:crypto";
|
|
136
136
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
138
138
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
139
139
|
let held;
|
|
140
140
|
return {
|
|
@@ -153,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
153
153
|
};
|
|
154
154
|
}, "agentLog");
|
|
155
155
|
|
|
156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
157
157
|
var LISTED = 100;
|
|
158
158
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
159
159
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -191,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
191
191
|
});
|
|
192
192
|
}, "registerResources");
|
|
193
193
|
|
|
194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
195
195
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
196
196
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
197
197
|
var MessengerSession = class {
|
|
@@ -266,7 +266,7 @@ var MessengerSession = class {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
270
270
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
271
271
|
const _command = messenger.app.command;
|
|
272
272
|
return {
|
|
@@ -320,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
320
320
|
};
|
|
321
321
|
}, "attachmentsTools");
|
|
322
322
|
|
|
323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
324
324
|
var PHOTO_LIMIT = 512 * 1024;
|
|
325
325
|
var IMAGE_TYPES = [
|
|
326
326
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -374,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
374
374
|
return new Uint8Array(Buffer.concat(chunks));
|
|
375
375
|
}, "readUpTo");
|
|
376
376
|
|
|
377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
378
378
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
379
379
|
stats_charts: tool({
|
|
380
380
|
title: "A chart from a chat's statistics",
|
|
@@ -411,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
411
411
|
})
|
|
412
412
|
}), "statsTools");
|
|
413
413
|
|
|
414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
415
415
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
416
416
|
...messagesPhotoTools(messenger),
|
|
417
417
|
...attachmentsTools(messenger),
|
|
418
418
|
...statsTools(messenger)
|
|
419
419
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
420
420
|
|
|
421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
422
422
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
423
423
|
"streams",
|
|
424
424
|
"stdin",
|
|
@@ -742,7 +742,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
742
742
|
}, "serveOverStdio");
|
|
743
743
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
744
744
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
745
|
-
const { serveOverHttp } = await import("./serve-
|
|
745
|
+
const { serveOverHttp } = await import("./serve-VXPOQDQO.js");
|
|
746
746
|
const appName = messenger.app.command;
|
|
747
747
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
748
748
|
const listening = await serveOverHttp(build, {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NSDOYHIS.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var ENTRIES = [
|
|
@@ -11,11 +11,8 @@ var ENTRIES = [
|
|
|
11
11
|
["mail.oauth-refused", "authentication_error", "the mail server refused the OAuth token even after a refresh"],
|
|
12
12
|
["mail.smtp-auth-disabled", "authentication_error", "Microsoft refused the OAuth login for sending"],
|
|
13
13
|
["mail.oauth-no-client", "configuration_error", "no OAuth app is set up to sign in with"],
|
|
14
|
-
["sign-in.client-file-open", "configuration_error", "other users of this computer can read the client file"],
|
|
15
|
-
["sign-in.client-file-invalid", "configuration_error", "the file is not a Desktop app OAuth client JSON"],
|
|
16
14
|
["mail.uidvalidity-changed", "invalid_response", "the folder's UIDVALIDITY changed during the run"],
|
|
17
15
|
["mail.not-returned", "not_found", "the server did not return the email"],
|
|
18
|
-
["mail.search-refused", "provider_error", "the mail server refused to search a folder"],
|
|
19
16
|
["mail.rules-file-invalid", "validation_error", "the rules file is not one rules export writes"],
|
|
20
17
|
["mail.filters-file-invalid", "validation_error", "the file is not a Gmail Takeout Filters.json"],
|
|
21
18
|
["mail.rule-not-found", "not_found", "no rule has exactly these conditions"],
|
|
@@ -31,7 +28,7 @@ var ENTRIES = [
|
|
|
31
28
|
var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
32
29
|
|
|
33
30
|
// dist/version.js
|
|
34
|
-
var VERSION = "0.
|
|
31
|
+
var VERSION = "0.10.0";
|
|
35
32
|
|
|
36
33
|
// dist/identity.js
|
|
37
34
|
var PACKAGE = "@wirecat/mail-cli";
|