feat: Add default tool call renderer, and error toasts

This commit is contained in:
bracesproul
2025-03-04 13:37:42 -08:00
parent a796f7612d
commit 3f9c85b106
10 changed files with 168 additions and 7 deletions

34
pnpm-lock.yaml generated
View File

@@ -78,6 +78,9 @@ importers:
lucide-react:
specifier: ^0.476.0
version: 0.476.0(react@19.0.0)
next-themes:
specifier: ^0.4.4
version: 0.4.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
prettier:
specifier: ^3.5.2
version: 3.5.2
@@ -96,6 +99,9 @@ importers:
remark-gfm:
specifier: ^4.0.1
version: 4.0.1
sonner:
specifier: ^2.0.1
version: 2.0.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
tailwind-merge:
specifier: ^3.0.2
version: 3.0.2
@@ -3891,6 +3897,15 @@ packages:
integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==,
}
next-themes@0.4.4:
resolution:
{
integrity: sha512-LDQ2qIOJF0VnuVrrMSMLrWGjRMkq+0mpgl6e0juCLqdJ+oo8Q84JRWT6Wh11VDQKkMMe+dVzDKLWs5n87T+PkQ==,
}
peerDependencies:
react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
node-domexception@1.0.0:
resolution:
{
@@ -4490,6 +4505,15 @@ packages:
integrity: sha512-xMO/8eNREtaROt7tJvWJqHBDTMFN4eiQ5I4JRMuilwfnFcV5W9u7RUkueNkdw0jPqGMX36iCywelS5yilTuOxg==,
}
sonner@2.0.1:
resolution:
{
integrity: sha512-FRBphaehZ5tLdLcQ8g2WOIRE+Y7BCfWi5Zyd8bCvBjiW8TxxAyoWZIxS661Yz6TGPqFQ4VLzOF89WEYhfynSFQ==,
}
peerDependencies:
react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
source-map-js@1.2.1:
resolution:
{
@@ -7508,6 +7532,11 @@ snapshots:
natural-compare@1.4.0: {}
next-themes@0.4.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
dependencies:
react: 19.0.0
react-dom: 19.0.0(react@19.0.0)
node-domexception@1.0.0: {}
node-fetch@2.7.0:
@@ -7899,6 +7928,11 @@ snapshots:
simple-wcswidth@1.0.1: {}
sonner@2.0.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
dependencies:
react: 19.0.0
react-dom: 19.0.0(react@19.0.0)
source-map-js@1.2.1: {}
space-separated-tokens@2.0.2: {}