agentgui 1.0.831 → 1.0.833
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/CHANGELOG.md +9 -0
- package/database-migrations-acp.js +133 -0
- package/database-migrations.js +149 -0
- package/database-schema.js +175 -0
- package/database.js +80 -650
- package/lib/claude-runner-acp.js +155 -0
- package/lib/claude-runner-agents.js +104 -0
- package/lib/claude-runner-direct.js +116 -0
- package/lib/claude-runner-run.js +49 -0
- package/lib/claude-runner.js +55 -1266
- package/lib/plugins/agents-plugin.js +0 -3
- package/lib/speech-manager.js +1 -7
- package/lib/ws-handlers-conv.js +0 -144
- package/lib/ws-handlers-conv2.js +169 -0
- package/lib/ws-handlers-session.js +3 -117
- package/lib/ws-handlers-session2.js +106 -0
- package/package.json +1 -1
- package/server.js +12 -1
package/server.js
CHANGED
|
@@ -14,7 +14,7 @@ import express from 'express';
|
|
|
14
14
|
import Busboy from 'busboy';
|
|
15
15
|
import fsbrowse from 'fsbrowse';
|
|
16
16
|
import { queries } from './database.js';
|
|
17
|
-
import { runClaudeWithStreaming } from './lib/claude-runner.js';
|
|
17
|
+
import { runClaudeWithStreaming } from './lib/claude-runner-run.js';
|
|
18
18
|
import { initializeDescriptors, getAgentDescriptor } from './lib/agent-descriptors.js';
|
|
19
19
|
import { discoverExternalACPServers, initializeAgentDiscovery } from './lib/agent-discovery.js';
|
|
20
20
|
import { startGeminiOAuth, exchangeGeminiOAuthCode, handleGeminiOAuthCallback, getGeminiOAuthStatus, getGeminiOAuthState } from './lib/oauth-gemini.js';
|
|
@@ -33,7 +33,9 @@ import { WsRouter } from './lib/ws-protocol.js';
|
|
|
33
33
|
import { encode as wsEncode } from './lib/codec.js';
|
|
34
34
|
const sendWs = (ws, obj) => { if (ws.readyState === 1) ws.send(wsEncode(obj)); };
|
|
35
35
|
import { register as registerConvHandlers } from './lib/ws-handlers-conv.js';
|
|
36
|
+
import { register as registerConvHandlers2 } from './lib/ws-handlers-conv2.js';
|
|
36
37
|
import { register as registerSessionHandlers } from './lib/ws-handlers-session.js';
|
|
38
|
+
import { register as registerSessionHandlers2 } from './lib/ws-handlers-session2.js';
|
|
37
39
|
import { register as registerRunHandlers } from './lib/ws-handlers-run.js';
|
|
38
40
|
import { register as registerUtilHandlers } from './lib/ws-handlers-util.js';
|
|
39
41
|
import { register as registerOAuthHandlers } from './lib/ws-handlers-oauth.js';
|
|
@@ -2627,6 +2629,11 @@ registerConvHandlers(wsRouter, {
|
|
|
2627
2629
|
broadcastSync, processMessageWithStreaming, cleanupExecution,
|
|
2628
2630
|
getJsonlWatcher: () => jsonlWatcher
|
|
2629
2631
|
});
|
|
2632
|
+
registerConvHandlers2(wsRouter, {
|
|
2633
|
+
queries, activeExecutions, rateLimitState,
|
|
2634
|
+
broadcastSync, processMessageWithStreaming, cleanupExecution,
|
|
2635
|
+
getJsonlWatcher: () => jsonlWatcher
|
|
2636
|
+
});
|
|
2630
2637
|
|
|
2631
2638
|
registerMsgHandlers(wsRouter, {
|
|
2632
2639
|
queries, activeExecutions, messageQueues,
|
|
@@ -2641,6 +2648,10 @@ registerSessionHandlers(wsRouter, {
|
|
|
2641
2648
|
getAgentDescriptor, activeScripts, broadcastSync,
|
|
2642
2649
|
startGeminiOAuth: (req) => startGeminiOAuth(req, { PORT, BASE_URL, rootDir }), geminiOAuthState: getGeminiOAuthState
|
|
2643
2650
|
});
|
|
2651
|
+
registerSessionHandlers2(wsRouter, {
|
|
2652
|
+
discoveredAgents, modelCache, activeScripts, broadcastSync,
|
|
2653
|
+
startGeminiOAuth: (req) => startGeminiOAuth(req, { PORT, BASE_URL, rootDir }), geminiOAuthState: getGeminiOAuthState
|
|
2654
|
+
});
|
|
2644
2655
|
debugLog('[INIT] registerSessionHandlers completed');
|
|
2645
2656
|
|
|
2646
2657
|
registerRunHandlers(wsRouter, {
|