@tangle-network/sandbox-ui 0.6.1 → 0.8.4

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 (67) hide show
  1. package/dist/auth.d.ts +10 -6
  2. package/dist/auth.js +3 -3
  3. package/dist/{chat-container-Cg-GwyiK.d.ts → chat-container-f4yEs6KN.d.ts} +9 -1
  4. package/dist/chat.d.ts +12 -2
  5. package/dist/chat.js +10 -10
  6. package/dist/{chunk-TSE423UF.js → chunk-2QZ6G7NM.js} +6 -6
  7. package/dist/{chunk-WBQ7VULC.js → chunk-34A66VBG.js} +7 -7
  8. package/dist/{chunk-JP725R4W.js → chunk-34I7UFSX.js} +2 -2
  9. package/dist/{chunk-YS66Q3RC.js → chunk-3CJ2SOEI.js} +2 -2
  10. package/dist/{chunk-CNWVHQFY.js → chunk-54SQQMMM.js} +6 -24
  11. package/dist/{chunk-DLCFZDGX.js → chunk-5UM2XMEJ.js} +39 -14
  12. package/dist/{chunk-YYGECNZZ.js → chunk-66EZOYZR.js} +3 -3
  13. package/dist/chunk-7U2Z23NE.js +49 -0
  14. package/dist/{chunk-RKXIRRKQ.js → chunk-BUOQTBTO.js} +70 -66
  15. package/dist/{chunk-DCPYTL4W.js → chunk-D4CZWJCD.js} +72 -148
  16. package/dist/{chunk-MXRQ4MJE.js → chunk-DXMIEK4K.js} +34 -23
  17. package/dist/{chunk-ZMWWE5RF.js → chunk-EXSOPXIY.js} +141 -123
  18. package/dist/{chunk-GW4GRAWJ.js → chunk-GSZA3TSY.js} +18 -12
  19. package/dist/{chunk-W4LM3QYZ.js → chunk-HB5Y37YU.js} +8 -8
  20. package/dist/{chunk-E2XT3G52.js → chunk-HFMAXUHV.js} +136 -137
  21. package/dist/{chunk-BRBTD7RH.js → chunk-MA7YKRUP.js} +28 -18
  22. package/dist/{chunk-MJUDMVRU.js → chunk-MT5FJ3ZT.js} +17 -17
  23. package/dist/chunk-OKLQVY3Y.js +139 -0
  24. package/dist/{chunk-KH5UDAJ2.js → chunk-QDH5GEGY.js} +58 -54
  25. package/dist/{chunk-33W2TLUL.js → chunk-QID2OOMG.js} +12 -3
  26. package/dist/{chunk-FJSVPBKY.js → chunk-S7OXQTST.js} +17 -3
  27. package/dist/chunk-T7HMZEVO.js +216 -0
  28. package/dist/{chunk-FNYJFCGU.js → chunk-U6QTHMY6.js} +145 -256
  29. package/dist/{chunk-565V6JTN.js → chunk-UXQMIR3D.js} +60 -99
  30. package/dist/{chunk-XTPAWK7L.js → chunk-VOUV7GGB.js} +25 -47
  31. package/dist/{chunk-OVNLOE3Y.js → chunk-WXK43R62.js} +41 -41
  32. package/dist/{chunk-6V4XVKFY.js → chunk-XXDFEF72.js} +340 -335
  33. package/dist/{chunk-TDYQBLL5.js → chunk-ZMNSRDMH.js} +6 -6
  34. package/dist/dashboard.d.ts +135 -3
  35. package/dist/dashboard.js +848 -8
  36. package/dist/{document-editor-pane-DWWUTTTZ.js → document-editor-pane-TLPVRBBU.js} +3 -3
  37. package/dist/editor.d.ts +9 -8
  38. package/dist/editor.js +3 -3
  39. package/dist/files.js +3 -3
  40. package/dist/globals.css +5304 -68
  41. package/dist/hooks.d.ts +1 -1
  42. package/dist/hooks.js +7 -7
  43. package/dist/index.d.ts +4 -4
  44. package/dist/index.js +28 -28
  45. package/dist/markdown.js +1 -1
  46. package/dist/openui.js +5 -5
  47. package/dist/pages.d.ts +47 -3
  48. package/dist/pages.js +911 -357
  49. package/dist/primitives.d.ts +5 -2
  50. package/dist/primitives.js +10 -10
  51. package/dist/run.js +4 -4
  52. package/dist/sdk-hooks.d.ts +2 -3
  53. package/dist/sdk-hooks.js +5 -5
  54. package/dist/styles.css +5304 -68
  55. package/dist/template-card-BAtvcAkU.d.ts +18 -0
  56. package/dist/terminal.d.ts +3 -1
  57. package/dist/terminal.js +66 -32
  58. package/dist/tokens.css +701 -40
  59. package/dist/{usage-chart-XCoB_7Xu.d.ts → usage-chart-SSiOgeQI.d.ts} +3 -1
  60. package/dist/{use-pty-session-COzVkhtc.d.ts → use-pty-session-0AOuwXgq.d.ts} +2 -0
  61. package/dist/{index-BT_-ecpc.d.ts → variant-list-C8wx2TqF.d.ts} +17 -8
  62. package/dist/workspace.d.ts +1 -1
  63. package/dist/workspace.js +13 -13
  64. package/package.json +3 -1
  65. package/tailwind.config.cjs +3 -2
  66. package/dist/chunk-3HW53XTH.js +0 -228
  67. package/dist/chunk-OKCIKTXQ.js +0 -63
