@startsimpli/ui 0.4.48 → 0.4.49
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": "@startsimpli/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.49",
|
|
4
4
|
"description": "Shared UI components package for StartSimpli applications",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"tailwindcss": "^3.4.19",
|
|
113
113
|
"tsup": "^8.5.1",
|
|
114
114
|
"typescript": "^6.0.3",
|
|
115
|
-
"@startsimpli/realtime": "0.0.
|
|
115
|
+
"@startsimpli/realtime": "0.0.2"
|
|
116
116
|
},
|
|
117
117
|
"keywords": [
|
|
118
118
|
"ui",
|
|
@@ -78,7 +78,7 @@ export function AgentSessionConsole({
|
|
|
78
78
|
onLifecycle: (m) => setEntries((prev) => [...prev, lifecycleToMessage(m)]),
|
|
79
79
|
})
|
|
80
80
|
|
|
81
|
-
const { status, lastEvent, send, resize, socket } = session
|
|
81
|
+
const { status, lastEvent, send, sendMessage, resize, socket } = session
|
|
82
82
|
|
|
83
83
|
// An error event trumps the socket status for the terminal indicator.
|
|
84
84
|
const isError = lastEvent?.type === 'error'
|
|
@@ -88,13 +88,16 @@ export function AgentSessionConsole({
|
|
|
88
88
|
|
|
89
89
|
const handleSend = React.useCallback(
|
|
90
90
|
(text: string) => {
|
|
91
|
-
|
|
91
|
+
// The composer sends a STEER MESSAGE (submitted as a new turn by the runner), NOT
|
|
92
|
+
// raw keystrokes — otherwise it lands in the agent's prompt box without an Enter and
|
|
93
|
+
// is never processed (bd 768w.16.7.14.9). Terminal typing still uses `send` (onData).
|
|
94
|
+
sendMessage(text)
|
|
92
95
|
setEntries((prev) => [
|
|
93
96
|
...prev,
|
|
94
97
|
{ id: `user-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, role: 'user', content: text },
|
|
95
98
|
])
|
|
96
99
|
},
|
|
97
|
-
[
|
|
100
|
+
[sendMessage],
|
|
98
101
|
)
|
|
99
102
|
|
|
100
103
|
const reconnect = React.useCallback(() => socket?.connect(), [socket])
|