@band-ai/sdk 0.2.0 → 0.3.0
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/{ClaudeSDKAdapter-Cna5P1dR.d.ts → ClaudeSDKAdapter-CXud2DBE.d.ts} +2 -1
- package/dist/{ClaudeSDKAdapter-BY4zEbCl.d.cts → ClaudeSDKAdapter-Cx6zhSaG.d.cts} +2 -1
- package/dist/adapters.cjs +347 -172
- package/dist/adapters.d.cts +22 -5
- package/dist/adapters.d.ts +22 -5
- package/dist/adapters.js +204 -60
- package/dist/chunk-F63TPOI3.js +29 -0
- package/dist/{chunk-3BKAC4OZ.js → chunk-JADCAMZY.js} +8 -0
- package/dist/{chunk-N2QTUMGO.js → chunk-JJF44XWA.js} +365 -249
- package/dist/{chunk-TLBCKDQO.js → chunk-K5KAEYPF.js} +2 -2
- package/dist/{chunk-ZZJRRBPQ.js → chunk-KXJ74J73.js} +1 -1
- package/dist/{chunk-NMZLX7TP.js → chunk-MQBBWYRP.js} +52 -45
- package/dist/{chunk-RV76SKFT.js → chunk-MQY74R7D.js} +2 -20
- package/dist/{chunk-LBWKISBS.js → chunk-OH6VVVKT.js} +21 -0
- package/dist/{chunk-EAI2M3WM.js → chunk-W5IAI6Z4.js} +1 -1
- package/dist/{chunk-4IAXZBXX.js → chunk-WA7CHXUS.js} +2 -2
- package/dist/{chunk-NT7TBFX2.js → chunk-XWHWJP4I.js} +2 -2
- package/dist/{chunk-WLCM2OXG.js → chunk-YJ42AZO4.js} +1 -1
- package/dist/converters.js +6 -5
- package/dist/index.cjs +405 -277
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +12 -11
- package/dist/mcp-claude.js +4 -3
- package/dist/mcp.js +5 -4
- package/dist/rest.js +3 -3
- package/dist/runtime.cjs +387 -362
- package/dist/runtime.d.cts +10 -39
- package/dist/runtime.d.ts +10 -39
- package/dist/runtime.js +20 -142
- package/dist/{schemas-BotL3ZLH.d.cts → schemas-BgJhlqqO.d.cts} +57 -13
- package/dist/{schemas-DBsC4J1g.d.ts → schemas-C4mK1WSs.d.ts} +57 -13
- package/dist/testing.cjs +11 -0
- package/dist/testing.js +8 -1
- package/dist/{types-D958TC71.d.cts → types-BNNtOXu3.d.cts} +1 -1
- package/dist/{types-BTN_ZETM.d.ts → types-DFUtpxah.d.ts} +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2,13 +2,13 @@ import { F as FrameworkAdapter } from './protocols-Bz1rxcUg.cjs';
|
|
|
2
2
|
export { A as AdapterToolsProtocol, a as AgentToolsProtocol, C as ContactTools, b as FrameworkAdapterInput, H as HistoryConverter, M as MemoryTools, c as MessagingTools, P as ParticipantTools, d as PeerLookupTools, e as Preprocessor, R as RoomParticipantTools, T as ToolExecutor, f as ToolSchemaProvider } from './protocols-Bz1rxcUg.cjs';
|
|
3
3
|
import { AgentCredentials } from './config.cjs';
|
|
4
4
|
export { AgentConfigResult, LoadAgentConfigFromEnvOptions, loadAgentConfig, loadAgentConfigFromEnv } from './config.cjs';
|
|
5
|
-
import { P as PlatformRuntime, a as PlatformRuntimeOptions } from './schemas-
|
|
6
|
-
export { A as AgentRuntime, B as BandLink, D as DefaultPreprocessor, E as ExecutionContextOptions, M as MCP_SERVER_NAME, b as MCP_TOOL_PREFIX, T as TOOL_MODELS, d as deriveDefaultRestUrl } from './schemas-
|
|
7
|
-
import { P as PlatformMessage } from './types-
|
|
8
|
-
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, S as SessionConfig } from './types-
|
|
5
|
+
import { P as PlatformRuntime, a as PlatformRuntimeOptions } from './schemas-BgJhlqqO.cjs';
|
|
6
|
+
export { A as AgentRuntime, B as BandLink, D as DefaultPreprocessor, E as ExecutionContextOptions, M as MCP_SERVER_NAME, b as MCP_TOOL_PREFIX, T as TOOL_MODELS, d as deriveDefaultRestUrl } from './schemas-BgJhlqqO.cjs';
|
|
7
|
+
import { P as PlatformMessage } from './types-BNNtOXu3.cjs';
|
|
8
|
+
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, S as SessionConfig } from './types-BNNtOXu3.cjs';
|
|
9
9
|
export { W as WebSocketConflictPolicy, a as WebSocketDisconnectError, b as WebSocketDisconnectReason } from './disconnectReason-IuADl6TH.cjs';
|
|
10
10
|
export { C as CustomToolDef } from './customTools-BzF0IISO.cjs';
|
|
11
|
-
export { A as A2AAdapter, a as A2AAdapterOptions, b as A2AGatewayAdapter, c as AnthropicAdapter, d as AnthropicAdapterOptions, 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, j as CodexAdapter, k as CodexAdapterConfig, l as CodexApprovalPolicy, m as CodexReasoningEffort, n as CodexReasoningSummary, o as CodexSandboxMode, p as CodexWebSearchMode, G as GeminiAdapter, q as GeminiAdapterOptions, r as GenericAdapter, s as GenericAdapterHandler, t as GoogleADKAdapter, u as GoogleADKAdapterOptions, L as LangGraphAdapter, v as LangGraphAdapterOptions, w as LangGraphGraph, x as LettaAdapter, y as LettaAdapterOptions, O as OpenAIAdapter, z as OpenAIAdapterOptions, B as OpencodeAdapter, D as OpencodeAdapterConfig, E as OpencodeApprovalMode, F as OpencodeApprovalReply, H as OpencodeQuestionMode, P as ParlantAdapter, I as ParlantAdapterOptions, T as ToolCallingModel, V as VercelAISDKAdapter, J as VercelAISDKAdapterOptions } from './ClaudeSDKAdapter-
|
|
11
|
+
export { A as A2AAdapter, a as A2AAdapterOptions, b as A2AGatewayAdapter, c as AnthropicAdapter, d as AnthropicAdapterOptions, 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, j as CodexAdapter, k as CodexAdapterConfig, l as CodexApprovalPolicy, m as CodexReasoningEffort, n as CodexReasoningSummary, o as CodexSandboxMode, p as CodexWebSearchMode, G as GeminiAdapter, q as GeminiAdapterOptions, r as GenericAdapter, s as GenericAdapterHandler, t as GoogleADKAdapter, u as GoogleADKAdapterOptions, L as LangGraphAdapter, v as LangGraphAdapterOptions, w as LangGraphGraph, x as LettaAdapter, y as LettaAdapterOptions, O as OpenAIAdapter, z as OpenAIAdapterOptions, B as OpencodeAdapter, D as OpencodeAdapterConfig, E as OpencodeApprovalMode, F as OpencodeApprovalReply, H as OpencodeQuestionMode, P as ParlantAdapter, I as ParlantAdapterOptions, T as ToolCallingModel, V as VercelAISDKAdapter, J as VercelAISDKAdapterOptions } from './ClaudeSDKAdapter-Cx6zhSaG.cjs';
|
|
12
12
|
export { S as SimpleAdapter } from './simpleAdapter-BpT4XbZC.cjs';
|
|
13
13
|
export { A as A2AAuth, a as A2AGatewayAdapterOptions } from './opencode-2YdscIc1.cjs';
|
|
14
14
|
import './dtos-B8KU_q4d.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { F as FrameworkAdapter } from './protocols-Bwwcql0h.js';
|
|
|
2
2
|
export { A as AdapterToolsProtocol, a as AgentToolsProtocol, C as ContactTools, b as FrameworkAdapterInput, H as HistoryConverter, M as MemoryTools, c as MessagingTools, P as ParticipantTools, d as PeerLookupTools, e as Preprocessor, R as RoomParticipantTools, T as ToolExecutor, f as ToolSchemaProvider } from './protocols-Bwwcql0h.js';
|
|
3
3
|
import { AgentCredentials } from './config.js';
|
|
4
4
|
export { AgentConfigResult, LoadAgentConfigFromEnvOptions, loadAgentConfig, loadAgentConfigFromEnv } from './config.js';
|
|
5
|
-
import { P as PlatformRuntime, a as PlatformRuntimeOptions } from './schemas-
|
|
6
|
-
export { A as AgentRuntime, B as BandLink, D as DefaultPreprocessor, E as ExecutionContextOptions, M as MCP_SERVER_NAME, b as MCP_TOOL_PREFIX, T as TOOL_MODELS, d as deriveDefaultRestUrl } from './schemas-
|
|
7
|
-
import { P as PlatformMessage } from './types-
|
|
8
|
-
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, S as SessionConfig } from './types-
|
|
5
|
+
import { P as PlatformRuntime, a as PlatformRuntimeOptions } from './schemas-C4mK1WSs.js';
|
|
6
|
+
export { A as AgentRuntime, B as BandLink, D as DefaultPreprocessor, E as ExecutionContextOptions, M as MCP_SERVER_NAME, b as MCP_TOOL_PREFIX, T as TOOL_MODELS, d as deriveDefaultRestUrl } from './schemas-C4mK1WSs.js';
|
|
7
|
+
import { P as PlatformMessage } from './types-DFUtpxah.js';
|
|
8
|
+
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, S as SessionConfig } from './types-DFUtpxah.js';
|
|
9
9
|
export { W as WebSocketConflictPolicy, a as WebSocketDisconnectError, b as WebSocketDisconnectReason } from './disconnectReason-IuADl6TH.js';
|
|
10
10
|
export { C as CustomToolDef } from './customTools-BzF0IISO.js';
|
|
11
|
-
export { A as A2AAdapter, a as A2AAdapterOptions, b as A2AGatewayAdapter, c as AnthropicAdapter, d as AnthropicAdapterOptions, 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, j as CodexAdapter, k as CodexAdapterConfig, l as CodexApprovalPolicy, m as CodexReasoningEffort, n as CodexReasoningSummary, o as CodexSandboxMode, p as CodexWebSearchMode, G as GeminiAdapter, q as GeminiAdapterOptions, r as GenericAdapter, s as GenericAdapterHandler, t as GoogleADKAdapter, u as GoogleADKAdapterOptions, L as LangGraphAdapter, v as LangGraphAdapterOptions, w as LangGraphGraph, x as LettaAdapter, y as LettaAdapterOptions, O as OpenAIAdapter, z as OpenAIAdapterOptions, B as OpencodeAdapter, D as OpencodeAdapterConfig, E as OpencodeApprovalMode, F as OpencodeApprovalReply, H as OpencodeQuestionMode, P as ParlantAdapter, I as ParlantAdapterOptions, T as ToolCallingModel, V as VercelAISDKAdapter, J as VercelAISDKAdapterOptions } from './ClaudeSDKAdapter-
|
|
11
|
+
export { A as A2AAdapter, a as A2AAdapterOptions, b as A2AGatewayAdapter, c as AnthropicAdapter, d as AnthropicAdapterOptions, 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, j as CodexAdapter, k as CodexAdapterConfig, l as CodexApprovalPolicy, m as CodexReasoningEffort, n as CodexReasoningSummary, o as CodexSandboxMode, p as CodexWebSearchMode, G as GeminiAdapter, q as GeminiAdapterOptions, r as GenericAdapter, s as GenericAdapterHandler, t as GoogleADKAdapter, u as GoogleADKAdapterOptions, L as LangGraphAdapter, v as LangGraphAdapterOptions, w as LangGraphGraph, x as LettaAdapter, y as LettaAdapterOptions, O as OpenAIAdapter, z as OpenAIAdapterOptions, B as OpencodeAdapter, D as OpencodeAdapterConfig, E as OpencodeApprovalMode, F as OpencodeApprovalReply, H as OpencodeQuestionMode, P as ParlantAdapter, I as ParlantAdapterOptions, T as ToolCallingModel, V as VercelAISDKAdapter, J as VercelAISDKAdapterOptions } from './ClaudeSDKAdapter-CXud2DBE.js';
|
|
12
12
|
export { S as SimpleAdapter } from './simpleAdapter--wznuoOw.js';
|
|
13
13
|
export { A as A2AAuth, a as A2AGatewayAdapterOptions } from './opencode-Bld62x5t.js';
|
|
14
14
|
import './dtos-B8KU_q4d.js';
|
package/dist/index.js
CHANGED
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
OpenAIAdapter,
|
|
14
14
|
OpencodeAdapter,
|
|
15
15
|
VercelAISDKAdapter
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-MQBBWYRP.js";
|
|
17
|
+
import "./chunk-WA7CHXUS.js";
|
|
18
|
+
import "./chunk-XWHWJP4I.js";
|
|
19
19
|
import {
|
|
20
20
|
loadAgentConfig,
|
|
21
21
|
loadAgentConfigFromEnv
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
A2AAdapter,
|
|
25
25
|
A2AGatewayAdapter,
|
|
26
26
|
ParlantAdapter
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-K5KAEYPF.js";
|
|
28
28
|
import {
|
|
29
29
|
SimpleAdapter
|
|
30
30
|
} from "./chunk-AVVDPXP4.js";
|
|
@@ -35,20 +35,21 @@ import {
|
|
|
35
35
|
PlatformRuntime,
|
|
36
36
|
deriveDefaultRestUrl,
|
|
37
37
|
runWithGracefulShutdown
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-JJF44XWA.js";
|
|
39
|
+
import "./chunk-OH6VVVKT.js";
|
|
40
|
+
import "./chunk-YJ42AZO4.js";
|
|
41
41
|
import {
|
|
42
42
|
MCP_SERVER_NAME,
|
|
43
43
|
MCP_TOOL_PREFIX,
|
|
44
44
|
TOOL_MODELS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MQY74R7D.js";
|
|
46
|
+
import "./chunk-F63TPOI3.js";
|
|
46
47
|
import {
|
|
47
48
|
WebSocketDisconnectError
|
|
48
49
|
} from "./chunk-US226AS4.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-W5IAI6Z4.js";
|
|
51
|
+
import "./chunk-KXJ74J73.js";
|
|
52
|
+
import "./chunk-JADCAMZY.js";
|
|
52
53
|
import "./chunk-OD2G5LFQ.js";
|
|
53
54
|
import "./chunk-JY75VSQK.js";
|
|
54
55
|
|
package/dist/mcp-claude.js
CHANGED
|
@@ -3,12 +3,13 @@ import {
|
|
|
3
3
|
buildSingleContextRegistrations,
|
|
4
4
|
buildZodShape,
|
|
5
5
|
resolveSingleRoomTools
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XWHWJP4I.js";
|
|
7
7
|
import {
|
|
8
8
|
MCP_SERVER_NAME,
|
|
9
9
|
mcpToolNames
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-MQY74R7D.js";
|
|
11
|
+
import "./chunk-F63TPOI3.js";
|
|
12
|
+
import "./chunk-JADCAMZY.js";
|
|
12
13
|
import "./chunk-JY75VSQK.js";
|
|
13
14
|
|
|
14
15
|
// src/mcp/sdk.ts
|
package/dist/mcp.js
CHANGED
|
@@ -4,15 +4,16 @@ import {
|
|
|
4
4
|
BandMcpStdioServer,
|
|
5
5
|
createBandMcpBackend,
|
|
6
6
|
getBandSdkMcpServerConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WA7CHXUS.js";
|
|
8
8
|
import {
|
|
9
9
|
buildRoomScopedRegistrations,
|
|
10
10
|
buildSingleContextRegistrations,
|
|
11
11
|
errorResult,
|
|
12
12
|
successResult
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-XWHWJP4I.js";
|
|
14
|
+
import "./chunk-MQY74R7D.js";
|
|
15
|
+
import "./chunk-F63TPOI3.js";
|
|
16
|
+
import "./chunk-JADCAMZY.js";
|
|
16
17
|
import "./chunk-JY75VSQK.js";
|
|
17
18
|
export {
|
|
18
19
|
BandMcpServer,
|
package/dist/rest.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
RestFacade,
|
|
5
5
|
fetchPaginated,
|
|
6
6
|
normalizePaginationMetadata
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-W5IAI6Z4.js";
|
|
8
|
+
import "./chunk-KXJ74J73.js";
|
|
9
|
+
import "./chunk-JADCAMZY.js";
|
|
10
10
|
import "./chunk-OD2G5LFQ.js";
|
|
11
11
|
import "./chunk-JY75VSQK.js";
|
|
12
12
|
export {
|