@wirecat/tg-cli 0.126.0 → 0.127.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-BXU3AVB7.js → adapter-EZFS2UR6.js} +43 -43
- package/dist/bundle/{all-profiles-G5A6IROO.js → all-profiles-TNIUBQK6.js} +6 -6
- package/dist/bundle/{anthropic-SINVEVEM.js → anthropic-NGIS5LTL.js} +2 -2
- package/dist/bundle/{app-server-IHIQXPJF.js → app-server-RPU76G7D.js} +38 -38
- package/dist/bundle/{bot-api-LGAVVYRM.js → bot-api-QJ6U6BLG.js} +44 -44
- package/dist/bundle/{bot-history-5C35FGCD.js → bot-history-THULK2C6.js} +12 -12
- package/dist/bundle/{bun-2GK3YOP3.js → bun-QLSLLP27.js} +2 -2
- package/dist/bundle/{bun-sqlite-7DGADK3E.js → bun-sqlite-SH5245ZY.js} +3 -3
- package/dist/bundle/{chunk-4GR5YYGA.js → chunk-2R6ZSE3O.js} +2 -2
- package/dist/bundle/{chunk-F34EE5Y2.js → chunk-3CV5TBBR.js} +2 -2
- package/dist/bundle/{chunk-MP47TE77.js → chunk-3I3TGKVG.js} +3 -3
- package/dist/bundle/{chunk-JQ2RKLPU.js → chunk-3WI53AA4.js} +76 -76
- package/dist/bundle/{chunk-AYEQMXRE.js → chunk-45URY64S.js} +1 -1
- package/dist/bundle/{chunk-Y5DGB7GP.js → chunk-4CQ3PV3V.js} +7 -7
- package/dist/bundle/{chunk-N2JSMP4N.js → chunk-4FFKCC7Y.js} +12 -12
- package/dist/bundle/{chunk-G4RCT5RH.js → chunk-4MKRKW6V.js} +12 -12
- package/dist/bundle/{chunk-GI2ZUNOH.js → chunk-5AOFOJQA.js} +4 -4
- package/dist/bundle/{chunk-QOINWAQD.js → chunk-5FDYMMEQ.js} +2 -2
- package/dist/bundle/{chunk-P2GNIWGG.js → chunk-5KZKVKWU.js} +6 -6
- package/dist/bundle/{chunk-QMEPKUG3.js → chunk-5SN6KFPC.js} +50 -50
- package/dist/bundle/{chunk-QYLYMOXN.js → chunk-7GE6KMLB.js} +11 -11
- package/dist/bundle/{chunk-PJ6FZXUR.js → chunk-APSMQIA4.js} +2 -2
- package/dist/bundle/{chunk-HPFB4Y7P.js → chunk-BNM6KNUQ.js} +1 -1
- package/dist/bundle/{chunk-63DSHUNP.js → chunk-BWHVHPAQ.js} +5 -5
- package/dist/bundle/{chunk-XGBXRDJP.js → chunk-CXWAKV2O.js} +5 -5
- package/dist/bundle/{chunk-FYOHGIQP.js → chunk-DNNYE6PS.js} +13 -13
- package/dist/bundle/{chunk-QGLB4D7J.js → chunk-EGNQSWPH.js} +1 -1
- package/dist/bundle/{chunk-CK7DSGIK.js → chunk-ERUB3KU3.js} +322 -11
- package/dist/bundle/{chunk-OXB5P37M.js → chunk-FD44T7HC.js} +1 -1
- package/dist/bundle/{chunk-2LN6OJUB.js → chunk-FSDLSEZA.js} +1 -1
- package/dist/bundle/{chunk-SL4S5GFR.js → chunk-GHVRCLJI.js} +1 -1
- package/dist/bundle/{chunk-KSLZEXRF.js → chunk-H7GAFD4N.js} +1 -1
- package/dist/bundle/{chunk-JAKP5RWM.js → chunk-HPM47WO3.js} +1537 -923
- package/dist/bundle/{chunk-L5PYWQDA.js → chunk-IWJ5OLU6.js} +2 -2
- package/dist/bundle/{chunk-ACLUVZ4I.js → chunk-J6FHZXNS.js} +28 -28
- package/dist/bundle/{chunk-7UACPXDC.js → chunk-JF7D2Y4K.js} +941 -749
- package/dist/bundle/{chunk-W35POPPX.js → chunk-JFQZ6BWI.js} +16 -16
- package/dist/bundle/{chunk-K4DXGJK4.js → chunk-JWEKUAVZ.js} +10 -10
- package/dist/bundle/{chunk-AKUBJHE5.js → chunk-K4VO7S6Q.js} +1 -1
- package/dist/bundle/{chunk-GIY56MIB.js → chunk-LOG65WHO.js} +1 -1
- package/dist/bundle/{chunk-AA2NZAUT.js → chunk-MTU3UP5U.js} +1 -1
- package/dist/bundle/{chunk-G4VVBR6U.js → chunk-NBN5OYXH.js} +3 -3
- package/dist/bundle/{chunk-MA2XHO4O.js → chunk-P5NJECXX.js} +379 -294
- package/dist/bundle/{chunk-QCLMP635.js → chunk-QPVCFSVU.js} +5 -5
- package/dist/bundle/{chunk-GOGGRLS6.js → chunk-R52ZZZKZ.js} +13 -9
- package/dist/bundle/{chunk-RFDPU4NO.js → chunk-S3XUJPPL.js} +4 -4
- package/dist/bundle/{chunk-Y4724JRR.js → chunk-SN52ZGFN.js} +2 -2
- package/dist/bundle/{chunk-2F2UMQMB.js → chunk-TGKTIDYS.js} +153 -396
- package/dist/bundle/{chunk-AZ7DSHQO.js → chunk-UIQMBOXU.js} +1 -1
- package/dist/bundle/{chunk-UIFQEXVP.js → chunk-UW34Z7J3.js} +1 -1
- package/dist/bundle/{chunk-ZXCQF6XV.js → chunk-UY2TRFYN.js} +10 -10
- package/dist/bundle/{chunk-5GINYFD4.js → chunk-VMV5CMLH.js} +1 -1
- package/dist/bundle/{chunk-J2BUWK5U.js → chunk-X4ECHJNG.js} +2 -2
- package/dist/bundle/{chunk-5NLAGTWU.js → chunk-XUAVZ6YX.js} +7 -7
- package/dist/bundle/{chunk-W725T2V7.js → chunk-Y62I2T36.js} +1 -1
- package/dist/bundle/{chunk-NJ3FSKSU.js → chunk-Y65BQJOY.js} +2 -2
- package/dist/bundle/{chunk-W75SKUY4.js → chunk-Y7UA7HGL.js} +2 -2
- package/dist/bundle/{chunk-7FL2N6DM.js → chunk-YIPOWJPN.js} +1 -1
- package/dist/bundle/{chunk-DGGAYHLN.js → chunk-YZGIQY2R.js} +21 -21
- package/dist/bundle/{chunk-BSKYPHLB.js → chunk-ZIPUVOGT.js} +1 -1
- package/dist/bundle/{chunk-SXVB2CVR.js → chunk-ZSS3BH6Z.js} +2 -2
- package/dist/bundle/{command-contract-ZEYY3ZXK.js → command-contract-DY6Y4TES.js} +13 -13
- package/dist/bundle/{command-server-entry-UWY6PQIV.js → command-server-entry-UG2CLYXI.js} +20 -20
- package/dist/bundle/{decode-QGMFQ6XX.js → decode-3NEUZJ2N.js} +2 -2
- package/dist/bundle/{echarts-GHU3GEWV.js → echarts-CN6ZVAJZ.js} +2 -2
- package/dist/bundle/{embed-6DMEWQDO.js → embed-M4EHIKA5.js} +3 -3
- package/dist/bundle/{embedder-W2L7YZPW.js → embedder-K2XL2UB4.js} +6 -6
- package/dist/bundle/{entry-LPEXVFQC.js → entry-6M55YL2H.js} +6 -6
- package/dist/bundle/{first-run-3UJ6SJF5.js → first-run-TLJILIOF.js} +5 -5
- package/dist/bundle/{first-screen-VCSY5QH5.js → first-screen-WME7ILW2.js} +14 -14
- package/dist/bundle/{instructions-RUVAH2IS.js → instructions-QLC2AXAB.js} +1 -1
- package/dist/bundle/{node-RYSNHVBX.js → node-BAA3T4CH.js} +2 -2
- package/dist/bundle/{node-sqlite-J6ZL4LUY.js → node-sqlite-FNYVHQCO.js} +4 -4
- package/dist/bundle/{oauth-B2QNZNSC.js → oauth-32T5KL5E.js} +4 -4
- package/dist/bundle/{open-OMUP5P6V.js → open-4VQ6FUEI.js} +2 -2
- package/dist/bundle/{openai-BT4BP4VQ.js → openai-HDOKCN3Z.js} +12 -12
- package/dist/bundle/{process-HG3QDD54.js → process-GOUBIWKC.js} +1 -1
- package/dist/bundle/{program-P2VATMKJ.js → program-QFXJL2R5.js} +46 -46
- package/dist/bundle/{prompt-BTIHH3Z4.js → prompt-YYODWYFO.js} +2 -2
- package/dist/bundle/{recognize-CTSJXPIG.js → recognize-7ZULX5HL.js} +1 -1
- package/dist/bundle/{remote-2FIGCMKL.js → remote-TUG7M5Y5.js} +6 -6
- package/dist/bundle/{rerank-TI5SLEF4.js → rerank-D2EZWG66.js} +4 -4
- package/dist/bundle/{serve-IO3IM5C7.js → serve-MP3GA2XX.js} +6 -6
- package/dist/bundle/{server-WEPFFTYA.js → server-D277L3H3.js} +29 -29
- package/dist/bundle/server-GEP7QXGI.js +62 -0
- package/dist/bundle/{sqlite-runtime-CTEYXX7L.js → sqlite-runtime-XHZXEOLY.js} +3 -3
- package/dist/bundle/{state-GFHVDGHM.js → state-YI3W6HGO.js} +3 -3
- package/dist/bundle/{store-RCK6HT4F.js → store-C4RFPYPK.js} +9 -9
- package/dist/bundle/{store-Y5XC4LEM.js → store-CIZPJFWE.js} +15 -11
- package/dist/bundle/store-maintenance-command-JNDYWFD2.js +52 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-RIGXUTKZ.js +0 -62
- package/dist/bundle/store-maintenance-command-XH6VMCDU.js +0 -52
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3WI53AA4.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
unknown
|
|
19
19
|
} from "./chunk-XS5C5TQ7.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
refuseWriteBeforeConnecting,
|
|
13
13
|
registerPrompts,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YZGIQY2R.js";
|
|
16
16
|
import {
|
|
17
17
|
answeredWire
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZIPUVOGT.js";
|
|
19
19
|
import {
|
|
20
20
|
BinaryResource,
|
|
21
21
|
Picture,
|
|
@@ -36,30 +36,30 @@ import {
|
|
|
36
36
|
tool,
|
|
37
37
|
toolKey,
|
|
38
38
|
toolsFromCommands
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-4FFKCC7Y.js";
|
|
40
40
|
import {
|
|
41
41
|
agentJson,
|
|
42
42
|
skillResource
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-R52ZZZKZ.js";
|
|
44
44
|
import {
|
|
45
45
|
StdioServerTransport,
|
|
46
46
|
callerOf,
|
|
47
47
|
callingAgent,
|
|
48
48
|
serveStdio
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-X4ECHJNG.js";
|
|
50
50
|
import {
|
|
51
51
|
instructions
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-LOG65WHO.js";
|
|
53
53
|
import {
|
|
54
54
|
McpServer,
|
|
55
55
|
ResourceTemplate
|
|
56
56
|
} from "./chunk-5D4AEUVA.js";
|
|
57
57
|
import {
|
|
58
58
|
mcpHttpMarker
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-5AOFOJQA.js";
|
|
60
60
|
import {
|
|
61
61
|
connectedFor
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-DNNYE6PS.js";
|
|
63
63
|
import {
|
|
64
64
|
capability,
|
|
65
65
|
dateWindow,
|
|
@@ -69,20 +69,20 @@ import {
|
|
|
69
69
|
servicesFor,
|
|
70
70
|
storedDeps,
|
|
71
71
|
wholeList
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-P5NJECXX.js";
|
|
73
73
|
import {
|
|
74
74
|
warmEmbedders
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-QPVCFSVU.js";
|
|
76
76
|
import {
|
|
77
77
|
stdinFieldOf
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-GHVRCLJI.js";
|
|
79
79
|
import {
|
|
80
80
|
openStore,
|
|
81
81
|
pdfPreviewLimits
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-HPM47WO3.js";
|
|
83
83
|
import {
|
|
84
84
|
findCommand
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-5FDYMMEQ.js";
|
|
86
86
|
import {
|
|
87
87
|
DEFAULT_OUTPUT_BYTES,
|
|
88
88
|
changesAuthorityAt,
|
|
@@ -98,20 +98,20 @@ import {
|
|
|
98
98
|
rootOf2 as rootOf,
|
|
99
99
|
sealed,
|
|
100
100
|
snakeKeys
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-TGKTIDYS.js";
|
|
102
102
|
import {
|
|
103
103
|
withCaller
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-5KZKVKWU.js";
|
|
105
105
|
import {
|
|
106
106
|
readOnlyLockOf
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-45URY64S.js";
|
|
108
108
|
import {
|
|
109
109
|
timezoneOf,
|
|
110
110
|
typedCommand
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-3WI53AA4.js";
|
|
112
112
|
import {
|
|
113
113
|
isCliFailure
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-APSMQIA4.js";
|
|
115
115
|
import {
|
|
116
116
|
description,
|
|
117
117
|
integer,
|
|
@@ -136,10 +136,10 @@ import {
|
|
|
136
136
|
__name
|
|
137
137
|
} from "./chunk-ZVVMGPBJ.js";
|
|
138
138
|
|
|
139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
140
140
|
import { randomUUID } from "node:crypto";
|
|
141
141
|
|
|
142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
143
143
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
144
144
|
let held;
|
|
145
145
|
return {
|
|
@@ -158,7 +158,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
158
158
|
};
|
|
159
159
|
}, "agentLog");
|
|
160
160
|
|
|
161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
162
162
|
var LISTED = 100;
|
|
163
163
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
164
164
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -196,7 +196,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
196
196
|
});
|
|
197
197
|
}, "registerResources");
|
|
198
198
|
|
|
199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
200
200
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
201
201
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
202
202
|
var MessengerSession = class {
|
|
@@ -271,7 +271,7 @@ var MessengerSession = class {
|
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
|
|
274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
275
275
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
276
276
|
const _command = messenger.app.command;
|
|
277
277
|
return {
|
|
@@ -325,7 +325,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
325
325
|
};
|
|
326
326
|
}, "attachmentsTools");
|
|
327
327
|
|
|
328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
329
329
|
var PHOTO_LIMIT = 512 * 1024;
|
|
330
330
|
var IMAGE_TYPES = [
|
|
331
331
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -379,7 +379,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
379
379
|
return new Uint8Array(Buffer.concat(chunks));
|
|
380
380
|
}, "readUpTo");
|
|
381
381
|
|
|
382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
383
383
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
384
384
|
stats_charts: tool({
|
|
385
385
|
title: "A chart from a chat's statistics",
|
|
@@ -416,14 +416,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
416
416
|
})
|
|
417
417
|
}), "statsTools");
|
|
418
418
|
|
|
419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
420
420
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
421
421
|
...messagesPhotoTools(messenger),
|
|
422
422
|
...attachmentsTools(messenger),
|
|
423
423
|
...statsTools(messenger)
|
|
424
424
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
425
425
|
|
|
426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
427
427
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
428
428
|
"streams",
|
|
429
429
|
"stdin",
|
|
@@ -750,7 +750,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
750
750
|
}, "serveOverStdio");
|
|
751
751
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
752
752
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
753
|
-
const { serveOverHttp } = await import("./serve-
|
|
753
|
+
const { serveOverHttp } = await import("./serve-MP3GA2XX.js");
|
|
754
754
|
const appName = messenger.app.command;
|
|
755
755
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
756
756
|
const listening = await serveOverHttp(build, {
|