@tanstack/ai-acp 0.2.2 → 0.2.4
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/esm/adapters/compatible.js +305 -300
- package/dist/esm/adapters/compatible.js.map +1 -1
- package/dist/esm/adapters/projection.js +87 -69
- package/dist/esm/adapters/projection.js.map +1 -1
- package/dist/esm/index.js +2 -25
- package/dist/esm/messages/prompt.js +30 -33
- package/dist/esm/messages/prompt.js.map +1 -1
- package/dist/esm/permissions.js +44 -37
- package/dist/esm/permissions.js.map +1 -1
- package/dist/esm/session/acp-client.js +118 -134
- package/dist/esm/session/acp-client.js.map +1 -1
- package/dist/esm/session/sandbox-server.js +93 -105
- package/dist/esm/session/sandbox-server.js.map +1 -1
- package/dist/esm/stream/queue.js +57 -53
- package/dist/esm/stream/queue.js.map +1 -1
- package/dist/esm/stream/translate.js +287 -309
- package/dist/esm/stream/translate.js.map +1 -1
- package/dist/esm/transport/resolve.js +21 -32
- package/dist/esm/transport/resolve.js.map +1 -1
- package/dist/esm/transport/stdio.js +40 -49
- package/dist/esm/transport/stdio.js.map +1 -1
- package/dist/esm/transport/websocket.js +121 -120
- package/dist/esm/transport/websocket.js.map +1 -1
- package/package.json +8 -8
- package/src/adapters/compatible.ts +52 -1
- package/src/transport/websocket.ts +4 -1
- package/dist/esm/index.js.map +0 -1
|
@@ -1,320 +1,298 @@
|
|
|
1
1
|
import { EventType, buildBaseUsage } from "@tanstack/ai";
|
|
2
|
-
|
|
2
|
+
//#region src/stream/translate.ts
|
|
3
|
+
var BRIDGED_MCP_SERVER_NAME = "tanstack";
|
|
3
4
|
function matchBridgedToolName(title, bridgedToolNames) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (title.startsWith(`${name} (`)) return name;
|
|
8
|
-
}
|
|
9
|
-
return void 0;
|
|
5
|
+
if (!title || !bridgedToolNames) return void 0;
|
|
6
|
+
if (bridgedToolNames.has(title)) return title;
|
|
7
|
+
for (const name of bridgedToolNames) if (title.startsWith(`${name} (`)) return name;
|
|
10
8
|
}
|
|
11
9
|
function resolveToolName(update, bridgedToolNames) {
|
|
12
|
-
|
|
10
|
+
return matchBridgedToolName(update.title, bridgedToolNames) ?? update.kind ?? "tool";
|
|
13
11
|
}
|
|
14
12
|
function stringifyToolOutput(update) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
).join("");
|
|
22
|
-
const hasNonText = blocks.some(
|
|
23
|
-
(block) => block.type !== "content" || block.content !== void 0 && block.content.type !== "text"
|
|
24
|
-
);
|
|
25
|
-
if (hasNonText) return JSON.stringify(blocks);
|
|
26
|
-
if (text !== "") return text;
|
|
27
|
-
return JSON.stringify({ status: update.status ?? "completed" });
|
|
13
|
+
if (update.rawOutput !== void 0) return typeof update.rawOutput === "string" ? update.rawOutput : JSON.stringify(update.rawOutput);
|
|
14
|
+
const blocks = update.content ?? [];
|
|
15
|
+
const text = blocks.map((block) => block.content && typeof block.content.text === "string" ? block.content.text : "").join("");
|
|
16
|
+
if (blocks.some((block) => block.type !== "content" || block.content !== void 0 && block.content.type !== "text")) return JSON.stringify(blocks);
|
|
17
|
+
if (text !== "") return text;
|
|
18
|
+
return JSON.stringify({ status: update.status ?? "completed" });
|
|
28
19
|
}
|
|
29
20
|
function buildUsage(usage) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (usage.thoughtTokens) {
|
|
42
|
-
result.completionTokensDetails = { reasoningTokens: usage.thoughtTokens };
|
|
43
|
-
}
|
|
44
|
-
return result;
|
|
21
|
+
if (!usage) return void 0;
|
|
22
|
+
const promptTokens = usage.inputTokens ?? 0;
|
|
23
|
+
const completionTokens = usage.outputTokens ?? 0;
|
|
24
|
+
const result = buildBaseUsage({
|
|
25
|
+
promptTokens,
|
|
26
|
+
completionTokens,
|
|
27
|
+
totalTokens: usage.totalTokens ?? promptTokens + completionTokens
|
|
28
|
+
});
|
|
29
|
+
if (usage.cachedReadTokens) result.promptTokensDetails = { cachedTokens: usage.cachedReadTokens };
|
|
30
|
+
if (usage.thoughtTokens) result.completionTokensDetails = { reasoningTokens: usage.thoughtTokens };
|
|
31
|
+
return result;
|
|
45
32
|
}
|
|
46
33
|
async function* translateAcpStream(events, ctx) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
} catch (error) {
|
|
309
|
-
yield* closeText();
|
|
310
|
-
yield* closeReasoning();
|
|
311
|
-
yield* synthesizeUnresolvedResults();
|
|
312
|
-
throw error;
|
|
313
|
-
}
|
|
34
|
+
const { model, runId, threadId, genId, labels } = ctx;
|
|
35
|
+
const now = () => Date.now();
|
|
36
|
+
let runStarted = false;
|
|
37
|
+
const unresolvedToolCalls = /* @__PURE__ */ new Set();
|
|
38
|
+
const knownToolCalls = /* @__PURE__ */ new Set();
|
|
39
|
+
let textMessageId = null;
|
|
40
|
+
let textContent = "";
|
|
41
|
+
let reasoningId = null;
|
|
42
|
+
function* startRun() {
|
|
43
|
+
if (runStarted) return;
|
|
44
|
+
runStarted = true;
|
|
45
|
+
yield {
|
|
46
|
+
type: EventType.RUN_STARTED,
|
|
47
|
+
runId,
|
|
48
|
+
threadId,
|
|
49
|
+
model,
|
|
50
|
+
timestamp: now(),
|
|
51
|
+
...ctx.parentRunId !== void 0 && { parentRunId: ctx.parentRunId }
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function* closeText() {
|
|
55
|
+
if (textMessageId !== null) yield {
|
|
56
|
+
type: EventType.TEXT_MESSAGE_END,
|
|
57
|
+
messageId: textMessageId,
|
|
58
|
+
model,
|
|
59
|
+
timestamp: now()
|
|
60
|
+
};
|
|
61
|
+
textMessageId = null;
|
|
62
|
+
textContent = "";
|
|
63
|
+
}
|
|
64
|
+
function* closeReasoning() {
|
|
65
|
+
if (reasoningId !== null) {
|
|
66
|
+
yield {
|
|
67
|
+
type: EventType.REASONING_MESSAGE_END,
|
|
68
|
+
messageId: reasoningId,
|
|
69
|
+
model,
|
|
70
|
+
timestamp: now()
|
|
71
|
+
};
|
|
72
|
+
yield {
|
|
73
|
+
type: EventType.REASONING_END,
|
|
74
|
+
messageId: reasoningId,
|
|
75
|
+
model,
|
|
76
|
+
timestamp: now()
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
reasoningId = null;
|
|
80
|
+
}
|
|
81
|
+
function* synthesizeUnresolvedResults() {
|
|
82
|
+
for (const toolCallId of unresolvedToolCalls) yield {
|
|
83
|
+
type: EventType.TOOL_CALL_RESULT,
|
|
84
|
+
toolCallId,
|
|
85
|
+
messageId: genId(),
|
|
86
|
+
model,
|
|
87
|
+
timestamp: now(),
|
|
88
|
+
content: JSON.stringify({ status: "interrupted" })
|
|
89
|
+
};
|
|
90
|
+
unresolvedToolCalls.clear();
|
|
91
|
+
}
|
|
92
|
+
function* openToolCall(update) {
|
|
93
|
+
if (knownToolCalls.has(update.toolCallId)) return;
|
|
94
|
+
knownToolCalls.add(update.toolCallId);
|
|
95
|
+
const toolCallName = resolveToolName(update, ctx.bridgedToolNames);
|
|
96
|
+
const input = {
|
|
97
|
+
...update.title != null && { title: update.title },
|
|
98
|
+
...update.rawInput !== void 0 && update.rawInput !== null ? typeof update.rawInput === "object" ? update.rawInput : { input: update.rawInput } : {}
|
|
99
|
+
};
|
|
100
|
+
const args = JSON.stringify(input);
|
|
101
|
+
yield {
|
|
102
|
+
type: EventType.TOOL_CALL_START,
|
|
103
|
+
toolCallId: update.toolCallId,
|
|
104
|
+
toolCallName,
|
|
105
|
+
toolName: toolCallName,
|
|
106
|
+
model,
|
|
107
|
+
timestamp: now()
|
|
108
|
+
};
|
|
109
|
+
yield {
|
|
110
|
+
type: EventType.TOOL_CALL_ARGS,
|
|
111
|
+
toolCallId: update.toolCallId,
|
|
112
|
+
model,
|
|
113
|
+
timestamp: now(),
|
|
114
|
+
delta: args,
|
|
115
|
+
args
|
|
116
|
+
};
|
|
117
|
+
yield {
|
|
118
|
+
type: EventType.TOOL_CALL_END,
|
|
119
|
+
toolCallId: update.toolCallId,
|
|
120
|
+
toolCallName,
|
|
121
|
+
toolName: toolCallName,
|
|
122
|
+
model,
|
|
123
|
+
timestamp: now(),
|
|
124
|
+
input
|
|
125
|
+
};
|
|
126
|
+
unresolvedToolCalls.add(update.toolCallId);
|
|
127
|
+
}
|
|
128
|
+
function* resolveToolCall(update) {
|
|
129
|
+
yield* openToolCall(update);
|
|
130
|
+
unresolvedToolCalls.delete(update.toolCallId);
|
|
131
|
+
yield {
|
|
132
|
+
type: EventType.TOOL_CALL_RESULT,
|
|
133
|
+
toolCallId: update.toolCallId,
|
|
134
|
+
messageId: genId(),
|
|
135
|
+
model,
|
|
136
|
+
timestamp: now(),
|
|
137
|
+
content: stringifyToolOutput(update),
|
|
138
|
+
...update.status === "failed" && { state: "output-error" }
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function* handleUpdate(update) {
|
|
142
|
+
if (update.sessionUpdate === "agent_message_chunk") {
|
|
143
|
+
yield* closeReasoning();
|
|
144
|
+
if (update.content.type !== "text") {
|
|
145
|
+
if (labels.contentEvent !== void 0) {
|
|
146
|
+
yield* closeText();
|
|
147
|
+
yield {
|
|
148
|
+
type: EventType.CUSTOM,
|
|
149
|
+
model,
|
|
150
|
+
timestamp: now(),
|
|
151
|
+
name: labels.contentEvent,
|
|
152
|
+
value: { content: update.content }
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const text = typeof update.content.text === "string" ? update.content.text : "";
|
|
158
|
+
if (text === "") return;
|
|
159
|
+
if (textMessageId === null) {
|
|
160
|
+
textMessageId = genId();
|
|
161
|
+
yield {
|
|
162
|
+
type: EventType.TEXT_MESSAGE_START,
|
|
163
|
+
messageId: textMessageId,
|
|
164
|
+
model,
|
|
165
|
+
timestamp: now(),
|
|
166
|
+
role: "assistant"
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
textContent += text;
|
|
170
|
+
yield {
|
|
171
|
+
type: EventType.TEXT_MESSAGE_CONTENT,
|
|
172
|
+
messageId: textMessageId,
|
|
173
|
+
model,
|
|
174
|
+
timestamp: now(),
|
|
175
|
+
delta: text,
|
|
176
|
+
content: textContent
|
|
177
|
+
};
|
|
178
|
+
} else if (update.sessionUpdate === "agent_thought_chunk") {
|
|
179
|
+
yield* closeText();
|
|
180
|
+
const thought = typeof update.content.text === "string" ? update.content.text : "";
|
|
181
|
+
if (thought === "") return;
|
|
182
|
+
if (reasoningId === null) {
|
|
183
|
+
reasoningId = genId();
|
|
184
|
+
yield {
|
|
185
|
+
type: EventType.REASONING_START,
|
|
186
|
+
messageId: reasoningId,
|
|
187
|
+
model,
|
|
188
|
+
timestamp: now()
|
|
189
|
+
};
|
|
190
|
+
yield {
|
|
191
|
+
type: EventType.REASONING_MESSAGE_START,
|
|
192
|
+
messageId: reasoningId,
|
|
193
|
+
role: "reasoning",
|
|
194
|
+
model,
|
|
195
|
+
timestamp: now()
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
yield {
|
|
199
|
+
type: EventType.REASONING_MESSAGE_CONTENT,
|
|
200
|
+
messageId: reasoningId,
|
|
201
|
+
delta: thought,
|
|
202
|
+
model,
|
|
203
|
+
timestamp: now()
|
|
204
|
+
};
|
|
205
|
+
} else if (update.sessionUpdate === "tool_call") {
|
|
206
|
+
yield* closeText();
|
|
207
|
+
yield* closeReasoning();
|
|
208
|
+
yield* openToolCall(update);
|
|
209
|
+
if (update.status === "completed" || update.status === "failed") yield* resolveToolCall(update);
|
|
210
|
+
} else if (update.sessionUpdate === "tool_call_update") {
|
|
211
|
+
if (update.status === "completed" || update.status === "failed") yield* resolveToolCall(update);
|
|
212
|
+
else if (update.status === "in_progress" && update.rawInput !== void 0) {
|
|
213
|
+
yield* closeText();
|
|
214
|
+
yield* closeReasoning();
|
|
215
|
+
if (!knownToolCalls.has(update.toolCallId)) yield* openToolCall(update);
|
|
216
|
+
else {
|
|
217
|
+
const input = {
|
|
218
|
+
...update.title != null && { title: update.title },
|
|
219
|
+
...typeof update.rawInput === "object" && update.rawInput !== null ? update.rawInput : { input: update.rawInput }
|
|
220
|
+
};
|
|
221
|
+
const args = JSON.stringify(input);
|
|
222
|
+
yield {
|
|
223
|
+
type: EventType.TOOL_CALL_ARGS,
|
|
224
|
+
toolCallId: update.toolCallId,
|
|
225
|
+
model,
|
|
226
|
+
timestamp: now(),
|
|
227
|
+
delta: args,
|
|
228
|
+
args
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
} else if (update.sessionUpdate === "plan" && labels.planEvent !== void 0) yield {
|
|
233
|
+
type: EventType.CUSTOM,
|
|
234
|
+
model,
|
|
235
|
+
timestamp: now(),
|
|
236
|
+
name: labels.planEvent,
|
|
237
|
+
value: { entries: update.entries }
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
try {
|
|
241
|
+
for await (const event of events) {
|
|
242
|
+
ctx.onAcpEvent?.(event);
|
|
243
|
+
if (event.kind === "session") {
|
|
244
|
+
yield* startRun();
|
|
245
|
+
yield {
|
|
246
|
+
type: EventType.CUSTOM,
|
|
247
|
+
model,
|
|
248
|
+
timestamp: now(),
|
|
249
|
+
name: labels.sessionIdEvent,
|
|
250
|
+
value: { sessionId: event.sessionId }
|
|
251
|
+
};
|
|
252
|
+
} else if (event.kind === "update") {
|
|
253
|
+
yield* startRun();
|
|
254
|
+
yield* handleUpdate(event.update);
|
|
255
|
+
} else {
|
|
256
|
+
yield* startRun();
|
|
257
|
+
yield* closeText();
|
|
258
|
+
yield* closeReasoning();
|
|
259
|
+
yield* synthesizeUnresolvedResults();
|
|
260
|
+
if (event.stopReason === "refusal") {
|
|
261
|
+
const message = labels.refusalMessage ?? "The harness refused the request.";
|
|
262
|
+
yield {
|
|
263
|
+
type: EventType.RUN_ERROR,
|
|
264
|
+
model,
|
|
265
|
+
timestamp: now(),
|
|
266
|
+
message,
|
|
267
|
+
code: "refusal",
|
|
268
|
+
error: {
|
|
269
|
+
message,
|
|
270
|
+
code: "refusal"
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
} else {
|
|
274
|
+
const usage = buildUsage(event.usage);
|
|
275
|
+
const finishReason = event.stopReason === "max_tokens" || event.stopReason === "max_turn_requests" ? "length" : "stop";
|
|
276
|
+
yield {
|
|
277
|
+
type: EventType.RUN_FINISHED,
|
|
278
|
+
runId,
|
|
279
|
+
threadId,
|
|
280
|
+
model,
|
|
281
|
+
timestamp: now(),
|
|
282
|
+
finishReason,
|
|
283
|
+
...usage !== void 0 && { usage }
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
} catch (error) {
|
|
289
|
+
yield* closeText();
|
|
290
|
+
yield* closeReasoning();
|
|
291
|
+
yield* synthesizeUnresolvedResults();
|
|
292
|
+
throw error;
|
|
293
|
+
}
|
|
314
294
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
};
|
|
320
|
-
//# sourceMappingURL=translate.js.map
|
|
295
|
+
//#endregion
|
|
296
|
+
export { BRIDGED_MCP_SERVER_NAME, matchBridgedToolName, translateAcpStream };
|
|
297
|
+
|
|
298
|
+
//# sourceMappingURL=translate.js.map
|