@band-ai/sdk 0.1.2
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 +1278 -0
- package/dist/CodexAdapter-BbZD-nBd.d.cts +1278 -0
- package/dist/adapters.cjs +10643 -0
- package/dist/adapters.d.cts +217 -0
- package/dist/adapters.d.ts +217 -0
- package/dist/adapters.js +92 -0
- package/dist/backends-BnOLsG7w.d.cts +20 -0
- package/dist/backends-C4n6cKOf.d.ts +20 -0
- package/dist/chunk-3BKAC4OZ.js +44 -0
- package/dist/chunk-5CXIMAH2.js +52 -0
- package/dist/chunk-6AJA2OPC.js +3682 -0
- package/dist/chunk-A3TDK6GP.js +6674 -0
- package/dist/chunk-AVVDPXP4.js +39 -0
- package/dist/chunk-EDPKUUJL.js +177 -0
- package/dist/chunk-FUODYQRE.js +2562 -0
- package/dist/chunk-GVEQ3RAH.js +373 -0
- package/dist/chunk-INA6YZTZ.js +88 -0
- package/dist/chunk-IZPV6QS6.js +115 -0
- package/dist/chunk-LY55KYVI.js +0 -0
- package/dist/chunk-NIAQBANR.js +577 -0
- package/dist/chunk-OD2G5LFQ.js +78 -0
- package/dist/chunk-SFVKOEQH.js +103 -0
- package/dist/chunk-SG4WLD2H.js +1093 -0
- package/dist/chunk-YR3BOQNW.js +39 -0
- package/dist/chunk-ZZJRRBPQ.js +82 -0
- package/dist/claude-CcnQ5OUC.d.ts +53 -0
- package/dist/claude-CwTAxhwI.d.cts +53 -0
- package/dist/config.cjs +164 -0
- package/dist/config.d.cts +19 -0
- package/dist/config.d.ts +19 -0
- package/dist/config.js +9 -0
- package/dist/converters.cjs +1086 -0
- package/dist/converters.d.cts +143 -0
- package/dist/converters.d.ts +143 -0
- package/dist/converters.js +468 -0
- package/dist/core.cjs +185 -0
- package/dist/core.d.cts +22 -0
- package/dist/core.d.ts +22 -0
- package/dist/core.js +24 -0
- package/dist/customTools-BzF0IISO.d.cts +10 -0
- package/dist/customTools-BzF0IISO.d.ts +10 -0
- package/dist/dtos-DUpbIu8k.d.cts +163 -0
- package/dist/dtos-DUpbIu8k.d.ts +163 -0
- package/dist/history-ByessXNq.d.ts +24 -0
- package/dist/history-i6yN7neC.d.cts +24 -0
- package/dist/index.cjs +13914 -0
- package/dist/index.d.cts +63 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.js +198 -0
- package/dist/linear.cjs +2207 -0
- package/dist/linear.d.cts +167 -0
- package/dist/linear.d.ts +167 -0
- package/dist/linear.js +2139 -0
- package/dist/logger-CABQOnlR.d.cts +21 -0
- package/dist/logger-CABQOnlR.d.ts +21 -0
- package/dist/mcp-claude.cjs +584 -0
- package/dist/mcp-claude.d.cts +4 -0
- package/dist/mcp-claude.d.ts +4 -0
- package/dist/mcp-claude.js +11 -0
- package/dist/mcp.cjs +1247 -0
- package/dist/mcp.d.cts +97 -0
- package/dist/mcp.d.ts +97 -0
- package/dist/mcp.js +27 -0
- package/dist/opencode-BBcDchcN.d.cts +159 -0
- package/dist/opencode-DthQQUsZ.d.ts +159 -0
- package/dist/pagination-BPiys10t.d.cts +25 -0
- package/dist/pagination-CcDkVFxK.d.ts +25 -0
- package/dist/protocols-CInhtFpA.d.cts +116 -0
- package/dist/protocols-DrhzOH6K.d.ts +116 -0
- package/dist/rest.cjs +1159 -0
- package/dist/rest.d.cts +144 -0
- package/dist/rest.d.ts +144 -0
- package/dist/rest.js +18 -0
- package/dist/runtime.cjs +5353 -0
- package/dist/runtime.d.cts +276 -0
- package/dist/runtime.d.ts +276 -0
- package/dist/runtime.js +274 -0
- package/dist/schemas-BpEBkq5V.d.cts +592 -0
- package/dist/schemas-vos1AaBc.d.ts +592 -0
- package/dist/sdk-HJUVSSWA.js +10 -0
- package/dist/simpleAdapter-9OE_p6QW.d.ts +29 -0
- package/dist/simpleAdapter-DqhvjsGr.d.cts +29 -0
- package/dist/testing.cjs +217 -0
- package/dist/testing.d.cts +126 -0
- package/dist/testing.d.ts +126 -0
- package/dist/testing.js +186 -0
- package/dist/types-7jVzOeOP.d.ts +446 -0
- package/dist/types-CSHFipIc.d.cts +331 -0
- package/dist/types-CovcHpYf.d.cts +446 -0
- package/dist/types-CxII3XkA.d.ts +331 -0
- package/package.json +189 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export { b as ACPClientHistoryConverter, A as ACPClientSessionState, c as ACPServerHistoryConverter, a as ACPServerSessionState, G as GatewayHistoryConverter } from './history-i6yN7neC.cjs';
|
|
2
|
+
import { H as HistoryConverter } from './protocols-CInhtFpA.cjs';
|
|
3
|
+
export { A as A2AAuth, d as A2AHistoryConverter, e as A2ASessionState, G as GatewaySessionState, q as GoogleADKHistoryConverter, r as GoogleADKMessage, s as GoogleADKMessages, O as OpencodeHistoryConverter, t as OpencodeSessionState, P as ParlantHistoryConverter, m as ParlantMessage, n as ParlantMessages, p as buildA2AAuthHeaders, u as extractGoogleAdkSessionId, v as extractOpencodeSessionId } from './opencode-BBcDchcN.cjs';
|
|
4
|
+
import './dtos-DUpbIu8k.cjs';
|
|
5
|
+
import './types-CSHFipIc.cjs';
|
|
6
|
+
|
|
7
|
+
type VercelAISDKMessage = {
|
|
8
|
+
role: "system";
|
|
9
|
+
content: string;
|
|
10
|
+
} | {
|
|
11
|
+
role: "user";
|
|
12
|
+
content: string;
|
|
13
|
+
} | {
|
|
14
|
+
role: "assistant";
|
|
15
|
+
content: Array<{
|
|
16
|
+
type: "text";
|
|
17
|
+
text: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: "tool-call";
|
|
20
|
+
toolCallId: string;
|
|
21
|
+
toolName: string;
|
|
22
|
+
input: Record<string, unknown>;
|
|
23
|
+
}>;
|
|
24
|
+
} | {
|
|
25
|
+
role: "tool";
|
|
26
|
+
content: Array<{
|
|
27
|
+
type: "tool-result";
|
|
28
|
+
toolCallId: string;
|
|
29
|
+
toolName: string;
|
|
30
|
+
output: unknown;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
type VercelAISDKMessages = VercelAISDKMessage[];
|
|
34
|
+
declare class VercelAISDKHistoryConverter implements HistoryConverter<VercelAISDKMessages> {
|
|
35
|
+
private agentName;
|
|
36
|
+
constructor(agentName?: string);
|
|
37
|
+
setAgentName(name: string): void;
|
|
38
|
+
convert(raw: Array<Record<string, unknown>>): VercelAISDKMessages;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type AnthropicContentBlock = {
|
|
42
|
+
type: "text";
|
|
43
|
+
text: string;
|
|
44
|
+
} | {
|
|
45
|
+
type: "tool_use";
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
input: Record<string, unknown>;
|
|
49
|
+
} | {
|
|
50
|
+
type: "tool_result";
|
|
51
|
+
tool_use_id: string;
|
|
52
|
+
content: string;
|
|
53
|
+
is_error?: boolean;
|
|
54
|
+
};
|
|
55
|
+
interface AnthropicMessage {
|
|
56
|
+
role: "user" | "assistant";
|
|
57
|
+
content: string | AnthropicContentBlock[];
|
|
58
|
+
}
|
|
59
|
+
type AnthropicMessages = AnthropicMessage[];
|
|
60
|
+
declare class AnthropicHistoryConverter implements HistoryConverter<AnthropicMessages> {
|
|
61
|
+
private agentName;
|
|
62
|
+
constructor(agentName?: string);
|
|
63
|
+
setAgentName(name: string): void;
|
|
64
|
+
convert(raw: Array<Record<string, unknown>>): AnthropicMessages;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface ClaudeSDKSessionState {
|
|
68
|
+
text: string;
|
|
69
|
+
sessionId: string | null;
|
|
70
|
+
}
|
|
71
|
+
declare class ClaudeSDKHistoryConverter implements HistoryConverter<ClaudeSDKSessionState> {
|
|
72
|
+
private agentName;
|
|
73
|
+
constructor(agentName?: string);
|
|
74
|
+
setAgentName(name: string): void;
|
|
75
|
+
convert(raw: Array<Record<string, unknown>>): ClaudeSDKSessionState;
|
|
76
|
+
}
|
|
77
|
+
declare function extractClaudeSessionId(raw: Array<Record<string, unknown>>): string | null;
|
|
78
|
+
|
|
79
|
+
interface CodexSessionState {
|
|
80
|
+
threadId: string | null;
|
|
81
|
+
roomId: string | null;
|
|
82
|
+
createdAt: Date | null;
|
|
83
|
+
}
|
|
84
|
+
declare class CodexHistoryConverter implements HistoryConverter<CodexSessionState> {
|
|
85
|
+
setAgentName(_name: string): void;
|
|
86
|
+
convert(raw: Array<Record<string, unknown>>): CodexSessionState;
|
|
87
|
+
}
|
|
88
|
+
declare function extractCodexSessionId(raw: Array<Record<string, unknown>>): string | null;
|
|
89
|
+
|
|
90
|
+
type GeminiPart = {
|
|
91
|
+
type: "text";
|
|
92
|
+
text: string;
|
|
93
|
+
} | {
|
|
94
|
+
type: "function_call";
|
|
95
|
+
id: string;
|
|
96
|
+
name: string;
|
|
97
|
+
args: Record<string, unknown>;
|
|
98
|
+
} | {
|
|
99
|
+
type: "function_response";
|
|
100
|
+
tool_call_id: string;
|
|
101
|
+
name: string;
|
|
102
|
+
response: {
|
|
103
|
+
output?: string;
|
|
104
|
+
error?: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
interface GeminiMessage {
|
|
108
|
+
role: "user" | "model";
|
|
109
|
+
parts: GeminiPart[];
|
|
110
|
+
}
|
|
111
|
+
type GeminiMessages = GeminiMessage[];
|
|
112
|
+
declare class GeminiHistoryConverter implements HistoryConverter<GeminiMessages> {
|
|
113
|
+
private agentName;
|
|
114
|
+
constructor(agentName?: string);
|
|
115
|
+
setAgentName(name: string): void;
|
|
116
|
+
convert(raw: Array<Record<string, unknown>>): GeminiMessages;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
type LangChainMessage = {
|
|
120
|
+
type: "human";
|
|
121
|
+
content: string;
|
|
122
|
+
} | {
|
|
123
|
+
type: "ai";
|
|
124
|
+
content: string;
|
|
125
|
+
tool_calls?: Array<{
|
|
126
|
+
id: string;
|
|
127
|
+
name: string;
|
|
128
|
+
args: Record<string, unknown>;
|
|
129
|
+
}>;
|
|
130
|
+
} | {
|
|
131
|
+
type: "tool";
|
|
132
|
+
content: string;
|
|
133
|
+
tool_call_id: string;
|
|
134
|
+
};
|
|
135
|
+
type LangChainMessages = LangChainMessage[];
|
|
136
|
+
declare class LangChainHistoryConverter implements HistoryConverter<LangChainMessages> {
|
|
137
|
+
private agentName;
|
|
138
|
+
constructor(agentName?: string);
|
|
139
|
+
setAgentName(name: string): void;
|
|
140
|
+
convert(raw: Array<Record<string, unknown>>): LangChainMessages;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export { type AnthropicContentBlock, AnthropicHistoryConverter, type AnthropicMessage, type AnthropicMessages, ClaudeSDKHistoryConverter, type ClaudeSDKSessionState, CodexHistoryConverter, type CodexSessionState, GeminiHistoryConverter, type GeminiMessage, type GeminiMessages, LangChainHistoryConverter, type LangChainMessage, type LangChainMessages, VercelAISDKHistoryConverter, type VercelAISDKMessage, type VercelAISDKMessages, extractClaudeSessionId, extractCodexSessionId };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export { b as ACPClientHistoryConverter, A as ACPClientSessionState, c as ACPServerHistoryConverter, a as ACPServerSessionState, G as GatewayHistoryConverter } from './history-ByessXNq.js';
|
|
2
|
+
import { H as HistoryConverter } from './protocols-DrhzOH6K.js';
|
|
3
|
+
export { A as A2AAuth, d as A2AHistoryConverter, e as A2ASessionState, G as GatewaySessionState, q as GoogleADKHistoryConverter, r as GoogleADKMessage, s as GoogleADKMessages, O as OpencodeHistoryConverter, t as OpencodeSessionState, P as ParlantHistoryConverter, m as ParlantMessage, n as ParlantMessages, p as buildA2AAuthHeaders, u as extractGoogleAdkSessionId, v as extractOpencodeSessionId } from './opencode-DthQQUsZ.js';
|
|
4
|
+
import './dtos-DUpbIu8k.js';
|
|
5
|
+
import './types-CxII3XkA.js';
|
|
6
|
+
|
|
7
|
+
type VercelAISDKMessage = {
|
|
8
|
+
role: "system";
|
|
9
|
+
content: string;
|
|
10
|
+
} | {
|
|
11
|
+
role: "user";
|
|
12
|
+
content: string;
|
|
13
|
+
} | {
|
|
14
|
+
role: "assistant";
|
|
15
|
+
content: Array<{
|
|
16
|
+
type: "text";
|
|
17
|
+
text: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: "tool-call";
|
|
20
|
+
toolCallId: string;
|
|
21
|
+
toolName: string;
|
|
22
|
+
input: Record<string, unknown>;
|
|
23
|
+
}>;
|
|
24
|
+
} | {
|
|
25
|
+
role: "tool";
|
|
26
|
+
content: Array<{
|
|
27
|
+
type: "tool-result";
|
|
28
|
+
toolCallId: string;
|
|
29
|
+
toolName: string;
|
|
30
|
+
output: unknown;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
type VercelAISDKMessages = VercelAISDKMessage[];
|
|
34
|
+
declare class VercelAISDKHistoryConverter implements HistoryConverter<VercelAISDKMessages> {
|
|
35
|
+
private agentName;
|
|
36
|
+
constructor(agentName?: string);
|
|
37
|
+
setAgentName(name: string): void;
|
|
38
|
+
convert(raw: Array<Record<string, unknown>>): VercelAISDKMessages;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type AnthropicContentBlock = {
|
|
42
|
+
type: "text";
|
|
43
|
+
text: string;
|
|
44
|
+
} | {
|
|
45
|
+
type: "tool_use";
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
input: Record<string, unknown>;
|
|
49
|
+
} | {
|
|
50
|
+
type: "tool_result";
|
|
51
|
+
tool_use_id: string;
|
|
52
|
+
content: string;
|
|
53
|
+
is_error?: boolean;
|
|
54
|
+
};
|
|
55
|
+
interface AnthropicMessage {
|
|
56
|
+
role: "user" | "assistant";
|
|
57
|
+
content: string | AnthropicContentBlock[];
|
|
58
|
+
}
|
|
59
|
+
type AnthropicMessages = AnthropicMessage[];
|
|
60
|
+
declare class AnthropicHistoryConverter implements HistoryConverter<AnthropicMessages> {
|
|
61
|
+
private agentName;
|
|
62
|
+
constructor(agentName?: string);
|
|
63
|
+
setAgentName(name: string): void;
|
|
64
|
+
convert(raw: Array<Record<string, unknown>>): AnthropicMessages;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface ClaudeSDKSessionState {
|
|
68
|
+
text: string;
|
|
69
|
+
sessionId: string | null;
|
|
70
|
+
}
|
|
71
|
+
declare class ClaudeSDKHistoryConverter implements HistoryConverter<ClaudeSDKSessionState> {
|
|
72
|
+
private agentName;
|
|
73
|
+
constructor(agentName?: string);
|
|
74
|
+
setAgentName(name: string): void;
|
|
75
|
+
convert(raw: Array<Record<string, unknown>>): ClaudeSDKSessionState;
|
|
76
|
+
}
|
|
77
|
+
declare function extractClaudeSessionId(raw: Array<Record<string, unknown>>): string | null;
|
|
78
|
+
|
|
79
|
+
interface CodexSessionState {
|
|
80
|
+
threadId: string | null;
|
|
81
|
+
roomId: string | null;
|
|
82
|
+
createdAt: Date | null;
|
|
83
|
+
}
|
|
84
|
+
declare class CodexHistoryConverter implements HistoryConverter<CodexSessionState> {
|
|
85
|
+
setAgentName(_name: string): void;
|
|
86
|
+
convert(raw: Array<Record<string, unknown>>): CodexSessionState;
|
|
87
|
+
}
|
|
88
|
+
declare function extractCodexSessionId(raw: Array<Record<string, unknown>>): string | null;
|
|
89
|
+
|
|
90
|
+
type GeminiPart = {
|
|
91
|
+
type: "text";
|
|
92
|
+
text: string;
|
|
93
|
+
} | {
|
|
94
|
+
type: "function_call";
|
|
95
|
+
id: string;
|
|
96
|
+
name: string;
|
|
97
|
+
args: Record<string, unknown>;
|
|
98
|
+
} | {
|
|
99
|
+
type: "function_response";
|
|
100
|
+
tool_call_id: string;
|
|
101
|
+
name: string;
|
|
102
|
+
response: {
|
|
103
|
+
output?: string;
|
|
104
|
+
error?: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
interface GeminiMessage {
|
|
108
|
+
role: "user" | "model";
|
|
109
|
+
parts: GeminiPart[];
|
|
110
|
+
}
|
|
111
|
+
type GeminiMessages = GeminiMessage[];
|
|
112
|
+
declare class GeminiHistoryConverter implements HistoryConverter<GeminiMessages> {
|
|
113
|
+
private agentName;
|
|
114
|
+
constructor(agentName?: string);
|
|
115
|
+
setAgentName(name: string): void;
|
|
116
|
+
convert(raw: Array<Record<string, unknown>>): GeminiMessages;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
type LangChainMessage = {
|
|
120
|
+
type: "human";
|
|
121
|
+
content: string;
|
|
122
|
+
} | {
|
|
123
|
+
type: "ai";
|
|
124
|
+
content: string;
|
|
125
|
+
tool_calls?: Array<{
|
|
126
|
+
id: string;
|
|
127
|
+
name: string;
|
|
128
|
+
args: Record<string, unknown>;
|
|
129
|
+
}>;
|
|
130
|
+
} | {
|
|
131
|
+
type: "tool";
|
|
132
|
+
content: string;
|
|
133
|
+
tool_call_id: string;
|
|
134
|
+
};
|
|
135
|
+
type LangChainMessages = LangChainMessage[];
|
|
136
|
+
declare class LangChainHistoryConverter implements HistoryConverter<LangChainMessages> {
|
|
137
|
+
private agentName;
|
|
138
|
+
constructor(agentName?: string);
|
|
139
|
+
setAgentName(name: string): void;
|
|
140
|
+
convert(raw: Array<Record<string, unknown>>): LangChainMessages;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export { type AnthropicContentBlock, AnthropicHistoryConverter, type AnthropicMessage, type AnthropicMessages, ClaudeSDKHistoryConverter, type ClaudeSDKSessionState, CodexHistoryConverter, type CodexSessionState, GeminiHistoryConverter, type GeminiMessage, type GeminiMessages, LangChainHistoryConverter, type LangChainMessage, type LangChainMessages, VercelAISDKHistoryConverter, type VercelAISDKMessage, type VercelAISDKMessages, extractClaudeSessionId, extractCodexSessionId };
|