@springbrand/chat-client 0.1.3-alpha.45 → 0.1.3-alpha.46
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.
|
|
3
|
+
"version": "0.1.3-alpha.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@types/react-dom": "^19.2.5",
|
|
28
28
|
"react-dom": "^19.2.8",
|
|
29
29
|
"typescript": "^7.0.2",
|
|
30
|
-
"@springbrand/agent-runtime": "0.2.0-alpha.
|
|
30
|
+
"@springbrand/agent-runtime": "0.2.0-alpha.62"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"typecheck": "tsc --noEmit"
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
type RuntimeConfigUpdateResult,
|
|
27
27
|
type RuntimeQueuedSubmission,
|
|
28
28
|
type RuntimeState,
|
|
29
|
+
type RuntimeTurnState,
|
|
29
30
|
} from "@springbrand/agent-runtime/contracts";
|
|
30
31
|
import { createSafeUIMessageAgentConnection } from "./ui-message-stream-guard";
|
|
31
32
|
import { CURRENT_INBOX_AGENT_PATH } from "./chat-sessions";
|
|
@@ -90,26 +91,6 @@ type ChatApproval = {
|
|
|
90
91
|
requestId: string;
|
|
91
92
|
};
|
|
92
93
|
|
|
93
|
-
type ChatQueuedSubmission = {
|
|
94
|
-
submissionId: string;
|
|
95
|
-
messageId: string;
|
|
96
|
-
preview: string;
|
|
97
|
-
position: number;
|
|
98
|
-
createdAt: number;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
type ChatTurn = {
|
|
102
|
-
activeSubmissionId?: string;
|
|
103
|
-
activeRequestId?: string;
|
|
104
|
-
activeMessageId?: string;
|
|
105
|
-
recoveryAttempt?: number;
|
|
106
|
-
recoveryMax?: number;
|
|
107
|
-
recoveryReason?: "no_meaningful_model_progress" | "transient_model_error";
|
|
108
|
-
steerable: boolean;
|
|
109
|
-
hasPendingSteer: boolean;
|
|
110
|
-
queued: ChatQueuedSubmission[];
|
|
111
|
-
};
|
|
112
|
-
|
|
113
94
|
export interface ChatRuntime {
|
|
114
95
|
messages: ChatMessage[];
|
|
115
96
|
status: ChatStatus;
|
|
@@ -177,7 +158,7 @@ export interface ChatRuntime {
|
|
|
177
158
|
isToolContinuation: boolean;
|
|
178
159
|
approvals: ChatApproval[] | undefined;
|
|
179
160
|
approvalsLoaded: boolean;
|
|
180
|
-
turn:
|
|
161
|
+
turn: RuntimeTurnState | undefined;
|
|
181
162
|
turnActive: boolean;
|
|
182
163
|
canSteer: boolean;
|
|
183
164
|
}
|