@vadimcomanescu/nadicode-design-system 2.0.9 → 4.0.0
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/.agents/skills/seed/SKILL.md +19 -10
- package/.agents/skills/seed/contract.md +9 -2
- package/.agents/skills/seed/references/blocks.md +5 -5
- package/.agents/skills/seed/references/components.md +2 -2
- package/.agents/skills/seed/references/nextjs.md +2 -2
- package/README.md +3 -3
- package/contracts/consumer-intent-map.json +1 -2
- package/contracts/release-governance-baseline.json +3 -37
- package/dist/catalog/catalog.d.ts +2220 -0
- package/dist/catalog/catalog.js +1913 -0
- package/dist/catalog/components.d.ts +201 -0
- package/dist/catalog/components.js +407 -0
- package/dist/catalog/types.d.ts +4 -0
- package/dist/catalog/types.js +1 -0
- package/dist/chunk-224KPIOG.js +60 -0
- package/dist/chunk-25BOZMXA.js +169 -0
- package/dist/chunk-32OLQ7FC.js +130 -0
- package/dist/chunk-3JJBJ4VR.js +47 -0
- package/dist/chunk-3U56FXYC.js +30 -0
- package/dist/chunk-4MWKE6F5.js +86 -0
- package/dist/chunk-6HGSU24S.js +94 -0
- package/dist/chunk-7IADIXDV.js +168 -0
- package/dist/chunk-7NS3VFD7.js +86 -0
- package/dist/chunk-7XLZCXUL.js +175 -0
- package/dist/chunk-ALA6OM7K.js +134 -0
- package/dist/chunk-AN5TW4AL.js +50 -0
- package/dist/chunk-AWZFQQGN.js +167 -0
- package/dist/chunk-BRCBJ3S4.js +42 -0
- package/dist/chunk-BRICSLHJ.js +30 -0
- package/dist/chunk-BYEHHZZN.js +115 -0
- package/dist/chunk-C33GUEDY.js +149 -0
- package/dist/chunk-CUDMDYKE.js +150 -0
- package/dist/chunk-CVTMWSNS.js +145 -0
- package/dist/chunk-DEZXWNYF.js +165 -0
- package/dist/chunk-DNJEVMDY.js +40 -0
- package/dist/chunk-DNJOBML6.js +66 -0
- package/dist/chunk-FTGFOK6T.js +69 -0
- package/dist/chunk-HFBJ6L6O.js +104 -0
- package/dist/chunk-HPTHS7SX.js +52 -0
- package/dist/chunk-KNR3WB5C.js +147 -0
- package/dist/chunk-KQ7ZC6EM.js +66 -0
- package/dist/chunk-LGW7FVG5.js +83 -0
- package/dist/chunk-LP6ZZYOQ.js +36 -0
- package/dist/chunk-LV4P7WVM.js +54 -0
- package/dist/chunk-MGSGCARB.js +164 -0
- package/dist/chunk-N3YFYMNZ.js +73 -0
- package/dist/chunk-Q5IYBNA7.js +56 -0
- package/dist/chunk-QJCE7NZF.js +85 -0
- package/dist/chunk-QW5II6YK.js +96 -0
- package/dist/chunk-RMGDDOCD.js +138 -0
- package/dist/chunk-RNCX4JIE.js +70 -0
- package/dist/chunk-RWCL5OPX.js +112 -0
- package/dist/chunk-S5OY2B63.js +28 -0
- package/dist/chunk-SIQNG72C.js +257 -0
- package/dist/chunk-SP7NIZFP.js +117 -0
- package/dist/chunk-SWRJWMGG.js +30 -0
- package/dist/chunk-TCQIJ3DO.js +85 -0
- package/dist/chunk-TPJ6JJ2F.js +290 -0
- package/dist/chunk-TUJZMJXW.js +72 -0
- package/dist/chunk-UR43ANYS.js +159 -0
- package/dist/chunk-VRGPG2YN.js +79 -0
- package/dist/chunk-WSBLCWY7.js +126 -0
- package/dist/chunk-XKKFSFYO.js +93 -0
- package/dist/chunk-XO7TBM47.js +32 -0
- package/dist/chunk-YDYDGG5K.js +132 -0
- package/dist/chunk-YMJOUYMT.js +171 -0
- package/dist/chunk-Z2WION42.js +32 -0
- package/dist/chunk-ZFKSVEYW.js +35 -0
- package/dist/components/blocks/AgentProfileGridBlock.js +8 -86
- package/dist/components/blocks/AgentRunOverviewBlock.js +8 -147
- package/dist/components/blocks/AgentWorkbenchBlock.js +15 -257
- package/dist/components/blocks/AudioVisualizerBlock.js +2 -50
- package/dist/components/blocks/AuthLayout.js +9 -73
- package/dist/components/blocks/BannerBlock.js +8 -66
- package/dist/components/blocks/BarChartBlock.js +5 -47
- package/dist/components/blocks/ChartBlock.js +7 -54
- package/dist/components/blocks/ChartCollectionBlock.js +11 -171
- package/dist/components/blocks/ChatLayout.js +12 -126
- package/dist/components/blocks/CreateBlock.js +9 -104
- package/dist/components/blocks/DataGridBlock.js +9 -117
- package/dist/components/blocks/DirectoryBlock.js +12 -85
- package/dist/components/blocks/FeatureGridBlock.js +6 -56
- package/dist/components/blocks/GalleryBlock.js +6 -69
- package/dist/components/blocks/HeroSectionBlock.js +10 -134
- package/dist/components/blocks/IntegrationsBlock.js +13 -94
- package/dist/components/blocks/InteractiveAreaChartBlock.js +5 -290
- package/dist/components/blocks/KanbanDemoBlock.js +8 -145
- package/dist/components/blocks/LogoCloud.js +4 -35
- package/dist/components/blocks/NavUser.js +5 -85
- package/dist/components/blocks/NotFoundBlock.js +8 -32
- package/dist/components/blocks/OnboardingBlock.js +7 -66
- package/dist/components/blocks/SettingsLayout.js +13 -86
- package/dist/components/blocks/SignUpBlock.js +8 -168
- package/dist/components/blocks/SolutionShowcaseBlock.js +11 -112
- package/dist/components/blocks/StatsBlock.js +6 -60
- package/dist/components/blocks/UsageDonutBlock.js +5 -79
- package/dist/components/blocks/WizardBlock.js +12 -93
- package/dist/components/blocks/user/InviteUserModal.js +10 -132
- package/dist/components/page-kits/AccountLockedPageKit.js +3 -40
- package/dist/components/page-kits/AgentsChatPageKit.js +11 -159
- package/dist/components/page-kits/AnalyticsPageKit.js +12 -150
- package/dist/components/page-kits/BlogContentPageKit.js +12 -167
- package/dist/components/page-kits/CheckoutPageKit.js +9 -83
- package/dist/components/page-kits/CompanySuitePageKit.js +9 -96
- package/dist/components/page-kits/DashboardPageKit.js +11 -149
- package/dist/components/page-kits/ErrorPageKit.js +5 -52
- package/dist/components/page-kits/KanbanBoardPageKit.js +7 -169
- package/dist/components/page-kits/LandingPageKit.js +11 -72
- package/dist/components/page-kits/LoginPageKit.js +3 -32
- package/dist/components/page-kits/OnboardingPageKit.js +6 -115
- package/dist/components/page-kits/PricingPageKit.js +12 -138
- package/dist/components/page-kits/ProfileSettingsPageKit.js +10 -164
- package/dist/components/page-kits/RecoveryPageKit.js +3 -42
- package/dist/components/page-kits/ResetPageKit.js +3 -36
- package/dist/components/page-kits/ServiceSuitePageKit.js +10 -175
- package/dist/components/page-kits/SignupPageKit.js +3 -30
- package/dist/components/page-kits/SuccessPageKit.js +4 -30
- package/dist/components/page-kits/TeamSettingsPageKit.js +9 -165
- package/dist/components/page-kits/TwoFactorPageKit.js +4 -28
- package/dist/components/page-kits/VerifyEmailPageKit.js +4 -30
- package/dist/components/page-kits/VoiceAgentsPageKit.js +13 -130
- package/dist/components/ui/CheckoutForm.js +5 -70
- package/eslint-rules/nadicode/config.js +1 -0
- package/eslint-rules/nadicode/data/catalog-names.json +93 -0
- package/eslint-rules/nadicode/index.js +2 -0
- package/eslint-rules/nadicode/rules/__tests__/require-catalog-component.test.js +77 -0
- package/eslint-rules/nadicode/rules/require-catalog-component.js +79 -0
- package/package.json +18 -25
- package/contracts/block-props-schemas.json +0 -2186
- package/contracts/component-props-schemas.json +0 -8322
- package/contracts/consumer-contract.json +0 -178
- package/contracts/page-kit-props-schemas.json +0 -1894
- package/contracts/public-surface-registry.json +0 -5822
- package/contracts/public-surface-registry.schema.json +0 -219
- package/contracts/spec-manifest.json +0 -46
- package/dist/catalog.json +0 -5221
|
@@ -1,84 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
2
|
+
export { UsageDonutBlock } from '../../chunk-VRGPG2YN.js';
|
|
3
|
+
import '../../chunk-U7V6TREO.js';
|
|
3
4
|
import '../../chunk-WSU2PCA2.js';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
5
|
+
import '../../chunk-55HD4L6G.js';
|
|
6
|
+
import '../../chunk-AH6YSYYT.js';
|
|
6
7
|
import '../../chunk-PD2YEH3H.js';
|
|
7
8
|
import '../../chunk-CRY67BIF.js';
|
|
8
9
|
import '../../chunk-HJC6U46F.js';
|
|
9
|
-
import
|
|
10
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
11
|
-
|
|
12
|
-
var defaultData = [
|
|
13
|
-
{ name: "Vector DB", value: 400, fill: "rgb(var(--chart-1))" },
|
|
14
|
-
{ name: "Model Storage", value: 300, fill: "rgb(var(--chart-2))" },
|
|
15
|
-
{ name: "Logs", value: 300, fill: "rgb(var(--chart-3))" },
|
|
16
|
-
{ name: "Cache", value: 200, fill: "rgb(var(--chart-4))" }
|
|
17
|
-
];
|
|
18
|
-
var defaultConfig = {
|
|
19
|
-
"Vector DB": {
|
|
20
|
-
label: "Vector DB",
|
|
21
|
-
color: "rgb(var(--chart-1))"
|
|
22
|
-
},
|
|
23
|
-
"Model Storage": {
|
|
24
|
-
label: "Model Storage",
|
|
25
|
-
color: "rgb(var(--chart-2))"
|
|
26
|
-
},
|
|
27
|
-
"Logs": {
|
|
28
|
-
label: "Logs",
|
|
29
|
-
color: "rgb(var(--chart-3))"
|
|
30
|
-
},
|
|
31
|
-
"Cache": {
|
|
32
|
-
label: "Cache",
|
|
33
|
-
color: "rgb(var(--chart-4))"
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var defaultCenterLabel = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37
|
-
/* @__PURE__ */ jsxs("span", { className: "text-3xl font-bold text-text-primary", children: [
|
|
38
|
-
"1.2",
|
|
39
|
-
/* @__PURE__ */ jsx("span", { className: "text-lg text-text-secondary", children: "GB" })
|
|
40
|
-
] }),
|
|
41
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-text-tertiary uppercase tracking-wider", children: "Used" })
|
|
42
|
-
] });
|
|
43
|
-
function UsageDonutBlock({
|
|
44
|
-
data = defaultData,
|
|
45
|
-
config = defaultConfig,
|
|
46
|
-
title = "Storage",
|
|
47
|
-
description = "Distribution of data types",
|
|
48
|
-
centerLabel = defaultCenterLabel,
|
|
49
|
-
className
|
|
50
|
-
}) {
|
|
51
|
-
return /* @__PURE__ */ jsxs(Card, { className: cn("w-full max-w-[350px]", className), children: [
|
|
52
|
-
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
53
|
-
/* @__PURE__ */ jsx(CardTitle, { children: title }),
|
|
54
|
-
/* @__PURE__ */ jsx(CardDescription, { children: description })
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ jsx(CardContent, { className: "pb-4", children: data.length === 0 ? /* @__PURE__ */ jsxs(Empty, { className: "min-h-[240px]", children: [
|
|
57
|
-
/* @__PURE__ */ jsx(EmptyTitle, { children: "No storage breakdown" }),
|
|
58
|
-
/* @__PURE__ */ jsx(EmptyDescription, { children: "Storage categories will appear here once usage data is available." })
|
|
59
|
-
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60
|
-
/* @__PURE__ */ jsxs("div", { className: "h-[240px] relative", children: [
|
|
61
|
-
/* @__PURE__ */ jsx(
|
|
62
|
-
PieChart,
|
|
63
|
-
{
|
|
64
|
-
data,
|
|
65
|
-
config,
|
|
66
|
-
dataKey: "value",
|
|
67
|
-
nameKey: "name",
|
|
68
|
-
innerRadius: 60,
|
|
69
|
-
outerRadius: 80,
|
|
70
|
-
showLegend: false,
|
|
71
|
-
className: "mx-auto aspect-square max-h-[240px]"
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex flex-col items-center justify-center pointer-events-none", children: centerLabel })
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ jsx("div", { className: "mt-4 grid grid-cols-2 gap-2 text-sm", children: data.map((item) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-text-secondary", children: [
|
|
77
|
-
/* @__PURE__ */ jsx("div", { className: "h-2.5 w-2.5 rounded-full", style: { backgroundColor: item.fill } }),
|
|
78
|
-
item.name
|
|
79
|
-
] }, item.name)) })
|
|
80
|
-
] }) })
|
|
81
|
-
] });
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export { UsageDonutBlock };
|
|
10
|
+
import '../../chunk-QYZT24TS.js';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
export { WizardBlock } from '../../chunk-XKKFSFYO.js';
|
|
2
3
|
import '../../chunk-3NYTIDKZ.js';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
4
|
+
import '../../chunk-HS7QNBCO.js';
|
|
5
|
+
import '../../chunk-2WEUTBDI.js';
|
|
6
|
+
import '../../chunk-WI547C47.js';
|
|
7
|
+
import '../../chunk-RX5EUODB.js';
|
|
8
|
+
import '../../chunk-AP3XXYAY.js';
|
|
8
9
|
import '../../chunk-LIBXYD5Q.js';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
10
|
+
import '../../chunk-AH6YSYYT.js';
|
|
11
|
+
import '../../chunk-7KIDDF3I.js';
|
|
11
12
|
import '../../chunk-PD2YEH3H.js';
|
|
12
13
|
import '../../chunk-CRY67BIF.js';
|
|
13
14
|
import '../../chunk-HJC6U46F.js';
|
|
@@ -26,14 +27,14 @@ import '../../chunk-KSHJQ2VT.js';
|
|
|
26
27
|
import '../../chunk-GAKU7DFY.js';
|
|
27
28
|
import '../../chunk-T6BRD7TS.js';
|
|
28
29
|
import '../../chunk-TXGANOAX.js';
|
|
29
|
-
import
|
|
30
|
+
import '../../chunk-OITJWGFV.js';
|
|
30
31
|
import '../../chunk-Z74D6D2W.js';
|
|
31
32
|
import '../../chunk-7WDT2PRI.js';
|
|
32
33
|
import '../../chunk-IJJI4RQU.js';
|
|
33
34
|
import '../../chunk-E7RBK6ML.js';
|
|
34
35
|
import '../../chunk-UBIGDGOP.js';
|
|
35
36
|
import '../../chunk-ALMGJVMT.js';
|
|
36
|
-
import
|
|
37
|
+
import '../../chunk-QPXTBZWN.js';
|
|
37
38
|
import '../../chunk-4NXZIMYZ.js';
|
|
38
39
|
import '../../chunk-R5XP45PD.js';
|
|
39
40
|
import '../../chunk-G5EO5FWC.js';
|
|
@@ -64,7 +65,7 @@ import '../../chunk-I3TH7PIB.js';
|
|
|
64
65
|
import '../../chunk-WGPK3FQ7.js';
|
|
65
66
|
import '../../chunk-JL4MVVFH.js';
|
|
66
67
|
import '../../chunk-4FEAWXJD.js';
|
|
67
|
-
import
|
|
68
|
+
import '../../chunk-JHQTKMKG.js';
|
|
68
69
|
import '../../chunk-WA45EC4Y.js';
|
|
69
70
|
import '../../chunk-2MOEOEOI.js';
|
|
70
71
|
import '../../chunk-5LCXASRW.js';
|
|
@@ -116,7 +117,7 @@ import '../../chunk-P6IRHPFM.js';
|
|
|
116
117
|
import '../../chunk-SXHYB7JB.js';
|
|
117
118
|
import '../../chunk-BFLN54VR.js';
|
|
118
119
|
import '../../chunk-ONGJ7AC2.js';
|
|
119
|
-
import
|
|
120
|
+
import '../../chunk-UHXGBV5N.js';
|
|
120
121
|
import '../../chunk-UIUMTURU.js';
|
|
121
122
|
import '../../chunk-PRUXIDBD.js';
|
|
122
123
|
import '../../chunk-NURPUVUV.js';
|
|
@@ -124,85 +125,3 @@ import '../../chunk-TV4RSQH4.js';
|
|
|
124
125
|
import '../../chunk-HJBXUXTD.js';
|
|
125
126
|
import '../../chunk-ASKFAYYR.js';
|
|
126
127
|
import '../../chunk-QYZT24TS.js';
|
|
127
|
-
import { useState } from 'react';
|
|
128
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
129
|
-
|
|
130
|
-
var defaultSteps = [
|
|
131
|
-
{ title: "Account", description: "Setup your account", icon: /* @__PURE__ */ jsx(UserIcon, { size: 16 }) },
|
|
132
|
-
{ title: "Profile", description: "Add personal info", icon: /* @__PURE__ */ jsx(SettingsIcon, { size: 16 }) },
|
|
133
|
-
{ title: "Plan", description: "Choose a plan", icon: /* @__PURE__ */ jsx(CreditCardIcon, { size: 16 }) },
|
|
134
|
-
{ title: "Launch", description: "Ready to go", icon: /* @__PURE__ */ jsx(RocketIcon, { size: 16 }) }
|
|
135
|
-
];
|
|
136
|
-
function WizardBlock({
|
|
137
|
-
title = "Create Project",
|
|
138
|
-
description = "Follow the steps to setup your new project workspace.",
|
|
139
|
-
steps = defaultSteps,
|
|
140
|
-
onFinish,
|
|
141
|
-
className
|
|
142
|
-
}) {
|
|
143
|
-
const [activeStep, setActiveStep] = useState(0);
|
|
144
|
-
const handleNext = () => setActiveStep((p) => Math.min(p + 1, steps.length - 1));
|
|
145
|
-
const handlePrev = () => setActiveStep((p) => Math.max(p - 1, 0));
|
|
146
|
-
return /* @__PURE__ */ jsxs(Card, { className: className ?? "w-full max-w-2xl mx-auto", children: [
|
|
147
|
-
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
148
|
-
/* @__PURE__ */ jsx(CardTitle, { children: title }),
|
|
149
|
-
/* @__PURE__ */ jsx(CardDescription, { children: description })
|
|
150
|
-
] }),
|
|
151
|
-
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-8", children: [
|
|
152
|
-
/* @__PURE__ */ jsx(Stepper, { activeStep, onStepChange: setActiveStep, className: "justify-between", children: steps.map((step, index) => /* @__PURE__ */ jsx(
|
|
153
|
-
Step,
|
|
154
|
-
{
|
|
155
|
-
index,
|
|
156
|
-
title: step.title,
|
|
157
|
-
description: step.description,
|
|
158
|
-
icon: step.icon,
|
|
159
|
-
completed: index < activeStep
|
|
160
|
-
},
|
|
161
|
-
index
|
|
162
|
-
)) }),
|
|
163
|
-
/* @__PURE__ */ jsxs("div", { className: "min-h-[200px] border rounded-lg p-6 bg-muted/20 animate-in fade-in slide-in-from-bottom-2 duration-300", children: [
|
|
164
|
-
activeStep === 0 && /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
165
|
-
/* @__PURE__ */ jsxs(Field, { children: [
|
|
166
|
-
/* @__PURE__ */ jsx(FieldLabel, { children: "Username" }),
|
|
167
|
-
/* @__PURE__ */ jsx(Input, { placeholder: "jdoe" })
|
|
168
|
-
] }),
|
|
169
|
-
/* @__PURE__ */ jsxs(Field, { children: [
|
|
170
|
-
/* @__PURE__ */ jsx(FieldLabel, { children: "Email" }),
|
|
171
|
-
/* @__PURE__ */ jsx(Input, { placeholder: "john@example.com" })
|
|
172
|
-
] })
|
|
173
|
-
] }),
|
|
174
|
-
activeStep === 1 && /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
175
|
-
/* @__PURE__ */ jsxs(Field, { children: [
|
|
176
|
-
/* @__PURE__ */ jsx(FieldLabel, { children: "Full Name" }),
|
|
177
|
-
/* @__PURE__ */ jsx(Input, { placeholder: "John Doe" })
|
|
178
|
-
] }),
|
|
179
|
-
/* @__PURE__ */ jsxs(Field, { children: [
|
|
180
|
-
/* @__PURE__ */ jsx(FieldLabel, { children: "Bio" }),
|
|
181
|
-
/* @__PURE__ */ jsx(Input, { placeholder: "Tell us about yourself" })
|
|
182
|
-
] })
|
|
183
|
-
] }),
|
|
184
|
-
activeStep === 2 && /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
185
|
-
/* @__PURE__ */ jsxs("div", { className: "border p-4 rounded-lg bg-background hover:bg-accent/50 cursor-pointer transition-colors", children: [
|
|
186
|
-
/* @__PURE__ */ jsx(Heading, { level: 3, size: "title", className: "font-bold", children: "Free" }),
|
|
187
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-text-tertiary", children: "For hobbyists" })
|
|
188
|
-
] }),
|
|
189
|
-
/* @__PURE__ */ jsxs("div", { className: "border border-primary p-4 rounded-lg bg-primary/10 cursor-pointer", children: [
|
|
190
|
-
/* @__PURE__ */ jsx(Heading, { level: 3, size: "title", className: "font-bold text-primary", children: "Pro" }),
|
|
191
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-text-tertiary", children: "For professionals" })
|
|
192
|
-
] })
|
|
193
|
-
] }),
|
|
194
|
-
activeStep === 3 && /* @__PURE__ */ jsxs("div", { className: "text-center space-y-4 py-8", children: [
|
|
195
|
-
/* @__PURE__ */ jsx(RocketIcon, { size: 64, className: "mx-auto text-primary animate-[float_2s_ease-in-out_infinite] motion-reduce:animate-none" }),
|
|
196
|
-
/* @__PURE__ */ jsx(Heading, { level: 3, size: "title", children: "Ready to Launch!" }),
|
|
197
|
-
/* @__PURE__ */ jsx("p", { className: "text-text-tertiary", children: "Review your settings and click Finish to deploy." })
|
|
198
|
-
] })
|
|
199
|
-
] })
|
|
200
|
-
] }),
|
|
201
|
-
/* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between", children: [
|
|
202
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", onClick: handlePrev, disabled: activeStep === 0, children: "Previous" }),
|
|
203
|
-
/* @__PURE__ */ jsx(Button, { onClick: activeStep === steps.length - 1 ? onFinish : handleNext, children: activeStep === steps.length - 1 ? "Finish" : "Next" })
|
|
204
|
-
] })
|
|
205
|
-
] });
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export { WizardBlock };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
export { InviteUserModal } from '../../../chunk-YDYDGG5K.js';
|
|
3
|
+
import '../../../chunk-OHCQPI3W.js';
|
|
4
|
+
import '../../../chunk-WH62BE24.js';
|
|
5
|
+
import '../../../chunk-RX5EUODB.js';
|
|
6
|
+
import '../../../chunk-W73JAOHW.js';
|
|
7
|
+
import '../../../chunk-AP3XXYAY.js';
|
|
7
8
|
import '../../../chunk-LIBXYD5Q.js';
|
|
8
9
|
import '../../../chunk-KRBLVZII.js';
|
|
9
|
-
import
|
|
10
|
+
import '../../../chunk-7KIDDF3I.js';
|
|
10
11
|
import '../../../chunk-6FOHUNXR.js';
|
|
11
12
|
import '../../../chunk-PD2YEH3H.js';
|
|
12
13
|
import '../../../chunk-CRY67BIF.js';
|
|
@@ -30,7 +31,7 @@ import '../../../chunk-OITJWGFV.js';
|
|
|
30
31
|
import '../../../chunk-Z74D6D2W.js';
|
|
31
32
|
import '../../../chunk-7WDT2PRI.js';
|
|
32
33
|
import '../../../chunk-IJJI4RQU.js';
|
|
33
|
-
import
|
|
34
|
+
import '../../../chunk-E7RBK6ML.js';
|
|
34
35
|
import '../../../chunk-UBIGDGOP.js';
|
|
35
36
|
import '../../../chunk-ALMGJVMT.js';
|
|
36
37
|
import '../../../chunk-QPXTBZWN.js';
|
|
@@ -44,7 +45,7 @@ import '../../../chunk-RYOTIXZO.js';
|
|
|
44
45
|
import '../../../chunk-JZ4G2SJH.js';
|
|
45
46
|
import '../../../chunk-KYGKJ553.js';
|
|
46
47
|
import '../../../chunk-M7YSMMAC.js';
|
|
47
|
-
import
|
|
48
|
+
import '../../../chunk-XQ2UDMPO.js';
|
|
48
49
|
import '../../../chunk-JMCSAGZ3.js';
|
|
49
50
|
import '../../../chunk-QUKDUSHD.js';
|
|
50
51
|
import '../../../chunk-O74AEVHW.js';
|
|
@@ -111,7 +112,7 @@ import '../../../chunk-G5YLGJXR.js';
|
|
|
111
112
|
import '../../../chunk-G24VV5NO.js';
|
|
112
113
|
import '../../../chunk-R3AO6AZM.js';
|
|
113
114
|
import '../../../chunk-GCUTJI7M.js';
|
|
114
|
-
import
|
|
115
|
+
import '../../../chunk-CXACRCZ4.js';
|
|
115
116
|
import '../../../chunk-P6IRHPFM.js';
|
|
116
117
|
import '../../../chunk-SXHYB7JB.js';
|
|
117
118
|
import '../../../chunk-BFLN54VR.js';
|
|
@@ -124,126 +125,3 @@ import '../../../chunk-TV4RSQH4.js';
|
|
|
124
125
|
import '../../../chunk-HJBXUXTD.js';
|
|
125
126
|
import '../../../chunk-ASKFAYYR.js';
|
|
126
127
|
import '../../../chunk-QYZT24TS.js';
|
|
127
|
-
import * as React from 'react';
|
|
128
|
-
import { useForm } from 'react-hook-form';
|
|
129
|
-
import { zodResolver } from '@hookform/resolvers/zod';
|
|
130
|
-
import * as z from 'zod';
|
|
131
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
132
|
-
|
|
133
|
-
var inviteSchema = z.object({
|
|
134
|
-
email: z.string().email({ message: "Please enter a valid email address." }),
|
|
135
|
-
role: z.enum(["admin", "member", "guest"])
|
|
136
|
-
});
|
|
137
|
-
function InviteUserModal({ onInvite, onInvited }) {
|
|
138
|
-
const [open, setOpen] = React.useState(false);
|
|
139
|
-
const [isPending, startTransition] = React.useTransition();
|
|
140
|
-
const [submitError, setSubmitError] = React.useState();
|
|
141
|
-
const {
|
|
142
|
-
register,
|
|
143
|
-
handleSubmit,
|
|
144
|
-
setValue,
|
|
145
|
-
reset,
|
|
146
|
-
formState: { errors }
|
|
147
|
-
} = useForm({
|
|
148
|
-
resolver: zodResolver(inviteSchema),
|
|
149
|
-
defaultValues: {
|
|
150
|
-
role: "member"
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
function onSubmit(values) {
|
|
154
|
-
setSubmitError(void 0);
|
|
155
|
-
startTransition(() => {
|
|
156
|
-
void Promise.resolve(onInvite?.(values)).then((result) => {
|
|
157
|
-
if (result === false) {
|
|
158
|
-
setSubmitError("Failed to send invitation.");
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
if (typeof result === "object" && result !== null && "success" in result && result.success === false) {
|
|
162
|
-
setSubmitError(result.error ?? "Failed to send invitation.");
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
setOpen(false);
|
|
166
|
-
reset();
|
|
167
|
-
onInvited?.();
|
|
168
|
-
}).catch(() => {
|
|
169
|
-
setSubmitError("Failed to send invitation.");
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
return /* @__PURE__ */ jsxs(Dialog, { open, onOpenChange: setOpen, children: [
|
|
174
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "accent", className: "gap-2", children: [
|
|
175
|
-
/* @__PURE__ */ jsx(PlusIcon, { size: 16 }),
|
|
176
|
-
"Invite User"
|
|
177
|
-
] }) }),
|
|
178
|
-
/* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-[425px]", children: [
|
|
179
|
-
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
180
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: "Invite Teammate" }),
|
|
181
|
-
/* @__PURE__ */ jsx(DialogDescription, { children: "Send an invitation to join your workspace. They will receive an email with a magic link." })
|
|
182
|
-
] }),
|
|
183
|
-
/* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit(onSubmit), className: "space-y-6 pt-4", children: [
|
|
184
|
-
/* @__PURE__ */ jsxs(Field, { children: [
|
|
185
|
-
/* @__PURE__ */ jsx(FieldLabel, { htmlFor: "email", children: "Email Address" }),
|
|
186
|
-
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
187
|
-
/* @__PURE__ */ jsx(MailIcon, { size: 16, className: "absolute left-4 top-2.5 text-text-tertiary" }),
|
|
188
|
-
/* @__PURE__ */ jsx(
|
|
189
|
-
Input,
|
|
190
|
-
{
|
|
191
|
-
id: "email",
|
|
192
|
-
placeholder: "colleague@company.com",
|
|
193
|
-
className: "pl-10",
|
|
194
|
-
...register("email")
|
|
195
|
-
}
|
|
196
|
-
)
|
|
197
|
-
] }),
|
|
198
|
-
errors.email && /* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-destructive", children: errors.email.message })
|
|
199
|
-
] }),
|
|
200
|
-
/* @__PURE__ */ jsxs(Field, { children: [
|
|
201
|
-
/* @__PURE__ */ jsx(FieldLabel, { children: "Role" }),
|
|
202
|
-
/* @__PURE__ */ jsxs(
|
|
203
|
-
Select,
|
|
204
|
-
{
|
|
205
|
-
defaultValue: "member",
|
|
206
|
-
onValueChange: (val) => setValue("role", val),
|
|
207
|
-
children: [
|
|
208
|
-
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select a role" }) }),
|
|
209
|
-
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
210
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "admin", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
211
|
-
/* @__PURE__ */ jsx(RoleBadge, { role: "admin" }),
|
|
212
|
-
/* @__PURE__ */ jsx("span", { className: "text-text-secondary", children: "Full access" })
|
|
213
|
-
] }) }),
|
|
214
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "member", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
215
|
-
/* @__PURE__ */ jsx(RoleBadge, { role: "member" }),
|
|
216
|
-
/* @__PURE__ */ jsx("span", { className: "text-text-secondary", children: "Can view and edit" })
|
|
217
|
-
] }) }),
|
|
218
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "guest", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
219
|
-
/* @__PURE__ */ jsx(RoleBadge, { role: "guest" }),
|
|
220
|
-
/* @__PURE__ */ jsx("span", { className: "text-text-secondary", children: "View only" })
|
|
221
|
-
] }) })
|
|
222
|
-
] })
|
|
223
|
-
]
|
|
224
|
-
}
|
|
225
|
-
),
|
|
226
|
-
errors.role && /* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-destructive", children: errors.role.message })
|
|
227
|
-
] }),
|
|
228
|
-
/* @__PURE__ */ jsxs(DialogFooter, { children: [
|
|
229
|
-
/* @__PURE__ */ jsx(
|
|
230
|
-
Button,
|
|
231
|
-
{
|
|
232
|
-
type: "button",
|
|
233
|
-
variant: "outline",
|
|
234
|
-
onClick: () => setOpen(false),
|
|
235
|
-
children: "Cancel"
|
|
236
|
-
}
|
|
237
|
-
),
|
|
238
|
-
/* @__PURE__ */ jsx(Button, { type: "submit", variant: "accent", disabled: isPending, children: isPending ? /* @__PURE__ */ jsx(Fragment, { children: "Sending..." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
239
|
-
/* @__PURE__ */ jsx(CheckIcon, { size: 16, className: "mr-2" }),
|
|
240
|
-
" Send Invite"
|
|
241
|
-
] }) })
|
|
242
|
-
] }),
|
|
243
|
-
!!submitError && /* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-destructive", children: submitError })
|
|
244
|
-
] })
|
|
245
|
-
] })
|
|
246
|
-
] });
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
export { InviteUserModal };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export { AccountLockedPageKit } from '../../chunk-DNJEVMDY.js';
|
|
2
|
+
import '../../chunk-FX23F33E.js';
|
|
2
3
|
import '../../chunk-AH6YSYYT.js';
|
|
3
4
|
import '../../chunk-GJUR6HT3.js';
|
|
4
5
|
import '../../chunk-7KIDDF3I.js';
|
|
@@ -7,42 +8,4 @@ import '../../chunk-CRY67BIF.js';
|
|
|
7
8
|
import '../../chunk-HJC6U46F.js';
|
|
8
9
|
import '../../chunk-RYOTIXZO.js';
|
|
9
10
|
import '../../chunk-ASKFAYYR.js';
|
|
10
|
-
import
|
|
11
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
|
-
|
|
13
|
-
function AccountLockedPageKit({
|
|
14
|
-
reason = "too_many_attempts",
|
|
15
|
-
unlockMinutes,
|
|
16
|
-
onContactSupport,
|
|
17
|
-
onBackToLogin,
|
|
18
|
-
title,
|
|
19
|
-
description,
|
|
20
|
-
errorMessage,
|
|
21
|
-
className,
|
|
22
|
-
cardClassName
|
|
23
|
-
}) {
|
|
24
|
-
return /* @__PURE__ */ jsx("section", { className: cn("min-h-dvh w-full bg-background px-4 py-12 md:px-8 md:py-20", className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex w-full max-w-5xl flex-col items-center justify-center gap-4", children: [
|
|
25
|
-
errorMessage ? /* @__PURE__ */ jsx(
|
|
26
|
-
"div",
|
|
27
|
-
{
|
|
28
|
-
role: "alert",
|
|
29
|
-
className: "w-full max-w-sm rounded-md border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive",
|
|
30
|
-
children: errorMessage
|
|
31
|
-
}
|
|
32
|
-
) : null,
|
|
33
|
-
/* @__PURE__ */ jsx(
|
|
34
|
-
AccountLockedBlock,
|
|
35
|
-
{
|
|
36
|
-
className: cn("w-full", cardClassName),
|
|
37
|
-
reason,
|
|
38
|
-
unlockMinutes,
|
|
39
|
-
onContactSupport,
|
|
40
|
-
onBackToLogin,
|
|
41
|
-
title,
|
|
42
|
-
description
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] }) });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export { AccountLockedPageKit };
|
|
11
|
+
import '../../chunk-QYZT24TS.js';
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
export { AgentsChatPageKit } from '../../chunk-UR43ANYS.js';
|
|
2
|
+
import '../../chunk-ZKLB5N3Q.js';
|
|
3
|
+
import '../../chunk-4IGBBIYW.js';
|
|
4
|
+
import '../../chunk-4WPZ6T7V.js';
|
|
4
5
|
import '../../chunk-MDAYDDTC.js';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
6
|
+
import '../../chunk-N53OMWW2.js';
|
|
7
|
+
import '../../chunk-4OBE2FS2.js';
|
|
7
8
|
import '../../chunk-OSNTB6RY.js';
|
|
8
9
|
import '../../chunk-J2DCQDXO.js';
|
|
9
10
|
import '../../chunk-C4SNHMYC.js';
|
|
10
11
|
import '../../chunk-B5QL76GA.js';
|
|
11
12
|
import '../../chunk-HOWTYZL5.js';
|
|
12
13
|
import '../../chunk-GLU236NN.js';
|
|
13
|
-
import
|
|
14
|
+
import '../../chunk-WI547C47.js';
|
|
14
15
|
import '../../chunk-CUZJIDU7.js';
|
|
15
16
|
import '../../chunk-AP3XXYAY.js';
|
|
16
17
|
import '../../chunk-LIBXYD5Q.js';
|
|
17
18
|
import '../../chunk-RASEB2XI.js';
|
|
18
19
|
import '../../chunk-MJ4CB6ZL.js';
|
|
19
20
|
import '../../chunk-35EX5FP5.js';
|
|
20
|
-
import
|
|
21
|
+
import '../../chunk-AH6YSYYT.js';
|
|
21
22
|
import '../../chunk-NAAU5IWU.js';
|
|
22
|
-
import
|
|
23
|
+
import '../../chunk-7KIDDF3I.js';
|
|
23
24
|
import '../../chunk-6FOHUNXR.js';
|
|
24
25
|
import '../../chunk-PD2YEH3H.js';
|
|
25
26
|
import '../../chunk-CRY67BIF.js';
|
|
@@ -134,157 +135,8 @@ import '../../chunk-UHXGBV5N.js';
|
|
|
134
135
|
import '../../chunk-UIUMTURU.js';
|
|
135
136
|
import '../../chunk-PRUXIDBD.js';
|
|
136
137
|
import '../../chunk-NURPUVUV.js';
|
|
137
|
-
import
|
|
138
|
+
import '../../chunk-S4JAHKOP.js';
|
|
138
139
|
import '../../chunk-TV4RSQH4.js';
|
|
139
140
|
import '../../chunk-HJBXUXTD.js';
|
|
140
141
|
import '../../chunk-ASKFAYYR.js';
|
|
141
|
-
import
|
|
142
|
-
import React from 'react';
|
|
143
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
144
|
-
|
|
145
|
-
var EMPTY_MESSAGES = [];
|
|
146
|
-
var EMPTY_TOOL_CALLS = [];
|
|
147
|
-
var EMPTY_ARTIFACTS = [];
|
|
148
|
-
var EMPTY_TRACE_EVENTS = [];
|
|
149
|
-
function stateLabel(state) {
|
|
150
|
-
switch (state) {
|
|
151
|
-
case "empty":
|
|
152
|
-
return "Empty";
|
|
153
|
-
case "loading":
|
|
154
|
-
return "Loading";
|
|
155
|
-
case "thinking":
|
|
156
|
-
return "Thinking";
|
|
157
|
-
case "blocked-approval":
|
|
158
|
-
return "Blocked on approval";
|
|
159
|
-
case "failed":
|
|
160
|
-
return "Failed";
|
|
161
|
-
case "running":
|
|
162
|
-
return "Running";
|
|
163
|
-
case "complete":
|
|
164
|
-
return "Complete";
|
|
165
|
-
default:
|
|
166
|
-
return "Running";
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
function placeholderContent(state) {
|
|
170
|
-
switch (state) {
|
|
171
|
-
case "empty":
|
|
172
|
-
return "No messages yet. Start the run from the composer.";
|
|
173
|
-
case "loading":
|
|
174
|
-
return "Loading run context...";
|
|
175
|
-
case "thinking":
|
|
176
|
-
return "Agent is thinking through the next step.";
|
|
177
|
-
default:
|
|
178
|
-
return "Waiting for conversation updates.";
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
function AgentsChatPageKit({
|
|
182
|
-
shell,
|
|
183
|
-
state = "running",
|
|
184
|
-
messages = EMPTY_MESSAGES,
|
|
185
|
-
toolCalls = EMPTY_TOOL_CALLS,
|
|
186
|
-
artifacts = EMPTY_ARTIFACTS,
|
|
187
|
-
traceEvents = EMPTY_TRACE_EVENTS,
|
|
188
|
-
approval,
|
|
189
|
-
composer,
|
|
190
|
-
errorMessage,
|
|
191
|
-
className
|
|
192
|
-
}) {
|
|
193
|
-
const [draft, setDraft] = React.useState(composer?.value ?? "");
|
|
194
|
-
const composerValue = composer?.value ?? draft;
|
|
195
|
-
const composerPlaceholder = composer?.placeholder ?? "Type a message to the active run...";
|
|
196
|
-
const composerDisabled = composer?.disabled ?? false;
|
|
197
|
-
function handleComposerChange(value) {
|
|
198
|
-
if (composer?.value == null) {
|
|
199
|
-
setDraft(value);
|
|
200
|
-
}
|
|
201
|
-
composer?.onChange?.(value);
|
|
202
|
-
}
|
|
203
|
-
function handleComposerSend() {
|
|
204
|
-
const payload = composerValue.trim();
|
|
205
|
-
if (!payload || composerDisabled) {
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
composer?.onSend?.(payload);
|
|
209
|
-
if (composer?.value == null) {
|
|
210
|
-
setDraft("");
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
const conversationMessages = messages.length > 0 ? messages : [{
|
|
214
|
-
id: "state-placeholder",
|
|
215
|
-
role: "system",
|
|
216
|
-
content: placeholderContent(state)
|
|
217
|
-
}];
|
|
218
|
-
return /* @__PURE__ */ jsx(NavigationShellPageKit, { ...shell, children: /* @__PURE__ */ jsxs("section", { className: cn("space-y-6", className), children: [
|
|
219
|
-
/* @__PURE__ */ jsxs("header", { className: "space-y-2", children: [
|
|
220
|
-
/* @__PURE__ */ jsx(Heading, { level: 3, children: "Agents chat" }),
|
|
221
|
-
/* @__PURE__ */ jsx(Typography, { variant: "muted", children: "Conversation-driven agent workflow surface with explicit tooling and traceability layers." }),
|
|
222
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ jsx(Badge, { variant: state === "failed" ? "destructive" : "outline", children: stateLabel(state) }) })
|
|
223
|
-
] }),
|
|
224
|
-
state === "failed" ? /* @__PURE__ */ jsx("div", { role: "alert", className: "rounded-md border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive", children: errorMessage ?? "The run failed. Inspect tooling and traceability details before retrying." }) : null,
|
|
225
|
-
state === "blocked-approval" && approval ? /* @__PURE__ */ jsxs(Card, { children: [
|
|
226
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Approval required" }) }),
|
|
227
|
-
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-3", children: [
|
|
228
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", children: approval.pendingReason }),
|
|
229
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
230
|
-
/* @__PURE__ */ jsx(Button, { type: "button", onClick: approval.onApprove, children: "Approve run" }),
|
|
231
|
-
/* @__PURE__ */ jsx(Button, { type: "button", variant: "outline", onClick: approval.onReject, children: "Reject run" })
|
|
232
|
-
] })
|
|
233
|
-
] })
|
|
234
|
-
] }) : null,
|
|
235
|
-
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 xl:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)]", children: [
|
|
236
|
-
/* @__PURE__ */ jsxs(Card, { children: [
|
|
237
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Conversation" }) }),
|
|
238
|
-
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
|
|
239
|
-
/* @__PURE__ */ jsx(AgentConversationBlock, { messages: conversationMessages }),
|
|
240
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
241
|
-
/* @__PURE__ */ jsx("label", { htmlFor: "agents-chat-composer", className: "text-sm font-medium text-text-primary", children: "Message composer" }),
|
|
242
|
-
/* @__PURE__ */ jsx(
|
|
243
|
-
Textarea,
|
|
244
|
-
{
|
|
245
|
-
id: "agents-chat-composer",
|
|
246
|
-
value: composerValue,
|
|
247
|
-
disabled: composerDisabled,
|
|
248
|
-
placeholder: composerPlaceholder,
|
|
249
|
-
onChange: (event) => handleComposerChange(event.target.value)
|
|
250
|
-
}
|
|
251
|
-
),
|
|
252
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(Button, { type: "button", onClick: handleComposerSend, disabled: composerDisabled || composerValue.trim().length === 0, children: "Send message" }) })
|
|
253
|
-
] })
|
|
254
|
-
] })
|
|
255
|
-
] }),
|
|
256
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
257
|
-
/* @__PURE__ */ jsxs(Card, { children: [
|
|
258
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Tooling" }) }),
|
|
259
|
-
/* @__PURE__ */ jsx(CardContent, { className: "space-y-3", children: toolCalls.length === 0 ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-text-secondary", children: "No tool calls yet." }) : toolCalls.map((toolCall) => /* @__PURE__ */ jsx(
|
|
260
|
-
ToolCallCard,
|
|
261
|
-
{
|
|
262
|
-
toolName: toolCall.toolName,
|
|
263
|
-
status: toolCall.status,
|
|
264
|
-
result: toolCall.result,
|
|
265
|
-
duration: toolCall.durationMs
|
|
266
|
-
},
|
|
267
|
-
toolCall.id
|
|
268
|
-
)) })
|
|
269
|
-
] }),
|
|
270
|
-
/* @__PURE__ */ jsxs(Card, { children: [
|
|
271
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Traceability" }) }),
|
|
272
|
-
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-3", children: [
|
|
273
|
-
artifacts.length === 0 && traceEvents.length === 0 ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-text-secondary", children: "No artifacts or trace events recorded yet." }) : null,
|
|
274
|
-
artifacts.map((artifact) => /* @__PURE__ */ jsxs("div", { className: "rounded-md border border-border/70 p-3", children: [
|
|
275
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "font-medium text-text-primary", children: artifact.title }),
|
|
276
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-text-tertiary uppercase tracking-wide", children: artifact.kind }),
|
|
277
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-text-secondary", children: artifact.summary })
|
|
278
|
-
] }, artifact.id)),
|
|
279
|
-
traceEvents.map((event) => /* @__PURE__ */ jsxs("div", { className: "rounded-md border border-border/70 p-3", children: [
|
|
280
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "font-medium text-text-primary", children: event.label }),
|
|
281
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-text-secondary", children: event.detail })
|
|
282
|
-
] }, event.id))
|
|
283
|
-
] })
|
|
284
|
-
] })
|
|
285
|
-
] })
|
|
286
|
-
] })
|
|
287
|
-
] }) });
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
export { AgentsChatPageKit };
|
|
142
|
+
import '../../chunk-QYZT24TS.js';
|