@wirecat/tg-cli 0.124.0 → 0.125.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 +7 -1
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-GEIZVMWU.js → adapter-H2LTOLOA.js} +52 -53
- package/dist/bundle/{all-profiles-EY4GJFWN.js → all-profiles-75HGEFL7.js} +10 -10
- package/dist/bundle/{anthropic-RIANJ7WM.js → anthropic-N54MKE4C.js} +5 -5
- package/dist/bundle/{app-server-LW7WBFIF.js → app-server-3N5INKKI.js} +45 -45
- package/dist/bundle/{bot-api-FHIQ66OM.js → bot-api-V65KTEAH.js} +53 -54
- package/dist/bundle/{bot-history-O34YZEFH.js → bot-history-TT2EAHEE.js} +18 -18
- package/dist/bundle/{bun-MJWD4VGV.js → bun-LN4J7PA7.js} +2 -2
- package/dist/bundle/{bun-sqlite-LCHVO3OB.js → bun-sqlite-6PDBFBUI.js} +6 -6
- package/dist/bundle/{chunk-N5UM63JW.js → chunk-37SZHAEA.js} +55 -55
- package/dist/bundle/{chunk-A5RWKKBZ.js → chunk-3GILMKQ2.js} +3 -3
- package/dist/bundle/{chunk-XDHGM2Z7.js → chunk-4KIOWSDL.js} +3 -3
- package/dist/bundle/{chunk-ZL5YG2WK.js → chunk-4TCBRKWQ.js} +7 -7
- package/dist/bundle/{chunk-CDSSKK5J.js → chunk-6HLB73UN.js} +3 -3
- package/dist/bundle/{chunk-OH3IZ6GW.js → chunk-6Y6SSZ34.js} +100 -91
- package/dist/bundle/{chunk-3VVZFBE2.js → chunk-77Z3OGAT.js} +3 -3
- package/dist/bundle/{chunk-E6VSARSU.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-F3GHTPAO.js → chunk-7OBSIDBJ.js} +4 -4
- package/dist/bundle/{chunk-OVDB5CQM.js → chunk-AI2J3WJT.js} +1 -1
- package/dist/bundle/{chunk-HSRO77SW.js → chunk-AMPHPP4P.js} +15 -15
- package/dist/bundle/{chunk-SGBH3D5D.js → chunk-B252D7V4.js} +3 -3
- package/dist/bundle/{chunk-2YLIVDWJ.js → chunk-BLNMM3AX.js} +2 -2
- package/dist/bundle/{chunk-GUL6QLNI.js → chunk-CNEJQQMD.js} +17 -17
- package/dist/bundle/{chunk-QFV36CAH.js → chunk-DI3RJ3MJ.js} +4 -4
- package/dist/bundle/{chunk-DFSLHF46.js → chunk-DNCOELTM.js} +1 -1
- package/dist/bundle/{chunk-54JPEGQA.js → chunk-DYOZ7CUV.js} +2 -2
- package/dist/bundle/{chunk-E66JBGZZ.js → chunk-E4HDE5DN.js} +2 -2
- package/dist/bundle/{chunk-5EL6E6PW.js → chunk-EIGV2JKX.js} +1 -1
- package/dist/bundle/{chunk-RHJHOOUL.js → chunk-FHPEUAHQ.js} +181 -155
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-ISGXVFA4.js → chunk-FSP74THJ.js} +4 -4
- package/dist/bundle/{chunk-UP3J3YXH.js → chunk-FUYCAROL.js} +6 -6
- package/dist/bundle/{chunk-VGUWIHXD.js → chunk-GRDVBJCR.js} +1 -1
- package/dist/bundle/{chunk-NL4COYPY.js → chunk-GUPMDMFM.js} +7 -7
- package/dist/bundle/{chunk-KVJSCJGZ.js → chunk-HHG5FR5H.js} +2 -2
- package/dist/bundle/{chunk-PP4ZBLS4.js → chunk-IN3NAFUN.js} +9 -9
- package/dist/bundle/{chunk-NQXVZ5WT.js → chunk-INZAZMUF.js} +6 -6
- package/dist/bundle/{chunk-OK4M4MWI.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-RBV4M2TC.js → chunk-JB4BO5XZ.js} +1 -1
- package/dist/bundle/{chunk-42R4YO4L.js → chunk-JC6HMPL7.js} +1076 -877
- package/dist/bundle/{chunk-3PLMMFP6.js → chunk-JCNKGZQG.js} +17 -17
- package/dist/bundle/{chunk-PI4XXMPG.js → chunk-JKF7LZBU.js} +6 -6
- package/dist/bundle/{chunk-XSGUG5WG.js → chunk-LD42OGKK.js} +4 -4
- package/dist/bundle/{chunk-VMWJGUVV.js → chunk-LU2CHHPC.js} +4 -4
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-2GFGZDWS.js → chunk-MK4IKICN.js} +2 -2
- package/dist/bundle/{chunk-4CIVGT4P.js → chunk-NM5GBJME.js} +19 -19
- package/dist/bundle/{chunk-IVFUSI7G.js → chunk-NTHALPDT.js} +2 -2
- package/dist/bundle/{chunk-M4W4Y5YR.js → chunk-OG2ONSH6.js} +53 -32
- package/dist/bundle/{chunk-2NG4JPP7.js → chunk-PCC7GWOS.js} +4 -4
- package/dist/bundle/{chunk-UII3D3HR.js → chunk-QVK7NF3A.js} +30 -30
- package/dist/bundle/{chunk-QGCVQRHV.js → chunk-QYT6HDCL.js} +1 -1
- package/dist/bundle/{chunk-BV3HZYOX.js → chunk-RX5GU7GQ.js} +359 -326
- package/dist/bundle/{chunk-LKMZ53GC.js → chunk-RZ7KBWDQ.js} +2 -2
- package/dist/bundle/{chunk-7AWJZ6NJ.js → chunk-S4SOS27T.js} +8 -8
- package/dist/bundle/{chunk-W4LMTNN2.js → chunk-SGHF75RQ.js} +2 -2
- package/dist/bundle/{chunk-WSLIXJET.js → chunk-TAFH5K5D.js} +346 -268
- package/dist/bundle/{chunk-QK4T3VN7.js → chunk-TVQBOIWC.js} +1 -1
- package/dist/bundle/{chunk-4EGB7GSW.js → chunk-UG66U2T7.js} +18 -19
- package/dist/bundle/{chunk-I4JUKRW7.js → chunk-URFBZNLU.js} +2 -2
- package/dist/bundle/{chunk-VAKSXD4F.js → chunk-UTNK2PFE.js} +13 -13
- package/dist/bundle/{chunk-PZ6H65D6.js → chunk-VG3EQJYV.js} +34 -5
- package/dist/bundle/{chunk-ZNICTHSC.js → chunk-VHD4V64E.js} +1 -1
- package/dist/bundle/{chunk-ZTMV5M3D.js → chunk-VUBSGQ2O.js} +26 -24
- package/dist/bundle/{chunk-HEV23NIB.js → chunk-VZDAVZYX.js} +6 -6
- package/dist/bundle/{chunk-IK6XKMLL.js → chunk-WH4T44L3.js} +1 -1
- package/dist/bundle/{chunk-YQFO7WXQ.js → chunk-X6436BYW.js} +2 -2
- package/dist/bundle/{chunk-UR62DZ7Q.js → chunk-XS5C5TQ7.js} +8 -8
- package/dist/bundle/{chunk-WKOVQ4OU.js → chunk-XTNOBJRP.js} +12 -12
- package/dist/bundle/{chunk-ASEBKZFY.js → chunk-YRZXOQOB.js} +2 -2
- package/dist/bundle/{chunk-QWAMX6CN.js → chunk-ZX5OSZHH.js} +12 -12
- package/dist/bundle/command-contract-JP6SCP7U.js +34 -0
- package/dist/bundle/{command-server-entry-K52OEKIO.js → command-server-entry-BLSFT3T6.js} +24 -24
- package/dist/bundle/{decode-OAE25LEJ.js → decode-NNLEQU7B.js} +5 -5
- package/dist/bundle/{dispatch-6GVTXIZ2.js → dispatch-PRAIGIFS.js} +8 -8
- package/dist/bundle/{echarts-EO4ZGKMN.js → echarts-XAZHGDOM.js} +2 -2
- package/dist/bundle/{embed-TB2AS4AT.js → embed-Q7ZCVSCO.js} +6 -6
- package/dist/bundle/{embedder-YKC42G6L.js → embedder-MVS3PVWQ.js} +9 -9
- package/dist/bundle/{entry-AB6FU7BN.js → entry-XN3ZZAOK.js} +9 -9
- package/dist/bundle/{failure-CY7ACT6V.js → failure-7Y34AUJT.js} +2 -2
- package/dist/bundle/{first-run-CMQZHDI5.js → first-run-G4EFTONI.js} +11 -11
- package/dist/bundle/first-screen-RIDJEPC3.js +32 -0
- package/dist/bundle/{instructions-RM3IB6ID.js → instructions-QDHYYZBU.js} +1 -1
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-D2PM62TA.js → node-3Y7OVY2U.js} +2 -2
- package/dist/bundle/{node-sqlite-UK5DE525.js → node-sqlite-R2SBROJM.js} +7 -7
- package/dist/bundle/{oauth-SKRG67A2.js → oauth-WSPWMWTV.js} +7 -7
- package/dist/bundle/{open-XP3SY62D.js → open-VFLF4HRQ.js} +5 -5
- package/dist/bundle/{openai-Q3U46UPA.js → openai-DFCKZZDV.js} +21 -20
- package/dist/bundle/{process-YJ4LHMJB.js → process-VZKFAGNP.js} +1 -1
- package/dist/bundle/{program-EEPEFKTR.js → program-2LB3CUZX.js} +62 -60
- package/dist/bundle/{prompt-WYTODP4U.js → prompt-RVLA2PEY.js} +5 -5
- package/dist/bundle/{proxy-transport-HJMQ5QFT.js → proxy-transport-DP7SIMIC.js} +5 -5
- package/dist/bundle/{recognize-K2S5QQU2.js → recognize-LEKNA3G5.js} +4 -4
- package/dist/bundle/{remote-7RSAJ3JC.js → remote-WG5V2I2G.js} +9 -9
- package/dist/bundle/{rerank-RJX77BKD.js → rerank-ONAEQVJ6.js} +7 -7
- package/dist/bundle/{serve-3E7NN3VW.js → serve-BL2X6FZG.js} +9 -9
- package/dist/bundle/{server-O3KU56A4.js → server-3LSC4BMK.js} +36 -36
- package/dist/bundle/server-7EYEEGJT.js +62 -0
- package/dist/bundle/{sqlite-runtime-RCS5WSG5.js → sqlite-runtime-RQXPRH6C.js} +6 -6
- package/dist/bundle/{state-PLWSPSAG.js → state-O7LRA526.js} +6 -6
- package/dist/bundle/{store-3FYLH53Z.js → store-7C4UAND2.js} +15 -15
- package/dist/bundle/{store-DWMKCXYL.js → store-HMJUPK45.js} +13 -13
- package/dist/bundle/store-maintenance-command-I7PSA3SZ.js +52 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +6 -2
- package/dist/bundle/chunk-VIIIC5LU.js +0 -32
- package/dist/bundle/command-contract-UKOL455D.js +0 -34
- package/dist/bundle/first-screen-XZ73W3VE.js +0 -32
- package/dist/bundle/server-ITHYDPWQ.js +0 -62
- package/dist/bundle/store-maintenance-command-3UEKINRB.js +0 -52
- /package/dist/bundle/{chunk-HVJJWJYQ.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6HLB73UN.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -2,23 +2,23 @@ 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-NTHALPDT.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NM5GBJME.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
singleLine
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7KCBPAQS.js";
|
|
13
13
|
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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/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 });
|
|
@@ -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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/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.",
|
|
@@ -2,29 +2,29 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCommandServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EIGV2JKX.js";
|
|
6
6
|
import {
|
|
7
7
|
stdinFieldOf
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WH4T44L3.js";
|
|
9
9
|
import {
|
|
10
10
|
commandPathOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7OBSIDBJ.js";
|
|
12
12
|
import {
|
|
13
13
|
commandServerRequest,
|
|
14
14
|
metaOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FHPEUAHQ.js";
|
|
16
16
|
import {
|
|
17
17
|
errorObjectOf,
|
|
18
18
|
renderError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7KCBPAQS.js";
|
|
23
23
|
import {
|
|
24
24
|
__name
|
|
25
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/command-server.js
|
|
28
28
|
import { createInterface } from "node:readline";
|
|
29
29
|
var COMMAND_SERVER_PROTOCOL = 1;
|
|
30
30
|
var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var REASONS = defineReasons([
|
|
@@ -26,7 +26,7 @@ var REASONS = defineReasons([
|
|
|
26
26
|
].map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
27
27
|
|
|
28
28
|
// dist/version.js
|
|
29
|
-
var VERSION = "0.
|
|
29
|
+
var VERSION = "0.125.0";
|
|
30
30
|
|
|
31
31
|
// dist/identity.js
|
|
32
32
|
var TG = {
|
|
@@ -2,20 +2,20 @@ 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-JKF7LZBU.js";
|
|
6
6
|
import {
|
|
7
7
|
PLAIN_HTTP_REFUSED,
|
|
8
8
|
modelAddressAllowed,
|
|
9
9
|
onThisComputer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VG3EQJYV.js";
|
|
11
11
|
import {
|
|
12
12
|
readSharedSection,
|
|
13
13
|
sharedConfigPath,
|
|
14
14
|
writeSharedSection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FUYCAROL.js";
|
|
16
16
|
import {
|
|
17
17
|
storePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NTHALPDT.js";
|
|
19
19
|
import {
|
|
20
20
|
boolean,
|
|
21
21
|
isoTimestamp,
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
safeParse,
|
|
24
24
|
strictObject,
|
|
25
25
|
string
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7KCBPAQS.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
35
35
|
import { setTimeout } from "node:timers/promises";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/models/local-only.js
|
|
38
38
|
var SECTION = "local_only";
|
|
39
39
|
var Setting = strictObject({
|
|
40
40
|
on: boolean(),
|
|
@@ -68,7 +68,7 @@ var refuseModelAddress = /* @__PURE__ */ __name((env, address, what) => {
|
|
|
68
68
|
refuseOffComputer(env, address, what);
|
|
69
69
|
}, "refuseModelAddress");
|
|
70
70
|
|
|
71
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
72
72
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
73
73
|
var OPENAI_MODELS = {
|
|
74
74
|
"text-embedding-3-small": { dims: 1536, perMillion: 0.02 },
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
commandPathOf,
|
|
8
8
|
outputOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7OBSIDBJ.js";
|
|
10
10
|
import {
|
|
11
11
|
Command,
|
|
12
12
|
Help,
|
|
@@ -17,18 +17,18 @@ import {
|
|
|
17
17
|
environmentOf,
|
|
18
18
|
metaOf,
|
|
19
19
|
takesProfile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FHPEUAHQ.js";
|
|
21
21
|
import {
|
|
22
22
|
writes
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7KCBPAQS.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
32
32
|
var ARGUMENT_KINDS = {
|
|
33
33
|
chat: "chat",
|
|
34
34
|
chats: "chat",
|
|
@@ -221,7 +221,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
221
221
|
command.addHelpText("after", () => commandHelpText(command));
|
|
222
222
|
}, "installCommandHelp");
|
|
223
223
|
|
|
224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
225
225
|
var WIRECAT_TOOLS = [
|
|
226
226
|
{
|
|
227
227
|
command: "tg",
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7KCBPAQS.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|
|
@@ -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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/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;
|