@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/index.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ import { P as PlatformMessage } from './types-DtcOLALn.cjs';
|
|
|
9
9
|
export { A as AgentConfig, a as AgentInput, C as ContactEvent, b as ContactEventCallback, c as ContactEventConfig, d as ContactEventStrategy, e as ConversationContext, H as HistoryProvider, M as MessageHandler, f as PlatformEvent, R as ReconnectedEvent, S as SessionConfig } from './types-DtcOLALn.cjs';
|
|
10
10
|
export { W as WebSocketConflictPolicy, a as WebSocketDisconnectError, b as WebSocketDisconnectReason } from './disconnectReason-Cctmg1SN.cjs';
|
|
11
11
|
export { C as CustomToolDef } from './customTools-Bfecd0mJ.cjs';
|
|
12
|
-
export { A as A2AAdapter, a as A2AAdapterOptions, b as A2AGatewayAdapter, c as ACPClientAdapter, d as ACPClientAdapterBaseOptions, e as ACPClientAdapterOptions, f as ACPClientStdioOptions, g as ACPClientTcpOptions, h as ACPConfigRequest, i as ACPConfigSelections, j as
|
|
12
|
+
export { A as A2AAdapter, a as A2AAdapterOptions, b as A2AGatewayAdapter, c as ACPClientAdapter, d as ACPClientAdapterBaseOptions, e as ACPClientAdapterOptions, f as ACPClientStdioOptions, g as ACPClientTcpOptions, h as ACPConfigRequest, i as ACPConfigSelections, j as AcpSessionConfigError, k as AnthropicAdapter, l as AnthropicAdapterOptions, 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, r as CodexAdapter, s as CodexAdapterConfig, t as CodexApprovalPolicy, 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, M as FAILURE_CODE_SESSION_CONFIG, N as GeminiAdapter, O as GeminiAdapterOptions, P as GenericAdapter, Q as GenericAdapterHandler, R as GoogleADKAdapter, S as GoogleADKAdapterOptions, T as LangGraphAdapter, U as LangGraphAdapterOptions, V as LangGraphGraph, W as LettaAdapter, X as LettaAdapterOptions, Y as MISSING_CONFIG_OPTIONS_REASON, Z as OmpACPAdapter, _ as OmpACPAdapterOptions, $ as OpenAIAdapter, a0 as OpenAIAdapterOptions, a1 as OpencodeAdapter, a2 as OpencodeAdapterConfig, a3 as OpencodeApprovalMode, a4 as OpencodeApprovalReply, a5 as OpencodeQuestionMode, a6 as ParlantAdapter, a7 as ParlantAdapterOptions, a8 as ToolCallingModel, a9 as VercelAISDKAdapter, aa as VercelAISDKAdapterOptions, ab as applySessionConfigSelections } from './CursorACPAdapter-_YhrXRWq.cjs';
|
|
13
13
|
export { S as SimpleAdapter } from './simpleAdapter-D75rcz9n.cjs';
|
|
14
14
|
export { A as A2AAuth, a as A2AGatewayAdapterOptions } from './acp-client-D-I_5lK-.cjs';
|
|
15
15
|
export { AgentFailure } from '@band-ai/band-sdk-core';
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { P as PlatformMessage } from './types-CKU1N0SK.js';
|
|
|
9
9
|
export { A as AgentConfig, a as AgentInput, C as ContactEvent, b as ContactEventCallback, c as ContactEventConfig, d as ContactEventStrategy, e as ConversationContext, H as HistoryProvider, M as MessageHandler, f as PlatformEvent, R as ReconnectedEvent, S as SessionConfig } from './types-CKU1N0SK.js';
|
|
10
10
|
export { W as WebSocketConflictPolicy, a as WebSocketDisconnectError, b as WebSocketDisconnectReason } from './disconnectReason-Cctmg1SN.js';
|
|
11
11
|
export { C as CustomToolDef } from './customTools-Bfecd0mJ.js';
|
|
12
|
-
export { A as A2AAdapter, a as A2AAdapterOptions, b as A2AGatewayAdapter, c as ACPClientAdapter, d as ACPClientAdapterBaseOptions, e as ACPClientAdapterOptions, f as ACPClientStdioOptions, g as ACPClientTcpOptions, h as ACPConfigRequest, i as ACPConfigSelections, j as
|
|
12
|
+
export { A as A2AAdapter, a as A2AAdapterOptions, b as A2AGatewayAdapter, c as ACPClientAdapter, d as ACPClientAdapterBaseOptions, e as ACPClientAdapterOptions, f as ACPClientStdioOptions, g as ACPClientTcpOptions, h as ACPConfigRequest, i as ACPConfigSelections, j as AcpSessionConfigError, k as AnthropicAdapter, l as AnthropicAdapterOptions, 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, r as CodexAdapter, s as CodexAdapterConfig, t as CodexApprovalPolicy, 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, M as FAILURE_CODE_SESSION_CONFIG, N as GeminiAdapter, O as GeminiAdapterOptions, P as GenericAdapter, Q as GenericAdapterHandler, R as GoogleADKAdapter, S as GoogleADKAdapterOptions, T as LangGraphAdapter, U as LangGraphAdapterOptions, V as LangGraphGraph, W as LettaAdapter, X as LettaAdapterOptions, Y as MISSING_CONFIG_OPTIONS_REASON, Z as OmpACPAdapter, _ as OmpACPAdapterOptions, $ as OpenAIAdapter, a0 as OpenAIAdapterOptions, a1 as OpencodeAdapter, a2 as OpencodeAdapterConfig, a3 as OpencodeApprovalMode, a4 as OpencodeApprovalReply, a5 as OpencodeQuestionMode, a6 as ParlantAdapter, a7 as ParlantAdapterOptions, a8 as ToolCallingModel, a9 as VercelAISDKAdapter, aa as VercelAISDKAdapterOptions, ab as applySessionConfigSelections } from './CursorACPAdapter-7-Jtl1LV.js';
|
|
13
13
|
export { S as SimpleAdapter } from './simpleAdapter-eLvsAQNo.js';
|
|
14
14
|
export { A as A2AAuth, a as A2AGatewayAdapterOptions } from './acp-client-DUXyczlF.js';
|
|
15
15
|
export { AgentFailure } from '@band-ai/band-sdk-core';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ACPClientAdapter,
|
|
3
|
+
AcpSessionConfigError,
|
|
3
4
|
AnthropicAdapter,
|
|
4
5
|
CODEX_REASONING_EFFORTS,
|
|
5
6
|
CODEX_REASONING_SUMMARIES,
|
|
@@ -7,18 +8,23 @@ import {
|
|
|
7
8
|
ClaudeSDKAdapter,
|
|
8
9
|
CodexAdapter,
|
|
9
10
|
CopilotACPAdapter,
|
|
11
|
+
CursorACPAdapter,
|
|
10
12
|
DEFAULT_COPILOT_ACP_COMMAND,
|
|
13
|
+
DEFAULT_CURSOR_ACP_COMMAND,
|
|
11
14
|
DEFAULT_OMP_ACP_COMMAND,
|
|
15
|
+
FAILURE_CODE_SESSION_CONFIG,
|
|
12
16
|
GeminiAdapter,
|
|
13
17
|
GenericAdapter,
|
|
14
18
|
GoogleADKAdapter,
|
|
15
19
|
LangGraphAdapter,
|
|
16
20
|
LettaAdapter,
|
|
21
|
+
MISSING_CONFIG_OPTIONS_REASON,
|
|
17
22
|
OmpACPAdapter,
|
|
18
23
|
OpenAIAdapter,
|
|
19
24
|
OpencodeAdapter,
|
|
20
|
-
VercelAISDKAdapter
|
|
21
|
-
|
|
25
|
+
VercelAISDKAdapter,
|
|
26
|
+
applySessionConfigSelections
|
|
27
|
+
} from "./chunk-VHYPQAQ5.js";
|
|
22
28
|
import "./chunk-UL3Y5C4J.js";
|
|
23
29
|
import "./chunk-JDW5WSGF.js";
|
|
24
30
|
import {
|
|
@@ -267,6 +273,7 @@ export {
|
|
|
267
273
|
A2AAdapter,
|
|
268
274
|
A2AGatewayAdapter,
|
|
269
275
|
ACPClientAdapter,
|
|
276
|
+
AcpSessionConfigError,
|
|
270
277
|
Agent,
|
|
271
278
|
AgentFailure,
|
|
272
279
|
AgentRuntime,
|
|
@@ -278,10 +285,13 @@ export {
|
|
|
278
285
|
ClaudeSDKAdapter,
|
|
279
286
|
CodexAdapter,
|
|
280
287
|
CopilotACPAdapter,
|
|
288
|
+
CursorACPAdapter,
|
|
281
289
|
DEFAULT_COPILOT_ACP_COMMAND,
|
|
290
|
+
DEFAULT_CURSOR_ACP_COMMAND,
|
|
282
291
|
DEFAULT_OMP_ACP_COMMAND,
|
|
283
292
|
DefaultPreprocessor,
|
|
284
293
|
DeliveryFailedError,
|
|
294
|
+
FAILURE_CODE_SESSION_CONFIG,
|
|
285
295
|
FAILURE_EVENT_TYPE,
|
|
286
296
|
FAILURE_METADATA_KEY,
|
|
287
297
|
GeminiAdapter,
|
|
@@ -291,6 +301,7 @@ export {
|
|
|
291
301
|
LettaAdapter,
|
|
292
302
|
MCP_SERVER_NAME,
|
|
293
303
|
MCP_TOOL_PREFIX,
|
|
304
|
+
MISSING_CONFIG_OPTIONS_REASON,
|
|
294
305
|
OmpACPAdapter,
|
|
295
306
|
OpenAIAdapter,
|
|
296
307
|
OpencodeAdapter,
|
|
@@ -303,6 +314,7 @@ export {
|
|
|
303
314
|
VercelAISDKAdapter,
|
|
304
315
|
WebSocketDisconnectError,
|
|
305
316
|
agentFailure,
|
|
317
|
+
applySessionConfigSelections,
|
|
306
318
|
deliverReply,
|
|
307
319
|
deriveDefaultRestUrl,
|
|
308
320
|
isDirectExecution,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@band-ai/sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Band TypeScript SDK core runtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -82,7 +82,13 @@
|
|
|
82
82
|
"lint": "eslint .",
|
|
83
83
|
"clean": "rm -rf dist",
|
|
84
84
|
"dev:linear": "tsx --env-file-if-exists=.env.local examples/linear-band/linear-band-bridge-server.ts",
|
|
85
|
-
"start:linear": "tsx examples/linear-band/linear-band-bridge-server.ts"
|
|
85
|
+
"start:linear": "tsx examples/linear-band/linear-band-bridge-server.ts",
|
|
86
|
+
"examples:config": "python3 scripts/generate-agent-config-for-examples.py",
|
|
87
|
+
"examples:a2a-stub": "node scripts/a2a-stub-server.mjs",
|
|
88
|
+
"examples:discover": "node scripts/examples-discover.mjs",
|
|
89
|
+
"examples:smoke": "node scripts/examples-smoke-startup.mjs --env-file ../../.env.test",
|
|
90
|
+
"examples:run-plan": "tsx --env-file ../../.env.test scripts/example-runner.ts",
|
|
91
|
+
"examples:tom-jerry": "tsx --env-file ../../.env.test scripts/tom-jerry-cross-room.ts"
|
|
86
92
|
},
|
|
87
93
|
"engines": {
|
|
88
94
|
"node": ">=22.12"
|