@wirecat/tg-cli 0.114.0 → 0.115.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/bin/tg.js.map +1 -1
- package/dist/bundle/{adapter-YAEHX3QB.js → adapter-ODK7R4LY.js} +52 -49
- package/dist/bundle/{all-profiles-R5CW42HQ.js → all-profiles-AQYM65BS.js} +6 -5
- package/dist/bundle/{anthropic-F25RHYV2.js → anthropic-VBDSVNIM.js} +5 -4
- package/dist/bundle/{app-server-FAG6FNXR.js → app-server-YOIHLBNS.js} +41 -38
- package/dist/bundle/{bot-api-KOIAXTQR.js → bot-api-TRYLGQKK.js} +45 -41
- package/dist/bundle/{bot-history-PRAOZEWC.js → bot-history-7DTJLBBJ.js} +16 -15
- package/dist/bundle/{bun-sqlite-DSUCO4TR.js → bun-sqlite-6B3BL5IV.js} +4 -3
- package/dist/bundle/{chunk-EQJG44KE.js → chunk-2TC76TLJ.js} +1 -1
- package/dist/bundle/{chunk-ZFMOPKPT.js → chunk-5ROWSRK7.js} +2 -2
- package/dist/bundle/{chunk-TRRRRGMI.js → chunk-63YKD7YA.js} +1 -1
- package/dist/bundle/{chunk-EARO464A.js → chunk-77M3IAVU.js} +187 -125
- package/dist/bundle/{chunk-NMVFFWF2.js → chunk-A4BQGSKI.js} +6 -6
- package/dist/bundle/{chunk-P4YBABUC.js → chunk-AICS3TSF.js} +5 -3
- package/dist/bundle/{chunk-ULFTCR5W.js → chunk-AVWPMJ6E.js} +1 -1
- package/dist/bundle/{chunk-NJ2I4KFZ.js → chunk-BEQPZA3S.js} +2 -2
- package/dist/bundle/{chunk-NUVBC3LJ.js → chunk-BIEBJLYO.js} +2 -2
- package/dist/bundle/{chunk-7FOT4XD2.js → chunk-BPPRR7TV.js} +32 -32
- package/dist/bundle/chunk-CCHHEMPM.js +71 -0
- package/dist/bundle/{chunk-M3IWROIF.js → chunk-CNO3R4O4.js} +6 -4
- package/dist/bundle/{chunk-C34IDOA5.js → chunk-D4E345BC.js} +1 -1
- package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-Y4LCSCSH.js → chunk-DIABP7ZP.js} +2 -2
- package/dist/bundle/chunk-EW3XTUPB.js +166 -0
- package/dist/bundle/{chunk-NTF34HJP.js → chunk-GCFU6WBE.js} +1 -1
- package/dist/bundle/{chunk-DQQEN3X4.js → chunk-GWDMKEDY.js} +2 -2
- package/dist/bundle/{chunk-CS5DQ6KM.js → chunk-GX4DMI4H.js} +9 -9
- package/dist/bundle/{chunk-2PAKHXIV.js → chunk-HZKWB6WS.js} +25 -25
- package/dist/bundle/chunk-ILHTNOIV.js +23 -0
- package/dist/bundle/{chunk-4JOKO4IW.js → chunk-IUDIRZVU.js} +46 -44
- package/dist/bundle/{chunk-QCXYJKPF.js → chunk-JZXQZW2D.js} +1 -1
- package/dist/bundle/{chunk-3R43O3GG.js → chunk-KDOBY524.js} +12 -10
- package/dist/bundle/{chunk-VHO66SMY.js → chunk-LUIPXRKN.js} +30 -28
- package/dist/bundle/{chunk-AL36NHO6.js → chunk-M7B5IMH3.js} +22 -20
- package/dist/bundle/{chunk-E2IRSRTB.js → chunk-MUZ4KYGY.js} +4 -2
- package/dist/bundle/{chunk-34USFPBF.js → chunk-NTW5ZE47.js} +150 -262
- package/dist/bundle/{chunk-TTTDZOBW.js → chunk-OMP6ALBT.js} +2 -2
- package/dist/bundle/{chunk-OFDMD3YF.js → chunk-OSP335AJ.js} +1 -1
- package/dist/bundle/{chunk-J5U2HKGZ.js → chunk-OUX3QMYI.js} +16 -14
- package/dist/bundle/{chunk-HA35XN2Z.js → chunk-PEJHI7QO.js} +2 -2
- package/dist/bundle/{chunk-YQ64ZNLD.js → chunk-PEKTB3FQ.js} +15 -13
- package/dist/bundle/{chunk-YPABTT7A.js → chunk-POKTQZOM.js} +4 -2
- package/dist/bundle/chunk-PQLBPYJR.js +46 -0
- package/dist/bundle/{chunk-WIRDTH3J.js → chunk-PZAEI4NM.js} +8 -8
- package/dist/bundle/{chunk-I6BKSGZQ.js → chunk-QK6VLKG5.js} +7 -7
- package/dist/bundle/{chunk-OWHF6BON.js → chunk-RHUNMU4Q.js} +3 -3
- package/dist/bundle/{chunk-NKP3RUM4.js → chunk-TMATSEP5.js} +13 -11
- package/dist/bundle/{chunk-RBC7JQ4Y.js → chunk-TQYMLXDS.js} +4 -2
- package/dist/bundle/{chunk-TKNCJMYN.js → chunk-U67TSAAO.js} +85 -81
- package/dist/bundle/{chunk-6SPLZI5P.js → chunk-UBQ3LOF6.js} +3 -3
- package/dist/bundle/{chunk-ALHKUQDZ.js → chunk-UY7GJRGY.js} +1 -1
- package/dist/bundle/{chunk-XDOPONC3.js → chunk-VQCWVZWG.js} +3 -3
- package/dist/bundle/{chunk-MQTTVQ3V.js → chunk-WDNNN3J4.js} +4 -4
- package/dist/bundle/{chunk-KZQXOZFC.js → chunk-WINKEV4F.js} +6 -19
- package/dist/bundle/{chunk-C7K7AP6G.js → chunk-WMG4IGEB.js} +11 -11
- package/dist/bundle/{chunk-5HKMEXVQ.js → chunk-WMRFAK5B.js} +1 -1
- package/dist/bundle/{chunk-IN25CJ3D.js → chunk-XIYRHIBK.js} +1 -1
- package/dist/bundle/{chunk-CDCBFMEI.js → chunk-XY7IGVVS.js} +1 -1
- package/dist/bundle/{chunk-3EZ43DAF.js → chunk-YCUQKFGD.js} +2 -2
- package/dist/bundle/{command-contract-SOTDPG22.js → command-contract-YF4KGFXC.js} +13 -12
- package/dist/bundle/{decode-7U4SXPAN.js → decode-2GATBZGH.js} +6 -5
- package/dist/bundle/dispatch-MJMW7WDH.js +411 -0
- package/dist/bundle/{embed-IDZDQMSW.js → embed-TBQPLA4Y.js} +6 -5
- package/dist/bundle/{embedder-RY5R2PGO.js → embedder-B5DTNCRO.js} +8 -7
- package/dist/bundle/{entry-P6YZ3ZV6.js → entry-A6DEW2TD.js} +6 -5
- package/dist/bundle/failure-TLF3SISS.js +24 -0
- package/dist/bundle/first-run-3N5AABEY.js +27 -0
- package/dist/bundle/first-screen-HANARM67.js +30 -0
- package/dist/bundle/{mcp-FUSDPAOL.js → mcp-MNI62HHE.js} +4 -2
- package/dist/bundle/{node-sqlite-VUXFVPJ6.js → node-sqlite-GIDPALK3.js} +4 -3
- package/dist/bundle/{oauth-7SQIPMOY.js → oauth-C57W4IMD.js} +6 -5
- package/dist/bundle/{open-W3BN2SIO.js → open-E6Q4WRPU.js} +4 -3
- package/dist/bundle/{openai-LQTK3ZMC.js → openai-5WMXY2KP.js} +11 -10
- package/dist/bundle/{program-DIPSLR6O.js → program-FEUDU6GF.js} +58 -53
- package/dist/bundle/{prompt-GESHKSM5.js → prompt-4NGAZGHE.js} +5 -4
- package/dist/bundle/{proxy-transport-C2EUUT32.js → proxy-transport-MGCJ7JAW.js} +5 -4
- package/dist/bundle/{recognize-FEQTIJET.js → recognize-EUHRBA7V.js} +4 -3
- package/dist/bundle/{remote-UXOPBPKS.js → remote-3JHLB2FV.js} +7 -6
- package/dist/bundle/{rerank-L4JM4REK.js → rerank-ZZ45SZPC.js} +6 -5
- package/dist/bundle/{serve-DDWW44DB.js → serve-XOGX5FC5.js} +7 -6
- package/dist/bundle/server-DRE5MJ76.js +59 -0
- package/dist/bundle/{server-UTWBIZHB.js → server-I6O72XP5.js} +31 -29
- package/dist/bundle/{state-EV7FGEK4.js → state-BIUYTGH6.js} +5 -4
- package/dist/bundle/{store-EXBUF4OG.js → store-FOJFYOMR.js} +10 -9
- package/dist/bundle/store-maintenance-command-YKV2C34N.js +49 -0
- package/dist/bundle/tg.js +159 -14
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- package/skills/tg-cli/SKILL.md +2 -0
- package/dist/bundle/first-run-66KTCVQK.js +0 -24
- package/dist/bundle/first-screen-NY46X6QU.js +0 -29
- package/dist/bundle/identity-GXVKGCNU.js +0 -11
- package/dist/bundle/server-ZI7WDAW6.js +0 -56
- package/dist/bundle/store-maintenance-command-UBZE2Z6T.js +0 -46
|
@@ -13,35 +13,37 @@ import {
|
|
|
13
13
|
keyForCommand,
|
|
14
14
|
levelFor,
|
|
15
15
|
readKeysForCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M7B5IMH3.js";
|
|
17
17
|
import {
|
|
18
18
|
CHECK_EVERY_MS,
|
|
19
19
|
isNewer,
|
|
20
20
|
readNoticeState,
|
|
21
21
|
writeUpdateState
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WINKEV4F.js";
|
|
23
23
|
import {
|
|
24
24
|
executableEnvironment,
|
|
25
|
-
executableOnPath
|
|
26
|
-
|
|
27
|
-
} from "./chunk-LPUFOWL3.js";
|
|
25
|
+
executableOnPath
|
|
26
|
+
} from "./chunk-PQLBPYJR.js";
|
|
28
27
|
import {
|
|
29
28
|
MEETING_QUERY,
|
|
30
29
|
QUERY_REASONS,
|
|
31
30
|
meetingProjectEvidence
|
|
32
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QK6VLKG5.js";
|
|
33
32
|
import {
|
|
34
|
-
|
|
35
|
-
} from "./chunk-
|
|
33
|
+
require_cross_spawn
|
|
34
|
+
} from "./chunk-D72URWJE.js";
|
|
36
35
|
import {
|
|
37
|
-
CliError,
|
|
38
36
|
defineReasons,
|
|
39
37
|
errorObjectSchema,
|
|
40
38
|
itemEnvelopeSchema,
|
|
41
39
|
jsonSchemaOf,
|
|
42
40
|
union,
|
|
43
41
|
writes
|
|
44
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-77M3IAVU.js";
|
|
43
|
+
import {
|
|
44
|
+
CliError,
|
|
45
|
+
visibleControls
|
|
46
|
+
} from "./chunk-CCHHEMPM.js";
|
|
45
47
|
import {
|
|
46
48
|
__name,
|
|
47
49
|
__toESM
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PZAEI4NM.js";
|
|
7
7
|
import {
|
|
8
8
|
FETCHING,
|
|
9
9
|
RULES_VERSION,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
syncsOneChat,
|
|
24
24
|
typedQuery,
|
|
25
25
|
withQuery
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IUDIRZVU.js";
|
|
27
27
|
import {
|
|
28
28
|
stringWidth,
|
|
29
29
|
wrapAnsi
|
|
@@ -55,32 +55,23 @@ import {
|
|
|
55
55
|
snakeKeys,
|
|
56
56
|
storeTable,
|
|
57
57
|
withoutProviderRefs
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-M7B5IMH3.js";
|
|
59
59
|
import {
|
|
60
60
|
failureKey
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-POKTQZOM.js";
|
|
62
62
|
import {
|
|
63
63
|
envName
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-D4E345BC.js";
|
|
65
65
|
import {
|
|
66
66
|
holdLock,
|
|
67
67
|
lockPath,
|
|
68
68
|
releaseLock,
|
|
69
69
|
servingProfiles,
|
|
70
70
|
takeLock
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-GCFU6WBE.js";
|
|
72
72
|
import {
|
|
73
73
|
holdersOf
|
|
74
74
|
} from "./chunk-KIZT2MI6.js";
|
|
75
|
-
import {
|
|
76
|
-
checkedOptions,
|
|
77
|
-
range
|
|
78
|
-
} from "./chunk-RBC7JQ4Y.js";
|
|
79
|
-
import {
|
|
80
|
-
messagesFor,
|
|
81
|
-
systemFor,
|
|
82
|
-
validateImages
|
|
83
|
-
} from "./chunk-QCXYJKPF.js";
|
|
84
75
|
import {
|
|
85
76
|
MIGRATIONS,
|
|
86
77
|
drainNoteIndex,
|
|
@@ -109,29 +100,35 @@ import {
|
|
|
109
100
|
storeClients,
|
|
110
101
|
storeContents,
|
|
111
102
|
vectorIndexCounts
|
|
112
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-BPPRR7TV.js";
|
|
113
104
|
import {
|
|
114
105
|
queryFieldsOf
|
|
115
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-QK6VLKG5.js";
|
|
107
|
+
import {
|
|
108
|
+
readSecret
|
|
109
|
+
} from "./chunk-YCUQKFGD.js";
|
|
110
|
+
import {
|
|
111
|
+
checkedOptions,
|
|
112
|
+
range
|
|
113
|
+
} from "./chunk-TQYMLXDS.js";
|
|
114
|
+
import {
|
|
115
|
+
messagesFor,
|
|
116
|
+
systemFor,
|
|
117
|
+
validateImages
|
|
118
|
+
} from "./chunk-JZXQZW2D.js";
|
|
116
119
|
import {
|
|
117
120
|
storePath
|
|
118
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-63YKD7YA.js";
|
|
119
122
|
import {
|
|
120
123
|
openCache
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import {
|
|
123
|
-
readSecret
|
|
124
|
-
} from "./chunk-3EZ43DAF.js";
|
|
124
|
+
} from "./chunk-VQCWVZWG.js";
|
|
125
125
|
import {
|
|
126
126
|
Credentials,
|
|
127
127
|
pathsAreOverridden,
|
|
128
128
|
resolvePaths,
|
|
129
|
-
singleLine,
|
|
130
|
-
visibleControls,
|
|
131
129
|
writeSecurely
|
|
132
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-NTW5ZE47.js";
|
|
133
131
|
import {
|
|
134
|
-
CliError,
|
|
135
132
|
array,
|
|
136
133
|
boolean,
|
|
137
134
|
check,
|
|
@@ -154,7 +151,12 @@ import {
|
|
|
154
151
|
transform,
|
|
155
152
|
trim,
|
|
156
153
|
union
|
|
157
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-77M3IAVU.js";
|
|
155
|
+
import {
|
|
156
|
+
CliError,
|
|
157
|
+
singleLine,
|
|
158
|
+
visibleControls
|
|
159
|
+
} from "./chunk-CCHHEMPM.js";
|
|
158
160
|
import {
|
|
159
161
|
__commonJS,
|
|
160
162
|
__name,
|
|
@@ -6648,7 +6650,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6648
6650
|
if (!adapter && target.provider === "openai")
|
|
6649
6651
|
adapter = openai;
|
|
6650
6652
|
if (!adapter && target.provider === "anthropic")
|
|
6651
|
-
adapter = (await import("./anthropic-
|
|
6653
|
+
adapter = (await import("./anthropic-VBDSVNIM.js")).anthropic;
|
|
6652
6654
|
if (!adapter)
|
|
6653
6655
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6654
6656
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
text,
|
|
14
14
|
time,
|
|
15
15
|
untrusted
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WMRFAK5B.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -24,22 +24,18 @@ import {
|
|
|
24
24
|
providerErrorKey,
|
|
25
25
|
renderEvent,
|
|
26
26
|
runContextOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-POKTQZOM.js";
|
|
28
28
|
import {
|
|
29
29
|
permissionCeiling
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OMP6ALBT.js";
|
|
31
31
|
import {
|
|
32
32
|
envName,
|
|
33
33
|
readOnlyLockOf,
|
|
34
34
|
readOnlyRefusal
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-D4E345BC.js";
|
|
36
36
|
import {
|
|
37
37
|
carries
|
|
38
38
|
} from "./chunk-KIZT2MI6.js";
|
|
39
|
-
import {
|
|
40
|
-
filesPresent,
|
|
41
|
-
sharedModelsDirectory
|
|
42
|
-
} from "./chunk-HA35XN2Z.js";
|
|
43
39
|
import {
|
|
44
40
|
FACT_STATUSES,
|
|
45
41
|
FACT_TYPES,
|
|
@@ -76,41 +72,42 @@ import {
|
|
|
76
72
|
meetingStats,
|
|
77
73
|
meetingSummary,
|
|
78
74
|
meetingTranscript
|
|
79
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-QK6VLKG5.js";
|
|
80
76
|
import {
|
|
81
77
|
sharedConfigPath
|
|
82
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-A4BQGSKI.js";
|
|
79
|
+
import {
|
|
80
|
+
filesPresent,
|
|
81
|
+
sharedModelsDirectory
|
|
82
|
+
} from "./chunk-PEJHI7QO.js";
|
|
83
83
|
import {
|
|
84
84
|
storePath
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-63YKD7YA.js";
|
|
86
86
|
import {
|
|
87
87
|
configFilePath,
|
|
88
88
|
createRecordLog,
|
|
89
89
|
createRenderer,
|
|
90
|
-
|
|
90
|
+
defineLogEvents,
|
|
91
91
|
fieldsOf,
|
|
92
92
|
processStreams,
|
|
93
93
|
projectFields,
|
|
94
94
|
resolvePaths,
|
|
95
95
|
saveConfigFile,
|
|
96
|
-
|
|
97
|
-
visibleControls,
|
|
96
|
+
traceIdOf,
|
|
98
97
|
writeSecurely
|
|
99
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-NTW5ZE47.js";
|
|
100
99
|
import {
|
|
101
100
|
COMPACT_FLAG,
|
|
102
|
-
CliError,
|
|
103
101
|
MAX_NEXT_STEPS,
|
|
104
102
|
STEPS,
|
|
105
103
|
array,
|
|
106
104
|
boolean,
|
|
107
105
|
check,
|
|
108
|
-
defineLogEvents,
|
|
109
106
|
defineSteps,
|
|
110
107
|
effectsSchema,
|
|
108
|
+
exitCodeOfAnswer,
|
|
111
109
|
getDotPath,
|
|
112
110
|
integer,
|
|
113
|
-
isCliError,
|
|
114
111
|
isoDate,
|
|
115
112
|
isoTime,
|
|
116
113
|
itemEnvelopeSchema,
|
|
@@ -144,14 +141,19 @@ import {
|
|
|
144
141
|
stepOf,
|
|
145
142
|
strictObject,
|
|
146
143
|
string,
|
|
147
|
-
traceIdOf,
|
|
148
144
|
trim,
|
|
149
145
|
union,
|
|
150
146
|
unknown,
|
|
151
147
|
unwrap,
|
|
152
148
|
variant,
|
|
153
149
|
writes
|
|
154
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-77M3IAVU.js";
|
|
151
|
+
import {
|
|
152
|
+
CliError,
|
|
153
|
+
isCliError,
|
|
154
|
+
singleLine,
|
|
155
|
+
visibleControls
|
|
156
|
+
} from "./chunk-CCHHEMPM.js";
|
|
155
157
|
import {
|
|
156
158
|
__name
|
|
157
159
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
CliError,
|
|
5
4
|
check,
|
|
6
5
|
pipe,
|
|
7
6
|
string
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-77M3IAVU.js";
|
|
8
|
+
import {
|
|
9
|
+
CliError
|
|
10
|
+
} from "./chunk-CCHHEMPM.js";
|
|
9
11
|
import {
|
|
10
12
|
__name
|
|
11
13
|
} from "./chunk-ZVVMGPBJ.js";
|