@exreve/exk 1.0.46 → 1.0.47
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/agentSession.js +0 -28
- package/dist/appManager.js +0 -10
- package/dist/openaiAdapter.js +0 -11
- package/dist/projectManager.js +0 -23
- package/dist/ttc-cli.tar.gz +0 -0
- package/package.json +1 -1
package/dist/agentSession.js
CHANGED
|
@@ -1172,34 +1172,6 @@ export class AgentSessionManager {
|
|
|
1172
1172
|
this.processPromptQueue(sessionId);
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
|
-
getContextInfo(sessionId) {
|
|
1176
|
-
const session = this.sessions.get(sessionId);
|
|
1177
|
-
if (!session)
|
|
1178
|
-
return null;
|
|
1179
|
-
return {
|
|
1180
|
-
messageCount: session.messages.length,
|
|
1181
|
-
totalInputTokens: session.totalInputTokens,
|
|
1182
|
-
totalOutputTokens: session.totalOutputTokens,
|
|
1183
|
-
totalTokens: session.totalInputTokens + session.totalOutputTokens,
|
|
1184
|
-
totalCostUsd: session.totalCostUsd,
|
|
1185
|
-
lastUsage: session.lastUsage
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
clearContext(sessionId) {
|
|
1189
|
-
const session = this.sessions.get(sessionId);
|
|
1190
|
-
if (session) {
|
|
1191
|
-
session.messages = [];
|
|
1192
|
-
session.totalInputTokens = 0;
|
|
1193
|
-
session.totalOutputTokens = 0;
|
|
1194
|
-
session.totalCostUsd = 0;
|
|
1195
|
-
session.contextLost = false;
|
|
1196
|
-
// Clear Claude session ID to start fresh
|
|
1197
|
-
session.claudeSessionId = undefined;
|
|
1198
|
-
session.lastUsage = undefined;
|
|
1199
|
-
// Also clear persisted state
|
|
1200
|
-
deleteSessionState(sessionId);
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
1175
|
async deleteSession(sessionId) {
|
|
1204
1176
|
const session = this.sessions.get(sessionId);
|
|
1205
1177
|
if (session) {
|
package/dist/appManager.js
CHANGED
|
@@ -210,13 +210,3 @@ export async function getAppLogs(projectId, appName, lines = 100) {
|
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
/**
|
|
214
|
-
* Get stats for a running app
|
|
215
|
-
*/
|
|
216
|
-
export function getAppStats(projectId, appName) {
|
|
217
|
-
const running = getRunningApp(projectId, appName);
|
|
218
|
-
if (!running) {
|
|
219
|
-
return null;
|
|
220
|
-
}
|
|
221
|
-
return running.runner.getStats();
|
|
222
|
-
}
|
package/dist/openaiAdapter.js
CHANGED
|
@@ -147,17 +147,6 @@ export async function startOpenAIAdapter(config) {
|
|
|
147
147
|
}
|
|
148
148
|
throw new Error(`Failed to start anthropic-proxy for ${config.targetBaseUrl}`);
|
|
149
149
|
}
|
|
150
|
-
/** Stop all running proxy instances */
|
|
151
|
-
export function stopAllAdapters() {
|
|
152
|
-
for (const [key, { process }] of runningProxies) {
|
|
153
|
-
try {
|
|
154
|
-
if (!process.killed)
|
|
155
|
-
process.kill('SIGTERM');
|
|
156
|
-
}
|
|
157
|
-
catch { }
|
|
158
|
-
runningProxies.delete(key);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
150
|
/**
|
|
162
151
|
* Get the adapter configuration for a local model.
|
|
163
152
|
* Reads from ~/.talk-to-code/openai-adapters.json or falls back to defaults.
|
package/dist/projectManager.js
CHANGED
|
@@ -67,26 +67,3 @@ export async function deleteProject(projectPath) {
|
|
|
67
67
|
return { success: false, error: error.message };
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
export async function getProjectInfo(projectPath) {
|
|
71
|
-
try {
|
|
72
|
-
const absolutePath = toAbsolutePath(projectPath);
|
|
73
|
-
try {
|
|
74
|
-
const stat = await fs.stat(absolutePath);
|
|
75
|
-
if (!stat.isDirectory()) {
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
projectId: '', // Will be set by caller
|
|
80
|
-
name: path.basename(absolutePath),
|
|
81
|
-
path: absolutePath,
|
|
82
|
-
exists: true
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
catch {
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
catch {
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
}
|
package/dist/ttc-cli.tar.gz
CHANGED
|
Binary file
|