@wirecat/tg-cli 0.122.0 → 0.123.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/contracts/wirecat.json +15 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-ZI57T2L5.js → adapter-GAOG65O2.js} +46 -46
- package/dist/bundle/{all-profiles-7VXJF42C.js → all-profiles-HLE6PHNI.js} +8 -8
- package/dist/bundle/{anthropic-DKRXIWVV.js → anthropic-FZC4BS7T.js} +4 -4
- package/dist/bundle/{app-server-F5MKHZ7S.js → app-server-SHZNMV27.js} +40 -40
- package/dist/bundle/{bot-api-F24NWJT3.js → bot-api-LRS2KMDE.js} +46 -46
- package/dist/bundle/{bot-history-U3WM3A7S.js → bot-history-IJ7ZZKW5.js} +16 -16
- package/dist/bundle/{bun-OMTJAXGK.js → bun-FACL53HM.js} +2 -2
- package/dist/bundle/{bun-sqlite-HSYLO46A.js → bun-sqlite-B2MD7RTL.js} +8 -4
- package/dist/bundle/{chunk-ZNPRTCUO.js → chunk-3BUQXB7B.js} +7 -7
- package/dist/bundle/{chunk-DCGGZUNJ.js → chunk-3JISIGLP.js} +2 -2
- package/dist/bundle/{chunk-VDFEWSCS.js → chunk-3P7HWXDJ.js} +3 -3
- package/dist/bundle/{chunk-U6HEZPCR.js → chunk-3S6KZCZ7.js} +1 -1
- package/dist/bundle/{chunk-ARKB3M5X.js → chunk-4DCFLHLN.js} +3 -3
- package/dist/bundle/{chunk-VC6J7X76.js → chunk-5IHYZ6ED.js} +11 -11
- package/dist/bundle/{chunk-7DPWVKYS.js → chunk-5R5HGV2J.js} +2 -2
- package/dist/bundle/{chunk-DTTONQW7.js → chunk-6FK2Z75N.js} +2 -2
- package/dist/bundle/{chunk-GJBGZQHN.js → chunk-6KT5BTWL.js} +162 -149
- package/dist/bundle/{chunk-6LMEIELG.js → chunk-7EFJHLKW.js} +1 -1
- package/dist/bundle/{chunk-N7WDVH2O.js → chunk-ADI5R2MM.js} +29 -29
- package/dist/bundle/{chunk-YFEH7OWG.js → chunk-B6G3TNN4.js} +14 -14
- package/dist/bundle/{chunk-PG3V225O.js → chunk-BAB3ALHZ.js} +27 -24
- package/dist/bundle/{chunk-R2IW6JBV.js → chunk-BGUYYKS3.js} +48 -48
- package/dist/bundle/{chunk-4MFMUBHH.js → chunk-DEMGDKCX.js} +77 -77
- package/dist/bundle/{chunk-Y74WJL3M.js → chunk-E2Z4C6CQ.js} +2 -2
- package/dist/bundle/{chunk-FZKHFTKH.js → chunk-EABZ2CUG.js} +15 -14
- package/dist/bundle/{chunk-SODUFMDW.js → chunk-EISV5YWD.js} +1060 -913
- package/dist/bundle/{chunk-33ELXJRR.js → chunk-ENEMZAIJ.js} +10 -10
- package/dist/bundle/{chunk-7FWU4RON.js → chunk-EOUUI5FI.js} +3 -3
- package/dist/bundle/{chunk-VQL4RVXZ.js → chunk-FFHX7VKP.js} +1 -1
- package/dist/bundle/{chunk-7I6YVQHW.js → chunk-HJLTWT52.js} +1 -1
- package/dist/bundle/{chunk-ZKHXWSKD.js → chunk-I7K4OR5Q.js} +4 -4
- package/dist/bundle/chunk-KKMNMQMW.js +53 -0
- package/dist/bundle/{chunk-FHWUOFWX.js → chunk-MFN5MSIL.js} +3 -3
- package/dist/bundle/{chunk-NE3EGYPD.js → chunk-NYRAW4M5.js} +3 -3
- package/dist/bundle/{chunk-V4BPS7MH.js → chunk-OE5JMZSM.js} +6 -6
- package/dist/bundle/{chunk-W34QQMBK.js → chunk-OOWE2O5U.js} +1 -1
- package/dist/bundle/{chunk-HAR76KJG.js → chunk-PAHSIORC.js} +5 -5
- package/dist/bundle/{chunk-GJFICFQB.js → chunk-PZJXQMSZ.js} +1 -1
- package/dist/bundle/{chunk-7GCVON7M.js → chunk-PZQ2MQFX.js} +5 -5
- package/dist/bundle/{chunk-7X6YLKTK.js → chunk-Q74XVJFT.js} +1 -1
- package/dist/bundle/{chunk-O5A4IS2D.js → chunk-QLB3BFSN.js} +1 -1
- package/dist/bundle/{chunk-CB6AHU6H.js → chunk-QLXKWAET.js} +20 -11
- package/dist/bundle/{chunk-YDMKP7PO.js → chunk-QVMAZVSN.js} +1 -1
- package/dist/bundle/{chunk-CW3C7FSO.js → chunk-RDKPKS2P.js} +1 -1
- package/dist/bundle/{chunk-ALW7ROTM.js → chunk-SCGCDLI7.js} +1 -1
- package/dist/bundle/{chunk-WGGSFGNZ.js → chunk-SMFUKHG2.js} +24 -0
- package/dist/bundle/{chunk-DDSAJKPO.js → chunk-SNEJK4SN.js} +4 -4
- package/dist/bundle/{chunk-4N2WJYLE.js → chunk-STPYSD6W.js} +2 -2
- package/dist/bundle/{chunk-NU4RMUMQ.js → chunk-SWGGYBCW.js} +13 -13
- package/dist/bundle/{chunk-6DLRATDC.js → chunk-T5OO7VDT.js} +302 -260
- package/dist/bundle/{chunk-D3ODL4P7.js → chunk-U5FILNK6.js} +2 -2
- package/dist/bundle/{chunk-2UHANFLM.js → chunk-UB6J5HRW.js} +3 -3
- package/dist/bundle/{chunk-E3MFMMVY.js → chunk-UBFDPLFQ.js} +5 -5
- package/dist/bundle/{chunk-QROAXWDU.js → chunk-V23X3W2W.js} +7 -7
- package/dist/bundle/{chunk-UGEYQWEO.js → chunk-V4722KYX.js} +1 -1
- package/dist/bundle/{chunk-C5CB6RIX.js → chunk-V4JEZFW5.js} +1 -1
- package/dist/bundle/{chunk-2FXA32RJ.js → chunk-VVRWH5VH.js} +7 -7
- package/dist/bundle/{chunk-TKJZENAZ.js → chunk-WA7YED3Y.js} +1 -1
- package/dist/bundle/{chunk-LQRZUNYF.js → chunk-WSLTW6MI.js} +2 -2
- package/dist/bundle/{chunk-FYHFAOPM.js → chunk-XDL4L3OI.js} +9103 -8607
- package/dist/bundle/{chunk-27SVHRHV.js → chunk-Z5HHBTS5.js} +2 -2
- package/dist/bundle/{chunk-MFWWZ6XL.js → chunk-ZJPXRW65.js} +3 -3
- package/dist/bundle/{chunk-FATTEYZH.js → chunk-ZOBRYIUG.js} +1 -1
- package/dist/bundle/{chunk-RFFU6KQ5.js → chunk-ZQ3WGGKK.js} +12 -12
- package/dist/bundle/command-contract-HWSWHMO4.js +33 -0
- package/dist/bundle/{command-server-entry-N32NX4QW.js → command-server-entry-5LKDRLEX.js} +20 -20
- package/dist/bundle/{decode-ZKJWSFXF.js → decode-L4DQDHXA.js} +4 -4
- package/dist/bundle/{dispatch-U2DW6UI7.js → dispatch-PQSCFHEX.js} +1 -1
- package/dist/bundle/{echarts-QLVLIP73.js → echarts-6LES2JIV.js} +2 -2
- package/dist/bundle/{embed-LC6K7P3S.js → embed-T5MLKX75.js} +5 -5
- package/dist/bundle/{embedder-6C3OQBOV.js → embedder-56NMRLC5.js} +8 -8
- package/dist/bundle/{entry-5H6LB3MP.js → entry-U5GV6Y46.js} +7 -7
- package/dist/bundle/{failure-HJD7S5UA.js → failure-BX5HJAQE.js} +1 -1
- package/dist/bundle/{first-run-IOYQ4XQK.js → first-run-ISQ52V3I.js} +8 -8
- package/dist/bundle/first-screen-7L4AMZDO.js +31 -0
- package/dist/bundle/{instructions-SZUMEDY3.js → instructions-CJEXDI7E.js} +1 -1
- package/dist/bundle/{node-V76RRFIA.js → node-QLWTGZW7.js} +2 -2
- package/dist/bundle/{node-sqlite-2DTVOT7L.js → node-sqlite-X2C3RR2Q.js} +9 -5
- package/dist/bundle/{oauth-CT7EBDRY.js → oauth-VP3KMHLX.js} +6 -6
- package/dist/bundle/{open-G3VHOOMV.js → open-GLR5EUZS.js} +4 -4
- package/dist/bundle/{openai-F4K7MVTZ.js → openai-6CDCJ5LQ.js} +12 -12
- package/dist/bundle/{process-XH3KEHSF.js → process-7FABZ3T2.js} +1 -1
- package/dist/bundle/{program-FLGIHTHM.js → program-KUIAHJDX.js} +49 -49
- package/dist/bundle/{prompt-JWQ6UQ6R.js → prompt-XPHIZMD2.js} +4 -4
- package/dist/bundle/{proxy-transport-ENU2SJYT.js → proxy-transport-IIB7ZXIS.js} +4 -4
- package/dist/bundle/{recognize-Z26T3SYD.js → recognize-FVFYI3XX.js} +3 -3
- package/dist/bundle/{remote-7KHT6V3O.js → remote-3AMCG2P4.js} +6 -6
- package/dist/bundle/{rerank-6QVI74QY.js → rerank-XV4E25ML.js} +6 -6
- package/dist/bundle/{serve-WYDZTONY.js → serve-NVSZA4UN.js} +8 -8
- package/dist/bundle/{server-Y4J2NCFA.js → server-MBMPHRJE.js} +31 -31
- package/dist/bundle/server-MHVGYRQZ.js +61 -0
- package/dist/bundle/{state-YCXBKOD2.js → state-JBMB2QUR.js} +5 -5
- package/dist/bundle/{store-QECSDJRP.js → store-T4SCYTY2.js} +11 -11
- package/dist/bundle/store-maintenance-command-F7WQMTMP.js +49 -0
- package/dist/bundle/tg.js +6 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-Y52T5EMB.js +0 -35
- package/dist/bundle/command-contract-247AKZTE.js +0 -33
- package/dist/bundle/first-screen-NVK7PFX4.js +0 -31
- package/dist/bundle/server-UXQT7LZT.js +0 -61
- package/dist/bundle/store-maintenance-command-5YW6TRJA.js +0 -49
|
@@ -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-PZQ2MQFX.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-VUBZFMGP.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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DEMGDKCX.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
strictObject,
|
|
17
17
|
string,
|
|
18
18
|
unknown
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SMFUKHG2.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FFHX7VKP.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-VUBZFMGP.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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-B2MD7RTL.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-X2C3RR2Q.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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"];
|
|
@@ -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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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();
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
isCliFailure,
|
|
5
5
|
secretNamed,
|
|
6
6
|
withoutSecrets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z5HHBTS5.js";
|
|
8
8
|
import {
|
|
9
9
|
isContentKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3S6KZCZ7.js";
|
|
11
11
|
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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
16
16
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
20
20
|
import { homedir } from "node:os";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
23
23
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
24
24
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
25
25
|
if (event.event === "store")
|
|
@@ -69,7 +69,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
69
69
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
70
70
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
71
71
|
|
|
72
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
73
73
|
var MESSAGE_AT_MOST = 500;
|
|
74
74
|
var CAUSES_AT_MOST = 5;
|
|
75
75
|
var FRAMES_AT_MOST = 15;
|
|
@@ -178,7 +178,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
178
178
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
179
179
|
}, "redactText");
|
|
180
180
|
|
|
181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
182
182
|
var REDACTED = "[redacted]";
|
|
183
183
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
184
184
|
if (!record)
|
|
@@ -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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V4JEZFW5.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-VUBZFMGP.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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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 EMPTY_TRIES = 3;
|