create-agents24-app 0.2.20 → 0.2.21
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.
|
@@ -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
|
)
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"tailwindcss": "^4.1.16"
|
|
21
21
|
},
|
|
22
22
|
"source": "packages/agents24-chat-react/scaffold",
|
|
23
|
-
"sha256": "
|
|
23
|
+
"sha256": "891784ab907084cc46e7f7fbc02b0343f6c663daab761b400cbf861d52549ded",
|
|
24
24
|
"files": [
|
|
25
25
|
"components.json",
|
|
26
26
|
"manifest.json",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-agents24-app",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.21",
|
|
4
4
|
"description": "Create a production-ready Agents24 React application.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"provenance": false
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agents24/cli": "0.3.
|
|
36
|
+
"@agents24/cli": "0.3.21",
|
|
37
37
|
"@clack/prompts": "1.7.0",
|
|
38
38
|
"shadcn": "4.13.1"
|
|
39
39
|
},
|
package/versions.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"agents24": {
|
|
3
|
-
"@agents24/client": "^0.2.
|
|
4
|
-
"@agents24/react": "^0.2.
|
|
5
|
-
"@agents24/chat-react": "^0.5.
|
|
6
|
-
"@agents24/node": "^0.5.
|
|
3
|
+
"@agents24/client": "^0.2.13",
|
|
4
|
+
"@agents24/react": "^0.2.15",
|
|
5
|
+
"@agents24/chat-react": "^0.5.24",
|
|
6
|
+
"@agents24/node": "^0.5.18"
|
|
7
7
|
},
|
|
8
8
|
"runtime": {
|
|
9
9
|
"next": "^16.3.4",
|