blun-king-cli 9.1.473 → 9.1.474
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.
|
@@ -325,13 +325,18 @@ function createAgentApiHttpAdapter(options = {}) {
|
|
|
325
325
|
const body = requireBody(input.body);
|
|
326
326
|
const sessionId = requirePublicId(body.session_id, 'session_id');
|
|
327
327
|
const owner = requireOwner(principalId, sessionId, requestId);
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
328
|
+
try {
|
|
329
|
+
const response = publicCompletion(await controller.continueTurn({
|
|
330
|
+
sessionId: owner.internalSessionId,
|
|
331
|
+
requestId,
|
|
332
|
+
toolResults: body.tool_results,
|
|
333
|
+
}));
|
|
334
|
+
trackScope(owner.key, principalId, owner.internalSessionId, response);
|
|
335
|
+
return jsonResponse(200, response);
|
|
336
|
+
} catch (error) {
|
|
337
|
+
trackScope(owner.key, principalId, owner.internalSessionId, null);
|
|
338
|
+
throw error;
|
|
339
|
+
}
|
|
335
340
|
}
|
|
336
341
|
|
|
337
342
|
async function handleCancel(input, principalId, requestId) {
|