@wirecat/tg-cli 0.107.0 → 0.108.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-PN5AXCJ7.js → adapter-YFWRJWL5.js} +37 -37
- package/dist/bundle/{all-profiles-SDHNKZQQ.js → all-profiles-GQIZSF4W.js} +5 -5
- package/dist/bundle/{anthropic-F3BXQLYB.js → anthropic-BKWEDKPU.js} +3 -3
- package/dist/bundle/{app-server-XDKMWVCD.js → app-server-RJV7ICLH.js} +34 -34
- package/dist/bundle/{bot-api-YXJL4CEV.js → bot-api-2PAH2JZ3.js} +38 -38
- package/dist/bundle/{bot-history-SDLHR7PV.js → bot-history-DPPZ43F4.js} +10 -10
- package/dist/bundle/{bun-SMH7PKUS.js → bun-Q7COX3Z5.js} +2 -2
- package/dist/bundle/{bun-sqlite-KB6PSTWH.js → bun-sqlite-YI4AYZXO.js} +2 -2
- package/dist/bundle/{chunk-P5KMLJQR.js → chunk-26PWIQPP.js} +194 -194
- package/dist/bundle/{chunk-465FPHSG.js → chunk-3562DVQ7.js} +7 -7
- package/dist/bundle/{chunk-GJS26XEB.js → chunk-3GXKJKIC.js} +4 -4
- package/dist/bundle/{chunk-VMKPRAIB.js → chunk-3HYDKCXB.js} +4 -4
- package/dist/bundle/{chunk-44UANKAI.js → chunk-4RDMNNVO.js} +14 -9
- package/dist/bundle/{chunk-STGY3EAZ.js → chunk-5HPXENE5.js} +1 -1
- package/dist/bundle/{chunk-BMXGEQDA.js → chunk-5P27JGGA.js} +4 -4
- package/dist/bundle/{chunk-DBZVF73F.js → chunk-6MZ2ZBX4.js} +2 -2
- package/dist/bundle/{chunk-YA44IPCS.js → chunk-6QTUYMGX.js} +1 -1
- package/dist/bundle/{chunk-CJJVFGFX.js → chunk-76OSISA3.js} +1 -1
- package/dist/bundle/{chunk-GGAG3G7B.js → chunk-77OOX2OE.js} +47 -47
- package/dist/bundle/{chunk-53QVFV34.js → chunk-AOUB2QFP.js} +1 -1
- package/dist/bundle/{chunk-PYRJO6B3.js → chunk-AS2BVZU3.js} +3 -3
- package/dist/bundle/{chunk-AWBJSYX6.js → chunk-B7TFWNKJ.js} +1 -1
- package/dist/bundle/{chunk-A4DS5ANQ.js → chunk-BL72ZIBV.js} +1 -1
- package/dist/bundle/{chunk-REJM262E.js → chunk-BOSMBW4I.js} +10 -10
- package/dist/bundle/{chunk-JAWXJILO.js → chunk-BT6PWDM6.js} +2 -2
- package/dist/bundle/{chunk-TEHAIU6I.js → chunk-CVWF3BFK.js} +42 -42
- package/dist/bundle/{chunk-NSQL3YRD.js → chunk-CZANI3DM.js} +20 -20
- package/dist/bundle/{chunk-BGVODG6P.js → chunk-D6DBVPES.js} +2 -2
- package/dist/bundle/{chunk-NUVHRCUK.js → chunk-DNOJKQXQ.js} +255 -247
- package/dist/bundle/{chunk-BYDDYOF4.js → chunk-DUWTG2GE.js} +7 -7
- package/dist/bundle/{chunk-53RW4KLL.js → chunk-EBB7RFCW.js} +1 -1
- package/dist/bundle/{chunk-X7M7YZPF.js → chunk-EWL3ZFOI.js} +5 -5
- package/dist/bundle/{chunk-NMTFZNFU.js → chunk-F67VPIJL.js} +26 -26
- package/dist/bundle/{chunk-WXIGT6FY.js → chunk-KQFR7ZAA.js} +11 -11
- package/dist/bundle/{chunk-RGNKRI5T.js → chunk-KZPZFPGB.js} +20 -20
- package/dist/bundle/{chunk-YSDA3EWT.js → chunk-LY2LFJMU.js} +92 -92
- package/dist/bundle/{chunk-5QBTHR57.js → chunk-LYLGLFWY.js} +2 -2
- package/dist/bundle/{chunk-KROO42KC.js → chunk-NCXCBVHO.js} +5 -5
- package/dist/bundle/{chunk-JZOXKRDG.js → chunk-OB5PPPXH.js} +6 -6
- package/dist/bundle/{chunk-IY7IEM56.js → chunk-ON67U6WV.js} +4 -4
- package/dist/bundle/{chunk-3UEFJ75D.js → chunk-PCMW3PW6.js} +1 -1
- package/dist/bundle/{chunk-NCWB3KXP.js → chunk-PQHYM2XC.js} +1 -1
- package/dist/bundle/{chunk-TKCZYJAT.js → chunk-QVIT6SQ5.js} +1779 -1519
- package/dist/bundle/{chunk-H4LIQVPN.js → chunk-R5YOKYTE.js} +9 -9
- package/dist/bundle/{chunk-LA2OUJK5.js → chunk-REI5TPS3.js} +8 -8
- package/dist/bundle/{chunk-P5UG655O.js → chunk-SONKULUF.js} +2 -2
- package/dist/bundle/{chunk-WFG7KFM4.js → chunk-TVA3NXXO.js} +1 -1
- package/dist/bundle/{chunk-6FSG6QZH.js → chunk-VK2YLSK7.js} +1 -1
- package/dist/bundle/{chunk-MOZX3JX3.js → chunk-WEDWIXIC.js} +2 -2
- package/dist/bundle/{chunk-TFV4UPQZ.js → chunk-WKSLGPZQ.js} +3 -3
- package/dist/bundle/{chunk-DFZBGU4G.js → chunk-WUF64WOG.js} +4 -4
- package/dist/bundle/{chunk-P4A27ETD.js → chunk-XZXOGHU5.js} +70 -46
- package/dist/bundle/{chunk-OIHAM73W.js → chunk-YJ6GFFEE.js} +1 -1
- package/dist/bundle/{chunk-WS3S7DXT.js → chunk-ZHHVNTBJ.js} +1 -1
- package/dist/bundle/{chunk-O7VQHFMZ.js → chunk-ZYBDAZFO.js} +1 -1
- package/dist/bundle/{command-contract-B4DA4MXP.js → command-contract-5GJV6EHG.js} +12 -12
- package/dist/bundle/{decode-WEP3HD56.js → decode-ZFAFVFWX.js} +2 -2
- package/dist/bundle/{echarts-MRMILSAF.js → echarts-SVXNTKGV.js} +2 -2
- package/dist/bundle/{embed-LCLTUVUD.js → embed-V755YE7O.js} +3 -3
- package/dist/bundle/{embedder-O4WNEXUC.js → embedder-MQAPNQBH.js} +6 -6
- package/dist/bundle/{entry-7HDX6BDR.js → entry-ULQ3VOMQ.js} +3 -3
- package/dist/bundle/{first-run-M7YVVQJS.js → first-run-64BTWXDR.js} +5 -5
- package/dist/bundle/{first-screen-MXW3UZFB.js → first-screen-YZCH4TEV.js} +13 -13
- package/dist/bundle/{identity-EEMHQOTN.js → identity-PW45VBUU.js} +1 -1
- package/dist/bundle/{instructions-YIH3J4TI.js → instructions-G3ZUIRRH.js} +1 -1
- package/dist/bundle/{node-YWT7RFN6.js → node-IDJXLZSX.js} +2 -2
- package/dist/bundle/node-sqlite-W22J37MG.js +62 -0
- package/dist/bundle/{oauth-CADZB7TT.js → oauth-Q52LBXDE.js} +4 -4
- package/dist/bundle/{open-AMRU27KK.js → open-YLD7VHEC.js} +1 -1
- package/dist/bundle/{process-JC76J5UD.js → process-OBESF2XG.js} +1 -1
- package/dist/bundle/{program-FI6MTY2V.js → program-EBMWHOKQ.js} +40 -40
- package/dist/bundle/{prompt-SPYTHKHN.js → prompt-FHHQF3MG.js} +2 -2
- package/dist/bundle/{recognize-G5VVM6MU.js → recognize-QNHKHGKM.js} +1 -1
- package/dist/bundle/{remote-Z3HW42CH.js → remote-RVZWRCCT.js} +4 -4
- package/dist/bundle/{rerank-QJ5NLZUU.js → rerank-KG2USEME.js} +4 -4
- package/dist/bundle/{serve-3I4C6Y5X.js → serve-I4MJKEQ4.js} +6 -6
- package/dist/bundle/server-AXMWFPNT.js +55 -0
- package/dist/bundle/{server-2L4BONHN.js → server-GV7SV3L6.js} +26 -26
- package/dist/bundle/{state-IXZYPH46.js → state-AJKHWFBU.js} +3 -3
- package/dist/bundle/{store-KS4XIA2R.js → store-L3HFSSGJ.js} +7 -7
- package/dist/bundle/store-maintenance-command-Y22ARSDR.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/node-sqlite-LVHTONMA.js +0 -46
- package/dist/bundle/server-7TJ337SR.js +0 -55
- package/dist/bundle/store-maintenance-command-I3L24P22.js +0 -44
|
@@ -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-EWL3ZFOI.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-67SRVSPU.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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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 = {
|
|
@@ -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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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-YI4AYZXO.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-W22J37MG.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
commandPathOf,
|
|
8
8
|
findCommand,
|
|
9
9
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5P27JGGA.js";
|
|
11
11
|
import {
|
|
12
12
|
Command,
|
|
13
13
|
Help,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-77OOX2OE.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError,
|
|
24
24
|
writes
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
31
31
|
var SECTIONS = {
|
|
32
32
|
read: "Read",
|
|
33
33
|
write: "Write",
|
|
@@ -92,7 +92,7 @@ var CORE_SECTIONS = {
|
|
|
92
92
|
upgrade: "setup"
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
96
96
|
var DESCRIPTION = 90;
|
|
97
97
|
var COLUMN = 52;
|
|
98
98
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -131,7 +131,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
131
131
|
`;
|
|
132
132
|
}, "commandsText");
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
135
135
|
var ARGUMENT_KINDS = {
|
|
136
136
|
chat: "chat",
|
|
137
137
|
chats: "chat",
|
|
@@ -323,7 +323,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
323
323
|
command.addHelpText("after", () => commandHelpText(command));
|
|
324
324
|
}, "installCommandHelp");
|
|
325
325
|
|
|
326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
327
327
|
var WIRECAT_TOOLS = [
|
|
328
328
|
{
|
|
329
329
|
command: "tg",
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EBB7RFCW.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
singleLine
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
@@ -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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|