create-agents24-app 0.2.25 → 0.2.26
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.
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useChatComposerFocus,
|
|
11
11
|
type AgentChatComposerFile,
|
|
12
12
|
} from "@agents24/chat-react/ui"
|
|
13
|
-
import {
|
|
13
|
+
import { attachmentFileAccept, inputMimeTypes, validateAgentChatSubmission, type AgentChatInputContract } from "@agents24/chat-react/runtime"
|
|
14
14
|
import type { ContextWindow } from "@agents24/client/protocol"
|
|
15
15
|
|
|
16
16
|
import { Button } from "../ui/button"
|
|
@@ -225,19 +225,11 @@ export function ChatComposer({
|
|
|
225
225
|
className="sr-only"
|
|
226
226
|
type="file"
|
|
227
227
|
multiple
|
|
228
|
-
accept={attachmentMimeTypes
|
|
228
|
+
accept={attachmentFileAccept(attachmentMimeTypes)}
|
|
229
229
|
onChange={(event) => {
|
|
230
230
|
const selected = Array.from(event.target.files ?? [])
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
))
|
|
234
|
-
draftRevisionRef.current += 1
|
|
235
|
-
setFiles((current) => [...current, ...accepted.map(createAgentChatComposerFile)])
|
|
236
|
-
setAttachmentError(
|
|
237
|
-
accepted.length === selected.length
|
|
238
|
-
? null
|
|
239
|
-
: "One or more selected file types are not supported by this Agent.",
|
|
240
|
-
)
|
|
231
|
+
setFiles((current) => [...current, ...selected.map(createAgentChatComposerFile)])
|
|
232
|
+
setAttachmentError(null)
|
|
241
233
|
event.currentTarget.value = ""
|
|
242
234
|
}}
|
|
243
235
|
/>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"tailwindcss": "^4.1.16"
|
|
21
21
|
},
|
|
22
22
|
"source": "packages/agents24-chat-react/scaffold",
|
|
23
|
-
"sha256": "
|
|
23
|
+
"sha256": "29777d11a1fbf6d033080468041b2368cab1572f30c46e246e65725e3b32bcad",
|
|
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.26",
|
|
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.22",
|
|
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.14",
|
|
4
|
+
"@agents24/react": "^0.2.18",
|
|
5
|
+
"@agents24/chat-react": "^0.5.29",
|
|
6
|
+
"@agents24/node": "^0.5.19"
|
|
7
7
|
},
|
|
8
8
|
"runtime": {
|
|
9
9
|
"next": "^16.3.4",
|