@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,14 +7,14 @@ 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/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/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-AGK2BHAN.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-7FHC3W5U.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-M55XFZMG.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// 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/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PC3AFEEA.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -16,12 +16,12 @@ 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/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// 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/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// 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/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// 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/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -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/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -31,7 +31,7 @@ var ENTRIES = [
|
|
|
31
31
|
var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
32
32
|
|
|
33
33
|
// dist/version.js
|
|
34
|
-
var VERSION = "0.
|
|
34
|
+
var VERSION = "0.9.0";
|
|
35
35
|
|
|
36
36
|
// dist/identity.js
|
|
37
37
|
var PACKAGE = "@wirecat/mail-cli";
|
|
@@ -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/search/languages.js
|
|
11
11
|
var LANGUAGES = [
|
|
12
12
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
13
13
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -15,12 +15,12 @@ var LANGUAGES = [
|
|
|
15
15
|
];
|
|
16
16
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// 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/store/normalize.js
|
|
19
19
|
var NORMALIZER_VERSION = 1;
|
|
20
20
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
21
21
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// 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/search/snowball/base-stemmer.js
|
|
24
24
|
var BaseStemmer = class {
|
|
25
25
|
static {
|
|
26
26
|
__name(this, "BaseStemmer");
|
|
@@ -395,7 +395,7 @@ var BaseStemmer = class {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
398
|
+
// 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/search/snowball/english-stemmer.js
|
|
399
399
|
var a_0 = [
|
|
400
400
|
["arsen", -1],
|
|
401
401
|
["commun", -1],
|
|
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1096
1096
|
stemWord = this.stem;
|
|
1097
1097
|
};
|
|
1098
1098
|
|
|
1099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1099
|
+
// 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/search/snowball/russian-stemmer.js
|
|
1100
1100
|
var a_02 = [
|
|
1101
1101
|
["\u0432", 1],
|
|
1102
1102
|
["\u0438\u0432", 2, 1],
|
|
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1519
1519
|
stemWord = this.stem;
|
|
1520
1520
|
};
|
|
1521
1521
|
|
|
1522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1522
|
+
// 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/search/snowball/spanish-stemmer.js
|
|
1523
1523
|
var a_03 = [
|
|
1524
1524
|
["", 6],
|
|
1525
1525
|
["\xE1", 1, 1],
|
|
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2195
2195
|
stemWord = this.stem;
|
|
2196
2196
|
};
|
|
2197
2197
|
|
|
2198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2198
|
+
// 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/search/stem.js
|
|
2199
2199
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2200
2200
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2201
2201
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|
|
@@ -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/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -10,7 +10,7 @@ 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/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JZMPDFM4.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-L3KMVMRJ.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// 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/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readSharedSection,
|
|
5
5
|
writeSharedSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QO4K6R7K.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
9
|
} from "./chunk-L3KMVMRJ.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// 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/setup-answers.js
|
|
15
15
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
16
16
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
17
17
|
var SECTION = "setup";
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ENTITIES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EVG7MOAH.js";
|
|
6
6
|
import {
|
|
7
7
|
annotate,
|
|
8
8
|
answerSchema,
|
|
9
9
|
describeOptions,
|
|
10
10
|
metaOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Z3TZTOR2.js";
|
|
12
12
|
import {
|
|
13
13
|
keyForCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SEL7SJCM.js";
|
|
15
15
|
import {
|
|
16
16
|
jsonSchemaOf
|
|
17
17
|
} from "./chunk-NAIJNJZZ.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
__name
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// 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/answer-entity.js
|
|
26
26
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
27
27
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
|
|
28
28
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -52,7 +52,7 @@ var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
|
|
|
52
52
|
return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
|
|
53
53
|
}, "answerProjectionSchema");
|
|
54
54
|
|
|
55
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
55
|
+
// 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/command-contract.js
|
|
56
56
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
57
57
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
58
58
|
const entity = answerEntitySchema(command);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
commandPathOf,
|
|
5
5
|
findCommand,
|
|
6
6
|
outputOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6FBBDIX6.js";
|
|
8
8
|
import {
|
|
9
9
|
wrapAnsi
|
|
10
10
|
} from "./chunk-HTQTIKWP.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Z3TZTOR2.js";
|
|
22
22
|
import {
|
|
23
23
|
writes
|
|
24
24
|
} from "./chunk-NAIJNJZZ.js";
|
|
@@ -29,7 +29,7 @@ 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.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/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.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/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.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/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.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/help/first-screen.js
|
|
325
325
|
var WIRECAT_TOOLS = [
|
|
326
326
|
{
|
|
327
327
|
command: "tg",
|
|
@@ -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/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -8,25 +8,25 @@ import {
|
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-65SVO3T7.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4EFKQXA5.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QO4K6R7K.js";
|
|
19
19
|
import {
|
|
20
20
|
installerOf
|
|
21
21
|
} from "./chunk-DLB2JPLU.js";
|
|
22
22
|
import {
|
|
23
23
|
storePath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HZ42NO25.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// 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/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-EQC5DKSY.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-AY5KLPWO.js"),
|
|
117
|
+
import("./store-maintenance-command-7YQZXE4V.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-IJJZJP6Q.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-STNX6JL7.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|
|
@@ -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/tasks/model.js
|
|
11
11
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
12
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
13
13
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -22,7 +22,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
22
22
|
}
|
|
23
23
|
__name(closeTask, "closeTask");
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// 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/tasks/priority.js
|
|
26
26
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
27
27
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
28
28
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -51,7 +51,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
51
51
|
}, "priorityOf");
|
|
52
52
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
53
53
|
|
|
54
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54
|
+
// 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/tasks/service.js
|
|
55
55
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
56
56
|
async function find(id) {
|
|
57
57
|
const task = await store.get(id);
|
|
@@ -111,13 +111,13 @@ function median(values) {
|
|
|
111
111
|
}
|
|
112
112
|
__name(median, "median");
|
|
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/tasks/store.js
|
|
115
115
|
function matches(task, filter) {
|
|
116
116
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
117
117
|
}
|
|
118
118
|
__name(matches, "matches");
|
|
119
119
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
120
|
+
// 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/knowledge.js
|
|
121
121
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
122
122
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
123
123
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
@@ -126,7 +126,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
126
126
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
127
127
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
128
128
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
129
|
+
// 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/store/sqlite/link-kinds.js
|
|
130
130
|
var LINK_KINDS = [
|
|
131
131
|
"links-to",
|
|
132
132
|
"blocked-by",
|