@springbrand/chat-client 0.1.3-alpha.23 → 0.1.3-alpha.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springbrand/chat-client",
3
- "version": "0.1.3-alpha.23",
3
+ "version": "0.1.3-alpha.24",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src",
@@ -25,7 +25,7 @@
25
25
  "@types/react-dom": "^19.2.3",
26
26
  "react-dom": "^19.2.7",
27
27
  "typescript": "^7.0.2",
28
- "@springbrand/agent-runtime": "0.2.0-alpha.30"
28
+ "@springbrand/agent-runtime": "0.2.0-alpha.31"
29
29
  },
30
30
  "scripts": {
31
31
  "typecheck": "tsc --noEmit"
@@ -791,16 +791,15 @@ export function useUniversalAgentChat(): ChatRuntime {
791
791
  }));
792
792
  return;
793
793
  }
794
- const result = submissionId
795
- ? await agentRef.current.call<{ ok: boolean }>(
794
+ await (submissionId
795
+ ? agentRef.current.call<{ ok: boolean }>(
796
796
  "cancelSubmissionById",
797
797
  [submissionId, USER_STOP_REASON],
798
798
  )
799
- : await agentRef.current.call<{ ok: boolean }>(
799
+ : agentRef.current.call<{ ok: boolean }>(
800
800
  "stopTurn",
801
801
  [undefined, USER_STOP_REASON],
802
- );
803
- if (!result.ok) setDispatchError("The active Turn could not be stopped");
802
+ ));
804
803
  } catch (cause) {
805
804
  setDispatchError(
806
805
  cause instanceof Error ? cause.message : String(cause),