@band-ai/sdk 0.4.1 → 0.4.3
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/README.md +1 -1
- package/dist/{CopilotACPAdapter-B_AVyAl6.d.ts → CursorACPAdapter-7-Jtl1LV.d.ts} +167 -3
- package/dist/{CopilotACPAdapter-Clid9xGR.d.cts → CursorACPAdapter-_YhrXRWq.d.cts} +167 -3
- package/dist/adapters.cjs +733 -205
- package/dist/adapters.d.cts +1 -1
- package/dist/adapters.d.ts +1 -1
- package/dist/adapters.js +13 -1
- package/dist/{chunk-UFO6XMCV.js → chunk-VHYPQAQ5.js} +710 -188
- package/dist/index.cjs +671 -141
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -2
- package/package.json +8 -2
package/dist/adapters.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as A2AAdapter, a as A2AAdapterOptions,
|
|
1
|
+
export { A as A2AAdapter, a as A2AAdapterOptions, ac as A2AClientFactory, ad as A2AClientLike, b as A2AGatewayAdapter, c as ACPClientAdapter, d as ACPClientAdapterBaseOptions, e as ACPClientAdapterOptions, f as ACPClientStdioOptions, g as ACPClientTcpOptions, h as ACPConfigRequest, i as ACPConfigSelections, ae as ACPPermissionAbandonReason, af as ACPPermissionEndReason, ag as ACPPermissionRequest, j as AcpSessionConfigError, k as AnthropicAdapter, l as AnthropicAdapterOptions, ah as AnthropicClientFactory, ai as AnthropicToolCallingModel, aj as AnthropicToolCallingModelOptions, C as CODEX_REASONING_EFFORTS, m as CODEX_REASONING_SUMMARIES, n as CODEX_WEB_SEARCH_MODES, o as ClaudePermissionMode, p as ClaudeSDKAdapter, q as ClaudeSDKAdapterOptions, ak as ClaudeSDKQuery, al as ClaudeSDKQueryParams, r as CodexAdapter, s as CodexAdapterConfig, am as CodexAppServerStdioClient, t as CodexApprovalPolicy, an as CodexClientLike, ao as CodexJsonRpcError, u as CodexReasoningEffort, v as CodexReasoningSummary, w as CodexSandboxMode, x as CodexWebSearchMode, y as CopilotACPAdapter, z as CopilotACPAdapterOptions, B as CopilotACPStdioOptions, D as CopilotACPTcpOptions, E as CursorACPAdapter, F as CursorACPAdapterOptions, G as CursorApprovalMode, H as CursorPlanMode, I as CursorQuestionMode, J as DEFAULT_COPILOT_ACP_COMMAND, K as DEFAULT_CURSOR_ACP_COMMAND, L as DEFAULT_OMP_ACP_COMMAND, ap as DynamicToolCallParams, aq as DynamicToolCallResponse, ar as DynamicToolSpec, M as FAILURE_CODE_SESSION_CONFIG, N as GeminiAdapter, O as GeminiAdapterOptions, as as GeminiClientFactory, at as GeminiToolCallingModel, au as GeminiToolCallingModelOptions, P as GenericAdapter, Q as GenericAdapterHandler, R as GoogleADKAdapter, S as GoogleADKAdapterOptions, av as HttpOpencodeClient, aw as HttpOpencodeClientOptions, ax as HttpStatusError, T as LangGraphAdapter, U as LangGraphAdapterOptions, V as LangGraphGraph, W as LettaAdapter, X as LettaAdapterOptions, ay as LettaAgentCreateParams, az as LettaClientFactory, aA as LettaClientLike, aB as LettaHistoryConverter, aC as LettaMessage, aD as LettaMessageCreateParams, aE as LettaMessages, aF as LettaRequestOptions, aG as LettaResponse, aH as LettaResponseMessage, Y as MISSING_CONFIG_OPTIONS_REASON, Z as OmpACPAdapter, _ as OmpACPAdapterOptions, $ as OpenAIAdapter, a0 as OpenAIAdapterOptions, aI as OpenAIClientFactory, aJ as OpenAIToolCallingModel, aK as OpenAIToolCallingModelOptions, a1 as OpencodeAdapter, a2 as OpencodeAdapterConfig, a3 as OpencodeApprovalMode, a4 as OpencodeApprovalReply, aL as OpencodeClientLike, a5 as OpencodeQuestionMode, a6 as ParlantAdapter, a7 as ParlantAdapterOptions, aM as ParlantClientFactory, aN as ParlantClientLike, aO as ToolCall, aP as ToolCallingAdapter, aQ as ToolCallingAdapterOptions, a8 as ToolCallingModel, aR as ToolCallingModelRequest, aS as ToolCallingResponse, aT as ToolResult, aU as TurnStartParams, a9 as VercelAISDKAdapter, aa as VercelAISDKAdapterOptions, aV as VercelAISDKToolCallingModel, aW as VercelAISDKToolCallingModelOptions, ab as applySessionConfigSelections, aX as runSingleToolRound } from './CursorACPAdapter-_YhrXRWq.cjs';
|
|
2
2
|
import * as _agentclientprotocol_sdk from '@agentclientprotocol/sdk';
|
|
3
3
|
import { SessionMode, AgentSideConnection, SessionModeState, McpServer, Agent, InitializeResponse, Implementation, Stream, InitializeRequest, LoadSessionRequest, LoadSessionResponse, ListSessionsRequest, ListSessionsResponse, ForkSessionRequest, ForkSessionResponse, ResumeSessionRequest, ResumeSessionResponse, SetSessionModeRequest, SetSessionModeResponse, SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, AuthenticateRequest, AuthenticateResponse, PromptRequest, PromptResponse } from '@agentclientprotocol/sdk';
|
|
4
4
|
import { A as ACPServerSessionState } from './acp-server-CJhclo6P.cjs';
|
package/dist/adapters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as A2AAdapter, a as A2AAdapterOptions,
|
|
1
|
+
export { A as A2AAdapter, a as A2AAdapterOptions, ac as A2AClientFactory, ad as A2AClientLike, b as A2AGatewayAdapter, c as ACPClientAdapter, d as ACPClientAdapterBaseOptions, e as ACPClientAdapterOptions, f as ACPClientStdioOptions, g as ACPClientTcpOptions, h as ACPConfigRequest, i as ACPConfigSelections, ae as ACPPermissionAbandonReason, af as ACPPermissionEndReason, ag as ACPPermissionRequest, j as AcpSessionConfigError, k as AnthropicAdapter, l as AnthropicAdapterOptions, ah as AnthropicClientFactory, ai as AnthropicToolCallingModel, aj as AnthropicToolCallingModelOptions, C as CODEX_REASONING_EFFORTS, m as CODEX_REASONING_SUMMARIES, n as CODEX_WEB_SEARCH_MODES, o as ClaudePermissionMode, p as ClaudeSDKAdapter, q as ClaudeSDKAdapterOptions, ak as ClaudeSDKQuery, al as ClaudeSDKQueryParams, r as CodexAdapter, s as CodexAdapterConfig, am as CodexAppServerStdioClient, t as CodexApprovalPolicy, an as CodexClientLike, ao as CodexJsonRpcError, u as CodexReasoningEffort, v as CodexReasoningSummary, w as CodexSandboxMode, x as CodexWebSearchMode, y as CopilotACPAdapter, z as CopilotACPAdapterOptions, B as CopilotACPStdioOptions, D as CopilotACPTcpOptions, E as CursorACPAdapter, F as CursorACPAdapterOptions, G as CursorApprovalMode, H as CursorPlanMode, I as CursorQuestionMode, J as DEFAULT_COPILOT_ACP_COMMAND, K as DEFAULT_CURSOR_ACP_COMMAND, L as DEFAULT_OMP_ACP_COMMAND, ap as DynamicToolCallParams, aq as DynamicToolCallResponse, ar as DynamicToolSpec, M as FAILURE_CODE_SESSION_CONFIG, N as GeminiAdapter, O as GeminiAdapterOptions, as as GeminiClientFactory, at as GeminiToolCallingModel, au as GeminiToolCallingModelOptions, P as GenericAdapter, Q as GenericAdapterHandler, R as GoogleADKAdapter, S as GoogleADKAdapterOptions, av as HttpOpencodeClient, aw as HttpOpencodeClientOptions, ax as HttpStatusError, T as LangGraphAdapter, U as LangGraphAdapterOptions, V as LangGraphGraph, W as LettaAdapter, X as LettaAdapterOptions, ay as LettaAgentCreateParams, az as LettaClientFactory, aA as LettaClientLike, aB as LettaHistoryConverter, aC as LettaMessage, aD as LettaMessageCreateParams, aE as LettaMessages, aF as LettaRequestOptions, aG as LettaResponse, aH as LettaResponseMessage, Y as MISSING_CONFIG_OPTIONS_REASON, Z as OmpACPAdapter, _ as OmpACPAdapterOptions, $ as OpenAIAdapter, a0 as OpenAIAdapterOptions, aI as OpenAIClientFactory, aJ as OpenAIToolCallingModel, aK as OpenAIToolCallingModelOptions, a1 as OpencodeAdapter, a2 as OpencodeAdapterConfig, a3 as OpencodeApprovalMode, a4 as OpencodeApprovalReply, aL as OpencodeClientLike, a5 as OpencodeQuestionMode, a6 as ParlantAdapter, a7 as ParlantAdapterOptions, aM as ParlantClientFactory, aN as ParlantClientLike, aO as ToolCall, aP as ToolCallingAdapter, aQ as ToolCallingAdapterOptions, a8 as ToolCallingModel, aR as ToolCallingModelRequest, aS as ToolCallingResponse, aT as ToolResult, aU as TurnStartParams, a9 as VercelAISDKAdapter, aa as VercelAISDKAdapterOptions, aV as VercelAISDKToolCallingModel, aW as VercelAISDKToolCallingModelOptions, ab as applySessionConfigSelections, aX as runSingleToolRound } from './CursorACPAdapter-7-Jtl1LV.js';
|
|
2
2
|
import * as _agentclientprotocol_sdk from '@agentclientprotocol/sdk';
|
|
3
3
|
import { SessionMode, AgentSideConnection, SessionModeState, McpServer, Agent, InitializeResponse, Implementation, Stream, InitializeRequest, LoadSessionRequest, LoadSessionResponse, ListSessionsRequest, ListSessionsResponse, ForkSessionRequest, ForkSessionResponse, ResumeSessionRequest, ResumeSessionResponse, SetSessionModeRequest, SetSessionModeResponse, SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, AuthenticateRequest, AuthenticateResponse, PromptRequest, PromptResponse } from '@agentclientprotocol/sdk';
|
|
4
4
|
import { A as ACPServerSessionState } from './acp-server-BlcYMxKt.js';
|
package/dist/adapters.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ACPClientAdapter,
|
|
3
3
|
ACPServer,
|
|
4
|
+
AcpSessionConfigError,
|
|
4
5
|
AnthropicAdapter,
|
|
5
6
|
AnthropicToolCallingModel,
|
|
6
7
|
BandACPServerAdapter,
|
|
@@ -12,8 +13,11 @@ import {
|
|
|
12
13
|
CodexAppServerStdioClient,
|
|
13
14
|
CodexJsonRpcError,
|
|
14
15
|
CopilotACPAdapter,
|
|
16
|
+
CursorACPAdapter,
|
|
15
17
|
DEFAULT_COPILOT_ACP_COMMAND,
|
|
18
|
+
DEFAULT_CURSOR_ACP_COMMAND,
|
|
16
19
|
DEFAULT_OMP_ACP_COMMAND,
|
|
20
|
+
FAILURE_CODE_SESSION_CONFIG,
|
|
17
21
|
GeminiAdapter,
|
|
18
22
|
GeminiToolCallingModel,
|
|
19
23
|
GenericAdapter,
|
|
@@ -23,6 +27,7 @@ import {
|
|
|
23
27
|
LangGraphAdapter,
|
|
24
28
|
LettaAdapter,
|
|
25
29
|
LettaHistoryConverter,
|
|
30
|
+
MISSING_CONFIG_OPTIONS_REASON,
|
|
26
31
|
OmpACPAdapter,
|
|
27
32
|
OpenAIAdapter,
|
|
28
33
|
OpenAIToolCallingModel,
|
|
@@ -30,8 +35,9 @@ import {
|
|
|
30
35
|
ToolCallingAdapter,
|
|
31
36
|
VercelAISDKAdapter,
|
|
32
37
|
VercelAISDKToolCallingModel,
|
|
38
|
+
applySessionConfigSelections,
|
|
33
39
|
runSingleToolRound
|
|
34
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-VHYPQAQ5.js";
|
|
35
41
|
import "./chunk-UL3Y5C4J.js";
|
|
36
42
|
import "./chunk-JDW5WSGF.js";
|
|
37
43
|
import {
|
|
@@ -60,6 +66,7 @@ export {
|
|
|
60
66
|
A2AHistoryConverter,
|
|
61
67
|
ACPClientAdapter,
|
|
62
68
|
ACPServer,
|
|
69
|
+
AcpSessionConfigError,
|
|
63
70
|
AnthropicAdapter,
|
|
64
71
|
AnthropicToolCallingModel,
|
|
65
72
|
BandACPServerAdapter,
|
|
@@ -71,8 +78,11 @@ export {
|
|
|
71
78
|
CodexAppServerStdioClient,
|
|
72
79
|
CodexJsonRpcError,
|
|
73
80
|
CopilotACPAdapter,
|
|
81
|
+
CursorACPAdapter,
|
|
74
82
|
DEFAULT_COPILOT_ACP_COMMAND,
|
|
83
|
+
DEFAULT_CURSOR_ACP_COMMAND,
|
|
75
84
|
DEFAULT_OMP_ACP_COMMAND,
|
|
85
|
+
FAILURE_CODE_SESSION_CONFIG,
|
|
76
86
|
GatewayHistoryConverter,
|
|
77
87
|
GatewayServer,
|
|
78
88
|
GeminiAdapter,
|
|
@@ -84,6 +94,7 @@ export {
|
|
|
84
94
|
LangGraphAdapter,
|
|
85
95
|
LettaAdapter,
|
|
86
96
|
LettaHistoryConverter,
|
|
97
|
+
MISSING_CONFIG_OPTIONS_REASON,
|
|
87
98
|
OmpACPAdapter,
|
|
88
99
|
OpenAIAdapter,
|
|
89
100
|
OpenAIToolCallingModel,
|
|
@@ -93,6 +104,7 @@ export {
|
|
|
93
104
|
ToolCallingAdapter,
|
|
94
105
|
VercelAISDKAdapter,
|
|
95
106
|
VercelAISDKToolCallingModel,
|
|
107
|
+
applySessionConfigSelections,
|
|
96
108
|
buildA2AAuthHeaders,
|
|
97
109
|
createGatewayServer,
|
|
98
110
|
runSingleToolRound
|