@wirecat/tg-cli 0.124.0 → 0.126.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-BXU3AVB7.js} +52 -53
- package/dist/bundle/{all-profiles-EY4GJFWN.js → all-profiles-G5A6IROO.js} +10 -10
- package/dist/bundle/{anthropic-RIANJ7WM.js → anthropic-SINVEVEM.js} +5 -5
- package/dist/bundle/{app-server-LW7WBFIF.js → app-server-IHIQXPJF.js} +49 -45
- package/dist/bundle/{bot-api-FHIQ66OM.js → bot-api-LGAVVYRM.js} +53 -54
- package/dist/bundle/{bot-history-O34YZEFH.js → bot-history-5C35FGCD.js} +18 -18
- package/dist/bundle/{bun-MJWD4VGV.js → bun-2GK3YOP3.js} +2 -2
- package/dist/bundle/{bun-sqlite-LCHVO3OB.js → bun-sqlite-7DGADK3E.js} +6 -6
- package/dist/bundle/{chunk-RHJHOOUL.js → chunk-2F2UMQMB.js} +196 -158
- package/dist/bundle/{chunk-W4LMTNN2.js → chunk-2LN6OJUB.js} +2 -2
- package/dist/bundle/{chunk-LKMZ53GC.js → chunk-4GR5YYGA.js} +2 -2
- package/dist/bundle/{chunk-ZNICTHSC.js → chunk-5GINYFD4.js} +1 -1
- package/dist/bundle/{chunk-PP4ZBLS4.js → chunk-5NLAGTWU.js} +9 -9
- package/dist/bundle/{chunk-NL4COYPY.js → chunk-63DSHUNP.js} +7 -7
- package/dist/bundle/{chunk-KVJSCJGZ.js → chunk-7FL2N6DM.js} +2 -2
- package/dist/bundle/{chunk-E6VSARSU.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-BV3HZYOX.js → chunk-7UACPXDC.js} +549 -458
- package/dist/bundle/{chunk-VGUWIHXD.js → chunk-AA2NZAUT.js} +1 -1
- package/dist/bundle/{chunk-UII3D3HR.js → chunk-ACLUVZ4I.js} +34 -30
- package/dist/bundle/{chunk-QGCVQRHV.js → chunk-AKUBJHE5.js} +1 -1
- package/dist/bundle/{chunk-54JPEGQA.js → chunk-AYEQMXRE.js} +2 -2
- package/dist/bundle/{chunk-PZ6H65D6.js → chunk-AZ7DSHQO.js} +63 -5
- package/dist/bundle/{chunk-OVDB5CQM.js → chunk-BSKYPHLB.js} +1 -1
- package/dist/bundle/{chunk-UP3J3YXH.js → chunk-CK7DSGIK.js} +7 -7
- package/dist/bundle/{chunk-ZTMV5M3D.js → chunk-DGGAYHLN.js} +29 -25
- package/dist/bundle/{chunk-E66JBGZZ.js → chunk-F34EE5Y2.js} +2 -2
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-HSRO77SW.js → chunk-FYOHGIQP.js} +15 -15
- package/dist/bundle/{chunk-VAKSXD4F.js → chunk-G4RCT5RH.js} +13 -13
- package/dist/bundle/{chunk-QFV36CAH.js → chunk-G4VVBR6U.js} +4 -4
- package/dist/bundle/{chunk-ISGXVFA4.js → chunk-GI2ZUNOH.js} +4 -4
- package/dist/bundle/{chunk-DFSLHF46.js → chunk-GIY56MIB.js} +1 -1
- package/dist/bundle/{chunk-4EGB7GSW.js → chunk-GOGGRLS6.js} +28 -23
- package/dist/bundle/{chunk-2YLIVDWJ.js → chunk-HPFB4Y7P.js} +2 -2
- package/dist/bundle/{chunk-OK4M4MWI.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-2GFGZDWS.js → chunk-J2BUWK5U.js} +2 -2
- package/dist/bundle/{chunk-42R4YO4L.js → chunk-JAKP5RWM.js} +4378 -4075
- package/dist/bundle/{chunk-OH3IZ6GW.js → chunk-JQ2RKLPU.js} +153 -98
- package/dist/bundle/{chunk-QWAMX6CN.js → chunk-K4DXGJK4.js} +12 -12
- package/dist/bundle/{chunk-RBV4M2TC.js → chunk-KSLZEXRF.js} +1 -1
- package/dist/bundle/{chunk-A5RWKKBZ.js → chunk-L5PYWQDA.js} +3 -3
- package/dist/bundle/{chunk-XSGUG5WG.js → chunk-LD42OGKK.js} +4 -4
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-WSLIXJET.js → chunk-MA2XHO4O.js} +378 -269
- package/dist/bundle/{chunk-2NG4JPP7.js → chunk-MP47TE77.js} +4 -4
- package/dist/bundle/{chunk-M4W4Y5YR.js → chunk-N2JSMP4N.js} +57 -36
- package/dist/bundle/{chunk-SGBH3D5D.js → chunk-NJ3FSKSU.js} +5 -7
- package/dist/bundle/{chunk-4CIVGT4P.js → chunk-NM5GBJME.js} +19 -19
- package/dist/bundle/{chunk-QK4T3VN7.js → chunk-OXB5P37M.js} +1 -1
- package/dist/bundle/{chunk-ZL5YG2WK.js → chunk-P2GNIWGG.js} +7 -7
- package/dist/bundle/{chunk-3VVZFBE2.js → chunk-PJ6FZXUR.js} +3 -3
- package/dist/bundle/{chunk-PI4XXMPG.js → chunk-QCLMP635.js} +6 -6
- package/dist/bundle/{chunk-YQFO7WXQ.js → chunk-QGLB4D7J.js} +2 -2
- package/dist/bundle/{chunk-N5UM63JW.js → chunk-QMEPKUG3.js} +56 -55
- package/dist/bundle/{chunk-F3GHTPAO.js → chunk-QOINWAQD.js} +4 -4
- package/dist/bundle/{chunk-GUL6QLNI.js → chunk-QYLYMOXN.js} +17 -17
- package/dist/bundle/{chunk-NQXVZ5WT.js → chunk-RFDPU4NO.js} +11 -6
- package/dist/bundle/{chunk-IK6XKMLL.js → chunk-SL4S5GFR.js} +1 -1
- package/dist/bundle/{chunk-VMWJGUVV.js → chunk-SXVB2CVR.js} +4 -4
- package/dist/bundle/{chunk-5EL6E6PW.js → chunk-UIFQEXVP.js} +1 -1
- package/dist/bundle/{chunk-I4JUKRW7.js → chunk-URFBZNLU.js} +2 -2
- package/dist/bundle/{chunk-3PLMMFP6.js → chunk-W35POPPX.js} +17 -17
- package/dist/bundle/{chunk-IVFUSI7G.js → chunk-W725T2V7.js} +3 -2
- package/dist/bundle/{chunk-XDHGM2Z7.js → chunk-W75SKUY4.js} +3 -3
- package/dist/bundle/{chunk-HEV23NIB.js → chunk-XGBXRDJP.js} +6 -6
- package/dist/bundle/{chunk-UR62DZ7Q.js → chunk-XS5C5TQ7.js} +8 -8
- package/dist/bundle/{chunk-CDSSKK5J.js → chunk-Y4724JRR.js} +3 -3
- package/dist/bundle/{chunk-7AWJZ6NJ.js → chunk-Y5DGB7GP.js} +8 -8
- package/dist/bundle/{chunk-ASEBKZFY.js → chunk-YRZXOQOB.js} +2 -2
- package/dist/bundle/{chunk-WKOVQ4OU.js → chunk-ZXCQF6XV.js} +12 -12
- package/dist/bundle/command-contract-ZEYY3ZXK.js +34 -0
- package/dist/bundle/{command-server-entry-K52OEKIO.js → command-server-entry-UWY6PQIV.js} +24 -24
- package/dist/bundle/{decode-OAE25LEJ.js → decode-QGMFQ6XX.js} +5 -5
- package/dist/bundle/{dispatch-6GVTXIZ2.js → dispatch-PRAIGIFS.js} +8 -8
- package/dist/bundle/{echarts-EO4ZGKMN.js → echarts-GHU3GEWV.js} +2 -2
- package/dist/bundle/{embed-TB2AS4AT.js → embed-6DMEWQDO.js} +6 -6
- package/dist/bundle/{embedder-YKC42G6L.js → embedder-W2L7YZPW.js} +9 -9
- package/dist/bundle/{entry-AB6FU7BN.js → entry-LPEXVFQC.js} +9 -9
- package/dist/bundle/{failure-CY7ACT6V.js → failure-7Y34AUJT.js} +2 -2
- package/dist/bundle/{first-run-CMQZHDI5.js → first-run-3UJ6SJF5.js} +11 -11
- package/dist/bundle/first-screen-VCSY5QH5.js +32 -0
- package/dist/bundle/{instructions-RM3IB6ID.js → instructions-RUVAH2IS.js} +1 -1
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-D2PM62TA.js → node-RYSNHVBX.js} +2 -2
- package/dist/bundle/{node-sqlite-UK5DE525.js → node-sqlite-J6ZL4LUY.js} +7 -7
- package/dist/bundle/{oauth-SKRG67A2.js → oauth-B2QNZNSC.js} +7 -7
- package/dist/bundle/{open-XP3SY62D.js → open-OMUP5P6V.js} +5 -5
- package/dist/bundle/{openai-Q3U46UPA.js → openai-BT4BP4VQ.js} +21 -20
- package/dist/bundle/{process-YJ4LHMJB.js → process-HG3QDD54.js} +1 -1
- package/dist/bundle/{program-EEPEFKTR.js → program-P2VATMKJ.js} +62 -60
- package/dist/bundle/{prompt-WYTODP4U.js → prompt-BTIHH3Z4.js} +5 -5
- package/dist/bundle/{proxy-transport-HJMQ5QFT.js → proxy-transport-DP7SIMIC.js} +5 -5
- package/dist/bundle/{recognize-K2S5QQU2.js → recognize-CTSJXPIG.js} +4 -4
- package/dist/bundle/{remote-7RSAJ3JC.js → remote-2FIGCMKL.js} +9 -9
- package/dist/bundle/{rerank-RJX77BKD.js → rerank-TI5SLEF4.js} +7 -7
- package/dist/bundle/{serve-3E7NN3VW.js → serve-IO3IM5C7.js} +9 -9
- package/dist/bundle/server-RIGXUTKZ.js +62 -0
- package/dist/bundle/{server-O3KU56A4.js → server-WEPFFTYA.js} +38 -36
- package/dist/bundle/{sqlite-runtime-RCS5WSG5.js → sqlite-runtime-CTEYXX7L.js} +6 -6
- package/dist/bundle/{state-PLWSPSAG.js → state-GFHVDGHM.js} +6 -6
- package/dist/bundle/{store-DWMKCXYL.js → store-RCK6HT4F.js} +13 -13
- package/dist/bundle/{store-3FYLH53Z.js → store-Y5XC4LEM.js} +15 -15
- package/dist/bundle/store-maintenance-command-XH6VMCDU.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
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
snapshotProjectAnnotations,
|
|
9
9
|
storeDamageReport,
|
|
10
10
|
storeHealth
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W35POPPX.js";
|
|
12
12
|
import {
|
|
13
13
|
ADDED_KINDS,
|
|
14
14
|
ALWAYS_SHOWN,
|
|
@@ -90,18 +90,18 @@ import {
|
|
|
90
90
|
validateEvidenceFindings,
|
|
91
91
|
waitingPointer,
|
|
92
92
|
withoutField
|
|
93
|
-
} from "./chunk-
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
93
|
+
} from "./chunk-JAKP5RWM.js";
|
|
94
|
+
import "./chunk-Y5DGB7GP.js";
|
|
95
|
+
import "./chunk-AKUBJHE5.js";
|
|
96
96
|
import {
|
|
97
97
|
openCache
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-XGBXRDJP.js";
|
|
99
99
|
import {
|
|
100
100
|
PRAGMAS
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-5GINYFD4.js";
|
|
102
102
|
import {
|
|
103
103
|
note
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-L5PYWQDA.js";
|
|
105
105
|
import {
|
|
106
106
|
BUSINESS_KINDS,
|
|
107
107
|
CLOSED_STATES,
|
|
@@ -136,17 +136,17 @@ import {
|
|
|
136
136
|
recordDeepCheck,
|
|
137
137
|
reminder,
|
|
138
138
|
validatePayment
|
|
139
|
-
} from "./chunk-
|
|
140
|
-
import "./chunk-
|
|
141
|
-
import "./chunk-
|
|
142
|
-
import "./chunk-
|
|
139
|
+
} from "./chunk-JQ2RKLPU.js";
|
|
140
|
+
import "./chunk-PJ6FZXUR.js";
|
|
141
|
+
import "./chunk-CK7DSGIK.js";
|
|
142
|
+
import "./chunk-XWBPP2HX.js";
|
|
143
143
|
import {
|
|
144
144
|
storePath
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-
|
|
147
|
-
import "./chunk-
|
|
145
|
+
} from "./chunk-W725T2V7.js";
|
|
146
|
+
import "./chunk-NM5GBJME.js";
|
|
147
|
+
import "./chunk-XS5C5TQ7.js";
|
|
148
148
|
import "./chunk-Y5E2WNWB.js";
|
|
149
|
-
import "./chunk-
|
|
149
|
+
import "./chunk-7KCBPAQS.js";
|
|
150
150
|
import "./chunk-ZVVMGPBJ.js";
|
|
151
151
|
export {
|
|
152
152
|
ADDED_KINDS,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
addStoreMaintenanceCommands,
|
|
5
|
+
buildStems,
|
|
6
|
+
storeMaintenanceCommands,
|
|
7
|
+
storeSummary
|
|
8
|
+
} from "./chunk-QMEPKUG3.js";
|
|
9
|
+
import "./chunk-FYOHGIQP.js";
|
|
10
|
+
import "./chunk-MA2XHO4O.js";
|
|
11
|
+
import "./chunk-G4RCT5RH.js";
|
|
12
|
+
import "./chunk-LD42OGKK.js";
|
|
13
|
+
import "./chunk-FIVFP53N.js";
|
|
14
|
+
import "./chunk-Y4724JRR.js";
|
|
15
|
+
import "./chunk-5NLAGTWU.js";
|
|
16
|
+
import "./chunk-W35POPPX.js";
|
|
17
|
+
import "./chunk-QCLMP635.js";
|
|
18
|
+
import "./chunk-2ABQZVK4.js";
|
|
19
|
+
import "./chunk-W75SKUY4.js";
|
|
20
|
+
import "./chunk-2LN6OJUB.js";
|
|
21
|
+
import "./chunk-JAKP5RWM.js";
|
|
22
|
+
import "./chunk-Y5DGB7GP.js";
|
|
23
|
+
import "./chunk-AKUBJHE5.js";
|
|
24
|
+
import "./chunk-SXVB2CVR.js";
|
|
25
|
+
import "./chunk-M4OP5ASJ.js";
|
|
26
|
+
import "./chunk-D72URWJE.js";
|
|
27
|
+
import "./chunk-XGBXRDJP.js";
|
|
28
|
+
import "./chunk-5GINYFD4.js";
|
|
29
|
+
import "./chunk-2F2UMQMB.js";
|
|
30
|
+
import "./chunk-P2GNIWGG.js";
|
|
31
|
+
import "./chunk-NJ3FSKSU.js";
|
|
32
|
+
import "./chunk-AYEQMXRE.js";
|
|
33
|
+
import "./chunk-OXB5P37M.js";
|
|
34
|
+
import "./chunk-AZ7DSHQO.js";
|
|
35
|
+
import "./chunk-L5PYWQDA.js";
|
|
36
|
+
import "./chunk-MP47TE77.js";
|
|
37
|
+
import "./chunk-JQ2RKLPU.js";
|
|
38
|
+
import "./chunk-PJ6FZXUR.js";
|
|
39
|
+
import "./chunk-CK7DSGIK.js";
|
|
40
|
+
import "./chunk-XWBPP2HX.js";
|
|
41
|
+
import "./chunk-W725T2V7.js";
|
|
42
|
+
import "./chunk-NM5GBJME.js";
|
|
43
|
+
import "./chunk-XS5C5TQ7.js";
|
|
44
|
+
import "./chunk-Y5E2WNWB.js";
|
|
45
|
+
import "./chunk-7KCBPAQS.js";
|
|
46
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
47
|
+
export {
|
|
48
|
+
addStoreMaintenanceCommands,
|
|
49
|
+
buildStems,
|
|
50
|
+
storeMaintenanceCommands,
|
|
51
|
+
storeSummary
|
|
52
|
+
};
|
package/dist/bundle/tg.js
CHANGED
|
@@ -3,10 +3,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
3
3
|
const require = __bundleRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
TG
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7FL2N6DM.js";
|
|
7
7
|
import {
|
|
8
8
|
installerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M4OP5ASJ.js";
|
|
10
10
|
import {
|
|
11
11
|
DESCRIBE_FLAG,
|
|
12
12
|
DISPATCH_FLAG,
|
|
@@ -17,16 +17,16 @@ import {
|
|
|
17
17
|
fileState,
|
|
18
18
|
shimFiles,
|
|
19
19
|
writeShim
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-IX3GUNGV.js";
|
|
21
|
+
import "./chunk-XWBPP2HX.js";
|
|
22
|
+
import "./chunk-NM5GBJME.js";
|
|
23
23
|
import {
|
|
24
24
|
errorObjectOf,
|
|
25
25
|
exitCodeOfError,
|
|
26
26
|
renderError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
28
28
|
import "./chunk-Y5E2WNWB.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-7KCBPAQS.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -34,13 +34,13 @@ import {
|
|
|
34
34
|
// dist/bin/tg.js
|
|
35
35
|
import { enableCompileCache } from "node:module";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
37
|
+
// 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/start.js
|
|
38
38
|
import { createHash } from "node:crypto";
|
|
39
39
|
import { existsSync, readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
40
40
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
41
41
|
import { fileURLToPath } from "node:url";
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
43
|
+
// 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/launcher.js
|
|
44
44
|
import { readFileSync } from "node:fs";
|
|
45
45
|
import { basename, dirname, join, resolve } from "node:path";
|
|
46
46
|
var posix = /* @__PURE__ */ __name((path) => path.replaceAll("\\", "/"), "posix");
|
|
@@ -126,7 +126,7 @@ var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
|
|
|
126
126
|
}
|
|
127
127
|
}, "ensureLauncher");
|
|
128
128
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
129
|
+
// 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/start.js
|
|
130
130
|
var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
131
131
|
const argv = io.argv ?? process.argv;
|
|
132
132
|
const env = io.env ?? process.env;
|
|
@@ -139,7 +139,7 @@ var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
|
139
139
|
return { code: 0 };
|
|
140
140
|
}
|
|
141
141
|
if (first === DISPATCH_FLAG) {
|
|
142
|
-
const { runWcat } = await import("./dispatch-
|
|
142
|
+
const { runWcat } = await import("./dispatch-PRAIGIFS.js");
|
|
143
143
|
const code = await runWcat(rest, { env, platform, stdout, stderr: io.stderr ?? process.stderr, self: tool });
|
|
144
144
|
return { code };
|
|
145
145
|
}
|
|
@@ -183,12 +183,12 @@ var wcat = await wcatStart({
|
|
|
183
183
|
if (wcat.code !== void 0) {
|
|
184
184
|
process.exitCode = wcat.code;
|
|
185
185
|
} else {
|
|
186
|
-
const { startCli } = await import("./entry-
|
|
186
|
+
const { startCli } = await import("./entry-LPEXVFQC.js");
|
|
187
187
|
await startCli({
|
|
188
188
|
app: TG,
|
|
189
189
|
sqlite: true,
|
|
190
190
|
// A static import would load the whole program, and its SQLite, before ensureSqlite could swap it.
|
|
191
|
-
run: /* @__PURE__ */ __name(async ({ args }) => (await import("./program-
|
|
191
|
+
run: /* @__PURE__ */ __name(async ({ args }) => (await import("./program-P2VATMKJ.js")).run(args), "run"),
|
|
192
192
|
fail: /* @__PURE__ */ __name((error, { tty }) => {
|
|
193
193
|
const object = errorObjectOf(error);
|
|
194
194
|
process.stderr.write(`${renderError(object, { cli: TG.command, interactive: tty })}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.126.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "0.
|
|
1
|
+
export const VERSION = "0.126.0";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/tg-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.126.0",
|
|
4
4
|
"description": "A local command line interface for a personal Telegram account, built for agents and scripts",
|
|
5
5
|
"mcpName": "dev.wirecat/tg-cli",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@mtcute/node": "0.32.7",
|
|
75
|
-
"@wirecat/cli-base": "0.
|
|
76
|
-
"@wirecat/cli-core": "0.
|
|
75
|
+
"@wirecat/cli-base": "0.99.0",
|
|
76
|
+
"@wirecat/cli-core": "0.656.0",
|
|
77
77
|
"commander": "15.0.0",
|
|
78
78
|
"undici": "8.12.3",
|
|
79
79
|
"valibot": "1.5.0"
|
package/skills/tg-cli/SKILL.md
CHANGED
|
@@ -185,7 +185,9 @@ summary; news digests remain separate future work. Permission: `messages.evidenc
|
|
|
185
185
|
the first result and its score do not establish an answer. Explicit syntax remains strict.
|
|
186
186
|
**Without `--discover`, `tg personal search messages` also asks Telegram's search** (`--backend both`; `archive`
|
|
187
187
|
for the archive only). Good search needs downloaded chats: if a search finds nothing and the answer has a `missing`
|
|
188
|
-
`coverage` entry,
|
|
188
|
+
`coverage` entry, first search Telegram too (the same query with `--backend server`, the `search.server` step):
|
|
189
|
+
the local copy may not reach back that far, and Telegram's search does. Then run its `messages.sync` step
|
|
190
|
+
(`tg personal messages sync --all --background`) or ask the owner before saying the message does not exist.
|
|
189
191
|
Words and quoted phrases include word forms;
|
|
190
192
|
use `exact:` or `--exact` for exact forms. Explicit `text:` still matches forms. The default is strict Lucene:
|
|
191
193
|
phrases, AND/OR/NOT, field groups and date ranges. `alpha OR beta gamma` = `(alpha OR beta) AND gamma`.
|
|
@@ -265,7 +267,9 @@ summary; news digests remain separate future work. Permission: `messages.evidenc
|
|
|
265
267
|
|
|
266
268
|
Choose a path from the user's task rather than reading recent messages by default:
|
|
267
269
|
|
|
268
|
-
- **Find an agreement or document:** find the relevant chat IDs, then search the local archive
|
|
270
|
+
- **Find an agreement or document:** find the relevant chat IDs, then `search messages` in them: the local archive
|
|
271
|
+
and Telegram's search together. Keep to `--backend archive` only when the owner asked that nothing leaves the
|
|
272
|
+
machine.
|
|
269
273
|
Inspect search coverage and `store status`; `messages list` alone is only a recent window.
|
|
270
274
|
Follow promising hits with `messages context` or `messages show` and cite their locators.
|
|
271
275
|
Check related chats for a later correction. Empty hits, an empty chat and `page.has_more: false`
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
__name
|
|
5
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
-
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
8
|
-
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
9
|
-
try {
|
|
10
|
-
const url = new URL(value);
|
|
11
|
-
return ["https:", "http:"].includes(url.protocol) && !url.username && !url.password && !url.search && !url.hash;
|
|
12
|
-
} catch {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
}, "endpoint");
|
|
16
|
-
var loopback = /* @__PURE__ */ __name((hostname) => hostname === "localhost" || hostname === "[::1]" || /^127(\.\d{1,3}){3}$/.test(hostname), "loopback");
|
|
17
|
-
var onThisComputer = /* @__PURE__ */ __name((value) => {
|
|
18
|
-
try {
|
|
19
|
-
return loopback(new URL(value).hostname);
|
|
20
|
-
} catch {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
}, "onThisComputer");
|
|
24
|
-
var modelAddressAllowed = /* @__PURE__ */ __name((value) => endpoint(value) && (new URL(value).protocol === "https:" || onThisComputer(value)), "modelAddressAllowed");
|
|
25
|
-
var PLAIN_HTTP_REFUSED = "this address is not allowed: use https, or http only on this computer";
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
endpoint,
|
|
29
|
-
onThisComputer,
|
|
30
|
-
modelAddressAllowed,
|
|
31
|
-
PLAIN_HTTP_REFUSED
|
|
32
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
SCHEMA_DIALECT,
|
|
5
|
-
commandContract,
|
|
6
|
-
commandPathOf,
|
|
7
|
-
findCommand,
|
|
8
|
-
outputOf
|
|
9
|
-
} from "./chunk-F3GHTPAO.js";
|
|
10
|
-
import "./chunk-RHJHOOUL.js";
|
|
11
|
-
import "./chunk-ZL5YG2WK.js";
|
|
12
|
-
import "./chunk-SGBH3D5D.js";
|
|
13
|
-
import "./chunk-54JPEGQA.js";
|
|
14
|
-
import "./chunk-QK4T3VN7.js";
|
|
15
|
-
import "./chunk-VIIIC5LU.js";
|
|
16
|
-
import "./chunk-A5RWKKBZ.js";
|
|
17
|
-
import "./chunk-2NG4JPP7.js";
|
|
18
|
-
import "./chunk-OH3IZ6GW.js";
|
|
19
|
-
import "./chunk-3VVZFBE2.js";
|
|
20
|
-
import "./chunk-UP3J3YXH.js";
|
|
21
|
-
import "./chunk-HVJJWJYQ.js";
|
|
22
|
-
import "./chunk-IVFUSI7G.js";
|
|
23
|
-
import "./chunk-4CIVGT4P.js";
|
|
24
|
-
import "./chunk-UR62DZ7Q.js";
|
|
25
|
-
import "./chunk-Y5E2WNWB.js";
|
|
26
|
-
import "./chunk-E6VSARSU.js";
|
|
27
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
28
|
-
export {
|
|
29
|
-
SCHEMA_DIALECT,
|
|
30
|
-
commandContract,
|
|
31
|
-
commandPathOf,
|
|
32
|
-
findCommand,
|
|
33
|
-
outputOf
|
|
34
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
WIRECAT_TOOLS,
|
|
5
|
-
firstScreen,
|
|
6
|
-
installHelp
|
|
7
|
-
} from "./chunk-NQXVZ5WT.js";
|
|
8
|
-
import "./chunk-2ABQZVK4.js";
|
|
9
|
-
import "./chunk-F3GHTPAO.js";
|
|
10
|
-
import "./chunk-RHJHOOUL.js";
|
|
11
|
-
import "./chunk-ZL5YG2WK.js";
|
|
12
|
-
import "./chunk-SGBH3D5D.js";
|
|
13
|
-
import "./chunk-54JPEGQA.js";
|
|
14
|
-
import "./chunk-QK4T3VN7.js";
|
|
15
|
-
import "./chunk-VIIIC5LU.js";
|
|
16
|
-
import "./chunk-A5RWKKBZ.js";
|
|
17
|
-
import "./chunk-2NG4JPP7.js";
|
|
18
|
-
import "./chunk-OH3IZ6GW.js";
|
|
19
|
-
import "./chunk-3VVZFBE2.js";
|
|
20
|
-
import "./chunk-UP3J3YXH.js";
|
|
21
|
-
import "./chunk-HVJJWJYQ.js";
|
|
22
|
-
import "./chunk-IVFUSI7G.js";
|
|
23
|
-
import "./chunk-4CIVGT4P.js";
|
|
24
|
-
import "./chunk-UR62DZ7Q.js";
|
|
25
|
-
import "./chunk-Y5E2WNWB.js";
|
|
26
|
-
import "./chunk-E6VSARSU.js";
|
|
27
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
28
|
-
export {
|
|
29
|
-
WIRECAT_TOOLS,
|
|
30
|
-
firstScreen,
|
|
31
|
-
installHelp
|
|
32
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
PER_RUN,
|
|
5
|
-
createServer,
|
|
6
|
-
envelope,
|
|
7
|
-
serveOverHttpUntilStopped,
|
|
8
|
-
serveOverStdio
|
|
9
|
-
} from "./chunk-UII3D3HR.js";
|
|
10
|
-
import "./chunk-ZTMV5M3D.js";
|
|
11
|
-
import "./chunk-OVDB5CQM.js";
|
|
12
|
-
import "./chunk-M4W4Y5YR.js";
|
|
13
|
-
import "./chunk-4EGB7GSW.js";
|
|
14
|
-
import "./chunk-2GFGZDWS.js";
|
|
15
|
-
import "./chunk-DFSLHF46.js";
|
|
16
|
-
import "./chunk-5D4AEUVA.js";
|
|
17
|
-
import "./chunk-ISGXVFA4.js";
|
|
18
|
-
import "./chunk-HSRO77SW.js";
|
|
19
|
-
import "./chunk-WSLIXJET.js";
|
|
20
|
-
import "./chunk-VAKSXD4F.js";
|
|
21
|
-
import "./chunk-XSGUG5WG.js";
|
|
22
|
-
import "./chunk-PJGOQSE5.js";
|
|
23
|
-
import "./chunk-CDSSKK5J.js";
|
|
24
|
-
import "./chunk-PP4ZBLS4.js";
|
|
25
|
-
import "./chunk-3PLMMFP6.js";
|
|
26
|
-
import "./chunk-PI4XXMPG.js";
|
|
27
|
-
import "./chunk-IK6XKMLL.js";
|
|
28
|
-
import "./chunk-W4LMTNN2.js";
|
|
29
|
-
import "./chunk-42R4YO4L.js";
|
|
30
|
-
import "./chunk-7AWJZ6NJ.js";
|
|
31
|
-
import "./chunk-QGCVQRHV.js";
|
|
32
|
-
import "./chunk-VMWJGUVV.js";
|
|
33
|
-
import "./chunk-OIF4B526.js";
|
|
34
|
-
import "./chunk-D72URWJE.js";
|
|
35
|
-
import "./chunk-HEV23NIB.js";
|
|
36
|
-
import "./chunk-ZNICTHSC.js";
|
|
37
|
-
import "./chunk-F3GHTPAO.js";
|
|
38
|
-
import "./chunk-RHJHOOUL.js";
|
|
39
|
-
import "./chunk-ZL5YG2WK.js";
|
|
40
|
-
import "./chunk-SGBH3D5D.js";
|
|
41
|
-
import "./chunk-54JPEGQA.js";
|
|
42
|
-
import "./chunk-QK4T3VN7.js";
|
|
43
|
-
import "./chunk-VIIIC5LU.js";
|
|
44
|
-
import "./chunk-A5RWKKBZ.js";
|
|
45
|
-
import "./chunk-2NG4JPP7.js";
|
|
46
|
-
import "./chunk-OH3IZ6GW.js";
|
|
47
|
-
import "./chunk-3VVZFBE2.js";
|
|
48
|
-
import "./chunk-UP3J3YXH.js";
|
|
49
|
-
import "./chunk-HVJJWJYQ.js";
|
|
50
|
-
import "./chunk-IVFUSI7G.js";
|
|
51
|
-
import "./chunk-4CIVGT4P.js";
|
|
52
|
-
import "./chunk-UR62DZ7Q.js";
|
|
53
|
-
import "./chunk-Y5E2WNWB.js";
|
|
54
|
-
import "./chunk-E6VSARSU.js";
|
|
55
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
56
|
-
export {
|
|
57
|
-
PER_RUN,
|
|
58
|
-
createServer,
|
|
59
|
-
envelope,
|
|
60
|
-
serveOverHttpUntilStopped,
|
|
61
|
-
serveOverStdio
|
|
62
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
addStoreMaintenanceCommands,
|
|
5
|
-
buildStems,
|
|
6
|
-
storeMaintenanceCommands,
|
|
7
|
-
storeSummary
|
|
8
|
-
} from "./chunk-N5UM63JW.js";
|
|
9
|
-
import "./chunk-HSRO77SW.js";
|
|
10
|
-
import "./chunk-WSLIXJET.js";
|
|
11
|
-
import "./chunk-VAKSXD4F.js";
|
|
12
|
-
import "./chunk-XSGUG5WG.js";
|
|
13
|
-
import "./chunk-PJGOQSE5.js";
|
|
14
|
-
import "./chunk-CDSSKK5J.js";
|
|
15
|
-
import "./chunk-PP4ZBLS4.js";
|
|
16
|
-
import "./chunk-3PLMMFP6.js";
|
|
17
|
-
import "./chunk-PI4XXMPG.js";
|
|
18
|
-
import "./chunk-2ABQZVK4.js";
|
|
19
|
-
import "./chunk-XDHGM2Z7.js";
|
|
20
|
-
import "./chunk-W4LMTNN2.js";
|
|
21
|
-
import "./chunk-42R4YO4L.js";
|
|
22
|
-
import "./chunk-7AWJZ6NJ.js";
|
|
23
|
-
import "./chunk-QGCVQRHV.js";
|
|
24
|
-
import "./chunk-VMWJGUVV.js";
|
|
25
|
-
import "./chunk-OIF4B526.js";
|
|
26
|
-
import "./chunk-D72URWJE.js";
|
|
27
|
-
import "./chunk-HEV23NIB.js";
|
|
28
|
-
import "./chunk-ZNICTHSC.js";
|
|
29
|
-
import "./chunk-RHJHOOUL.js";
|
|
30
|
-
import "./chunk-ZL5YG2WK.js";
|
|
31
|
-
import "./chunk-SGBH3D5D.js";
|
|
32
|
-
import "./chunk-54JPEGQA.js";
|
|
33
|
-
import "./chunk-QK4T3VN7.js";
|
|
34
|
-
import "./chunk-VIIIC5LU.js";
|
|
35
|
-
import "./chunk-A5RWKKBZ.js";
|
|
36
|
-
import "./chunk-2NG4JPP7.js";
|
|
37
|
-
import "./chunk-OH3IZ6GW.js";
|
|
38
|
-
import "./chunk-3VVZFBE2.js";
|
|
39
|
-
import "./chunk-UP3J3YXH.js";
|
|
40
|
-
import "./chunk-HVJJWJYQ.js";
|
|
41
|
-
import "./chunk-IVFUSI7G.js";
|
|
42
|
-
import "./chunk-4CIVGT4P.js";
|
|
43
|
-
import "./chunk-UR62DZ7Q.js";
|
|
44
|
-
import "./chunk-Y5E2WNWB.js";
|
|
45
|
-
import "./chunk-E6VSARSU.js";
|
|
46
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
47
|
-
export {
|
|
48
|
-
addStoreMaintenanceCommands,
|
|
49
|
-
buildStems,
|
|
50
|
-
storeMaintenanceCommands,
|
|
51
|
-
storeSummary
|
|
52
|
-
};
|
|
File without changes
|