sparkecoder 0.1.46 → 0.1.47

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 (87) hide show
  1. package/dist/agent/index.js.map +1 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/server/index.js.map +1 -1
  5. package/package.json +1 -1
  6. package/web/.next/BUILD_ID +1 -1
  7. package/web/.next/standalone/web/.next/BUILD_ID +1 -1
  8. package/web/.next/standalone/web/.next/build-manifest.json +2 -2
  9. package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
  10. package/web/.next/standalone/web/.next/server/app/(main)/session/[id]/page_client-reference-manifest.js +1 -1
  11. package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
  12. package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
  13. package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  14. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  15. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  16. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  17. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  18. package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
  19. package/web/.next/standalone/web/.next/server/app/_not-found.rsc +1 -1
  20. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  21. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  22. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  23. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  24. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  25. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  26. package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
  27. package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +1 -1
  28. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +1 -1
  29. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
  30. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +1 -1
  31. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +1 -1
  32. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +1 -1
  33. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
  34. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +1 -1
  35. package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
  36. package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +1 -1
  37. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +1 -1
  38. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
  39. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +1 -1
  40. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +1 -1
  41. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
  42. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
  43. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +1 -1
  44. package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
  45. package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +1 -1
  46. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +1 -1
  47. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
  48. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +1 -1
  49. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +1 -1
  50. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +1 -1
  51. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
  52. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +1 -1
  53. package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
  54. package/web/.next/standalone/web/.next/server/app/docs.rsc +1 -1
  55. package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +1 -1
  56. package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  57. package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +1 -1
  58. package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
  59. package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  60. package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  61. package/web/.next/standalone/web/.next/server/app/embed/[id]/page_client-reference-manifest.js +1 -1
  62. package/web/.next/standalone/web/.next/server/app/index.html +1 -1
  63. package/web/.next/standalone/web/.next/server/app/index.rsc +1 -1
  64. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +1 -1
  65. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +1 -1
  66. package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +1 -1
  67. package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
  68. package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +1 -1
  69. package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  70. package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__a87e1c27._.js +1 -1
  71. package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
  72. package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
  73. package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
  74. package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
  75. package/web/.next/standalone/web/.next/static/{static/chunks/7e48d04fbd6dd7a6.js → chunks/826a34109ed05598.js} +1 -1
  76. package/web/.next/{static/chunks/7e48d04fbd6dd7a6.js → standalone/web/.next/static/static/chunks/826a34109ed05598.js} +1 -1
  77. package/web/.next/standalone/web/src/components/chat-interface.tsx +21 -8
  78. package/web/.next/{standalone/web/.next/static/chunks/7e48d04fbd6dd7a6.js → static/chunks/826a34109ed05598.js} +1 -1
  79. /package/web/.next/standalone/web/.next/static/{_0-MmiObGsO5iLpf0Qgmw → GLqNSglCVQYpCRXsP7tBp}/_buildManifest.js +0 -0
  80. /package/web/.next/standalone/web/.next/static/{_0-MmiObGsO5iLpf0Qgmw → GLqNSglCVQYpCRXsP7tBp}/_clientMiddlewareManifest.json +0 -0
  81. /package/web/.next/standalone/web/.next/static/{_0-MmiObGsO5iLpf0Qgmw → GLqNSglCVQYpCRXsP7tBp}/_ssgManifest.js +0 -0
  82. /package/web/.next/standalone/web/.next/static/static/{_0-MmiObGsO5iLpf0Qgmw → GLqNSglCVQYpCRXsP7tBp}/_buildManifest.js +0 -0
  83. /package/web/.next/standalone/web/.next/static/static/{_0-MmiObGsO5iLpf0Qgmw → GLqNSglCVQYpCRXsP7tBp}/_clientMiddlewareManifest.json +0 -0
  84. /package/web/.next/standalone/web/.next/static/static/{_0-MmiObGsO5iLpf0Qgmw → GLqNSglCVQYpCRXsP7tBp}/_ssgManifest.js +0 -0
  85. /package/web/.next/static/{_0-MmiObGsO5iLpf0Qgmw → GLqNSglCVQYpCRXsP7tBp}/_buildManifest.js +0 -0
  86. /package/web/.next/static/{_0-MmiObGsO5iLpf0Qgmw → GLqNSglCVQYpCRXsP7tBp}/_clientMiddlewareManifest.json +0 -0
  87. /package/web/.next/static/{_0-MmiObGsO5iLpf0Qgmw → GLqNSglCVQYpCRXsP7tBp}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><!--_0_MmiObGsO5iLpf0Qgmw--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5"/><link rel="preload" href="/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" as="image" imageSrcSet="/_next/image?url=%2Fsparke-coder.png&amp;w=48&amp;q=75 1x, /_next/image?url=%2Fsparke-coder.png&amp;w=96&amp;q=75 2x"/><link rel="stylesheet" href="/_next/static/chunks/2473c16c0c2f6b5f.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/de300ff10b63be85.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/651e187cc15d66de.js"/><script src="/_next/static/chunks/b9ad1584d4e11d12.js" async=""></script><script src="/_next/static/chunks/a14243261b055626.js" async=""></script><script src="/_next/static/chunks/186e0c1b3ff43c9c.js" async=""></script><script src="/_next/static/chunks/862ced58ce21a270.js" async=""></script><script src="/_next/static/chunks/turbopack-597558bb7b6982f6.js" async=""></script><script src="/_next/static/chunks/b31b0765abe0c427.js" async=""></script><script src="/_next/static/chunks/9b5512fb633ef95d.js" async=""></script><script src="/_next/static/chunks/0f1cf11540868e42.js" async=""></script><script src="/_next/static/chunks/96ec96279ada0efe.js" async=""></script><script src="/_next/static/chunks/ea57058fc6ebf4d3.js" async=""></script><script src="/_next/static/chunks/b7d722dab2a7ecc0.js" async=""></script><script src="/_next/static/chunks/81685e5e8be4eac9.js" async=""></script><script src="/_next/static/chunks/8d3efc76109d2efc.js" async=""></script><meta name="next-size-adjust" content=""/><meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"/><meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0a0a0a"/><title>SparkeCoder - AI-Powered Coding Agent</title><meta name="description" content="SparkeCoder is your AI-powered coding assistant. Build, debug, and ship code faster with intelligent automation and natural language programming."/><meta name="author" content="SparkeCoder Team"/><link rel="manifest" href="/manifest.json"/><meta name="keywords" content="AI coding assistant,code automation,AI programming,developer tools,coding agent,SparkeCoder,AI pair programming"/><meta name="creator" content="SparkeCoder"/><meta name="publisher" content="SparkeCoder"/><meta name="robots" content="index, follow"/><meta name="googlebot" content="index, follow, max-video-preview:-1, max-image-preview:large, max-snippet:-1"/><meta name="category" content="technology"/><meta name="format-detection" content="telephone=no"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="SparkeCoder"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta property="og:title" content="SparkeCoder - AI-Powered Coding Agent"/><meta property="og:description" content="Build, debug, and ship code faster with intelligent AI automation and natural language programming."/><meta property="og:site_name" content="SparkeCoder"/><meta property="og:locale" content="en_US"/><meta property="og:image" content="http://localhost:3001/opengraph-image.png?opengraph-image.ce342317.png"/><meta property="og:image:width" content="512"/><meta property="og:image:height" content="512"/><meta property="og:image:type" content="image/png"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="SparkeCoder - AI-Powered Coding Agent"/><meta name="twitter:description" content="Build, debug, and ship code faster with intelligent AI automation and natural language programming."/><meta name="twitter:image" content="http://localhost:3001/twitter-image.png?twitter-image.ce342317.png"/><meta name="twitter:image:width" content="512"/><meta name="twitter:image:height" content="512"/><meta name="twitter:image:type" content="image/png"/><link rel="icon" href="/favicon.ico?favicon.e3cbed1b.ico" sizes="256x256" type="image/x-icon"/><link rel="icon" href="/icon.png?icon.fdefec0f.png" sizes="32x32" type="image/png"/><link rel="apple-touch-icon" href="/apple-icon.png?apple-icon.d6d14cbd.png" sizes="180x180" type="image/png"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased"><div hidden=""><!--$--><!--/$--></div><div data-slot="sidebar-wrapper" style="--sidebar-width:16rem;--sidebar-width-icon:3rem" class="group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full overflow-x-hidden"><div class="group peer text-sidebar-foreground hidden md:block" data-state="expanded" data-collapsible="" data-variant="sidebar" data-side="left" data-slot="sidebar"><div data-slot="sidebar-gap" class="relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear group-data-[collapsible=offcanvas]:w-0 group-data-[side=right]:rotate-180 group-data-[collapsible=icon]:w-(--sidebar-width-icon)"></div><div data-slot="sidebar-container" class="fixed inset-y-0 z-10 h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear hidden md:flex left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l border-r border-border/50"><div data-sidebar="sidebar" data-slot="sidebar-inner" class="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"><div data-slot="sidebar-header" data-sidebar="header" class="flex flex-col gap-2 p-3 space-y-3"><div class="flex items-center gap-3"><div class="relative shrink-0 overflow-hidden rounded-xl size-10 shadow-md ring-1 ring-white/10"><img alt="Sparke" width="40" height="40" decoding="async" data-nimg="1" class="absolute inset-0 size-full object-cover" style="color:transparent" srcSet="/_next/image?url=%2Fsparke-coder.png&amp;w=48&amp;q=75 1x, /_next/image?url=%2Fsparke-coder.png&amp;w=96&amp;q=75 2x" src="/_next/image?url=%2Fsparke-coder.png&amp;w=96&amp;q=75"/><video src="/sparkecode.mp4" muted="" loop="" playsInline="" class="absolute inset-0 size-full object-cover transition-opacity duration-300 opacity-0"></video></div><div class="flex flex-1 items-center justify-between min-w-0"><h1 class="text-lg font-bold text-foreground">SparkECoder</h1><button data-slot="tooltip-trigger" data-variant="ghost" data-size="icon" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium duration-200 disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 shrink-0 [&amp;_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 active:scale-[0.98] hover:text-accent-foreground dark:hover:bg-accent/50 size-7 hover:bg-accent transition-colors" data-state="closed"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-panel-left-close size-4" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path><path d="m16 15-3-3 3-3"></path></svg></button></div></div><button data-slot="button" data-variant="default" data-size="default" class="inline-flex items-center whitespace-nowrap rounded-md text-sm font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 shrink-0 [&amp;_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 active:scale-[0.98] bg-primary text-primary-foreground hover:bg-primary/90 px-4 py-2 has-[&gt;svg]:px-3 w-full justify-center gap-2 h-9"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus size-4" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg>New Agent</button></div><div data-slot="sidebar-content" data-sidebar="content" class="flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden px-2"><div data-slot="sidebar-group" data-sidebar="group" class="relative flex w-full min-w-0 flex-col p-0"><div data-slot="sidebar-group-content" data-sidebar="group-content" class="w-full text-sm"><ul data-slot="sidebar-menu" data-sidebar="menu" class="flex w-full min-w-0 flex-col gap-1"><div class="flex justify-center py-8"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle size-5 animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg></div></ul></div></div></div><div data-slot="sidebar-footer" data-sidebar="footer" class="flex flex-col gap-2 border-t border-border/50 p-3"><div class="flex items-center justify-between"><div class="flex items-center gap-2 text-xs"><div class="flex items-center gap-1.5 text-red-500"><span class="size-1.5 rounded-full bg-current"></span><span>Disconnected</span></div><span class="text-muted-foreground">·</span><span class="text-muted-foreground">0</span></div><button data-slot="tooltip-trigger" data-variant="ghost" data-size="icon" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium duration-200 disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 shrink-0 [&amp;_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 active:scale-[0.98] hover:text-accent-foreground dark:hover:bg-accent/50 size-7 hover:bg-accent transition-colors" type="button" aria-haspopup="dialog" aria-expanded="false" aria-controls="radix-_R_196btb_" data-state="closed"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings size-4" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></button></div></div></div></div></div><main data-slot="sidebar-inset" class="relative w-full flex-1 overflow-x-hidden md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 h-screen flex flex-col bg-background min-w-0"><div class="flex-1 overflow-hidden min-w-0"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex items-center justify-center h-full"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle size-6 animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg></div><!--/$--><!--$--><!--/$--></div></main></div><script src="/_next/static/chunks/651e187cc15d66de.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[760800,[\"/_next/static/chunks/b31b0765abe0c427.js\"],\"ApiInit\"]\n3:I[488287,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"default\"]\n4:I[174895,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"default\"]\n5:I[808719,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"ClientSegmentRoot\"]\n6:I[138134,[\"/_next/static/chunks/b31b0765abe0c427.js\",\"/_next/static/chunks/96ec96279ada0efe.js\",\"/_next/static/chunks/ea57058fc6ebf4d3.js\",\"/_next/static/chunks/b7d722dab2a7ecc0.js\",\"/_next/static/chunks/81685e5e8be4eac9.js\"],\"default\"]\n8:I[683380,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"ClientPageRoot\"]\n9:I[375635,[\"/_next/static/chunks/b31b0765abe0c427.js\",\"/_next/static/chunks/96ec96279ada0efe.js\",\"/_next/static/chunks/ea57058fc6ebf4d3.js\",\"/_next/static/chunks/b7d722dab2a7ecc0.js\",\"/_next/static/chunks/81685e5e8be4eac9.js\",\"/_next/static/chunks/8d3efc76109d2efc.js\"],\"default\"]\nc:I[151858,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"OutletBoundary\"]\nd:\"$Sreact.suspense\"\nf:I[151858,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"ViewportBoundary\"]\n11:I[151858,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"MetadataBoundary\"]\n13:I[552576,[],\"default\"]\n:HL[\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"style\"]\n:HL[\"/_next/static/chunks/de300ff10b63be85.css\",\"style\"]\n:HL[\"/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"_0-MmiObGsO5iLpf0Qgmw\",\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"(main)\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/de300ff10b63be85.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/b31b0765abe0c427.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased\",\"children\":[[\"$\",\"$L2\",null,{}],[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/96ec96279ada0efe.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/ea57058fc6ebf4d3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/b7d722dab2a7ecc0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/81685e5e8be4eac9.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L5\",null,{\"Component\":\"$6\",\"slots\":{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]},\"serverProvidedParams\":{\"params\":{},\"promises\":[\"$@7\"]}}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L8\",null,{\"Component\":\"$9\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\",\"promises\":[\"$@a\",\"$@b\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/8d3efc76109d2efc.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@e\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L11\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L12\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$13\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"7:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\na:{}\nb:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=5\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"media\":\"(prefers-color-scheme: light)\",\"content\":\"#ffffff\"}],[\"$\",\"meta\",\"3\",{\"name\":\"theme-color\",\"media\":\"(prefers-color-scheme: dark)\",\"content\":\"#0a0a0a\"}]]\n"])</script><script>self.__next_f.push([1,"14:I[349310,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"IconMark\"]\ne:null\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"title\",\"0\",{\"children\":\"SparkeCoder - AI-Powered Coding Agent\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"SparkeCoder is your AI-powered coding assistant. Build, debug, and ship code faster with intelligent automation and natural language programming.\"}],[\"$\",\"meta\",\"2\",{\"name\":\"author\",\"content\":\"SparkeCoder Team\"}],[\"$\",\"link\",\"3\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"4\",{\"name\":\"keywords\",\"content\":\"AI coding assistant,code automation,AI programming,developer tools,coding agent,SparkeCoder,AI pair programming\"}],[\"$\",\"meta\",\"5\",{\"name\":\"creator\",\"content\":\"SparkeCoder\"}],[\"$\",\"meta\",\"6\",{\"name\":\"publisher\",\"content\":\"SparkeCoder\"}],[\"$\",\"meta\",\"7\",{\"name\":\"robots\",\"content\":\"index, follow\"}],[\"$\",\"meta\",\"8\",{\"name\":\"googlebot\",\"content\":\"index, follow, max-video-preview:-1, max-image-preview:large, max-snippet:-1\"}],[\"$\",\"meta\",\"9\",{\"name\":\"category\",\"content\":\"technology\"}],[\"$\",\"meta\",\"10\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"11\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"12\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"SparkeCoder\"}],[\"$\",\"meta\",\"13\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:title\",\"content\":\"SparkeCoder - AI-Powered Coding Agent\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:description\",\"content\":\"Build, debug, and ship code faster with intelligent AI automation and natural language programming.\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:site_name\",\"content\":\"SparkeCoder\"}],[\"$\",\"meta\",\"17\",{\"property\":\"og:locale\",\"content\":\"en_US\"}],[\"$\",\"meta\",\"18\",{\"property\":\"og:image\",\"content\":\"http://localhost:3001/opengraph-image.png?opengraph-image.ce342317.png\"}],[\"$\",\"meta\",\"19\",{\"property\":\"og:image:width\",\"content\":\"512\"}],[\"$\",\"meta\",\"20\",{\"property\":\"og:image:height\",\"content\":\"512\"}],[\"$\",\"meta\",\"21\",{\"property\":\"og:image:type\",\"content\":\"image/png\"}],[\"$\",\"meta\",\"22\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"23\",{\"name\":\"twitter:card\",\"content\":\"summary_large_image\"}],[\"$\",\"meta\",\"24\",{\"name\":\"twitter:title\",\"content\":\"SparkeCoder - AI-Powered Coding Agent\"}],[\"$\",\"meta\",\"25\",{\"name\":\"twitter:description\",\"content\":\"Build, debug, and ship code faster with intelligent AI automation and natural language programming.\"}],[\"$\",\"meta\",\"26\",{\"name\":\"twitter:image\",\"content\":\"http://localhost:3001/twitter-image.png?twitter-image.ce342317.png\"}],[\"$\",\"meta\",\"27\",{\"name\":\"twitter:image:width\",\"content\":\"512\"}],[\"$\",\"meta\",\"28\",{\"name\":\"twitter:image:height\",\"content\":\"512\"}],[\"$\",\"meta\",\"29\",{\"name\":\"twitter:image:type\",\"content\":\"image/png\"}],[\"$\",\"link\",\"30\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.e3cbed1b.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"31\",{\"rel\":\"icon\",\"href\":\"/icon.png?icon.fdefec0f.png\",\"sizes\":\"32x32\",\"type\":\"image/png\"}],[\"$\",\"link\",\"32\",{\"rel\":\"apple-touch-icon\",\"href\":\"/apple-icon.png?apple-icon.d6d14cbd.png\",\"sizes\":\"180x180\",\"type\":\"image/png\"}],[\"$\",\"$L14\",\"33\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--GLqNSglCVQYpCRXsP7tBp--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5"/><link rel="preload" href="/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" as="image" imageSrcSet="/_next/image?url=%2Fsparke-coder.png&amp;w=48&amp;q=75 1x, /_next/image?url=%2Fsparke-coder.png&amp;w=96&amp;q=75 2x"/><link rel="stylesheet" href="/_next/static/chunks/2473c16c0c2f6b5f.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/de300ff10b63be85.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/651e187cc15d66de.js"/><script src="/_next/static/chunks/b9ad1584d4e11d12.js" async=""></script><script src="/_next/static/chunks/a14243261b055626.js" async=""></script><script src="/_next/static/chunks/186e0c1b3ff43c9c.js" async=""></script><script src="/_next/static/chunks/862ced58ce21a270.js" async=""></script><script src="/_next/static/chunks/turbopack-597558bb7b6982f6.js" async=""></script><script src="/_next/static/chunks/b31b0765abe0c427.js" async=""></script><script src="/_next/static/chunks/9b5512fb633ef95d.js" async=""></script><script src="/_next/static/chunks/0f1cf11540868e42.js" async=""></script><script src="/_next/static/chunks/96ec96279ada0efe.js" async=""></script><script src="/_next/static/chunks/ea57058fc6ebf4d3.js" async=""></script><script src="/_next/static/chunks/b7d722dab2a7ecc0.js" async=""></script><script src="/_next/static/chunks/81685e5e8be4eac9.js" async=""></script><script src="/_next/static/chunks/8d3efc76109d2efc.js" async=""></script><meta name="next-size-adjust" content=""/><meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"/><meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0a0a0a"/><title>SparkeCoder - AI-Powered Coding Agent</title><meta name="description" content="SparkeCoder is your AI-powered coding assistant. Build, debug, and ship code faster with intelligent automation and natural language programming."/><meta name="author" content="SparkeCoder Team"/><link rel="manifest" href="/manifest.json"/><meta name="keywords" content="AI coding assistant,code automation,AI programming,developer tools,coding agent,SparkeCoder,AI pair programming"/><meta name="creator" content="SparkeCoder"/><meta name="publisher" content="SparkeCoder"/><meta name="robots" content="index, follow"/><meta name="googlebot" content="index, follow, max-video-preview:-1, max-image-preview:large, max-snippet:-1"/><meta name="category" content="technology"/><meta name="format-detection" content="telephone=no"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="SparkeCoder"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta property="og:title" content="SparkeCoder - AI-Powered Coding Agent"/><meta property="og:description" content="Build, debug, and ship code faster with intelligent AI automation and natural language programming."/><meta property="og:site_name" content="SparkeCoder"/><meta property="og:locale" content="en_US"/><meta property="og:image" content="http://localhost:3001/opengraph-image.png?opengraph-image.ce342317.png"/><meta property="og:image:width" content="512"/><meta property="og:image:height" content="512"/><meta property="og:image:type" content="image/png"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="SparkeCoder - AI-Powered Coding Agent"/><meta name="twitter:description" content="Build, debug, and ship code faster with intelligent AI automation and natural language programming."/><meta name="twitter:image" content="http://localhost:3001/twitter-image.png?twitter-image.ce342317.png"/><meta name="twitter:image:width" content="512"/><meta name="twitter:image:height" content="512"/><meta name="twitter:image:type" content="image/png"/><link rel="icon" href="/favicon.ico?favicon.e3cbed1b.ico" sizes="256x256" type="image/x-icon"/><link rel="icon" href="/icon.png?icon.fdefec0f.png" sizes="32x32" type="image/png"/><link rel="apple-touch-icon" href="/apple-icon.png?apple-icon.d6d14cbd.png" sizes="180x180" type="image/png"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased"><div hidden=""><!--$--><!--/$--></div><div data-slot="sidebar-wrapper" style="--sidebar-width:16rem;--sidebar-width-icon:3rem" class="group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full overflow-x-hidden"><div class="group peer text-sidebar-foreground hidden md:block" data-state="expanded" data-collapsible="" data-variant="sidebar" data-side="left" data-slot="sidebar"><div data-slot="sidebar-gap" class="relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear group-data-[collapsible=offcanvas]:w-0 group-data-[side=right]:rotate-180 group-data-[collapsible=icon]:w-(--sidebar-width-icon)"></div><div data-slot="sidebar-container" class="fixed inset-y-0 z-10 h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear hidden md:flex left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l border-r border-border/50"><div data-sidebar="sidebar" data-slot="sidebar-inner" class="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"><div data-slot="sidebar-header" data-sidebar="header" class="flex flex-col gap-2 p-3 space-y-3"><div class="flex items-center gap-3"><div class="relative shrink-0 overflow-hidden rounded-xl size-10 shadow-md ring-1 ring-white/10"><img alt="Sparke" width="40" height="40" decoding="async" data-nimg="1" class="absolute inset-0 size-full object-cover" style="color:transparent" srcSet="/_next/image?url=%2Fsparke-coder.png&amp;w=48&amp;q=75 1x, /_next/image?url=%2Fsparke-coder.png&amp;w=96&amp;q=75 2x" src="/_next/image?url=%2Fsparke-coder.png&amp;w=96&amp;q=75"/><video src="/sparkecode.mp4" muted="" loop="" playsInline="" class="absolute inset-0 size-full object-cover transition-opacity duration-300 opacity-0"></video></div><div class="flex flex-1 items-center justify-between min-w-0"><h1 class="text-lg font-bold text-foreground">SparkECoder</h1><button data-slot="tooltip-trigger" data-variant="ghost" data-size="icon" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium duration-200 disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 shrink-0 [&amp;_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 active:scale-[0.98] hover:text-accent-foreground dark:hover:bg-accent/50 size-7 hover:bg-accent transition-colors" data-state="closed"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-panel-left-close size-4" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path><path d="m16 15-3-3 3-3"></path></svg></button></div></div><button data-slot="button" data-variant="default" data-size="default" class="inline-flex items-center whitespace-nowrap rounded-md text-sm font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 shrink-0 [&amp;_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 active:scale-[0.98] bg-primary text-primary-foreground hover:bg-primary/90 px-4 py-2 has-[&gt;svg]:px-3 w-full justify-center gap-2 h-9"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus size-4" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg>New Agent</button></div><div data-slot="sidebar-content" data-sidebar="content" class="flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden px-2"><div data-slot="sidebar-group" data-sidebar="group" class="relative flex w-full min-w-0 flex-col p-0"><div data-slot="sidebar-group-content" data-sidebar="group-content" class="w-full text-sm"><ul data-slot="sidebar-menu" data-sidebar="menu" class="flex w-full min-w-0 flex-col gap-1"><div class="flex justify-center py-8"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle size-5 animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg></div></ul></div></div></div><div data-slot="sidebar-footer" data-sidebar="footer" class="flex flex-col gap-2 border-t border-border/50 p-3"><div class="flex items-center justify-between"><div class="flex items-center gap-2 text-xs"><div class="flex items-center gap-1.5 text-red-500"><span class="size-1.5 rounded-full bg-current"></span><span>Disconnected</span></div><span class="text-muted-foreground">·</span><span class="text-muted-foreground">0</span></div><button data-slot="tooltip-trigger" data-variant="ghost" data-size="icon" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium duration-200 disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 shrink-0 [&amp;_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 active:scale-[0.98] hover:text-accent-foreground dark:hover:bg-accent/50 size-7 hover:bg-accent transition-colors" type="button" aria-haspopup="dialog" aria-expanded="false" aria-controls="radix-_R_196btb_" data-state="closed"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings size-4" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></button></div></div></div></div></div><main data-slot="sidebar-inset" class="relative w-full flex-1 overflow-x-hidden md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 h-screen flex flex-col bg-background min-w-0"><div class="flex-1 overflow-hidden min-w-0"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex items-center justify-center h-full"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle size-6 animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg></div><!--/$--><!--$--><!--/$--></div></main></div><script src="/_next/static/chunks/651e187cc15d66de.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[760800,[\"/_next/static/chunks/b31b0765abe0c427.js\"],\"ApiInit\"]\n3:I[488287,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"default\"]\n4:I[174895,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"default\"]\n5:I[808719,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"ClientSegmentRoot\"]\n6:I[138134,[\"/_next/static/chunks/b31b0765abe0c427.js\",\"/_next/static/chunks/96ec96279ada0efe.js\",\"/_next/static/chunks/ea57058fc6ebf4d3.js\",\"/_next/static/chunks/b7d722dab2a7ecc0.js\",\"/_next/static/chunks/81685e5e8be4eac9.js\"],\"default\"]\n8:I[683380,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"ClientPageRoot\"]\n9:I[375635,[\"/_next/static/chunks/b31b0765abe0c427.js\",\"/_next/static/chunks/96ec96279ada0efe.js\",\"/_next/static/chunks/ea57058fc6ebf4d3.js\",\"/_next/static/chunks/b7d722dab2a7ecc0.js\",\"/_next/static/chunks/81685e5e8be4eac9.js\",\"/_next/static/chunks/8d3efc76109d2efc.js\"],\"default\"]\nc:I[151858,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"OutletBoundary\"]\nd:\"$Sreact.suspense\"\nf:I[151858,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"ViewportBoundary\"]\n11:I[151858,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"MetadataBoundary\"]\n13:I[552576,[],\"default\"]\n:HL[\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"style\"]\n:HL[\"/_next/static/chunks/de300ff10b63be85.css\",\"style\"]\n:HL[\"/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"GLqNSglCVQYpCRXsP7tBp\",\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"(main)\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/de300ff10b63be85.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/b31b0765abe0c427.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased\",\"children\":[[\"$\",\"$L2\",null,{}],[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/96ec96279ada0efe.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/ea57058fc6ebf4d3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/b7d722dab2a7ecc0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/81685e5e8be4eac9.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L5\",null,{\"Component\":\"$6\",\"slots\":{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]},\"serverProvidedParams\":{\"params\":{},\"promises\":[\"$@7\"]}}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L8\",null,{\"Component\":\"$9\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\",\"promises\":[\"$@a\",\"$@b\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/8d3efc76109d2efc.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@e\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L11\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L12\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$13\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"7:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\na:{}\nb:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=5\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"media\":\"(prefers-color-scheme: light)\",\"content\":\"#ffffff\"}],[\"$\",\"meta\",\"3\",{\"name\":\"theme-color\",\"media\":\"(prefers-color-scheme: dark)\",\"content\":\"#0a0a0a\"}]]\n"])</script><script>self.__next_f.push([1,"14:I[349310,[\"/_next/static/chunks/9b5512fb633ef95d.js\",\"/_next/static/chunks/0f1cf11540868e42.js\"],\"IconMark\"]\ne:null\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"title\",\"0\",{\"children\":\"SparkeCoder - AI-Powered Coding Agent\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"SparkeCoder is your AI-powered coding assistant. Build, debug, and ship code faster with intelligent automation and natural language programming.\"}],[\"$\",\"meta\",\"2\",{\"name\":\"author\",\"content\":\"SparkeCoder Team\"}],[\"$\",\"link\",\"3\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"4\",{\"name\":\"keywords\",\"content\":\"AI coding assistant,code automation,AI programming,developer tools,coding agent,SparkeCoder,AI pair programming\"}],[\"$\",\"meta\",\"5\",{\"name\":\"creator\",\"content\":\"SparkeCoder\"}],[\"$\",\"meta\",\"6\",{\"name\":\"publisher\",\"content\":\"SparkeCoder\"}],[\"$\",\"meta\",\"7\",{\"name\":\"robots\",\"content\":\"index, follow\"}],[\"$\",\"meta\",\"8\",{\"name\":\"googlebot\",\"content\":\"index, follow, max-video-preview:-1, max-image-preview:large, max-snippet:-1\"}],[\"$\",\"meta\",\"9\",{\"name\":\"category\",\"content\":\"technology\"}],[\"$\",\"meta\",\"10\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"11\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"12\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"SparkeCoder\"}],[\"$\",\"meta\",\"13\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:title\",\"content\":\"SparkeCoder - AI-Powered Coding Agent\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:description\",\"content\":\"Build, debug, and ship code faster with intelligent AI automation and natural language programming.\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:site_name\",\"content\":\"SparkeCoder\"}],[\"$\",\"meta\",\"17\",{\"property\":\"og:locale\",\"content\":\"en_US\"}],[\"$\",\"meta\",\"18\",{\"property\":\"og:image\",\"content\":\"http://localhost:3001/opengraph-image.png?opengraph-image.ce342317.png\"}],[\"$\",\"meta\",\"19\",{\"property\":\"og:image:width\",\"content\":\"512\"}],[\"$\",\"meta\",\"20\",{\"property\":\"og:image:height\",\"content\":\"512\"}],[\"$\",\"meta\",\"21\",{\"property\":\"og:image:type\",\"content\":\"image/png\"}],[\"$\",\"meta\",\"22\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"23\",{\"name\":\"twitter:card\",\"content\":\"summary_large_image\"}],[\"$\",\"meta\",\"24\",{\"name\":\"twitter:title\",\"content\":\"SparkeCoder - AI-Powered Coding Agent\"}],[\"$\",\"meta\",\"25\",{\"name\":\"twitter:description\",\"content\":\"Build, debug, and ship code faster with intelligent AI automation and natural language programming.\"}],[\"$\",\"meta\",\"26\",{\"name\":\"twitter:image\",\"content\":\"http://localhost:3001/twitter-image.png?twitter-image.ce342317.png\"}],[\"$\",\"meta\",\"27\",{\"name\":\"twitter:image:width\",\"content\":\"512\"}],[\"$\",\"meta\",\"28\",{\"name\":\"twitter:image:height\",\"content\":\"512\"}],[\"$\",\"meta\",\"29\",{\"name\":\"twitter:image:type\",\"content\":\"image/png\"}],[\"$\",\"link\",\"30\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.e3cbed1b.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"31\",{\"rel\":\"icon\",\"href\":\"/icon.png?icon.fdefec0f.png\",\"sizes\":\"32x32\",\"type\":\"image/png\"}],[\"$\",\"link\",\"32\",{\"rel\":\"apple-touch-icon\",\"href\":\"/apple-icon.png?apple-icon.d6d14cbd.png\",\"sizes\":\"180x180\",\"type\":\"image/png\"}],[\"$\",\"$L14\",\"33\",{}]]\n"])</script></body></html>
