@townco/ui 0.1.0 → 0.1.6
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/dist/core/hooks/use-chat-input.d.ts +17 -17
- package/dist/core/hooks/use-chat-input.js +64 -55
- package/dist/core/hooks/use-chat-messages.d.ts +11 -11
- package/dist/core/hooks/use-chat-messages.js +121 -114
- package/dist/core/hooks/use-chat-session.d.ts +5 -5
- package/dist/core/hooks/use-chat-session.js +78 -80
- package/dist/core/hooks/use-media-query.d.ts +5 -5
- package/dist/core/hooks/use-media-query.js +38 -38
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/schemas/chat.d.ts +83 -56
- package/dist/core/schemas/chat.js +27 -25
- package/dist/core/store/chat-store.d.ts +28 -22
- package/dist/core/store/chat-store.js +59 -50
- package/dist/gui/components/Button.d.ts +23 -7
- package/dist/gui/components/Button.js +40 -27
- package/dist/gui/components/Card.d.ts +26 -7
- package/dist/gui/components/Card.js +54 -8
- package/dist/gui/components/ChatHeader.d.ts +58 -31
- package/dist/gui/components/ChatHeader.js +171 -66
- package/dist/gui/components/ChatInput.d.ts +58 -36
- package/dist/gui/components/ChatInput.js +191 -121
- package/dist/gui/components/ChatInterface.d.ts +9 -6
- package/dist/gui/components/ChatInterface.js +162 -90
- package/dist/gui/components/ChatLayout.d.ts +71 -41
- package/dist/gui/components/ChatLayout.js +214 -87
- package/dist/gui/components/ChatPanelTabContent.d.ts +18 -9
- package/dist/gui/components/ChatPanelTabContent.js +88 -10
- package/dist/gui/components/ChatPreview.d.ts +9 -6
- package/dist/gui/components/ChatPreview.js +212 -162
- package/dist/gui/components/ChatSecondaryPanel.d.ts +14 -11
- package/dist/gui/components/ChatSecondaryPanel.js +115 -38
- package/dist/gui/components/ChatSidebar.d.ts +26 -13
- package/dist/gui/components/ChatSidebar.js +48 -14
- package/dist/gui/components/ChatStatus.d.ts +4 -2
- package/dist/gui/components/ChatStatus.js +45 -34
- package/dist/gui/components/ChatView.d.ts +5 -3
- package/dist/gui/components/ChatView.js +38 -9
- package/dist/gui/components/ConfigPanel.d.ts +16 -12
- package/dist/gui/components/ConfigPanel.js +218 -41
- package/dist/gui/components/Conversation.d.ts +17 -14
- package/dist/gui/components/Conversation.js +143 -83
- package/dist/gui/components/Dialog.d.ts +57 -11
- package/dist/gui/components/Dialog.js +84 -8
- package/dist/gui/components/DropdownMenu.d.ts +101 -20
- package/dist/gui/components/DropdownMenu.js +161 -14
- package/dist/gui/components/HeightTransition.d.ts +12 -7
- package/dist/gui/components/HeightTransition.js +88 -77
- package/dist/gui/components/Input.d.ts +13 -6
- package/dist/gui/components/Input.js +27 -16
- package/dist/gui/components/InputBox.d.ts +19 -12
- package/dist/gui/components/InputBox.js +86 -14
- package/dist/gui/components/Label.d.ts +7 -1
- package/dist/gui/components/Label.js +12 -2
- package/dist/gui/components/MarkdownRenderer.d.ts +6 -4
- package/dist/gui/components/MarkdownRenderer.js +178 -81
- package/dist/gui/components/Message.d.ts +25 -18
- package/dist/gui/components/Message.js +44 -23
- package/dist/gui/components/MessageContent.d.ts +29 -22
- package/dist/gui/components/MessageContent.js +157 -85
- package/dist/gui/components/PlaygroundLayout.d.ts +9 -5
- package/dist/gui/components/PlaygroundLayout.js +43 -12
- package/dist/gui/components/Reasoning.d.ts +30 -24
- package/dist/gui/components/Reasoning.js +187 -60
- package/dist/gui/components/Response.d.ts +11 -9
- package/dist/gui/components/Response.js +229 -90
- package/dist/gui/components/Select.d.ts +69 -10
- package/dist/gui/components/Select.js +118 -12
- package/dist/gui/components/Sonner.d.ts +3 -1
- package/dist/gui/components/Sonner.js +29 -18
- package/dist/gui/components/StatusBar.d.ts +9 -5
- package/dist/gui/components/StatusBar.js +56 -9
- package/dist/gui/components/Tabs.d.ts +24 -4
- package/dist/gui/components/Tabs.js +32 -4
- package/dist/gui/components/Task.d.ts +28 -24
- package/dist/gui/components/Task.js +164 -31
- package/dist/gui/components/Textarea.d.ts +15 -7
- package/dist/gui/components/Textarea.js +63 -46
- package/dist/gui/components/ThinkingBlock.d.ts +20 -10
- package/dist/gui/components/ThinkingBlock.js +134 -35
- package/dist/gui/components/TodoList.d.ts +12 -10
- package/dist/gui/components/TodoList.js +22 -7
- package/dist/gui/components/TodoListItem.d.ts +9 -6
- package/dist/gui/components/TodoListItem.js +18 -4
- package/dist/gui/components/index.d.ts +59 -8
- package/dist/gui/components/index.js +42 -8
- package/dist/gui/lib/utils.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.test.js +0 -1
- package/dist/sdk/client/acp-client.d.ts +88 -76
- package/dist/sdk/client/acp-client.js +215 -217
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/schemas/agent.d.ts +111 -64
- package/dist/sdk/schemas/agent.js +24 -24
- package/dist/sdk/schemas/message.d.ts +245 -147
- package/dist/sdk/schemas/message.js +40 -40
- package/dist/sdk/schemas/session.d.ts +219 -135
- package/dist/sdk/schemas/session.js +27 -27
- package/dist/sdk/transports/http.d.ts +55 -55
- package/dist/sdk/transports/http.js +472 -469
- package/dist/sdk/transports/stdio.d.ts +20 -20
- package/dist/sdk/transports/stdio.js +289 -286
- package/dist/sdk/transports/types.d.ts +42 -42
- package/dist/sdk/transports/websocket.d.ts +12 -12
- package/dist/sdk/transports/websocket.js +52 -46
- package/dist/tui/components/ChatView.d.ts +4 -2
- package/dist/tui/components/ChatView.js +51 -18
- package/dist/tui/components/GameOfLife.js +64 -35
- package/dist/tui/components/InputBox.d.ts +18 -11
- package/dist/tui/components/InputBox.js +70 -10
- package/dist/tui/components/MessageList.d.ts +4 -2
- package/dist/tui/components/MessageList.js +37 -10
- package/dist/tui/components/MultiSelect.d.ts +15 -9
- package/dist/tui/components/MultiSelect.js +116 -69
- package/dist/tui/components/ReadlineInput.d.ts +12 -6
- package/dist/tui/components/ReadlineInput.js +252 -237
- package/dist/tui/components/SingleSelect.d.ts +15 -9
- package/dist/tui/components/SingleSelect.js +84 -43
- package/dist/tui/components/StatusBar.d.ts +11 -6
- package/dist/tui/components/StatusBar.js +102 -67
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/package.json +2 -3
|
@@ -1,13 +1,72 @@
|
|
|
1
1
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
4
|
-
declare const SelectGroup: React.ForwardRefExoticComponent<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<
|
|
5
|
+
SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>
|
|
6
|
+
>;
|
|
7
|
+
declare const SelectValue: React.ForwardRefExoticComponent<
|
|
8
|
+
SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>
|
|
9
|
+
>;
|
|
10
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<
|
|
11
|
+
Omit<
|
|
12
|
+
SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>,
|
|
13
|
+
"ref"
|
|
14
|
+
> &
|
|
15
|
+
React.RefAttributes<HTMLButtonElement>
|
|
16
|
+
>;
|
|
17
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<
|
|
18
|
+
Omit<
|
|
19
|
+
SelectPrimitive.SelectScrollUpButtonProps &
|
|
20
|
+
React.RefAttributes<HTMLDivElement>,
|
|
21
|
+
"ref"
|
|
22
|
+
> &
|
|
23
|
+
React.RefAttributes<HTMLDivElement>
|
|
24
|
+
>;
|
|
25
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<
|
|
26
|
+
Omit<
|
|
27
|
+
SelectPrimitive.SelectScrollDownButtonProps &
|
|
28
|
+
React.RefAttributes<HTMLDivElement>,
|
|
29
|
+
"ref"
|
|
30
|
+
> &
|
|
31
|
+
React.RefAttributes<HTMLDivElement>
|
|
32
|
+
>;
|
|
33
|
+
declare const SelectContent: React.ForwardRefExoticComponent<
|
|
34
|
+
Omit<
|
|
35
|
+
SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>,
|
|
36
|
+
"ref"
|
|
37
|
+
> &
|
|
38
|
+
React.RefAttributes<HTMLDivElement>
|
|
39
|
+
>;
|
|
40
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<
|
|
41
|
+
Omit<
|
|
42
|
+
SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>,
|
|
43
|
+
"ref"
|
|
44
|
+
> &
|
|
45
|
+
React.RefAttributes<HTMLDivElement>
|
|
46
|
+
>;
|
|
47
|
+
declare const SelectItem: React.ForwardRefExoticComponent<
|
|
48
|
+
Omit<
|
|
49
|
+
SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>,
|
|
50
|
+
"ref"
|
|
51
|
+
> &
|
|
52
|
+
React.RefAttributes<HTMLDivElement>
|
|
53
|
+
>;
|
|
54
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<
|
|
55
|
+
Omit<
|
|
56
|
+
SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>,
|
|
57
|
+
"ref"
|
|
58
|
+
> &
|
|
59
|
+
React.RefAttributes<HTMLDivElement>
|
|
60
|
+
>;
|
|
61
|
+
export {
|
|
62
|
+
Select,
|
|
63
|
+
SelectGroup,
|
|
64
|
+
SelectValue,
|
|
65
|
+
SelectTrigger,
|
|
66
|
+
SelectContent,
|
|
67
|
+
SelectLabel,
|
|
68
|
+
SelectItem,
|
|
69
|
+
SelectSeparator,
|
|
70
|
+
SelectScrollUpButton,
|
|
71
|
+
SelectScrollDownButton,
|
|
72
|
+
};
|
|
@@ -1,26 +1,132 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
2
|
import { Check, ChevronDown, ChevronsUpDown, ChevronUp } from "lucide-react";
|
|
4
3
|
import * as React from "react";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { cn } from "../lib/utils.js";
|
|
6
|
+
|
|
6
7
|
const Select = SelectPrimitive.Root;
|
|
7
8
|
const SelectGroup = SelectPrimitive.Group;
|
|
8
9
|
const SelectValue = SelectPrimitive.Value;
|
|
9
|
-
const SelectTrigger = React.forwardRef(
|
|
10
|
+
const SelectTrigger = React.forwardRef(
|
|
11
|
+
({ className, children, ...props }, ref) =>
|
|
12
|
+
_jsxs(SelectPrimitive.Trigger, {
|
|
13
|
+
ref: ref,
|
|
14
|
+
className: cn(
|
|
15
|
+
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
16
|
+
className,
|
|
17
|
+
),
|
|
18
|
+
...props,
|
|
19
|
+
children: [
|
|
20
|
+
children,
|
|
21
|
+
_jsx(SelectPrimitive.Icon, {
|
|
22
|
+
asChild: true,
|
|
23
|
+
children: _jsx(ChevronsUpDown, { className: "h-4 w-4 opacity-50" }),
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
}),
|
|
27
|
+
);
|
|
10
28
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
11
|
-
const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) =>
|
|
29
|
+
const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) =>
|
|
30
|
+
_jsx(SelectPrimitive.ScrollUpButton, {
|
|
31
|
+
ref: ref,
|
|
32
|
+
className: cn(
|
|
33
|
+
"flex cursor-default items-center justify-center py-1",
|
|
34
|
+
className,
|
|
35
|
+
),
|
|
36
|
+
...props,
|
|
37
|
+
children: _jsx(ChevronUp, { className: "h-4 w-4" }),
|
|
38
|
+
}),
|
|
39
|
+
);
|
|
12
40
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
13
|
-
const SelectScrollDownButton = React.forwardRef(
|
|
41
|
+
const SelectScrollDownButton = React.forwardRef(
|
|
42
|
+
({ className, ...props }, ref) =>
|
|
43
|
+
_jsx(SelectPrimitive.ScrollDownButton, {
|
|
44
|
+
ref: ref,
|
|
45
|
+
className: cn(
|
|
46
|
+
"flex cursor-default items-center justify-center py-1",
|
|
47
|
+
className,
|
|
48
|
+
),
|
|
49
|
+
...props,
|
|
50
|
+
children: _jsx(ChevronDown, { className: "h-4 w-4" }),
|
|
51
|
+
}),
|
|
52
|
+
);
|
|
14
53
|
SelectScrollDownButton.displayName =
|
|
15
|
-
|
|
16
|
-
const SelectContent = React.forwardRef(
|
|
17
|
-
|
|
18
|
-
|
|
54
|
+
SelectPrimitive.ScrollDownButton.displayName;
|
|
55
|
+
const SelectContent = React.forwardRef(
|
|
56
|
+
({ className, children, position = "popper", ...props }, ref) =>
|
|
57
|
+
_jsx(SelectPrimitive.Portal, {
|
|
58
|
+
children: _jsxs(SelectPrimitive.Content, {
|
|
59
|
+
ref: ref,
|
|
60
|
+
className: cn(
|
|
61
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
62
|
+
position === "popper" &&
|
|
63
|
+
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
64
|
+
className,
|
|
65
|
+
),
|
|
66
|
+
position: position,
|
|
67
|
+
...props,
|
|
68
|
+
children: [
|
|
69
|
+
_jsx(SelectScrollUpButton, {}),
|
|
70
|
+
_jsx(SelectPrimitive.Viewport, {
|
|
71
|
+
className: cn(
|
|
72
|
+
"p-1",
|
|
73
|
+
position === "popper" &&
|
|
74
|
+
"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
|
|
75
|
+
),
|
|
76
|
+
children: children,
|
|
77
|
+
}),
|
|
78
|
+
_jsx(SelectScrollDownButton, {}),
|
|
79
|
+
],
|
|
80
|
+
}),
|
|
81
|
+
}),
|
|
82
|
+
);
|
|
19
83
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
20
|
-
const SelectLabel = React.forwardRef(({ className, ...props }, ref) =>
|
|
84
|
+
const SelectLabel = React.forwardRef(({ className, ...props }, ref) =>
|
|
85
|
+
_jsx(SelectPrimitive.Label, {
|
|
86
|
+
ref: ref,
|
|
87
|
+
className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
|
|
88
|
+
...props,
|
|
89
|
+
}),
|
|
90
|
+
);
|
|
21
91
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
22
|
-
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
92
|
+
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
93
|
+
_jsxs(SelectPrimitive.Item, {
|
|
94
|
+
ref: ref,
|
|
95
|
+
className: cn(
|
|
96
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
97
|
+
className,
|
|
98
|
+
),
|
|
99
|
+
...props,
|
|
100
|
+
children: [
|
|
101
|
+
_jsx("span", {
|
|
102
|
+
className:
|
|
103
|
+
"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
104
|
+
children: _jsx(SelectPrimitive.ItemIndicator, {
|
|
105
|
+
children: _jsx(Check, { className: "h-4 w-4" }),
|
|
106
|
+
}),
|
|
107
|
+
}),
|
|
108
|
+
_jsx(SelectPrimitive.ItemText, { children: children }),
|
|
109
|
+
],
|
|
110
|
+
}),
|
|
111
|
+
);
|
|
23
112
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
24
|
-
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) =>
|
|
113
|
+
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) =>
|
|
114
|
+
_jsx(SelectPrimitive.Separator, {
|
|
115
|
+
ref: ref,
|
|
116
|
+
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
117
|
+
...props,
|
|
118
|
+
}),
|
|
119
|
+
);
|
|
25
120
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
26
|
-
export {
|
|
121
|
+
export {
|
|
122
|
+
Select,
|
|
123
|
+
SelectGroup,
|
|
124
|
+
SelectValue,
|
|
125
|
+
SelectTrigger,
|
|
126
|
+
SelectContent,
|
|
127
|
+
SelectLabel,
|
|
128
|
+
SelectItem,
|
|
129
|
+
SelectSeparator,
|
|
130
|
+
SelectScrollUpButton,
|
|
131
|
+
SelectScrollDownButton,
|
|
132
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { Toaster as Sonner } from "sonner";
|
|
3
3
|
type ToasterProps = React.ComponentProps<typeof Sonner>;
|
|
4
|
-
declare const Toaster: ({
|
|
4
|
+
declare const Toaster: ({
|
|
5
|
+
...props
|
|
6
|
+
}: ToasterProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
export { Toaster };
|
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Toaster as Sonner } from "sonner";
|
|
3
|
+
|
|
3
4
|
const Toaster = ({ ...props }) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
return _jsx(Sonner, {
|
|
6
|
+
position: "top-center",
|
|
7
|
+
className: "toaster group",
|
|
8
|
+
style: {
|
|
9
|
+
"--top-offset": "16px",
|
|
10
|
+
"--width:": "calc(100% - 2 * var(--top-offset))",
|
|
11
|
+
position: "absolute",
|
|
12
|
+
zIndex: 5,
|
|
13
|
+
top: "var(--top-offset)",
|
|
14
|
+
left: "50%",
|
|
15
|
+
transform: "translateX(-50%)",
|
|
16
|
+
width: "calc(100% - 2 * var(--top-offset))",
|
|
17
|
+
maxWidth: "480px",
|
|
18
|
+
},
|
|
19
|
+
offset: 0,
|
|
20
|
+
toastOptions: {
|
|
21
|
+
classNames: {
|
|
22
|
+
toast:
|
|
23
|
+
"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
24
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
25
|
+
actionButton:
|
|
26
|
+
"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
27
|
+
cancelButton:
|
|
28
|
+
"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
...props,
|
|
32
|
+
});
|
|
22
33
|
};
|
|
23
34
|
export { Toaster };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { ConnectionStatus } from "../../core/index.js";
|
|
2
2
|
export interface StatusBarProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
connectionStatus: ConnectionStatus;
|
|
4
|
+
sessionId: string | null;
|
|
5
|
+
isStreaming: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare function StatusBar({
|
|
8
|
-
|
|
7
|
+
export declare function StatusBar({
|
|
8
|
+
connectionStatus,
|
|
9
|
+
sessionId,
|
|
10
|
+
isStreaming,
|
|
11
|
+
}: StatusBarProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=StatusBar.d.ts.map
|
|
@@ -1,11 +1,58 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function StatusBar({ connectionStatus, sessionId, isStreaming
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
export function StatusBar({ connectionStatus, sessionId, isStreaming }) {
|
|
3
|
+
const statusStyles = {
|
|
4
|
+
connected: "bg-green-100 text-green-800",
|
|
5
|
+
connecting: "bg-yellow-100 text-yellow-800",
|
|
6
|
+
disconnected: "bg-gray-100 text-gray-800",
|
|
7
|
+
error: "bg-red-100 text-red-800",
|
|
8
|
+
};
|
|
9
|
+
return _jsx("div", {
|
|
10
|
+
className: "border-b border-gray-200 px-4 py-3 bg-white",
|
|
11
|
+
children: _jsxs("div", {
|
|
12
|
+
className: "flex items-center gap-4",
|
|
13
|
+
children: [
|
|
14
|
+
_jsxs("div", {
|
|
15
|
+
className: "flex items-center gap-2",
|
|
16
|
+
children: [
|
|
17
|
+
_jsx("span", {
|
|
18
|
+
className: "text-sm font-medium text-gray-700",
|
|
19
|
+
children: "Status:",
|
|
20
|
+
}),
|
|
21
|
+
_jsx("span", {
|
|
22
|
+
className: `px-2 py-1 rounded-full text-xs font-medium ${statusStyles[connectionStatus]}`,
|
|
23
|
+
children: connectionStatus,
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
}),
|
|
27
|
+
sessionId &&
|
|
28
|
+
_jsxs("div", {
|
|
29
|
+
className: "flex items-center gap-2",
|
|
30
|
+
children: [
|
|
31
|
+
_jsx("span", {
|
|
32
|
+
className: "text-sm font-medium text-gray-700",
|
|
33
|
+
children: "Session:",
|
|
34
|
+
}),
|
|
35
|
+
_jsxs("span", {
|
|
36
|
+
className: "text-xs font-mono text-cyan-600",
|
|
37
|
+
children: [sessionId.slice(0, 8), "..."],
|
|
38
|
+
}),
|
|
39
|
+
],
|
|
40
|
+
}),
|
|
41
|
+
isStreaming &&
|
|
42
|
+
_jsxs("div", {
|
|
43
|
+
className: "flex items-center gap-2",
|
|
44
|
+
children: [
|
|
45
|
+
_jsx("div", {
|
|
46
|
+
className: "animate-pulse w-2 h-2 rounded-full bg-yellow-500",
|
|
47
|
+
}),
|
|
48
|
+
_jsx("span", {
|
|
49
|
+
className: "text-xs text-yellow-600",
|
|
50
|
+
children: "Streaming...",
|
|
51
|
+
}),
|
|
52
|
+
],
|
|
53
|
+
}),
|
|
54
|
+
],
|
|
55
|
+
}),
|
|
56
|
+
});
|
|
10
57
|
}
|
|
11
|
-
//# sourceMappingURL=StatusBar.js.map
|
|
58
|
+
//# sourceMappingURL=StatusBar.js.map
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare const Tabs: React.ForwardRefExoticComponent<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const
|
|
3
|
+
declare const Tabs: React.ForwardRefExoticComponent<
|
|
4
|
+
TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>
|
|
5
|
+
>;
|
|
6
|
+
declare const TabsList: React.ForwardRefExoticComponent<
|
|
7
|
+
Omit<
|
|
8
|
+
TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>,
|
|
9
|
+
"ref"
|
|
10
|
+
> &
|
|
11
|
+
React.RefAttributes<HTMLDivElement>
|
|
12
|
+
>;
|
|
13
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<
|
|
14
|
+
Omit<
|
|
15
|
+
TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>,
|
|
16
|
+
"ref"
|
|
17
|
+
> &
|
|
18
|
+
React.RefAttributes<HTMLButtonElement>
|
|
19
|
+
>;
|
|
20
|
+
declare const TabsContent: React.ForwardRefExoticComponent<
|
|
21
|
+
Omit<
|
|
22
|
+
TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>,
|
|
23
|
+
"ref"
|
|
24
|
+
> &
|
|
25
|
+
React.RefAttributes<HTMLDivElement>
|
|
26
|
+
>;
|
|
7
27
|
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -1,12 +1,40 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
2
|
import * as React from "react";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
import { cn } from "../lib/utils.js";
|
|
5
|
+
|
|
5
6
|
const Tabs = TabsPrimitive.Root;
|
|
6
|
-
const TabsList = React.forwardRef(({ className, ...props }, ref) =>
|
|
7
|
+
const TabsList = React.forwardRef(({ className, ...props }, ref) =>
|
|
8
|
+
_jsx(TabsPrimitive.List, {
|
|
9
|
+
ref: ref,
|
|
10
|
+
className: cn(
|
|
11
|
+
"inline-flex h-10 items-center rounded-md bg-muted p-1 text-muted-foreground gap-1",
|
|
12
|
+
className,
|
|
13
|
+
),
|
|
14
|
+
...props,
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
7
17
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
8
|
-
const TabsTrigger = React.forwardRef(({ className, ...props }, ref) =>
|
|
18
|
+
const TabsTrigger = React.forwardRef(({ className, ...props }, ref) =>
|
|
19
|
+
_jsx(TabsPrimitive.Trigger, {
|
|
20
|
+
ref: ref,
|
|
21
|
+
className: cn(
|
|
22
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
|
|
23
|
+
className,
|
|
24
|
+
),
|
|
25
|
+
...props,
|
|
26
|
+
}),
|
|
27
|
+
);
|
|
9
28
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
10
|
-
const TabsContent = React.forwardRef(({ className, ...props }, ref) =>
|
|
29
|
+
const TabsContent = React.forwardRef(({ className, ...props }, ref) =>
|
|
30
|
+
_jsx(TabsPrimitive.Content, {
|
|
31
|
+
ref: ref,
|
|
32
|
+
className: cn(
|
|
33
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
34
|
+
className,
|
|
35
|
+
),
|
|
36
|
+
...props,
|
|
37
|
+
}),
|
|
38
|
+
);
|
|
11
39
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
12
40
|
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -4,32 +4,36 @@ import * as React from "react";
|
|
|
4
4
|
* Enhanced todo/task display with collapsible details and file references
|
|
5
5
|
*/
|
|
6
6
|
export interface TaskItem {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
id: string;
|
|
8
|
+
text: string;
|
|
9
|
+
status: "pending" | "in_progress" | "completed";
|
|
10
|
+
/** Optional file references */
|
|
11
|
+
files?: string[];
|
|
12
|
+
/** Optional additional details */
|
|
13
|
+
details?: string;
|
|
14
14
|
}
|
|
15
15
|
export interface TaskProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
/** Task item data */
|
|
17
|
+
task: TaskItem;
|
|
18
|
+
/** Show collapsible details */
|
|
19
|
+
collapsible?: boolean;
|
|
20
|
+
/** Default expanded state */
|
|
21
|
+
defaultExpanded?: boolean;
|
|
22
|
+
/** Callback when task is clicked */
|
|
23
|
+
onTaskClick?: (task: TaskItem) => void;
|
|
24
24
|
}
|
|
25
|
-
export declare const Task: React.ForwardRefExoticComponent<
|
|
25
|
+
export declare const Task: React.ForwardRefExoticComponent<
|
|
26
|
+
TaskProps & React.RefAttributes<HTMLDivElement>
|
|
27
|
+
>;
|
|
26
28
|
export interface TaskListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
tasks: TaskItem[];
|
|
30
|
+
/** Show collapsible details */
|
|
31
|
+
collapsible?: boolean;
|
|
32
|
+
/** Callback when task is clicked */
|
|
33
|
+
onTaskClick?: (task: TaskItem) => void;
|
|
34
|
+
/** Empty state message */
|
|
35
|
+
emptyMessage?: string;
|
|
34
36
|
}
|
|
35
|
-
export declare const TaskList: React.ForwardRefExoticComponent<
|
|
37
|
+
export declare const TaskList: React.ForwardRefExoticComponent<
|
|
38
|
+
TaskListProps & React.RefAttributes<HTMLDivElement>
|
|
39
|
+
>;
|