@springbrand/chat-client 0.3.0-alpha.3 → 0.3.0-alpha.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springbrand/chat-client",
|
|
3
|
-
"version": "0.3.0-alpha.
|
|
3
|
+
"version": "0.3.0-alpha.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"@cloudflare/ai-chat": "^0.12.0",
|
|
17
17
|
"agents": "^0.23.0",
|
|
18
18
|
"ai": "^7.0.0",
|
|
19
|
-
"react": "^19.0.0"
|
|
19
|
+
"react": "^19.0.0",
|
|
20
|
+
"@springbrand/agent-runtime": "^0.3.0-alpha.5"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"nanoid": "^5.1.16"
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
"@types/react-dom": "^19.2.5",
|
|
28
29
|
"react-dom": "^19.2.8",
|
|
29
30
|
"typescript": "^7.0.2",
|
|
30
|
-
"@springbrand/agent-runtime": "0.3.0-alpha.
|
|
31
|
+
"@springbrand/agent-runtime": "0.3.0-alpha.5"
|
|
31
32
|
},
|
|
32
33
|
"scripts": {
|
|
33
34
|
"typecheck": "tsc --noEmit"
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
type RequestedCapability,
|
|
25
25
|
type RuntimeAssemblyView,
|
|
26
26
|
type RuntimeConfigUpdateResult,
|
|
27
|
+
type RuntimeInputLock,
|
|
27
28
|
type RuntimeQueuedSubmission,
|
|
28
29
|
type RuntimeState,
|
|
29
30
|
type RuntimeTurnState,
|
|
@@ -162,6 +163,13 @@ export interface ChatRuntime {
|
|
|
162
163
|
turn: RuntimeTurnState | undefined;
|
|
163
164
|
turnActive: boolean;
|
|
164
165
|
canSteer: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* 定时 Run 未结束时的输入锁。
|
|
168
|
+
*
|
|
169
|
+
* 与服务端准入共用同一事实:有值时普通消息会被拒绝,宿主应禁用输入框。
|
|
170
|
+
* Run 进入终态后恢复 undefined。
|
|
171
|
+
*/
|
|
172
|
+
inputLock: RuntimeInputLock | undefined;
|
|
165
173
|
}
|
|
166
174
|
|
|
167
175
|
type SharedChatConnectionOptions = {
|
|
@@ -1325,6 +1333,7 @@ export function useUniversalAgentChat(): ChatRuntime {
|
|
|
1325
1333
|
turn,
|
|
1326
1334
|
turnActive,
|
|
1327
1335
|
canSteer,
|
|
1336
|
+
inputLock: facetState?.inputLock,
|
|
1328
1337
|
};
|
|
1329
1338
|
}
|
|
1330
1339
|
|