@@ -15,7 +15,7 @@ f:I[151858,["/_next/static/chunks/9b5512fb633ef95d.js","/_next/static/chunks/0f1
15
15
  :HL["/_next/static/chunks/de300ff10b63be85.css","style"]
16
16
  :HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
17
17
  :HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
18
- 0:{"P":null,"b":"_0-MmiObGsO5iLpf0Qgmw","c":["",""],"q":"","i":false,"f":[[["",{"children":["(main)",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/de300ff10b63be85.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/b31b0765abe0c427.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{}],["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]]}],{"children":[["$","$1","c",{"children":[[["$","script","script-0",{"src":"/_next/static/chunks/96ec96279ada0efe.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/ea57058fc6ebf4d3.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/b7d722dab2a7ecc0.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/81685e5e8be4eac9.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"Component":"$6","slots":{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"serverProvidedParams":{"params":{},"promises":["$@7"]}}]]}],{"children":[["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","serverProvidedParams":{"searchParams":{},"params":"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params","promises":["$@a","$@b"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/8d3efc76109d2efc.js","async":true,"nonce":"$undefined"}]],["$","$Lc",null,{"children":["$","$d",null,{"name":"Next.MetadataOutlet","children":"$@e"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","div",null,{"hidden":true,"children":["$","$L11",null,{"children":["$","$d",null,{"name":"Next.Metadata","children":"$L12"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$13",[]],"S":true}
18
+ 0:{"P":null,"b":"GLqNSglCVQYpCRXsP7tBp","c":["",""],"q":"","i":false,"f":[[["",{"children":["(main)",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/de300ff10b63be85.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/b31b0765abe0c427.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{}],["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]]}],{"children":[["$","$1","c",{"children":[[["$","script","script-0",{"src":"/_next/static/chunks/96ec96279ada0efe.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/ea57058fc6ebf4d3.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/b7d722dab2a7ecc0.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/81685e5e8be4eac9.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"Component":"$6","slots":{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"serverProvidedParams":{"params":{},"promises":["$@7"]}}]]}],{"children":[["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","serverProvidedParams":{"searchParams":{},"params":"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params","promises":["$@a","$@b"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/8d3efc76109d2efc.js","async":true,"nonce":"$undefined"}]],["$","$Lc",null,{"children":["$","$d",null,{"name":"Next.MetadataOutlet","children":"$@e"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","div",null,{"hidden":true,"children":["$","$L11",null,{"children":["$","$d",null,{"name":"Next.Metadata","children":"$L12"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$13",[]],"S":true}
19
19
  7:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
20
20
  a:{}
21
21
  b:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
@@ -3,7 +3,7 @@
3
3
  3:I[375635,["/_next/static/chunks/b31b0765abe0c427.js","/_next/static/chunks/96ec96279ada0efe.js","/_next/static/chunks/ea57058fc6ebf4d3.js","/_next/static/chunks/b7d722dab2a7ecc0.js","/_next/static/chunks/81685e5e8be4eac9.js","/_next/static/chunks/8d3efc76109d2efc.js"],"default"]
4
4
  6:I[151858,["/_next/static/chunks/9b5512fb633ef95d.js","/_next/static/chunks/0f1cf11540868e42.js"],"OutletBoundary"]
5
5
  7:"$Sreact.suspense"
6
- 0:{"buildId":"_0-MmiObGsO5iLpf0Qgmw","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/8d3efc76109d2efc.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false}
6
+ 0:{"buildId":"GLqNSglCVQYpCRXsP7tBp","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/8d3efc76109d2efc.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false}
7
7
  4:{}
8
8
  5:{}
9
9
  8:null
@@ -3,5 +3,5 @@
3
3
  3:I[138134,["/_next/static/chunks/b31b0765abe0c427.js","/_next/static/chunks/96ec96279ada0efe.js","/_next/static/chunks/ea57058fc6ebf4d3.js","/_next/static/chunks/b7d722dab2a7ecc0.js","/_next/static/chunks/81685e5e8be4eac9.js"],"default"]
4
4
  4:I[488287,["/_next/static/chunks/9b5512fb633ef95d.js","/_next/static/chunks/0f1cf11540868e42.js"],"default"]
5
5
  5:I[174895,["/_next/static/chunks/9b5512fb633ef95d.js","/_next/static/chunks/0f1cf11540868e42.js"],"default"]
6
- 0:{"buildId":"_0-MmiObGsO5iLpf0Qgmw","rsc":["$","$1","c",{"children":[[["$","script","script-0",{"src":"/_next/static/chunks/96ec96279ada0efe.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/ea57058fc6ebf4d3.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/b7d722dab2a7ecc0.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/81685e5e8be4eac9.js","async":true}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","template":["$","$L5",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]},"serverProvidedParams":{"params":{},"promises":["$@6"]}}]]}],"loading":null,"isPartial":false}
6
+ 0:{"buildId":"GLqNSglCVQYpCRXsP7tBp","rsc":["$","$1","c",{"children":[[["$","script","script-0",{"src":"/_next/static/chunks/96ec96279ada0efe.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/ea57058fc6ebf4d3.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/b7d722dab2a7ecc0.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/81685e5e8be4eac9.js","async":true}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","template":["$","$L5",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]},"serverProvidedParams":{"params":{},"promises":["$@6"]}}]]}],"loading":null,"isPartial":false}
7
7
  6:"$0:rsc:props:children:1:props:serverProvidedParams:params"
@@ -15,7 +15,7 @@ f:I[151858,["/_next/static/chunks/9b5512fb633ef95d.js","/_next/static/chunks/0f1
15
15
  :HL["/_next/static/chunks/de300ff10b63be85.css","style"]
16
16
  :HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
17
17
  :HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
18
- 0:{"P":null,"b":"_0-MmiObGsO5iLpf0Qgmw","c":["",""],"q":"","i":false,"f":[[["",{"children":["(main)",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/de300ff10b63be85.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/b31b0765abe0c427.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{}],["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]]}],{"children":[["$","$1","c",{"children":[[["$","script","script-0",{"src":"/_next/static/chunks/96ec96279ada0efe.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/ea57058fc6ebf4d3.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/b7d722dab2a7ecc0.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/81685e5e8be4eac9.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"Component":"$6","slots":{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"serverProvidedParams":{"params":{},"promises":["$@7"]}}]]}],{"children":[["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","serverProvidedParams":{"searchParams":{},"params":"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params","promises":["$@a","$@b"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/8d3efc76109d2efc.js","async":true,"nonce":"$undefined"}]],["$","$Lc",null,{"children":["$","$d",null,{"name":"Next.MetadataOutlet","children":"$@e"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","div",null,{"hidden":true,"children":["$","$L11",null,{"children":["$","$d",null,{"name":"Next.Metadata","children":"$L12"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$13",[]],"S":true}
18
+ 0:{"P":null,"b":"GLqNSglCVQYpCRXsP7tBp","c":["",""],"q":"","i":false,"f":[[["",{"children":["(main)",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/de300ff10b63be85.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/b31b0765abe0c427.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{}],["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]]}],{"children":[["$","$1","c",{"children":[[["$","script","script-0",{"src":"/_next/static/chunks/96ec96279ada0efe.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/ea57058fc6ebf4d3.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/b7d722dab2a7ecc0.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/81685e5e8be4eac9.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"Component":"$6","slots":{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"serverProvidedParams":{"params":{},"promises":["$@7"]}}]]}],{"children":[["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","serverProvidedParams":{"searchParams":{},"params":"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params","promises":["$@a","$@b"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/8d3efc76109d2efc.js","async":true,"nonce":"$undefined"}]],["$","$Lc",null,{"children":["$","$d",null,{"name":"Next.MetadataOutlet","children":"$@e"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","div",null,{"hidden":true,"children":["$","$L11",null,{"children":["$","$d",null,{"name":"Next.Metadata","children":"$L12"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$13",[]],"S":true}
19
19
  7:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
20
20
  a:{}
21
21
  b:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
@@ -3,4 +3,4 @@
3
3
  3:I[151858,["/_next/static/chunks/9b5512fb633ef95d.js","/_next/static/chunks/0f1cf11540868e42.js"],"MetadataBoundary"]
4
4
  4:"$Sreact.suspense"
5
5
  5:I[349310,["/_next/static/chunks/9b5512fb633ef95d.js","/_next/static/chunks/0f1cf11540868e42.js"],"IconMark"]
6
- 0:{"buildId":"_0-MmiObGsO5iLpf0Qgmw","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=5"}],["$","meta","2",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#ffffff"}],["$","meta","3",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#0a0a0a"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"SparkeCoder - AI-Powered Coding Agent"}],["$","meta","1",{"name":"description","content":"SparkeCoder is your AI-powered coding assistant. Build, debug, and ship code faster with intelligent automation and natural language programming."}],["$","meta","2",{"name":"author","content":"SparkeCoder Team"}],["$","link","3",{"rel":"manifest","href":"/manifest.json"}],["$","meta","4",{"name":"keywords","content":"AI coding assistant,code automation,AI programming,developer tools,coding agent,SparkeCoder,AI pair programming"}],["$","meta","5",{"name":"creator","content":"SparkeCoder"}],["$","meta","6",{"name":"publisher","content":"SparkeCoder"}],["$","meta","7",{"name":"robots","content":"index, follow"}],["$","meta","8",{"name":"googlebot","content":"index, follow, max-video-preview:-1, max-image-preview:large, max-snippet:-1"}],["$","meta","9",{"name":"category","content":"technology"}],["$","meta","10",{"name":"format-detection","content":"telephone=no"}],["$","meta","11",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","12",{"name":"apple-mobile-web-app-title","content":"SparkeCoder"}],["$","meta","13",{"name":"apple-mobile-web-app-status-bar-style","content":"black-translucent"}],["$","meta","14",{"property":"og:title","content":"SparkeCoder - AI-Powered Coding Agent"}],["$","meta","15",{"property":"og:description","content":"Build, debug, and ship code faster with intelligent AI automation and natural language programming."}],["$","meta","16",{"property":"og:site_name","content":"SparkeCoder"}],["$","meta","17",{"property":"og:locale","content":"en_US"}],["$","meta","18",{"property":"og:image","content":"http://localhost:3001/opengraph-image.png?opengraph-image.ce342317.png"}],["$","meta","19",{"property":"og:image:width","content":"512"}],["$","meta","20",{"property":"og:image:height","content":"512"}],["$","meta","21",{"property":"og:image:type","content":"image/png"}],["$","meta","22",{"property":"og:type","content":"website"}],["$","meta","23",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","24",{"name":"twitter:title","content":"SparkeCoder - AI-Powered Coding Agent"}],["$","meta","25",{"name":"twitter:description","content":"Build, debug, and ship code faster with intelligent AI automation and natural language programming."}],["$","meta","26",{"name":"twitter:image","content":"http://localhost:3001/twitter-image.png?twitter-image.ce342317.png"}],["$","meta","27",{"name":"twitter:image:width","content":"512"}],["$","meta","28",{"name":"twitter:image:height","content":"512"}],["$","meta","29",{"name":"twitter:image:type","content":"image/png"}],["$","link","30",{"rel":"icon","href":"/favicon.ico?favicon.e3cbed1b.ico","sizes":"256x256","type":"image/x-icon"}],["$","link","31",{"rel":"icon","href":"/icon.png?icon.fdefec0f.png","sizes":"32x32","type":"image/png"}],["$","link","32",{"rel":"apple-touch-icon","href":"/apple-icon.png?apple-icon.d6d14cbd.png","sizes":"180x180","type":"image/png"}],["$","$L5","33",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
6
+ 0:{"buildId":"GLqNSglCVQYpCRXsP7tBp","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=5"}],["$","meta","2",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#ffffff"}],["$","meta","3",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#0a0a0a"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"SparkeCoder - AI-Powered Coding Agent"}],["$","meta","1",{"name":"description","content":"SparkeCoder is your AI-powered coding assistant. Build, debug, and ship code faster with intelligent automation and natural language programming."}],["$","meta","2",{"name":"author","content":"SparkeCoder Team"}],["$","link","3",{"rel":"manifest","href":"/manifest.json"}],["$","meta","4",{"name":"keywords","content":"AI coding assistant,code automation,AI programming,developer tools,coding agent,SparkeCoder,AI pair programming"}],["$","meta","5",{"name":"creator","content":"SparkeCoder"}],["$","meta","6",{"name":"publisher","content":"SparkeCoder"}],["$","meta","7",{"name":"robots","content":"index, follow"}],["$","meta","8",{"name":"googlebot","content":"index, follow, max-video-preview:-1, max-image-preview:large, max-snippet:-1"}],["$","meta","9",{"name":"category","content":"technology"}],["$","meta","10",{"name":"format-detection","content":"telephone=no"}],["$","meta","11",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","12",{"name":"apple-mobile-web-app-title","content":"SparkeCoder"}],["$","meta","13",{"name":"apple-mobile-web-app-status-bar-style","content":"black-translucent"}],["$","meta","14",{"property":"og:title","content":"SparkeCoder - AI-Powered Coding Agent"}],["$","meta","15",{"property":"og:description","content":"Build, debug, and ship code faster with intelligent AI automation and natural language programming."}],["$","meta","16",{"property":"og:site_name","content":"SparkeCoder"}],["$","meta","17",{"property":"og:locale","content":"en_US"}],["$","meta","18",{"property":"og:image","content":"http://localhost:3001/opengraph-image.png?opengraph-image.ce342317.png"}],["$","meta","19",{"property":"og:image:width","content":"512"}],["$","meta","20",{"property":"og:image:height","content":"512"}],["$","meta","21",{"property":"og:image:type","content":"image/png"}],["$","meta","22",{"property":"og:type","content":"website"}],["$","meta","23",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","24",{"name":"twitter:title","content":"SparkeCoder - AI-Powered Coding Agent"}],["$","meta","25",{"name":"twitter:description","content":"Build, debug, and ship code faster with intelligent AI automation and natural language programming."}],["$","meta","26",{"name":"twitter:image","content":"http://localhost:3001/twitter-image.png?twitter-image.ce342317.png"}],["$","meta","27",{"name":"twitter:image:width","content":"512"}],["$","meta","28",{"name":"twitter:image:height","content":"512"}],["$","meta","29",{"name":"twitter:image:type","content":"image/png"}],["$","link","30",{"rel":"icon","href":"/favicon.ico?favicon.e3cbed1b.ico","sizes":"256x256","type":"image/x-icon"}],["$","link","31",{"rel":"icon","href":"/icon.png?icon.fdefec0f.png","sizes":"32x32","type":"image/png"}],["$","link","32",{"rel":"apple-touch-icon","href":"/apple-icon.png?apple-icon.d6d14cbd.png","sizes":"180x180","type":"image/png"}],["$","$L5","33",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
@@ -4,4 +4,4 @@
4
4
  4:I[174895,["/_next/static/chunks/9b5512fb633ef95d.js","/_next/static/chunks/0f1cf11540868e42.js"],"default"]
5
5
  :HL["/_next/static/chunks/2473c16c0c2f6b5f.css","style"]
6
6
  :HL["/_next/static/chunks/de300ff10b63be85.css","style"]
7
- 0:{"buildId":"_0-MmiObGsO5iLpf0Qgmw","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/de300ff10b63be85.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/b31b0765abe0c427.js","async":true}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{}],["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]]}]}]]}],"loading":null,"isPartial":false}
7
+ 0:{"buildId":"GLqNSglCVQYpCRXsP7tBp","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/de300ff10b63be85.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/b31b0765abe0c427.js","async":true}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{}],["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]]}]}]]}],"loading":null,"isPartial":false}
@@ -2,4 +2,4 @@
2
2
  :HL["/_next/static/chunks/de300ff10b63be85.css","style"]
3
3
  :HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
4
4
  :HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
5
- 0:{"buildId":"_0-MmiObGsO5iLpf0Qgmw","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"(main)","paramType":null,"paramKey":"(main)","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
5
+ 0:{"buildId":"GLqNSglCVQYpCRXsP7tBp","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"(main)","paramType":null,"paramKey":"(main)","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
@@ -10,6 +10,6 @@ ${bl.updateCommand}`;bz(a),bo(!0)}catch(a){console.error("Failed to start update
10
10
  ${d.trim()}
11
11
  </sparkecoder-user-selected-elements>`;f=`${a}
12
12
 
13
- ${f}`}let g=f,h=c?.map(a=>({type:a.type,data:a.data,mediaType:a.mediaType,filename:a.filename})),i={id:`user-${Date.now()}`,type:"user-message",content:b||(e?"Selected elements attached":""),attachments:h};af(a=>[...a,i]),ar(!0),aH(!1),a6.current=!0,aL(""),aN(""),aP(!1),aR([]),a$.current="",a_.current="",a0.current=[],a3.current=(0,v.runAgent)(a.id,g||"Please analyze the attached files.",bx,{onStreamId:a=>aJ(a),attachments:c})},bz=async(a,b)=>{let c=!!(ao&&ao.trim());if(a.trim()||b&&0!==b.length||c){if(aq){let c;return void(c={id:`q-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,text:a,attachments:b,selectedElements:ao},at(a=>[...a,c]),al(""),ap(null))}al(""),ap(null),await by(a,b,ao)}},bA=async a=>{let b=!!a.text?.trim(),c=!!a.files?.length,d=!!(ao&&ao.trim());if(!b&&!c&&!d)return;let e=[];if(c&&a.files.length>0){for(let b of a.files)if(b.url)try{let a=await fetch(b.url),c=await a.blob(),d=await new Promise(a=>{let b=new FileReader;b.onloadend=()=>a(b.result),b.readAsDataURL(c)}),f=b.mediaType||c.type||"application/octet-stream",g=f.startsWith("image/");e.push({type:g?"image":"file",data:d,mediaType:f,filename:b.filename})}catch(a){console.error("Failed to process attachment:",a)}}bz(a.text||"",e.length>0?e:void 0)},bB=async()=>{try{await (0,v.abortStream)(a.id)}catch(a){console.error("Failed to abort stream:",a)}if(a3.current&&(a3.current(),a3.current=null),a_.current.trim()){let a={id:`reasoning-${Date.now()}`,type:"reasoning",content:a_.current};af(b=>[...b,a])}if(a$.current.trim()){let a={id:`text-${Date.now()}`,type:"assistant-text",content:a$.current+" [stopped]"};af(b=>[...b,a])}aL(""),aN(""),aP(!1),aR([]),aJ(null),a$.current="",a_.current="",a0.current=[],a5.current=!1,ar(!1),aH(!1)},bC=(0,e.useRef)(aq),bD=(0,e.useRef)(!1);(0,e.useEffect)(()=>{let a=bC.current;if(bC.current=aq,a&&!aq&&as.length>0){if(bD.current){bD.current=!1;return}let a=setTimeout(()=>{at(a=>{if(0===a.length)return a;let[b,...c]=a;return by(b.text,b.attachments,b.selectedElements),c})},300);return()=>clearTimeout(a)}},[aq,as.length]);let bE=a=>{at(b=>b.map(b=>b.id===a?{...b,text:aw}:b)),av(null),ax("")},bF=async a=>{let b=as.find(b=>b.id===a);b&&(at(b=>b.filter(b=>b.id!==a)),aq?(bD.current=!0,await bB(),setTimeout(()=>{by(b.text,b.attachments,b.selectedElements)},500)):by(b.text,b.attachments,b.selectedElements))},bG=async b=>{aT(a=>a.filter(a=>a.id!==b.id));try{await (0,v.approveExecution)(a.id,b.toolCallId)}catch(a){console.error("Failed to approve:",a)}},bH=async b=>{aT(a=>a.filter(a=>a.id!==b.id));try{await (0,v.rejectExecution)(a.id,b.toolCallId,"User rejected")}catch(a){console.error("Failed to reject:",a)}},bI=async b=>{aT(a=>a.filter(a=>a.id!==b.id));try{await (0,v.approveExecution)(a.id,b.toolCallId);let c=await (0,v.updateToolApproval)(a.id,b.toolName,!1,bg);bh(c.config||{})}catch(a){console.error("Failed to approve and disable:",a)}},bJ=async(b,c)=>{try{let d=await (0,v.updateToolApproval)(a.id,b,!c,bg);bh(d.config||{})}catch(a){console.error("Failed to update tool approval:",a)}},bK=a=>({ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",scala:"scala",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",ps1:"powershell",sql:"sql",html:"html",htm:"html",css:"css",scss:"scss",sass:"sass",less:"less",json:"json",yaml:"yaml",yml:"yaml",xml:"xml",md:"markdown",markdown:"markdown",txt:"plaintext",toml:"toml",ini:"ini",cfg:"ini",conf:"ini",dockerfile:"dockerfile",makefile:"makefile"})[a.split(".").pop()?.toLowerCase()||""]||"plaintext";return(0,d.jsxs)("div",{className:(0,g.cn)("flex flex-col h-full bg-background min-w-0 overflow-x-hidden",b&&"embed-mode text-[13px]"),children:[b&&(0,d.jsxs)("div",{className:"border-b border-border/50 px-2 py-1.5 flex items-center justify-between bg-card/50",children:[(0,d.jsx)(i.Button,{size:"icon",variant:"ghost",onClick:c,className:"size-6",children:(0,d.jsx)(J.PanelLeft,{className:"size-3.5"})}),(0,d.jsx)("span",{className:"text-[11px] text-muted-foreground truncate max-w-[120px] font-medium",children:ba||"Session"}),(0,d.jsx)(i.Button,{size:"icon",variant:"ghost",onClick:()=>bj(!0),className:"size-6",children:(0,d.jsx)(G.Settings,{className:"size-3.5"})})]}),!b&&(0,d.jsxs)("div",{className:"border-b border-border/50 px-3 sm:px-4 py-2 flex items-center justify-between bg-card/50 backdrop-blur-sm",children:[(0,d.jsxs)("div",{className:"min-w-0 flex items-center gap-2 sm:gap-3",children:[(0,d.jsx)(ag,{}),(0,d.jsx)("div",{className:"flex items-center gap-1.5",children:bc?(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault(),bs()},className:"flex items-center gap-1",children:[(0,d.jsx)(X.Input,{ref:bk,value:ba,onChange:a=>bb(a.target.value),onBlur:bs,className:"h-7 text-sm font-semibold w-40 px-2",placeholder:"Session name"}),(0,d.jsx)(i.Button,{type:"submit",size:"icon",variant:"ghost",className:"size-6 text-muted-foreground hover:text-foreground",children:(0,d.jsx)(F.Check,{className:"size-3.5"})})]}):(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsxs)("button",{onClick:()=>bd(!0),className:"flex items-center gap-1.5 group hover:bg-muted/50 rounded px-1.5 py-0.5 -mx-1.5 transition-colors",children:[(0,d.jsx)("h2",{className:"font-semibold text-foreground truncate max-w-[200px]",children:ba||"Untitled Session"}),(0,d.jsx)(E.Pencil,{className:"size-3 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),(0,d.jsx)(j.TooltipContent,{children:"Click to rename"})]})})}),(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsxs)("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md bg-muted/30 text-xs text-muted-foreground max-w-[200px]",children:[(0,d.jsx)(I.FolderOpen,{className:"size-3.5 shrink-0"}),(0,d.jsx)("span",{className:"truncate font-mono",children:a.workingDirectory.split("/").pop()||a.workingDirectory})]})}),(0,d.jsx)(j.TooltipContent,{side:"bottom",className:"max-w-md",children:(0,d.jsx)("p",{className:"font-mono text-xs",children:a.workingDirectory})})]})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[aG&&(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsxs)(h.Badge,{variant:"outline",className:"gap-1.5 text-xs border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 cursor-help",children:[(0,d.jsx)("span",{className:"size-1.5 rounded-full bg-current animate-pulse"}),"Watching"]})}),(0,d.jsx)(j.TooltipContent,{children:"Watching stream from another client"})]})}),(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsx)(h.Badge,{variant:aq?"default":"secondary",className:`cursor-help ${aq?"bg-primary/90":""}`,children:aq?aG?"streaming":"running":a.status})}),(0,d.jsx)(j.TooltipContent,{children:aq?aG?"Receiving streamed response":"Agent is processing":`Session is ${a.status}`})]})}),(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsx)(i.Button,{size:"icon",variant:"ghost",className:"size-7 hover:bg-accent transition-colors",onClick:()=>bj(!0),children:(0,d.jsx)(G.Settings,{className:"size-4"})})}),(0,d.jsx)(j.TooltipContent,{children:"Session Settings"})]})})]})]}),(0,d.jsx)(U.Dialog,{open:bi,onOpenChange:bj,children:(0,d.jsxs)(U.DialogContent,{className:"sm:max-w-md",children:[(0,d.jsx)(U.DialogHeader,{children:(0,d.jsxs)(U.DialogTitle,{className:"flex items-center gap-2",children:[(0,d.jsx)("div",{className:"size-8 rounded-lg bg-muted flex items-center justify-center",children:(0,d.jsx)(G.Settings,{className:"size-4"})}),"Session Settings"]})}),(0,d.jsxs)("div",{className:"space-y-4 pt-2",children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(W.Label,{className:"text-sm font-medium",children:"Model"}),(0,d.jsxs)(z.Select,{value:a8,onValueChange:br,disabled:aq,children:[(0,d.jsx)(z.SelectTrigger,{className:"w-full",children:(0,d.jsx)(z.SelectValue,{placeholder:"Select model"})}),(0,d.jsx)(z.SelectContent,{children:be?.availableModels.map(a=>(0,d.jsx)(z.SelectItem,{value:a.id,children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{children:a.name}),(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:a.provider})]})},a.id))})]}),aq&&(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Cannot change model while agent is running"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(W.Label,{className:"flex items-center gap-2 text-sm font-medium",children:"Tool Approvals"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground -mt-0.5",children:"Toggle on to require approval before tool executes"}),(0,d.jsx)("div",{className:"space-y-1 rounded-lg border p-2.5 bg-muted/30",children:be?.availableTools.map(a=>{var b;let c=(b=a.id,bg.toolApprovals?.[b]!==void 0?bg.toolApprovals[b]:"bash"===b);return(0,d.jsxs)("div",{className:"flex items-center justify-between py-1.5 hover:bg-muted/50 rounded px-2 -mx-1 transition-colors",children:[(0,d.jsxs)("div",{className:"space-y-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-sm font-medium",children:a.name}),a.dangerous&&(0,d.jsx)("span",{className:"text-[10px] bg-amber-500/20 text-amber-600 dark:text-amber-400 px-1.5 py-0.5 rounded font-medium",children:"risky"})]}),(0,d.jsx)("p",{className:"text-[11px] text-muted-foreground",children:a.description})]}),(0,d.jsx)(V.Switch,{checked:c,onCheckedChange:()=>bJ(a.id,c)})]},a.id)})})]}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"These settings only apply to this session. Changes take effect for future tool calls."})]})]})}),!b&&bl?.updateAvailable&&!bn&&(0,d.jsxs)("div",{className:"px-4 py-2 border-b border-amber-500/30 bg-amber-500/10 flex items-center justify-between gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)(L.Download,{className:"size-4 text-amber-600 dark:text-amber-400 shrink-0"}),(0,d.jsxs)("span",{className:"text-sm text-amber-700 dark:text-amber-300",children:["Update available: ",(0,d.jsxs)("strong",{children:["v",bl.latestVersion]}),(0,d.jsxs)("span",{className:"text-amber-600/70 dark:text-amber-400/70 ml-1",children:["(current: v",bl.currentVersion,")"]})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,d.jsx)(i.Button,{size:"sm",variant:"outline",className:"h-7 text-xs border-amber-500/50 bg-amber-500/20 hover:bg-amber-500/30 text-amber-700 dark:text-amber-300",onClick:bt,disabled:bp,children:bp?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(B.RefreshCw,{className:"size-3 mr-1.5 animate-spin"}),"Creating..."]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(L.Download,{className:"size-3 mr-1.5"}),"Update Now"]})}),(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsx)(i.Button,{size:"icon",variant:"ghost",className:"size-6 text-amber-600 dark:text-amber-400 hover:bg-amber-500/20",onClick:()=>{bo(!0),bl?.latestVersion&&localStorage.setItem("sparkecoder-dismissed-version",bl.latestVersion)},children:(0,d.jsx)(M.X,{className:"size-3.5"})})}),(0,d.jsx)(j.TooltipContent,{children:"Dismiss (won't show again for this version)"})]})})]})]}),!b&&aU&&aU.todos&&aU.todos.length>0&&(0,d.jsx)("div",{className:"px-4 py-2 border-b border-border/50 bg-muted/20",children:(0,d.jsx)(w.TodoPanel,{todosData:aU})}),aS.length>0&&(0,d.jsx)("div",{className:(0,g.cn)("p-4 border-b border-border space-y-3",b&&"p-2 space-y-2"),children:aS.map(a=>{let b=a.input;return(0,d.jsxs)(p.Confirmation,{approval:{id:a.id,approved:!1},state:"approval-requested",children:[(0,d.jsx)(p.ConfirmationRequest,{children:(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)("div",{className:"size-8 rounded-lg bg-amber-500/20 flex items-center justify-center shrink-0",children:(0,d.jsx)(C.AlertTriangle,{className:"size-4 text-amber-500"})}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("p",{className:"font-medium text-sm",children:"Approval Required"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:(0,d.jsx)("code",{className:"bg-muted px-1.5 py-0.5 rounded font-mono text-foreground",children:a.toolName})}),(0,d.jsx)("div",{className:"mt-3 rounded-lg border bg-muted/30 overflow-hidden",children:Object.entries(b).map(([a,b])=>(0,d.jsxs)("div",{className:"flex border-b border-border/50 last:border-b-0",children:[(0,d.jsx)("div",{className:"px-3 py-2 bg-muted/50 text-xs font-medium text-muted-foreground w-24 shrink-0",children:a}),(0,d.jsx)("div",{className:"px-3 py-2 text-xs font-mono flex-1 min-w-0 overflow-auto max-h-24",children:"string"==typeof b?(0,d.jsx)("span",{className:"whitespace-pre-wrap break-words",children:b}):(0,d.jsx)("span",{className:"text-muted-foreground",children:JSON.stringify(b)})})]},a))})]})]})}),(0,d.jsxs)(p.ConfirmationActions,{children:[(0,d.jsx)(p.ConfirmationAction,{variant:"outline",onClick:()=>bH(a),children:"Reject"}),(0,d.jsx)(p.ConfirmationAction,{variant:"ghost",onClick:()=>bI(a),className:"text-muted-foreground hover:text-foreground",children:"Don't ask again"}),(0,d.jsx)(p.ConfirmationAction,{variant:"default",onClick:()=>bG(a),children:"Approve"})]})]},a.id)})}),(0,d.jsxs)(k.Conversation,{className:(0,g.cn)("flex-1 p-4",b&&"p-2"),children:[(0,d.jsxs)(k.ConversationContent,{className:(0,g.cn)("max-w-3xl mx-auto w-full",b&&"max-w-none"),children:[a1&&(0,d.jsx)("div",{className:"flex justify-center py-12",children:(0,d.jsx)(q.Loader,{size:24})}),!a1&&0===t.length&&!aK&&(0,d.jsx)(k.ConversationEmptyState,{icon:(0,d.jsxs)("div",{className:"relative overflow-hidden rounded-2xl size-16 shadow-lg ring-1 ring-white/10",children:[(0,d.jsx)(f.default,{src:"/sparke-coder.png",alt:"SparkECoder",width:64,height:64,className:"absolute inset-0 size-full object-cover",priority:!0}),aq&&(0,d.jsx)("video",{src:"/sparkecode.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 size-full object-cover"})]}),title:"Start a conversation",description:"Ask SparkECoder to help you with coding tasks"}),t.filter(a=>!("tool-call"===a.type&&a.toolCall&&(aS.some(b=>b.toolCallId===a.toolCall?.toolCallId)||aQ.some(b=>b.toolCallId===a.toolCall?.toolCallId||b.toolName===a.toolCall?.toolName&&("streaming"===b.status||"running"===b.status))))&&!0).map(a=>{if("user-message"===a.type){let b,c,e=void 0!==a.messageSequence&&aW.some(b=>b.messageSequence===a.messageSequence);return(0,d.jsxs)(l.Message,{from:"user",children:[(0,d.jsxs)(l.MessageContent,{children:[a.attachments&&a.attachments.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-2 mb-2",children:a.attachments.map((a,b)=>(0,d.jsx)("div",{className:"relative",children:"image"===a.type?(0,d.jsx)("div",{className:"relative rounded-lg overflow-hidden border border-border/50 max-w-[200px]",children:(0,d.jsx)("img",{src:a.data.startsWith("data:")?a.data:`data:${a.mediaType||"image/png"};base64,${a.data}`,alt:a.filename||"Image attachment",className:"max-w-full h-auto max-h-[150px] object-contain"})}):(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-muted/50 border border-border/50",children:[(0,d.jsx)(K.FileIcon,{className:"h-4 w-4 text-muted-foreground"}),(0,d.jsx)("span",{className:"text-sm text-muted-foreground truncate max-w-[150px]",children:a.filename||"File"})]})},b))}),a.content&&(b=a.content.replace(ak,"").trim(),c=function(a){let b=a.match(/<devtools-context>([\s\S]*?)<\/devtools-context>/);if(!b)return null;let c=b[1],d=c.match(/<page\s+url="([^"]*)"\s+path="([^"]*)"\s+name="([^"]*)"/),e=c.match(/<viewport\s+width="([^"]*)"\s+height="([^"]*)"(?:\s+dpr="([^"]*)")?/);return d?{url:d[1],path:d[2],pageName:d[3],viewportWidth:e?.[1],viewportHeight:e?.[2],dpr:e?.[3]}:null}(a.content),(0,d.jsxs)(d.Fragment,{children:[b&&(0,d.jsx)("p",{className:"whitespace-pre-wrap",children:b}),c&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5 mt-1.5 text-[11px] text-muted-foreground/60",children:[(0,d.jsx)(S.Monitor,{className:"h-3 w-3"}),(0,d.jsx)("span",{children:c.path}),c.viewportWidth&&c.viewportHeight&&(0,d.jsxs)("span",{className:"text-muted-foreground/40",children:[c.viewportWidth,"x",c.viewportHeight]})]})]}))]}),e&&!aq&&(0,d.jsx)(l.MessageActions,{className:"justify-end mt-1",children:(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsxs)(i.Button,{variant:"ghost",size:"sm",onClick:()=>bw(a.messageSequence,a.content),disabled:aY,className:"h-6 px-2 text-xs text-muted-foreground hover:text-destructive gap-1",children:[(0,d.jsx)(H.RotateCcw,{className:"h-3 w-3"}),"Revert"]})}),(0,d.jsx)(j.TooltipContent,{children:(0,d.jsx)("p",{children:"Revert to before this message (undo all changes after)"})})]})})})]},a.id)}if("reasoning"===a.type)return(0,d.jsxs)(r.Reasoning,{isStreaming:!1,defaultOpen:!1,children:[(0,d.jsx)(r.ReasoningTrigger,{}),(0,d.jsx)(r.ReasoningContent,{children:a.content||""})]},a.id);if("assistant-text"===a.type)return(0,d.jsx)(l.Message,{from:"assistant",children:(0,d.jsxs)("div",{className:"flex gap-3",children:[(0,d.jsx)("div",{className:"relative overflow-hidden rounded-lg size-8 shadow-sm ring-1 ring-white/10 shrink-0",children:(0,d.jsx)(f.default,{src:"/sparke-coder.png",alt:"SparkECoder",width:32,height:32,className:"absolute inset-0 size-full object-cover"})}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)(l.MessageContent,{children:(0,d.jsx)(l.MessageResponse,{children:a.content||""})}),(0,d.jsx)(l.MessageActions,{children:(0,d.jsx)(l.MessageAction,{label:"Copy",onClick:()=>navigator.clipboard.writeText(a.content||""),children:(0,d.jsx)(A.Copy,{className:"size-3"})})})]})]})},a.id);if("tool-call"===a.type&&a.toolCall){let b=a.toolCall,c=`tool-${b.toolName}`;if("write_file"===b.toolName)return(0,d.jsx)(Y.WriteFileTool,{input:b.input,output:b.output,status:b.status,streamingArgsText:b.streamingArgsText,liveContent:b.liveContent,liveOldString:b.liveOldString,liveNewString:b.liveNewString},a.id);if("read_file"===b.toolName)return(0,d.jsx)(Z.ReadFileTool,{input:b.input,output:b.output,status:b.status},a.id);if("bash"===b.toolName)return(0,d.jsx)($.BashTool,{input:b.input,output:b.output,status:b.status,terminalId:b.terminalId,liveOutput:b.liveOutput},a.id);if("explore_agent"===b.toolName)return(0,d.jsx)(_.SearchTool,{input:b.input,output:b.output,status:b.status,steps:b.exploreSteps},a.id);if("todo"===b.toolName)return(0,d.jsx)(aa.TodoTool,{input:b.input,output:b.output,status:b.status},a.id);if("load_skill"===b.toolName)return(0,d.jsx)(ab.LoadSkillTool,{input:b.input,output:b.output,status:b.status},a.id);if("linter"===b.toolName)return(0,d.jsx)(ac.LinterTool,{input:b.input,output:b.output,status:b.status},a.id);let e="completed"!==b.status;return(0,d.jsxs)(m.Tool,{defaultOpen:e,children:[(0,d.jsx)(m.ToolHeader,{type:c,state:function(a){switch(a){case"pending":case"streaming":default:return"input-streaming";case"running":return"input-available";case"completed":return"output-available";case"rejected":return"output-denied";case"error":return"output-error"}}(b.status),title:b.toolName}),(0,d.jsxs)(m.ToolContent,{children:[(0,d.jsx)(m.ToolInput,{input:b.input}),(a=>{let b=a.output,c=a.input;if("bash"===a.toolName)return(0,d.jsx)($.BashTool,{input:a.input,output:a.output,status:a.status,terminalId:a.terminalId,liveOutput:a.liveOutput,className:"mt-2"});if("explore_agent"===a.toolName)return(0,d.jsx)(_.SearchTool,{input:a.input,output:a.output,status:a.status,steps:a.exploreSteps,className:"mt-2"});if("todo"===a.toolName)return(0,d.jsx)(aa.TodoTool,{input:a.input,output:a.output,status:a.status,className:"mt-2"});if("load_skill"===a.toolName)return(0,d.jsx)(ab.LoadSkillTool,{input:a.input,output:a.output,status:a.status,className:"mt-2"});if("write_file"===a.toolName&&c){let a=c.path||"file",e=c.mode||"full",f=a.split("/").pop()||"file",g=bK(a);if("str_replace"===e){let a=c.old_string||"",e=c.new_string||"";return(0,d.jsxs)("div",{className:"mt-2 max-w-full overflow-hidden space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,d.jsx)(D.FileCode,{className:"size-4 text-muted-foreground"}),(0,d.jsx)("span",{className:"font-medium",children:f}),(0,d.jsx)(h.Badge,{variant:"secondary",className:"text-xs",children:"str_replace"})]}),(0,d.jsxs)("div",{className:"rounded-md border overflow-hidden",children:[(0,d.jsxs)("div",{className:"bg-red-500/10 border-b p-2",children:[(0,d.jsx)("div",{className:"text-xs text-red-500 mb-1",children:"- Remove:"}),(0,d.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words text-red-400",children:a.length>500?a.slice(0,500)+"...":a})]}),(0,d.jsxs)("div",{className:"bg-green-500/10 p-2",children:[(0,d.jsx)("div",{className:"text-xs text-green-500 mb-1",children:"+ Add:"}),(0,d.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words text-green-400",children:e.length>500?e.slice(0,500)+"...":e})]})]}),b&&(0,d.jsxs)("div",{className:`text-xs flex items-center gap-1 ${b.success?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"}`,children:[(0,d.jsx)("span",{children:b.success?"✓":"✗"}),(0,d.jsx)("span",{children:b.success?`Replaced (${void 0!==b.lineDelta?(b.lineDelta>=0?"+":"")+b.lineDelta+" lines":"done"})`:b.error||"Failed"})]})]})}let i=c.content||"";return(0,d.jsxs)("div",{className:"mt-2 max-w-full overflow-hidden",children:[(0,d.jsxs)(n.Artifact,{children:[(0,d.jsxs)(n.ArtifactHeader,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)(D.FileCode,{className:"size-4 text-muted-foreground shrink-0"}),(0,d.jsx)(n.ArtifactTitle,{className:"truncate",children:f}),(0,d.jsx)(n.ArtifactDescription,{className:"truncate text-xs hidden sm:block",children:a})]}),(0,d.jsx)(n.ArtifactActions,{children:(0,d.jsx)(n.ArtifactAction,{icon:A.Copy,label:"Copy",onClick:()=>navigator.clipboard.writeText(i)})})]}),i&&(0,d.jsx)(n.ArtifactContent,{className:"p-0 max-h-[300px] overflow-auto",children:(0,d.jsx)(o.CodeBlock,{code:i,language:g,showLineNumbers:!0,children:(0,d.jsx)(o.CodeBlockHeader,{className:"sr-only",children:(0,d.jsx)(o.CodeBlockTitle,{children:(0,d.jsx)(o.CodeBlockFilename,{children:f})})})})})]}),b&&(0,d.jsxs)("div",{className:`mt-2 text-xs flex items-center gap-1 ${b.success?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"}`,children:[(0,d.jsx)("span",{children:b.success?"✓":"✗"}),(0,d.jsx)("span",{children:b.success?`File ${b.action||"written"} successfully`:b.error||"Failed"})]})]})}if("read_file"===a.toolName&&b){let a=c?.path||"file",e=b.content||JSON.stringify(b,null,2),f=a.split("/").pop()||"file",g=bK(a);return(0,d.jsx)("div",{className:"mt-2 max-w-full overflow-hidden",children:(0,d.jsxs)(n.Artifact,{children:[(0,d.jsxs)(n.ArtifactHeader,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)(D.FileCode,{className:"size-4 text-muted-foreground shrink-0"}),(0,d.jsx)(n.ArtifactTitle,{className:"truncate",children:f}),(0,d.jsx)(n.ArtifactDescription,{className:"truncate text-xs hidden sm:block",children:a})]}),(0,d.jsx)(n.ArtifactActions,{children:(0,d.jsx)(n.ArtifactAction,{icon:A.Copy,label:"Copy",onClick:()=>navigator.clipboard.writeText(e)})})]}),(0,d.jsx)(n.ArtifactContent,{className:"p-0 max-h-[300px] overflow-auto",children:(0,d.jsx)(o.CodeBlock,{code:e,language:g,showLineNumbers:!0,children:(0,d.jsx)(o.CodeBlockHeader,{className:"sr-only",children:(0,d.jsx)(o.CodeBlockTitle,{children:(0,d.jsx)(o.CodeBlockFilename,{children:f})})})})})]})})}return b?(0,d.jsx)(m.ToolOutput,{output:(0,d.jsxs)("pre",{className:"text-xs overflow-x-auto max-w-full whitespace-pre-wrap break-words",children:[JSON.stringify(b,null,2).slice(0,500),JSON.stringify(b).length>500?"...":""]}),errorText:"error"===a.status?"Tool execution failed":void 0}):null})(b)]})]},a.id)}return null}),aq&&!aK&&!aM&&0===aQ.length&&(0,d.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,d.jsx)("div",{className:"relative overflow-hidden rounded-lg size-8 shadow-sm ring-1 ring-white/10 shrink-0",children:(0,d.jsx)("video",{src:"/sparkecode.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 size-full object-cover"})}),(0,d.jsx)("span",{className:"text-sm text-muted-foreground",children:"Thinking..."})]}),aq&&(aO||aM)&&(0,d.jsxs)(r.Reasoning,{isStreaming:aO,defaultOpen:!0,children:[(0,d.jsx)(r.ReasoningTrigger,{}),(0,d.jsx)(r.ReasoningContent,{children:aM})]}),aq&&aK&&(0,d.jsx)(l.Message,{from:"assistant",children:(0,d.jsxs)("div",{className:"flex gap-3",children:[(0,d.jsx)("div",{className:"relative overflow-hidden rounded-lg size-8 shadow-sm ring-1 ring-white/10 shrink-0",children:(0,d.jsx)("video",{src:"/sparkecode.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 size-full object-cover"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsxs)(l.MessageContent,{children:[(0,d.jsx)(l.MessageResponse,{children:aK}),(0,d.jsx)("span",{className:"inline-block w-2 h-4 bg-primary animate-pulse ml-1"})]})})]})}),aq&&aQ.map(a=>"write_file"===a.toolName?(0,d.jsx)(Y.WriteFileTool,{input:a.input,output:a.output,status:a.status,streamingArgsText:a.streamingArgsText,liveContent:a.liveContent,liveOldString:a.liveOldString,liveNewString:a.liveNewString},a.toolCallId):"read_file"===a.toolName?(0,d.jsx)(Z.ReadFileTool,{input:a.input,output:a.output,status:a.status},a.toolCallId):"bash"===a.toolName?(0,d.jsx)($.BashTool,{input:a.input,output:a.output,status:a.status,terminalId:a.terminalId,liveOutput:a.liveOutput},a.toolCallId):"explore_agent"===a.toolName?(0,d.jsx)(_.SearchTool,{input:a.input,output:a.output,status:a.status,steps:a.exploreSteps},a.toolCallId):"todo"===a.toolName?(0,d.jsx)(aa.TodoTool,{input:a.input,output:a.output,status:a.status},a.toolCallId):"load_skill"===a.toolName?(0,d.jsx)(ab.LoadSkillTool,{input:a.input,output:a.output,status:a.status},a.toolCallId):"linter"===a.toolName?(0,d.jsx)(ac.LinterTool,{input:a.input,output:a.output,status:a.status},a.toolCallId):(0,d.jsxs)(m.Tool,{defaultOpen:!0,children:[(0,d.jsx)(m.ToolHeader,{type:`tool-${a.toolName}`,state:"streaming"===a.status?"input-streaming":"input-available",title:a.toolName}),(0,d.jsxs)(m.ToolContent,{children:[(0,d.jsx)(m.ToolInput,{input:a.input}),(0,d.jsxs)("div",{className:"flex items-center gap-2 p-3 text-muted-foreground",children:[(0,d.jsx)(q.Loader,{size:14}),(0,d.jsx)("span",{className:"text-sm",children:"streaming"===a.status?"Receiving...":"Executing..."})]})]})]},a.toolCallId)),aq&&!aK&&0===aQ.length&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,d.jsx)(q.Loader,{size:16}),(0,d.jsx)("span",{className:"text-sm",children:"Thinking..."})]})]}),(0,d.jsx)(k.ConversationScrollButton,{})]}),aA&&(0,d.jsxs)("div",{className:"fixed bottom-28 right-4 w-80 max-h-80 overflow-auto border bg-background/95 shadow-lg rounded-md text-xs",children:[(0,d.jsx)("div",{className:"px-3 py-2 border-b font-mono text-muted-foreground",children:"SSE Debug"}),(0,d.jsxs)("div",{className:"px-3 py-2 space-y-1",children:[0===aC.length&&0===aE.length&&(0,d.jsx)("div",{className:"text-muted-foreground",children:"No events yet"}),aC.map((a,b)=>(0,d.jsx)("div",{className:"font-mono",children:a},`evt-${b}`)),aE.map((a,b)=>(0,d.jsx)("div",{className:"font-mono text-red-600",children:a},`err-${b}`))]})]}),(0,d.jsx)("div",{className:(0,g.cn)("border-t border-border/50 p-4 pb-6 bg-card/30",b&&"p-2 pb-2"),children:(0,d.jsxs)("div",{className:(0,g.cn)("max-w-3xl mx-auto",b&&"max-w-none"),children:[!b&&!a1&&0===t.length&&!aK&&!aq&&(0,d.jsx)(u.Suggestions,{className:"mb-3",children:['Create a hello.txt file with "Hello, World!"',"List files in the current directory","Show the current git status"].map(a=>(0,d.jsx)(u.Suggestion,{suggestion:a,onClick:a=>{al(a)}},a))}),as.length>0&&(0,d.jsxs)("div",{className:(0,g.cn)("mb-2 rounded-lg border border-border/60 bg-muted/20 overflow-hidden",b&&"mb-1"),children:[(0,d.jsxs)("button",{type:"button",onClick:()=>az(a=>!a),className:(0,g.cn)("w-full flex items-center justify-between px-3 py-1.5 text-xs text-muted-foreground hover:bg-muted/30 transition-colors",b&&"px-2 py-1"),children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[ay?(0,d.jsx)(N.ChevronDown,{className:"size-3"}):(0,d.jsx)(O.ChevronUp,{className:"size-3"}),(0,d.jsxs)("span",{className:"font-medium",children:[as.length," Queued"]})]}),(0,d.jsx)("span",{className:"text-[10px]",children:"Stop ^C"})]}),ay&&(0,d.jsx)("div",{className:"border-t border-border/40 divide-y divide-border/30",children:as.map((a,c)=>(0,d.jsxs)("div",{className:(0,g.cn)("flex items-start gap-2 px-3 py-2 group",b&&"px-2 py-1.5 gap-1.5"),children:[(0,d.jsx)("span",{className:"text-[10px] text-muted-foreground/60 pt-0.5 w-4 shrink-0 text-center",children:c+1}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[au===a.id?(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)("input",{type:"text",value:aw,onChange:a=>ax(a.target.value),onKeyDown:b=>{"Enter"===b.key&&bE(a.id),"Escape"===b.key&&av(null)},className:(0,g.cn)("flex-1 bg-background border border-border rounded px-2 py-0.5 text-xs focus:outline-none focus:ring-1 focus:ring-primary/30",b&&"text-[11px]"),autoFocus:!0}),(0,d.jsx)("button",{type:"button",onClick:()=>bE(a.id),className:"p-0.5 text-primary hover:text-primary/80",children:(0,d.jsx)(F.Check,{className:"size-3"})})]}):(0,d.jsx)("p",{className:(0,g.cn)("text-xs text-foreground truncate",b&&"text-[11px]"),children:a.text||"Selected elements attached"}),a.attachments&&a.attachments.length>0&&(0,d.jsxs)("span",{className:"text-[10px] text-muted-foreground",children:[a.attachments.length," file",a.attachments.length>1?"s":""]}),a.selectedElements&&(0,d.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"+ selected elements"})]}),(0,d.jsxs)("div",{className:(0,g.cn)("flex items-center gap-0.5 shrink-0 transition-opacity",b?"opacity-100":"opacity-0 group-hover:opacity-100"),children:[(0,d.jsx)("button",{type:"button",onClick:()=>{av(a.id),ax(a.text)},className:"p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted/50",title:"Edit",children:(0,d.jsx)(E.Pencil,{className:"size-3"})}),c>0&&(0,d.jsx)("button",{type:"button",onClick:()=>{var b;return b=a.id,void at(a=>{let c=a.findIndex(a=>a.id===b);if(-1===c)return a;let d=c-1;if(d<0||d>=a.length)return a;let e=[...a];return[e[c],e[d]]=[e[d],e[c]],e})},className:"p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted/50",title:"Move up",children:(0,d.jsx)(Q.ArrowUp,{className:"size-3"})}),(0,d.jsx)("button",{type:"button",onClick:()=>bF(a.id),className:"p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted/50",title:"Send now",children:(0,d.jsx)(P.Play,{className:"size-3"})}),(0,d.jsx)("button",{type:"button",onClick:()=>{var b;return b=a.id,void at(a=>a.filter(a=>a.id!==b))},className:"p-1 rounded text-muted-foreground hover:text-destructive hover:bg-muted/50",title:"Remove",children:(0,d.jsx)(R.Trash2,{className:"size-3"})})]})]},a.id))})]}),(0,d.jsx)(ae.MentionInputProvider,{children:(0,d.jsxs)(s.PromptInput,{onSubmit:bA,className:"shadow-sm",globalDrop:!0,multiple:!0,children:[(0,d.jsxs)(s.PromptInputHeader,{children:[ao&&(0,d.jsxs)("div",{className:(0,g.cn)("mb-2 flex items-center justify-between rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-xs",b&&"mb-1"),children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[(0,d.jsx)("span",{className:"size-1.5 rounded-full bg-primary/70"}),(0,d.jsx)("span",{children:"Selected elements attached"})]}),(0,d.jsx)("button",{type:"button",onClick:()=>ap(null),className:"rounded-sm p-1 text-muted-foreground hover:text-foreground","aria-label":"Remove selected elements",children:(0,d.jsx)(M.X,{className:"size-3.5"})})]}),(0,d.jsx)(ah,{})]}),(0,d.jsx)(s.PromptInputBody,{children:(0,d.jsxs)("div",{className:"relative w-full",children:[(0,d.jsx)(ae.MentionTextarea,{sessionId:a.id,value:aj+(am?(!aj||aj.endsWith(" ")||aj.endsWith("\n")?"":" ")+am:""),onChange:a=>{am&&an(""),al(a)},placeholder:aq?"Type to queue a message...":"Ask SparkECoder... (@ to mention files, / for commands)",disabled:!1,autoFocus:!0,className:(0,g.cn)("min-h-[80px] focus:ring-2 focus:ring-primary/20 transition-all field-sizing-content max-h-48",am&&"caret-red-500",b&&"min-h-[40px] text-sm max-h-24")}),am&&(0,d.jsxs)("div",{className:"absolute bottom-2 right-2 flex items-center gap-1.5 text-xs text-red-500 bg-background/80 backdrop-blur-sm px-2 py-1 rounded-full",children:[(0,d.jsx)("span",{className:"size-2 bg-red-500 rounded-full animate-pulse"}),"Listening..."]})]})}),(0,d.jsxs)(s.PromptInputFooter,{className:b?"py-1":void 0,children:[!b&&(0,d.jsx)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:(0,d.jsx)("span",{className:"hidden sm:inline",children:"Type @ to mention files, / for commands"})}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(ad.SpeechInput,{size:"icon",className:"size-9",onTranscriptionChange:a=>{al(b=>{let c=b&&!b.endsWith(" ")&&!b.endsWith("\n");return b+(c?" ":"")+a})},onInterimTranscription:a=>{an(a)},disabled:aq}),(0,d.jsx)(ai,{input:aj+am,isRunning:aq,onStop:bB,hasExtraContent:!!(ao&&ao.trim())})]})]})]})})]})})]})}a.s(["ChatInterface",()=>aj]),c()}catch(a){c(a)}},!1)];
13
+ ${f}`}let g=f,h=c?.map(a=>({type:a.type,data:a.data,mediaType:a.mediaType,filename:a.filename})),i={id:`user-${Date.now()}`,type:"user-message",content:b||(e?"Selected elements attached":""),attachments:h};af(a=>[...a,i]),ar(!0),aH(!1),a6.current=!0,aL(""),aN(""),aP(!1),aR([]),a$.current="",a_.current="",a0.current=[],a3.current=(0,v.runAgent)(a.id,g||"Please analyze the attached files.",bx,{onStreamId:a=>aJ(a),attachments:c})},bz=async(a,b)=>{let c=!!(ao&&ao.trim());if(a.trim()||b&&0!==b.length||c){if(aq){let c;return void(c={id:`q-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,text:a,attachments:b,selectedElements:ao},at(a=>[...a,c]),al(""),ap(null))}al(""),ap(null),await by(a,b,ao)}},bA=async a=>{let b=!!a.text?.trim(),c=!!a.files?.length,d=!!(ao&&ao.trim());if(!b&&!c&&!d)return;let e=[];if(c&&a.files.length>0){for(let b of a.files)if(b.url)try{let a=await fetch(b.url),c=await a.blob(),d=await new Promise(a=>{let b=new FileReader;b.onloadend=()=>a(b.result),b.readAsDataURL(c)}),f=b.mediaType||c.type||"application/octet-stream",g=f.startsWith("image/");e.push({type:g?"image":"file",data:d,mediaType:f,filename:b.filename})}catch(a){console.error("Failed to process attachment:",a)}}bz(a.text||"",e.length>0?e:void 0)},bB=async()=>{try{await (0,v.abortStream)(a.id)}catch(a){console.error("Failed to abort stream:",a)}if(a3.current&&(a3.current(),a3.current=null),a_.current.trim()){let a={id:`reasoning-${Date.now()}`,type:"reasoning",content:a_.current};af(b=>[...b,a])}if(a$.current.trim()){let a={id:`text-${Date.now()}`,type:"assistant-text",content:a$.current+" [stopped]"};af(b=>[...b,a])}aL(""),aN(""),aP(!1),aR([]),aJ(null),a$.current="",a_.current="",a0.current=[],a5.current=!1,ar(!1),aH(!1)},bC=(0,e.useRef)(by);bC.current=by;let bD=(0,e.useRef)(aq),bE=(0,e.useRef)(!1);(0,e.useEffect)(()=>{if(bD.current,bD.current=aq,!aq&&as.length>0){if(bE.current){bE.current=!1;return}let a=setTimeout(()=>{at(a=>{if(0===a.length)return a;let[b,...c]=a;return bC.current(b.text,b.attachments,b.selectedElements),c})},300);return()=>clearTimeout(a)}},[aq,as.length]);let bF=a=>{at(b=>b.map(b=>b.id===a?{...b,text:aw}:b)),av(null),ax("")},bG=async a=>{let b=as.find(b=>b.id===a);b&&(at(b=>b.filter(b=>b.id!==a)),aq?(bE.current=!0,await bB(),setTimeout(()=>{bC.current(b.text,b.attachments,b.selectedElements)},500)):bC.current(b.text,b.attachments,b.selectedElements))},bH=async b=>{aT(a=>a.filter(a=>a.id!==b.id));try{await (0,v.approveExecution)(a.id,b.toolCallId)}catch(a){console.error("Failed to approve:",a)}},bI=async b=>{aT(a=>a.filter(a=>a.id!==b.id));try{await (0,v.rejectExecution)(a.id,b.toolCallId,"User rejected")}catch(a){console.error("Failed to reject:",a)}},bJ=async b=>{aT(a=>a.filter(a=>a.id!==b.id));try{await (0,v.approveExecution)(a.id,b.toolCallId);let c=await (0,v.updateToolApproval)(a.id,b.toolName,!1,bg);bh(c.config||{})}catch(a){console.error("Failed to approve and disable:",a)}},bK=async(b,c)=>{try{let d=await (0,v.updateToolApproval)(a.id,b,!c,bg);bh(d.config||{})}catch(a){console.error("Failed to update tool approval:",a)}},bL=a=>({ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",scala:"scala",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",ps1:"powershell",sql:"sql",html:"html",htm:"html",css:"css",scss:"scss",sass:"sass",less:"less",json:"json",yaml:"yaml",yml:"yaml",xml:"xml",md:"markdown",markdown:"markdown",txt:"plaintext",toml:"toml",ini:"ini",cfg:"ini",conf:"ini",dockerfile:"dockerfile",makefile:"makefile"})[a.split(".").pop()?.toLowerCase()||""]||"plaintext";return(0,d.jsxs)("div",{className:(0,g.cn)("flex flex-col h-full bg-background min-w-0 overflow-x-hidden",b&&"embed-mode text-[13px]"),children:[b&&(0,d.jsxs)("div",{className:"border-b border-border/50 px-2 py-1.5 flex items-center justify-between bg-card/50",children:[(0,d.jsx)(i.Button,{size:"icon",variant:"ghost",onClick:c,className:"size-6",children:(0,d.jsx)(J.PanelLeft,{className:"size-3.5"})}),(0,d.jsx)("span",{className:"text-[11px] text-muted-foreground truncate max-w-[120px] font-medium",children:ba||"Session"}),(0,d.jsx)(i.Button,{size:"icon",variant:"ghost",onClick:()=>bj(!0),className:"size-6",children:(0,d.jsx)(G.Settings,{className:"size-3.5"})})]}),!b&&(0,d.jsxs)("div",{className:"border-b border-border/50 px-3 sm:px-4 py-2 flex items-center justify-between bg-card/50 backdrop-blur-sm",children:[(0,d.jsxs)("div",{className:"min-w-0 flex items-center gap-2 sm:gap-3",children:[(0,d.jsx)(ag,{}),(0,d.jsx)("div",{className:"flex items-center gap-1.5",children:bc?(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault(),bs()},className:"flex items-center gap-1",children:[(0,d.jsx)(X.Input,{ref:bk,value:ba,onChange:a=>bb(a.target.value),onBlur:bs,className:"h-7 text-sm font-semibold w-40 px-2",placeholder:"Session name"}),(0,d.jsx)(i.Button,{type:"submit",size:"icon",variant:"ghost",className:"size-6 text-muted-foreground hover:text-foreground",children:(0,d.jsx)(F.Check,{className:"size-3.5"})})]}):(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsxs)("button",{onClick:()=>bd(!0),className:"flex items-center gap-1.5 group hover:bg-muted/50 rounded px-1.5 py-0.5 -mx-1.5 transition-colors",children:[(0,d.jsx)("h2",{className:"font-semibold text-foreground truncate max-w-[200px]",children:ba||"Untitled Session"}),(0,d.jsx)(E.Pencil,{className:"size-3 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),(0,d.jsx)(j.TooltipContent,{children:"Click to rename"})]})})}),(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsxs)("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md bg-muted/30 text-xs text-muted-foreground max-w-[200px]",children:[(0,d.jsx)(I.FolderOpen,{className:"size-3.5 shrink-0"}),(0,d.jsx)("span",{className:"truncate font-mono",children:a.workingDirectory.split("/").pop()||a.workingDirectory})]})}),(0,d.jsx)(j.TooltipContent,{side:"bottom",className:"max-w-md",children:(0,d.jsx)("p",{className:"font-mono text-xs",children:a.workingDirectory})})]})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[aG&&(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsxs)(h.Badge,{variant:"outline",className:"gap-1.5 text-xs border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 cursor-help",children:[(0,d.jsx)("span",{className:"size-1.5 rounded-full bg-current animate-pulse"}),"Watching"]})}),(0,d.jsx)(j.TooltipContent,{children:"Watching stream from another client"})]})}),(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsx)(h.Badge,{variant:aq?"default":"secondary",className:`cursor-help ${aq?"bg-primary/90":""}`,children:aq?aG?"streaming":"running":a.status})}),(0,d.jsx)(j.TooltipContent,{children:aq?aG?"Receiving streamed response":"Agent is processing":`Session is ${a.status}`})]})}),(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsx)(i.Button,{size:"icon",variant:"ghost",className:"size-7 hover:bg-accent transition-colors",onClick:()=>bj(!0),children:(0,d.jsx)(G.Settings,{className:"size-4"})})}),(0,d.jsx)(j.TooltipContent,{children:"Session Settings"})]})})]})]}),(0,d.jsx)(U.Dialog,{open:bi,onOpenChange:bj,children:(0,d.jsxs)(U.DialogContent,{className:"sm:max-w-md",children:[(0,d.jsx)(U.DialogHeader,{children:(0,d.jsxs)(U.DialogTitle,{className:"flex items-center gap-2",children:[(0,d.jsx)("div",{className:"size-8 rounded-lg bg-muted flex items-center justify-center",children:(0,d.jsx)(G.Settings,{className:"size-4"})}),"Session Settings"]})}),(0,d.jsxs)("div",{className:"space-y-4 pt-2",children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(W.Label,{className:"text-sm font-medium",children:"Model"}),(0,d.jsxs)(z.Select,{value:a8,onValueChange:br,disabled:aq,children:[(0,d.jsx)(z.SelectTrigger,{className:"w-full",children:(0,d.jsx)(z.SelectValue,{placeholder:"Select model"})}),(0,d.jsx)(z.SelectContent,{children:be?.availableModels.map(a=>(0,d.jsx)(z.SelectItem,{value:a.id,children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{children:a.name}),(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:a.provider})]})},a.id))})]}),aq&&(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Cannot change model while agent is running"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(W.Label,{className:"flex items-center gap-2 text-sm font-medium",children:"Tool Approvals"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground -mt-0.5",children:"Toggle on to require approval before tool executes"}),(0,d.jsx)("div",{className:"space-y-1 rounded-lg border p-2.5 bg-muted/30",children:be?.availableTools.map(a=>{var b;let c=(b=a.id,bg.toolApprovals?.[b]!==void 0?bg.toolApprovals[b]:"bash"===b);return(0,d.jsxs)("div",{className:"flex items-center justify-between py-1.5 hover:bg-muted/50 rounded px-2 -mx-1 transition-colors",children:[(0,d.jsxs)("div",{className:"space-y-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-sm font-medium",children:a.name}),a.dangerous&&(0,d.jsx)("span",{className:"text-[10px] bg-amber-500/20 text-amber-600 dark:text-amber-400 px-1.5 py-0.5 rounded font-medium",children:"risky"})]}),(0,d.jsx)("p",{className:"text-[11px] text-muted-foreground",children:a.description})]}),(0,d.jsx)(V.Switch,{checked:c,onCheckedChange:()=>bK(a.id,c)})]},a.id)})})]}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"These settings only apply to this session. Changes take effect for future tool calls."})]})]})}),!b&&bl?.updateAvailable&&!bn&&(0,d.jsxs)("div",{className:"px-4 py-2 border-b border-amber-500/30 bg-amber-500/10 flex items-center justify-between gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)(L.Download,{className:"size-4 text-amber-600 dark:text-amber-400 shrink-0"}),(0,d.jsxs)("span",{className:"text-sm text-amber-700 dark:text-amber-300",children:["Update available: ",(0,d.jsxs)("strong",{children:["v",bl.latestVersion]}),(0,d.jsxs)("span",{className:"text-amber-600/70 dark:text-amber-400/70 ml-1",children:["(current: v",bl.currentVersion,")"]})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,d.jsx)(i.Button,{size:"sm",variant:"outline",className:"h-7 text-xs border-amber-500/50 bg-amber-500/20 hover:bg-amber-500/30 text-amber-700 dark:text-amber-300",onClick:bt,disabled:bp,children:bp?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(B.RefreshCw,{className:"size-3 mr-1.5 animate-spin"}),"Creating..."]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(L.Download,{className:"size-3 mr-1.5"}),"Update Now"]})}),(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsx)(i.Button,{size:"icon",variant:"ghost",className:"size-6 text-amber-600 dark:text-amber-400 hover:bg-amber-500/20",onClick:()=>{bo(!0),bl?.latestVersion&&localStorage.setItem("sparkecoder-dismissed-version",bl.latestVersion)},children:(0,d.jsx)(M.X,{className:"size-3.5"})})}),(0,d.jsx)(j.TooltipContent,{children:"Dismiss (won't show again for this version)"})]})})]})]}),!b&&aU&&aU.todos&&aU.todos.length>0&&(0,d.jsx)("div",{className:"px-4 py-2 border-b border-border/50 bg-muted/20",children:(0,d.jsx)(w.TodoPanel,{todosData:aU})}),aS.length>0&&(0,d.jsx)("div",{className:(0,g.cn)("p-4 border-b border-border space-y-3",b&&"p-2 space-y-2"),children:aS.map(a=>{let b=a.input;return(0,d.jsxs)(p.Confirmation,{approval:{id:a.id,approved:!1},state:"approval-requested",children:[(0,d.jsx)(p.ConfirmationRequest,{children:(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)("div",{className:"size-8 rounded-lg bg-amber-500/20 flex items-center justify-center shrink-0",children:(0,d.jsx)(C.AlertTriangle,{className:"size-4 text-amber-500"})}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("p",{className:"font-medium text-sm",children:"Approval Required"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:(0,d.jsx)("code",{className:"bg-muted px-1.5 py-0.5 rounded font-mono text-foreground",children:a.toolName})}),(0,d.jsx)("div",{className:"mt-3 rounded-lg border bg-muted/30 overflow-hidden",children:Object.entries(b).map(([a,b])=>(0,d.jsxs)("div",{className:"flex border-b border-border/50 last:border-b-0",children:[(0,d.jsx)("div",{className:"px-3 py-2 bg-muted/50 text-xs font-medium text-muted-foreground w-24 shrink-0",children:a}),(0,d.jsx)("div",{className:"px-3 py-2 text-xs font-mono flex-1 min-w-0 overflow-auto max-h-24",children:"string"==typeof b?(0,d.jsx)("span",{className:"whitespace-pre-wrap break-words",children:b}):(0,d.jsx)("span",{className:"text-muted-foreground",children:JSON.stringify(b)})})]},a))})]})]})}),(0,d.jsxs)(p.ConfirmationActions,{children:[(0,d.jsx)(p.ConfirmationAction,{variant:"outline",onClick:()=>bI(a),children:"Reject"}),(0,d.jsx)(p.ConfirmationAction,{variant:"ghost",onClick:()=>bJ(a),className:"text-muted-foreground hover:text-foreground",children:"Don't ask again"}),(0,d.jsx)(p.ConfirmationAction,{variant:"default",onClick:()=>bH(a),children:"Approve"})]})]},a.id)})}),(0,d.jsxs)(k.Conversation,{className:(0,g.cn)("flex-1 p-4",b&&"p-2"),children:[(0,d.jsxs)(k.ConversationContent,{className:(0,g.cn)("max-w-3xl mx-auto w-full",b&&"max-w-none"),children:[a1&&(0,d.jsx)("div",{className:"flex justify-center py-12",children:(0,d.jsx)(q.Loader,{size:24})}),!a1&&0===t.length&&!aK&&(0,d.jsx)(k.ConversationEmptyState,{icon:(0,d.jsxs)("div",{className:"relative overflow-hidden rounded-2xl size-16 shadow-lg ring-1 ring-white/10",children:[(0,d.jsx)(f.default,{src:"/sparke-coder.png",alt:"SparkECoder",width:64,height:64,className:"absolute inset-0 size-full object-cover",priority:!0}),aq&&(0,d.jsx)("video",{src:"/sparkecode.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 size-full object-cover"})]}),title:"Start a conversation",description:"Ask SparkECoder to help you with coding tasks"}),t.filter(a=>!("tool-call"===a.type&&a.toolCall&&(aS.some(b=>b.toolCallId===a.toolCall?.toolCallId)||aQ.some(b=>b.toolCallId===a.toolCall?.toolCallId||b.toolName===a.toolCall?.toolName&&("streaming"===b.status||"running"===b.status))))&&!0).map(a=>{if("user-message"===a.type){let b,c,e=void 0!==a.messageSequence&&aW.some(b=>b.messageSequence===a.messageSequence);return(0,d.jsxs)(l.Message,{from:"user",children:[(0,d.jsxs)(l.MessageContent,{children:[a.attachments&&a.attachments.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-2 mb-2",children:a.attachments.map((a,b)=>(0,d.jsx)("div",{className:"relative",children:"image"===a.type?(0,d.jsx)("div",{className:"relative rounded-lg overflow-hidden border border-border/50 max-w-[200px]",children:(0,d.jsx)("img",{src:a.data.startsWith("data:")?a.data:`data:${a.mediaType||"image/png"};base64,${a.data}`,alt:a.filename||"Image attachment",className:"max-w-full h-auto max-h-[150px] object-contain"})}):(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-muted/50 border border-border/50",children:[(0,d.jsx)(K.FileIcon,{className:"h-4 w-4 text-muted-foreground"}),(0,d.jsx)("span",{className:"text-sm text-muted-foreground truncate max-w-[150px]",children:a.filename||"File"})]})},b))}),a.content&&(b=a.content.replace(ak,"").trim(),c=function(a){let b=a.match(/<devtools-context>([\s\S]*?)<\/devtools-context>/);if(!b)return null;let c=b[1],d=c.match(/<page\s+url="([^"]*)"\s+path="([^"]*)"\s+name="([^"]*)"/),e=c.match(/<viewport\s+width="([^"]*)"\s+height="([^"]*)"(?:\s+dpr="([^"]*)")?/);return d?{url:d[1],path:d[2],pageName:d[3],viewportWidth:e?.[1],viewportHeight:e?.[2],dpr:e?.[3]}:null}(a.content),(0,d.jsxs)(d.Fragment,{children:[b&&(0,d.jsx)("p",{className:"whitespace-pre-wrap",children:b}),c&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5 mt-1.5 text-[11px] text-muted-foreground/60",children:[(0,d.jsx)(S.Monitor,{className:"h-3 w-3"}),(0,d.jsx)("span",{children:c.path}),c.viewportWidth&&c.viewportHeight&&(0,d.jsxs)("span",{className:"text-muted-foreground/40",children:[c.viewportWidth,"x",c.viewportHeight]})]})]}))]}),e&&!aq&&(0,d.jsx)(l.MessageActions,{className:"justify-end mt-1",children:(0,d.jsx)(j.TooltipProvider,{children:(0,d.jsxs)(j.Tooltip,{children:[(0,d.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,d.jsxs)(i.Button,{variant:"ghost",size:"sm",onClick:()=>bw(a.messageSequence,a.content),disabled:aY,className:"h-6 px-2 text-xs text-muted-foreground hover:text-destructive gap-1",children:[(0,d.jsx)(H.RotateCcw,{className:"h-3 w-3"}),"Revert"]})}),(0,d.jsx)(j.TooltipContent,{children:(0,d.jsx)("p",{children:"Revert to before this message (undo all changes after)"})})]})})})]},a.id)}if("reasoning"===a.type)return(0,d.jsxs)(r.Reasoning,{isStreaming:!1,defaultOpen:!1,children:[(0,d.jsx)(r.ReasoningTrigger,{}),(0,d.jsx)(r.ReasoningContent,{children:a.content||""})]},a.id);if("assistant-text"===a.type)return(0,d.jsx)(l.Message,{from:"assistant",children:(0,d.jsxs)("div",{className:"flex gap-3",children:[(0,d.jsx)("div",{className:"relative overflow-hidden rounded-lg size-8 shadow-sm ring-1 ring-white/10 shrink-0",children:(0,d.jsx)(f.default,{src:"/sparke-coder.png",alt:"SparkECoder",width:32,height:32,className:"absolute inset-0 size-full object-cover"})}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)(l.MessageContent,{children:(0,d.jsx)(l.MessageResponse,{children:a.content||""})}),(0,d.jsx)(l.MessageActions,{children:(0,d.jsx)(l.MessageAction,{label:"Copy",onClick:()=>navigator.clipboard.writeText(a.content||""),children:(0,d.jsx)(A.Copy,{className:"size-3"})})})]})]})},a.id);if("tool-call"===a.type&&a.toolCall){let b=a.toolCall,c=`tool-${b.toolName}`;if("write_file"===b.toolName)return(0,d.jsx)(Y.WriteFileTool,{input:b.input,output:b.output,status:b.status,streamingArgsText:b.streamingArgsText,liveContent:b.liveContent,liveOldString:b.liveOldString,liveNewString:b.liveNewString},a.id);if("read_file"===b.toolName)return(0,d.jsx)(Z.ReadFileTool,{input:b.input,output:b.output,status:b.status},a.id);if("bash"===b.toolName)return(0,d.jsx)($.BashTool,{input:b.input,output:b.output,status:b.status,terminalId:b.terminalId,liveOutput:b.liveOutput},a.id);if("explore_agent"===b.toolName)return(0,d.jsx)(_.SearchTool,{input:b.input,output:b.output,status:b.status,steps:b.exploreSteps},a.id);if("todo"===b.toolName)return(0,d.jsx)(aa.TodoTool,{input:b.input,output:b.output,status:b.status},a.id);if("load_skill"===b.toolName)return(0,d.jsx)(ab.LoadSkillTool,{input:b.input,output:b.output,status:b.status},a.id);if("linter"===b.toolName)return(0,d.jsx)(ac.LinterTool,{input:b.input,output:b.output,status:b.status},a.id);let e="completed"!==b.status;return(0,d.jsxs)(m.Tool,{defaultOpen:e,children:[(0,d.jsx)(m.ToolHeader,{type:c,state:function(a){switch(a){case"pending":case"streaming":default:return"input-streaming";case"running":return"input-available";case"completed":return"output-available";case"rejected":return"output-denied";case"error":return"output-error"}}(b.status),title:b.toolName}),(0,d.jsxs)(m.ToolContent,{children:[(0,d.jsx)(m.ToolInput,{input:b.input}),(a=>{let b=a.output,c=a.input;if("bash"===a.toolName)return(0,d.jsx)($.BashTool,{input:a.input,output:a.output,status:a.status,terminalId:a.terminalId,liveOutput:a.liveOutput,className:"mt-2"});if("explore_agent"===a.toolName)return(0,d.jsx)(_.SearchTool,{input:a.input,output:a.output,status:a.status,steps:a.exploreSteps,className:"mt-2"});if("todo"===a.toolName)return(0,d.jsx)(aa.TodoTool,{input:a.input,output:a.output,status:a.status,className:"mt-2"});if("load_skill"===a.toolName)return(0,d.jsx)(ab.LoadSkillTool,{input:a.input,output:a.output,status:a.status,className:"mt-2"});if("write_file"===a.toolName&&c){let a=c.path||"file",e=c.mode||"full",f=a.split("/").pop()||"file",g=bL(a);if("str_replace"===e){let a=c.old_string||"",e=c.new_string||"";return(0,d.jsxs)("div",{className:"mt-2 max-w-full overflow-hidden space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,d.jsx)(D.FileCode,{className:"size-4 text-muted-foreground"}),(0,d.jsx)("span",{className:"font-medium",children:f}),(0,d.jsx)(h.Badge,{variant:"secondary",className:"text-xs",children:"str_replace"})]}),(0,d.jsxs)("div",{className:"rounded-md border overflow-hidden",children:[(0,d.jsxs)("div",{className:"bg-red-500/10 border-b p-2",children:[(0,d.jsx)("div",{className:"text-xs text-red-500 mb-1",children:"- Remove:"}),(0,d.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words text-red-400",children:a.length>500?a.slice(0,500)+"...":a})]}),(0,d.jsxs)("div",{className:"bg-green-500/10 p-2",children:[(0,d.jsx)("div",{className:"text-xs text-green-500 mb-1",children:"+ Add:"}),(0,d.jsx)("pre",{className:"text-xs overflow-x-auto whitespace-pre-wrap break-words text-green-400",children:e.length>500?e.slice(0,500)+"...":e})]})]}),b&&(0,d.jsxs)("div",{className:`text-xs flex items-center gap-1 ${b.success?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"}`,children:[(0,d.jsx)("span",{children:b.success?"✓":"✗"}),(0,d.jsx)("span",{children:b.success?`Replaced (${void 0!==b.lineDelta?(b.lineDelta>=0?"+":"")+b.lineDelta+" lines":"done"})`:b.error||"Failed"})]})]})}let i=c.content||"";return(0,d.jsxs)("div",{className:"mt-2 max-w-full overflow-hidden",children:[(0,d.jsxs)(n.Artifact,{children:[(0,d.jsxs)(n.ArtifactHeader,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)(D.FileCode,{className:"size-4 text-muted-foreground shrink-0"}),(0,d.jsx)(n.ArtifactTitle,{className:"truncate",children:f}),(0,d.jsx)(n.ArtifactDescription,{className:"truncate text-xs hidden sm:block",children:a})]}),(0,d.jsx)(n.ArtifactActions,{children:(0,d.jsx)(n.ArtifactAction,{icon:A.Copy,label:"Copy",onClick:()=>navigator.clipboard.writeText(i)})})]}),i&&(0,d.jsx)(n.ArtifactContent,{className:"p-0 max-h-[300px] overflow-auto",children:(0,d.jsx)(o.CodeBlock,{code:i,language:g,showLineNumbers:!0,children:(0,d.jsx)(o.CodeBlockHeader,{className:"sr-only",children:(0,d.jsx)(o.CodeBlockTitle,{children:(0,d.jsx)(o.CodeBlockFilename,{children:f})})})})})]}),b&&(0,d.jsxs)("div",{className:`mt-2 text-xs flex items-center gap-1 ${b.success?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"}`,children:[(0,d.jsx)("span",{children:b.success?"✓":"✗"}),(0,d.jsx)("span",{children:b.success?`File ${b.action||"written"} successfully`:b.error||"Failed"})]})]})}if("read_file"===a.toolName&&b){let a=c?.path||"file",e=b.content||JSON.stringify(b,null,2),f=a.split("/").pop()||"file",g=bL(a);return(0,d.jsx)("div",{className:"mt-2 max-w-full overflow-hidden",children:(0,d.jsxs)(n.Artifact,{children:[(0,d.jsxs)(n.ArtifactHeader,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)(D.FileCode,{className:"size-4 text-muted-foreground shrink-0"}),(0,d.jsx)(n.ArtifactTitle,{className:"truncate",children:f}),(0,d.jsx)(n.ArtifactDescription,{className:"truncate text-xs hidden sm:block",children:a})]}),(0,d.jsx)(n.ArtifactActions,{children:(0,d.jsx)(n.ArtifactAction,{icon:A.Copy,label:"Copy",onClick:()=>navigator.clipboard.writeText(e)})})]}),(0,d.jsx)(n.ArtifactContent,{className:"p-0 max-h-[300px] overflow-auto",children:(0,d.jsx)(o.CodeBlock,{code:e,language:g,showLineNumbers:!0,children:(0,d.jsx)(o.CodeBlockHeader,{className:"sr-only",children:(0,d.jsx)(o.CodeBlockTitle,{children:(0,d.jsx)(o.CodeBlockFilename,{children:f})})})})})]})})}return b?(0,d.jsx)(m.ToolOutput,{output:(0,d.jsxs)("pre",{className:"text-xs overflow-x-auto max-w-full whitespace-pre-wrap break-words",children:[JSON.stringify(b,null,2).slice(0,500),JSON.stringify(b).length>500?"...":""]}),errorText:"error"===a.status?"Tool execution failed":void 0}):null})(b)]})]},a.id)}return null}),aq&&!aK&&!aM&&0===aQ.length&&(0,d.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,d.jsx)("div",{className:"relative overflow-hidden rounded-lg size-8 shadow-sm ring-1 ring-white/10 shrink-0",children:(0,d.jsx)("video",{src:"/sparkecode.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 size-full object-cover"})}),(0,d.jsx)("span",{className:"text-sm text-muted-foreground",children:"Thinking..."})]}),aq&&(aO||aM)&&(0,d.jsxs)(r.Reasoning,{isStreaming:aO,defaultOpen:!0,children:[(0,d.jsx)(r.ReasoningTrigger,{}),(0,d.jsx)(r.ReasoningContent,{children:aM})]}),aq&&aK&&(0,d.jsx)(l.Message,{from:"assistant",children:(0,d.jsxs)("div",{className:"flex gap-3",children:[(0,d.jsx)("div",{className:"relative overflow-hidden rounded-lg size-8 shadow-sm ring-1 ring-white/10 shrink-0",children:(0,d.jsx)("video",{src:"/sparkecode.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 size-full object-cover"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsxs)(l.MessageContent,{children:[(0,d.jsx)(l.MessageResponse,{children:aK}),(0,d.jsx)("span",{className:"inline-block w-2 h-4 bg-primary animate-pulse ml-1"})]})})]})}),aq&&aQ.map(a=>"write_file"===a.toolName?(0,d.jsx)(Y.WriteFileTool,{input:a.input,output:a.output,status:a.status,streamingArgsText:a.streamingArgsText,liveContent:a.liveContent,liveOldString:a.liveOldString,liveNewString:a.liveNewString},a.toolCallId):"read_file"===a.toolName?(0,d.jsx)(Z.ReadFileTool,{input:a.input,output:a.output,status:a.status},a.toolCallId):"bash"===a.toolName?(0,d.jsx)($.BashTool,{input:a.input,output:a.output,status:a.status,terminalId:a.terminalId,liveOutput:a.liveOutput},a.toolCallId):"explore_agent"===a.toolName?(0,d.jsx)(_.SearchTool,{input:a.input,output:a.output,status:a.status,steps:a.exploreSteps},a.toolCallId):"todo"===a.toolName?(0,d.jsx)(aa.TodoTool,{input:a.input,output:a.output,status:a.status},a.toolCallId):"load_skill"===a.toolName?(0,d.jsx)(ab.LoadSkillTool,{input:a.input,output:a.output,status:a.status},a.toolCallId):"linter"===a.toolName?(0,d.jsx)(ac.LinterTool,{input:a.input,output:a.output,status:a.status},a.toolCallId):(0,d.jsxs)(m.Tool,{defaultOpen:!0,children:[(0,d.jsx)(m.ToolHeader,{type:`tool-${a.toolName}`,state:"streaming"===a.status?"input-streaming":"input-available",title:a.toolName}),(0,d.jsxs)(m.ToolContent,{children:[(0,d.jsx)(m.ToolInput,{input:a.input}),(0,d.jsxs)("div",{className:"flex items-center gap-2 p-3 text-muted-foreground",children:[(0,d.jsx)(q.Loader,{size:14}),(0,d.jsx)("span",{className:"text-sm",children:"streaming"===a.status?"Receiving...":"Executing..."})]})]})]},a.toolCallId)),aq&&!aK&&0===aQ.length&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,d.jsx)(q.Loader,{size:16}),(0,d.jsx)("span",{className:"text-sm",children:"Thinking..."})]})]}),(0,d.jsx)(k.ConversationScrollButton,{})]}),aA&&(0,d.jsxs)("div",{className:"fixed bottom-28 right-4 w-80 max-h-80 overflow-auto border bg-background/95 shadow-lg rounded-md text-xs",children:[(0,d.jsx)("div",{className:"px-3 py-2 border-b font-mono text-muted-foreground",children:"SSE Debug"}),(0,d.jsxs)("div",{className:"px-3 py-2 space-y-1",children:[0===aC.length&&0===aE.length&&(0,d.jsx)("div",{className:"text-muted-foreground",children:"No events yet"}),aC.map((a,b)=>(0,d.jsx)("div",{className:"font-mono",children:a},`evt-${b}`)),aE.map((a,b)=>(0,d.jsx)("div",{className:"font-mono text-red-600",children:a},`err-${b}`))]})]}),(0,d.jsx)("div",{className:(0,g.cn)("border-t border-border/50 p-4 pb-6 bg-card/30",b&&"p-2 pb-2"),children:(0,d.jsxs)("div",{className:(0,g.cn)("max-w-3xl mx-auto",b&&"max-w-none"),children:[!b&&!a1&&0===t.length&&!aK&&!aq&&(0,d.jsx)(u.Suggestions,{className:"mb-3",children:['Create a hello.txt file with "Hello, World!"',"List files in the current directory","Show the current git status"].map(a=>(0,d.jsx)(u.Suggestion,{suggestion:a,onClick:a=>{al(a)}},a))}),as.length>0&&(0,d.jsxs)("div",{className:(0,g.cn)("mb-2 rounded-lg border border-border/60 bg-muted/20 overflow-hidden",b&&"mb-1"),children:[(0,d.jsxs)("button",{type:"button",onClick:()=>az(a=>!a),className:(0,g.cn)("w-full flex items-center justify-between px-3 py-1.5 text-xs text-muted-foreground hover:bg-muted/30 transition-colors",b&&"px-2 py-1"),children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[ay?(0,d.jsx)(N.ChevronDown,{className:"size-3"}):(0,d.jsx)(O.ChevronUp,{className:"size-3"}),(0,d.jsxs)("span",{className:"font-medium",children:[as.length," Queued"]})]}),(0,d.jsx)("span",{className:"text-[10px]",children:"Stop ^C"})]}),ay&&(0,d.jsx)("div",{className:"border-t border-border/40 divide-y divide-border/30",children:as.map((a,c)=>(0,d.jsxs)("div",{className:(0,g.cn)("flex items-start gap-2 px-3 py-2 group",b&&"px-2 py-1.5 gap-1.5"),children:[(0,d.jsx)("span",{className:"text-[10px] text-muted-foreground/60 pt-0.5 w-4 shrink-0 text-center",children:c+1}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[au===a.id?(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)("input",{type:"text",value:aw,onChange:a=>ax(a.target.value),onKeyDown:b=>{"Enter"===b.key&&bF(a.id),"Escape"===b.key&&av(null)},className:(0,g.cn)("flex-1 bg-background border border-border rounded px-2 py-0.5 text-xs focus:outline-none focus:ring-1 focus:ring-primary/30",b&&"text-[11px]"),autoFocus:!0}),(0,d.jsx)("button",{type:"button",onClick:()=>bF(a.id),className:"p-0.5 text-primary hover:text-primary/80",children:(0,d.jsx)(F.Check,{className:"size-3"})})]}):(0,d.jsx)("p",{className:(0,g.cn)("text-xs text-foreground truncate",b&&"text-[11px]"),children:a.text||"Selected elements attached"}),a.attachments&&a.attachments.length>0&&(0,d.jsxs)("span",{className:"text-[10px] text-muted-foreground",children:[a.attachments.length," file",a.attachments.length>1?"s":""]}),a.selectedElements&&(0,d.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"+ selected elements"})]}),(0,d.jsxs)("div",{className:(0,g.cn)("flex items-center gap-0.5 shrink-0 transition-opacity",b?"opacity-100":"opacity-0 group-hover:opacity-100"),children:[(0,d.jsx)("button",{type:"button",onClick:()=>{av(a.id),ax(a.text)},className:"p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted/50",title:"Edit",children:(0,d.jsx)(E.Pencil,{className:"size-3"})}),c>0&&(0,d.jsx)("button",{type:"button",onClick:()=>{var b;return b=a.id,void at(a=>{let c=a.findIndex(a=>a.id===b);if(-1===c)return a;let d=c-1;if(d<0||d>=a.length)return a;let e=[...a];return[e[c],e[d]]=[e[d],e[c]],e})},className:"p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted/50",title:"Move up",children:(0,d.jsx)(Q.ArrowUp,{className:"size-3"})}),(0,d.jsx)("button",{type:"button",onClick:()=>bG(a.id),className:"p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted/50",title:"Send now",children:(0,d.jsx)(P.Play,{className:"size-3"})}),(0,d.jsx)("button",{type:"button",onClick:()=>{var b;return b=a.id,void at(a=>a.filter(a=>a.id!==b))},className:"p-1 rounded text-muted-foreground hover:text-destructive hover:bg-muted/50",title:"Remove",children:(0,d.jsx)(R.Trash2,{className:"size-3"})})]})]},a.id))})]}),(0,d.jsx)(ae.MentionInputProvider,{children:(0,d.jsxs)(s.PromptInput,{onSubmit:bA,className:"shadow-sm",globalDrop:!0,multiple:!0,children:[(0,d.jsxs)(s.PromptInputHeader,{children:[ao&&(0,d.jsxs)("div",{className:(0,g.cn)("mb-2 flex items-center justify-between rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-xs",b&&"mb-1"),children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[(0,d.jsx)("span",{className:"size-1.5 rounded-full bg-primary/70"}),(0,d.jsx)("span",{children:"Selected elements attached"})]}),(0,d.jsx)("button",{type:"button",onClick:()=>ap(null),className:"rounded-sm p-1 text-muted-foreground hover:text-foreground","aria-label":"Remove selected elements",children:(0,d.jsx)(M.X,{className:"size-3.5"})})]}),(0,d.jsx)(ah,{})]}),(0,d.jsx)(s.PromptInputBody,{children:(0,d.jsxs)("div",{className:"relative w-full",children:[(0,d.jsx)(ae.MentionTextarea,{sessionId:a.id,value:aj+(am?(!aj||aj.endsWith(" ")||aj.endsWith("\n")?"":" ")+am:""),onChange:a=>{am&&an(""),al(a)},placeholder:aq?"Type to queue a message...":"Ask SparkECoder... (@ to mention files, / for commands)",disabled:!1,autoFocus:!0,className:(0,g.cn)("min-h-[80px] focus:ring-2 focus:ring-primary/20 transition-all field-sizing-content max-h-48",am&&"caret-red-500",b&&"min-h-[40px] text-sm max-h-24")}),am&&(0,d.jsxs)("div",{className:"absolute bottom-2 right-2 flex items-center gap-1.5 text-xs text-red-500 bg-background/80 backdrop-blur-sm px-2 py-1 rounded-full",children:[(0,d.jsx)("span",{className:"size-2 bg-red-500 rounded-full animate-pulse"}),"Listening..."]})]})}),(0,d.jsxs)(s.PromptInputFooter,{className:b?"py-1":void 0,children:[!b&&(0,d.jsx)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:(0,d.jsx)("span",{className:"hidden sm:inline",children:"Type @ to mention files, / for commands"})}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(ad.SpeechInput,{size:"icon",className:"size-9",onTranscriptionChange:a=>{al(b=>{let c=b&&!b.endsWith(" ")&&!b.endsWith("\n");return b+(c?" ":"")+a})},onInterimTranscription:a=>{an(a)},disabled:aq}),(0,d.jsx)(ai,{input:aj+am,isRunning:aq,onStop:bB,hasExtraContent:!!(ao&&ao.trim())})]})]})]})})]})})]})}a.s(["ChatInterface",()=>aj]),c()}catch(a){c(a)}},!1)];
14
14
 
15
15
  //# sourceMappingURL=%5Broot-of-the-server%5D__a87e1c27._.js.map