@agents24/chat-react 0.5.23 → 0.5.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": "@agents24/chat-react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.24",
|
|
4
4
|
"description": "Accessible web UI and complete default layout for Agents24 chat applications.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@untitledui/file-icons": "0.0.9",
|
|
62
|
-
"@agents24/client": "0.2.
|
|
63
|
-
"@agents24/react": "0.2.
|
|
62
|
+
"@agents24/client": "0.2.13",
|
|
63
|
+
"@agents24/react": "0.2.15",
|
|
64
64
|
"@fontsource-variable/inter": "^5.3.0",
|
|
65
65
|
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
66
66
|
"@fontsource-variable/merriweather": "^5.3.0",
|
package/scaffold/src/app.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createBrowserVisibility } from "@agents24/client/browser"
|
|
1
2
|
import type { AgentClient, HitlResponse } from "@agents24/client"
|
|
2
3
|
import {
|
|
3
4
|
type AgentChatActiveThreadChangeHandler,
|
|
@@ -18,6 +19,7 @@ import { ChatShell } from "./components/chat/chat-shell"
|
|
|
18
19
|
import { GUEST_CHAT_IDENTITY, type Agents24ChatIdentity } from "./identity"
|
|
19
20
|
|
|
20
21
|
const createBrowserAbortController = () => new AbortController()
|
|
22
|
+
const browserVisibility = createBrowserVisibility()
|
|
21
23
|
|
|
22
24
|
export type Agents24ChatAppProps = {
|
|
23
25
|
activeThreadId?: string | null
|
|
@@ -65,7 +67,7 @@ function RuntimeChat({
|
|
|
65
67
|
export function App(props: Agents24ChatAppProps) {
|
|
66
68
|
const identity = props.identity || GUEST_CHAT_IDENTITY
|
|
67
69
|
return (
|
|
68
|
-
<Agents24Provider client={props.client} createAbortController={createBrowserAbortController}>
|
|
70
|
+
<Agents24Provider client={props.client} createAbortController={createBrowserAbortController} visibility={browserVisibility}>
|
|
69
71
|
<RuntimeChat key={identity.state} {...props} />
|
|
70
72
|
</Agents24Provider>
|
|
71
73
|
)
|