@agent-platform/ui 0.0.1

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.
Files changed (69) hide show
  1. package/README.md +41 -0
  2. package/dist/components/agent/agent-container.d.ts +3 -0
  3. package/dist/components/agent/agent-container.js +47 -0
  4. package/dist/components/agent/agent-greeting.d.ts +3 -0
  5. package/dist/components/agent/agent-greeting.js +7 -0
  6. package/dist/components/agent/agent-header.d.ts +3 -0
  7. package/dist/components/agent/agent-header.js +9 -0
  8. package/dist/components/agent/agent-home-card.d.ts +3 -0
  9. package/dist/components/agent/agent-home-card.js +7 -0
  10. package/dist/components/agent/agent-home-cards.d.ts +9 -0
  11. package/dist/components/agent/agent-home-cards.js +11 -0
  12. package/dist/components/agent/agent-input.d.ts +3 -0
  13. package/dist/components/agent/agent-input.js +50 -0
  14. package/dist/components/agent/agent-popup-widget.d.ts +15 -0
  15. package/dist/components/agent/agent-popup-widget.js +49 -0
  16. package/dist/components/agent/agent-screen.d.ts +5 -0
  17. package/dist/components/agent/agent-screen.js +7 -0
  18. package/dist/components/agent/defaults.d.ts +11 -0
  19. package/dist/components/agent/defaults.js +23 -0
  20. package/dist/components/agent/index.d.ts +5 -0
  21. package/dist/components/agent/index.js +2 -0
  22. package/dist/components/agent/message/index.d.ts +8 -0
  23. package/dist/components/agent/message/index.js +4 -0
  24. package/dist/components/agent/message/markdown.d.ts +6 -0
  25. package/dist/components/agent/message/markdown.js +66 -0
  26. package/dist/components/agent/message/message-item.d.ts +7 -0
  27. package/dist/components/agent/message/message-item.js +30 -0
  28. package/dist/components/agent/message/message-list.d.ts +8 -0
  29. package/dist/components/agent/message/message-list.js +24 -0
  30. package/dist/components/agent/message/message-loading.d.ts +10 -0
  31. package/dist/components/agent/message/message-loading.js +16 -0
  32. package/dist/components/agent/message/tool-call-card.d.ts +9 -0
  33. package/dist/components/agent/message/tool-call-card.js +25 -0
  34. package/dist/components/agent/provider/agent-context.d.ts +3 -0
  35. package/dist/components/agent/provider/agent-context.js +10 -0
  36. package/dist/components/agent/provider/agent-provider.d.ts +10 -0
  37. package/dist/components/agent/provider/agent-provider.js +22 -0
  38. package/dist/components/agent/provider/index.d.ts +4 -0
  39. package/dist/components/agent/provider/index.js +2 -0
  40. package/dist/components/agent/provider/parse-sse-buffer.d.ts +9 -0
  41. package/dist/components/agent/provider/parse-sse-buffer.js +23 -0
  42. package/dist/components/agent/provider/types.d.ts +58 -0
  43. package/dist/components/agent/provider/types.js +1 -0
  44. package/dist/components/agent/provider/use-agent-chat.d.ts +6 -0
  45. package/dist/components/agent/provider/use-agent-chat.js +452 -0
  46. package/dist/components/agent/types.d.ts +56 -0
  47. package/dist/components/agent/types.js +1 -0
  48. package/dist/components/index.d.ts +7 -0
  49. package/dist/components/index.js +9 -0
  50. package/dist/components/ui/badge.d.ts +9 -0
  51. package/dist/components/ui/badge.js +24 -0
  52. package/dist/components/ui/button.d.ts +10 -0
  53. package/dist/components/ui/button.js +35 -0
  54. package/dist/components/ui/card.d.ts +9 -0
  55. package/dist/components/ui/card.js +24 -0
  56. package/dist/components/ui/input.d.ts +3 -0
  57. package/dist/components/ui/input.js +6 -0
  58. package/dist/components/ui/label.d.ts +4 -0
  59. package/dist/components/ui/label.js +7 -0
  60. package/dist/components/ui/separator.d.ts +4 -0
  61. package/dist/components/ui/separator.js +8 -0
  62. package/dist/index.d.ts +2 -0
  63. package/dist/index.js +1 -0
  64. package/dist/lib/index.d.ts +1 -0
  65. package/dist/lib/index.js +1 -0
  66. package/dist/lib/utils.d.ts +2 -0
  67. package/dist/lib/utils.js +5 -0
  68. package/dist/styles/globals.css +157 -0
  69. package/package.json +59 -0
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cva } from "class-variance-authority";
3
+ import { Slot } from "radix-ui";
4
+ import { cn } from "../../lib/utils";
5
+ const badgeVariants = cva("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
6
+ variants: {
7
+ variant: {
8
+ default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
9
+ secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
10
+ destructive: "bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
11
+ outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
12
+ ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
13
+ link: "text-primary underline-offset-4 [a&]:hover:underline",
14
+ },
15
+ },
16
+ defaultVariants: {
17
+ variant: "default",
18
+ },
19
+ });
20
+ function Badge({ className, variant = "default", asChild = false, ...props }) {
21
+ const Comp = asChild ? Slot.Root : "span";
22
+ return (_jsx(Comp, { "data-slot": "badge", "data-variant": variant, className: cn(badgeVariants({ variant }), className), ...props }));
23
+ }
24
+ export { Badge, badgeVariants };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
8
+ asChild?: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export { Button, buttonVariants };
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cva } from "class-variance-authority";
3
+ import { Slot } from "radix-ui";
4
+ import { cn } from "../../lib/utils";
5
+ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
6
+ variants: {
7
+ variant: {
8
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
9
+ destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
10
+ outline: "border bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
11
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
12
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
13
+ link: "text-primary underline-offset-4 hover:underline",
14
+ },
15
+ size: {
16
+ default: "h-10 px-4 py-2 has-[>svg]:px-3",
17
+ xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
18
+ sm: "h-9 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
19
+ lg: "h-11 rounded-md px-6 has-[>svg]:px-4",
20
+ icon: "size-10",
21
+ "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
22
+ "icon-sm": "size-8 min-h-12 min-w-12",
23
+ "icon-lg": "size-10",
24
+ },
25
+ },
26
+ defaultVariants: {
27
+ variant: "default",
28
+ size: "default",
29
+ },
30
+ });
31
+ function Button({ className, variant = "default", size = "default", asChild = false, ...props }) {
32
+ const Comp = asChild ? Slot.Root : "button";
33
+ return (_jsx(Comp, { "data-slot": "button", "data-variant": variant, "data-size": size, className: cn(buttonVariants({ variant, size, className })), ...props }));
34
+ }
35
+ export { Button, buttonVariants };
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
3
+ declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
4
+ declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
5
+ declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
6
+ declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
7
+ declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
+ declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ function Card({ className, ...props }) {
4
+ return (_jsx("div", { "data-slot": "card", className: cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6", className), ...props }));
5
+ }
6
+ function CardHeader({ className, ...props }) {
7
+ return (_jsx("div", { "data-slot": "card-header", className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className), ...props }));
8
+ }
9
+ function CardTitle({ className, ...props }) {
10
+ return (_jsx("div", { "data-slot": "card-title", className: cn("leading-none font-semibold", className), ...props }));
11
+ }
12
+ function CardDescription({ className, ...props }) {
13
+ return (_jsx("div", { "data-slot": "card-description", className: cn("text-muted-foreground text-sm", className), ...props }));
14
+ }
15
+ function CardAction({ className, ...props }) {
16
+ return (_jsx("div", { "data-slot": "card-action", className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className), ...props }));
17
+ }
18
+ function CardContent({ className, ...props }) {
19
+ return (_jsx("div", { "data-slot": "card-content", className: cn("px-6", className), ...props }));
20
+ }
21
+ function CardFooter({ className, ...props }) {
22
+ return (_jsx("div", { "data-slot": "card-footer", className: cn("flex items-center px-6 [.border-t]:pt-6", className), ...props }));
23
+ }
24
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
3
+ export { Input };
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ function Input({ className, type, ...props }) {
4
+ return (_jsx("input", { type: type, "data-slot": "input", className: cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", className), ...props }));
5
+ }
6
+ export { Input };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { Label as LabelPrimitive } from "radix-ui";
3
+ declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Label };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Label as LabelPrimitive } from "radix-ui";
3
+ import { cn } from "../../lib/utils";
4
+ function Label({ className, ...props }) {
5
+ return (_jsx(LabelPrimitive.Root, { "data-slot": "label", className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className), ...props }));
6
+ }
7
+ export { Label };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { Separator as SeparatorPrimitive } from "radix-ui";
3
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Separator };
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Separator as SeparatorPrimitive } from "radix-ui";
4
+ import { cn } from "../../lib/utils";
5
+ function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
6
+ return (_jsx(SeparatorPrimitive.Root, { "data-slot": "separator", decorative: decorative, orientation: orientation, className: cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", className), ...props }));
7
+ }
8
+ export { Separator };
@@ -0,0 +1,2 @@
1
+ export { AgentScreen, AgentPopupWidget } from './components/agent';
2
+ export type { AgentScreenProps, AgentPopupWidgetProps, AgentHomeCardProps, } from './components/agent';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { AgentScreen, AgentPopupWidget } from './components/agent';
@@ -0,0 +1 @@
1
+ export * from './utils';
@@ -0,0 +1 @@
1
+ export * from './utils';
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,5 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+ export function cn(...inputs) {
4
+ return twMerge(clsx(inputs));
5
+ }
@@ -0,0 +1,157 @@
1
+ /*
2
+ * @agent-platform/ui 共有テーマ定義
3
+ * 消費側で @import "@agent-platform/ui/styles/globals.css" として使用
4
+ * 注意: @import "tailwindcss" は消費側で行う
5
+ */
6
+
7
+ @custom-variant dark (&:is(.dark *));
8
+
9
+ @theme inline {
10
+ --color-background: var(--background);
11
+ --color-foreground: var(--foreground);
12
+ --font-sans: var(--font-sans);
13
+ --font-mono: var(--font-geist-mono);
14
+ --color-sidebar-ring: var(--sidebar-ring);
15
+ --color-sidebar-border: var(--sidebar-border);
16
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
17
+ --color-sidebar-accent: var(--sidebar-accent);
18
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
19
+ --color-sidebar-primary: var(--sidebar-primary);
20
+ --color-sidebar-foreground: var(--sidebar-foreground);
21
+ --color-sidebar: var(--sidebar);
22
+ --color-chart-5: var(--chart-5);
23
+ --color-chart-4: var(--chart-4);
24
+ --color-chart-3: var(--chart-3);
25
+ --color-chart-2: var(--chart-2);
26
+ --color-chart-1: var(--chart-1);
27
+ --color-ring: var(--ring);
28
+ --color-input: var(--input);
29
+ --color-border: var(--border);
30
+ --color-destructive: var(--destructive);
31
+ --color-accent-foreground: var(--accent-foreground);
32
+ --color-accent: var(--accent);
33
+ --color-muted-foreground: var(--muted-foreground);
34
+ --color-muted: var(--muted);
35
+ --color-placeholder: var(--placeholder);
36
+ --color-secondary-foreground: var(--secondary-foreground);
37
+ --color-secondary: var(--secondary);
38
+ --color-primary-foreground: var(--primary-foreground);
39
+ --color-primary: var(--primary);
40
+ --color-popover-foreground: var(--popover-foreground);
41
+ --color-popover: var(--popover);
42
+ --color-card-foreground: var(--card-foreground);
43
+ --color-card: var(--card);
44
+ --radius-sm: calc(var(--radius) - 4px);
45
+ --radius-md: calc(var(--radius) - 2px);
46
+ --radius-lg: var(--radius);
47
+ --radius-xl: calc(var(--radius) + 4px);
48
+ --radius-2xl: calc(var(--radius) + 8px);
49
+ --radius-3xl: calc(var(--radius) + 12px);
50
+ --radius-4xl: calc(var(--radius) + 16px);
51
+ }
52
+
53
+ :root {
54
+ --background: oklch(1 0 0);
55
+ --foreground: oklch(0.145 0 0);
56
+ --card: oklch(1 0 0);
57
+ --card-foreground: oklch(0.145 0 0);
58
+ --popover: oklch(1 0 0);
59
+ --popover-foreground: oklch(0.145 0 0);
60
+ --primary: oklch(0.35 0.13 258);
61
+ --primary-foreground: oklch(0.98 0 0);
62
+ --secondary: oklch(0.967 0.001 286.375);
63
+ --secondary-foreground: oklch(0.21 0.006 285.885);
64
+ --muted: oklch(0.97 0 0);
65
+ --muted-foreground: oklch(0.45 0 0);
66
+ --placeholder: oklch(0.55 0 0);
67
+ --accent: oklch(0.97 0 0);
68
+ --accent-foreground: oklch(0.205 0 0);
69
+ --destructive: oklch(0.58 0.22 27);
70
+ --border: oklch(0.922 0 0);
71
+ --input: oklch(0.922 0 0);
72
+ --ring: oklch(0.35 0.13 258);
73
+ --chart-1: oklch(0.75 0.1 258);
74
+ --chart-2: oklch(0.6 0.12 258);
75
+ --chart-3: oklch(0.5 0.13 258);
76
+ --chart-4: oklch(0.35 0.13 258);
77
+ --chart-5: oklch(0.25 0.1 258);
78
+ --radius: 0.45rem;
79
+ --sidebar: oklch(0.985 0 0);
80
+ --sidebar-foreground: oklch(0.145 0 0);
81
+ --sidebar-primary: oklch(0.45 0.13 258);
82
+ --sidebar-primary-foreground: oklch(0.98 0 0);
83
+ --sidebar-accent: oklch(0.97 0 0);
84
+ --sidebar-accent-foreground: oklch(0.205 0 0);
85
+ --sidebar-border: oklch(0.922 0 0);
86
+ --sidebar-ring: oklch(0.708 0 0);
87
+ }
88
+
89
+ .dark {
90
+ --background: oklch(0.145 0 0);
91
+ --foreground: oklch(0.985 0 0);
92
+ --card: oklch(0.205 0 0);
93
+ --card-foreground: oklch(0.985 0 0);
94
+ --popover: oklch(0.205 0 0);
95
+ --popover-foreground: oklch(0.985 0 0);
96
+ --primary: oklch(0.55 0.12 258);
97
+ --primary-foreground: oklch(0.98 0 0);
98
+ --secondary: oklch(0.274 0.006 286.033);
99
+ --secondary-foreground: oklch(0.985 0 0);
100
+ --muted: oklch(0.269 0 0);
101
+ --muted-foreground: oklch(0.708 0 0);
102
+ --placeholder: oklch(0.6 0 0);
103
+ --accent: oklch(0.371 0 0);
104
+ --accent-foreground: oklch(0.985 0 0);
105
+ --destructive: oklch(0.704 0.191 22.216);
106
+ --border: oklch(1 0 0 / 10%);
107
+ --input: oklch(1 0 0 / 15%);
108
+ --ring: oklch(0.556 0 0);
109
+ --chart-1: oklch(0.75 0.1 258);
110
+ --chart-2: oklch(0.6 0.12 258);
111
+ --chart-3: oklch(0.5 0.13 258);
112
+ --chart-4: oklch(0.35 0.13 258);
113
+ --chart-5: oklch(0.25 0.1 258);
114
+ --sidebar: oklch(0.205 0 0);
115
+ --sidebar-foreground: oklch(0.985 0 0);
116
+ --sidebar-primary: oklch(0.6 0.12 258);
117
+ --sidebar-primary-foreground: oklch(0.98 0 0);
118
+ --sidebar-accent: oklch(0.269 0 0);
119
+ --sidebar-accent-foreground: oklch(0.985 0 0);
120
+ --sidebar-border: oklch(1 0 0 / 10%);
121
+ --sidebar-ring: oklch(0.556 0 0);
122
+ }
123
+
124
+ @layer base {
125
+ * {
126
+ @apply border-border outline-ring/50;
127
+ }
128
+ body {
129
+ @apply bg-background text-foreground;
130
+ }
131
+ }
132
+
133
+ /* Custom animations for agent loading states */
134
+ @layer utilities {
135
+ @keyframes shimmer {
136
+ 0% {
137
+ background-position: 200% 0;
138
+ }
139
+ 100% {
140
+ background-position: -200% 0;
141
+ }
142
+ }
143
+
144
+ .animate-shimmer {
145
+ animation: shimmer 2s ease-in-out infinite;
146
+ }
147
+ }
148
+
149
+ /* Respect reduced motion preferences */
150
+ @media (prefers-reduced-motion: reduce) {
151
+ .animate-shimmer,
152
+ .animate-ping,
153
+ .animate-pulse,
154
+ .animate-bounce {
155
+ animation: none;
156
+ }
157
+ }
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@agent-platform/ui",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./styles/globals.css": "./dist/styles/globals.css"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "peerDependencies": {
24
+ "@phosphor-icons/react": "^2.1.0",
25
+ "react": "^19.0.0",
26
+ "react-dom": "^19.0.0"
27
+ },
28
+ "dependencies": {
29
+ "@base-ui/react": "^1.0.0",
30
+ "class-variance-authority": "^0.7.1",
31
+ "clsx": "^2.1.1",
32
+ "radix-ui": "^1.4.3",
33
+ "react-markdown": "^10.1.0",
34
+ "remark-gfm": "^4.0.1",
35
+ "tailwind-merge": "^3.4.0",
36
+ "tw-animate-css": "^1.0.0"
37
+ },
38
+ "devDependencies": {
39
+ "@phosphor-icons/react": "^2.1.10",
40
+ "@types/react": "^19",
41
+ "@types/react-dom": "^19",
42
+ "react": "19.2.3",
43
+ "react-dom": "19.2.3",
44
+ "shadcn": "^2.0.0",
45
+ "typescript": "^5",
46
+ "@agent-platform/server": "0.0.1"
47
+ },
48
+ "scripts": {
49
+ "build": "pnpm run build:types && pnpm run build:styles",
50
+ "build:types": "tsc -p tsconfig.build.json",
51
+ "build:styles": "mkdir -p dist/styles && cp src/styles/globals.css dist/styles/globals.css",
52
+ "typecheck": "tsc --noEmit",
53
+ "pack:check": "pnpm pack",
54
+ "publish:check-auth": "node ./scripts/check-publish-auth.mjs",
55
+ "publish:public": "pnpm run publish:check-auth && pnpm publish --access public --no-git-checks",
56
+ "publish:public:dry-run": "pnpm run publish:check-auth && pnpm publish --access public --no-git-checks --dry-run",
57
+ "release:check": "pnpm run publish:check-auth && pnpm run build && pnpm run pack:check"
58
+ }
59
+ }