@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
package/dist/core.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SimpleAdapter
|
|
3
|
+
} from "./chunk-AVVDPXP4.js";
|
|
4
|
+
import {
|
|
5
|
+
ConsoleLogger,
|
|
6
|
+
NoopLogger
|
|
7
|
+
} from "./chunk-OD2G5LFQ.js";
|
|
8
|
+
import {
|
|
9
|
+
RuntimeStateError,
|
|
10
|
+
ThenvoiSdkError,
|
|
11
|
+
TransportError,
|
|
12
|
+
UnsupportedFeatureError,
|
|
13
|
+
ValidationError
|
|
14
|
+
} from "./chunk-YR3BOQNW.js";
|
|
15
|
+
export {
|
|
16
|
+
ConsoleLogger,
|
|
17
|
+
NoopLogger,
|
|
18
|
+
RuntimeStateError,
|
|
19
|
+
SimpleAdapter,
|
|
20
|
+
ThenvoiSdkError,
|
|
21
|
+
TransportError,
|
|
22
|
+
UnsupportedFeatureError,
|
|
23
|
+
ValidationError
|
|
24
|
+
};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
interface MetadataMap {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
}
|
|
4
|
+
interface ToolOperationResult {
|
|
5
|
+
ok?: boolean;
|
|
6
|
+
status?: string;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
interface MentionReference {
|
|
10
|
+
id: string;
|
|
11
|
+
handle?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
username?: string;
|
|
14
|
+
}
|
|
15
|
+
type MentionInput = string[] | MentionReference[];
|
|
16
|
+
interface PaginationMetadataLike {
|
|
17
|
+
page?: number;
|
|
18
|
+
pageSize?: number;
|
|
19
|
+
totalPages?: number;
|
|
20
|
+
totalCount?: number;
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
interface PaginatedList<TItem = MetadataMap> {
|
|
24
|
+
data: TItem[];
|
|
25
|
+
metadata?: PaginationMetadataLike;
|
|
26
|
+
}
|
|
27
|
+
interface ParticipantRecord {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
type: string;
|
|
31
|
+
handle?: string | null;
|
|
32
|
+
role?: string;
|
|
33
|
+
}
|
|
34
|
+
interface PeerRecord {
|
|
35
|
+
id?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
handle?: string | null;
|
|
39
|
+
description?: string | null;
|
|
40
|
+
}
|
|
41
|
+
interface WireContactRecord {
|
|
42
|
+
id?: string;
|
|
43
|
+
handle?: string;
|
|
44
|
+
name?: string | null;
|
|
45
|
+
type?: string;
|
|
46
|
+
description?: string | null;
|
|
47
|
+
is_external?: boolean | null;
|
|
48
|
+
inserted_at?: string;
|
|
49
|
+
}
|
|
50
|
+
type ContactRecord = WireContactRecord;
|
|
51
|
+
interface WireContactRequestRecord {
|
|
52
|
+
id?: string;
|
|
53
|
+
status?: string;
|
|
54
|
+
message?: string | null;
|
|
55
|
+
inserted_at?: string | null;
|
|
56
|
+
}
|
|
57
|
+
interface WireReceivedContactRequestRecord extends WireContactRequestRecord {
|
|
58
|
+
from_handle?: string | null;
|
|
59
|
+
from_name?: string | null;
|
|
60
|
+
}
|
|
61
|
+
interface WireSentContactRequestRecord extends WireContactRequestRecord {
|
|
62
|
+
to_handle?: string | null;
|
|
63
|
+
to_name?: string | null;
|
|
64
|
+
}
|
|
65
|
+
interface WireContactRequestsResult {
|
|
66
|
+
received: WireReceivedContactRequestRecord[];
|
|
67
|
+
sent: WireSentContactRequestRecord[];
|
|
68
|
+
metadata?: MetadataMap;
|
|
69
|
+
}
|
|
70
|
+
type ContactRequestsResult = WireContactRequestsResult;
|
|
71
|
+
type ContactRequestAction = "approve" | "reject" | "cancel";
|
|
72
|
+
interface ListContactsArgs {
|
|
73
|
+
page?: number;
|
|
74
|
+
pageSize?: number;
|
|
75
|
+
}
|
|
76
|
+
interface AddContactArgs {
|
|
77
|
+
handle: string;
|
|
78
|
+
message?: string;
|
|
79
|
+
}
|
|
80
|
+
type RemoveContactArgs = {
|
|
81
|
+
target: "handle";
|
|
82
|
+
handle: string;
|
|
83
|
+
} | {
|
|
84
|
+
target: "contactId";
|
|
85
|
+
contactId: string;
|
|
86
|
+
};
|
|
87
|
+
interface ListContactRequestsArgs {
|
|
88
|
+
page?: number;
|
|
89
|
+
pageSize?: number;
|
|
90
|
+
sentStatus?: string;
|
|
91
|
+
}
|
|
92
|
+
type RespondContactRequestArgs = {
|
|
93
|
+
action: ContactRequestAction;
|
|
94
|
+
target: "handle";
|
|
95
|
+
handle: string;
|
|
96
|
+
} | {
|
|
97
|
+
action: ContactRequestAction;
|
|
98
|
+
target: "requestId";
|
|
99
|
+
requestId: string;
|
|
100
|
+
};
|
|
101
|
+
type MemoryScope = "subject" | "organization" | "all";
|
|
102
|
+
type MemoryVisibility = Exclude<MemoryScope, "all">;
|
|
103
|
+
type MemorySystem = "sensory" | "working" | "long_term";
|
|
104
|
+
type MemoryType = "iconic" | "echoic" | "haptic" | "episodic" | "semantic" | "procedural";
|
|
105
|
+
type MemorySegment = "user" | "agent" | "tool" | "guideline";
|
|
106
|
+
type MemoryStatus = "active" | "superseded" | "archived" | "all";
|
|
107
|
+
interface WireListMemoriesArgs {
|
|
108
|
+
subject_id?: string;
|
|
109
|
+
scope?: MemoryScope;
|
|
110
|
+
system?: MemorySystem;
|
|
111
|
+
type?: MemoryType;
|
|
112
|
+
segment?: MemorySegment;
|
|
113
|
+
content_query?: string;
|
|
114
|
+
page_size?: number;
|
|
115
|
+
status?: MemoryStatus;
|
|
116
|
+
}
|
|
117
|
+
type ListMemoriesArgs = WireListMemoriesArgs;
|
|
118
|
+
interface WireStoreMemoryArgs {
|
|
119
|
+
content: string;
|
|
120
|
+
system: MemorySystem;
|
|
121
|
+
type: MemoryType;
|
|
122
|
+
segment: MemorySegment;
|
|
123
|
+
thought: string;
|
|
124
|
+
scope?: MemoryVisibility;
|
|
125
|
+
subject_id?: string;
|
|
126
|
+
metadata?: MetadataMap;
|
|
127
|
+
}
|
|
128
|
+
type StoreMemoryArgs = WireStoreMemoryArgs;
|
|
129
|
+
interface WireMemoryRecord {
|
|
130
|
+
id?: string;
|
|
131
|
+
content?: string;
|
|
132
|
+
system?: string;
|
|
133
|
+
type?: string;
|
|
134
|
+
segment?: string;
|
|
135
|
+
thought?: string | null;
|
|
136
|
+
subject_id?: string | null;
|
|
137
|
+
source_agent_id?: string | null;
|
|
138
|
+
organization_id?: string | null;
|
|
139
|
+
scope?: string;
|
|
140
|
+
status?: string;
|
|
141
|
+
metadata?: MetadataMap | null;
|
|
142
|
+
inserted_at?: string | null;
|
|
143
|
+
}
|
|
144
|
+
type MemoryRecord = WireMemoryRecord;
|
|
145
|
+
/** Tool schema as returned by getToolSchemas(). Format depends on the requested format ("openai" or "anthropic"). */
|
|
146
|
+
interface ToolSchemaRecord {
|
|
147
|
+
[key: string]: unknown;
|
|
148
|
+
}
|
|
149
|
+
type ToolMessageRole = "system" | "user" | "assistant";
|
|
150
|
+
interface ToolModelMessage {
|
|
151
|
+
role: ToolMessageRole;
|
|
152
|
+
content: unknown;
|
|
153
|
+
sender_name?: string | null;
|
|
154
|
+
sender_type?: string;
|
|
155
|
+
message_type?: string;
|
|
156
|
+
metadata?: MetadataMap;
|
|
157
|
+
[key: string]: unknown;
|
|
158
|
+
}
|
|
159
|
+
interface ToolModelSchema {
|
|
160
|
+
[key: string]: unknown;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export type { AddContactArgs as A, ContactRecord as C, ListContactsArgs as L, MetadataMap as M, ParticipantRecord as P, RemoveContactArgs as R, StoreMemoryArgs as S, ToolOperationResult as T, MentionInput as a, ToolSchemaRecord as b, PaginatedList as c, PeerRecord as d, ListContactRequestsArgs as e, ContactRequestsResult as f, RespondContactRequestArgs as g, ListMemoriesArgs as h, MemoryRecord as i, MentionReference as j, ContactRequestAction as k, PaginationMetadataLike as l, ToolModelMessage as m, ToolModelSchema as n };
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
interface MetadataMap {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
}
|
|
4
|
+
interface ToolOperationResult {
|
|
5
|
+
ok?: boolean;
|
|
6
|
+
status?: string;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
interface MentionReference {
|
|
10
|
+
id: string;
|
|
11
|
+
handle?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
username?: string;
|
|
14
|
+
}
|
|
15
|
+
type MentionInput = string[] | MentionReference[];
|
|
16
|
+
interface PaginationMetadataLike {
|
|
17
|
+
page?: number;
|
|
18
|
+
pageSize?: number;
|
|
19
|
+
totalPages?: number;
|
|
20
|
+
totalCount?: number;
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
interface PaginatedList<TItem = MetadataMap> {
|
|
24
|
+
data: TItem[];
|
|
25
|
+
metadata?: PaginationMetadataLike;
|
|
26
|
+
}
|
|
27
|
+
interface ParticipantRecord {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
type: string;
|
|
31
|
+
handle?: string | null;
|
|
32
|
+
role?: string;
|
|
33
|
+
}
|
|
34
|
+
interface PeerRecord {
|
|
35
|
+
id?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
handle?: string | null;
|
|
39
|
+
description?: string | null;
|
|
40
|
+
}
|
|
41
|
+
interface WireContactRecord {
|
|
42
|
+
id?: string;
|
|
43
|
+
handle?: string;
|
|
44
|
+
name?: string | null;
|
|
45
|
+
type?: string;
|
|
46
|
+
description?: string | null;
|
|
47
|
+
is_external?: boolean | null;
|
|
48
|
+
inserted_at?: string;
|
|
49
|
+
}
|
|
50
|
+
type ContactRecord = WireContactRecord;
|
|
51
|
+
interface WireContactRequestRecord {
|
|
52
|
+
id?: string;
|
|
53
|
+
status?: string;
|
|
54
|
+
message?: string | null;
|
|
55
|
+
inserted_at?: string | null;
|
|
56
|
+
}
|
|
57
|
+
interface WireReceivedContactRequestRecord extends WireContactRequestRecord {
|
|
58
|
+
from_handle?: string | null;
|
|
59
|
+
from_name?: string | null;
|
|
60
|
+
}
|
|
61
|
+
interface WireSentContactRequestRecord extends WireContactRequestRecord {
|
|
62
|
+
to_handle?: string | null;
|
|
63
|
+
to_name?: string | null;
|
|
64
|
+
}
|
|
65
|
+
interface WireContactRequestsResult {
|
|
66
|
+
received: WireReceivedContactRequestRecord[];
|
|
67
|
+
sent: WireSentContactRequestRecord[];
|
|
68
|
+
metadata?: MetadataMap;
|
|
69
|
+
}
|
|
70
|
+
type ContactRequestsResult = WireContactRequestsResult;
|
|
71
|
+
type ContactRequestAction = "approve" | "reject" | "cancel";
|
|
72
|
+
interface ListContactsArgs {
|
|
73
|
+
page?: number;
|
|
74
|
+
pageSize?: number;
|
|
75
|
+
}
|
|
76
|
+
interface AddContactArgs {
|
|
77
|
+
handle: string;
|
|
78
|
+
message?: string;
|
|
79
|
+
}
|
|
80
|
+
type RemoveContactArgs = {
|
|
81
|
+
target: "handle";
|
|
82
|
+
handle: string;
|
|
83
|
+
} | {
|
|
84
|
+
target: "contactId";
|
|
85
|
+
contactId: string;
|
|
86
|
+
};
|
|
87
|
+
interface ListContactRequestsArgs {
|
|
88
|
+
page?: number;
|
|
89
|
+
pageSize?: number;
|
|
90
|
+
sentStatus?: string;
|
|
91
|
+
}
|
|
92
|
+
type RespondContactRequestArgs = {
|
|
93
|
+
action: ContactRequestAction;
|
|
94
|
+
target: "handle";
|
|
95
|
+
handle: string;
|
|
96
|
+
} | {
|
|
97
|
+
action: ContactRequestAction;
|
|
98
|
+
target: "requestId";
|
|
99
|
+
requestId: string;
|
|
100
|
+
};
|
|
101
|
+
type MemoryScope = "subject" | "organization" | "all";
|
|
102
|
+
type MemoryVisibility = Exclude<MemoryScope, "all">;
|
|
103
|
+
type MemorySystem = "sensory" | "working" | "long_term";
|
|
104
|
+
type MemoryType = "iconic" | "echoic" | "haptic" | "episodic" | "semantic" | "procedural";
|
|
105
|
+
type MemorySegment = "user" | "agent" | "tool" | "guideline";
|
|
106
|
+
type MemoryStatus = "active" | "superseded" | "archived" | "all";
|
|
107
|
+
interface WireListMemoriesArgs {
|
|
108
|
+
subject_id?: string;
|
|
109
|
+
scope?: MemoryScope;
|
|
110
|
+
system?: MemorySystem;
|
|
111
|
+
type?: MemoryType;
|
|
112
|
+
segment?: MemorySegment;
|
|
113
|
+
content_query?: string;
|
|
114
|
+
page_size?: number;
|
|
115
|
+
status?: MemoryStatus;
|
|
116
|
+
}
|
|
117
|
+
type ListMemoriesArgs = WireListMemoriesArgs;
|
|
118
|
+
interface WireStoreMemoryArgs {
|
|
119
|
+
content: string;
|
|
120
|
+
system: MemorySystem;
|
|
121
|
+
type: MemoryType;
|
|
122
|
+
segment: MemorySegment;
|
|
123
|
+
thought: string;
|
|
124
|
+
scope?: MemoryVisibility;
|
|
125
|
+
subject_id?: string;
|
|
126
|
+
metadata?: MetadataMap;
|
|
127
|
+
}
|
|
128
|
+
type StoreMemoryArgs = WireStoreMemoryArgs;
|
|
129
|
+
interface WireMemoryRecord {
|
|
130
|
+
id?: string;
|
|
131
|
+
content?: string;
|
|
132
|
+
system?: string;
|
|
133
|
+
type?: string;
|
|
134
|
+
segment?: string;
|
|
135
|
+
thought?: string | null;
|
|
136
|
+
subject_id?: string | null;
|
|
137
|
+
source_agent_id?: string | null;
|
|
138
|
+
organization_id?: string | null;
|
|
139
|
+
scope?: string;
|
|
140
|
+
status?: string;
|
|
141
|
+
metadata?: MetadataMap | null;
|
|
142
|
+
inserted_at?: string | null;
|
|
143
|
+
}
|
|
144
|
+
type MemoryRecord = WireMemoryRecord;
|
|
145
|
+
/** Tool schema as returned by getToolSchemas(). Format depends on the requested format ("openai" or "anthropic"). */
|
|
146
|
+
interface ToolSchemaRecord {
|
|
147
|
+
[key: string]: unknown;
|
|
148
|
+
}
|
|
149
|
+
type ToolMessageRole = "system" | "user" | "assistant";
|
|
150
|
+
interface ToolModelMessage {
|
|
151
|
+
role: ToolMessageRole;
|
|
152
|
+
content: unknown;
|
|
153
|
+
sender_name?: string | null;
|
|
154
|
+
sender_type?: string;
|
|
155
|
+
message_type?: string;
|
|
156
|
+
metadata?: MetadataMap;
|
|
157
|
+
[key: string]: unknown;
|
|
158
|
+
}
|
|
159
|
+
interface ToolModelSchema {
|
|
160
|
+
[key: string]: unknown;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export type { AddContactArgs as A, ContactRecord as C, ListContactsArgs as L, MetadataMap as M, ParticipantRecord as P, RemoveContactArgs as R, StoreMemoryArgs as S, ToolOperationResult as T, MentionInput as a, ToolSchemaRecord as b, PaginatedList as c, PeerRecord as d, ListContactRequestsArgs as e, ContactRequestsResult as f, RespondContactRequestArgs as g, ListMemoriesArgs as h, MemoryRecord as i, MentionReference as j, ContactRequestAction as k, PaginationMetadataLike as l, ToolModelMessage as m, ToolModelSchema as n };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { H as HistoryConverter } from './protocols-DrhzOH6K.js';
|
|
2
|
+
import { G as GatewaySessionState } from './opencode-DthQQUsZ.js';
|
|
3
|
+
|
|
4
|
+
interface ACPClientSessionState {
|
|
5
|
+
roomToSession: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
declare class ACPClientHistoryConverter implements HistoryConverter<ACPClientSessionState> {
|
|
8
|
+
convert(raw: Array<Record<string, unknown>>): ACPClientSessionState;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface ACPServerSessionState {
|
|
12
|
+
sessionToRoom: Record<string, string>;
|
|
13
|
+
sessionCwd: Record<string, string>;
|
|
14
|
+
sessionMcpServers: Record<string, Array<Record<string, unknown>>>;
|
|
15
|
+
}
|
|
16
|
+
declare class ACPServerHistoryConverter implements HistoryConverter<ACPServerSessionState> {
|
|
17
|
+
convert(raw: Array<Record<string, unknown>>): ACPServerSessionState;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class GatewayHistoryConverter implements HistoryConverter<GatewaySessionState> {
|
|
21
|
+
convert(raw: Array<Record<string, unknown>>): GatewaySessionState;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { type ACPClientSessionState as A, GatewayHistoryConverter as G, type ACPServerSessionState as a, ACPClientHistoryConverter as b, ACPServerHistoryConverter as c };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { H as HistoryConverter } from './protocols-CInhtFpA.cjs';
|
|
2
|
+
import { G as GatewaySessionState } from './opencode-BBcDchcN.cjs';
|
|
3
|
+
|
|
4
|
+
interface ACPClientSessionState {
|
|
5
|
+
roomToSession: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
declare class ACPClientHistoryConverter implements HistoryConverter<ACPClientSessionState> {
|
|
8
|
+
convert(raw: Array<Record<string, unknown>>): ACPClientSessionState;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface ACPServerSessionState {
|
|
12
|
+
sessionToRoom: Record<string, string>;
|
|
13
|
+
sessionCwd: Record<string, string>;
|
|
14
|
+
sessionMcpServers: Record<string, Array<Record<string, unknown>>>;
|
|
15
|
+
}
|
|
16
|
+
declare class ACPServerHistoryConverter implements HistoryConverter<ACPServerSessionState> {
|
|
17
|
+
convert(raw: Array<Record<string, unknown>>): ACPServerSessionState;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class GatewayHistoryConverter implements HistoryConverter<GatewaySessionState> {
|
|
21
|
+
convert(raw: Array<Record<string, unknown>>): GatewaySessionState;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { type ACPClientSessionState as A, GatewayHistoryConverter as G, type ACPServerSessionState as a, ACPClientHistoryConverter as b, ACPServerHistoryConverter as c };
|