@wirecat/mail-cli 0.8.0 → 0.9.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 +8 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-MXGDUBAM.js → all-profiles-X6ROLLMF.js} +5 -5
- package/dist/bundle/{anthropic-A2QA4W7L.js → anthropic-MPARKCMJ.js} +3 -3
- package/dist/bundle/{app-server-PMIMK6FK.js → app-server-JQ5XCXWT.js} +39 -39
- package/dist/bundle/{bun-3UW3LFNL.js → bun-H7LT5433.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGFZFKAX.js → bun-sqlite-AGK2BHAN.js} +2 -2
- package/dist/bundle/{chunk-QBBKSCQD.js → chunk-24MHYGNE.js} +247 -247
- package/dist/bundle/{chunk-DM4ULDS3.js → chunk-25N52S7U.js} +5 -5
- package/dist/bundle/{chunk-NI6WX55Z.js → chunk-2FDROA4Q.js} +2 -2
- package/dist/bundle/{chunk-6U6Z3GXR.js → chunk-3LMWAO6A.js} +5 -5
- package/dist/bundle/{chunk-RVZ4JIRR.js → chunk-3W6VSSQQ.js} +1 -1
- package/dist/bundle/{chunk-CRS63C3T.js → chunk-3Y7H3CXI.js} +1 -1
- package/dist/bundle/{chunk-EVO77D3Y.js → chunk-4EFKQXA5.js} +7 -7
- package/dist/bundle/{chunk-WS4L47DG.js → chunk-4MIC7S7B.js} +1 -1
- package/dist/bundle/{chunk-U4IF2MOB.js → chunk-5NYUCY5W.js} +1 -1
- package/dist/bundle/{chunk-W5J6I5GW.js → chunk-64FN5JK6.js} +2 -2
- package/dist/bundle/{chunk-2KZJWBXB.js → chunk-65SVO3T7.js} +2 -2
- package/dist/bundle/{chunk-PXCIM6D5.js → chunk-6FBBDIX6.js} +5 -5
- package/dist/bundle/{chunk-BEUQ2X7U.js → chunk-BNPCRWZ6.js} +6 -6
- package/dist/bundle/{chunk-BCDPLG7T.js → chunk-CHK3V7FG.js} +1 -1
- package/dist/bundle/{chunk-6J3DKKOV.js → chunk-DL32PWLR.js} +10 -10
- package/dist/bundle/{chunk-SZ5PKNDF.js → chunk-DQHAXX33.js} +6 -6
- package/dist/bundle/{chunk-4QDBMYK4.js → chunk-EUJTQY43.js} +42 -42
- package/dist/bundle/{chunk-NSODLSEL.js → chunk-EVG7MOAH.js} +91 -91
- package/dist/bundle/{chunk-Z5GDZ3QF.js → chunk-FEA5E7WQ.js} +2 -2
- package/dist/bundle/{chunk-AO3XYONW.js → chunk-FUDHVV4R.js} +21 -21
- package/dist/bundle/{chunk-OAQ4UB6V.js → chunk-GPCKNZIA.js} +3 -3
- package/dist/bundle/{chunk-2MQXXPPK.js → chunk-HWLAV2HM.js} +16 -16
- package/dist/bundle/{chunk-XWNCXFR5.js → chunk-HZ42NO25.js} +1 -1
- package/dist/bundle/{chunk-J5RKMQ6A.js → chunk-INVEYTAL.js} +43 -43
- package/dist/bundle/{chunk-W7H3PZ67.js → chunk-IYC3IHEZ.js} +2 -2
- package/dist/bundle/{chunk-RFWTPSJX.js → chunk-J4MY3QIN.js} +14 -14
- package/dist/bundle/{chunk-KEZHPPMI.js → chunk-JYVZDJNO.js} +2 -2
- package/dist/bundle/{chunk-DYCPBLUC.js → chunk-JZMPDFM4.js} +1 -1
- package/dist/bundle/{chunk-LN7TNZIS.js → chunk-K3RWO7LR.js} +5 -5
- package/dist/bundle/{chunk-EU35YQXE.js → chunk-KWHFDVAF.js} +21 -21
- package/dist/bundle/{chunk-J6ACLZKV.js → chunk-M55XFZMG.js} +7 -7
- package/dist/bundle/{chunk-FSBKLJXM.js → chunk-N6YA4OQI.js} +194 -194
- package/dist/bundle/{chunk-TMQA4KR7.js → chunk-NTWORG4T.js} +1 -1
- package/dist/bundle/{chunk-NWKLBZN5.js → chunk-OZGDPG6I.js} +26 -26
- package/dist/bundle/{chunk-EN3UZPGB.js → chunk-PC3AFEEA.js} +3 -3
- package/dist/bundle/{chunk-7JUTNCQX.js → chunk-PTDJXPXG.js} +9 -9
- package/dist/bundle/{chunk-5W74YMCK.js → chunk-PXQ7A5HQ.js} +2 -2
- package/dist/bundle/{chunk-6JK46V5X.js → chunk-QO4K6R7K.js} +4 -4
- package/dist/bundle/{chunk-KF4YULWC.js → chunk-QXXBDW6N.js} +8 -8
- package/dist/bundle/{chunk-NEBO3NZU.js → chunk-RGM66WZ3.js} +2 -2
- package/dist/bundle/{chunk-TCWJYOZV.js → chunk-SEL7SJCM.js} +4 -4
- package/dist/bundle/{chunk-WWNAQ75T.js → chunk-SUB4DRMA.js} +1 -1
- package/dist/bundle/{chunk-L2ZHPIFC.js → chunk-SYFBRZ5F.js} +1 -1
- package/dist/bundle/{chunk-VGR3AGAC.js → chunk-TKFQ3GNY.js} +5 -5
- package/dist/bundle/{chunk-KBKEZV4L.js → chunk-TVZFDVZP.js} +12 -12
- package/dist/bundle/{chunk-ZKAT6I2I.js → chunk-U6BDAY55.js} +1 -1
- package/dist/bundle/{chunk-Q5DOXSBM.js → chunk-UHBCL66Y.js} +1 -1
- package/dist/bundle/{chunk-UR6WHUJF.js → chunk-VOGSDGVL.js} +1 -1
- package/dist/bundle/{chunk-CMNFLAUG.js → chunk-YLSV3WOO.js} +4 -4
- package/dist/bundle/{chunk-YS2WUWY7.js → chunk-YXQIZORE.js} +3 -3
- package/dist/bundle/{chunk-VSDVH2M2.js → chunk-Z3TZTOR2.js} +46 -46
- package/dist/bundle/{command-contract-Q32SL5KX.js → command-contract-T3H5CAX3.js} +13 -13
- package/dist/bundle/{decode-NF4TGOR3.js → decode-ZATANRER.js} +2 -2
- package/dist/bundle/{dist-DVYY3YFG.js → dist-JN22LNLZ.js} +9 -9
- package/dist/bundle/{echarts-F3USGP5B.js → echarts-WKTVUY3O.js} +2 -2
- package/dist/bundle/{embed-2RXV3BEC.js → embed-AVKPYK4V.js} +3 -3
- package/dist/bundle/{embedder-I2SJMC6N.js → embedder-PSV2E5TR.js} +6 -6
- package/dist/bundle/{first-run-3GA7YCKZ.js → first-run-YN4SF5RZ.js} +5 -5
- package/dist/bundle/{first-screen-JFIXKYAK.js → first-screen-IJJZJP6Q.js} +14 -14
- package/dist/bundle/{instructions-VHI5CWH5.js → instructions-W5SJW23S.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-4RBB3RDY.js → node-BHBFRH6H.js} +2 -2
- package/dist/bundle/{node-sqlite-FWYX3P2D.js → node-sqlite-7FHC3W5U.js} +2 -2
- package/dist/bundle/{oauth-6JKKRGLX.js → oauth-ORPM6FLL.js} +4 -4
- package/dist/bundle/{open-7JSNC3MR.js → open-AY5KLPWO.js} +1 -1
- package/dist/bundle/{openai-ASLWL3D6.js → openai-U7VALRI7.js} +10 -10
- package/dist/bundle/{process-AB2D2G2Q.js → process-7AWARSC5.js} +1 -1
- package/dist/bundle/{program-ZJPQ3IDU.js → program-2W4J47LM.js} +317 -303
- package/dist/bundle/{prompt-JDFVQR3L.js → prompt-STNX6JL7.js} +2 -2
- package/dist/bundle/{recognize-PKYA4HRC.js → recognize-2XWWTN6Y.js} +1 -1
- package/dist/bundle/{remote-USBVVO4O.js → remote-OIC32DKQ.js} +4 -4
- package/dist/bundle/{rerank-UBMV6KO6.js → rerank-IFTSO576.js} +4 -4
- package/dist/bundle/{serve-SVS3YOYS.js → serve-P2D2AJAU.js} +6 -6
- package/dist/bundle/server-6D7W5Q4A.js +63 -0
- package/dist/bundle/{server-7PZMYXY6.js → server-DFEJBMXO.js} +31 -31
- package/dist/bundle/{sqlite-runtime-IDPTXAM7.js → sqlite-runtime-DD4Y35DQ.js} +2 -2
- package/dist/bundle/{state-6G2TSVP7.js → state-XUSQMIKJ.js} +3 -3
- package/dist/bundle/{store-L56GFI4P.js → store-EQC5DKSY.js} +9 -9
- package/dist/bundle/{store-7A464D4X.js → store-T3PKOLER.js} +11 -11
- package/dist/bundle/store-maintenance-command-7YQZXE4V.js +52 -0
- package/dist/oauth.d.ts +2 -5
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +4 -7
- package/dist/oauth.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-KA7Q5XCL.js +0 -63
- package/dist/bundle/store-maintenance-command-2LM4GOI3.js +0 -52
|
@@ -7,7 +7,7 @@ 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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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(/^\.+/, "");
|
|
@@ -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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -7,7 +7,7 @@ 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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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)
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RGM66WZ3.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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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");
|
|
@@ -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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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) => {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SEL7SJCM.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -24,38 +24,38 @@ import {
|
|
|
24
24
|
providerErrorKey,
|
|
25
25
|
renderEvent,
|
|
26
26
|
runContextOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-M55XFZMG.js";
|
|
28
28
|
import {
|
|
29
29
|
permissionCeiling
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-65SVO3T7.js";
|
|
31
31
|
import {
|
|
32
32
|
count,
|
|
33
33
|
id,
|
|
34
34
|
text,
|
|
35
35
|
time
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GPCKNZIA.js";
|
|
37
37
|
import {
|
|
38
38
|
PRIORITY_LABELS,
|
|
39
39
|
TASK_ORIGINS,
|
|
40
40
|
TASK_STATES,
|
|
41
41
|
TASK_TYPES
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-DQHAXX33.js";
|
|
43
43
|
import {
|
|
44
44
|
FIELD_TYPES,
|
|
45
45
|
QUERY_BACKENDS,
|
|
46
46
|
TAG_TYPES,
|
|
47
47
|
describeQuery
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-EUJTQY43.js";
|
|
49
49
|
import {
|
|
50
50
|
sharedConfigPath
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-QO4K6R7K.js";
|
|
52
52
|
import {
|
|
53
53
|
filesPresent,
|
|
54
54
|
sharedModelsDirectory
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-PC3AFEEA.js";
|
|
56
56
|
import {
|
|
57
57
|
storePath
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-HZ42NO25.js";
|
|
59
59
|
import {
|
|
60
60
|
configFilePath,
|
|
61
61
|
createRecordLog,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
__name
|
|
114
114
|
} from "./chunk-ZVVMGPBJ.js";
|
|
115
115
|
|
|
116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
117
117
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
118
118
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
119
119
|
const name = envName(app, "READ_ONLY");
|
|
@@ -3825,7 +3825,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3825
3825
|
}
|
|
3826
3826
|
}, "refuseJoinedPath");
|
|
3827
3827
|
|
|
3828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3829
3829
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3830
3830
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
3831
3831
|
messageId: message.id,
|
|
@@ -3931,7 +3931,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
3931
3931
|
}, "guardedWrite");
|
|
3932
3932
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
3933
3933
|
|
|
3934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
3935
3935
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
3936
3936
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
3937
3937
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4113,7 +4113,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4113
4113
|
}
|
|
4114
4114
|
}, "withAbort");
|
|
4115
4115
|
|
|
4116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4117
4117
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4118
4118
|
import { join } from "node:path";
|
|
4119
4119
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4135,7 +4135,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4135
4135
|
}, "profilesWithAccounts");
|
|
4136
4136
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4137
4137
|
|
|
4138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4139
4139
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4140
4140
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4141
4141
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -4178,7 +4178,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
4178
4178
|
};
|
|
4179
4179
|
}, "runBudget");
|
|
4180
4180
|
|
|
4181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4182
4182
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4183
4183
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4184
4184
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4212,7 +4212,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4212
4212
|
cache: "cache.answered"
|
|
4213
4213
|
};
|
|
4214
4214
|
|
|
4215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4216
4216
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4217
4217
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4218
4218
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4225,13 +4225,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4225
4225
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
4226
4226
|
}), "snakeLogger");
|
|
4227
4227
|
|
|
4228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4229
4229
|
import { randomUUID } from "node:crypto";
|
|
4230
4230
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4231
4231
|
import { userInfo } from "node:os";
|
|
4232
4232
|
import { join as join2, sep } from "node:path";
|
|
4233
4233
|
|
|
4234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4235
4235
|
var diagnostic = {
|
|
4236
4236
|
event: true,
|
|
4237
4237
|
operation: true,
|
|
@@ -4301,7 +4301,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4301
4301
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4302
4302
|
].sort();
|
|
4303
4303
|
|
|
4304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4305
4305
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4306
4306
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4307
4307
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -4654,7 +4654,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
4654
4654
|
};
|
|
4655
4655
|
}, "metadataOf");
|
|
4656
4656
|
|
|
4657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
4658
4658
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
4659
4659
|
import { randomBytes } from "node:crypto";
|
|
4660
4660
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -4690,7 +4690,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
|
|
|
4690
4690
|
var attempts = new AsyncLocalStorage2();
|
|
4691
4691
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
4692
4692
|
|
|
4693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4694
4694
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4695
4695
|
const recording = startRecording(options);
|
|
4696
4696
|
try {
|
|
@@ -4875,7 +4875,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4875
4875
|
return void 0;
|
|
4876
4876
|
}, "partialOutcome");
|
|
4877
4877
|
|
|
4878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4879
4879
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
4880
4880
|
if (ms === void 0)
|
|
4881
4881
|
return body();
|
|
@@ -4901,7 +4901,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
4901
4901
|
}
|
|
4902
4902
|
}, "withDeadline");
|
|
4903
4903
|
|
|
4904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4905
4905
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4906
4906
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4907
4907
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4970,10 +4970,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4970
4970
|
return void 0;
|
|
4971
4971
|
}, "sampleCommand");
|
|
4972
4972
|
|
|
4973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
4974
4974
|
import { existsSync as existsSync3 } from "node:fs";
|
|
4975
4975
|
|
|
4976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
4977
4977
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
4978
4978
|
try {
|
|
4979
4979
|
const url2 = new URL(value);
|
|
@@ -4983,7 +4983,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
4983
4983
|
}
|
|
4984
4984
|
}, "endpoint");
|
|
4985
4985
|
|
|
4986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4987
4987
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4988
4988
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4989
4989
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5052,7 +5052,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5052
5052
|
};
|
|
5053
5053
|
}, "modelTarget");
|
|
5054
5054
|
|
|
5055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5056
5056
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5057
5057
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5058
5058
|
var AI_FIELDS = {
|
|
@@ -5096,7 +5096,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5096
5096
|
};
|
|
5097
5097
|
}, "resolveAISettings");
|
|
5098
5098
|
|
|
5099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5100
5100
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5101
5101
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5102
5102
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -5110,7 +5110,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
5110
5110
|
return ms;
|
|
5111
5111
|
}, "parseDuration");
|
|
5112
5112
|
|
|
5113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5114
5114
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5115
5115
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5116
5116
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5269,7 +5269,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
5269
5269
|
var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
|
|
5270
5270
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5271
5271
|
|
|
5272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5273
5273
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5274
5274
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5275
5275
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -5559,7 +5559,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5559
5559
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5560
5560
|
}, "readConfigFile");
|
|
5561
5561
|
|
|
5562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5563
5563
|
import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5564
5564
|
import { dirname, join as join3 } from "node:path";
|
|
5565
5565
|
var DEFAULT_CONFIG = {
|
|
@@ -5588,7 +5588,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5588
5588
|
}
|
|
5589
5589
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5590
5590
|
|
|
5591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5592
5592
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5593
5593
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5594
5594
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5978,7 +5978,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5978
5978
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5979
5979
|
}, "given");
|
|
5980
5980
|
|
|
5981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5982
5982
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
5983
5983
|
const { deadline, signal, app } = environmentOf(command);
|
|
5984
5984
|
const now = deadline?.();
|
|
@@ -6095,7 +6095,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6095
6095
|
return words.join(" ");
|
|
6096
6096
|
}, "commandPath");
|
|
6097
6097
|
|
|
6098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6099
6099
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6100
6100
|
var FETCH = { remote: "read", local: "write" };
|
|
6101
6101
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6203,7 +6203,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6203
6203
|
throw readOnlyRefusal(lock, what);
|
|
6204
6204
|
}, "refuseUnderReadOnly");
|
|
6205
6205
|
|
|
6206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
6207
6207
|
import { join as join4 } from "node:path";
|
|
6208
6208
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
6209
6209
|
var IMAGE_MODELS = [
|
|
@@ -6257,7 +6257,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
6257
6257
|
var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
|
|
6258
6258
|
var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
|
|
6259
6259
|
|
|
6260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
6261
6261
|
var STEPS2 = defineSteps([
|
|
6262
6262
|
...STEPS,
|
|
6263
6263
|
{
|
|
@@ -6524,7 +6524,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
6524
6524
|
].join(" ");
|
|
6525
6525
|
}, "stepLine");
|
|
6526
6526
|
|
|
6527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
6528
6528
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
6529
6529
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
6530
6530
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -6538,7 +6538,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
6538
6538
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
6539
6539
|
}, "strip");
|
|
6540
6540
|
|
|
6541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
6542
6542
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
6543
6543
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
6544
6544
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -6672,7 +6672,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
6672
6672
|
renderer.result(item);
|
|
6673
6673
|
}, "printItem");
|
|
6674
6674
|
|
|
6675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
6676
6676
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
6677
6677
|
var storeTable = strictObject({
|
|
6678
6678
|
name: text,
|
|
@@ -6681,7 +6681,7 @@ var storeTable = strictObject({
|
|
|
6681
6681
|
bytes: optional(nullable(count))
|
|
6682
6682
|
});
|
|
6683
6683
|
|
|
6684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
6685
6685
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6686
6686
|
const run = currentRun();
|
|
6687
6687
|
const trace = traceId ?? run.traceId;
|
|
@@ -6695,7 +6695,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6695
6695
|
}));
|
|
6696
6696
|
}, "recordLogFor");
|
|
6697
6697
|
|
|
6698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6699
6699
|
var attachment = strictObject({
|
|
6700
6700
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6701
6701
|
message: optional(reference),
|
|
@@ -6733,7 +6733,7 @@ var attachment = strictObject({
|
|
|
6733
6733
|
});
|
|
6734
6734
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
6735
6735
|
|
|
6736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6737
6737
|
var closeSuggestion = strictObject({
|
|
6738
6738
|
as: picklist(["done", "dismissed"]),
|
|
6739
6739
|
/** The agent's name. */
|
|
@@ -6791,7 +6791,7 @@ var task = strictObject({
|
|
|
6791
6791
|
updated_at: optional(time)
|
|
6792
6792
|
});
|
|
6793
6793
|
|
|
6794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6795
6795
|
var agendaChat = strictObject({
|
|
6796
6796
|
chat: reference,
|
|
6797
6797
|
title: nullable(text),
|
|
@@ -6861,7 +6861,7 @@ var agenda = strictObject({
|
|
|
6861
6861
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6862
6862
|
});
|
|
6863
6863
|
|
|
6864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
6865
6865
|
var WEIGHTS = {
|
|
6866
6866
|
bot: 3,
|
|
6867
6867
|
scam: 3,
|
|
@@ -6886,7 +6886,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
6886
6886
|
var DIGITS = /\d{5,}/;
|
|
6887
6887
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
6888
6888
|
|
|
6889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
6890
6890
|
var conversation = strictObject({
|
|
6891
6891
|
id,
|
|
6892
6892
|
chat: reference,
|
|
@@ -6901,7 +6901,7 @@ var conversation = strictObject({
|
|
|
6901
6901
|
rules_version: count
|
|
6902
6902
|
});
|
|
6903
6903
|
|
|
6904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
6905
6905
|
var tagging = strictObject({
|
|
6906
6906
|
tag: text,
|
|
6907
6907
|
type: picklist(TAG_TYPES),
|
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
commandPathOf,
|
|
7
7
|
findCommand,
|
|
8
8
|
outputOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-6FBBDIX6.js";
|
|
10
|
+
import "./chunk-EVG7MOAH.js";
|
|
11
|
+
import "./chunk-Z3TZTOR2.js";
|
|
12
|
+
import "./chunk-SEL7SJCM.js";
|
|
13
|
+
import "./chunk-M55XFZMG.js";
|
|
14
|
+
import "./chunk-65SVO3T7.js";
|
|
15
|
+
import "./chunk-UHBCL66Y.js";
|
|
16
|
+
import "./chunk-GPCKNZIA.js";
|
|
17
|
+
import "./chunk-DQHAXX33.js";
|
|
18
|
+
import "./chunk-EUJTQY43.js";
|
|
19
|
+
import "./chunk-QO4K6R7K.js";
|
|
20
20
|
import "./chunk-EKRM2QJB.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-PC3AFEEA.js";
|
|
22
|
+
import "./chunk-HZ42NO25.js";
|
|
23
23
|
import "./chunk-ZISFMUYB.js";
|
|
24
24
|
import "./chunk-NAIJNJZZ.js";
|
|
25
25
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YXQIZORE.js";
|
|
7
7
|
import "./chunk-ZISFMUYB.js";
|
|
8
8
|
import "./chunk-NAIJNJZZ.js";
|
|
9
9
|
import {
|
|
@@ -16,7 +16,7 @@ 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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
20
20
|
import { spawn } from "node:child_process";
|
|
21
21
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
22
22
|
import { createRequire } from "node:module";
|