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
- const response = publicCompletion(await controller.continueTurn({
329
- sessionId: owner.internalSessionId,
330
- requestId,
331
- toolResults: body.tool_results,
332
- }));
333
- trackScope(owner.key, principalId, owner.internalSessionId, response);
334
- return jsonResponse(200, response);
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.473",
3
+ "version": "9.1.474",
4
4
  "description": "BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.",
5
5
  "license": "MIT",
6
6
  "bin": {