create-supyagent-app 0.1.18 → 0.1.19

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": "create-supyagent-app",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Create a supyagent-powered chatbot app",
5
5
  "type": "module",
6
6
  "bin": {
@@ -101,3 +101,19 @@
101
101
  background: hsl(var(--muted-foreground) / 0.3);
102
102
  }
103
103
 
104
+ /* Tool approval pulse */
105
+ @keyframes approval-pulse {
106
+ 0%, 100% {
107
+ border-color: hsl(45 93% 47% / 0.3);
108
+ box-shadow: 0 0 0 0 hsl(45 93% 47% / 0);
109
+ }
110
+ 50% {
111
+ border-color: hsl(45 93% 47% / 0.6);
112
+ box-shadow: 0 0 8px 0 hsl(45 93% 47% / 0.15);
113
+ }
114
+ }
115
+
116
+ .animate-approval-pulse {
117
+ animation: approval-pulse 2s ease-in-out infinite;
118
+ }
119
+
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { useChat } from "@ai-sdk/react";
4
- import { DefaultChatTransport, type UIMessage } from "ai";
4
+ import { DefaultChatTransport, lastAssistantMessageIsCompleteWithApprovalResponses, type UIMessage } from "ai";
5
5
  import { ChatMessage } from "./chat-message";
6
6
  import { ChatInput } from "./chat-input";
7
7
  import { ChatSidebar } from "./chat-sidebar";
@@ -27,6 +27,7 @@ export function Chat({ chatId, initialMessages }: ChatProps) {
27
27
  id: chatId,
28
28
  transport,
29
29
  messages: initialMessages,
30
+ sendAutomaticallyWhen: lastAssistantMessageIsCompleteWithApprovalResponses,
30
31
  });
31
32
 
32
33
  const isLoading = status === "submitted" || status === "streaming";
@@ -60,7 +60,7 @@ export function ToolMessage({ part, addToolApprovalResponse }: ToolMessageProps)
60
60
  const provider = getProviderFromToolName(toolName);
61
61
 
62
62
  return (
63
- <Tool defaultOpen={isDone || isApprovalRequested}>
63
+ <Tool defaultOpen={isDone || isApprovalRequested} className={isApprovalRequested ? "animate-approval-pulse" : undefined}>
64
64
  <ToolHeader
65
65
  state={toolState}
66
66
  title={`${getProviderLabel(provider)} · ${humanizeToolName(toolName)}${summary ? ` — ${summary}` : ""}`}
@@ -17,7 +17,7 @@
17
17
  "{{aiProviderPackage}}": "{{aiProviderVersion}}",
18
18
  "@prisma/client": "^6.2.0",
19
19
  "@radix-ui/react-collapsible": "^1.1.0",
20
- "@supyagent/sdk": "^0.1.16",
20
+ "@supyagent/sdk": "^0.1.17",
21
21
  "class-variance-authority": "^0.7.0",
22
22
  "ai": "^6.0.0",
23
23
  "clsx": "^2.1.0",