@wirecat/mail-cli 0.4.0 → 0.5.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-55XPXQHY.js → all-profiles-GR5JXYEQ.js} +5 -5
- package/dist/bundle/{anthropic-K5B6I4LB.js → anthropic-REBXE65F.js} +3 -3
- package/dist/bundle/{app-server-VWWLQLTZ.js → app-server-QJ7ICQXZ.js} +39 -39
- package/dist/bundle/{bun-EO7AI6YP.js → bun-WAX4QHW5.js} +2 -2
- package/dist/bundle/{bun-sqlite-F24A4IOP.js → bun-sqlite-5S7TQ4SG.js} +2 -2
- package/dist/bundle/{chunk-5RUTHKXZ.js → chunk-2FXVBCA3.js} +3 -3
- package/dist/bundle/{chunk-UO7X2VW4.js → chunk-2MRECWJZ.js} +5 -5
- package/dist/bundle/{chunk-BHKI5OCD.js → chunk-2U4IANVV.js} +1 -1
- package/dist/bundle/{chunk-6BNMEOVS.js → chunk-2YQNBIDQ.js} +3 -3
- package/dist/bundle/{chunk-HORM6VRV.js → chunk-4BMNP2FT.js} +1 -1
- package/dist/bundle/{chunk-M4NTQ247.js → chunk-4XJ4AM3K.js} +10 -10
- package/dist/bundle/{chunk-X7AXH2IC.js → chunk-5CXAH4Y6.js} +195 -195
- package/dist/bundle/{chunk-YYTWV5GU.js → chunk-5FK6RD4M.js} +42 -42
- package/dist/bundle/{chunk-VWHRIGYJ.js → chunk-5INWLYBD.js} +2 -2
- package/dist/bundle/{chunk-EDKV6D6T.js → chunk-6EO7GVYJ.js} +1 -1
- package/dist/bundle/{chunk-IIO6NXCA.js → chunk-6GE3EADU.js} +2 -2
- package/dist/bundle/{chunk-RLSGMMGC.js → chunk-6TY3DGCC.js} +4 -4
- package/dist/bundle/{chunk-JKHI3PH7.js → chunk-7A7BHABA.js} +1 -1
- package/dist/bundle/{chunk-SY3SP7EI.js → chunk-7F3NDIYL.js} +5 -5
- package/dist/bundle/{chunk-ANRI6EZY.js → chunk-7JCRQX56.js} +7 -7
- package/dist/bundle/{chunk-MGBGE2Y4.js → chunk-7XNPSIWD.js} +2 -2
- package/dist/bundle/{chunk-7IYDIU4P.js → chunk-AFCGOZR7.js} +5 -5
- package/dist/bundle/{chunk-ID24SLH3.js → chunk-B5WSIWY5.js} +16 -16
- package/dist/bundle/{chunk-HJEMHZRU.js → chunk-BFJV4FWJ.js} +1 -1
- package/dist/bundle/{chunk-LKDK5YMI.js → chunk-BLS5YG77.js} +1 -1
- package/dist/bundle/{chunk-UJYCKCFR.js → chunk-CEAANMJ2.js} +2 -2
- package/dist/bundle/{chunk-7QQ4EMYF.js → chunk-DXDQOZ2P.js} +2 -2
- package/dist/bundle/{chunk-NL5LNYGX.js → chunk-EB3R2PV3.js} +21 -21
- package/dist/bundle/{chunk-VWXCEEUH.js → chunk-EL554DV2.js} +2 -2
- package/dist/bundle/{chunk-JZFIHVRB.js → chunk-ESNNQA7D.js} +26 -26
- package/dist/bundle/{chunk-ZAR67WKR.js → chunk-F3NYA4KN.js} +5 -5
- package/dist/bundle/{chunk-QYWDC7NP.js → chunk-FSUNGHRI.js} +43 -43
- package/dist/bundle/{chunk-EOEYP7CJ.js → chunk-HCMUGUAG.js} +2 -2
- package/dist/bundle/{chunk-HUB42T2Z.js → chunk-IBYTYIYO.js} +46 -46
- package/dist/bundle/{chunk-CCNHVZ3G.js → chunk-IWDOGGMY.js} +246 -246
- package/dist/bundle/{chunk-WFBTPZK3.js → chunk-JJBQPA7D.js} +3 -3
- package/dist/bundle/{chunk-7X64JS6S.js → chunk-KIDF77MA.js} +1 -1
- package/dist/bundle/{chunk-2ADB5DSG.js → chunk-LFRHIXCF.js} +2 -2
- package/dist/bundle/{chunk-FFKNUVVD.js → chunk-LNS27BTB.js} +1 -1
- package/dist/bundle/{chunk-F7KAJNNK.js → chunk-LOA4X6JW.js} +4 -4
- package/dist/bundle/{chunk-4KLJN3LK.js → chunk-M6BDHZON.js} +11 -11
- package/dist/bundle/{chunk-F6JTOQIK.js → chunk-MMDCL42A.js} +4 -4
- package/dist/bundle/{chunk-SWRNMYDL.js → chunk-MQUJEQTU.js} +1 -1
- package/dist/bundle/{chunk-CSI73XJ5.js → chunk-PJCTWPJB.js} +6 -6
- package/dist/bundle/{chunk-CADRRSQK.js → chunk-QXOSGGKS.js} +1 -1
- package/dist/bundle/{chunk-VP5GCMHM.js → chunk-S677WGOQ.js} +5 -5
- package/dist/bundle/{chunk-2NZGUKYK.js → chunk-SQ7KOBRA.js} +6 -6
- package/dist/bundle/{chunk-UZDHK26H.js → chunk-SWJAG5IE.js} +1 -1
- package/dist/bundle/{chunk-OM4ZBLT7.js → chunk-VDAIJM5L.js} +13 -13
- package/dist/bundle/{chunk-ORYYYM5Y.js → chunk-VXAZZGXE.js} +21 -21
- package/dist/bundle/{chunk-2LP46EUH.js → chunk-WNCCYHRV.js} +91 -91
- package/dist/bundle/{chunk-H7K2DN3R.js → chunk-WNI5BZFB.js} +7 -7
- package/dist/bundle/{chunk-XJ5TBPCK.js → chunk-YD5WV757.js} +1 -1
- package/dist/bundle/{chunk-YSSMDVT3.js → chunk-YKPBC3NL.js} +1 -1
- package/dist/bundle/{chunk-6BR6JMCR.js → chunk-YRGBZZUW.js} +9 -9
- package/dist/bundle/{command-contract-L65UZ7AF.js → command-contract-GPUED3GT.js} +13 -13
- package/dist/bundle/{decode-ON4KBMEX.js → decode-D7BDVIVB.js} +2 -2
- package/dist/bundle/{dist-FMN7UZ7R.js → dist-KJOAJ6NF.js} +14 -14
- package/dist/bundle/{echarts-XPA226QR.js → echarts-IVRX7XHP.js} +2 -2
- package/dist/bundle/{embed-QERDAB73.js → embed-X527RBTG.js} +3 -3
- package/dist/bundle/{embedder-I76YT3E5.js → embedder-F4PSJS6S.js} +6 -6
- package/dist/bundle/{first-run-KZJFR55N.js → first-run-M5CIX6NA.js} +5 -5
- package/dist/bundle/{first-screen-EORANEAK.js → first-screen-M7MT776O.js} +14 -14
- package/dist/bundle/{instructions-NN3BCFIM.js → instructions-UX36BT5F.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-2S75QJ6B.js → node-OXT7WE2T.js} +2 -2
- package/dist/bundle/{node-sqlite-RC7WM3EG.js → node-sqlite-X2PSEHA4.js} +2 -2
- package/dist/bundle/{oauth-FUHLZCKV.js → oauth-MYK4BSYN.js} +4 -4
- package/dist/bundle/{open-JOKT7LKY.js → open-GONIP2DH.js} +1 -1
- package/dist/bundle/{openai-U3IMQ6UI.js → openai-YJFNUOQT.js} +10 -10
- package/dist/bundle/{process-LKODK722.js → process-7IEUUSRK.js} +1 -1
- package/dist/bundle/{program-RMLIQXCA.js → program-Q73TTG3E.js} +291 -288
- package/dist/bundle/{prompt-23VYMNNB.js → prompt-SKQ72KN7.js} +2 -2
- package/dist/bundle/{recognize-TXO3462R.js → recognize-GC7CU2DB.js} +1 -1
- package/dist/bundle/{remote-5F4ZOASM.js → remote-UEXFZP2I.js} +4 -4
- package/dist/bundle/{rerank-TXSDPEFE.js → rerank-2U2NDEZP.js} +4 -4
- package/dist/bundle/{serve-TWYECYWM.js → serve-OOGKFEWL.js} +6 -6
- package/dist/bundle/server-4JMHDHZ7.js +63 -0
- package/dist/bundle/{server-3S3BKE6D.js → server-FZ3LFQTF.js} +31 -31
- package/dist/bundle/{sqlite-runtime-BEOBGC6K.js → sqlite-runtime-GIQSW6LJ.js} +2 -2
- package/dist/bundle/{state-ERWIUTQQ.js → state-EMFXPQVZ.js} +3 -3
- package/dist/bundle/{store-4RY5UMOP.js → store-BDU4UPNK.js} +11 -11
- package/dist/bundle/{store-2JO4JGQL.js → store-LDI62AUG.js} +9 -9
- package/dist/bundle/store-maintenance-command-OFRPORN2.js +52 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -2
- package/dist/program.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-2GEAXKX2.js +0 -63
- package/dist/bundle/store-maintenance-command-T7D4OTN7.js +0 -52
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
organization,
|
|
5
5
|
project,
|
|
6
6
|
reminder
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2FXVBCA3.js";
|
|
8
8
|
import {
|
|
9
9
|
MIGRATIONS,
|
|
10
10
|
SnapshotBudget,
|
|
@@ -28,19 +28,19 @@ import {
|
|
|
28
28
|
tagMemberIds,
|
|
29
29
|
thingOf,
|
|
30
30
|
write
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IWDOGGMY.js";
|
|
32
32
|
import {
|
|
33
33
|
filesAccountSql,
|
|
34
34
|
folderProviderOf,
|
|
35
35
|
folderProviderSql,
|
|
36
36
|
isDocumentAccountProvider
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7F3NDIYL.js";
|
|
38
38
|
import {
|
|
39
39
|
queryFieldsOf
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5FK6RD4M.js";
|
|
41
41
|
import {
|
|
42
42
|
fold
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-7JCRQX56.js";
|
|
44
44
|
import {
|
|
45
45
|
CliError
|
|
46
46
|
} from "./chunk-5BVIWP3S.js";
|
|
@@ -48,11 +48,11 @@ import {
|
|
|
48
48
|
__name
|
|
49
49
|
} from "./chunk-ZVVMGPBJ.js";
|
|
50
50
|
|
|
51
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
52
52
|
import { realpathSync, statSync } from "node:fs";
|
|
53
53
|
import { resolve } from "node:path";
|
|
54
54
|
|
|
55
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
55
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
|
|
56
56
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
57
57
|
const creatable = /* @__PURE__ */ new Set();
|
|
58
58
|
let people = 0, identities = 0;
|
|
@@ -115,11 +115,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
115
115
|
}
|
|
116
116
|
}, "copyPeople");
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
|
|
119
119
|
import { createHash } from "node:crypto";
|
|
120
120
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
|
|
123
123
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
124
124
|
const colon = collection.indexOf(":");
|
|
125
125
|
const provider = collection.slice(0, colon);
|
|
@@ -163,7 +163,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
163
163
|
};
|
|
164
164
|
}, "currentCollection");
|
|
165
165
|
|
|
166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
|
|
167
167
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
168
168
|
const mappings = /* @__PURE__ */ new Map();
|
|
169
169
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -330,7 +330,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
330
330
|
};
|
|
331
331
|
}, "planTransfer");
|
|
332
332
|
|
|
333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
334
334
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
335
335
|
var MAX_ENTITIES = 1e3;
|
|
336
336
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -492,7 +492,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
492
492
|
};
|
|
493
493
|
}), "transferSnapshot");
|
|
494
494
|
|
|
495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
|
|
496
496
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
497
497
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
498
498
|
return provider ?? null;
|
|
@@ -664,7 +664,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
664
664
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
665
665
|
}, "remapEntity");
|
|
666
666
|
|
|
667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
668
668
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
669
669
|
for (const value of [options.source, options.destination, options.collection])
|
|
670
670
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -760,7 +760,7 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
|
|
|
760
760
|
}
|
|
761
761
|
}, "applyDocumentTransfer");
|
|
762
762
|
|
|
763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
764
764
|
var ORGANIZATIONS_QUERY = {
|
|
765
765
|
entity: "organization",
|
|
766
766
|
backend: "sql",
|
|
@@ -795,7 +795,7 @@ var REMINDERS_QUERY = {
|
|
|
795
795
|
})
|
|
796
796
|
};
|
|
797
797
|
|
|
798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
799
799
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
800
800
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
801
801
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -817,7 +817,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
817
817
|
}
|
|
818
818
|
}, "previewProjectAnnotationSnapshot");
|
|
819
819
|
|
|
820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
821
821
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
822
822
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
823
823
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
16
16
|
import { styleText } from "node:util";
|
|
17
17
|
var TIME_WIDTH = 8;
|
|
18
18
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F3NYA4KN.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-5BVIWP3S.js";
|
|
@@ -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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CAPABILITY_STATEMENTS,
|
|
5
5
|
storeCapable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2MRECWJZ.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
15
15
|
import { spawn, spawnSync } from "node:child_process";
|
|
16
16
|
import { readFileSync } from "node:fs";
|
|
17
17
|
import { dirname } from "node:path";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
refuseLacking,
|
|
8
8
|
servicesFor,
|
|
9
9
|
throughWrapper
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5CXAH4Y6.js";
|
|
11
11
|
import {
|
|
12
12
|
foldName,
|
|
13
13
|
isId,
|
|
14
14
|
pickPerson
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-S677WGOQ.js";
|
|
16
16
|
import {
|
|
17
17
|
LOG_ATTRIBUTES,
|
|
18
18
|
MESSENGER_CHANGE_REFUSAL,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
recalledAccount,
|
|
32
32
|
rememberAccount,
|
|
33
33
|
rootOf2 as rootOf
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-IBYTYIYO.js";
|
|
35
35
|
import {
|
|
36
36
|
AUTHORITY_KEY,
|
|
37
37
|
CEILING_KEY,
|
|
@@ -42,17 +42,17 @@ import {
|
|
|
42
42
|
levelFor,
|
|
43
43
|
readKeysForCommand,
|
|
44
44
|
skipFlagFor
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MMDCL42A.js";
|
|
46
46
|
import {
|
|
47
47
|
isCliFailure,
|
|
48
48
|
providerErrorKey
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-WNI5BZFB.js";
|
|
50
50
|
import {
|
|
51
51
|
servingProfiles
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-HCMUGUAG.js";
|
|
53
53
|
import {
|
|
54
54
|
openStore
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-IWDOGGMY.js";
|
|
56
56
|
import {
|
|
57
57
|
logRecordOf,
|
|
58
58
|
realSleep,
|
|
@@ -66,10 +66,10 @@ import {
|
|
|
66
66
|
__name
|
|
67
67
|
} from "./chunk-ZVVMGPBJ.js";
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
70
70
|
import { randomUUID } from "node:crypto";
|
|
71
71
|
|
|
72
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
73
73
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
74
74
|
import { dirname, join } from "node:path";
|
|
75
75
|
var MOST_DEADLINES = 50;
|
|
@@ -153,11 +153,11 @@ var FloodMemory = class {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
157
157
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
158
158
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
159
159
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
161
161
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
162
162
|
import { dirname as dirname2 } from "node:path";
|
|
163
163
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -224,7 +224,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
224
224
|
}
|
|
225
225
|
}, "lockTime");
|
|
226
226
|
|
|
227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
228
228
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
229
229
|
var SendJournal = class {
|
|
230
230
|
static {
|
|
@@ -301,7 +301,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
301
301
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
302
302
|
}, "withSendId");
|
|
303
303
|
|
|
304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
305
305
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
306
306
|
import { join as join3 } from "node:path";
|
|
307
307
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -413,7 +413,7 @@ var RecipientList = class {
|
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
417
417
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
418
418
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
419
419
|
"attachments.extract",
|
|
@@ -606,7 +606,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
606
606
|
}), "guardFor");
|
|
607
607
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
608
608
|
|
|
609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
610
610
|
import { openSync as openSync2 } from "node:fs";
|
|
611
611
|
import { createInterface } from "node:readline";
|
|
612
612
|
import { ReadStream } from "node:tty";
|
|
@@ -661,7 +661,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
661
661
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
662
662
|
}, "terminalAsker");
|
|
663
663
|
|
|
664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
665
665
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
666
666
|
import { join as join4 } from "node:path";
|
|
667
667
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -720,7 +720,7 @@ var Pacer = class {
|
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
|
|
723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
724
724
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
725
725
|
"help",
|
|
726
726
|
"guide",
|
|
@@ -799,7 +799,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
799
799
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
800
800
|
}, "refuseUnknownPermissionKeys");
|
|
801
801
|
|
|
802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
803
803
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
804
804
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
805
805
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -918,7 +918,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
918
918
|
});
|
|
919
919
|
}, "flooded");
|
|
920
920
|
|
|
921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
922
922
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
923
923
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
924
924
|
const write = currentOperation();
|
|
@@ -1017,7 +1017,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1017
1017
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1018
1018
|
}, "byPart");
|
|
1019
1019
|
|
|
1020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1021
1021
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1022
1022
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
|
|
1023
1023
|
let warned = false;
|
|
@@ -1509,7 +1509,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1509
1509
|
}
|
|
1510
1510
|
}, "keep");
|
|
1511
1511
|
|
|
1512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1513
1513
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1514
1514
|
let opened;
|
|
1515
1515
|
return {
|
|
@@ -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-LOA4X6JW.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
9
|
} from "./chunk-5BVIWP3S.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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VDAIJM5L.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-VXAZZGXE.js";
|
|
38
38
|
import {
|
|
39
39
|
agentJson,
|
|
40
40
|
skillResource
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YRGBZZUW.js";
|
|
42
42
|
import {
|
|
43
43
|
instructions
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6EO7GVYJ.js";
|
|
45
45
|
import {
|
|
46
46
|
answeredWire
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-7A7BHABA.js";
|
|
48
48
|
import {
|
|
49
49
|
StdioServerTransport,
|
|
50
50
|
callerOf,
|
|
51
51
|
callingAgent,
|
|
52
52
|
serveStdio
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-7XNPSIWD.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-EB3R2PV3.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-5CXAH4Y6.js";
|
|
71
71
|
import {
|
|
72
72
|
findCommand
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-AFCGOZR7.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-IBYTYIYO.js";
|
|
89
89
|
import {
|
|
90
90
|
levelFor,
|
|
91
91
|
readKeysForCommand
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-MMDCL42A.js";
|
|
93
93
|
import {
|
|
94
94
|
isCliFailure,
|
|
95
95
|
withCaller
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-WNI5BZFB.js";
|
|
97
97
|
import {
|
|
98
98
|
mcpHttpMarker
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-6TY3DGCC.js";
|
|
100
100
|
import {
|
|
101
101
|
openStore,
|
|
102
102
|
pdfPreviewLimits
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-IWDOGGMY.js";
|
|
104
104
|
import {
|
|
105
105
|
timezoneOf
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-5FK6RD4M.js";
|
|
107
107
|
import {
|
|
108
108
|
warmEmbedders
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-F3NYA4KN.js";
|
|
110
110
|
import {
|
|
111
111
|
description,
|
|
112
112
|
integer,
|
|
@@ -131,10 +131,10 @@ 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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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-OOGKFEWL.js");
|
|
746
746
|
const appName = messenger.app.command;
|
|
747
747
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
748
748
|
const listening = await serveOverHttp(build, {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JJBQPA7D.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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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");
|