@band-ai/sdk 0.1.2 → 0.1.4
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/{CodexAdapter-A1k_LMdZ.d.ts → ClaudeSDKAdapter-BHOkjN3X.d.ts} +222 -222
- package/dist/{CodexAdapter-BbZD-nBd.d.cts → ClaudeSDKAdapter-CRq4R-WB.d.cts} +222 -222
- package/dist/adapters.cjs +375 -275
- package/dist/adapters.d.cts +21 -21
- package/dist/adapters.d.ts +21 -21
- package/dist/adapters.js +1512 -13
- package/dist/{backends-C4n6cKOf.d.ts → backends-CzDbiQar.d.ts} +1 -1
- package/dist/{backends-BnOLsG7w.d.cts → backends-SVMT-7l4.d.cts} +1 -1
- package/dist/chunk-FYVLUGW7.js +59 -0
- package/dist/{chunk-6AJA2OPC.js → chunk-I5EZG52P.js} +11 -4
- package/dist/{chunk-NIAQBANR.js → chunk-MSL6CWHY.js} +1 -1
- package/dist/{chunk-A3TDK6GP.js → chunk-RHVH2GZR.js} +4589 -5993
- package/dist/{chunk-FUODYQRE.js → chunk-W5NDZSYE.js} +2 -59
- package/dist/converters.d.cts +1 -1
- package/dist/converters.d.ts +1 -1
- package/dist/converters.js +5 -3
- package/dist/index.cjs +7161 -7116
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -6
- package/dist/mcp-claude.cjs +4 -6
- package/dist/mcp-claude.d.cts +1 -1
- package/dist/mcp-claude.d.ts +1 -1
- package/dist/mcp-claude.js +47 -5
- package/dist/mcp.d.cts +3 -3
- package/dist/mcp.d.ts +3 -3
- package/dist/mcp.js +1 -1
- package/dist/runtime.cjs +11 -4
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-5CXIMAH2.js +0 -52
- package/dist/chunk-LY55KYVI.js +0 -0
- package/dist/sdk-HJUVSSWA.js +0 -10
- package/dist/{history-ByessXNq.d.ts → acp-server-B1Da7L6u.d.ts} +4 -4
- package/dist/{history-i6yN7neC.d.cts → acp-server-BdRz9_UN.d.cts} +4 -4
- /package/dist/{claude-CcnQ5OUC.d.ts → sdk-CcnQ5OUC.d.ts} +0 -0
- /package/dist/{claude-CwTAxhwI.d.cts → sdk-CwTAxhwI.d.cts} +0 -0
package/dist/adapters.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { A as A2AAdapter, a as A2AAdapterOptions, K as A2AClientFactory, M as A2AClientLike, b as A2AGatewayAdapter, c as AnthropicAdapter, d as AnthropicAdapterOptions, N as AnthropicClientFactory, Q as AnthropicToolCallingModel, R as AnthropicToolCallingModelOptions, C as CODEX_REASONING_EFFORTS, e as CODEX_REASONING_SUMMARIES, f as CODEX_WEB_SEARCH_MODES, g as ClaudePermissionMode, h as ClaudeSDKAdapter, i as ClaudeSDKAdapterOptions, S as ClaudeSDKQuery, U as ClaudeSDKQueryParams, j as CodexAdapter, k as CodexAdapterConfig, W as CodexAppServerStdioClient, l as CodexApprovalPolicy, X as CodexClientLike, Y as CodexJsonRpcError, m as CodexReasoningEffort, n as CodexReasoningSummary, o as CodexSandboxMode, p as CodexWebSearchMode, Z as DynamicToolCallParams, _ as DynamicToolCallResponse, $ as DynamicToolSpec, G as GeminiAdapter, q as GeminiAdapterOptions, a0 as GeminiClientFactory, a1 as GeminiToolCallingModel, a2 as GeminiToolCallingModelOptions, r as GenericAdapter, s as GenericAdapterHandler, t as GoogleADKAdapter, u as GoogleADKAdapterOptions, a3 as HttpOpencodeClient, a4 as HttpOpencodeClientOptions, a5 as HttpStatusError, L as LangGraphAdapter, v as LangGraphAdapterOptions, w as LangGraphGraph, x as LettaAdapter, y as LettaAdapterOptions, a6 as LettaAgentCreateParams, a7 as LettaClientFactory, a8 as LettaClientLike, a9 as LettaHistoryConverter, aa as LettaMessage, ab as LettaMessageCreateParams, ac as LettaMessages, ad as LettaRequestOptions, ae as LettaResponse, af as LettaResponseMessage, O as OpenAIAdapter, z as OpenAIAdapterOptions, ag as OpenAIClientFactory, ah as OpenAIToolCallingModel, ai as OpenAIToolCallingModelOptions, B as OpencodeAdapter, D as OpencodeAdapterConfig, E as OpencodeApprovalMode, F as OpencodeApprovalReply, aj as OpencodeClientLike, H as OpencodeQuestionMode, P as ParlantAdapter, I as ParlantAdapterOptions, ak as ParlantClientFactory, al as ParlantClientLike, am as ToolCall, an as ToolCallingAdapter, ao as ToolCallingAdapterOptions, T as ToolCallingModel, ap as ToolCallingModelRequest, aq as ToolCallingResponse, ar as ToolResult, as as TurnStartParams, V as VercelAISDKAdapter, J as VercelAISDKAdapterOptions, at as VercelAISDKToolCallingModel, au as VercelAISDKToolCallingModelOptions, av as runSingleToolRound } from './
|
|
1
|
+
export { A as A2AAdapter, a as A2AAdapterOptions, K as A2AClientFactory, M as A2AClientLike, b as A2AGatewayAdapter, c as AnthropicAdapter, d as AnthropicAdapterOptions, N as AnthropicClientFactory, Q as AnthropicToolCallingModel, R as AnthropicToolCallingModelOptions, C as CODEX_REASONING_EFFORTS, e as CODEX_REASONING_SUMMARIES, f as CODEX_WEB_SEARCH_MODES, g as ClaudePermissionMode, h as ClaudeSDKAdapter, i as ClaudeSDKAdapterOptions, S as ClaudeSDKQuery, U as ClaudeSDKQueryParams, j as CodexAdapter, k as CodexAdapterConfig, W as CodexAppServerStdioClient, l as CodexApprovalPolicy, X as CodexClientLike, Y as CodexJsonRpcError, m as CodexReasoningEffort, n as CodexReasoningSummary, o as CodexSandboxMode, p as CodexWebSearchMode, Z as DynamicToolCallParams, _ as DynamicToolCallResponse, $ as DynamicToolSpec, G as GeminiAdapter, q as GeminiAdapterOptions, a0 as GeminiClientFactory, a1 as GeminiToolCallingModel, a2 as GeminiToolCallingModelOptions, r as GenericAdapter, s as GenericAdapterHandler, t as GoogleADKAdapter, u as GoogleADKAdapterOptions, a3 as HttpOpencodeClient, a4 as HttpOpencodeClientOptions, a5 as HttpStatusError, L as LangGraphAdapter, v as LangGraphAdapterOptions, w as LangGraphGraph, x as LettaAdapter, y as LettaAdapterOptions, a6 as LettaAgentCreateParams, a7 as LettaClientFactory, a8 as LettaClientLike, a9 as LettaHistoryConverter, aa as LettaMessage, ab as LettaMessageCreateParams, ac as LettaMessages, ad as LettaRequestOptions, ae as LettaResponse, af as LettaResponseMessage, O as OpenAIAdapter, z as OpenAIAdapterOptions, ag as OpenAIClientFactory, ah as OpenAIToolCallingModel, ai as OpenAIToolCallingModelOptions, B as OpencodeAdapter, D as OpencodeAdapterConfig, E as OpencodeApprovalMode, F as OpencodeApprovalReply, aj as OpencodeClientLike, H as OpencodeQuestionMode, P as ParlantAdapter, I as ParlantAdapterOptions, ak as ParlantClientFactory, al as ParlantClientLike, am as ToolCall, an as ToolCallingAdapter, ao as ToolCallingAdapterOptions, T as ToolCallingModel, ap as ToolCallingModelRequest, aq as ToolCallingResponse, ar as ToolResult, as as TurnStartParams, V as VercelAISDKAdapter, J as VercelAISDKAdapterOptions, at as VercelAISDKToolCallingModel, au as VercelAISDKToolCallingModelOptions, av as runSingleToolRound } from './ClaudeSDKAdapter-CRq4R-WB.cjs';
|
|
2
2
|
import * as _agentclientprotocol_sdk from '@agentclientprotocol/sdk';
|
|
3
3
|
import { Client, ClientSideConnection, McpServer, ClientCapabilities, SessionMode, AgentSideConnection, SessionModeState, Agent, InitializeResponse, Implementation, Stream, InitializeRequest, LoadSessionRequest, LoadSessionResponse, ListSessionsRequest, ListSessionsResponse, ForkSessionRequest, ForkSessionResponse, ResumeSessionRequest, ResumeSessionResponse, SetSessionModeRequest, SetSessionModeResponse, SetSessionModelRequest, SetSessionModelResponse, SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, AuthenticateRequest, AuthenticateResponse, PromptRequest, PromptResponse } from '@agentclientprotocol/sdk';
|
|
4
|
-
import { A as ACPClientSessionState, a as ACPServerSessionState } from './
|
|
5
|
-
export { G as GatewayHistoryConverter } from './
|
|
4
|
+
import { A as ACPClientSessionState, a as ACPServerSessionState } from './acp-server-BdRz9_UN.cjs';
|
|
5
|
+
export { G as GatewayHistoryConverter } from './acp-server-BdRz9_UN.cjs';
|
|
6
6
|
import { S as SimpleAdapter } from './simpleAdapter-DqhvjsGr.cjs';
|
|
7
7
|
import { A as AdapterToolsProtocol, c as MessagingTools } from './protocols-CInhtFpA.cjs';
|
|
8
8
|
import { P as PlatformMessage } from './types-CovcHpYf.cjs';
|
|
9
|
-
import { M as McpToolRegistration } from './
|
|
9
|
+
import { M as McpToolRegistration } from './sdk-CwTAxhwI.cjs';
|
|
10
10
|
import { R as RestApi } from './types-CSHFipIc.cjs';
|
|
11
11
|
import { b as GatewayServerLike, c as GatewayServerOptions } from './opencode-BBcDchcN.cjs';
|
|
12
12
|
export { A as A2AAuth, a as A2AGatewayAdapterOptions, d as A2AHistoryConverter, e as A2ASessionState, f as GatewayA2AMessage, g as GatewayA2AStatusUpdateEvent, h as GatewayCancelRequest, i as GatewayPeer, j as GatewayRequest, k as GatewayServerFactory, G as GatewaySessionState, l as GatewayTaskState, P as ParlantHistoryConverter, m as ParlantMessage, n as ParlantMessages, o as PendingA2ATask, p as buildA2AAuthHeaders } from './opencode-BBcDchcN.cjs';
|
|
@@ -14,9 +14,23 @@ import './logger-CABQOnlR.cjs';
|
|
|
14
14
|
import './customTools-BzF0IISO.cjs';
|
|
15
15
|
import 'zod';
|
|
16
16
|
import './dtos-DUpbIu8k.cjs';
|
|
17
|
-
import './backends-
|
|
17
|
+
import './backends-SVMT-7l4.cjs';
|
|
18
18
|
import '@anthropic-ai/claude-agent-sdk';
|
|
19
19
|
|
|
20
|
+
declare class GatewayServer implements GatewayServerLike {
|
|
21
|
+
private readonly options;
|
|
22
|
+
private server;
|
|
23
|
+
private started;
|
|
24
|
+
constructor(options: GatewayServerOptions);
|
|
25
|
+
start(): Promise<void>;
|
|
26
|
+
stop(): Promise<void>;
|
|
27
|
+
private loadModules;
|
|
28
|
+
private createApp;
|
|
29
|
+
private registerPeerRoutes;
|
|
30
|
+
private registerPeerRoute;
|
|
31
|
+
}
|
|
32
|
+
declare function createGatewayServer(options: GatewayServerOptions): GatewayServer;
|
|
33
|
+
|
|
20
34
|
interface ACPClientConnectionHandle {
|
|
21
35
|
connection: ClientSideConnection;
|
|
22
36
|
stop(): Promise<void>;
|
|
@@ -177,11 +191,11 @@ declare class ACPServer implements Agent {
|
|
|
177
191
|
private readonly extensionHandler;
|
|
178
192
|
private connection;
|
|
179
193
|
constructor(adapter: ThenvoiACPServerAdapter, options?: ACPServerOptions);
|
|
180
|
-
connectStream(stream: Stream): AgentSideConnection
|
|
194
|
+
connectStream(stream: Stream): Promise<AgentSideConnection>;
|
|
181
195
|
connectStdio(options?: {
|
|
182
196
|
stdin?: NodeJS.ReadableStream;
|
|
183
197
|
stdout?: NodeJS.WritableStream;
|
|
184
|
-
}): AgentSideConnection
|
|
198
|
+
}): Promise<AgentSideConnection>;
|
|
185
199
|
get closed(): Promise<void>;
|
|
186
200
|
initialize(params: InitializeRequest): Promise<InitializeResponse>;
|
|
187
201
|
newSession(params: _agentclientprotocol_sdk.NewSessionRequest): Promise<_agentclientprotocol_sdk.NewSessionResponse>;
|
|
@@ -200,18 +214,4 @@ declare class ACPServer implements Agent {
|
|
|
200
214
|
extNotification(method: string, params: Record<string, unknown>): Promise<void>;
|
|
201
215
|
}
|
|
202
216
|
|
|
203
|
-
declare class GatewayServer implements GatewayServerLike {
|
|
204
|
-
private readonly options;
|
|
205
|
-
private server;
|
|
206
|
-
private started;
|
|
207
|
-
constructor(options: GatewayServerOptions);
|
|
208
|
-
start(): Promise<void>;
|
|
209
|
-
stop(): Promise<void>;
|
|
210
|
-
private loadModules;
|
|
211
|
-
private createApp;
|
|
212
|
-
private registerPeerRoutes;
|
|
213
|
-
private registerPeerRoute;
|
|
214
|
-
}
|
|
215
|
-
declare function createGatewayServer(options: GatewayServerOptions): GatewayServer;
|
|
216
|
-
|
|
217
217
|
export { ACPClientAdapter, type ACPClientAdapterOptions, ACPServer, type ACPServerOptions, GatewayServer, GatewayServerLike, GatewayServerOptions, ThenvoiACPServerAdapter, type ThenvoiACPServerAdapterOptions, createGatewayServer };
|
package/dist/adapters.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { A as A2AAdapter, a as A2AAdapterOptions, K as A2AClientFactory, M as A2AClientLike, b as A2AGatewayAdapter, c as AnthropicAdapter, d as AnthropicAdapterOptions, N as AnthropicClientFactory, Q as AnthropicToolCallingModel, R as AnthropicToolCallingModelOptions, C as CODEX_REASONING_EFFORTS, e as CODEX_REASONING_SUMMARIES, f as CODEX_WEB_SEARCH_MODES, g as ClaudePermissionMode, h as ClaudeSDKAdapter, i as ClaudeSDKAdapterOptions, S as ClaudeSDKQuery, U as ClaudeSDKQueryParams, j as CodexAdapter, k as CodexAdapterConfig, W as CodexAppServerStdioClient, l as CodexApprovalPolicy, X as CodexClientLike, Y as CodexJsonRpcError, m as CodexReasoningEffort, n as CodexReasoningSummary, o as CodexSandboxMode, p as CodexWebSearchMode, Z as DynamicToolCallParams, _ as DynamicToolCallResponse, $ as DynamicToolSpec, G as GeminiAdapter, q as GeminiAdapterOptions, a0 as GeminiClientFactory, a1 as GeminiToolCallingModel, a2 as GeminiToolCallingModelOptions, r as GenericAdapter, s as GenericAdapterHandler, t as GoogleADKAdapter, u as GoogleADKAdapterOptions, a3 as HttpOpencodeClient, a4 as HttpOpencodeClientOptions, a5 as HttpStatusError, L as LangGraphAdapter, v as LangGraphAdapterOptions, w as LangGraphGraph, x as LettaAdapter, y as LettaAdapterOptions, a6 as LettaAgentCreateParams, a7 as LettaClientFactory, a8 as LettaClientLike, a9 as LettaHistoryConverter, aa as LettaMessage, ab as LettaMessageCreateParams, ac as LettaMessages, ad as LettaRequestOptions, ae as LettaResponse, af as LettaResponseMessage, O as OpenAIAdapter, z as OpenAIAdapterOptions, ag as OpenAIClientFactory, ah as OpenAIToolCallingModel, ai as OpenAIToolCallingModelOptions, B as OpencodeAdapter, D as OpencodeAdapterConfig, E as OpencodeApprovalMode, F as OpencodeApprovalReply, aj as OpencodeClientLike, H as OpencodeQuestionMode, P as ParlantAdapter, I as ParlantAdapterOptions, ak as ParlantClientFactory, al as ParlantClientLike, am as ToolCall, an as ToolCallingAdapter, ao as ToolCallingAdapterOptions, T as ToolCallingModel, ap as ToolCallingModelRequest, aq as ToolCallingResponse, ar as ToolResult, as as TurnStartParams, V as VercelAISDKAdapter, J as VercelAISDKAdapterOptions, at as VercelAISDKToolCallingModel, au as VercelAISDKToolCallingModelOptions, av as runSingleToolRound } from './
|
|
1
|
+
export { A as A2AAdapter, a as A2AAdapterOptions, K as A2AClientFactory, M as A2AClientLike, b as A2AGatewayAdapter, c as AnthropicAdapter, d as AnthropicAdapterOptions, N as AnthropicClientFactory, Q as AnthropicToolCallingModel, R as AnthropicToolCallingModelOptions, C as CODEX_REASONING_EFFORTS, e as CODEX_REASONING_SUMMARIES, f as CODEX_WEB_SEARCH_MODES, g as ClaudePermissionMode, h as ClaudeSDKAdapter, i as ClaudeSDKAdapterOptions, S as ClaudeSDKQuery, U as ClaudeSDKQueryParams, j as CodexAdapter, k as CodexAdapterConfig, W as CodexAppServerStdioClient, l as CodexApprovalPolicy, X as CodexClientLike, Y as CodexJsonRpcError, m as CodexReasoningEffort, n as CodexReasoningSummary, o as CodexSandboxMode, p as CodexWebSearchMode, Z as DynamicToolCallParams, _ as DynamicToolCallResponse, $ as DynamicToolSpec, G as GeminiAdapter, q as GeminiAdapterOptions, a0 as GeminiClientFactory, a1 as GeminiToolCallingModel, a2 as GeminiToolCallingModelOptions, r as GenericAdapter, s as GenericAdapterHandler, t as GoogleADKAdapter, u as GoogleADKAdapterOptions, a3 as HttpOpencodeClient, a4 as HttpOpencodeClientOptions, a5 as HttpStatusError, L as LangGraphAdapter, v as LangGraphAdapterOptions, w as LangGraphGraph, x as LettaAdapter, y as LettaAdapterOptions, a6 as LettaAgentCreateParams, a7 as LettaClientFactory, a8 as LettaClientLike, a9 as LettaHistoryConverter, aa as LettaMessage, ab as LettaMessageCreateParams, ac as LettaMessages, ad as LettaRequestOptions, ae as LettaResponse, af as LettaResponseMessage, O as OpenAIAdapter, z as OpenAIAdapterOptions, ag as OpenAIClientFactory, ah as OpenAIToolCallingModel, ai as OpenAIToolCallingModelOptions, B as OpencodeAdapter, D as OpencodeAdapterConfig, E as OpencodeApprovalMode, F as OpencodeApprovalReply, aj as OpencodeClientLike, H as OpencodeQuestionMode, P as ParlantAdapter, I as ParlantAdapterOptions, ak as ParlantClientFactory, al as ParlantClientLike, am as ToolCall, an as ToolCallingAdapter, ao as ToolCallingAdapterOptions, T as ToolCallingModel, ap as ToolCallingModelRequest, aq as ToolCallingResponse, ar as ToolResult, as as TurnStartParams, V as VercelAISDKAdapter, J as VercelAISDKAdapterOptions, at as VercelAISDKToolCallingModel, au as VercelAISDKToolCallingModelOptions, av as runSingleToolRound } from './ClaudeSDKAdapter-BHOkjN3X.js';
|
|
2
2
|
import * as _agentclientprotocol_sdk from '@agentclientprotocol/sdk';
|
|
3
3
|
import { Client, ClientSideConnection, McpServer, ClientCapabilities, SessionMode, AgentSideConnection, SessionModeState, Agent, InitializeResponse, Implementation, Stream, InitializeRequest, LoadSessionRequest, LoadSessionResponse, ListSessionsRequest, ListSessionsResponse, ForkSessionRequest, ForkSessionResponse, ResumeSessionRequest, ResumeSessionResponse, SetSessionModeRequest, SetSessionModeResponse, SetSessionModelRequest, SetSessionModelResponse, SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, AuthenticateRequest, AuthenticateResponse, PromptRequest, PromptResponse } from '@agentclientprotocol/sdk';
|
|
4
|
-
import { A as ACPClientSessionState, a as ACPServerSessionState } from './
|
|
5
|
-
export { G as GatewayHistoryConverter } from './
|
|
4
|
+
import { A as ACPClientSessionState, a as ACPServerSessionState } from './acp-server-B1Da7L6u.js';
|
|
5
|
+
export { G as GatewayHistoryConverter } from './acp-server-B1Da7L6u.js';
|
|
6
6
|
import { S as SimpleAdapter } from './simpleAdapter-9OE_p6QW.js';
|
|
7
7
|
import { A as AdapterToolsProtocol, c as MessagingTools } from './protocols-DrhzOH6K.js';
|
|
8
8
|
import { P as PlatformMessage } from './types-7jVzOeOP.js';
|
|
9
|
-
import { M as McpToolRegistration } from './
|
|
9
|
+
import { M as McpToolRegistration } from './sdk-CcnQ5OUC.js';
|
|
10
10
|
import { R as RestApi } from './types-CxII3XkA.js';
|
|
11
11
|
import { b as GatewayServerLike, c as GatewayServerOptions } from './opencode-DthQQUsZ.js';
|
|
12
12
|
export { A as A2AAuth, a as A2AGatewayAdapterOptions, d as A2AHistoryConverter, e as A2ASessionState, f as GatewayA2AMessage, g as GatewayA2AStatusUpdateEvent, h as GatewayCancelRequest, i as GatewayPeer, j as GatewayRequest, k as GatewayServerFactory, G as GatewaySessionState, l as GatewayTaskState, P as ParlantHistoryConverter, m as ParlantMessage, n as ParlantMessages, o as PendingA2ATask, p as buildA2AAuthHeaders } from './opencode-DthQQUsZ.js';
|
|
@@ -14,9 +14,23 @@ import './logger-CABQOnlR.js';
|
|
|
14
14
|
import './customTools-BzF0IISO.js';
|
|
15
15
|
import 'zod';
|
|
16
16
|
import './dtos-DUpbIu8k.js';
|
|
17
|
-
import './backends-
|
|
17
|
+
import './backends-CzDbiQar.js';
|
|
18
18
|
import '@anthropic-ai/claude-agent-sdk';
|
|
19
19
|
|
|
20
|
+
declare class GatewayServer implements GatewayServerLike {
|
|
21
|
+
private readonly options;
|
|
22
|
+
private server;
|
|
23
|
+
private started;
|
|
24
|
+
constructor(options: GatewayServerOptions);
|
|
25
|
+
start(): Promise<void>;
|
|
26
|
+
stop(): Promise<void>;
|
|
27
|
+
private loadModules;
|
|
28
|
+
private createApp;
|
|
29
|
+
private registerPeerRoutes;
|
|
30
|
+
private registerPeerRoute;
|
|
31
|
+
}
|
|
32
|
+
declare function createGatewayServer(options: GatewayServerOptions): GatewayServer;
|
|
33
|
+
|
|
20
34
|
interface ACPClientConnectionHandle {
|
|
21
35
|
connection: ClientSideConnection;
|
|
22
36
|
stop(): Promise<void>;
|
|
@@ -177,11 +191,11 @@ declare class ACPServer implements Agent {
|
|
|
177
191
|
private readonly extensionHandler;
|
|
178
192
|
private connection;
|
|
179
193
|
constructor(adapter: ThenvoiACPServerAdapter, options?: ACPServerOptions);
|
|
180
|
-
connectStream(stream: Stream): AgentSideConnection
|
|
194
|
+
connectStream(stream: Stream): Promise<AgentSideConnection>;
|
|
181
195
|
connectStdio(options?: {
|
|
182
196
|
stdin?: NodeJS.ReadableStream;
|
|
183
197
|
stdout?: NodeJS.WritableStream;
|
|
184
|
-
}): AgentSideConnection
|
|
198
|
+
}): Promise<AgentSideConnection>;
|
|
185
199
|
get closed(): Promise<void>;
|
|
186
200
|
initialize(params: InitializeRequest): Promise<InitializeResponse>;
|
|
187
201
|
newSession(params: _agentclientprotocol_sdk.NewSessionRequest): Promise<_agentclientprotocol_sdk.NewSessionResponse>;
|
|
@@ -200,18 +214,4 @@ declare class ACPServer implements Agent {
|
|
|
200
214
|
extNotification(method: string, params: Record<string, unknown>): Promise<void>;
|
|
201
215
|
}
|
|
202
216
|
|
|
203
|
-
declare class GatewayServer implements GatewayServerLike {
|
|
204
|
-
private readonly options;
|
|
205
|
-
private server;
|
|
206
|
-
private started;
|
|
207
|
-
constructor(options: GatewayServerOptions);
|
|
208
|
-
start(): Promise<void>;
|
|
209
|
-
stop(): Promise<void>;
|
|
210
|
-
private loadModules;
|
|
211
|
-
private createApp;
|
|
212
|
-
private registerPeerRoutes;
|
|
213
|
-
private registerPeerRoute;
|
|
214
|
-
}
|
|
215
|
-
declare function createGatewayServer(options: GatewayServerOptions): GatewayServer;
|
|
216
|
-
|
|
217
217
|
export { ACPClientAdapter, type ACPClientAdapterOptions, ACPServer, type ACPServerOptions, GatewayServer, GatewayServerLike, GatewayServerOptions, ThenvoiACPServerAdapter, type ThenvoiACPServerAdapterOptions, createGatewayServer };
|