@agent-platform/ui 0.0.4 → 0.0.7
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/README.md +5 -0
- package/dist/components/agent/agent-container-state.d.ts +2 -0
- package/dist/components/agent/agent-container-state.js +52 -0
- package/dist/components/agent/agent-container-view.d.ts +3 -0
- package/dist/components/agent/agent-container-view.js +22 -0
- package/dist/components/agent/agent-container-view.test.d.ts +1 -0
- package/dist/components/agent/agent-container-view.test.js +16 -0
- package/dist/components/agent/agent-container.d.ts +1 -1
- package/dist/components/agent/agent-container.js +6 -44
- package/dist/components/agent/agent-greeting.d.ts +1 -1
- package/dist/components/agent/agent-greeting.js +4 -4
- package/dist/components/agent/agent-header.d.ts +1 -1
- package/dist/components/agent/agent-header.js +6 -6
- package/dist/components/agent/agent-home-cards.d.ts +2 -2
- package/dist/components/agent/agent-home-cards.js +8 -6
- package/dist/components/agent/agent-screen.d.ts +1 -1
- package/dist/components/agent/agent-screen.js +5 -2
- package/dist/components/agent/approval-ui-model.d.ts +15 -0
- package/dist/components/agent/approval-ui-model.js +27 -0
- package/dist/components/agent/approval-ui-model.test.d.ts +1 -0
- package/dist/components/agent/approval-ui-model.test.js +39 -0
- package/dist/components/agent/defaults.d.ts +0 -6
- package/dist/components/agent/defaults.js +0 -11
- package/dist/components/agent/index.d.ts +0 -2
- package/dist/components/agent/index.js +0 -1
- package/dist/components/agent/input-mode.d.ts +5 -0
- package/dist/components/agent/input-mode.js +9 -0
- package/dist/components/agent/message/index.d.ts +1 -1
- package/dist/components/agent/message/index.js +1 -1
- package/dist/components/agent/message/message-item.js +3 -9
- package/dist/components/agent/message/message-list.js +6 -11
- package/dist/components/agent/message/message-loading.d.ts +0 -6
- package/dist/components/agent/message/message-loading.js +4 -10
- package/dist/components/agent/message/tool-call-card.js +3 -1
- package/dist/components/agent/message/utils.d.ts +8 -0
- package/dist/components/agent/message/utils.js +21 -0
- package/dist/components/agent/provider/agent-context.d.ts +1 -0
- package/dist/components/agent/provider/agent-context.js +3 -0
- package/dist/components/agent/provider/agent-provider.d.ts +1 -1
- package/dist/components/agent/provider/agent-provider.js +19 -5
- package/dist/components/agent/provider/index.d.ts +1 -1
- package/dist/components/agent/provider/runtime-config.js +14 -5
- package/dist/components/agent/provider/types.d.ts +17 -15
- package/dist/components/agent/provider/use-agent-chat.js +39 -8
- package/dist/components/agent/types.d.ts +28 -3
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/modules/agent/agent.repository.d.ts +58 -0
- package/dist/modules/agent/agent.repository.js +235 -0
- package/dist/modules/agent/agent.repository.test.d.ts +1 -0
- package/dist/modules/agent/agent.repository.test.js +64 -0
- package/dist/modules/agent/domain/chat-state.d.ts +64 -0
- package/dist/modules/agent/domain/chat-state.js +148 -0
- package/dist/modules/agent/domain/chat-state.test.d.ts +1 -0
- package/dist/modules/agent/domain/chat-state.test.js +72 -0
- package/dist/modules/agent/use-agent-chat.d.ts +6 -0
- package/dist/modules/agent/use-agent-chat.js +106 -0
- package/dist/modules/agent/usecases/process-stream.d.ts +26 -0
- package/dist/modules/agent/usecases/process-stream.js +112 -0
- package/dist/modules/agent/usecases/process-stream.test.d.ts +1 -0
- package/dist/modules/agent/usecases/process-stream.test.js +91 -0
- package/dist/modules/agent/usecases/send-message.d.ts +21 -0
- package/dist/modules/agent/usecases/send-message.js +298 -0
- package/dist/modules/agent/usecases/send-message.test.d.ts +1 -0
- package/dist/modules/agent/usecases/send-message.test.js +257 -0
- package/dist/styles/globals.css +10 -64
- package/package.json +3 -5
package/dist/styles/globals.css
CHANGED
|
@@ -3,53 +3,6 @@
|
|
|
3
3
|
* 消費側で @import "@agent-platform/ui/styles/globals.css" として使用
|
|
4
4
|
* 注意: @import "tailwindcss" は消費側で行う
|
|
5
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
6
|
:root {
|
|
54
7
|
--background: oklch(1 0 0);
|
|
55
8
|
--foreground: oklch(0.145 0 0);
|
|
@@ -121,34 +74,27 @@
|
|
|
121
74
|
--sidebar-ring: oklch(0.556 0 0);
|
|
122
75
|
}
|
|
123
76
|
|
|
124
|
-
@layer base {
|
|
125
|
-
* {
|
|
126
|
-
@apply border-border outline-ring/50;
|
|
127
|
-
}
|
|
128
|
-
body {
|
|
129
|
-
@apply bg-background text-foreground;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
77
|
/* Custom animations for agent loading states */
|
|
134
78
|
@layer utilities {
|
|
135
|
-
@keyframes
|
|
136
|
-
0
|
|
137
|
-
|
|
138
|
-
}
|
|
79
|
+
@keyframes dot-fade {
|
|
80
|
+
0%,
|
|
81
|
+
80%,
|
|
139
82
|
100% {
|
|
140
|
-
|
|
83
|
+
opacity: 0.35;
|
|
84
|
+
}
|
|
85
|
+
40% {
|
|
86
|
+
opacity: 1;
|
|
141
87
|
}
|
|
142
88
|
}
|
|
143
89
|
|
|
144
|
-
.animate-
|
|
145
|
-
animation:
|
|
90
|
+
.animate-dot-fade {
|
|
91
|
+
animation: dot-fade 1.2s ease-in-out infinite;
|
|
146
92
|
}
|
|
147
93
|
}
|
|
148
94
|
|
|
149
95
|
/* Respect reduced motion preferences */
|
|
150
96
|
@media (prefers-reduced-motion: reduce) {
|
|
151
|
-
.animate-
|
|
97
|
+
.animate-dot-fade,
|
|
152
98
|
.animate-ping,
|
|
153
99
|
.animate-pulse,
|
|
154
100
|
.animate-bounce {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-platform/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,14 +26,12 @@
|
|
|
26
26
|
"react-dom": "^19.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@base-ui/react": "^1.0.0",
|
|
30
29
|
"class-variance-authority": "^0.7.1",
|
|
31
30
|
"clsx": "^2.1.1",
|
|
32
31
|
"radix-ui": "^1.4.3",
|
|
33
32
|
"react-markdown": "^10.1.0",
|
|
34
33
|
"remark-gfm": "^4.0.1",
|
|
35
|
-
"tailwind-merge": "^3.4.0"
|
|
36
|
-
"tw-animate-css": "^1.0.0"
|
|
34
|
+
"tailwind-merge": "^3.4.0"
|
|
37
35
|
},
|
|
38
36
|
"devDependencies": {
|
|
39
37
|
"@phosphor-icons/react": "^2.1.10",
|
|
@@ -41,7 +39,6 @@
|
|
|
41
39
|
"@types/react-dom": "^19",
|
|
42
40
|
"react": "19.2.3",
|
|
43
41
|
"react-dom": "19.2.3",
|
|
44
|
-
"shadcn": "^2.0.0",
|
|
45
42
|
"typescript": "^5",
|
|
46
43
|
"@agent-platform/server": "0.0.1"
|
|
47
44
|
},
|
|
@@ -49,6 +46,7 @@
|
|
|
49
46
|
"build": "pnpm run build:types && pnpm run build:styles",
|
|
50
47
|
"build:types": "tsc -p tsconfig.build.json",
|
|
51
48
|
"build:styles": "mkdir -p dist/styles && cp src/styles/globals.css dist/styles/globals.css",
|
|
49
|
+
"test": "pnpm -C ../server exec vitest --root ../ui",
|
|
52
50
|
"typecheck": "tsc --noEmit",
|
|
53
51
|
"pack:check": "pnpm pack",
|
|
54
52
|
"publish:check-auth": "node ./scripts/check-publish-auth.mjs",
|