@@ -1,18 +1,17 @@
1
1
  import {
2
2
  Progress
3
- } from "./chunk-YYGECNZZ.js";
3
+ } from "./chunk-66EZOYZR.js";
4
4
  import {
5
5
  Badge,
6
6
  Card,
7
7
  CardContent,
8
8
  CardDescription,
9
- CardFooter,
10
9
  CardHeader,
11
10
  CardTitle
12
- } from "./chunk-TDYQBLL5.js";
11
+ } from "./chunk-ZMNSRDMH.js";
13
12
  import {
14
13
  Button
15
- } from "./chunk-TSE423UF.js";
14
+ } from "./chunk-2QZ6G7NM.js";
16
15
  import {
17
16
  cn
18
17
  } from "./chunk-RQHJBTEU.js";
@@ -253,44 +252,10 @@ function BillingDashboard({
253
252
  }
254
253
 
255
254
  // src/dashboard/pricing-page.tsx
255
+ import { Check, Zap } from "lucide-react";
256
256
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
257
- var variantColors2 = {
258
- sandbox: {
259
- accent: "text-[var(--accent-text)]",
260
- border: "border-[var(--border-accent)]",
261
- bg: "bg-[var(--accent-surface-soft)]",
262
- ring: "ring-[hsl(var(--primary)/0.35)]"
263
- }
264
- };
265
257
  function formatPrice(cents) {
266
- return (cents / 100).toLocaleString("en-US", {
267
- style: "currency",
268
- currency: "USD",
269
- minimumFractionDigits: 0,
270
- maximumFractionDigits: 0
271
- });
272
- }
273
- function CheckIcon({ className }) {
274
- return /* @__PURE__ */ jsxs2(
275
- "svg",
276
- {
277
- xmlns: "http://www.w3.org/2000/svg",
278
- viewBox: "0 0 20 20",
279
- fill: "currentColor",
280
- className: cn("h-5 w-5", className),
281
- children: [
282
- /* @__PURE__ */ jsx2("title", { children: "Check icon" }),
283
- /* @__PURE__ */ jsx2(
284
- "path",
285
- {
286
- fillRule: "evenodd",
287
- d: "M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",
288
- clipRule: "evenodd"
289
- }
290
- )
291
- ]
292
- }
293
- );
258
+ return `$${Math.round(cents / 100)}`;
294
259
  }
295
260
  function PricingPage({
296
261
  tiers,
@@ -298,22 +263,23 @@ function PricingPage({
298
263
  billingPeriod,
299
264
  onBillingPeriodChange,
300
265
  onSelectTier,
301
- variant = "sandbox",
302
266
  loading = false,
303
- className,
304
- cardClassName
267
+ className
305
268
  }) {
306
- const colors2 = variantColors2[variant];
307
- return /* @__PURE__ */ jsxs2("div", { className: cn("w-full space-y-8", className), children: [
308
- /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-center gap-4", children: [
269
+ const tiersWithRecommended = tiers.map((tier, i) => ({
270
+ ...tier,
271
+ recommended: tier.recommended ?? (tiers.length === 3 && i === 1)
272
+ }));
273
+ return /* @__PURE__ */ jsxs2("div", { className: cn("w-full space-y-10", className), children: [
274
+ /* @__PURE__ */ jsx2("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxs2("div", { className: "inline-flex items-center rounded-full border border-border bg-muted/50 p-1", children: [
309
275
  /* @__PURE__ */ jsx2(
310
276
  "button",
311
277
  {
312
278
  type: "button",
313
279
  onClick: () => onBillingPeriodChange("monthly"),
314
280
  className: cn(
315
- "rounded-lg px-4 py-2 font-medium text-sm transition-all",
316
- billingPeriod === "monthly" ? cn("bg-muted text-foreground", colors2.ring, "ring-2") : "text-muted-foreground hover:text-foreground"
281
+ "rounded-full px-5 py-2 text-sm font-medium transition-all",
282
+ billingPeriod === "monthly" ? "bg-card text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
317
283
  ),
318
284
  children: "Monthly"
319
285
  }
@@ -324,77 +290,72 @@ function PricingPage({
324
290
  type: "button",
325
291
  onClick: () => onBillingPeriodChange("yearly"),
326
292
  className: cn(
327
- "rounded-lg px-4 py-2 font-medium text-sm transition-all",
328
- billingPeriod === "yearly" ? cn("bg-muted text-foreground", colors2.ring, "ring-2") : "text-muted-foreground hover:text-foreground"
293
+ "rounded-full px-5 py-2 text-sm font-medium transition-all",
294
+ billingPeriod === "yearly" ? "bg-card text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
329
295
  ),
330
296
  children: [
331
297
  "Yearly",
332
- /* @__PURE__ */ jsx2("span", { className: cn("ml-2 text-xs", colors2.accent), children: "Save 20%" })
298
+ /* @__PURE__ */ jsx2("span", { className: "ml-2 rounded-full bg-[var(--surface-success-bg)] px-2 py-0.5 text-[10px] font-bold text-[var(--surface-success-text)]", children: "Save 20%" })
333
299
  ]
334
300
  }
335
301
  )
336
- ] }),
337
- /* @__PURE__ */ jsx2("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3", children: tiers.map((tier) => {
302
+ ] }) }),
303
+ /* @__PURE__ */ jsx2("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-3 items-start", children: tiersWithRecommended.map((tier) => {
338
304
  const isCurrentTier = tier.id === currentTierId;
305
+ const isRecommended = tier.recommended;
306
+ const isFree = tier.monthlyPriceCents === 0;
339
307
  const price = billingPeriod === "yearly" && tier.yearlyPriceCents !== void 0 ? tier.yearlyPriceCents : tier.monthlyPriceCents;
340
308
  const displayPrice = billingPeriod === "yearly" ? Math.round(price / 12) : price;
341
309
  return /* @__PURE__ */ jsxs2(
342
- Card,
310
+ "div",
343
311
  {
344
- variant,
345
312
  className: cn(
346
- "relative flex flex-col",
347
- cardClassName,
348
- tier.recommended && cn(colors2.border, "border-2 ring-2", colors2.ring),
349
- isCurrentTier && "ring-2 ring-offset-2 ring-offset-background",
350
- isCurrentTier && colors2.ring
313
+ "relative flex flex-col rounded-2xl border transition-all",
314
+ isRecommended ? "border-primary shadow-[var(--shadow-glow)] scale-[1.02] z-10" : "border-border hover:border-primary/30"
351
315
  ),
352
316
  children: [
353
- tier.recommended && /* @__PURE__ */ jsx2("div", { className: "absolute -top-3 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ jsx2(Badge, { variant, children: "Recommended" }) }),
354
- isCurrentTier && /* @__PURE__ */ jsx2("div", { className: "absolute -top-3 right-4", children: /* @__PURE__ */ jsx2(Badge, { variant: "secondary", children: "Current Plan" }) }),
355
- /* @__PURE__ */ jsxs2(CardHeader, { className: "text-center", children: [
356
- /* @__PURE__ */ jsx2(CardTitle, { className: "text-xl", children: tier.name }),
357
- /* @__PURE__ */ jsx2(CardDescription, { children: tier.description })
358
- ] }),
359
- /* @__PURE__ */ jsxs2(CardContent, { className: "flex-1 space-y-6", children: [
360
- /* @__PURE__ */ jsxs2("div", { className: "text-center", children: [
361
- /* @__PURE__ */ jsxs2("div", { className: "flex items-baseline justify-center gap-1", children: [
362
- /* @__PURE__ */ jsx2("span", { className: cn("font-bold text-4xl", colors2.accent), children: formatPrice(displayPrice) }),
363
- /* @__PURE__ */ jsx2("span", { className: "text-muted-foreground", children: "/mo" })
317
+ isRecommended && /* @__PURE__ */ jsx2("div", { className: "absolute -top-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ jsxs2("span", { className: "inline-flex items-center gap-1.5 rounded-full bg-primary px-4 py-1.5 text-xs font-bold text-primary-foreground shadow-sm", children: [
318
+ /* @__PURE__ */ jsx2(Zap, { className: "h-3 w-3" }),
319
+ "Most Popular"
320
+ ] }) }),
321
+ isCurrentTier && !isRecommended && /* @__PURE__ */ jsx2("div", { className: "absolute -top-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ jsx2("span", { className: "inline-flex items-center rounded-full bg-muted border border-border px-4 py-1.5 text-xs font-bold text-foreground", children: "Current Plan" }) }),
322
+ /* @__PURE__ */ jsxs2("div", { className: cn("flex flex-col p-8", isRecommended && "pt-10"), children: [
323
+ /* @__PURE__ */ jsxs2("div", { className: "mb-6", children: [
324
+ /* @__PURE__ */ jsx2("h3", { className: "text-lg font-bold text-foreground", children: tier.name }),
325
+ /* @__PURE__ */ jsx2("p", { className: "mt-1 text-sm text-muted-foreground", children: tier.description })
326
+ ] }),
327
+ /* @__PURE__ */ jsxs2("div", { className: "mb-8", children: [
328
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-baseline gap-1", children: [
329
+ /* @__PURE__ */ jsx2("span", { className: cn("text-5xl font-extrabold tracking-tight", isRecommended ? "text-primary" : "text-foreground"), children: isFree ? "Free" : formatPrice(displayPrice) }),
330
+ !isFree && /* @__PURE__ */ jsx2("span", { className: "text-muted-foreground text-sm font-medium", children: "/mo" })
364
331
  ] }),
365
- billingPeriod === "yearly" && tier.yearlyPriceCents !== void 0 && /* @__PURE__ */ jsxs2("p", { className: "mt-1 text-muted-foreground text-sm", children: [
332
+ billingPeriod === "yearly" && tier.yearlyPriceCents !== void 0 && !isFree && /* @__PURE__ */ jsxs2("p", { className: "mt-1 text-xs text-muted-foreground", children: [
366
333
  formatPrice(tier.yearlyPriceCents),
367
334
  " billed annually"
368
335
  ] })
369
336
  ] }),
370
- tier.creditsPerMonth !== void 0 && /* @__PURE__ */ jsxs2("div", { className: cn("rounded-lg p-3 text-center", colors2.bg), children: [
371
- /* @__PURE__ */ jsx2("span", { className: cn("font-semibold", colors2.accent), children: tier.creditsPerMonth.toLocaleString() }),
372
- /* @__PURE__ */ jsxs2("span", { className: "text-muted-foreground text-sm", children: [
373
- " ",
374
- "credits/month"
375
- ] })
376
- ] }),
377
- /* @__PURE__ */ jsx2("ul", { className: "space-y-3", children: tier.features.map((feature) => /* @__PURE__ */ jsxs2("li", { className: "flex items-start gap-3", children: [
378
- /* @__PURE__ */ jsx2(
379
- CheckIcon,
380
- {
381
- className: cn("mt-0.5 shrink-0", colors2.accent)
382
- }
383
- ),
384
- /* @__PURE__ */ jsx2("span", { className: "text-muted-foreground text-sm", children: feature })
337
+ /* @__PURE__ */ jsx2(
338
+ "button",
339
+ {
340
+ type: "button",
341
+ onClick: () => onSelectTier(tier.id),
342
+ disabled: isCurrentTier || loading,
343
+ className: cn(
344
+ "w-full rounded-xl py-3 text-sm font-bold transition-all active:scale-[0.98] disabled:opacity-50",
345
+ isRecommended ? "bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm" : isCurrentTier ? "bg-muted text-muted-foreground border border-border cursor-default" : "bg-card text-foreground border border-border hover:border-primary/50 hover:bg-muted"
346
+ ),
347
+ children: isCurrentTier ? "Current Plan" : isFree ? "Get Started" : "Subscribe"
348
+ }
349
+ ),
350
+ /* @__PURE__ */ jsx2("div", { className: "my-8 border-t border-border" }),
351
+ /* @__PURE__ */ jsx2("ul", { className: "space-y-3.5 flex-1", children: tier.features.map((feature) => /* @__PURE__ */ jsxs2("li", { className: "flex items-start gap-3", children: [
352
+ /* @__PURE__ */ jsx2("div", { className: cn(
353
+ "mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full",
354
+ isRecommended ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
355
+ ), children: /* @__PURE__ */ jsx2(Check, { className: "h-3 w-3" }) }),
356
+ /* @__PURE__ */ jsx2("span", { className: "text-sm text-foreground/80", children: feature })
385
357
  ] }, feature)) })
386
- ] }),
387
- /* @__PURE__ */ jsx2(CardFooter, { children: /* @__PURE__ */ jsx2(
388
- Button,
389
- {
390
- variant: isCurrentTier ? "outline" : variant,
391
- className: "w-full",
392
- disabled: isCurrentTier || loading,
393
- loading,
394
- onClick: () => onSelectTier(tier.id),
395
- children: isCurrentTier ? "Current Plan" : currentTierId ? "Upgrade" : "Subscribe"
396
- }
397
- ) })
358
+ ] })
398
359
  ]
399
360
  },
400
361
  tier.id
@@ -8,10 +8,10 @@ import {
8
8
  DropdownMenuLabel,
9
9
  DropdownMenuSeparator,
10
10
  DropdownMenuTrigger
11
- } from "./chunk-WBQ7VULC.js";
11
+ } from "./chunk-34A66VBG.js";
12
12
  import {
13
13
  Button
14
- } from "./chunk-TSE423UF.js";
14
+ } from "./chunk-2QZ6G7NM.js";
15
15
  import {
16
16
  cn
17
17
  } from "./chunk-RQHJBTEU.js";
@@ -165,57 +165,35 @@ function AuthHeader({
165
165
  }
166
166
 
167
167
  // src/auth/login-layout.tsx
168
- import { BookOpen, HelpCircle, Terminal } from "lucide-react";
169
- import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
168
+ import { Terminal } from "lucide-react";
169
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
170
170
  function LoginLayout({
171
- brandName = "Tangle Sandbox",
172
- tagline,
173
- subtitle = "Step into the next generation of sandboxed cloud infrastructure. Precise, ethereal, and designed for high-performance development.",
174
- terminalLines = [
175
- "Initializing secure environment...",
176
- "DONE Encrypted bridge established.",
177
- "Awaiting user authentication..."
178
- ],
179
- footerLinks = [
180
- { label: "Documentation", href: "/docs" },
181
- { label: "Support", href: "/support" }
182
- ],
171
+ title = "Welcome Back",
172
+ subtitle = "Sign in to your workspace.",
173
+ brandIcon,
183
174
  children,
184
175
  className
185
176
  }) {
186
- return /* @__PURE__ */ jsxs2("div", { className: cn("bg-[var(--depth-1)] text-[var(--text-primary)] font-sans overflow-hidden", className), children: [
187
- /* @__PURE__ */ jsx2("div", { className: "fixed inset-0 z-0 overflow-hidden pointer-events-none", children: /* @__PURE__ */ jsx2("div", { className: "absolute inset-0 opacity-[0.04]", style: { backgroundImage: "radial-gradient(var(--brand-cool) 1px, transparent 1px)", backgroundSize: "40px 40px" } }) }),
188
- /* @__PURE__ */ jsxs2("main", { className: "relative z-10 flex flex-col md:flex-row h-screen", children: [
189
- /* @__PURE__ */ jsxs2("section", { className: "hidden md:flex flex-col justify-between p-12 lg:p-20 w-1/2 h-full", children: [
190
- /* @__PURE__ */ jsx2("div", { className: "space-y-4", children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-3", children: [
191
- /* @__PURE__ */ jsx2("div", { className: "w-10 h-10 bg-[var(--accent-surface-soft)] border border-[var(--border-accent)] rounded-lg flex items-center justify-center", children: /* @__PURE__ */ jsx2(Terminal, { className: "h-5 w-5 text-[var(--brand-cool)]" }) }),
192
- /* @__PURE__ */ jsx2("span", { className: "text-2xl font-extrabold tracking-tighter text-[var(--text-primary)]", children: brandName })
193
- ] }) }),
194
- /* @__PURE__ */ jsxs2("div", { className: "max-w-lg space-y-6", children: [
195
- tagline ? /* @__PURE__ */ jsx2("div", { className: "text-5xl lg:text-7xl font-bold tracking-tight leading-none text-[var(--text-primary)]", children: tagline }) : /* @__PURE__ */ jsxs2("h1", { className: "text-5xl lg:text-7xl font-bold tracking-tight leading-none", children: [
196
- "Orchestrate ",
197
- /* @__PURE__ */ jsx2("br", {}),
198
- /* @__PURE__ */ jsx2("span", { className: "text-[var(--brand-cool)]", children: "Agents" }),
199
- " in Flow."
200
- ] }),
201
- /* @__PURE__ */ jsx2("p", { className: "text-[var(--text-muted)] text-lg leading-relaxed font-light", children: subtitle }),
202
- /* @__PURE__ */ jsxs2("div", { className: "mt-12 bg-[var(--depth-2)] rounded-xl border border-[var(--border-subtle)] overflow-hidden", children: [
203
- /* @__PURE__ */ jsx2("div", { className: "bg-[var(--depth-1)] border-b border-[var(--border-subtle)] px-4 py-2 flex items-center gap-2", children: /* @__PURE__ */ jsx2("span", { className: "font-mono text-xs text-[var(--text-muted)]", children: "tangle --init-node" }) }),
204
- /* @__PURE__ */ jsx2("div", { className: "p-6 font-mono text-xs space-y-2", children: terminalLines.map((line, i) => /* @__PURE__ */ jsxs2("div", { className: "flex gap-4", children: [
205
- /* @__PURE__ */ jsx2("span", { className: "text-[var(--brand-cool)] opacity-60", children: String(i + 1).padStart(2, "0") }),
206
- line.startsWith("DONE") ? /* @__PURE__ */ jsxs2(Fragment, { children: [
207
- /* @__PURE__ */ jsx2("span", { className: "text-[var(--code-success)]", children: "DONE" }),
208
- /* @__PURE__ */ jsx2("span", { className: "text-[var(--text-primary)]", children: line.replace("DONE ", "") })
209
- ] }) : /* @__PURE__ */ jsx2("span", { className: "text-[var(--text-secondary)]", children: line })
210
- ] }, i)) })
211
- ] })
177
+ return /* @__PURE__ */ jsxs2("div", { className: cn("relative flex min-h-screen items-center justify-center bg-[var(--md3-background)] overflow-hidden antialiased font-sans flex-col", className), children: [
178
+ /* @__PURE__ */ jsxs2("div", { className: "pointer-events-none absolute inset-0 z-0 overflow-hidden", children: [
179
+ /* @__PURE__ */ jsx2("div", { className: "absolute top-1/4 -right-1/4 h-[800px] w-[800px] rounded-full bg-[var(--md3-primary)] opacity-10 blur-[150px] mix-blend-screen" }),
180
+ /* @__PURE__ */ jsx2("div", { className: "absolute -bottom-1/4 -left-1/4 h-[800px] w-[800px] rounded-full bg-[var(--md3-primary-dim)] opacity-20 blur-[150px] mix-blend-screen" }),
181
+ /* @__PURE__ */ jsx2("div", { className: "absolute left-1/2 top-1/2 h-[600px] w-[600px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-[radial-gradient(circle_at_center,rgba(255,255,255,0.03)_0%,transparent_100%)] blur-[50px]" }),
182
+ /* @__PURE__ */ jsx2("div", { className: "absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTIwIDB2MjBIMFYweiIgZmlsbD0ibm9uZSIvPPHBhdGggZD0iTTE5LjUgMEwxOS41IDIwTTIwIC41TDAgLjVIMjAiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgyNTUsIDI1NSLCAyNTUsIDAuMDMpIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=')] opacity-30", style: { maskImage: "radial-gradient(circle at center, black, transparent)", WebkitMaskImage: "radial-gradient(circle at center, black 40%, transparent 100%)" } })
183
+ ] }),
184
+ /* @__PURE__ */ jsxs2("div", { className: "z-10 w-full max-w-md px-6 animate-in flex flex-col items-center", children: [
185
+ /* @__PURE__ */ jsxs2("div", { className: "mb-10 text-center flex flex-col items-center", children: [
186
+ /* @__PURE__ */ jsxs2("div", { className: "inline-flex h-16 w-16 mb-4 items-center justify-center rounded-2xl glass-panel shadow-[0_0_30px_rgba(173,163,255,0.15)] glow-primary relative", children: [
187
+ /* @__PURE__ */ jsx2("div", { className: "absolute inset-0 bg-[radial-gradient(circle_at_center,rgba(255,255,255,0.1)_0,transparent_100%)] pointer-events-none rounded-2xl" }),
188
+ brandIcon || /* @__PURE__ */ jsx2(Terminal, { className: "h-8 w-8 text-[var(--md3-primary)]" })
212
189
  ] }),
213
- /* @__PURE__ */ jsx2("nav", { className: "flex gap-8 text-sm font-medium text-[var(--text-muted)]", children: footerLinks.map((link) => /* @__PURE__ */ jsxs2("a", { href: link.href, className: "hover:text-[var(--brand-cool)] transition-colors flex items-center gap-2", children: [
214
- link.label === "Documentation" ? /* @__PURE__ */ jsx2(BookOpen, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx2(HelpCircle, { className: "h-4 w-4" }),
215
- link.label
216
- ] }, link.href)) })
190
+ /* @__PURE__ */ jsx2("h1", { className: "text-3xl font-bold tracking-tight text-foreground", children: title }),
191
+ /* @__PURE__ */ jsx2("p", { className: "mt-2 text-[var(--md3-on-surface-variant)]", children: subtitle })
217
192
  ] }),
218
- /* @__PURE__ */ jsx2("section", { className: "w-full md:w-1/2 flex items-center justify-center p-6 lg:p-24 relative", children: /* @__PURE__ */ jsx2("div", { className: "w-full max-w-md bg-[var(--depth-2)] rounded-[2rem] p-8 lg:p-12 shadow-2xl border border-[var(--border-subtle)]", children }) })
193
+ /* @__PURE__ */ jsxs2("div", { className: "w-full glass-panel-heavy p-8 border border-border shadow-sm relative overflow-hidden backdrop-blur-3xl rounded-[32px]", children: [
194
+ /* @__PURE__ */ jsx2("div", { className: "absolute inset-x-0 top-0 h-[1px] bg-gradient-to-r from-transparent via-[var(--md3-primary)] to-transparent opacity-50" }),
195
+ children
196
+ ] })
219
197
  ] })
220
198
  ] });
221
199
  }
@@ -5,11 +5,11 @@ import {
5
5
  TableHead,
6
6
  TableHeader,
7
7
  TableRow
8
- } from "./chunk-JP725R4W.js";
8
+ } from "./chunk-34I7UFSX.js";
9
9
  import {
10
10
  CodeBlock,
11
11
  Markdown
12
- } from "./chunk-3HW53XTH.js";
12
+ } from "./chunk-T7HMZEVO.js";
13
13
  import {
14
14
  Badge,
15
15
  Card,
@@ -17,10 +17,10 @@ import {
17
17
  CardDescription,
18
18
  CardHeader,
19
19
  CardTitle
20
- } from "./chunk-TDYQBLL5.js";
20
+ } from "./chunk-ZMNSRDMH.js";
21
21
  import {
22
22
  Button
23
- } from "./chunk-TSE423UF.js";
23
+ } from "./chunk-2QZ6G7NM.js";
24
24
  import {
25
25
  cn
26
26
  } from "./chunk-RQHJBTEU.js";
@@ -32,7 +32,7 @@ function InlineCode({ className, children, ...props }) {
32
32
  "code",
33
33
  {
34
34
  className: cn(
35
- "rounded border border-[var(--border-subtle)] bg-[var(--depth-2)] px-1.5 py-0.5 font-mono text-[0.85em] text-[var(--code-keyword)]",
35
+ "rounded border border-border bg-card px-1.5 py-0.5 font-mono text-[0.85em] text-[var(--code-keyword)]",
36
36
  className
37
37
  ),
38
38
  ...props,
@@ -64,7 +64,7 @@ var ALIGN_STYLES = {
64
64
  };
65
65
  function formatValue(value) {
66
66
  if (value === null || value === void 0) {
67
- return /* @__PURE__ */ jsx2("span", { className: "text-[var(--text-muted)]", children: "\u2014" });
67
+ return /* @__PURE__ */ jsx2("span", { className: "text-muted-foreground", children: "\u2014" });
68
68
  }
69
69
  if (typeof value === "boolean") {
70
70
  return value ? "Yes" : "No";
@@ -95,12 +95,12 @@ function renderNode(node, onAction) {
95
95
  const level = node.level ?? 2;
96
96
  const HeadingTag = `h${level}`;
97
97
  return /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
98
- node.kicker && /* @__PURE__ */ jsx2("div", { className: "text-[10px] font-semibold uppercase tracking-[0.16em] text-[var(--text-muted)]", children: node.kicker }),
98
+ node.kicker && /* @__PURE__ */ jsx2("div", { className: "text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground", children: node.kicker }),
99
99
  /* @__PURE__ */ jsx2(
100
100
  HeadingTag,
101
101
  {
102
102
  className: cn(
103
- "font-semibold tracking-tight text-[var(--text-primary)]",
103
+ "font-semibold tracking-tight text-foreground",
104
104
  level === 1 && "text-2xl",
105
105
  level === 2 && "text-xl",
106
106
  level === 3 && "text-lg",
@@ -109,7 +109,7 @@ function renderNode(node, onAction) {
109
109
  children: node.text
110
110
  }
111
111
  ),
112
- node.meta && /* @__PURE__ */ jsx2("p", { className: "text-sm text-[var(--text-muted)]", children: node.meta })
112
+ node.meta && /* @__PURE__ */ jsx2("p", { className: "text-sm text-muted-foreground", children: node.meta })
113
113
  ] });
114
114
  }
115
115
  case "text":
@@ -117,12 +117,12 @@ function renderNode(node, onAction) {
117
117
  "p",
118
118
  {
119
119
  className: cn(
120
- "text-sm leading-6 text-[var(--text-secondary)]",
121
- node.tone === "muted" && "text-[var(--text-muted)]",
120
+ "text-sm leading-6 text-foreground",
121
+ node.tone === "muted" && "text-muted-foreground",
122
122
  node.tone === "success" && "text-[var(--surface-success-text)]",
123
123
  node.tone === "warning" && "text-[var(--surface-warning-text)]",
124
124
  node.tone === "error" && "text-[var(--surface-danger-text)]",
125
- node.mono && "font-[var(--font-mono)] text-[13px]"
125
+ node.mono && "font-mono text-[13px]"
126
126
  ),
127
127
  children: node.text
128
128
  }
@@ -130,9 +130,9 @@ function renderNode(node, onAction) {
130
130
  case "badge":
131
131
  return /* @__PURE__ */ jsx2(Badge, { variant: node.tone ?? "outline", children: node.label });
132
132
  case "stat":
133
- return /* @__PURE__ */ jsx2(Card, { variant: "glass", className: "border-[var(--border-subtle)] shadow-[var(--shadow-card)]", children: /* @__PURE__ */ jsxs(CardContent, { className: "space-y-2 p-4", children: [
134
- /* @__PURE__ */ jsx2("div", { className: "text-xs uppercase tracking-[0.12em] text-[var(--text-muted)]", children: node.label }),
135
- /* @__PURE__ */ jsx2("div", { className: "text-2xl font-semibold tracking-tight text-[var(--text-primary)]", children: node.value }),
133
+ return /* @__PURE__ */ jsx2(Card, { variant: "glass", className: "border-border shadow-[var(--shadow-card)]", children: /* @__PURE__ */ jsxs(CardContent, { className: "space-y-2 p-4", children: [
134
+ /* @__PURE__ */ jsx2("div", { className: "text-xs uppercase tracking-[0.12em] text-muted-foreground", children: node.label }),
135
+ /* @__PURE__ */ jsx2("div", { className: "text-2xl font-semibold tracking-tight text-foreground", children: node.value }),
136
136
  node.change && /* @__PURE__ */ jsx2(
137
137
  "div",
138
138
  {
@@ -142,7 +142,7 @@ function renderNode(node, onAction) {
142
142
  node.tone === "warning" && "text-[var(--surface-warning-text)]",
143
143
  node.tone === "error" && "text-[var(--surface-danger-text)]",
144
144
  node.tone === "info" && "text-[var(--surface-info-text)]",
145
- !node.tone || node.tone === "default" ? "text-[var(--text-muted)]" : void 0
145
+ !node.tone || node.tone === "default" ? "text-muted-foreground" : void 0
146
146
  ),
147
147
  children: node.change
148
148
  }
@@ -152,15 +152,15 @@ function renderNode(node, onAction) {
152
152
  return /* @__PURE__ */ jsx2("dl", { className: "grid gap-3 sm:grid-cols-2", children: node.items.map((item, index) => /* @__PURE__ */ jsxs(
153
153
  "div",
154
154
  {
155
- className: "rounded-[var(--radius-lg)] border border-[var(--border-subtle)] bg-[var(--bg-card)] px-4 py-3",
155
+ className: "rounded-[var(--radius-lg)] border border-border bg-card px-4 py-3",
156
156
  children: [
157
- /* @__PURE__ */ jsx2("dt", { className: "text-[11px] uppercase tracking-[0.12em] text-[var(--text-muted)]", children: item.label }),
157
+ /* @__PURE__ */ jsx2("dt", { className: "text-[11px] uppercase tracking-[0.12em] text-muted-foreground", children: item.label }),
158
158
  /* @__PURE__ */ jsx2(
159
159
  "dd",
160
160
  {
161
161
  className: cn(
162
- "mt-1 text-sm font-medium text-[var(--text-primary)]",
163
- item.tone === "muted" && "text-[var(--text-secondary)]"
162
+ "mt-1 text-sm font-medium text-foreground",
163
+ item.tone === "muted" && "text-foreground"
164
164
  ),
165
165
  children: formatValue(item.value)
166
166
  }
@@ -171,38 +171,38 @@ function renderNode(node, onAction) {
171
171
  )) });
172
172
  case "code":
173
173
  return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
174
- node.title && /* @__PURE__ */ jsx2("div", { className: "text-xs uppercase tracking-[0.12em] text-[var(--text-muted)]", children: node.title }),
174
+ node.title && /* @__PURE__ */ jsx2("div", { className: "text-xs uppercase tracking-[0.12em] text-muted-foreground", children: node.title }),
175
175
  /* @__PURE__ */ jsx2(
176
176
  CodeBlock,
177
177
  {
178
178
  code: node.code,
179
179
  language: node.language,
180
180
  showLineNumbers: node.showLineNumbers,
181
- className: "border-[var(--border-subtle)] bg-[var(--bg-input)]"
181
+ className: "border-border bg-background"
182
182
  }
183
183
  )
184
184
  ] });
185
185
  case "markdown":
186
- return /* @__PURE__ */ jsx2("div", { className: "rounded-[var(--radius-lg)] border border-[var(--border-subtle)] bg-[var(--bg-card)] p-5", children: /* @__PURE__ */ jsx2(Markdown, { className: "prose-sm max-w-none", children: node.content }) });
186
+ return /* @__PURE__ */ jsx2("div", { className: "rounded-[var(--radius-lg)] border border-border bg-card p-5", children: /* @__PURE__ */ jsx2(Markdown, { className: "prose-sm max-w-none", children: node.content }) });
187
187
  case "table":
188
- return /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-[var(--radius-lg)] border border-[var(--border-subtle)] bg-[var(--bg-card)]", children: [
188
+ return /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-[var(--radius-lg)] border border-border bg-card", children: [
189
189
  /* @__PURE__ */ jsxs(Table, { children: [
190
- /* @__PURE__ */ jsx2(TableHeader, { children: /* @__PURE__ */ jsx2(TableRow, { className: "border-[var(--border-subtle)]", children: node.columns.map((column) => /* @__PURE__ */ jsx2(
190
+ /* @__PURE__ */ jsx2(TableHeader, { children: /* @__PURE__ */ jsx2(TableRow, { className: "border-border", children: node.columns.map((column) => /* @__PURE__ */ jsx2(
191
191
  TableHead,
192
192
  {
193
193
  className: cn(
194
- "h-10 text-[11px] uppercase tracking-[0.1em] text-[var(--text-muted)]",
194
+ "h-10 text-[11px] uppercase tracking-[0.1em] text-muted-foreground",
195
195
  column.align === "right" && "text-right"
196
196
  ),
197
197
  children: column.header
198
198
  },
199
199
  column.key
200
200
  )) }) }),
201
- /* @__PURE__ */ jsx2(TableBody, { children: node.rows.map((row, rowIndex) => /* @__PURE__ */ jsx2(TableRow, { className: "border-[var(--border-subtle)]", children: node.columns.map((column) => /* @__PURE__ */ jsx2(
201
+ /* @__PURE__ */ jsx2(TableBody, { children: node.rows.map((row, rowIndex) => /* @__PURE__ */ jsx2(TableRow, { className: "border-border", children: node.columns.map((column) => /* @__PURE__ */ jsx2(
202
202
  TableCell,
203
203
  {
204
204
  className: cn(
205
- "py-3 text-sm text-[var(--text-secondary)]",
205
+ "py-3 text-sm text-foreground",
206
206
  column.align === "right" && "text-right tabular-nums"
207
207
  ),
208
208
  children: formatValue(row[column.key])
@@ -210,15 +210,15 @@ function renderNode(node, onAction) {
210
210
  column.key
211
211
  )) }, rowIndex)) })
212
212
  ] }),
213
- node.caption && /* @__PURE__ */ jsx2("div", { className: "border-t border-[var(--border-subtle)] px-4 py-2 text-xs text-[var(--text-muted)]", children: node.caption })
213
+ node.caption && /* @__PURE__ */ jsx2("div", { className: "border-t border-border px-4 py-2 text-xs text-muted-foreground", children: node.caption })
214
214
  ] });
215
215
  case "actions":
216
216
  return renderActions(node.actions, onAction);
217
217
  case "separator":
218
218
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
219
- /* @__PURE__ */ jsx2("div", { className: "h-px flex-1 bg-[var(--border-subtle)]" }),
220
- node.label && /* @__PURE__ */ jsx2("span", { className: "text-[10px] uppercase tracking-[0.14em] text-[var(--text-muted)]", children: node.label }),
221
- /* @__PURE__ */ jsx2("div", { className: "h-px flex-1 bg-[var(--border-subtle)]" })
219
+ /* @__PURE__ */ jsx2("div", { className: "h-px flex-1 bg-border" }),
220
+ node.label && /* @__PURE__ */ jsx2("span", { className: "text-[10px] uppercase tracking-[0.14em] text-muted-foreground", children: node.label }),
221
+ /* @__PURE__ */ jsx2("div", { className: "h-px flex-1 bg-border" })
222
222
  ] });
223
223
  case "stack":
224
224
  return /* @__PURE__ */ jsx2(
@@ -237,13 +237,13 @@ function renderNode(node, onAction) {
237
237
  case "grid":
238
238
  return /* @__PURE__ */ jsx2("div", { className: cn("grid", GRID_STYLES[node.columns ?? 2], GAP_STYLES[node.gap ?? "md"]), children: node.children.map((child, index) => /* @__PURE__ */ jsx2(Fragment, { children: renderNode(child, onAction) }, child.id ?? `${child.type}-${index}`)) });
239
239
  case "card":
240
- return /* @__PURE__ */ jsxs(Card, { variant: "glass", className: "border-[var(--border-subtle)] shadow-[var(--shadow-card)]", children: [
240
+ return /* @__PURE__ */ jsxs(Card, { variant: "glass", className: "border-border shadow-[var(--shadow-card)]", children: [
241
241
  (node.eyebrow || node.title || node.description || node.badge || node.actions) && /* @__PURE__ */ jsxs(CardHeader, { className: "gap-2 p-4 pb-0", children: [
242
242
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
243
243
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 space-y-1", children: [
244
- node.eyebrow && /* @__PURE__ */ jsx2("div", { className: "text-[10px] font-semibold uppercase tracking-[0.16em] text-[var(--text-muted)]", children: node.eyebrow }),
245
- node.title && /* @__PURE__ */ jsx2(CardTitle, { className: "text-base text-[var(--text-primary)]", children: node.title }),
246
- node.description && /* @__PURE__ */ jsx2(CardDescription, { className: "text-[var(--text-muted)]", children: node.description })
244
+ node.eyebrow && /* @__PURE__ */ jsx2("div", { className: "text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground", children: node.eyebrow }),
245
+ node.title && /* @__PURE__ */ jsx2(CardTitle, { className: "text-base text-foreground", children: node.title }),
246
+ node.description && /* @__PURE__ */ jsx2(CardDescription, { className: "text-muted-foreground", children: node.description })
247
247
  ] }),
248
248
  node.badge && /* @__PURE__ */ jsx2(Badge, { variant: node.badge.tone ?? "outline", children: node.badge.label })
249
249
  ] }),
@@ -264,20 +264,20 @@ function OpenUIArtifactRenderer({
264
264
  "div",
265
265
  {
266
266
  className: cn(
267
- "flex h-full min-h-[16rem] items-center justify-center rounded-[var(--radius-xl)] border border-dashed border-[var(--border-subtle)] bg-[var(--bg-card)] p-6 text-center",
267
+ "flex h-full min-h-[16rem] items-center justify-center rounded-[var(--radius-xl)] border border-dashed border-border bg-card p-6 text-center",
268
268
  className
269
269
  ),
270
270
  children: /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
271
- /* @__PURE__ */ jsx2("div", { className: "mx-auto flex h-10 w-10 items-center justify-center rounded-full bg-[var(--bg-elevated)] text-[var(--text-muted)]", children: /* @__PURE__ */ jsx2(Minus, { className: "h-4 w-4" }) }),
272
- /* @__PURE__ */ jsx2("div", { className: "text-sm font-medium text-[var(--text-primary)]", children: "No structured artifact payload" }),
273
- /* @__PURE__ */ jsx2("div", { className: "text-sm text-[var(--text-muted)]", children: "Pass an OpenUI-like schema to render dynamic result panels with sandbox-ui primitives." })
271
+ /* @__PURE__ */ jsx2("div", { className: "mx-auto flex h-10 w-10 items-center justify-center rounded-full bg-muted/50 text-muted-foreground", children: /* @__PURE__ */ jsx2(Minus, { className: "h-4 w-4" }) }),
272
+ /* @__PURE__ */ jsx2("div", { className: "text-sm font-medium text-foreground", children: "No structured artifact payload" }),
273
+ /* @__PURE__ */ jsx2("div", { className: "text-sm text-muted-foreground", children: "Pass an OpenUI-like schema to render dynamic result panels with sandbox-ui primitives." })
274
274
  ] })
275
275
  }
276
276
  );
277
277
  }
278
278
  return /* @__PURE__ */ jsxs("div", { className: cn("space-y-4 p-4", className), children: [
279
279
  nodes.map((node, index) => /* @__PURE__ */ jsx2(Fragment, { children: renderNode(node, onAction) }, node.id ?? `${node.type}-${index}`)),
280
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 rounded-[var(--radius-lg)] border border-[var(--border-subtle)] bg-[var(--bg-card)] px-3 py-2 text-xs text-[var(--text-muted)]", children: [
280
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 rounded-[var(--radius-lg)] border border-border bg-card px-3 py-2 text-xs text-muted-foreground", children: [
281
281
  /* @__PURE__ */ jsx2(ArrowRight, { className: "h-3.5 w-3.5" }),
282
282
  "Structured artifact rendered through sandbox-ui primitives"
283
283
  ] })